From 4a0076497624b4cfa4861b8a2f2dcfb0634d45d0 Mon Sep 17 00:00:00 2001 From: Karim Hamidou Date: Wed, 16 Mar 2016 19:40:19 -0700 Subject: [PATCH] make things work --- app.py | 12 +- src/render_rfc.py | 4 +- templates/rfc.html | 2 +- text/ien-index.txt | 553 - text/ien/.message | 6 - text/ien/ien-index.html~ | 1607 --- text/ien/ien-index.txt | 406 - text/ien/ien1.txt | 14 - text/ien/ien10.txt | 224 - text/ien/ien100.txt | 470 - text/ien/ien103.txt | 468 - text/ien/ien104.txt | 231 - text/ien/ien107.txt | 11 - text/ien/ien108.txt | 551 - text/ien/ien109.txt | 1608 --- text/ien/ien11.txt | 9 - text/ien/ien110.txt | 232 - text/ien/ien111.txt | 2649 ----- text/ien/ien112.txt | 4891 -------- text/ien/ien113.txt | 4342 ------- text/ien/ien114.txt | 523 - text/ien/ien115.txt | 231 - text/ien/ien116.txt | 522 - text/ien/ien117.txt | 696 -- text/ien/ien118.txt | 59 - text/ien/ien119.txt | 2180 ---- text/ien/ien12.txt | 1951 ---- text/ien/ien120.txt | 650 -- text/ien/ien121.txt | 1948 ---- text/ien/ien122.txt | 295 - text/ien/ien123.txt | 2708 ----- text/ien/ien124.txt | 5185 --------- text/ien/ien125.txt | 177 - text/ien/ien126.txt | 709 -- text/ien/ien127.txt | 753 -- text/ien/ien128.txt | 2707 ----- text/ien/ien129.txt | 5185 --------- text/ien/ien131.txt | 573 - text/ien/ien132.txt | 808 -- text/ien/ien133.txt | 740 -- text/ien/ien134.txt | 825 -- text/ien/ien135.txt | 347 - text/ien/ien136.txt | 3658 ------ text/ien/ien137.txt | 816 -- text/ien/ien139.txt | 471 - text/ien/ien141.txt | 827 -- text/ien/ien142.txt | 119 - text/ien/ien143.txt | 334 - text/ien/ien144.txt | 1230 -- text/ien/ien145.txt | 870 -- text/ien/ien146.txt | 649 -- text/ien/ien147.txt | 473 - text/ien/ien148.txt | 869 -- text/ien/ien149.txt | 4131 ------- text/ien/ien150.txt | 696 -- text/ien/ien151.txt | 405 - text/ien/ien152.txt | 489 - text/ien/ien153.txt | 766 -- text/ien/ien154.txt | 765 -- text/ien/ien155.txt | 531 - text/ien/ien156.txt | 192 - text/ien/ien157.txt | 638 -- text/ien/ien158.txt | 233 - text/ien/ien159.txt | 50 - text/ien/ien16.txt | 294 - text/ien/ien160.txt | 1449 --- text/ien/ien161.txt | 532 - text/ien/ien162.txt | 1004 -- text/ien/ien163.txt | 521 - text/ien/ien164.txt | 1415 --- text/ien/ien165.txt | 195 - text/ien/ien166.txt | 1708 --- text/ien/ien167.txt | 4540 -------- text/ien/ien168.txt | 826 -- text/ien/ien169.txt | 1740 --- text/ien/ien170.txt | 95 - text/ien/ien171.txt | 220 - text/ien/ien172.txt | 975 -- text/ien/ien173.txt | 437 - text/ien/ien174.txt | 474 - text/ien/ien175.txt | 1567 --- text/ien/ien176.txt | 882 -- text/ien/ien177.txt | 349 - text/ien/ien178.txt | 1239 -- text/ien/ien179.txt | 207 - text/ien/ien180.txt | 236 - text/ien/ien181.txt | 524 - text/ien/ien182.txt | 3132 ----- text/ien/ien183.txt | 3305 ------ text/ien/ien184.txt | 1658 --- text/ien/ien185.txt | 1238 -- text/ien/ien186.txt | 4040 ------- text/ien/ien187.txt | 4196 ------- text/ien/ien188.txt | 2030 ---- text/ien/ien189.txt | 5626 --------- text/ien/ien19.txt | 665 -- text/ien/ien190.txt | 804 -- text/ien/ien191.txt | 638 -- text/ien/ien192.txt | 3391 ------ text/ien/ien194.txt | 608 - text/ien/ien195.txt | 494 - text/ien/ien196.txt | 1343 --- text/ien/ien197.txt | 2204 ---- text/ien/ien198.txt | 1057 -- text/ien/ien2.txt | 709 -- text/ien/ien200.txt | 323 - text/ien/ien201.txt | 325 - text/ien/ien207.txt | 115 - text/ien/ien211.txt | 564 - text/ien/ien212.txt | 755 -- text/ien/ien23.txt | 232 - text/ien/ien3.txt | 736 -- text/ien/ien31.txt | 624 - text/ien/ien32.txt | 2350 ---- text/ien/ien35.txt | 892 -- text/ien/ien39.txt | 280 - text/ien/ien42.txt | 342 - text/ien/ien45.txt | 740 -- text/ien/ien46.txt | 704 -- text/ien/ien48.txt | 600 - text/ien/ien51.txt | 297 - text/ien/ien52.txt | 236 - text/ien/ien61.txt | 457 - text/ien/ien72.txt | 348 - text/ien/ien74.txt | 439 - text/ien/ien82.txt | 255 - text/ien/ien83.txt | 11 - text/ien/ien85.txt | 3643 ------ text/ien/ien88.txt | 216 - text/ien/ien89.txt | 448 - text/ien/ien9.txt | 130 - text/ien/ien90.txt | 391 - text/ien/ien91.txt | 222 - text/ien/ien92.txt | 568 - text/ien/ien93.txt | 696 -- text/ien/ien94.txt | 57 - text/ien/ien95.txt | 338 - text/ien/ien96.txt | 520 - text/ien/ien97.txt | 1397 --- text/ien/ien98.txt | 1204 -- text/ien/ien99.txt | 207 - text/ien/scanned/README | 2 - text/std/.message | 6 - text/std/std-index.txt | 1 - text/std/std-retrieval.txt | 51 - text/std/std1.txt | 1 - text/std/std10.txt | 5577 --------- text/std/std11.txt | 1 - text/std/std12.txt | 11 - text/std/std13.txt | 6159 ---------- text/std/std15.txt | 2019 ---- text/std/std16.txt | 2302 ---- text/std/std17.txt | 3923 ------- text/std/std19.txt | 9025 --------------- text/std/std2.txt | 12883 --------------------- text/std/std20.txt | 57 - text/std/std21.txt | 58 - text/std/std22.txt | 174 - text/std/std23.txt | 58 - text/std/std24.txt | 58 - text/std/std25.txt | 116 - text/std/std26.txt | 116 - text/std/std27.txt | 227 - text/std/std28.txt | 284 - text/std/std29.txt | 113 - text/std/std3.txt | 12624 -------------------- text/std/std30.txt | 170 - text/std/std31.txt | 227 - text/std/std32.txt | 113 - text/std/std33.txt | 619 - text/std/std35.txt | 1061 -- text/std/std36.txt | 619 - text/std/std37.txt | 470 - text/std/std38.txt | 227 - text/std/std39.txt | 10 - text/std/std40.txt | 4581 -------- text/std/std41.txt | 171 - text/std/std42.txt | 171 - text/std/std43.txt | 843 -- text/std/std44.txt | 1405 --- text/std/std45.txt | 2405 ---- text/std/std46.txt | 395 - text/std/std47.txt | 333 - text/std/std48.txt | 171 - text/std/std49.txt | 227 - text/std/std5.txt | 7228 ------------ text/std/std50.txt | 1 - text/std/std51.txt | 4416 ------- text/std/std52.txt | 619 - text/std/std53.txt | 1291 --- text/std/std54.txt | 12201 -------------------- text/std/std55.txt | 1907 ---- text/std/std56.txt | 2187 ---- text/std/std57.txt | 1 - text/std/std58.txt | 5787 ---------- text/std/std59.txt | 1 - text/std/std6.txt | 174 - text/std/std60.txt | 1 - text/std/std61.txt | 1 - text/std/std62.txt | 21534 ----------------------------------- text/std/std63.txt | 1 - text/std/std64.txt | 1 - text/std/std65.txt | 1 - text/std/std66.txt | 1 - text/std/std67.txt | 1 - text/std/std68.txt | 1 - text/std/std69.txt | 10879 ------------------ text/std/std7.txt | 5247 --------- text/std/std70.txt | 1 - text/std/std71.txt | 1 - text/std/std72.txt | 1 - text/std/std73.txt | 1 - text/std/std74.txt | 1 - text/std/std75.txt | 1 - text/std/std76.txt | 1 - text/std/std77.txt | 1 - text/std/std78.txt | 7628 ------------- text/std/std79.txt | 1 - text/std/std8.txt | 1026 -- text/std/std80.txt | 1 - text/std/std81.txt | 1 - text/std/std82.txt | 1 - text/std/std9.txt | 3933 ------- 223 files changed, 9 insertions(+), 303638 deletions(-) delete mode 100644 text/ien-index.txt delete mode 100644 text/ien/.message delete mode 100644 text/ien/ien-index.html~ delete mode 100644 text/ien/ien-index.txt delete mode 100644 text/ien/ien1.txt delete mode 100644 text/ien/ien10.txt delete mode 100644 text/ien/ien100.txt delete mode 100644 text/ien/ien103.txt delete mode 100644 text/ien/ien104.txt delete mode 100644 text/ien/ien107.txt delete mode 100644 text/ien/ien108.txt delete mode 100644 text/ien/ien109.txt delete mode 100644 text/ien/ien11.txt delete mode 100644 text/ien/ien110.txt delete mode 100644 text/ien/ien111.txt delete mode 100644 text/ien/ien112.txt delete mode 100644 text/ien/ien113.txt delete mode 100644 text/ien/ien114.txt delete mode 100644 text/ien/ien115.txt delete mode 100644 text/ien/ien116.txt delete mode 100644 text/ien/ien117.txt delete mode 100644 text/ien/ien118.txt delete mode 100644 text/ien/ien119.txt delete mode 100644 text/ien/ien12.txt delete mode 100644 text/ien/ien120.txt delete mode 100644 text/ien/ien121.txt delete mode 100644 text/ien/ien122.txt delete mode 100644 text/ien/ien123.txt delete mode 100644 text/ien/ien124.txt delete mode 100644 text/ien/ien125.txt delete mode 100644 text/ien/ien126.txt delete mode 100644 text/ien/ien127.txt delete mode 100644 text/ien/ien128.txt delete mode 100644 text/ien/ien129.txt delete mode 100644 text/ien/ien131.txt delete mode 100644 text/ien/ien132.txt delete mode 100644 text/ien/ien133.txt delete mode 100644 text/ien/ien134.txt delete mode 100644 text/ien/ien135.txt delete mode 100644 text/ien/ien136.txt delete mode 100644 text/ien/ien137.txt delete mode 100644 text/ien/ien139.txt delete mode 100644 text/ien/ien141.txt delete mode 100644 text/ien/ien142.txt delete mode 100644 text/ien/ien143.txt delete mode 100644 text/ien/ien144.txt delete mode 100644 text/ien/ien145.txt delete mode 100644 text/ien/ien146.txt delete mode 100644 text/ien/ien147.txt delete mode 100644 text/ien/ien148.txt delete mode 100644 text/ien/ien149.txt delete mode 100644 text/ien/ien150.txt delete mode 100644 text/ien/ien151.txt delete mode 100644 text/ien/ien152.txt delete mode 100644 text/ien/ien153.txt delete mode 100644 text/ien/ien154.txt delete mode 100644 text/ien/ien155.txt delete mode 100644 text/ien/ien156.txt delete mode 100644 text/ien/ien157.txt delete mode 100644 text/ien/ien158.txt delete mode 100644 text/ien/ien159.txt delete mode 100644 text/ien/ien16.txt delete mode 100644 text/ien/ien160.txt delete mode 100644 text/ien/ien161.txt delete mode 100644 text/ien/ien162.txt delete mode 100644 text/ien/ien163.txt delete mode 100644 text/ien/ien164.txt delete mode 100644 text/ien/ien165.txt delete mode 100644 text/ien/ien166.txt delete mode 100644 text/ien/ien167.txt delete mode 100644 text/ien/ien168.txt delete mode 100644 text/ien/ien169.txt delete mode 100644 text/ien/ien170.txt delete mode 100644 text/ien/ien171.txt delete mode 100644 text/ien/ien172.txt delete mode 100644 text/ien/ien173.txt delete mode 100644 text/ien/ien174.txt delete mode 100644 text/ien/ien175.txt delete mode 100644 text/ien/ien176.txt delete mode 100644 text/ien/ien177.txt delete mode 100644 text/ien/ien178.txt delete mode 100644 text/ien/ien179.txt delete mode 100644 text/ien/ien180.txt delete mode 100644 text/ien/ien181.txt delete mode 100644 text/ien/ien182.txt delete mode 100644 text/ien/ien183.txt delete mode 100644 text/ien/ien184.txt delete mode 100644 text/ien/ien185.txt delete mode 100644 text/ien/ien186.txt delete mode 100644 text/ien/ien187.txt delete mode 100644 text/ien/ien188.txt delete mode 100644 text/ien/ien189.txt delete mode 100755 text/ien/ien19.txt delete mode 100644 text/ien/ien190.txt delete mode 100644 text/ien/ien191.txt delete mode 100644 text/ien/ien192.txt delete mode 100644 text/ien/ien194.txt delete mode 100644 text/ien/ien195.txt delete mode 100644 text/ien/ien196.txt delete mode 100644 text/ien/ien197.txt delete mode 100644 text/ien/ien198.txt delete mode 100644 text/ien/ien2.txt delete mode 100644 text/ien/ien200.txt delete mode 100644 text/ien/ien201.txt delete mode 100644 text/ien/ien207.txt delete mode 100644 text/ien/ien211.txt delete mode 100644 text/ien/ien212.txt delete mode 100644 text/ien/ien23.txt delete mode 100644 text/ien/ien3.txt delete mode 100644 text/ien/ien31.txt delete mode 100644 text/ien/ien32.txt delete mode 100644 text/ien/ien35.txt delete mode 100644 text/ien/ien39.txt delete mode 100644 text/ien/ien42.txt delete mode 100644 text/ien/ien45.txt delete mode 100644 text/ien/ien46.txt delete mode 100644 text/ien/ien48.txt delete mode 100644 text/ien/ien51.txt delete mode 100644 text/ien/ien52.txt delete mode 100644 text/ien/ien61.txt delete mode 100644 text/ien/ien72.txt delete mode 100644 text/ien/ien74.txt delete mode 100644 text/ien/ien82.txt delete mode 100644 text/ien/ien83.txt delete mode 100644 text/ien/ien85.txt delete mode 100644 text/ien/ien88.txt delete mode 100644 text/ien/ien89.txt delete mode 100644 text/ien/ien9.txt delete mode 100644 text/ien/ien90.txt delete mode 100644 text/ien/ien91.txt delete mode 100644 text/ien/ien92.txt delete mode 100644 text/ien/ien93.txt delete mode 100644 text/ien/ien94.txt delete mode 100644 text/ien/ien95.txt delete mode 100644 text/ien/ien96.txt delete mode 100644 text/ien/ien97.txt delete mode 100644 text/ien/ien98.txt delete mode 100644 text/ien/ien99.txt delete mode 100644 text/ien/scanned/README delete mode 100644 text/std/.message delete mode 120000 text/std/std-index.txt delete mode 100644 text/std/std-retrieval.txt delete mode 120000 text/std/std1.txt delete mode 100644 text/std/std10.txt delete mode 120000 text/std/std11.txt delete mode 100644 text/std/std12.txt delete mode 100644 text/std/std13.txt delete mode 100644 text/std/std15.txt delete mode 100644 text/std/std16.txt delete mode 100644 text/std/std17.txt delete mode 100644 text/std/std19.txt delete mode 100644 text/std/std2.txt delete mode 100644 text/std/std20.txt delete mode 100644 text/std/std21.txt delete mode 100644 text/std/std22.txt delete mode 100644 text/std/std23.txt delete mode 100644 text/std/std24.txt delete mode 100644 text/std/std25.txt delete mode 100644 text/std/std26.txt delete mode 100644 text/std/std27.txt delete mode 100644 text/std/std28.txt delete mode 100644 text/std/std29.txt delete mode 100644 text/std/std3.txt delete mode 100644 text/std/std30.txt delete mode 100644 text/std/std31.txt delete mode 100644 text/std/std32.txt delete mode 100644 text/std/std33.txt delete mode 100644 text/std/std35.txt delete mode 100644 text/std/std36.txt delete mode 100644 text/std/std37.txt delete mode 100644 text/std/std38.txt delete mode 100644 text/std/std39.txt delete mode 100644 text/std/std40.txt delete mode 100644 text/std/std41.txt delete mode 100644 text/std/std42.txt delete mode 100644 text/std/std43.txt delete mode 100644 text/std/std44.txt delete mode 100644 text/std/std45.txt delete mode 100644 text/std/std46.txt delete mode 100644 text/std/std47.txt delete mode 100644 text/std/std48.txt delete mode 100644 text/std/std49.txt delete mode 100644 text/std/std5.txt delete mode 120000 text/std/std50.txt delete mode 100644 text/std/std51.txt delete mode 100644 text/std/std52.txt delete mode 100644 text/std/std53.txt delete mode 100644 text/std/std54.txt delete mode 100644 text/std/std55.txt delete mode 100644 text/std/std56.txt delete mode 120000 text/std/std57.txt delete mode 100644 text/std/std58.txt delete mode 120000 text/std/std59.txt delete mode 100644 text/std/std6.txt delete mode 120000 text/std/std60.txt delete mode 120000 text/std/std61.txt delete mode 100644 text/std/std62.txt delete mode 120000 text/std/std63.txt delete mode 120000 text/std/std64.txt delete mode 120000 text/std/std65.txt delete mode 120000 text/std/std66.txt delete mode 120000 text/std/std67.txt delete mode 120000 text/std/std68.txt delete mode 100644 text/std/std69.txt delete mode 100644 text/std/std7.txt delete mode 120000 text/std/std70.txt delete mode 120000 text/std/std71.txt delete mode 120000 text/std/std72.txt delete mode 120000 text/std/std73.txt delete mode 120000 text/std/std74.txt delete mode 120000 text/std/std75.txt delete mode 120000 text/std/std76.txt delete mode 120000 text/std/std77.txt delete mode 100644 text/std/std78.txt delete mode 120000 text/std/std79.txt delete mode 100644 text/std/std8.txt delete mode 120000 text/std/std80.txt delete mode 120000 text/std/std81.txt delete mode 120000 text/std/std82.txt delete mode 100644 text/std/std9.txt diff --git a/app.py b/app.py index 4189ab41..944ad114 100644 --- a/app.py +++ b/app.py @@ -1,10 +1,10 @@ import os from flask import Flask, render_template, request, redirect, url_for -from src.render_rfc import render_rfc +from src.render_rfc import render_html_rfc app = Flask(__name__) -app.config['SECRET_KEY'] = os.environ['SECRET_KEY'] +app.config['SECRET_KEY'] = os.environ.get('SECRET_KEY', 'should be set') ### # Routing for your application. @@ -21,10 +21,10 @@ def home(): ### @app.route('/rfc.html') -def render_rfc(rfc_number): - filename = 'text/rfc{}.html'.format(rfc_number) - rendered = render_rfc(filename) - return render_template('rfc.html', rendered) +def render_text_rfc(rfc_number): + filename = 'text/rfc{}.txt'.format(rfc_number) + rendered = render_html_rfc(filename) + return render_template('rfc.html', **rendered) @app.route('/.txt') def send_text_file(file_name): diff --git a/src/render_rfc.py b/src/render_rfc.py index 6f167133..563eb582 100644 --- a/src/render_rfc.py +++ b/src/render_rfc.py @@ -148,7 +148,7 @@ def anchor_titles(data, **kwargs): return data -def render_rfc(filename): +def render_html_rfc(filename): with open(filename) as fd: data = fd.read() @@ -169,7 +169,7 @@ def main(): outfile = sys.argv[2] with codecs.open(outfile, 'w+', 'utf-8-sig') as fd: - fd.write(render_rfc(infile)) + fd.write(render_html_rfc(infile)) json_filename = outfile.split('.')[0] + '.json' with open(json_filename, 'w+') as fd: diff --git a/templates/rfc.html b/templates/rfc.html index 6f2bcc41..99395afe 100644 --- a/templates/rfc.html +++ b/templates/rfc.html @@ -18,7 +18,7 @@ - {{ rfc }} + {{ rfc|safe }}
diff --git a/text/ien-index.txt b/text/ien-index.txt deleted file mode 100644 index aff97c0e..00000000 --- a/text/ien-index.txt +++ /dev/null @@ -1,553 +0,0 @@ - - -0001 Issues in the Interconnection of Datagram Networks. Hinchley. - July 1977. (Format: TXT=248 bytes) - -0002 Comments on Internet Protocols and TCP. Postel. August 1977. - (Format: TXT=24410 bytes) - -0003 Internet Meeting Notes - 15 August 1977. Postel. August 1977. - (Format: TXT=22773 bytes) - -0004 Specification for a General Network Conferencing System Voice - Communication Supervisor. Rubin. May 1977. - -0005 TCP Version 2 Specification. Cerf. - -0006 Gateways and Network Interfaces. Cerf. August 1977. - -0007 X.25 Specification. -----. July 1977. - -0008 Gateway Experiments in Connection with the Packet Satellite - Project. UCL. - -0009 Host/SIMP Protocol. Perlman. August 1977. (Format: TXT=3513 - bytes) - -0010 Internet Broadcast Issues. Plummer. March 1977. (Format: - TXT=10075 bytes) - -0011 Internetting or Beyond NCP. Cohen. March 1977. (Format: TXT=221 - bytes) - -0012 Issues in Reliable Host-to-Host Protocols. Garlick. March 1977. - (Format: TXT=69785 bytes) - -0013 GNOME User's Guide. UCL. - -0014 Thoughts on Multi-net Control and Data Collection Facilities. - Nelson. February 1977. - -0015 Thoughts about TCP Retransmission Techniques. Plummer. September - 1977. - -0016 Extensible Field Addressing. Postel. May 1977. (Format: TXT=9428 - bytes) - -0017 Datagrams as a Public Packet-switched Data Transmission Service. - Bochman. March 1977. - -0018 TCP Revisions. Burchfiel. October 1976. - -0019 Inter-Network Naming, Addressing, and Routing. Shoch. January - 1978. - -0020 Inter-Network Fragmentation and the TCP. Shoch. January 1978. - -0021 TCP 3 Specification. Cerf. January 1978. - -0022 Internet Meeting Notes - 1 February 1978. Postel. February 1978. - -0023 On Names, Addresses and Routings. Cohen. January 1978. (Format: - TXT=10659 bytes) - -0024 Gateway Routing. Perlman. January 1978. - -0025 Gateway Dynamic Routing. Strazisar. January 1978. - -0026 A Proposed New Internet Header Format. Cerf. February 1978. - -0027 A Proposal for TCP Version 3.1 Header Format. Cerf. February - 1978. - -0028 Draft Internetwork Protocol Specification. Postel. - -0029 A Note on Urgent in TCP. Day. - -0030 Gateway Routing: An Implementation Specification. Strazisar. - April 1978. - -0031 On Names, Addresses and Routings (II). Cohen. April 1978. - (Format: TXT=27107 bytes) - -0032 Catenet Monitoring and Control: A Model for the Gateway - Component. Davidson. April 1978. (Format: TXT=52698 bytes) - -0033 Internet Meeting Notes - 1&2 May 1978. Bennett. May 1978. - -0034 The GNOME Controller. Bennett. April 1978. - -0035 SATNET and the Provision of Transnet Service. Kirstein. April - 1978. (Format: TXT=32528 bytes) - -0036 NSW File Package. Cashman. December 1976. - -0037 NSW Bibliography. Millstein. - -0038 NSW Transaction Protocol (NSWTP). Postel. May 1978. - -0039 NSW Data Representation (NSWB8). Postel. May 1978. (Format: - TXT=5238 bytes) - -0040 Specification of Internetwork Version 4. Postel. June 1978. - -0041 Internetwork Protocol Specification - Version 4. Postel. June - 1978. - -0042 SATNET Information. Edmond. June 1978. (Format: TXT=11618 bytes) - -0043 Interconnection of Virtual Circuits and Datagrams. Pouzin. - February 1977. - -0044 Latest Header Formats. Postel. June 1978. - -0045 TCP Checksum Function Design. Plummer. June 1978. (Format: - TXT=28617 bytes) - -0046 A Proposal for Addressing and Routing in the Internet. Clark. - June 1978. (Format: TXT=21758 bytes) - -0047 CCITT Draft Recommendation on the Numbering Plan for Public Data - Networks. -----. - -0048 The Catenet Model for Internetworking. Cerf. July 1978. (Format: - TXT=20801 bytes) - -0049 Comments on the Proposed TCP Checksum Scheme. Higginson. July - 1978. - -0050 A Comparative Evaluation of Retransmission Techniques. Edge. - -0051 Types of Service on the Catenet. Bennett. July 1978. (Format: - TXT=13846 bytes) - -0052 Some Thoughts About the Multiplexing Issue in Networks. Cohen. - August 1978. (Format: TXT=6118 bytes) - -0053 Internet Meeting Notes -. Postel. August 1978. - -0054 Internetwork Protocol Specification Version 4. Postel. September - 1978. - -0055 Specification of Internetwork Transmission Control Protocol TCP - Version 4. Postel. September 1978. - -0056 CRC Checksum Calculation. Reed. September 1978. - -0057 Provisional TCP Development Plan. Plummer. October 1978. - -0058 Access Control: An Informal Discussion. Perlman. October 1978. - -0059 The UCL Transnet File Transfer Implementation. Bennett. October - 1978. - -0060 Boston Area Meeting of the Internet Working Group to Discuss - Interactions with Gateways. Davidson. October 1978. - -0061 Internet Name Server. Postel. October 1978. (Format: TXT=12238 - bytes) - -0062 Enriched Internet Addressing of ARPANET. Davidson. October 1978. - -0063 Internet Meeting Notes. Postel. November 1978. - -0064 TCP Meeting Notes - 12 March 1977. Sunshine. March 1978. - -0065 TCP Meeting Notes - 14 & 15 July 1977. Postel. August 1978. - -0066 TCP Meeting Notes. Postel. October 1977. - -0067 TCP Meeting Notes. Postel. February 1978. - -0068 TCP Meeting Notes - 15 & 16 June 1978. Postel. June 1978. - -0069 TCP Meeting Notes. Postel. October 1978. - -0070 TCP Meeting Notes - 4 December 1978. Postel. December 1978. - -0071 User Datagram Protocol. Reed. January 1979. - -0072 Multiplexing Protocol. Postel. January 1979. (Format: TXT=6876 - bytes) - -0073 A TCP Implementation Issue. Abramovitz. January 1979. - -0074 Sequence Number Arithmetic. Plummer. September 1978. (Format: - TXT=12791 bytes) - -0075 The TCP RESET Mechanism. Plummer. September 1978. - -0076 Internet Meeting Notes. Postel. February 1979. - -0077 TCP Meeting Notes - 29 January 1979. Postel. February 1979. - -0078 Internetwork Experiments with the Bay Area Packet Radio Network. - Shoch. February 1979. - -0079 A Protocol Test Facility: Request for Comments. Lozano-Perez. - January 1979. - -0080 Internet Datagram Protocol. Postel. February 1979. - -0081 Transmission Control Protocol. Postel. February 1979. - -0082 LCS Net Address Format. Chiappa. February 1979. (Format: TXT=8932 - bytes) - -0083 Addressing Through Port Expanders. Kirstein. March 1979. (Format: - TXT=246 bytes) - -0084 A Modern Application of Teleprocessing. Cohen. April 1 1979. - -0085 Internet Message Protocol. Postel. March 1979. (Format: TXT=93363 - bytes) - -0086 Extended Internet Routing. Perlman. April 1979. - -0087 Internet Flow and Congestion Control. Perlman. April 1979. - -0088 User Datgram Protocol. Postel. May 1979. (Format: TXT=5275 bytes) - -0089 Internet Name Server. Postel. May 1979. (Format: TXT=11049 bytes) - -0090 Multiplexing Protocol. Cohen. May 1979. (Format: TXT=10184 bytes) - -0091 Address Mappings. Postel. May 1979. (Format: TXT=5911 bytes) - -0092 Protocol Options. Postel. May 1979. (Format: TXT=13749 bytes) - -0093 Assigned Numbers. Postel. May 1979. (Format: TXT=22039 bytes) - -0094 Internet Protocol Handbook Table of Contents. Postel. May 1979. - (Format: TXT=1209 bytes) - -0095 Source Routing. Cohen. May 1979. (Format: TXT=9684 bytes) - -0096 The MITRE Cablenet Project. Skelton. May 1979. (Format: TXT=20293 - bytes) - -0097 Flexible Datagram Protocol. Holmgren. May 1979. (Format: - TXT=38133 bytes) - -0098 TCP Implementation Status. Postel. May 1979. (Format: TXT=24610 - bytes) - -0099 NI FTP: Summary and Assessment. Higginson. May 1979. (Format: - TXT=8949 bytes) - -0100 Comparison of the DIN FTP and the NI FTP. Bennett. May 1979. - (Format: TXT=23855 bytes) - -0101 AUTODIN FTP Summary. Forsdick. May 1979. - -0102 Comparison of AUTODIN FTP with NI FTP. Forsdick. May 1979. - -0103 An Experimental Network Information. Pickens. May 1979. (Format: - TXT=18778 bytes) - -0104 Minutes of the Fault Isolation Meeting. Strazisar. March 1979. - (Format: TXT=10861 bytes) - -0105 ARPA Catenet Monitoring and Control. Flood Page. May 1979. - -0106 Internet Meeting Notes - 8, 9, 10, and 11 May 1979. Postel. May - 1979. - -0107 SATNET Reconfiguration Plan. Binder. May 1979. (Format: TXT=221 - bytes) - -0108 Internet User Queues. Plummer. June 1979. (Format: TXT=15153 - bytes) - -0109 How to Build a Gateway. Strazisar. August 1979. (Format: - TXT=47588 bytes) - -0110 Internet Addressing and Naming in a Tactical Environment. Cerf. - August 1979. (Format: TXT=10047 bytes) - -0111 Internet Protocol. Postel. August 1979. (Format: TXT=80875 bytes) - -0112 Transmission Control Protocol. Postel. August 1979. (Format: - TXT=158349 bytes) - -0113 Internet Message Protocol. Postel. August 1979. (Format: - TXT=123606 bytes) - -0114 Protocol Options. Postel. August 1979. (Format: TXT=13496 bytes) - -0115 Address Mappings. Postel. August 1979. (Format: TXT=5973 bytes) - -0116 Name Server. Postel. August 1979. (Format: TXT=14039 bytes) - -0117 Assigned Numbers. Postel. August 1979. (Format: TXT=22911 bytes) - -0118 Internet Protocol Handbook Table of Contents. Postel. August - 1979. (Format: TXT=1223 bytes) - -0119 ST - A Proposed Internet Stream Protocol. Forgie. September 1979. - (Format: TXT=96292 bytes) - -0120 Internet Routing and the Network Partition Problem. Perlman. - (Format: TXT=29007 bytes) - -0121 Internet Meeting Notes -. Postel. October 1979. (Format: - TXT=73672 bytes) - -0122 On Addressing and Related Issues (or:. Cohen. October 1979. - (Format: TXT=12102 bytes) - -0123 DOD Standard Internet Protocol. Postel. December 1979. (Format: - TXT=81593 bytes) - -0124 DOD Standard Transmission Control Protocol. Postel. December - 1979. (Format: TXT=166336 bytes) - -0125 Pre-emption. Cerf. December 1979. (Format: TXT=6185 bytes) - -0126 Summary of the ARPA/ETHERNET Community Meeting. Cohen. November - 1979. (Format: TXT=32841 bytes) - -0127 Assigned Numbers. Postel. January 1980. (Format: TXT=24668 bytes) - -0128 DOD Standard Internet Protocol. Postel. January 1980. (Format: - TXT=81507 bytes) - -0129 DOD Standard Transmission Control. Postel. January 1980. (Format: - TXT=167049 bytes) - -0131 Gateway Monitoring Protocol. Flood Page. February 1980. (Format: - TXT=18748 bytes) - -0132 The CMCC Terminal Process. Flood Page. February 1980. (Format: - TXT=21672 bytes) - -0133 The TFTP Protocol. Sollins. January 1980. (Format: TXT=18188 - bytes) - -0134 Internet Meeting Notes -. Postel. February 1980. (Format: - TXT=28868 bytes) - -0135 Addressing Mobile Hosts in the ARPA Internet Environment. - Sunshine. (Format: TXT=16472 bytes) - -0136 Memory Management Extensions to the SRI Micro Operating System - for. Wiseman. May 1980. (Format: TXT=86526 bytes) - -0137 On Holy Wars and a Plea for Peace. Cohen. April 1 1980. (Format: - TXT=35861 bytes) - -0138 Initial Comparison of EPRs and IPRs in the Pup Internet - Environment. Shoch. April 1980. - -0139 HOSTs as IMPs. Haverty. April 1980. (Format: TXT=11035 bytes) - -0140 Mutual Encapsulation of Internetwork Protocols. Shoch. April - 1980. - -0141 Message System Issues. Bennett. April 1980. (Format: TXT=27787 - bytes) - -0142 Time Server. Postel. April 1980. (Format: TXT=2705 bytes) - -0143 Environment Considerations for. Saltzer. March 1980. (Format: - TXT=10567 bytes) - -0144 Source Routing for Campus-Wide Internet Transport. Saltzer. March - 1980. (Format: TXT=40643 bytes) - -0145 Internet Meeting Notes - 14 & 15 May 1980. Postel. May 1980. - (Format: TXT=33375 bytes) - -0146 Flying Packet Radios and Network Partitions. Perlman. June 1980. - (Format: TXT=26990 bytes) - -0147 Utilizing Internet Routes as Expressways Through Slow Nets. - Perlman. June 1980. (Format: TXT=17399 bytes) - -0148 Telnet Protocol Specification. Postel. June 1980. (Format: - TXT=40005 bytes) - -0149 File Transfer Protocol Specification. Postel. June 1980. (Format: - TXT=146641 bytes) - -0150 TCP JSYS Calling Sequences. Plummer. June 1980. (Format: - TXT=12924 bytes) - -0151 Final Report of the Stanford University TCP Project. Cerf. April - 1 1980. (Format: TXT=16588 bytes) - -0152 DoD Protocol Standardization. Cerf. July 1980. (Format: TXT=23011 - bytes) - -0153 Realization of the Yellow Book Transport Service Above TCP. - Bennett. July 1980. (Format: TXT=25237 bytes) - -0154 Realization of the Yellow Book Transport Service Above TCP. - Bennett. July 1980. (Format: TXT=24484 bytes) - -0155 The Yellow Book Transport Service: Principles and Status. - Bennett. August 1980. (Format: TXT=19331 bytes) - -0156 Controlled Routing in the Catenet Environment. Cohen. September - 1980. (Format: TXT=8649 bytes) - -0157 CMCC Performance Measurement Message Formats. Flood Page. - September 1980. (Format: TXT=14109 bytes) - -0158 XNET Formats for Internet Protocol Version 4. Haverty. October - 1980. (Format: TXT=6571 bytes) - -0159 Notes on the "Worm" Programs - Some Early Experience with a - Distributed Computation. Shoch. October 1980. (Format: TXT=1821 - bytes) - -0160 Internet Meeting Notes -. Postel. November 1980. (Format: - TXT=55488 bytes) - -0161 A Proposal for Simple Measurement Support for Users. Jones. - November 1980. (Format: TXT=14980 bytes) - -0162 Transport, Addressing, and Routing in the Wideband Net. Pershing. - October 1980. (Format: TXT=25751 bytes) - -0163 Echo Delay Measurements with GGP Packets. Jones. November 1980. - (Format: TXT=19076 bytes) - -0164 CMOS System Overview. Stern. January 1981. (Format: TXT=39855 - bytes) - -0165 About Addressing in the WBnet. Cohen. January 1981. (Format: - TXT=8648 bytes) - -0166 Design of TCP/IP for the TAC. Hinden. January 1981. (Format: - TXT=44984 bytes) - -0167 HP3000 TCP Design Document. Sax. July 1980. (Format: TXT=106321 - bytes) - -0168 VAX-UNIX Networking Support Project Implementation Description. - Gurwitz. January 1981. (Format: TXT=34041 bytes) - -0169 A Simple NIFTP-Based Mail System. Bennett. January 1981. (Format: - TXT=65075 bytes) - -0170 On IP-Addressing. Cohen. January 1981. (Format: TXT=3711 bytes) - -0171 Addressing in the ARPAnet, Another Visit. Cohen. January 1981. - (Format: TXT=11009 bytes) - -0172 A Simple Message Generator. FloodPage. March 1981. (Format: - TXT=22933 bytes) - -0173 Time Synchronization in DCNET Hosts. Mills. February 1981. - (Format: TXT=21052 bytes) - -0174 Private Network DTE Addressing. CCITT. February 1981. (Format: - TXT=19898 bytes) - -0175 Internet Meeting Notes -- 28-29-30 January 1981. Postel. March - 1981. (Format: TXT=62479 bytes) - -0176 The DECSYSTEM-20 TCP/IP User Interface. Lyons. March 1981. - (Format: TXT=35180 bytes) - -0177 Comments on Action Items from the January Meeting. Postel. March - 1981. (Format: TXT=12006 bytes) - -0178 Addressing Problems in Multi-Network Systems. Sunshine. April - 1981. (Format: TXT=39859 bytes) - -0179 Addressing and Routing. Cohen. March 1981. (Format: TXT=9987 - bytes) - -0180 A Suggestion for Internet Message Forwarding for MOSIS. Cohen. - March 1981. (Format: TXT=6695 bytes) - -0181 Van Gateway: Some Routing and Performance Issues. Haverty. May - 1981. (Format: TXT=12870 bytes) - -0182 Issues in Buffer Management. Rosen. May 1981. (Format: TXT=86916 - bytes) - -0183 Logical Addressing. Rosen. May 1981. (Format: TXT=92341 bytes) - -0184 Issues in Internetting Part 1: Modelling The Internet. Rosen. May - 1981. (Format: TXT=49151 bytes) - -0185 Development of UK/US Network Services. Braden. May 1981. (Format: - TXT=46840 bytes) - -0186 Proposed DCEC IP Specification. Bernstein. May 1981. (Format: - TXT=153325 bytes) - -0187 Issues in Internetting Part 2: Accessing The Internet. Rosen. - June 1981. (Format: TXT=126888 bytes) - -0188 Issues in Internetting Part 3: Addressing. Rosen. June 1981. - (Format: TXT=61814 bytes) - -0189 Issues in Internetting Part 4: Routing. Rosen. June 1981. - (Format: TXT=173519 bytes) - -0190 Routing and Access Control in UK to US Services. Cole. July 1981. - (Format: TXT=29467 bytes) - -0191 Comments on Rosen's Memos. Sunshine. July 1981. (Format: - TXT=27506 bytes) - -0192 Host/Satnet Protocol. McNeill. July 1981. (Format: TXT=86707 - bytes) - -0193 Timer-Based Mechanisms in Reliable Transport Protocol Connection - Management. Watson. July 1981. - -0194 DCNET Mail Plan. Mills. July 1981. (Format: TXT=28467 bytes) - -0195 Comments on NBS Transport Protocol Proposal. Sunshine. August - 1981. (Format: TXT=24031 bytes) - -0196 Issues Involving Non-Routing Gateways. Bowman. September 1981. - (Format: TXT=43940 bytes) - -0197 A Host Monitoring Protocol. Littauer. September 1981. (Format: - TXT=51234 bytes) - -0198 Extended Memory MOS for a Unix Development Host. Cole. September - 1981. (Format: TXT=33597 bytes) - -0199 not issued. -----. - -0200 Internet Project Research Planning Report. Clark. December 1981. - (Format: TXT=19737 bytes) - -0201 Internet Short Term Service Goals. Clark. December 1981. (Format: - TXT=18113 bytes) - -0202. - -0203. - -0204. - -0205. - -0206. - -0207 Dod Policy on Standardization of Communications Networks. - DeLauer. March 1982. (Format: TXT=3776 bytes) - -0211 Protocol Specification and Verification. Sunshine. August 1982. - (Format: TXT=24254 bytes) - -0212 IP - Local Area Network Addressing Issues. Gurwitz. September - 1982. (Format: TXT=16915 bytes) diff --git a/text/ien/.message b/text/ien/.message deleted file mode 100644 index a2b85c38..00000000 --- a/text/ien/.message +++ /dev/null @@ -1,6 +0,0 @@ -*====================================================================* -* * -* This directory is maintained by the RFC Editor. If you experience * -* any problems, please report them to rfc-editor@rfc-editor.org. * -* * -*====================================================================* diff --git a/text/ien/ien-index.html~ b/text/ien/ien-index.html~ deleted file mode 100644 index b720bc79..00000000 --- a/text/ien/ien-index.html~ +++ /dev/null @@ -1,1607 +0,0 @@ - - -Internet Experiment Note Index - - - -

-Internet Experiment Note Index

-

-

2 Mar 83

-

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
IENAuthorDateTitle
1Hinchley29-Jul-77 -Issues in the Interconnection of Datagram - Networks -
2Postel15-Aug-77 -Comments on Internet Protocols and TCP - -
3Postel18-Aug-77 -Internet Meeting Notes - 15 August 1977 -
4Rubin16-May-77 -Specification for a General Network - Conferencing System Voice - Communication Supervisor -
5CerfMar-77 -TCP Version 2 Specification -
6Cerf23-Aug-77 -Gateways and Network Interfaces -
7-----Jul-77 -X.25 Specification -
8UCL--- -Gateway Experiments in Connection with the Packet Satellite Project -[1-page notice: missing from file]
9Perlman26-Aug-77 -Host/SIMP Protocol -
10Plummer7-Mar-77 -Internet Broadcast Issues -
11Cohen21-Mar-77 -Internetting or Beyond NCP -
12Garlick15-Mar-77 -Issues in Reliable Host-to-Host - Protocols -
13UCL--- -GNOME User's Guide -
14Nelson28-Feb-77 -Thoughts on Multi-net Control and Data - Collection Facilities -
15Plummer15-Sep-77 -Thoughts about TCP Retransmission - Techniques -
16Postel20-May-77 -Extensible Field Addressing -
17BochmanMar-77 -Datagrams as a Public Packet-switched - Data Transmission Service -
18Burchfiel26-Oct-76 -TCP Revisions -
19ShochJan-78 -Inter-Network Naming, Addressing, and - Routing -
20ShochJan-78 -Inter-Network Fragmentation and the TCP -
21CerfJan-78 -TCP 3 Specification -
22Postel3-Feb-78 -Internet Meeting Notes - - 1 February 1978 -
23Cohen23-Jan-78 -On Names, Addresses and Routings -
24Perlman27-Jan-78 -Gateway Routing -
25Strazisar25-Jan-78 -Gateway Dynamic Routing -
26Cerf14-Feb-78 -A Proposed New Internet Header Format -
27Cerf14-Feb-78 -A Proposal for TCP Version 3.1 Header - Format -
28PostelFeb-78 -Draft Internetwork Protocol - Specification -
29Day--- -A Note on Urgent in TCP -
30Strazisar11-Apr-78 -Gateway Routing: An Implementation - Specification -
31Cohen28-Apr-78 -On Names, Addresses and Routings (II) -
32Davidson28-Apr-78 -Catenet Monitoring and Control: A Model - for the Gateway Component -
33Bennett15-May-78 -Internet Meeting Notes - 1&2 May 1978 -
34Bennett25-Apr-78 -The GNOME Controller -
35Kirstein28-Apr-78 -SATNET and the Provision of Transnet - Service -
36Cashman27-Dec-76 -NSW File Package -
37Millstein--- -NSW Bibliography -
38Postel17-May-78 -NSW Transaction Protocol (NSWTP) -
39Postel17-May-78 -NSW Data Representation (NSWB8) -
40PostelJun-78 -Specification of Internetwork - Transmission Control Protocol - - Version 4 -
41PostelJun-78 -Internetwork Protocol Specification - - Version 4 -
42Edmond12-Jun-78 -SATNET Information -
43PouzinFeb-77 -Interconnection of Virtual Circuits and - Datagrams -
44PostelJun-78 -Latest Header Formats -
45Plummer5-Jun-78 -TCP Checksum Function Design -
46ClarkJun-78 -A Proposal for Addressing and Routing - in the Internet -
47-------- -CCITT Draft Recommendation on the - Numbering Plan for Public Data - Networks -
48CerfJul-78 -The Catenet Model for Internetworking -
49Higginson24-Jul-78 -Comments on the Proposed TCP Checksum - Scheme -
50Edge--- -A Comparative Evaluation of - Retransmission Techniques -
51Bennett21-Jul-78 -Types of Service on the Catenet -
52Cohen11-Aug-78 -Some Thoughts About the Multiplexing - Issue in Networks -
53Postel21-Aug-78 -Internet Meeting Notes - - 2,3&4 August 1978 -
54PostelSep-78 -Internetwork Protocol Specification - Version 4 -
55PostelSep-78 -Specification of Internetwork - Transmission Control Protocol - TCP Version 4 -
56Reed11-Sep-78 -CRC Checksum Calculation -
57Plummer5-Oct-78 -Provisional TCP Development Plan -
58PerlmanOct-78 -Access Control: An Informal Discussion -
59Bennett23-Oct-78 -The UCL Transnet File Transfer - Implementation -
60Davidson17-Oct-78 -Boston Area Meeting of the Internet - Working Group to Discuss - Interactions with Gateways -
61Postel27-Oct-78 -Internet Name Server -
62Davidson27-Oct-78 -Enriched Internet Addressing of ARPANET - Resources - An Interim Proposal -
63Postel14-Nov-78 -Internet Meeting Notes - - 30&31 October 1978 -
64Sunshine12-Mar-78 -TCP Meeting Notes - 12 March 1977 -
65Postel5-Aug-78 -TCP Meeting Notes - 14 & 15 July 1977 -
66Postel21-Oct-77 -TCP Meeting Notes - - 13 & 14 October 1977 -
67Postel8-Feb-78 -TCP Meeting Notes - - 30 & 31 January 1978 -
68Postel27-Jun-78 -TCP Meeting Notes - 15 & 16 June 1978 -
69Postel9-Oct-78 -TCP Meeting Notes - - 18 & 19 September 1978 -
70Postel15-Dec-78 -TCP Meeting Notes - 4 December 1978 -
71Reed21-Jan-79 -User Datagram Protocol -
72Postel23-Jan-79 -Multiplexing Protocol -
73Abramovitz23-Jan-79 -A TCP Implementation Issue -
74Plummer21-Sep-78 -Sequence Number Arithmetic -
75Plummer21-Sep-78 -The TCP RESET Mechanism -
76Postel7-Feb-79 -Internet Meeting Notes - - 25&26 January 1979 -
77Postel7-Feb-79 -TCP Meeting Notes - 29 January 1979 -
78ShochFeb-79 -Internetwork Experiments with the Bay - Area Packet Radio Network -
79Lozano-PerezJan-79 -A Protocol Test Facility: - Request for Comments -
80PostelFeb-79 -Internet Datagram Protocol -
81PostelFeb-79 -Transmission Control Protocol -
82Chiappa12-Feb-79 -LCS Net Address Format -
83Kirstein23-Mar-79 -Addressing Through Port Expanders -
84Cohen1-Apr-79 -A Modern Application of Teleprocessing -
85PostelMar-79 -Internet Message Protocol -
86Perlman5-Apr-79 -Extended Internet Routing -
87Perlman9-Apr-79 -Internet Flow and Congestion Control -
88Postel2-May-79 -User Datagram Protocol -
89Postel2-May-79 -Internet Name Server -
90Cohen2-May-79 -Multiplexing Protocol -
91Postel2-May-79 -Address Mappings -
92Postel2-May-79 -Protocol Options -
93Postel3-May-79 -Assigned Numbers -
94Postel2-May-79 -Internet Protocol Handbook - Table of Contents -
95Cohen2-May-79 -Source Routing -
96Skelton2-May-79 -The MITRE Cablenet Project -
97HolmgrenMay-79 -Flexible Datagram Protocol -
98Postel3-May-79 -TCP Implementation Status -
99Higginson3-May-79 -NI FTP: Summary and Assessment -
100Bennett3-May-79 -Comparison of the DIN FTP - and the NI FTP -
101Forsdick4-May-79 -AUTODIN FTP Summary -
102Forsdick4-May-79 -Comparison of AUTODIN FTP with NI FTP -
103Pickens4-May-79 -An Experimental Network Information - Center Name Server (NICNAME) -
104Strazisar12-Mar-79 -Minutes of the Fault Isolation Meeting -
105FloodPage -ARPA Catenet Monitoring and Control -
106Postel17-May-79 -Internet Meeting Notes - 8, 9, 10, and - 11 May 1979 -
107BinderMay-79 -SATNET Reconfiguration Plan -
108Plummer19-Jun-79 -Internet User Queues -
109StrazisarAug-79 -How to Build a Gateway -
110Cerf31-Aug-79 -Internet Addressing and Naming in a - Tactical Environment -
111PostelAug-79 -Internet Protocol -
112PostelAug-79 -Transmission Control Protocol -
113PostelAug-79 -Internet Message Protocol -
114PostelAug-79 -Protocol Options -
115PostelAug-79 -Address Mappings -
116PostelAug-79 -Name Server -
117PostelAug-79 -Assigned Numbers -
118PostelAug-79 -Internet Protocol Handbook - Table of Contents -
119Forgie7-Sep-79 -ST - A Proposed Internet Stream - Protocol -
120PerlmanOct-79 -Internet Routing and the Network - Partition Problem -
121Postel25-Oct-79 -Internet Meeting Notes - - 10, 11, 12, & 13, September 1979 -
122Cohen31-Oct-79 -On Addressing and Related Issues (or: - Fuel for a Discussion) -
123PostelDec-79 -DOD Standard Internet Protocol -
124PostelDec-79 -DOD Standard Transmission Control - Protocol -
125CerfDec-79 -Pre-emption -
126CohenNov-79 -Summary of the ARPA/ETHERNET - Community Meeting -
127PostelJan-80 -Assigned Numbers -
128PostelJan-80 -DOD Standard Internet Protocol - (NTIS No. ADA079730) -
129PostelJan-80 -DOD Standard Transmission Control - Protocol (NTIS No. ADA082609) -
130---... -Comparison of X.25 and TCP-4 as - Cable-bus Network Protocols -
131FloodPage -Gateway Monitoring Protocol -
132FloodPage -The CMCC Terminal Process -
133Sollins29-Jan-80 -The TFTP Protocol -
134Postel29-Feb-80 -Internet Meeting Notes - - 4, 5, & 6 February 1980 -
135SunshineMar-80 -Addressing Mobile Hosts in the ARPA - Internet Environment -
136Wiseman1-May-80 -Memory Management Extensions to the SRI - Micro Operating System for - PDP-11/23/34/35/40 -
137Cohen1-Apr-80 -On Holy Wars and a Plea for Peace -
138ShochApr-80 -Initial Comparison of EPRs and IPRs in - the Pup Internet Environment -
139HavertyApr-80 -HOSTs as IMPs -
140ShochApr-80 -Mutual Encapsulation of Internetwork - Protocols -
141Bennett11-Apr-80 -Message System Issues -
142PostelApr-80 -Time Server -
143SaltzerMar-80 -Environment Considerations for - Campus-Wide Networks -
144SaltzerMar-80 -Source Routing for Campus-Wide Internet - Transport -
145Postel29-May-80 -Internet Meeting Notes - 14 & 15 May - 1980 -
146PerlmanJun-80 -Flying Packet Radios and Network - Partitions -
147PerlmanJun-80 -Utilizing Internet Routes as - Expressways Through Slow Nets -
148PostelJun-80 -Telnet Protocol Specification -
149PostelJun-80 -File Transfer Protocol Specification -
150PlummerJun-80 -TCP JSYS Calling Sequences -
151Cerf1-Apr-80 -Final Report of the Stanford University - TCP Project -
152Cerf1-Jul-80 -DoD Protocol Standardization -
153Bennett29-Jul-80 -Realization of the Yellow Book - Transport Service Above TCP -
154Bennett29-Jul-80 -Realization of the Yellow Book - Transport Service Above TCP - (supersedes IEN 153) -
155Bennett12-Aug-80 -The Yellow Book Transport Service: - Principles and Status -
156Cohen7-Sep-80 -Controlled Routing in the Catenet - Environment -
157FloodPage -CMCC Performance Measurement Message - Formats -
158Haverty1-Oct-80 -XNET Formats for Internet Protocol - Version 4 -
159ShochOct-80 -Notes on the "Worm" Programs - Some - Early Experience with a Distributed - Computation -
160Postel7-Nov-80 -Internet Meeting Notes - - 7-8-9 October 1980 -
161JonesNov-80 -A Proposal for Simple Measurement - Support for Users -
162PershingOct-80 -Transport, Addressing, and Routing in - the Wideband Net -
163JonesNov-80 -Echo Delay Measurements with GGP - Packets -
164SternJan-81 -CMOS System Overview -
165CohenJan-81 -About Addressing in the WBnet -
166HindenJan-81 -Design of TCP/IP for the TAC -
167SaxJul-80 -HP3000 TCP Design Document -
168GurwitzJan-81 -VAX-UNIX Networking Support Project - Implementation Description -
169Bennett23-Jan-81 -A Simple NIFTP-Based Mail System -
170Cohen25-Jan-81 -On IP-Addressing -
171Cohen18-Jan-81 -Addressing in the ARPAnet, Another - Visit -
172FloodPage9-Mar-81 -A Simple Message Generator -
173Mills25-Feb-81 -Time Synchronization in DCNET Hosts -
174CCITT12-Feb-81 -Private Network DTE Addressing -
175Postel13-Mar-81 -Internet Meeting Notes -- 28-29-30 - January 1981 -
176LyonsMar-81 -The DECSYSTEM-20 TCP/IP User Interface -
177Postel24-Mar-81 -Comments on Action Items from the - January Meeting -
178SunshineApr-81 -Addressing Problems in Multi-Network - Systems -
179Cohen11-Mar-81 -Addressing and Routing -
180CohenMar-81 -A Suggestion for Internet Message - Forwarding for MOSIS -
181HavertyMay-81 -Van Gateway: Some Routing and - Performance Issues -
182RosenMay-81 -Issues in Buffer Management -
183RosenMay-81 -Logical Addressing -
184RosenMay-81 -Issues in Internetting Part 1: - Modelling The Internet -
185BradenMay-81 -Development of UK/US Network Services - at University College, London -
186BernsteinMay-81 -Proposed DCEC IP Specification -
187RosenJun-81 -Issues in Internetting Part 2: - Accessing The Internet -
188RosenJun-81 -Issues in Internetting Part 3: - Addressing -
189RosenJun-81 -Issues in Internetting Part 4: - Routing -
190Cole9-Jul-81 -Routing and Access Control in UK to US - Services -
191SunshineJul-81 -Comments on Rosen's Memos -
192McNeillJul-81 -Host/Satnet Protocol -
193WatsonJul-81 -Timer-Based Mechanisms in Reliable - Transport Protocol Connection - Management -
194Mills23-Jul-81 -DCNET Mail Plan -
195SunshineAug-81 -Comments on NBS Transport Protocol - Proposal -
196BowmanSep-81 -Issues Involving Non-Routing Gateways -
197LittauerSep-81 -A Host Monitoring Protocol -
198ColeSep-81 -Extended Memory MOS for a Unix - Development Host -
199------ -not issued -
200ClarkDec-81 -Internet Project Research Planning - Report -
201ClarkDec-81 -Internet Short Term Service Goals -
202------ -not issued -
203------ -not issued -
204------ -not issued -
205------ -not issued -
206------ -not issued -
207DeLauerMar-82 -DoD Policy on Standardization of - Host-to-Host Protocols for Data - Communications Networks -
208------ -not issued -
209------ -not issued -
210------ -not issued -
211SunshineAug-82 -Protocol Specification and Verification - Work at USC/ISI -
212GurwitzSep-82 -IP-Local Area Network Addressing Issues -
-
- - diff --git a/text/ien/ien-index.txt b/text/ien/ien-index.txt deleted file mode 100644 index b16eb7cf..00000000 --- a/text/ien/ien-index.txt +++ /dev/null @@ -1,406 +0,0 @@ - - 2 Mar 83 -Internet Experiment Note Index - - - - - - - Internet Experiment Note Index - - - -IEN Author Date Title ---- ------ ---- ----- - 1 Hinchley 29-Jul-77 Issues in the Interconnection of - Datagram Networks - 2 Postel 15-Aug-77 Comments on Internet Protocols and TCP - 3 Postel 18-Aug-77 Internet Meeting Notes - 15 August 1977 - 4 Rubin 16-May-77 Specification for a General Network - Conferencing System Voice - Communication Supervisor - 5 Cerf Mar-77 TCP Version 2 Specification - 6 Cerf 23-Aug-77 Gateways and Network Interfaces - 7 ----- Jul-77 X.25 Specification - 8 UCL --- Gateway Experiments in Connection with - the Packet Satellite Project - 9 Perlman 26-Aug-77 Host/SIMP Protocol - 10 Plummer 7-Mar-77 Internet Broadcast Issues - 11 Cohen 21-Mar-77 Internetting or Beyond NCP - 12 Garlick 15-Mar-77 Issues in Reliable Host-to-Host - Protocols - 13 UCL --- GNOME User's Guide - 14 Nelson 28-Feb-77 Thoughts on Multi-net Control and Data - Collection Facilities - 15 Plummer 15-Sep-77 Thoughts about TCP Retransmission - Techniques - 16 Postel 20-May-77 Extensible Field Addressing - 17 Bochman Mar-77 Datagrams as a Public Packet-switched - Data Transmission Service - 18 Burchfiel 26-Oct-76 TCP Revisions - 19 Shoch Jan-78 Inter-Network Naming, Addressing, and - Routing - 20 Shoch Jan-78 Inter-Network Fragmentation and the TCP - 21 Cerf Jan-78 TCP 3 Specification - 22 Postel 3-Feb-78 Internet Meeting Notes - - 1 February 1978 - 23 Cohen 23-Jan-78 On Names, Addresses and Routings - 24 Perlman 27-Jan-78 Gateway Routing - 25 Strazisar 25-Jan-78 Gateway Dynamic Routing - 26 Cerf 14-Feb-78 A Proposed New Internet Header Format - 27 Cerf 14-Feb-78 A Proposal for TCP Version 3.1 Header - Format - 28 Postel Feb-78 Draft Internetwork Protocol - Specification - - - [page 1] - - 2 Mar 83 -Internet Experiment Note Index - - - - 29 Day --- A Note on Urgent in TCP - 30 Strazisar 11-Apr-78 Gateway Routing: An Implementation - Specification - 31 Cohen 28-Apr-78 On Names, Addresses and Routings (II) - 32 Davidson 28-Apr-78 Catenet Monitoring and Control: A Model - for the Gateway Component - 33 Bennett 15-May-78 Internet Meeting Notes - 1&2 May 1978 - 34 Bennett 25-Apr-78 The GNOME Controller - 35 Kirstein 28-Apr-78 SATNET and the Provision of Transnet - Service - 36 Cashman 27-Dec-76 NSW File Package - 37 Millstein --- NSW Bibliography - 38 Postel 17-May-78 NSW Transaction Protocol (NSWTP) - 39 Postel 17-May-78 NSW Data Representation (NSWB8) - 40 Postel Jun-78 Specification of Internetwork - Transmission Control Protocol - - Version 4 - 41 Postel Jun-78 Internetwork Protocol Specification - - Version 4 - 42 Edmond 12-Jun-78 SATNET Information - 43 Pouzin Feb-77 Interconnection of Virtual Circuits and - Datagrams - 44 Postel Jun-78 Latest Header Formats - 45 Plummer 5-Jun-78 TCP Checksum Function Design - 46 Clark Jun-78 A Proposal for Addressing and Routing - in the Internet - 47 ----- --- CCITT Draft Recommendation on the - Numbering Plan for Public Data - Networks - 48 Cerf Jul-78 The Catenet Model for Internetworking - 49 Higginson 24-Jul-78 Comments on the Proposed TCP Checksum - Scheme - 50 Edge --- A Comparative Evaluation of - Retransmission Techniques - 51 Bennett 21-Jul-78 Types of Service on the Catenet - 52 Cohen 11-Aug-78 Some Thoughts About the Multiplexing - Issue in Networks - 53 Postel 21-Aug-78 Internet Meeting Notes - - 2,3&4 August 1978 - 54 Postel Sep-78 Internetwork Protocol Specification - Version 4 - 55 Postel Sep-78 Specification of Internetwork - Transmission Control Protocol - TCP Version 4 - 56 Reed 11-Sep-78 CRC Checksum Calculation - 57 Plummer 5-Oct-78 Provisional TCP Development Plan - 58 Perlman Oct-78 Access Control: An Informal Discussion - 59 Bennett 23-Oct-78 The UCL Transnet File Transfer - Implementation - - - [page 2] - - 2 Mar 83 -Internet Experiment Note Index - - - - 60 Davidson 17-Oct-78 Boston Area Meeting of the Internet - Working Group to Discuss - Interactions with Gateways - 61 Postel 27-Oct-78 Internet Name Server - 62 Davidson 27-Oct-78 Enriched Internet Addressing of ARPANET - Resources - An Interim Proposal - 63 Postel 14-Nov-78 Internet Meeting Notes - - 30&31 October 1978 - 64 Sunshine 12-Mar-78 TCP Meeting Notes - 12 March 1977 - 65 Postel 5-Aug-78 TCP Meeting Notes - 14 & 15 July 1977 - 66 Postel 21-Oct-77 TCP Meeting Notes - - 13 & 14 October 1977 - 67 Postel 8-Feb-78 TCP Meeting Notes - - 30 & 31 January 1978 - 68 Postel 27-Jun-78 TCP Meeting Notes - 15 & 16 June 1978 - 69 Postel 9-Oct-78 TCP Meeting Notes - - 18 & 19 September 1978 - 70 Postel 15-Dec-78 TCP Meeting Notes - 4 December 1978 - 71 Reed 21-Jan-79 User Datagram Protocol - 72 Postel 23-Jan-79 Multiplexing Protocol - 73 Abramovitz 23-Jan-79 A TCP Implementation Issue - 74 Plummer 21-Sep-78 Sequence Number Arithmetic - 75 Plummer 21-Sep-78 The TCP RESET Mechanism - 76 Postel 7-Feb-79 Internet Meeting Notes - - 25&26 January 1979 - 77 Postel 7-Feb-79 TCP Meeting Notes - 29 January 1979 - 78 Shoch Feb-79 Internetwork Experiments with the Bay - Area Packet Radio Network - 79 Lozano-Perez Jan-79 A Protocol Test Facility: - Request for Comments - 80 Postel Feb-79 Internet Datagram Protocol - 81 Postel Feb-79 Transmission Control Protocol - 82 Chiappa 12-Feb-79 LCS Net Address Format - 83 Kirstein 23-Mar-79 Addressing Through Port Expanders - 84 Cohen 1-Apr-79 A Modern Application of Teleprocessing - 85 Postel Mar-79 Internet Message Protocol - 86 Perlman 5-Apr-79 Extended Internet Routing - 87 Perlman 9-Apr-79 Internet Flow and Congestion Control - 88 Postel 2-May-79 User Datgram Protocol - 89 Postel 2-May-79 Internet Name Server - 90 Cohen 2-May-79 Multiplexing Protocol - 91 Postel 2-May-79 Address Mappings - 92 Postel 2-May-79 Protocol Options - 93 Postel 3-May-79 Assigned Numbers - 94 Postel 2-May-79 Internet Protocol Handbook - Table of Contents - 95 Cohen 2-May-79 Source Routing - 96 Skelton 2-May-79 The MITRE Cablenet Project - 97 Holmgren May-79 Flexible Datagram Protocol - - - [page 3] - - 2 Mar 83 -Internet Experiment Note Index - - - - 98 Postel 3-May-79 TCP Implementation Status - 99 Higginson 3-May-79 NI FTP: Summary and Assessment - 100 Bennett 3-May-79 Comparison of the DIN FTP - and the NI FTP - 101 Forsdick 4-May-79 AUTODIN FTP Summary - 102 Forsdick 4-May-79 Comparison of AUTODIN FTP with NI FTP - 103 Pickens 4-May-79 An Experimental Network Information - Center Name Server (NICNAME) - 104 Strazisar 12-Mar-79 Minutes of the Fault Isolation Meeting - 105 Flood Page 25-May-79 ARPA Catenet Monitoring and Control - 106 Postel 17-May-79 Internet Meeting Notes - 8, 9, 10, and - 11 May 1979 - 107 Binder May-79 SATNET Reconfiguration Plan - 108 Plummer 19-Jun-79 Internet User Queues - 109 Strazisar Aug-79 How to Build a Gateway - 110 Cerf 31-Aug-79 Internet Addressing and Naming in a - Tactical Environment - 111 Postel Aug-79 Internet Protocol - 112 Postel Aug-79 Transmission Control Protocol - 113 Postel Aug-79 Internet Message Protocol - 114 Postel Aug-79 Protocol Options - 115 Postel Aug-79 Address Mappings - 116 Postel Aug-79 Name Server - 117 Postel Aug-79 Assigned Numbers - 118 Postel Aug-79 Internet Protocol Handbook - Table of Contents - 119 Forgie 7-Sep-79 ST - A Proposed Internet Stream - Protocol - 120 Perlman Oct-79 Internet Routing and the Network - Partition Problem - 121 Postel 25-Oct-79 Internet Meeting Notes - - 10, 11, 12, & 13, September 1979 - 122 Cohen 31-Oct-79 On Addressing and Related Issues (or: - Fuel for a Discussion) - 123 Postel Dec-79 DOD Standard Internet Protocol - 124 Postel Dec-79 DOD Standard Transmission Control - Protocol - 125 Cerf Dec-79 Pre-emption - 126 Cohen Nov-79 Summary of the ARPA/ETHERNET - Community Meeting - 127 Postel Jan-80 Assigned Numbers - 128 Postel Jan-80 DOD Standard Internet Protocol - (NTIS No. ADA079730) - 129 Postel Jan-80 DOD Standard Transmission Control - Protocol (NTIS No. ADA082609) - 130 --- ... Comparison of X.25 and TCP-4 as - Cable-bus Network Protocols - 131 Flood Page 1-Feb-80 Gateway Monitoring Protocol - 132 Flood Page 1-Feb-80 The CMCC Terminal Process - - - [page 4] - - 2 Mar 83 -Internet Experiment Note Index - - - - 133 Sollins 29-Jan-80 The TFTP Protocol - 134 Postel 29-Feb-80 Internet Meeting Notes - - 4, 5, & 6 February 1980 - 135 Sunshine Mar-80 Addressing Mobile Hosts in the ARPA - Internet Environment - 136 Wiseman 1-May-80 Memory Management Extensions to the SRI - Micro Operating System for - PDP-11/23/34/35/40 - 137 Cohen 1-Apr-80 On Holy Wars and a Plea for Peace - 138 Shoch Apr-80 Initial Comparison of EPRs and IPRs in - the Pup Internet Environment - 139 Haverty Apr-80 HOSTs as IMPs - 140 Shoch Apr-80 Mutual Encapsulation of Internetwork - Protocols - 141 Bennett 11-Apr-80 Message System Issues - 142 Postel Apr-80 Time Server - 143 Saltzer Mar-80 Environment Considerations for - Campus-Wide Networks - 144 Saltzer Mar-80 Source Routing for Campus-Wide Internet - Transport - 145 Postel 29-May-80 Internet Meeting Notes - 14 & 15 May - 1980 - 146 Perlman Jun-80 Flying Packet Radios and Network - Partitions - 147 Perlman Jun-80 Utilizing Internet Routes as - Expressways Through Slow Nets - 148 Postel Jun-80 Telnet Protocol Specification - 149 Postel Jun-80 File Transfer Protocol Specification - 150 Plummer Jun-80 TCP JSYS Calling Sequences - 151 Cerf 1-Apr-80 Final Report of the Stanford University - TCP Project - 152 Cerf 1-Jul-80 DoD Protocol Standardization - 153 Bennett 29-Jul-80 Realization of the Yellow Book - Transport Service Above TCP - 154 Bennett 29-Jul-80 Realization of the Yellow Book - Transport Service Above TCP - (supersedes IEN 153) - 155 Bennett 12-Aug-80 The Yellow Book Transport Service: - Principles and Status - 156 Cohen 7-Sep-80 Controlled Routing in the Catenet - Environment - 157 Flood Page 21-Sep-80 CMCC Performance Measurement Message - Formats - 158 Haverty 1-Oct-80 XNET Formats for Internet Protocol - Version 4 - 159 Shoch Oct-80 Notes on the "Worm" Programs - Some - Early Experience with a Distributed - Computation - - - - [page 5] - - 2 Mar 83 -Internet Experiment Note Index - - - - 160 Postel 7-Nov-80 Internet Meeting Notes - - 7-8-9 October 1980 - 161 Jones Nov-80 A Proposal for Simple Measurement - Support for Users - 162 Pershing Oct-80 Transport, Addressing, and Routing in - the Wideband Net - 163 Jones Nov-80 Echo Delay Measurements with GGP - Packets - 164 Stern Jan-81 CMOS System Overview - 165 Cohen Jan-81 About Addressing in the WBnet - 166 Hinden Jan-81 Design of TCP/IP for the TAC - 167 Sax Jul-80 HP3000 TCP Design Document - 168 Gurwitz Jan-81 VAX-UNIX Networking Support Project - Implementation Description - 169 Bennett 23-Jan-81 A Simple NIFTP-Based Mail System - 170 Cohen 25-Jan-81 On IP-Addressing - 171 Cohen 18-Jan-81 Addressing in the ARPAnet, Another - Visit - 172 FloodPage 9-Mar-81 A Simple Message Generator - 173 Mills 25-Feb-81 Time Synchronization in DCNET Hosts - 174 CCITT 12-Feb-81 Private Network DTE Addressing - 175 Postel 13-Mar-81 Internet Meeting Notes -- 28-29-30 - January 1981 - 176 Lyons Mar-81 The DECSYSTEM-20 TCP/IP User Interface - 177 Postel 24-Mar-81 Comments on Action Items from the - January Meeting - 178 Sunshine Apr-81 Addressing Problems in Multi-Network - Systems - 179 Cohen 11-Mar-81 Addressing and Routing - 180 Cohen Mar-81 A Suggestion for Internet Message - Forwarding for MOSIS - 181 Haverty May-81 Van Gateway: Some Routing and - Performance Issues - 182 Rosen May-81 Issues in Buffer Management - 183 Rosen May-81 Logical Addressing - 184 Rosen May-81 Issues in Internetting Part 1: - Modelling The Internet - 185 Braden May-81 Development of UK/US Network Services - at University College, London - 186 Bernstein May-81 Proposed DCEC IP Specification - 187 Rosen Jun-81 Issues in Internetting Part 2: - Accessing The Internet - 188 Rosen Jun-81 Issues in Internetting Part 3: - Addressing - 189 Rosen Jun-81 Issues in Internetting Part 4: - Routing - 190 Cole 9-Jul-81 Routing and Access Control in UK to US - Services - 191 Sunshine Jul-81 Comments on Rosen's Memos - - - [page 6] - - 2 Mar 83 -Internet Experiment Note Index - - - - 192 McNeill Jul-81 Host/Satnet Protocol - 193 Watson Jul-81 Timer-Based Mechanisms in Reliable - Transport Protocol Connection - Management - 194 Mills 23-Jul-81 DCNET Mail Plan - 195 Sunshine Aug-81 Comments on NBS Transport Protocol - Proposal - 196 Bowman Sep-81 Issues Involving Non-Routing Gateways - 197 Littauer Sep-81 A Host Monitoring Protocol - 198 Cole Sep-81 Extended Memory MOS for a Unix - Development Host - 199 ----- ------ not issued - 200 Clark Dec-81 Internet Project Research Planning - Report - 201 Clark Dec-81 Internet Short Term Service Goals - 202 Not issued yet. - 203 Not issued yet. - 204 Not issued yet. - 205 Not issued yet. - 206 Not issued yet. - 207 DeLauer Mar-82 Dod Policy on Standardization of - Host-to-Host Protocols for Data - Communications Networks - 211 Sunshine Aug-82 Protocol Specification and Verification - Work at USC/ISI - 212 Gurwitz Sep-82 IP-Local Area Network Addressing Issues - - - - - - - - - - - - - - - - - - - - - - -This file is [ISIF]IEN-INDEX.TXT. - - - [page 7] diff --git a/text/ien/ien1.txt b/text/ien/ien1.txt deleted file mode 100644 index bd177a0c..00000000 --- a/text/ien/ien1.txt +++ /dev/null @@ -1,14 +0,0 @@ - - - - - -Section 2.3.3.1 is "Issues in the Interconnection of Datagram Networks" by -C.J. Bennett, S.W. Edge, and A.J. Hinchley dated 29 July 1977. This document is -also known as INDRA note 637 and PSPWN 76. Please request copies from the -authors. - - - - - diff --git a/text/ien/ien10.txt b/text/ien/ien10.txt deleted file mode 100644 index 4d78606a..00000000 --- a/text/ien/ien10.txt +++ /dev/null @@ -1,224 +0,0 @@ -IEN # 10 William W. Plummer -Supercedes: None BBN -Replaces: None 7 March 1977 - -Section: 2.2.4.1 - - - - - - - - Internet Broadcast Protocols - - - - William W. Plummer - - Bolt Beranek and Newman, Inc. - 50 Moulton Street - Cambridge, Mass. 02173 - - - 7 March 77 - -Internet Broadcast Protocols Plummer, 7MAR77 - - -1. The Applications - - At least two applications of a broadcast mechanism have come -into view: a "news wire" service, where error-free delivery is required, -and a "network speech" protocol where a small percentage of dropped or -corrupted messages is permitted. TCP is applicable to the former since -it is designed to provide highly reliable connections, perhaps with some -penalty in time. To use TCP for network speech however, would required -adding features specifically to defeat parts of the protocol. - - The question of using a modified TCP for speech-type applications -will be deferred for further study. TCP does provide some useful -features (reliable establishment of connections, a way of naming connections, -ability to reset half-open connections, etc.) which would be required in -any application, but the issues which surface when partial reliability -is permitted are complex. - - TCP is a good choice for the "news wire" application. Here, a -receiver may "tune in" to a source of reports and while he is connected, -will receive continuous, error-free delivery. In the following a -mechanism for doing this will be proposed. - - - -2. An Assumption and its Consequences - - A fundamental assumption of internet protocols (not only TCP) is -that no special requirements may be placed on the participating networks. -All they must be able to do is deliver a minimum sized packet with some -semblance of reliability (Packet Radio Network is designed about a 10 -percent loss rate). Various networks such as Packet Radio and Packet -Satellite are fundamentally broadcast in nature and it would seem -that some advantage of this could be taken. However, to rely on these -properties in order to make a broadcast mechanism work would imply -retrofitting wired, single receiver networks such as the ARPANET so that -their subnets had similar features. This would violate the above stated -assumption about internetting. - - Having to cope with single-receiver subnets suggests two ways to -implement broadcasting. One is the "read-this-and-pass-it-on" arrangement, -and the other uses one or more distribution agents ("distributors"). - -The former solution has a major flaw in that service to all -receivers will be interrupted should any host, intermediate network, -or gateway fail, because acknowledgments from the last host cannot -be returned to the broadcast source. This is just too fragile; the -distributor concept offers much better reliability. - -Internet Broadcast Protocols Plummer, 7MAR77 - - -3. Distributor - - Building a distributor involves writing a distribution server -program which implements a layer of protocol not only above the subnet, -but above TCP! This a is highly desirable property since it separates -the connection maintenance function from the broadcast function. - - A distribution server operates as follows: It "listens" for -a connection from anyone wishing to initiate a broadcast. Once this -connection has become bound, the broadcast source supplies a distribution -list (exact form and content will be described later). If all goes well, -the distribution server will respond with the name of a specific -input connection to itself to be used by the broadcasting process. -The distribution server then establishes as may secondary connections -as it sees fit -- some of which may go to other distributors in the same -or different networks. - - The process run by the distributor for each specific connection -simply reads a message from the broadcast source over the input connection -and sends it out over each of the output connections. As previously -mentioned, some of the output connections will be directly to specific -receivers, but others will be to secondary distributors. In order to -prevent hang-ups, it is required that each output connection address a -set of receivers which is more specific than the input distribution -list. Thus it would be improper for a distribution server to accept -an input list of "Net 3, all hosts" and open two output connections, -one to "Net 3, Host 100" and the other to a distributor for the purpose -of broadcasting to "Net 3, all hosts". This secondary distribution -list is not more specific than the input list and results in -"Net 3, Host 100" being covered twice, most likely resulting in a -hang-up if only one process is receiving the broadcast. - - -4. Connection Closing and Errors - - Connections out of a distributor may be closed at any time -by the receiver. When all of the output connections have closed, the -distributor will close its input connection. Retransmission timeouts -are to be treated as connection closings if they address a specific -receiving process. On the other hand a timeout on an output connection -to a secondary distributor might be handled by attempting to reestablish -communications via some different distributor, or if resources permit, -to make specific output connections to each of the intended receivers. - -Internet Broadcast Protocols Plummer, 7MAR77 - - - -5. Flow Control - - Flow is governed by the window announced by the distributor to -the broadcaster. This window is a reflection of the amount of buffer -space available in the distribution server itself, which in turn is -a function of the number of output connections and the amount of -unacknowledged information of each of these. This automatically -provides a safeguard against any particular output connection tying -up buffer space in the distributor by telling the distributor that -it is able to receive a vast amount of data and then being very slow -at processing it -- this situation cannot arise because the distributor -will not send anymore than it has received, and it will not have received -much if its buffer space is committed to waiting for ACK for packets -on slow output connections. - - - -6. Resynchronization, etc. - - Resynchronization, sending ARQs, letter size management, and -segment reassembly are handled inside the distributor, transparently -to the broadcaster. Only connection opening and closing, and data -acknowledgement involve any communications back to the broadcaster. - - - -7. Multiple Distributors and the Billboard - - Any host should be able to run a distribution server and a -potential broadcaster could select any one that he can contact. Which -one(s) will be dictated by other, outside constraints such as privacy, -accounting, etc. On the other hand a potential receiver may want to -find out where a good, relatively local source of some type of broadcast -information is -- say weather information, but not airline flight -information. To handle this need, each distribution list -will contain a title. Upon setting up an instance of the distribution -function, the title from the distribution list will be copied into -a server-wide table along with the name of a local listening connection -which is intended to service new output connections. - - In addition to the normal listening connection for new distribution -lists, the distributor will maintain a listening connection for its -billboard function. This will be on a well-known socket. A potential -receiver looking for a specific kind of broadcast would do it by -polling the distributors that it knows about, establishing a connection -to the billboard function on each, and looking at what is listed to -see if the desired information is being broadcast at that moment. - -Internet Broadcast Protocols Plummer, 7MAR77 - - - -If so, the distributor (output) socket listed will be used to tap -the information. Should the broadcast cease before the data connection -is established, it is desirable to have the data connection attempt fail. -However, it must also be the case that establishing the data connection -does not pick up a newer instance of a distribution list. So, some -simple additional protocol is needed to resolve this issue. This most -likely will take the form of verifying the data connection attempt -on the basis of a random key passed out by the billboard function. - - - -8. Knowing Distributor Addresses - - The problem of knowing the identity (Network, Host) where -distribution servers are running is common to both potential receivers -and potential broadcast senders. This problem is not peculiar to -to the broadcast mechanism; it is the same one as a user faces when -he want to use a FORTRAN system on some (i.e., any) host. A master -service directory must be consulted. This could be a printed list -like a telephone book or it could be implemented by a program, but -it not a problem to be solved by the broadcast mechanism. - - - -9. Controlled Unreliability - - Although it is felt that TCP is not well suited for the net speech -type of service, there are a few considerations which might make this -possible. First, the broadcast source can "clear the pipe" at any time -by sending a TCP level interrupt (INT) which forces all receivers to -flush their current receive buffers. The broadcaster would do this if -the rate of delivery had dropped below some predetermined rate. Notice -that if the rate had gotten slow due to some host in the tree of -distributors and receivers having crashed, then the INT will not be -acknowledged, the distributor before the failed host will suffer a -retransmission failure on the INT, and will mark that output connection -as closed. This has the overall effect of causing a momentary loss of -data to many (if not all) receivers, but permanently removes the slow -or crashed receiver from the distribution. - - Another possiblity is that acknowledgements could be faked -either by the sources TCP or by distributors. The problems involved -are that control bytes can never by covered by fake ACKs, and that -window information must be carefully handled. - diff --git a/text/ien/ien100.txt b/text/ien/ien100.txt deleted file mode 100644 index 886dfe0a..00000000 --- a/text/ien/ien100.txt +++ /dev/null @@ -1,470 +0,0 @@ - - - - - - - - - - - -INDRA Note 754 -IEN 100 -May 3rd 1979 - - - - - - - - - - - Comparison of the DIN FTP and the NI FTP - - C. J. Bennett - P. L. Higginson - - - - - - - - - - - ABSTRACT: This note assesses the DIN FTP - proposed for AUTODIN II according to - design aims developed in IEN 99. The - facilities available in the DIN FTP are - compared with those in the NI FTP. - - 2 - - - - The FTP proposed by BBN for AUTODIN II is conceptually closely -related to NI FTP. Many of its basic concepts are derived from it, -including the fundamental notions of the conceptual file store and -parameter negotiation. Many of the attributes used are extensions or -restrictions of NI FTP attributes, although the coding is rather -different. Thus the approach taken in this note is to view the DIN FTP -as an alternative approach to realising the same design aims. The two -FTPs are therefore compared according to the design requirements -developed in IEN 99. Additionally, where the FTPs differ significantly -in the facilities offered to the user, these facilities are compared -directly. - -DIN FTP AND THE NI FTP DESIGN REQUIREMENTS - -(i) Transport service independence. The DIN FTP makes the following -assumptions about the underlying transport service: - - (a) The transport service will provide a synchronised sequenced - stream of octets between the two ends. This is the same as the NI - FTP. - - (b) All recoverable errors are handled by the transport service. - (This is by implication, as the point is not explicitly discussed. - This is certainly the level of service provided by TCP). As the - DIN FTP incorporates all the recovery mechanisms of the NI FTP, - this defect can be easily remedied, but as the specification stands - it cannot be used above X25 or similar services, which use a - transport service RESET involving loss of data. - - (c) The identity of the host of the connection initiator will be - made available by the transport service (as all references to the - 'Controlling Host ID' and 'Active Host ID' are by citation). This - is of course a reasonable assumption but not a necessary one. For - example, the UCL NI FTP project is investigating NI FTP above - mapped concatenated virtual calls. In this situation, the only - addressing information which could be supplied from a transport - service is the address of the last transport protocol convertor. - - (d) Any implementation using the UserID parameter assumes the - transport service will perform authentication actions at all sites - involved in the transfer. This assumption is only true of the - Secure TCP; hence implementations using this parameter can only be - used on AUTODIN II. We will return to the issue of access control - below. - -(ii) Supportable applications. The DIN FTP has removed several options -of the NI FTP which are useful in this regard. These include: - - (a) The ability to mix codes in a file. There are several - applications where this is useful, such as job output and graphics. - An example of more immediate interest is mixed FAX and text - messages. This restriction is arbitrary and could easily be - - 3 - - - - removed from the DIN FTP (though the FileDataType parameter must be - redefined to be bit-coded). - - (b) Knowledge of the output device type. This prevents the DIN FTP - from being used in spooling applications. - - (c) The distinction between selectors and modifiers. This is a - property of the conceptual filestore. Its use is not very apparent - in the NI FTP as such, but it enables other protocols such as Job - Transfer and File Management protocols to be built easily. - (Consider the difference between 'Select File with FileName X' and - 'Modify (selected) FileName to X'.) The topic of other protocols - will be returned to later. - - (d) The ability to readily trace file transfers in system logs - through the Monitor Message parameter. This is particularly useful - for error tracing and for following up user complaints. - -(iii) Operating system independence. The DIN FTP has removed several -attributes which will make it difficult to implement it on some -operating systems. In particular we note the following NI FTP -attributes omitted in the DIN FTP which may cause problems in this -regard: - - (a) Maximum Transfer Size. This refers to the amount of data that - will actually be transferred; the Maximum File Size is the size the - resultant file may not exceed. The two are conceptually different, - and may have different effects. On some systems (eg IBM's OS360, - GEC 4080) the Maximum File Size, reserved at file creation time, - sets a limit for all eternity, and must cover all anticipated - appends. The DIN FTP's MaximumFileSize parameter is in fact a - MaximumTransferSize parameter. - - (b) Filename Password. Files may legitimately be accessed (even on - TENEX) by giving an appropriate key without the user being - recognised as the owner of that file. Some IBM systems can require - a legitimately logged in user to provide an additional - file-specific password before access is granted to a file. - - (c) Account Password. Usernames and Accountnames are conceptually - orthogonal. In systems where a 'username' corresponds to a - superdirectory shared between many different users, these may - distinguished by accounts with a separate level of password - protection. An example of this kind of double lock is the - superuser mode on UCL's UNIX. - - -The issue here is not one of meeting the peculiarities of particular -operating systems. The rationale behind such features of the NI FTP is -that they represent different fundamental concepts, and that even though -some systems may not find the distinctions important, it was foreseen -that some implementations and applications would find them very - - 4 - - - -necessary. Nevertheless, it should be stressed that the NI FTP design -group had experience of a wide range of operating systems, most of which -are commonly used in the UK. The attributes introduced were all found -to be either immediately necessary, or represented areas in which it was -felt "escape routes" should be provided. - -(iv) Extendability. There are two aspects to this question. One is the -provision of "escape routes", mentioned above. The NI FTP spec -identifies several areas where such escape routes are needed, notably: -Access Control (via the 'Account Password', which, as we saw above, can -be used to cover secondary levels of protection); File Description (via -'Kinship'); Data coding (via the 'Private Codes' selector); and special -processing (via 'Special Options'). With the exception of Private -Codes, these are omitted from the DIN FTP. The DIN FTP does provide a -'HostHardwareTypes' escape parameter; this extends a feature which is -not supported by NI FTP for reasons discussed below. - -The second aspect is protocol extension. As discussed above, the NI FTP -readily extends to new attributes during the negotiation phase. The -inclusion of new data transfer management commands (level 1) is more -difficult than with DIN FTP, but the memoryless transfer model means -that very few such commands should really be needed. The mechanisms for -negotiating sets of protocol extensions (with option sets, relational -operators and so on) are very similar in both protocols. (A minor point -is that the NI FTP has attempted to bit-encode option selectors and -operators. This allows, for example, a natural extension of the -protocol to include LT and GT operators.) - -FACILITIES COMPARISON - -(i) The three party transfer model. The approach taken by the DIN FTP -is not actually incompatible with the NI FTP, and one could quite -reasonably implement an NI FTP (or a whole family of implementations) -which used a private Controller/Active protocol, with extensions such as -'SourceFile', 'SourceUser', etc, and necessary additional commands such -as 'Disconnect'. - -(ii) Access Control. We have presented above our reasons for believing -that the DIN FTP is inadequate as a general-purpose FTP in this regard. -The (very strong) access control available on AUTODIN II is transport -service specific, and implementations which support it are not portable. -Use of this facility will tend to create a "closed community" of FTP -implementations. The network-independent attributes provided for access -control will not always be sufficient. The three party model used also -allows the Active site to inspect the access control parameters issued -by the controller for the Passive, which could lead to security problems -when authentication is an important issue. (Obviously this cannot -happen in a two-party model). - -Access control is not really an FTP issue. Different systems can choose -different methods: source host lists, recall addresses, and password -protection are three. An FTP should have hooks for providing - - 5 - - - -information to systems where the access control is password based, but -this is simply a channel for contending with one type of access control. -The actual requirements for access control are implementation-specific. -The argument that single-host ownership of files is a major impediment -to distributed file sharing is undeniable, but we feel that it is not -the job of an FTP to solve this problem. As and when solutions become -available they should be exploited by FTP implementations, but the best -that the protocol specification can do is to recognise the existing -state of chaos. - -(iii) The DIN FTP provides formal grades of implementation. The NI FTP -is more flexible, as it allows specific implementations to suit their -own needs and facilities, and it is only recommended that all -implementations support a defined set of defaults, while 'core' DIN FTP -attributes are all required. Thus a very specific NI FTP implementation -can be built for a specialised device which does not support unnecessary -default values. (We at UCL intend to exploit this feature of NI FTP in -our FAX project). - -At a more philosophical level, this reflects the design environments -from which the FTPs emerged - the NI FTP is being offered as a basis for -standardisation for any group. These cannot be controlled by any -central or regulating body; the DIN FTP assumes the more closed and -controlled environment of AUTODIN II. - -(iv) The Data Transfer Protocol. We are unconvinced that the formal -separation of a data transfer protocol is a useful extension. As far as -the FTP is concerned, it is little different from the NI FTP records -during the data transfer phase, but complicates the formatting of NI FTP -commands considerably. An NI FTP SFT, as generated by the current TENEX -version, may occupy 78 octets complete with headers; with the DTP the -equivalent SFT requires 28 sets of headers instead of 2, and occupies -131 octets. (With data segments, the NI FTP is more efficient for -records of less than 126 bytes, and the DTP becomes more efficient than -NI FTP for records exceeding 189 octets, though the difference is -marginal). Where efficiency may become important is in data -compression. The NI FTP breakeven point for compression is 3 data -bytes; for the DIN FTP it is between 5 and 7 bytes (depending on how -many control headers are involved). - -However, the basic point at issue is whether the DTP is the right place -to provide hooks for more sophisticated protocols. We contend that most -such protocols (job entry, FAX, graphics, mail etc) will rely on -primitives manipulating whole files. Hence the point of departure -should be the conceptual file store and the attributes and negotiation -mechanisms used to control a file within it. Once this has been -accepted, protocols performing other file-based functions can use these -common descriptions and mechanisms. - -(v) Partial File Transfers. This is a useful facility available only in -the DIN FTP. The associated abilities to describe file structure as -indexed, variable record etc, and to nominate the keylength field length - - 6 - - - -are also useful. The fact that the NI FTP is restricted to sequential -files is recognised to be a major limitation. In the NI FTP model, an -extension to handle partial file transfer could negotiate the pair of -transfer delimiters during the negotiation phase, and transfer a single -sequential section of the file during the transfer phase. Thus the -feature is supportable by extension, but requires the definition of -several new parameters. - -(vi) Multiple file transfers. Both protocols can readily support -multiple file transfers, though the details vary. The NI FTP requires -the passive side to be reinitialised each time, which protects against -parameter interdependencies persisting between transfers (see (vii) -below). Thus the facility becomes a problem for the designer of the -user interface. The same remark, of course, apples to multiple partial -transfers. - -(vii) Parameter Negotiation. This is much more formal in DIN FTP than -NI FTP. In particular, parameters are explicitly grouped into different -commands (Login, TransactionDescription and TransferDescription). The -reasons for preserving this distinction beyond the user interface rather -than issuing a single SFT, which allows an operating system total -freedom to make its own weird assumptions about the relationships of -parameters, are unclear. - -The whole problem of interactions between parameters is potentially very -complex, and it was for this reason that the NI FTP design precludes -multiple attempts at SFT after a rejection. The parameter settings left -from the last transfer, or negotiation attempt, may have undesired -consequences on the next. - -The DIN FTP also allows an attribute to be specified several times -within a command, which the NI FTP prohibits (except for one -experimental version). The specification uses multiple citations of -SourceFileName as the example for this. Since it is not intended that -this ability be used to set ranges of restrictions (eg ByteSize ge 8 and -le 36 but ne 22), this case seems to be the only possible use outside of -statistics collection. - -(viii) File Management Primitives. The NI FTP group has taken the -attitude that file management is the proper function of another -(compatible) protocol providing the complete range of facilities and -using the same conceptual filestore structure. Hence the NI FTP's file -manipulation, as expressed by the Mode of Access attribute, is solely -related to copying files. The access modes of NI FTP are all -supportable by the DIN FTP, with the exception of 'destructive read'. -DIN FTP provides two file management primitives: Delete and ListNames. -Delete is, of course, easy to implement. ListNames is a directory -interrogation facility, and is primarily useful for obtaining lists of -filenames for subsequent multiple file transfer. This is of more -limited use with the NI FTP's two-party model than with the DIN FTP's -three party model, and can only be used to full advantage where grouped -file specification is possible. - - 7 - - - -(ix) Foreground and background mode. In practise, we can see very few -differences between them, as all three parties must be involved in the -entire negotiation phase. Essentially, the difference is that the -Controller/Active and Active/Passive connections do not have to be -simultaneously open but can be opened as needed (eg the controller may -have to answer a LoginRequest from a passive in background mode) that -is, in background mode all three parties retain records of the -transaction specification. This is a consequence of the three-party -model; in the NI FTP it is a user interface issue and an implementation -may be either foreground or background. - -(x) Host Type. There are two ways this type of parameter can be used. -It is clearly useful for a user interface to offer shorthand profiles -for various parameter settings. The DIN FTP takes the alternative -approach in which the parameter allows transfers between identical -systems in efficient ways, but these are not defined within the DIN FTP -specification. We do not feel this is desirable, and we question the -implied assumption that it is not necessary. Noncommunicating families -of FTPs can build up local interpretations for parameters of this sort. -When, at a later date, it becomes possible for two such groups to -interconnect, the local interpretations will be found to be -incompatible. This facility again reflects the fact that the DIN FTP is -developed for the AUTODIN II environment; in our opinion, this type of -facility should be implemented in the user interface via a profile -mechanism in a more open environment. - -(xi) Format Effectors. All additions made by the DIN FTP to the NI FTP -list can be adequately described within that list (with the ANSI Fortran -Format setting). The DIN FTP restriction that bits 1, 2 and 4 cannot -interact is unnecessary (For example, it is perfectly reasonable to mix -imbedded Horizontal Tabs with the reqiuirement that End-of-Record -implies end of line). We doubt whether the ability to change format -settings during the transmission of data is a capability which will be -widely used. In any case, we do not think that there should be a -mandatory TextFormatter between records, and feel that the restriction -that DTP segments should only contain whole lines is unnecessary. The -Tabstops attribute may be a useful idea. As is currently defined, -however, it requires the receiver to keep table space for it; we -recommend a fixed tab interval that can be changed as an option. This -approach could easily be supported by the NI FTP. We note that the NI -FTP's earlier breakeven point for compression makes compression an -attractive approach to this problem. - -(xii) Rollback. Extending Rollback to allow the sender to request the -receiver to rollback is probably a good idea. However, it is -potentially more difficult for the receiver to roll back than it is for -the sender as his internal checkpoints may not correspond at all to the -FTP's CheckPoints (which are likely to correspond to internal -checkpoints of the sender). Hence he may have to keep track of at least -a window's worth of FTP checkpoints, whether acknowledged or not. -Additionally, he must be able to retrieve the stored data. Some -acknowledgement strategies (eg Ack a full window only) will sometimes - - 8 - - - -require the receiver to retain checkpoint information for even longer to -avoid races between Rollback from the Donor and CheckPoint -Acknowledgement from the Recipient. - -(xiii) CheckPoints. A 16 bit checkpoint field seems rather large; -allowing the checkpoints to be any arbitrary numbers forces -implementations to keep tables of unacknowledged checkpoints, which may -not be necessary with NI FTP. - -(xiv) Statistics Parameters. Defining statistics parameters for the -active side is a reasonable consequence of the three party model. -Standard statistics for the passive side is not so obviously useful; it -seems to imply a model whereby statistics are gathered by some central -FTP Monitoring Centre, especially as these are required parameters. If -true, this is again a reflection of the more closed environment of -AUTODIN II. - -(xv) Binary Mapping. This is a problem area with both protocols, and -for much the same reasons. These are: - - (a) For files where the byte size is less than eight, and bytes are - being transferred in packed mode, it is not always possible to tell - exactly how many bytes a subrecord contains. The DIN FTP has - proposed using a flag pattern as a solution to this problem. - - (b) One of the reasons for transferring bytes in packed mode for - byte sizes of other than eight bits is to allow a 'natural' - transfer for systems which do not use eight bit bytes internally. - This is largely negated by the fact that the subrecord header is - fixed to be an eight bit byte. - - (c) It has recently become clear that specifying the conceptual - transmission order of the bits has introduced a 'handedness' into - the protocol. The DIN FTP, which follows the 1822 convention that - the high bit is transmitted first, can be regarded as lefthanded, - while the NI FTP, which makes the opposite choice (following X25), - can be regarded as righthanded. An implementation of one - handedness wishing to send aligned data to one of the other (or - even across a hardware interface of the other handedness, relative - to the internal word) must first permute all octets holding a - larger bytesized byte. (Where the transfer is in packed mode, the - action is even more complex.) - -The NI FTP suffers from all three problems; the DIN FTP has adopted a -solution to the first. The NI FTP group is studying this area as one in -urgent need of revision. - -SUMMARY - - The DIN FTP reflects in many ways assumptions about the environment -provided by AUTODIN II. It is TCP-dependent to a small extent (and in -its Access Control it is Secure TCP dependent). Its set of attributes - - 9 - - - -and choice of commands limit the range of applications it can be used -for and the range of operating systems it can be easily implemented on. -Several attributes and the formality of the implementation levels -reflect a situation where implementation is under a stronger central -influence than the NI FTP. All these factors militate against its use -in the more open, uncontrolled environment of the worldwide network -research community. - - The two protocols are very closely related. Even some seemingly -major differences can be resolved by regarding DIN FTP specification as -describing one form of NI FTP implementation (for instance, the three -party model, multiple file transfers, and foreground/background modes). -Both are significant advances on other FTPs which are currently in use. -The DIN FTP offers several extensions to the facilities available in the -NI FTP, and some of these (most notably, partial file transfers) are -real advances on it. However, where the two offer comparable -facilities, we feel the NI FTP is usually to be preferred. The DIN FTP -tends to be more restrictive in the use of its facilities, and where it -is more free than the NI FTP, it tends to be rather expensive for the -implementor to support in terms of the gains achieved. Extensions can -easily be made to the NI FTP to include the real improvements which do -exist in the DIN FTP. - \ No newline at end of file diff --git a/text/ien/ien103.txt b/text/ien/ien103.txt deleted file mode 100644 index 76cab51e..00000000 --- a/text/ien/ien103.txt +++ /dev/null @@ -1,468 +0,0 @@ - - - -Date: May 4, 1979 IEN 103 - -An Experimental Network Information Center Name Server (NICNAME) - -J. R. Pickens, E. J. Feinler, and J. E. Mathis - SRI - - - -Introduction - - This IEN reports a preliminary design and implementation of an -experimental NIC-based name server. A name server is essentially a -transaction based inquiry-response process which returns information -on entities which can be named or addressed--hosts in this particular -case. The Arpanet Network Information Center (NIC) maintains and -distributes the Official Host Table [1] for the Arpanet, as well as a -variety of other related information. - - The motivation for this development comes both from current needs in -the Arpanet community for such a service, and from the similar but -wider needs of the burgeoning Internet community. Existing Arpanet -needs are exemplified by the NIC charter to provide formatted Host -Table information [1]. Existing Internet needs are exemplified by the -need for terminal interface units (TIUs) on ANY network to have -dynamic access to addresses of internet service hosts. - - A name server service, as described herein, will permit more -efficient access to, and distribution of, host information within the -Arpanet. It can also support a need for host information, especially -pertaining to the Arpanet, from the Internet environment. - - The name server function is evolving. Before much of what is -proposed can be provided, or even agreed upon, additional -administrative and technical design decisions are required. The -purpose of this note, therefore, is to catalyze an expanded discussion -of the functions and facilities for the name server service. - - The discussion is structured as follows: Section 1 contains a -description of the current service and how it is derived from the NIC -database service. Section 2 describes possible extensions of the name -server concept by allowing a richer syntax, and by allowing queries -for services to be built on top of the queries for host addresses. -Section 3 discusses architectural issues, and presents some -preliminary thinking on how we can get from the current centralized, -hierarchic name server service to a distributed service with one (or -more) name servers per network. - - - -1. The SRI Name Server Experiment - - An experimental name server has been installed on SRI-KA. It is -accessed via a variant of the Internet Name Server protocol [2]. The - - 1 - - - -initial implementation uses the internet header of TCP 2.5 [3] and -will be converted to Internet Version 4 [4] once it becomes available. - - The information which drives the name server service originates from -the Arpanet Official Host Table. (A new host table format suitable -for representing host information for multiple networks has been -designed and will be described in a forthcoming RFC [5]) A massaged -version of this database is presented to the name server, upon program -initiation, as an input file. Work is in progress to investigate the -feasibility of abstracting host related information from the NIC -database management system via direct system calls. - - User access to the service takes two forms. In the first form, a -simple user process is provided to format user input into name server -requests. In response to a query of the form "HOST !ARPA!FOO-TENEX" -is returned an address such as "10 2 0 9" (NET=10, HOST=2, LHOST=0, -IMP=9); the details of the user interface will, of course, vary from -system to system. - - This first primitive form of name server access has been implemented -on several Arpanet and PRNET sites as PDP-10 TENEX and LSI-11 TIU -programs. While initially the TENEX program is of little practical -value since all sites have a complete name table, the LSI-11 program -is intended to augment the TIU's host table. The scenario here is -that when the packet radio TIU comes alive, it contains only a minimal -host table, including the addresses of perhaps a few candidate name -servers. The user can query the name server with a simple manual -query process and then use the address obtained to open a TELNET -connection to the desired host. - - In the second form of access, soon to be operational on packet radio -TIUs, a process-level interface is provided that mediates between -internal processes and the name server. The design issues for -something other than a demonstration system are complex and involve -tradeoffs. The most obvious tradeoff is in the area of network -traffic versus "freshness" of information. The local host table -handler can either send a message to the name server for every address -request or it can perform some type of local caching to remember -frequently requested names. SRI is currently implementing a -process-level interface for the LSI-11 TIU's TELNET program in order -to explore the problems of local host table management in small -machines in a dynamic environment. - - - -2. Name Server Issues - - The name server, as currently specified, provides a simple address -binding service [2]. In response to a datagram query [4, 6], the name -server returns either an address, a list of similar names, or an -error. Several useful additional functions can be envisioned for the -name server such as service queries and broader access to host related -information. First, however, a few refinements to the current name - - 2 - - - -server specification are proposed. - - -2.1. Refinements - - The current specification needs clarification as to how to interpret -the "similar names" error response. Should there be a fixed -definition of what "similar names" means, or should it be left open to -the whims of the implementor? - - This function seems to be most useful in providing helpful -information to a human interfacing process. It may be useful to model -the behavior of the name server on the behavior of other known -processes which present host-name information on demand. An example -of this is a common implementation of User Telnet [7], in which three -kinds of functions occur: - - 1. On termination of name input (e.g. ), the user is only - "beeped" if the name is not unique. If the name is unique, - the name is filled out, and the requested operation is - initiated. - - 2. In response to , the name will be filled out if unique, - or the user will get "beeped" if the name is not unique. - - 3. Only in response to "?" will a list of similar names be - printed. "Similar names", in this case, means all names - which begin with the same character string. The list is - alphabetized. - - In support of this style of user interface, it may be more -appropriate to return the "similar names" response only when -requested. Two ways to achieve this are 1) to set an option bit and -2) to use "?" to force the similar names response. - - A second point upon which the specification may be enhanced is in -the interpretation given to null network and host fields in the query -string. Currently, if the network field is left out, as in "!REST" -(normal query is "!NET!REST"), a local network query is assumed. -"!!REST" and "!NET!" are not discussed in the current specification, -and are presumably syntax errors. - - Since host names tend to be unique anyway (at least at the present -time) and since there is no way to make a network independent query -under the current design, it may be useful to add to the notion of -"null field", meaning "local", the notion of a special character like -"*" which means "all". - - The semantic range of queries afforded by adopting this convention -is enumerated below (note: ~ is used to mean "null". Both network and -host fields null ("!!") is, therefore, represented as "~ ~". N means -"network" and R means "rest"): - - 3 - - - -~ ~ local net, local host (validity check?) - -~ * local net, all hosts - -~ R local net, named host - -* ~ all nets, local host (inverse search) - -* * all nets, all hosts (probably prohibited) - -* R all nets, named host (today's situation) - -N ~ named net, local host (inverse search) - -N * named net, all hosts - -N R named net, named host - - By combining the on-demand-similar-names function, "all" and -"local", and by allowing "*" to be prepended or postpended to the -query string, one can have queries such as the following: - -!!BBN*? All hosts named BBN* on local net - -!*!BBN*? All hosts named BBN* on all nets - -!*!*UNIX*? All hosts named *UNIX* on all nets - - -2.2. Service Queries - - It has been suggested that the name server can be generalized into -that of a binding function [8]. In this context, a very useful -extension is to allow service queries. One very real application of -this service, which exists within the Packet Radio Project at SRI, is -the need to find the addresses of Hosts which support the LoaderServer -Service (the LoaderServer service allows packet radio TIUs to receive -executable programs via down-line loading). - - A characteristic of service querying, contrasted to host names -querying, is the need for multiple responses. The requester would, -upon receiving multiple service descriptors, attempt to establish -access to each service, one-at-a-time, until successful. - - Service descriptors are composed of at least the following (with -more items probably required): - - 4 - - - - - ITEM TYPE -+------------------+----------------+ -| Official Name | Text | -| Alias Names | Text | -+------------------+----------------+ -| Host Address | Integer(32) | -| Port | Integer(32) | InterNet Services -| Protocol | Integer(8) | -+------------------+----------------+ -| Host Address | Integer(24) | Arpanet NCP Services -| Socket | Integer(32) | -+------------------+----------------+ - -Syntactically, service queries can be derived from host queries by the -addition of a service name field, as below: - - "!NET!REST!SERVICE" - - A network independent service query, for example, can be represented -as: - - "!*!*!SERVICE" - - -2.3. Name Server Options - - The need for options has already been suggested in the discussion of -the "similar names" function. Another group of options may be used to -specify the format of the reply. At one extreme is the compact, -binary, style, such as is currently specified. At the other extreme -is an expanded, textual, style, such as would be represented by a host -table record, and with official/alias names included. Options can be -envisaged which specify: - - - binary vs text format - - - inclusion of each field in the reply - - - inclusion of official name, per field, in the reply - - - inclusion of alias names, per field, in the reply - - - inclusion of other miscellaneous information, such as - operating system, machine type, access restrictions, etc. - -Other options can be envisioned which specify the scope of the search, -such as "ignore TIPS and USER hosts". Likewise, an alternate form for -specifying formats may be to settle on several standard ones, and -allow an option to select between them. - - Certainly, not all name servers will be able to support all such -options, and not all options are equally useful. Thus, the proposed - - 5 - - - -list will be expanded or contracted to fit the actual needs of -processes using the name server service. - - -2.4. "More" Data - - It is probably apparent to the discerning reader that several of the -proposed name server extensions have the potential for generating more -than a single datagram's worth of reply (576 octets max [9]). (Not of -any consolation is the fact that the current practical PRNet Packet -size is on the order of 256 octets.) Yet the size of such replies is -not anticipated to require a full-blown streaming protocol. Several -alternatives exist: - - 1. Disallow options which imply large replies, - - 2. Truncate the packet for large replies, - - 3. Ignore the recommended maximum datagram size, - - 4. Utilize an alternate base protocol for such requests, - - 5. Develop a "more data" pseudo-streaming protocol. - -Alternative 1 may be chosen, but even within the current specification -the potential for overflow exists (however remote). Alternative 2 -implies unpredictable behaviors to the user of the name server -service. Alternative 3 reduces the availability of the service. -Alternative 4 is certainly possible, but may be over-kill. - - Alternative 5 can be very simple. The concept is that the name -server would return, as part of the reply, a code of the following -form: - - +------+---------+ - | MORE | ID_NEXT | - +------+---------+ - -ID_NEXT is a name-server-chosen-quantity (1,2,4 octets?), -syntax/semantics unspecified, which allows the name server to find the -next block of reply, the next time it is queried. This quantity may -be an internal pointer, a block number, or whatever the name server -chooses. Follow-on queries may be implemented by recomputing the -entire original query, discarding output until the ID_NEXT block is -reached, or by efficiently storing the entire reply in a cache, -fragmented into blocks (with appropriate decay algorithms). - - -2.5. Dynamic Updates - - In all of the previous discussions, the host name database was -assumed to be a static (or slowly changing entity) with an -administrative and manual update authority. This model was - - 6 - - - -implemented for expediency and will well serve most of the needs of -the Arpanet and Internet communities. However, a need can be -envisioned for dynamic automated updating of the host table; (imagine -the impact on the current system of any host who changed its address -more than once a week!) - - In a closed user group community (such as a local network of -mutually trusting hosts), dynamic updating becomes simply a technical -question concerning packet formats. In wider communities, a mechanism -to authenticate the change request must be developed. Since the -issues on authentication are outside the scope of this paper, we can -only note that significant advances in practical deployment of -dispersed processing and central services, such as automated host -table management, can only be made when the problems of authentication -become tractable. - - - -3. Architecture - - The name server concept is invaluable in allowing hosts with -incomplete knowledge of the network address space to obtain full -access to network services. Whether for reasons of insufficient -Kernel space or of a dynamically changing environment, the need for -the service is little questioned. The more significant issues, -however, revolve around the methods for providing the service and for -administering and updating the database. - - In the current experiment, the service is centralized, and is -supported by a database administered centrally by the NIC. In the -long range, other architectures are possible which address ways to -distribute host information within and between networks and -administrative entities. These present opportunities for more -dynamic, automated, approaches to the maintenance and sharing of -data--particularly host name data. - - From an evolutionary point of view, the name server service will -likely exist initially as a centralized service, possibly with one -large name server that has multiple network knowledge. From this -beginning, an expansion in two orthogonal directions is possible. - - - In the direction of internal distribution, the name server - can be fragmented into multiple cooperating processes, on - separate hosts. The data base can be replicated exactly or - managed as a distributed database. - - - In the direction of administrative distribution, multiple - autonomous name servers may exist which exchange data in an - appropriately administered fashion, on a per network or - other administrative basis. - - On the part of hosts with small host tables, a possibility for -caching exists, where local, temporary copies are maintained of - - 7 - - - -subsets of the addressing database. Such copies may be obtained -either by remembering previous queries made of name servers, or by -receiving automatic distributions of data from name servers. For -mobile hosts, in which even the home network is unknown, it is -possible to maintain essentially an empty host table. - - The potential exists, with service queries, for every host to -contain a very primitive name server function. In response to a query -of the form "!*!*!RealNameServer" is returned the address of a real -name server service. - - Finally, the possibility exists for multiple name servers to -communicate dynamically, such as in attempting to resolve a query. -If, for example, a name server on the Arpanet receives a query for a -host on the Packet Radio Net, then the Arpanet name server can -conceivably query the Packet radio net name server in order to resolve -the reply. - - - -4. Conclusion - - In this note, a collection of design ideas on the name server -service has been presented. An experimental service, based on the NIC -host table database has been reported. - - A continuing examination of the name server service is encouraged, -scoping out the requirements and specifying its functional -distribution. A level of service comparable to that outlined -currently [2] will be provided initially, but a more expanded service -merits consideration and discussion. Certainly many open questions -have been raised in proposing an expansion of the service, but it is -expected that such an expansion will result in more useful support of -internet (and intranet) capability. - - 8 - - - -References - -1. M. D. Kudlick and E. J. Feinler, Host Names On-line, RFC 608, - SRI International, January 1974. - -2. J. Postel, Internet Name Server, IEN 61, USC-Information - Sciences Institute, October 1978. - -3. V. Cerf, TCP Version 2 Specification, IEN 5, March 1977. - -4. J. Postel, Internet Datagram Protocol, IEN 81, USC-Information - Sciences Institute, February 1979. - -5. E. J. Feinler, Proposed Official Host Table Format, SRI - International (RFC in preparation). - -6. D. Reed, J. Postel, User Datagram Protocol, IEN 71, - USC-Information Sciences Institute, January 1979. - -7. E. Leavitt et al, TENEX USER'S GUIDE, Bolt Beranek and Newman - Inc. - -8. Y. Dalal, Group discussion, January 24,25 1979 Internet Meeting. - - -9. J. Postel, Internet Meeting Notes - 25&26 January 1979, pp. 12, - IEN 76, USC-Information Sciences Institute, February 1979. - diff --git a/text/ien/ien104.txt b/text/ien/ien104.txt deleted file mode 100644 index 2075eed1..00000000 --- a/text/ien/ien104.txt +++ /dev/null @@ -1,231 +0,0 @@ -IEN 104 - - - - Minutes of the Fault Isolation Meeting - - 12 March 1979 - - - Virginia Strazisar - - - - Bolt, Beranek, and Newman - - 20 March 1979 - - -Minutes of the Fault Isolation Meeting held at BBN on March 12 - -Attendees: -Virginia Strazisar, BBN, chairman -Peter Sevcik, BBN -Dale McNeill, BBN -Noel Chiappa, MIT -Ray McFarland, DOD -Mike Wingfield, BBN -Jack Haverty, BBN -Bill Plummer, BBN -Mike Brescia, BBN - -Ginny suggested that there are three situations in which fault -isolation is needed: 1) the user at a terminal on the catenet -who cannot reach some destination on the catenet, 2) a catenet -control center that must decide what network or gateway in the -catenet has failed, and 3) the gateway implementor who must -decide what part of the gateway hardware or software has failed. -These situations were put forth as a framework for discussing the -types of fault isolation facilities that we need. Ginny stated -that the object of the meeting was to draw up a list of fault -isolation tools needed, giving special consideration to what -situations each of these tools would be used in and what -questions they could be used to answer. From the suggestions -drawn up at the meeting, the detailed formats and protocols could -be designed; this level of design was specifically avoided at the -meeting. - -The first situation discussed was the user at a catenet terminal, -who discovers that he either cannot connect to a particular -destination host or that he no longer gets any response from his -previously working connection. At present no information is -passed to the user in either of these cases. Everyone agreed -that the user should receive some error reply. It was suggested -that the user should receive a response indicating that either 1) -the destination host is unreachable, 2) the local gateway or -network is unreachable or 3) the catenet is inoperational. Most -people agreed that the naive user does not care to know what the -catenet problems are in any more detail than this. For example, -an error messgage of the form "Can't reach destination network -because gateway 3 is down" would be totally useless to the naive -user. The user also wants to know when the service will be -restored, either "within a short time" such that the user is -willing to wait for the service to be restored; or "not for a -long time" such that the user will quit trying to use the service -at this time. Several people pointed out that a more -sophisticated user may want to know exactly what component of the -catenet failed. There was some discussion as to whether users -should be given access to tools that would enable them to probe -the catenet gateways to determine where the failure occurred. - - - - - - -The consensus of opinion was that the user should be given access -to such tools, but that no user should be required to use such -tools. Our model was that the naive user on receiving an error -message would call a network or catenet control center, whereas -the more sophisticated user may attempt to track down the problem -before contacting the control center. We discussed in more -detail what sort of message a gateway could return to the user. -It was suggested that if the network returned an error message -about a specific host that that error message (text) should be -returned verbatim to the user. It was also suggested that error -codes be defined for "common" failures, i.e. net down, host down, -and that these be included in the error message. It was pointed -out that the gateways currently return messages to the source -host if they believe (based on their routing information) that -the destination network is unreachable. These messages contain -the source and destination addresses and the protocol field from -the original datagram. Several people pointed out that this -information is insufficient to return an error message to the -source user and that the entire internet header of the original -datagram should be returned in the error message. We discussed -the problem of what to do in the case where datagrams are lost in -a gateway or network in such a manner that no error message is -generated and returned to the source. It was decided in this -case that the source host should automatically probe the gateways -in order to return a reasonable status message to the user. It -was assumed that the user is running a program that implements -some type of internet protocol, such as TCP, and that that -program is capable of detecting long delays or mutiple -retransmisssions and of generating some type of probe packet to -attempt to track down the failure when this occurred. These -probe packets are discussed in more detail below. Information -obtained from such probing could also be sent to a monitoring -center. - -We discussed the concept of a monitoring or control center. The -primary purpose of a monitoring or control center in terms of -fault isolation is to isolate the component (network or gateway) -that failed and to notify the proper authority to have it fixed. -We felt that a control center was needed to avoid having all the -users in the catenet calling any and all implementors they felt -might be responsible for problems. The concept of a single -control center was discussed and rejected for both technical and -political reasons. From the technical point of view, it was -pointed out that the catenet could become partitioned such that -the control center was cut off from part of the catenet and thus -could no longer handle faults in that portion of the catenet. On -the political side, it was pointed out that organizations -responsible for the individual networks may be unwilling to -support one control center run by one organization. We agreed -that the catenet control center should actually be multiple -control centers. These could be either the existing network - - - - - - -control centers working in co-operation or separate catenet -control centers, each of which was established by co-operating -network groups. Tools that these control centers would need -included a facility to probe gateways to determine why a -particular destination was unreachable. - -We elaborated slightly on the design of a facility for probing -gateways. A host or control center sends its local gateway a -message saying "poll the gateways in the catenet to determine why -I can not get to destination X". The gateway then polls its -neighbors, its neighbors' neighbors, etc., extracting routing -tables, addresses of neighbor gateways, status of neighbor -gateways and networks, etc. to determine why the destination is -unreachable. The gateway would then formulate a response to the -host; this response would be of the form: "the network -connection between gateway 3 and net 2 is down", "gateway 5 and -gateway 6 are down", etc. This mechansim would be an extension -of the gateway-gateway protocol as defined in IEN #30. This -probe facility would be used by the source host to generate a -message to the user in the case where no response is recieved -from the destination and no error message is returned by the -gateways. The facility would also be used by catenet control -centers to isolate the componenet of the catenet that has failed. - -It was pointed out that we should be concerned not only with -total failures, but also with system performance, especially -delay. In this context, we were not concerned with cases where -delay seemed slightly longer than usual, but rather cases in -which traffic crossed the catenet with extrememly high delays, -i.e several minutes. A facility was suggested to track this sort -of problem: generate a packet from source A addressed to -destination B; have this packet trace its route and timestamp it -at each gateway on the route to B; at B, echo the packet; return -the packet to the source, A, using source routing and the route -stored in the packet via the trace mechanism; timestamp the -packet on its route back to A. The timestamps in the packet -could now be interpreted to yield transit times across each -network as there would be a pair of timestamps for each gateway -traversed. - -The final stage of fault isolation is the situation in which the -failure has been attributed to a particular gateway and the -implementor of that gateway must debug it. This part of fault -isolation was not discussed in detail. It was suggested that at -this point, it would be very useful to be able to turn off -timeouts in the catenet to avoid having the state of the catenet -change in such a way that the problem can no longer be isolated. - -In summary, the following list of tools and situations in which -they would be used was suggested. - - - - - - - -1) Error messages indicating whether the destination host, the -local network or gateway, or the catenet had failed, and -indicating the time at which service should be restored. - -These are to be returned automatically to the catenet user -whenever there is a failure in using a catenet service. - -2) Gateway to gateway probing mechanism that can be initiated -with a host to gateway message. - -This mechanism would be used by a control center to isolate a -component failure. It would also be available to the user. It -would be used by source host protocol programs to formulate an -error message for the user when no repsonse was received from the -destination and no error message was received from the gateways. - -3) Ability to trace, echo and source route packet with -timestamping. - -This facility would be used to determine where delays are -occurring when a destination is reachable, but delays cannot be -accounted for. - -4) Ability to echo packets off any gateway. -5) Ability to trace packets. -6) Ability to source route packets. -7) Ability to dump gateway tables. -8) Ability to trace packets by sending replies from every -gateway that handles the packet. - -These capabilities would be used by control centers and gateway -implementors to isolate failed components and determine the -reasons for failure. These facilities were not discussed in -detail. A description of mechanisms for tracing packets and -source routing packets was given in IEN #30, although these have -not yet been implemented. - -The next step in developing fault isolation mechanisms for the -catenet is to work out the detailed design for the mechanisms -suggested above, and to implement these in hosts, gateways and -control centers. - diff --git a/text/ien/ien107.txt b/text/ien/ien107.txt deleted file mode 100644 index 1ff26d29..00000000 --- a/text/ien/ien107.txt +++ /dev/null @@ -1,11 +0,0 @@ - This note is not available on line, please request copies from the - author. - - IEN 107 - - Title: SATNET Reconfiguration Plan - - Author: Richard Binder - - Mailbox: Binder@BBNE - diff --git a/text/ien/ien108.txt b/text/ien/ien108.txt deleted file mode 100644 index 6ef8cc8a..00000000 --- a/text/ien/ien108.txt +++ /dev/null @@ -1,551 +0,0 @@ - -Internet Experiment Note 108 - - - - Internet User Queues - - - - William W. Plummer - - - Bolt Beranek and Newman, Inc. - 50 Moulton Street - Cambridge MA 02138 - - - 19 June 1979 - - - - - Internet User Queues -William W. Plummer 19 June 1979 - - -The Internet JSYSes provide a facility for user programs to send -and receive Internet packets. This set of calls is parallel to -the "IMP special queue" calls, which dealt only with the ARPANET. - -In order to use the Internet calls a program must first assign an -Internet Queue using ASNIQ (JSYS 756). The arguments for this -JSYS are a set of mask and value words that determine what -messages may be sent and which of the incoming messages will be -delivered to the owning job. A successful ASNIQ returns with a -handle (a small number, short-hand for the queue), in T1 which -can then be fed to SNDIN and RCVIN (SeND InterNet, ReCeiVe -InterNet). - -The arguments for SNDIN are an Internet Queue Handle and a -pointer to a buffer of data in the caller's space. Word-0 of -this buffer is the size of the buffer, including this count word. -Words 1 through 5 must have a Version 4 Internet Header (see last -page). Various fields of the header are checked for legality, -the source host word is filled in, the Internet header checksum -inserted. Then a network interface is selected and a local -leader for that network is constructed in the packet. The packet -is then queued for output on that interface and SNDIN returns. - -Basically, users have no control over which interface is selected -for packet output and no knowledge of which interface an incoming -packet arrived on. This is analogous to the ARPANET where users -have no control over which IMPs a message actually goes through. -There is an exception when a system is equipped with a "Raw -Packet Interface" (RPI) which is used to connect to a remote -gateway or a encryption device (such as a BCR). Bit zero in T1 -to ASNIQ will flag the queue as using the RPI rather than the -normal interfaces. - -RCVIN takes the same arguments, an Internet Queue Handle and a -buffer pointer. Normally, if no messages are already waiting on -the queue, RCVIN waits. This wait can be defeated by turning on -the "don't wait" control bit which forces an error return if no -messages are waiting. When a message is available, it is -delivered to the user- supplied buffer. The number of words -filled is set into the left half of word-0 (the count word) of -the buffer. Ordinarily this can be ignored, but if the message -was too big for the buffer, this tells how much space would have -been required. - -When finished, the queue handle can be released by using RELIQ. -All handles owned by the job may be released by supplying -1 as -the argument. - - - - - 1 - - - - - - Internet User Queues -William W. Plummer 19 June 1979 - - -All Internet JSYS calls use only the left 32 bits of each word. -This is true of both the ASNIQ argument block and of data -buffers. - - -Messages left waiting on an input queue for a long time -(currently 30 seconds) will be deleted. Also, a queue cannot -hold very many messages (32, today). Flooding an Internet input -queue to a slow receiver will result in dropped messages. - -Messages addressed to the sending host will ordinarily be -delivered without sending over any network at all and are -reasonably fast. - -User programs have no control over which network a given message -will be sent out over. This decision will be made by the host -gateway module on the basis of routing information supplied to it -by other Internet gateways. This means that all networks to -which a host is connected must go down before Internet -communications will be completely stifled, and even then, forks -within a job will be able to communicate due to the local -delivery mechanism. - -Programs using Internet messages must be aware that messages are -not necessarily delivered in the order in which they were sent, -some messages may be dropped and others duplicated. Some may -traverse a broadcast network and be clobbered by other packets, -lightning, flaky intermediate gateways, etc. Thus, some higher -level protocol is needed in most cases. TCP is one example, but -there are others (the "Datagram Protocol", XNET, etc.). - -If a particular protocol is implemented in the monitor (e.g., -TCP) and that protocol module is turned on, no messages of that -protocol type will be passed to users via Internet queues. -Assigning a queue will still be possible, but no traffic will -reach the user unless that protocol module is disabled. - - -Not all Internet protocols have ports. If you are implementing -one which does not, be sure that .IQPTM in the ASNIQ block -contains a zero. If the protocol uses ports, they are expected -to be in the first two 16-bit bytes following the Internet -header, source port first and destination port second. The -location of this word is found by adding the contents of the -Internet data offset field to the address of the zeroth word of -the Internet header. - - - - - - 2 - - - - - - Internet User Queues -William W. Plummer 19 June 1979 - - -An additional feature of the Internet Queue Mechanism is that it -(optionally) provides an logical host capability. That is, -incoming messages can be demultiplexed on the basis of bits in -the Internet Destination Host field. Exactly which bits are -considered logical host specifier bits depends on the naming -conventions in force in the network (area) to which the host in -question is connected. For ARPANET hosts, the middle 8-bit byte -of the 24-bit Internet Host is considered to be the logical host -specifier. - -ASNIQ takes a specification of what numbers are to be used in the -logical host bits of the source address for packets which are -sent and received. When a packet is sent, the logical host bits -are obtained from the user's packet and combined with the -Internet Host Identifier for the host being used, the result -being inserted into the Source Host field of the packet. -Incoming packets are accepted by the Internet Layer if they match -the Internet Host Identifier (Name) when the logical host bits of -the destination address have been set to zero. - -It is illegal to assign an Internet Queue such that the Logical -host mask includes any bits which are not part of the logical -host field. ASNIQ will give an error return in this case. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - Internet User Queues -William W. Plummer 19 June 1979 - - -Assign Internet Queue JSYS - -;T1/ Pointer to queue descriptor block -; (Bit-0: use Raw Packet Interface) -;T2/ (Unused, must be 0) -;T3/ (Unused, must be 0) -; -; ASNIQ (JSYS 756) -;Ret+1: Failed. Error code in T1. -;Ret+2: Success. Internet queue handle in T1. - -Format of a queue descriptor block: - - Word offset Name Contents - - 0 .IQPRV Internet protocol number in - bit 24-31. Others should be 0. - - 1 .IQFHV Internet foreign host value word in - bits 0-31. - - 2 .IQSHV Internet source host value word in - bits 0-31. Used for logical host selection. - - 3 .IQPTV Internet port value word. Local port - value in bits 0-15, foreign port in 16-31. - - 4 .IQPRM Mask word corresponding to .IQPRV. - - 5 .IQFHM Mask word corresponding to .IQFHV - - 6 .IQSHM Mask word corresponding to .IQSHV - - 7 .IQPTM Mask word corresponding to .IQPTV - (Use 0 for portless protocols) - -The mask words specify those bit positions where an exact match -is required. Thus, one can make .IQFHM contain 0 in order to -talk to all Internet hosts. Or by making say the low 3 bits of -the local port mask word be 0, one owns eight ports. Note that -an error will result unless the current QDB differs in the masked -in bits from all other Internet queues which are assigned at the -instant the ASNIQ is issued. - -Possible errors: - -600737,NTWZX1,NET WIZARD capability required -600740,ASNSX1,All Internet queues in use - - - - 4 - - - - - - Internet User Queues -William W. Plummer 19 June 1979 - - -600741,ASNSX2,Conflict with some other job (# in AC2) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - - - - - - Internet User Queues -William W. Plummer 19 June 1979 - - -Release Internet Queue JSYS - -;T1/ An Internet Queue Handle or -1 for all -;T2/ (Not used. Must be 0) -;T3/ (Not used. Must be 0) -; -; RELIQ (JSYS 757) -;Ret+1: Failure. Error code in T1. -;Ret+2: Success. - -This JSYS releases ownership of an Internet queue so that other -jobs can assign it. Note that neither the RESET JSYS nor the -EXEC RESET command execute RELIQs. Thus, once the queue is -assigned, it stays assigned until the job logs out. - -Possible errors: - -600742,SQX1,Internet queue handle out of range -600743,SQX2,Internet queue not assigned - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 6 - - - - - - Internet User Queues -William W. Plummer 19 June 1979 - - -Send an Internet Message JSYS - -;T1/ Internet Queue Handle -;T2/ Pointer to buffer containing message -;T3/ (Not used. Must be 0.) -; -; SNDIN (JSYS 754) -;Ret+1: Failure. Error code in T1. -;Ret+2: Success. - -The buffer must contain a word count in the right half of word-0, -a valid Internet header in words 1 through 5, and possibly some -data in words 6 and following. If port filtering is being used -(.IQPTM was non-zero for ASNIQ), the ports must be located in the -word following the Internet header. The address of this word is -found by adding the address of word-1 in the buffer to the number -in the Internet data offset field. - -The monitor fills in the source host field in the packet and also -the Internet header checksum. The rest of the header is what is -supplied by the user. - -Possible errors: - -600742,SQX1,Internet queue handle out of range -600743,SQX2,Internet queue not assigned -600732,SNDIX1,Invalid message size -600733,SNDIX2,Insufficient system resources (No buffers available) -600735,SNDIX4,Invalid header value for this queue - (Includes Internet Packet Length too big, Data offset - too small, filtering on ports but packet length says - packet does not contain a port word, and header does - not fit the ASNIQ arguments). - - - - - - - - - - - - - - - - - - - 7 - - - - - - Internet User Queues -William W. Plummer 19 June 1979 - - -Receive Internet Message JSYS - - -;T1/ Flags,,Internet Queue Handle -; Bit-0: On to cause fail return instead of waiting -;T2/ Pointer to buffer where message will be put -;T3/ (Not used. Must be 0.) -; -; RCVIN (JSYS 755) -;Ret+1: Failure. Error code in T1. -;Ret+2: Success. - -Each RCVIN gets one message from the named queue. These messages -match the values in the queue descriptor block when masked by the -mask words in the block. The number of words filled plus one -(counting the count word) is placed in the left half of word-0 of -the buffer. If the message was too big as determined by the -Internet data length field, as much as will fit in the buffer is -transferred and an error return given. No retry for the same -message is possible. - -Possible errors: - -600742,SQX1,Internet queue handle out of range -600743,SQX2,Internet queue not assigned -600732,SNDIX1,Invalid message size - - - - - - - - - - - - - - - - - - - - - - - - - - 8 - - - - - - Internet User Queues -William W. Plummer 19 June 1979 - - -; The following structure definitions have been excerpted from -; the file INPAR.MAC which is used in building TENEX and TOPS20 -; monitors with Internet code. Those who are unfamiliar with the -; structure facility should refer to SYS:MACSYM.MAC. Basically, -; DEFSTR(Name,Location,Bit,Size) defines a structure called Name. -; This field is held in the word (possibly an index) at Location. -; The right-hand bit number is Bit and the field is Size bits wide. -; A typical reference to the data offset field might be: LOAD T1,PIDO,(PKT) -; where PKT is an index register which points at the zero-th word -; of the structure. -; Word offsets: - - .IPKVR==0 ; Word with version, type of service, etc - .IPKSG==1 ; Word with segmentation info - .IPKPR==2 ; Word with time to live, checksum, protocol - .IPKSH==3 ; Word with source host - .IPKDH==4 ; Word with destination host - -DEFSTR(PIVER,.IPKVR,3,4) ; PACKET.INTERNET.VERSION -DEFSTR(PIDO,.IPKVR,7,4) ; PACKET.INTERNET.DATA-OFFSET -DEFSTR(PITOS,.IPKVR,15,8) ; PACKET.INTERNET.TYPE-OF-SERVICE - ; Overlays for the above: - DEFSTR(PIPRI,.IPKVR,9,2) ; PACKET.INTERNET.PRIORITY - DEFSTR(PISVD,.IPKVR,10,1) ; PACKET.INTERNET.STREAM-VS-DATAGRAM - DEFSTR(PIREL,.IPKVR,12,2) ; PACKET.INTERNET.RELIABILITY - DEFSTR(PISVR,.IPKVR,13,1) ; PACKET.INTERNET.SPEED-VS-RELIABILITY - DEFSTR(PISPD,.IPKVR,15,2) ; PACKET.INTERNET.SPEED-OF-DELIVERY -DEFSTR(PIPL,.IPKVR,31,16) ; PACKET.INTERNET.PACKET-LENGTH -DEFSTR(PISID,.IPKSG,15,16) ; PACKET.INTERNET.SEGMENT-ID -DEFSTR(PIFLG,.IPKSG,18,3) ; PACKET.INTERNET.FLAGS - ; Overlays for the above: - ; Unused bit - DEFSTR(PIDF,.IPKSG,17,1) ; PACKET.INTERNET.DONT-FRAGMENT - DEFSTR(PIMF,.IPKSG,18,1) ; PACKET.INTERNET.MULTIFRAGMENT -DEFSTR(PIFO,.IPKSG,31,13) ; PACKET.INTERNET.FRAGMENT-OFFSET -DEFSTR(PITTL,.IPKPR,7,8) ; PACKET.INTERNET.TIME-TO-LIVE -DEFSTR(PIPRO,.IPKPR,15,8) ; PACKET.INTERNET.PROTOCOL -DEFSTR(PICKS,.IPKPR,31,16) ; PACKET.INTERNET.HEADER-CHECKSUM -DEFSTR(PISH,.IPKSH,31,32) ; PACKET.INTERNET.SOURCE-HOST - ; Overlays for above: - DEFSTR(PISHN,.IPKSH,7,8) ; PACKET.INTERNET.SOURCE.NET - DEFSTR(PISHT,.IPKSH,31,24) ; PACKET.INTERNET.SOURCE.HOST -DEFSTR(PIDH,.IPKDH,31,32) ; PACKET.INTERNET.DESTINATION-HOST - ; Overlays for above: - DEFSTR(PIDHN,.IPKDH,7,8) ; PACKET.INTERNET.DESTINATION.NET - DEFSTR(PIDHT,.IPKDH,31,24) ; PACKET.INTERNET.DESTINATION.HOST - - - - - - 9 - - -------- diff --git a/text/ien/ien109.txt b/text/ien/ien109.txt deleted file mode 100644 index 43cbebd3..00000000 --- a/text/ien/ien109.txt +++ /dev/null @@ -1,1608 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - HOW TO BUILD A GATEWAY - - Virginia Strazisar - - IEN #109 - - August 31, 1979 - - - - - - - TABLE OF CONTENTS - - 1. Introduction...............................................1 - - 2. Information Maintained by Gateways.........................1 - - 3. Initialization.............................................3 - - 4. Determining Connectivity to Networks.......................3 - - 5. Determining Connectivity to Neighbors......................4 - - 6. Exchanging Routing Information.............................4 - - 7. Computing Routes...........................................5 - - 8. Forwarding Traffic.........................................7 - - 9. Non-Routing Gateways.......................................7 - -10. Adding New Neighbors and Networks..........................8 - -11. Communications with Hosts..................................9 - -12. Future Modifications......................................10 - -13. Packet Formats............................................11 - -14. Examples..................................................19 - -15. Tables and Variables......................................23 - -16. Events and Responses......................................25 - - - - - - -1. Introduction - -This is a description of how to implement a gateway. The gateway -forwards internet traffic formatted as described in IEN #111, -"Internet Protocol". The gateway polls its attached networks and -neighbor gateways to determine its connectivity to them, then -exchanges this information with its neighbor gateways in order to -compute routes to each network in the catenet. When gateways or -network interfaces fail, the gateways compute alternate routes to -the networks. - -The design for this gateway routing strategy was originally -presented in IEN #30, "Gateway Routing, An Implementation -Specification". That document gives an overview of the design -and explains some of the decisions made in designing this routing -strategy. Since IEN #30 was released, this routing strategy has -been implemented in several gateways. During implementation, -several modifications were made to the original design, thus, -those sections of IEN #30 covering the detailed specification of -the design are obsolete and are replaced by this document. - -2. Information Maintained by Gateways - -Gateways must maintain information about their connectivity to -networks and other gateways. The functional description below -explains how this information is obtained and modified by the -gateways. For the purpose of explaining the gateway functions, -this information is organized into the following tables and -variables. - -Number of Networks - -The number of networks for which the gateway maintains routing -information and to which it can forward packets. The gateways -maintain and exchange routing information indexed by network -numbers. Thus, the Number of Networks also corresponds to the -highest numbered network to which the gateway can route traffic. -(Network numbers are listed in IEN #117, "Assigned Numbers".) - - -Number of Neighbors - -The number of neighbor gateways with which the gateway exchanges -routing information. A neighbor gateway of gateway X is any -gateway that has an interface on the same network as gateway X. -If gateway X and its neighbor have more than one network in -common, then each neighbor gateway interface on a network to -which gateway X is attached is considered to be a separate -neighbor. - - - - - 1 - - - - - - - -Gateway Addresses - -The address of the gateway on each network to which it is -attached. - -Neighbor Addresses - -The addresses of the neighbor gateways. - -Connectivity to Neighbors - -A vector of the status of connectivity between the gateway and -each of its neighbor gateways. The connectivity is determined by -polling the neighbors. - -Routing Updates - -The routing updates that are sent to the neighbor gateways. Each -routing update contains the distance from the gateway to each -network. There is one routing update for each neighbor. - -Distance Matrix - -A matrix of the routing updates received from each of the -neighbor gateways. Routing updates contain the distance from a -gateway to each network. - -Minimum Distance Vector - -A vector of the minimum distance to each network. Distance is -measured in networks traversed; a gateway which is physically -attached to a network is zero hops from that network; if the -gateway must send through one other gateway to get to a network, -then it is one hop from that network. - -Routing updates from non-routing neighbor gateways - -A routing update for each neighbor gateway that does not -participate in this routing scheme. This is the update that the -gateway would receive from this neighbor if the neighbor did -participate in routing. - -Routing Table - -A table containing, for each network, a list of the neighbor -gateways on a minimum length route to that network. - - - - - - - - 2 - - - - - - - -Send Sequence Number - -The sequence number that the gateway will use to transmit the -next routing update to its neighbors. - -Receive Sequence Numbers - -The sequence number that the gateway received in the last routing -update from each of its neighbors. There is a sequence number -for each neighbor. - -3. Initialization - -The gateway is initialized with the following information: - -The gateway's address on each network to which it is attached. - -The addresses of its neighbors. - -A routing update from each of its neighbor gateways that do not -participate in routing. - -Initially, the gateway should assume that all its neighbor -gateways are down, that it is disconnected from networks to which -it is attached, and that the distance reported in routing updates -from each neighbor to each network is infinity (see "Computing -Routes"). - -4. Determining Connectivity to Networks - -The gateway must determine its connectivity to networks to which -it is physically attached. The gateway is connected to a network -if it can send and receive internet packets on its interface to -that network. The method that the gateway uses to determine its -connectivity to a network is network dependent. In some -networks, the host to network protocol determines whether or not -data packets can be sent and received on the host interface. In -these networks, the gateway can simply check status information -provided by the protocol in order to determine if it can -communicate with the network. In other networks, where the host -to network protocols are less complex, it may be necessary for -the gateway to send traffic to itself to determine if it can -communicate with the network. In these networks, the gateways -can periodically poll the network to determine if the network -interface is operational. - -For purposes of computing distances and routes to networks, if -the gateway can send and receive traffic on its network -interface, then its distance to the network is zero; if it cannot -send and receive traffic on the interface, then its distance to - - - - 3 - - - - - - - -the network is infinity. Note that if a gateway's network -interface is not working, it may still be able to send traffic to -the network on an alternate route via one of its neighbor -gateways. - -5. Determining Connectivity to Neighbors - -A neighbor gateway is in one of three states: up, down, or -recovering. In the latter case, the gateway has communicated -with its neighbor, and is in a waiting period to determine -whether it will be able to continue to communicate with the -neighbor. This state exists to prevent a gateway from using a -neighbor gateway to forward traffic when communications between -it and the neighbor are extremely lossy. The gateway determines -its connectivity to each neighbor gateway as follows. Initially, -the neighbor is assumed to be "down". The gateway sends an echo -packet (see "Packet Formats") to the neighbor gateway every N -seconds and increments a count of echo packets outstanding to -that neighbor. When the gateway receives an echo reply packet -from the neighbor, it clears the count of outstanding echo -packets. If that neighbor was "down", the gateway starts an X -second timer and sets the neighbor's status to "recovering". If -after X seconds, the neighbor's status is still "recovering", -then the neighbor's status is changed to "up". If the count of -echo packets outstanding to a neighbor is equal to Z, the -neighbor's status is set to "down". As probes are sent every N -seconds, a neighbor's status is changed to "down" if it does not -respond within (N * Z) seconds. Note that the waiting period, X, -during which the neighbor's status is "recovering" should be at -least several times the interval (N * Z seconds) needed to -declare the neighbor "down". This prevents the neighbor gateway -from cycling rapidly between the "up" and "down" states. - -The gateway maintains a vector of the connectivity between it and -its neighbors. This vector is used in computing distances and -routes to networks. The vector contains K entries where K is the -number of neighbors. If the state of the Jth neighbor is either -"down" or "recovering", then the Jth entry of the vector is set -to infinity; if the state of the Jth neighbor is "up" then the -Jth entry of the vector is set to one. - -6. Exchanging Routing Information - -The gateway receives and transmits routing information reliably -using sequence numbered packets and a retransmission and -acknowledgement scheme. This scheme works as follows. For each -neighbor, the gateway remembers the Receive Sequence Number, R, -that it received in the most recent routing packet from that -neighbor. This value is initialized by setting it to the -sequence number received in the first routing packet received - - - - 4 - - - - - - - -from a neighbor after that neighbor's status is set to "up". On -receipt of a routing packet from a neighbor, the gateway -subtracts the Receive Sequence Number, R, from the sequence -number in the routing packet, S. If this value (S-R) is greater -than or equal to zero, then the gateway accepts the routing -packet, sends an acknowledgement to the neighbor containing the -sequence number S, and replaces the Receive Sequence Number, R, -with S. If this value (S-R) is less than zero, the gateway -rejects the routing packet and sends a negative acknowledgement -to the neighbor with sequence number R. - -The gateway has a Send Sequence Number, N, for sending routing -packets to all of its neighbors. This sequence number can be -initialized to any value. The Send Sequence Number is -incremented each time a new routing update is created. On -receiving an acknowledgement for a routing update, the gateway -subtracts the sequence number acknowledged, A, from the Send -Sequence Number, N. If the value (N-A) is non-zero, then an old -routing update is being acknowledged. The gateway continues to -retransmit the most recent routing update to the neighbor that -sent the acknowledgement. If (N-A) is zero, the routing update -has been acknowledged. Note that only the most recent routing -update need be acknowledged; if a second routing update is -generated before the first routing update is acknowledged, only -the second routing update need be acknowledged. - -If a negative acknowledgement is received, the gateway subtracts -the sequence number negatively acknowledged, A, from its Send -Sequence Number, N. If this value (N-A) is less than zero, then -the gateway replaces its Send Sequence Number, N, with the -sequence number negatively acknowledged plus one, A+1, and -retransmits the update to all its neighbors. If (N-A) is greater -than or equal to zero, then the gateway continues to retransmit -the routing update using sequence number N. In order to maintain -the correct sequence numbers at all gateways, routing updates -must be retransmitted to all neighbors if the Send Sequence -Number changes, even if the routing information does not change. - -The gateway retransmits routing updates periodically until they -are acknowledged and whenever its Send Sequence Number changes. -The gateway sends routing updates only to neighbors that are in -the "up" state, not to neighbors that are "down" or "recovering". -Examples of the sequence number strategy are given below. - -7. Computing Routes - -A routing update contains the number of networks that a gateway -is reporting about followed by a list of the distances to these -networks, indexed by network number. Assuming that the gateway -has checked the sequence number of a routing update that it has - - - - 5 - - - - - - - -received and has decided to accept the update, the information in -the update is processed as follows. - -The gateway contains a N x K distance matrix, where N is the -number of networks and K is the number of neighbor gateways. An -entry in this matrix, represented as d(I,J), is the distance to -network I from neighbor J as reported in the most recent routing -update from neighbor J. The gateway also contains a vector -indicating the connectivity between itself and its neighbor -gateways. The values in this vector are computed as discussed -above (see "Determining Connectivity to Neighbors"). The value -of the Jth entry of this vector, which is the connectivity -between the gateway and the Jth neighbor, is represented as d(J). - -The gateway copies the routing update received from the Jth -neighbor into the appropriate row of the distance matrix, then -updates its routes as follows. The gateway calculates a minimum -distance vector, containing the minimum distance to each network -from the gateway. The Ith entry of this vector, represented as -MinD(I) is: - - MinD(I) = minimum over all neighbors of d(J) + d(I,J) - -where d(J) is the distance between the gateway and the Jth -neighbor and d(I,J) is the distance from the Jth neighbor to the -Ith network. If the Ith network is attached to the gateway and -the gateway can send and receive traffic on its network interface -(see "Determining Connectivity to Networks"), then the gateway -sets the Ith entry of the minimum distance vector to zero. - -Using the minimum distance vector, the gateway computes a list of -neighbor gateways through which to send traffic to each network. -The entry for network I contains all neighbors such that: - - MinD(I) = d(J) + d(I,J) - -In other words, the entry for network I contains all neighbors -such that the distance from the gateway to the neighbor plus the -distance from the neighbor to the network is equal to the minimum -distance from the gateway to the network. - -After updating its routes to the networks, the gateway computes -the new routing updates to be sent to its neighbors as follows. -For each neighbor, J, the gateway constructs a routing update -which is a N entry vector where N is the number of networks. The -Jth entry of this vector is: - - MinD(I) if MinD(I) less than or equal to d(I,J) - infinity if MinD(I) greater than d(I,J) - - - - - 6 - - - - - - - -where d(I,J) is the distance from the Jth neighbor to the Ith -network and MinD(I) is the minimum distance from the gateway to -the Ith network. In other words, the gateway reports its -distance to a network to a neighbor only if it is as close to or -closer to a network than its neighbor. - -Finally, the gateway must determine whether it should send -routing updates to its neighbors. The gateway maintains a copy -of the most recent routing updates that it sent to each of its -neighbors. The gateway computes the new routing updates to send -to each of its neighbors. If any of these routing updates are -different than the preceding updates, then the gateway sends new -routing updates to its neighbors. If no routing information has -changed since the last routing update was sent, then the gateway -does not need to send new routing updates. The gateway sends -routing updates only to neighbors that are currently in the "up" -state. - -The gateway requests routing updates from neighbors that are in -the "up" state, but have not yet sent a routing update to it. -Routing updates are requested by setting the appropriate bit in -the routing update being sent (see "Packet Formats"). Similarly, -if a gateway receives a routing update from a neighbor in which -the bit requesting a routing update is set, the gateway sends the -neighbor the most recent routing update. - -8. Forwarding Traffic - -On receipt of a packet to be forwarded, the gateway extracts the -internet destination network field from the packet. If the -gateway is attached to the network, and its network interface is -operational, then the gateway simply composes the appropriate -local network header for the destination network and sends the -packet. - -If the gateway is not connected to the network, then the gateway -checks the list of the neighbors on the route to the destination -network. If there are no neighbors on the list, then the gateway -drops the packet and sends the internet source a "destination -unreachable" message (see "Communications with Hosts"). - -If there are one or more neighbors on a route to the destination -network, then the gateway sends the packet to one of these -neighbors. If there is more than one neighbor, then the -neighbors are used in a round robin fashion. - -9. Non-Routing Gateways - -Non-routing gateways are gateways that forward internet traffic, -but that do not participate in this routing scheme. Whenever - - - - 7 - - - - - - - -possible, traffic is forwarded only through gateways that -participate in this routing scheme. Non-routing gateways are -used to forward traffic only if they provide the only route to a -network. These gateways are used as follows. Consider a -gateway, G1. The only non-routing gateways that it needs to know -about are its neighbor gateways, as these are the gateways from -which it would normally receive routing updates. For each -non-routing neighbor gateway of gateway G1, compute the routing -update that would be sent to G1 assuming that all gateways and -network connections are operational. These routing updates are -assembled in G1. The gateway, G1, first computes its minimum -distance vector as explained above, using only the routing -updates from neighbors that participate in routing. If the -minimum distance to any network is infinity, i.e. the network is -unreachable via any of the routing gateways, then the minimum -distance to that network is re-computed using the routing update -compiled for the non-routing neighbor gateway. For purposes of -computing the minimum distance to a network, the gateway, G1, -assumes that the distance between itself and the neighbor gateway -is zero. After computing the minimum distance vector, the -gateway compiles the list of neighbor gateways through which to -send traffic to each network and sends routing updates to its -neighbors as explained above (see "Computing Routes"). The -gateway does not send routing updates to the non-routing neighbor -gateways. - -10. Adding New Neighbors and Networks - -Gateways dynamically add routing information about new neighbors -and new networks to their tables. The gateway maintains a list -of neighbor gateway addresses. When a routing update is -received, the gateway searches this list of addresses for the -internet source address of the routing update packet. If the -internet source address of the routing update is not contained in -the list of neighbor addresses, the gateway adds this address to -the list of neighbor addresses. The gateway accepts the routing -update, sets the neighbor's connectivity status to "up", and -computes new routes as explained above. The gateway also begins -polling this new neighbor to monitor its connectivity. Note that -this strategy requires that one gateway in each pair of neighbor -gateways must have the neighbor's address assembled in its -tables. The newest gateway can be given a complete list of -neighbors, thus avoiding the need to re-assemble older gateways -when new gateways are installed. - -Gateways obtain routing information about new networks as -follows. The gateway maintains a count of the number of networks -for which it currently contains routing information, N. When a -routing update is received, the gateway compares this number to -the number of networks reported in the routing update, M. If M - - - - 8 - - - - - - - -is greater than N, then the gateway updates the count of networks -for which it maintains routing information to include the new -networks. Next, the gateway expands its distance matrix to -include the number of networks reported. The distance matrix is -the matrix of distances to networks as reported in routing -updates from the neighbor gateways. In expanding the matrix, the -gateway assumes the distance to all new networks is infinity. -After expanding the matrix, the gateway computes new routes and -new routing updates as outlined above. - -Note that expanding neighbor address tables and distance matrices -may present an implementation problem. In practice, these tables -can be assembled to contain some maximum number of neighbors and -networks. If a new neighbor cannot be added to a gateway's -tables, then routing updates or echo packets from that neighbor -should be ignored. The new neighbor will assume that the gateway -is down and will not use it to forward traffic. If a gateway -cannot add a new network to its routing tables, it can still -accept routing updates containing information about the new -network, but it will be unable to route traffic to the new -network. The routing updates that it sends to its neighbors will -not contain information about the new network. Whenever a -gateway receives a routing update that does not report the -distance to a network, the gateway should assume that the -distance is infinity. - -11. Communications with Hosts - -The gateway sends messages to internet hosts in several -situations: when the gateway cannot reach the internet -destination, when the gateway does not have the buffering -capacity to forward a packet, and when the gateway can direct the -host to send traffic on a shorter route. These situations are -explained in more detail below. The formats for messages sent -from a gateway to a host are given in the section "Packet -Formats". - -If, according to the information in the gateway's routing tables, -the network specified in the internet destination field of a -packet is unreachable, i.e. the distance to the network is -infinity, the gateway sends a destination unreachable message to -the internet source host of the packet. In addition, in some -networks, the gateway may be able to determine if the internet -destination host is unreachable. Gateways in these networks may -send destination unreachable messages to the source host when the -destination host is unreachable. - -The gateway may discard internet packets if it does not have the -buffer space needed to queue the packets for output to the next -network on the route to the destination network. If the gateway - - - - 9 - - - - - - - -discards a packet, it sends a source quench message to the -internet source host of the packet. The source quench message is -a request to the host to cut back the rate at which it is sending -traffic to the internet destination. The gateway sends a source -quench message for every message that it discards. On receipt of -a source quench message, hosts should cut back the rate at which -they are sending traffic to the specified destination until they -no longer receive source quench messages from the gateway. The -hosts can then gradually increase the rate at which they are -sending traffic to the destination until they again receive -source quench messages from the gateway. - -The gateway sends a redirect message to a host in the following -situation. A gateway, G1, receives an internet packet from a -host on a network to which the gateway is attached. The gateway, -G1, checks its routing table and obtains the address of the next -gateway, G2, on the route to the packet's internet destination -network, X. If G2 and the host identified by the internet source -address of the packet are on the same network, a redirect message -is sent to the host. The redirect message advises the host to -send its traffic for network X directly to gateway G2 as this is -a shorter path to the destination. The gateway forwards the -original data packet to its internet destination. - -12. Future Modifications - -As there are now many networks planned or implemented, and as -these networks may be assigned a wide range of network numbers, -it is no longer feasible to maintain routing information in -tables indexed by network numbers. Gateways will be modified to -use a hash table scheme to convert network numbers to internal -indices to reference routing tables. The information in routing -updates exchanged by the gateways will no longer be indexed by -network number. The format of routing updates will be modified -to include both the network number and the distance to the -network. These modifications will be documented in a separate -note. - - - - - - - - - - - - - - - - - 10 - - - - - - - -13. Packet Formats - -Gateway to gateway and gateway to host communications use the -version 4 internet protocol. The first octet of the data portion -of the packet is a gateway type field; the value of this field -determines the format of the remaining data. The format of -internet packets is explained in IEN #111, "Internet Protocol". -Unless otherwise noted under the individual format descriptions, -the values of the internet header fields are as follows: - -Version 4 - -IHL Internet header length in 32-bit words; - this is 5. - -Type of Service 0 - -Total Length Length of internet header and data in - octets. - -Identification, Flags, -Fragment Offset Used in fragmentation, see IEN #111. - -Time to Live Time to live in seconds; as this field - is decremented at each machine in which - the packet is processed, the value in - this field should be at least as great as - the number of gateways which this packet - will traverse. (This must be considered - in the messages sent to hosts.) - -Protocol 3 - -Header Checksum The 16 bit one's complement of the one's - complement sum of all 16 bit words in the - header. For computing the checksum, the - checksum field should be zero. This - checksum may be replaced in the future, - see updates of the Internet Protocol - Specification. - -Source Address The address of the gateway that composes - the packet. Unless otherwise noted, this - can be any of the gateway's addresses. - -Destination Address The address of the gateway or host to - which the packet should be sent. - - - - - - - 11 - - - - - - - - Routing Update - - 0 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -! Gateway Type ! unused ! Sequence Number ! -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -! NU ! N ! Distance 1 ! Distance 2 ! Distance 3 ! -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - . - . - . -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -! Distance N-3 ! Distance N-2 ! Distance N-1 ! Distance N ! -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - -Gateway Type 1 - -Sequence Number The 16-bit sequence number used to transmit - routing updates. - -NU A 1-bit field. This bit is set if the - source gateway requests a routing update - from the destination gateway. - -N The number of networks for which distances - are reported in this update. - -Distance 1..N A set of octets that are the values in - the routing update for distances to - network numbers 1 through N. The network - numbers are listed in IEN #117, "Assigned - Numbers". If the Ith network is unreachable, - the distance to the network is infinity, - which is represented as 177 (octal). - - - - - - - - - - - - - - - - - - - 12 - - - - - - - - Acknowledgement or Negative Acknowledgement - - 0 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -! Gateway Type ! unused ! Sequence Number ! -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - -Gateway Type 2 for acknowledgement; 10 (decimal) for - negative acknowledgement. - -Sequence Number The 16-bit sequence number that the gateway - is acknowledging or negatively acknowledging. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 13 - - - - - - - - Destination Unreachable Packet - - 0 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -! Gateway Type ! Code ! unused ! -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -! Internet Header + 64 bits of Original Data Packet ! -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - -Destination Address The source network and address from the - original data packet. - -Gateway Type 3 - -Code 0 = net unreachable; 1 = host unreachable. - -Internet Header + 64 bits -of Data Packet The internet header plus the first 64 bits - of the original data packet. This data is - used by the host to match the message from - the gateway to the appropriate process. - If a higher level protocol uses port numbers, - they are assumed to be in the first 64 data - bits of the original data packet. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 14 - - - - - - - - Source Quench Packet - - 0 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -! Gateway Type ! unused ! -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -! Internet Header + 64 bits of Original Data Packet ! -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - -Destination Address The source network and address of the - original data packet. - -Gateway Type 4 - -Internet Header + 64 bits -of Data Packet The internet header plus the first 64 bits - of the original data packet. This data is - used by the host to match the message from - the gateway to the appropriate process. - If a higher level protocol uses port numbers, - they are assumed to be in the first 64 data - bits of the original data packet. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 15 - - - - - - - - Redirect Packet - - 0 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -! Gateway Type ! unused ! -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -!Gateway Network! Gateway Address ! -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -! Internet Header + 64 bits of Original Data Packet ! -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - -Destination Address The source network and address of the - original data packet. - -Gateway Type 5 - -Gateway Network Address of the gateway to which traffic -Gateway Address for the network specified in the - internet destination network field of - the data packet should be sent. - -Internet Header + 64 bits -of Data Packet The internet header plus the first 64 bits - of the original data packet. This data is - used by the host to match the message from - the gateway to the appropriate process. - If a higher level protocol uses port numbers, - they are assumed to be in the first 64 data - bits of the original data packet. - - - - - - - - - - - - - - - - - - - - - - - - 16 - - - - - - - - Echo or Echo Reply Packet - - 0 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -! Gateway Type ! unused ! -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - -Source Address In an echo packet, the address of the - gateway on the same network as the neighbor - to which it is sending the echo packet. - In an echo reply packet, the source and - destination addresses are simply reversed. - -Gateway Type 8 for echo packet; 0 for echo reply. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 17 - - - - - - - - Net Interface Status Packet - - 0 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -! Gateway Type ! unused ! -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - -Source Address -Destination Address The address of the gateway's network - interface. The gateway can send Net - Interface Status Packets to itself to - determine if it is able to send and - receive traffic on its network interface. - - -Gateway Type 9 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 18 - - - - - - - -14. Examples - -The following examples illustrate the sequence number scheme -used for sending and receiving routing updates. - -Example 1: - -Gateway G has three neighbors: A, B and C. -Gateway G's Send Sequence Number is 5. -Connectivity between gateway G and gateway A was broken and is -now restored; thus, A has not received the last update from G. -Gateway A's Receive Sequence Number for G is 3. -Gateway B's Receive Sequence Number for G is 4. -Gateway C's Receive Sequence Number for G is 4. - -Initially, gateway G has the following values in its tables: - -Send Sequence Received Acknowledgement from Neighbors - A B C - 5 N N N (N for no, Y for yes) - - -G (5) ---> A G sends routing update 5 to its neighbors -G (5) ---> B -G (5) ---> C -A (ACK 5) ---> G A computes (sequence number received in - packet - Receive Sequence Number) = (5-3); as - this is greater than or equal to zero, A - acknowledges routing update 5 and replaces - Receive Sequence Number for G with 5 - -B (ACK 5) ---> G B computes (sequence number received in - packet - Receive Sequence Number) = (5-4); as - this is greater than or equal to zero, B - acknowledges routing update 5 and replaces - its Receive Sequence Number for G with 5 - -C (ACK 5) ---> G - -On receipt of these acknowledgements, G computes (Send Sequence -Number - sequence number acknowledged) = (5-5). As this value -is zero, G notes that each of its neighbors has acknowledged -its routing update. - - - - - - - - - - - 19 - - - - - - - -Gateway G now has the following values in its tables: - -Send Sequence Received Acknowledgement from Neighbors - A B C - 5 Y Y Y - -Gateway A's Receive Sequence Number for G is 5. -Gateway B's Receive Sequence Number for G is 5. -Gateway C's Receive Sequence Number for G is 5. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 20 - - - - - - - -Example 2: - -Gateway G has three neighbors: A, B, and C. -Gateway G's Send Sequence Number is 24. -Gateway A has been disconnected from gateway G for some long time, -thus, it has missed many updates from G and G's Send Sequence Number -has now wrapped around. -Gateway A's Receive Sequence Number for G is 500. -Gateway B's Receive Sequence Number for G is 23. -Gateway C's Receive Sequence Number for G is 23. - -Initially, gateway G has the following values in its tables: - -Send Sequence Received Acknowledgement from Neighbors - A B C - 24 N N N (N for no, Y for yes) - -G (24) ---> A G sends routing update 24 to all its neighbors -G (24) ---> B -G (24) ---> C -A (NAK 500) ---> G A computes (sequence number received in - packet - Receive Sequence Number) = (24-500); - as this is less than zero, A sends a negative - acknowledgement with sequence number 500 - -On receipt of the negative acknowledgement, gateway G computes -(Send Sequence Number - sequence number negatively acknowledged) -= (24-500). As this value is less than zero, G replaces its Send -Sequence Number with 501 and retransmits the routing update with -this sequence number. - -G (501) ---> A -G (501) ---> B -G (501) ---> C -A (ACK 501) ---> G A computes (sequence number received in - packet - Receive Sequence Number) = (501-500); - as this is greater than or equal to zero, - A acknowledges sequence number 501 and - replaces its Receive Sequence Number for G - with 501 - -B (ACK 24) ---> G B receives the update from G with sequence - number 24; B computes (sequence number received - in packet - Receive Sequence Number) = (24-23); - as this is greater than or equal to zero, - B acknowledges sequence number 24 and replaces - its Receive Sequence Number for G with 24 - -C (ACK 24) ---> G - - - - - 21 - - - - - - - -On receipt of these acknowledgements, G computes (Send Sequence -Number - sequence number acknowledged) = (501-24). As this value -is non-zero, G retransmits the routing update to these neighbors. - -G (501) ---> B -G (501) ---> C -B (ACK 501) ---> G B computes (sequence number received in - packet - Receive Sequence Number) = (501-24); - as this is greater than or equal to zero, - B acknowledges sequence number 501 and - replaces its Receive Sequence Number for G - with 501 - - -C (ACK 501) ---> G - -On receipt of these acknowledgements, G computes (Send Sequence -Number - sequence number acknowledged) = (501-501). As this value -is zero, G notes that each of its neighbors has acknowledged -its routing update. - -Gateway G now has the following values in its tables: - -Send Sequence Received Acknowledgement from Neighbors - A B C - 501 Y Y Y - -Gateway A's Receive Sequence Number for G is 501. -Gateway B's Receive Sequence Number for G is 501. -Gateway C's Receive Sequence Number for G is 501. - - - - - - - - - - - - - - - - - - - - - - - - 22 - - - - - - - -15. Tables and Variables - -The following is a list of variables and tables in a typical -gateway implementation. - -1. Number of Networks - -2. Number of Neighbors - -3. Gateway Addresses - -The addresses of the gateway's network interfaces. - -4. Neighbor Gateway Addresses - -The address of each gateway network interface that is on the same -network as this gateway. - -5. Neighbor Connectivity Vector - -A vector of the connectivity between this gateway and each of its -neighbors. It contains K entries where K is the Number of -Neighbors. Values in this vector are computed as explained in -"Determining Connectivity to Neighbors". - -6. Distance Matrix - -A matrix of the routing updates received from the neighbor -gateways. - -7. Minimum Distance Vector - -A vector containing the minimum distance to each network. It is -computed as described in "Computing Routes". - -8. Routing Updates - -A set of vectors giving the distance from this gateway to each -network. There is a separate vector to be sent to each neighbor. -These are computed as described in "Computing Routes". - -9. Routing Updates from Non-Routing Gateways - -The routing updates that would have been received from each -neighbor gateway that does not participate in this routing -strategy. These are computed as described in "Non-Routing -Gateways". - - - - - - - 23 - - - - - - - -10. Routing Table - -A table containing, for each network, a list of the neighbor -gateways on a minimum distance route to the network. This is -computed as described in "Computing Routes". - -11. Send Sequence Number - -The sequence number that will be used to send the next routing -update. - -12. Receive Sequence Numbers - -The sequence numbers that the gateway received in the last -routing update from each of its neighbors. - -13. Received Acknowledgement Vector - -A vector indicating whether or not each neighbor has acknowledged -the sequence number in the most recent routing update sent. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 24 - - - - - - - -16. Events and Responses - -The following is a list of the events that occur at a gateway and -the gateway's responses. The variables and tables referred to -are listed above. This is a general guide for an implementation; -see the sections above for the details of the various -computations. - -1. Connectivity to a network to which the gateway is attached -changes. - - 1. Update the Minimum Distance Vector. - - 2. Recompute the Routing Updates. - - 3. Recompute the Routing Table. - - 4. If any routing update has changed, send the new - routing updates to the neighbors. - -2. Connectivity to a neighbor gateway changes. - - 1. Update the Neighbor Connectivity Vector. - - 2. Recompute the Minimum Distance Vector. - - 3. Recompute the Routing Updates. - - 4. Recompute the Routing Table. - - 5. If any routing update has changed, send the new - routing updates to the neighbors. - - -3. A Routing Update Packet is received. - - 1. Compare the internet source address of the Routing - Update Packet to the Neighbor Addresses. If the address - is not on the list, add it to the list of Neighbor - Addresses, increment the Number of Neighbors, and set the - Receive Sequence Number for this neighbor to the sequence - number in the Routing Update Packet. - - 2. Compare the Receive Sequence Number for this neighbor - to the sequence number in the Routing Update Packet to - determine whether or not to accept this packet. If the - packet is rejected, send a Negative Acknowledgement - Packet. If the packet is accepted, send an - Acknowledgement Packet and proceed with the following - steps. - - - - 25 - - - - - - - - 3. Compare the number of networks reported on in the - Routing Update Packet to the Number of Networks. If the - number of networks in the packet is greater than the - Number of Networks, then replace Number of Networks with - the number of networks in the packet. Expand the - Distance Matrix to account for the new networks. - - 4. Copy the routing update received into the appropriate - row of the Distance Matrix. - - 5. Recompute the Minimum Distance Vector. - - 6. Recompute the Routing Updates. - - 7. Recompute the Routing Table. - - 8. If any routing update has changed, send the new - routing updates to the neighbors. - -4. An Acknowledgement or Negative Acknowledgement Packet is -received. - - 1. Compare the sequence number in the packet to the Send - Sequence Number. If necessary, replace the Send Sequence - Number, and retransmit the routing updates. If the Send - Sequence Number is acknowledged, update the entry in the - Received Acknowledgment Vector for the neighbor that sent - the acknowledgement. - -5. A data packet is received. - - 1. Forward the data packet using the information in the - Routing Table entry for the packet's destination network. - - 2. If the destination is unreachable, send a Destination - Unreachable Packet to the internet source of the data - packet. - - 3. If the data packet is discarded because there are no - buffers available in the gateway, then send a Source - Quench Packet to the internet source of the data packet. - - 4. If the gateway to which the data packet is being - forwarded and the data packet's internet source are on - the same network, send a Redirect Packet to the internet - source of the data packet. - - - - - - - - 26 - - diff --git a/text/ien/ien11.txt b/text/ien/ien11.txt deleted file mode 100644 index 92f1b19a..00000000 --- a/text/ien/ien11.txt +++ /dev/null @@ -1,9 +0,0 @@ - - - -Section 2.3.3.4 (IEN # 11) is titled "Internetting or Beyond NCP" by -Danny Cohen of ISI. Please obtain copies from the author. -This memo is also assigned the numbers PRTN 213 and NSC 106, and is dated -21 March 1977. - - diff --git a/text/ien/ien110.txt b/text/ien/ien110.txt deleted file mode 100644 index 3564c701..00000000 --- a/text/ien/ien110.txt +++ /dev/null @@ -1,232 +0,0 @@ - - IEN 110 -On Problems IEN No. 110 - Our finest plans have fallen Vint Cerf - through, our airiest castles, DARPA/IPTO - tumbled over by lines at first 31 August l979 - we neatly drew, and later, - neatly stumbled over. - - Piet Hien - - Internet Addressing and Naming in a Tactical Environment - -A basic premise in the Internet and Transmission Control Protocols is -that addresses are unambiguous. An addressable object may own more than -one address, but each address is unambiguous. The transformation from -names to addresses might yield several addresses, but it has been -assumed that this transformation would take place above the TCP and IP -protocol layers [1,2]. - -Three realistic situations have been identified which suggest the need -to re-think this position. The first situation was informally described -by R. Tomlinson as a "network partitioning" problem in which a -particular host, H in network N, is reachable from one gateway attached -to network N but not another, because network N has become partitioned -into two or more pieces. If the system of internet gateways in fact -provides connectivity, it is desirable to find some way to route traffic -to the gateway that can reach the destination host, even if this would -require that traffic be routed out of network N, through networks A, B, -and C, and back into network N again. - -The second situation was described in a private note from W. Plummer and -R. Tomlinson to the author and concerns hosts which are attached to more -than one network. In the present paradigm, such a host has two distinct -addresses, but might have only one name. Once a TCP connection is set -up, for example, the connection ID consists of source and destination -net and host addresses as well as source and destination port -identifiers. Since a net and host address is bound to a particular -connection to a given network, the failure of a particular interface can -only be recovered by setting up a new TCP connection to an alternate -destination or from an alternate source. Simultaneous recovery when -both source and destination have alternate addresses could lead to -synchronization problems if each site happens to choose a different -destination on which to home during recovery. Depending on the subnet -services, even hosts which are multi-homed onto the same net (e.g., -ARPANET) may have different alternate addresses. - -The third situation arises in connection with an advanced airborne -packet radio application. It first emerged in conversations with Major -L. Druffel of the DARPA/IPT office. In this case, long-range packet -radios (200-300 miles) are installed in aircraft and on the ground at -selected sites. The ground sites may or may not have connectivity with -each other (e.g., through a wire network and gateways). While aircraft -are aloft, they communicate with each other and the ground via packet -radios. If we treat the ground packet radio networks as a single net - - -Cerf [Page 1] - - - IEN 110 -Internet Addressing and Naming in a Tactical Environment - - - -(for internet addressing purposes) and include the airborne packet -radios as a part of that net, then this creates the partitioned network -problem which was raised by R. Tomlinson. - -If, on the other hand, each ground network is treated as a distinct -network, the airborne packet radios would effectively join and depart -from different nets, sometimes operating in radio connectivity with two -of the distinct ground nets at the same time (during transition from one -packet radio net to another). This model rapidly unravels into a -classical can of worms, since the internet address of the airborne -packet radio would need to change as it moves from one net to the next, -leading to a problem related to the W. Plummer multi-homed internet host -problem. - -Furthermore, at the packet radio level, there is no built-in concept of -which internetwork network identifier is associated with ARPANET, just -as there is no such self-identification in the SATNET, ARPANET, LCSNET, -etc. Xerox Parc has introduced network identification through the use -of broadcast servers in each ethernet gateway which responds with the -network ID to queries coming in on a given physical port. - -The problem is compounded in a tactical ground environment when two -mobile packet radio nets, each with their own network ID's and gateways -to other nets (e.g., SATNET) suddenly move within radio range of each -other. If they are to continue to be treated as distinct networks, then -they must interface via gateways, and each must somehow ignore packets -being sent by radios in the other network. Worse, there really should -be a way to gateway the two nets together via radio, but this implies -the existence of a radio link between gateway nodes - the radio link -then needs to be treated either as a very special link between gateway -halves (i.e., line of sight only). Alternatively, the two networks must -somehow collapse into a single network with two identifiers (the dual of -a host which is attached to two distinct nets). - -As a strawman, I would like to offer an opinion as to the way in which -these problems should be treated, for purposes of stimulating discussion -in the internet working group. - - 1. If the packet radio networks (airborne or ground mobile) are - operating on a common channel they should be treated as a single - network. This creates a partitioned network problem which must be - solved. - - 2. If the packet radio networks are operating in different frequency - bands, then methods of connecting their gateways are needed. An - obvious strategy is to attach a gateway to two packet radios, one - operating on one net and the other in the second. Simultaneous - - - -Cerf [Page 2] - - - IEN 110 -Internet Addressing and Naming in a Tactical Environment - - - - operation in both nets by a single radio is not presently feasible, - but could be studied as a research problem. - - 3. Hosts which are deliberately multihomed on distinct networks - should be able to recover from interface failures, but by mechanisms - above the TCP/internet layer, not within them. - -To deal with the partitioned network problem, it should be possible to -broadcast (or send distinct copies of) a message from a host to all -gateways attached to the net(s) the host interfaces with, requesting -indications as to which gateway(s) are able to reach a given network. -Using source routing, it should be possible to query the host by -emitting packets which are forced to go through all gateways on the -host's network to get to the desired destination. These queries would -elicit responses which contain source routing information useful to the -source. It isn't yet clear whether the source routing needed to achieve -this capability needs to be used recursively to force traversal of all -possible gateway paths into the destination network, but I suspect -something like that is required (a sort of multi-network route-finding -packet very analogous to a similar object described in the packet radio -network protocols for stationless operation [3]). - -An alternative strategy might be to attempt to maintain a model of the -entire internetwork topology in each gateway and to respond to host -queries about all known paths (sequences of nets and gateways) from the -source net into the destination network. For even moderately rich -network interconnection the computation to supply a response and/or the -quantity of response data might be excessive. - -A third possibility is to introduce knowledge of all hosts in all nets -into each gateway and to perform routing updates based on host -identifiers rather than network identifiers. This seems even more -prohibitive than keeping track of internet topology in each gateway. - -SUMMARY - -The basic catch-22 in the airborne packet radio case is that we must -either assume that all nets remain "connected" and therefore have the -airborne radio join different nets (and have a higher level protocol for -readdressing of TCP or internet packets). Or we must deal with the -partitioned network problem. Since the packet radio network is designed -to adapt to the appearance of new packet radios that have not appeared -before, it seems natural to consider the combination of ground and -airborne networks as a single network, possibly partitioned, with -connectivity available via gateways to other networks. If we can solve -the problem of routing "out of the network" to reach a disconnected -partition, we can also look forward to providing increased robustness in -wire nets through the use of satellite networks, for example. - - -Cerf [Page 3] - - - IEN 110 -Internet Addressing and Naming in a Tactical Environment - - - -The multi-homed internet host problem may arise in both the case of a -conventional host and the case of a gateway connecting two or more nets. -It appears to be most straightforward to retain multiple addresses for -such hosts and to supply knowledge of the multiple addresses through -internet name server services. - - References - -1. DARPA, Transmission Control Protocol, IEN No. 81, February 1979, - NTIS Accession No. ADA 067072. - -2. DARPA, Internet Protocol, IEN No. 80, February 1979, NTIS Accession - No. ADA 067849. - -3. R. Kahn, S. Gronemeyer, J. Burchfiel and R. Kunzelman, "Advances in - Packet Radio Technology," IEEE Proceedings, Vol. 66, No. 11, Nov. - 1978, Special Issue on Packet Communication Networks. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Cerf [Page 4] - \ No newline at end of file diff --git a/text/ien/ien111.txt b/text/ien/ien111.txt deleted file mode 100644 index b0e7f53e..00000000 --- a/text/ien/ien111.txt +++ /dev/null @@ -1,2649 +0,0 @@ - - August 1979 - -IEN: 111 - - - - - - - - INTERNET PROTOCOL - - - - August 1979 - - - - - - - - - - - - - - - - - - - prepared for - - Defense Advanced Research Projects Agency - Information Processing Techniques Office - 1400 Wilson Boulevard - Arlington, Virginia 22209 - - - - - - - - by - - Information Sciences Institute - University of Southern California - 4676 Admiralty Way - Marina del Rey, California 90291 - -August 1979 - Internet Protocol - - - - TABLE OF CONTENTS - - PREFACE ........................................................ iii - -1. INTRODUCTION ..................................................... 1 - - 1.1 Motivation .................................................... 1 - 1.2 Scope ......................................................... 1 - 1.3 Interfaces .................................................... 1 - 1.4 Operation ..................................................... 2 - -2. OVERVIEW ......................................................... 5 - - 2.1 Relation to Other Protocols ................................... 5 - 2.2 Model of Operation ............................................ 5 - 2.3 Function Description .......................................... 7 - -3. SPECIFICATION ................................................... 11 - - 3.1 Internet Header Format ....................................... 11 - 3.2 Discussion ................................................... 22 - 3.3 Examples & Scenarios ......................................... 30 - 3.4 Interfaces ................................................... 34 - -GLOSSARY ............................................................ 37 - -REFERENCES .......................................................... 41 - - - - - - - - - - - - - - - - - - - - - - - - - [Page i] - - - August 1979 -Internet Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page ii] - - -August 1979 - Internet Protocol - - - - PREFACE - - - -This document describes the Internet Protocol. There have been three -previous editions of this specification, and the present text draws -heavily from them. There have been many contributors to this document -both in terms of concepts and in terms of text. - - Jon Postel - - Editor - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Page iii] - - -August 1979 -IEN: 111 -Replaces: IENs 80, -54, 44, 41, 28, 26 - - - - - Internet Protocol Specification - - - - 1. INTRODUCTION - -1.1. Motivation - - The Internet Protocol is designed for use in interconnected systems of - packet-switched computer communication networks. Such a system has - been called a "catenet" [1]. The internet protocol provides for - transmitting blocks of data called datagrams from sources to - destinations, where sources and destinations are hosts identified by - fixed length addresses. The internet protocol also provides for - fragmentation and reassembly of long datagrams, if necessary, for - transmission through "small packet" networks. - -1.2. Scope - - The internet protocol is specifically limited in scope to provide the - functions necessary to deliver a package of bits (an internet - datagram) from a source to a destination over an interconnected system - of networks. There are no mechanisms to promote data reliability, - flow control, sequencing, or other services commonly found in - host-to-host protocols. - -1.3. Interfaces - - This protocol is called on by host-to-host protocols in an internet - environment. This protocol calls on local network protocols to carry - the internet datagram to the next gateway or destination host. - - For example, a TCP module would call on the internet module to take a - TCP segment (including the TCP header and user data) as the data - portion of an internet datagram. The TCP module would provide the - addresses and other parameters in the internet header to the internet - module as arguments of the call. The internet module would then - create an internet datagram and call on the local network interface to - transmit the internet datagram. - - In the ARPANET case, for example, the internet module would call on a - local net module which would add the 1822 leader [2] to the internet - datagram creating an ARPANET message to transmit to the IMP. The - ARPANET address would be derived from the internet address by the - local network interface and would be the address of some host in the - ARPANET, that host might be a gateway to other networks. - - - [Page 1] - - - August 1979 -Internet Protocol -Introduction - - - -1.4. Operation - - The internet protocol implements two basic functions: addressing and - fragmentation. - - The internet modules use the addresses carried in the internet header - to transmit the internet datagram toward their destinations. The - selection of a path for transmission is called routing. - - The internet modules use fields in the internet header to fragment and - reassemble internet datagrams when necessary for transmission through - "small packet" networks. - - The model of operation is that an internet module resides in each host - engaged in internet communication and in each gateway that - interconnects networks. These modules share common rules for - interpreting address fields and for fragmenting and assembling - internet datagrams. In addition, these modules (especially in - gateways) may have procedures for making routing decisions and other - functions. - - The internet protocol treats each internet datagram as an independent - entity unrelated to any other internet datagram. There are no - connections or logical circuits (virtual or otherwise). - - The internet protocol uses four key mechanisms in providing its - service: Type of Service, Time to Live, Options, and Header Checksum. - - The Type of Service is used to indicate the quality of the service - desired; this may be thought of as selecting among Interactive, Bulk, - or Real Time, for example. The type of service is an abstract or - generalized set of parameters which characterize the service choices - provided in the networks that make up the internet. This type of - service indication is to be used by gateways to select the actual - transmission parameters for a particular network, the network to be - used for the next hop, or the next gateway when routing an internet - datagram. - - The Time to Live is an indication of the lifetime of an internet - datagram. It is set by the sender of the datagram and reduced at the - points along the route where it is processed. If the time to live - reaches zero before the internet datagram reaches its destination, the - internet datagram is destroyed. The time to live can be thought of as - a self destruct time limit. - - The Options provide for control functions needed or useful in some - situations but unnecessary for the most common communications. The - - - -[Page 2] - - -August 1979 - Internet Protocol - Introduction - - - - options include provisions for timestamps, error reports, and special - routing. - - The Header Checksum provides a verification that the information used - in processing internet datagram has been transmitted correctly. The - data may contain errors. If the header checksum fails, the internet - datagram is discarded at once by the entity which detects the error. - - The internet protocol does not provide a reliable communication - facility. There are no acknowledgments either end-to-end or - hop-by-hop. There is no error control for data, only a header - checksum. There are no retransmissions. There is no flow control. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Page 3] - - - August 1979 -Internet Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 4] - - -August 1979 - Internet Protocol - - - - 2. OVERVIEW - -2.1. Relation to Other Protocols - - The following diagram illustrates the place of the internet protocol - in the protocol hierarchy: - - - +------+ +-----+ +-----+ +-----+ - |Telnet| | FTP | |Voice| ... | | - +------+ +-----+ +-----+ +-----+ - | | | | - +-----+ +-----+ +-----+ - | TCP | | RTP | ... | | - +-----+ +-----+ +-----+ - | | | - +-------------------------------+ - | Internet Protocol | - +-------------------------------+ - | - +---------------------------+ - | Local Network Protocol | - +---------------------------+ - | - - - - Protocol Relationships - - Figure 1. - - Internet protocol interfaces on one side to the higher level - host-to-host protocols and on the other side to the local network - protocol. - -2.2. Model of Operation - - The model of operation for transmitting a datagram from one - application program to another is illustrated by the following - scenario: - - We suppose that this transmission will involve one intermediate - gateway. - - The sending application program prepares its data and calls on its - local internet module to send that data as a datagram and passes the - destination address and other parameters as arguments of the call. - - The internet module prepares a datagram header and attaches the data - - - [Page 5] - - - August 1979 -Internet Protocol -Overview - - - - to it. The internet module determines a local network address for - this internet address, in this case it is the address of a gateway. - It sends this datagram and the local network address to the local - network interface. - - The local network interface creates a local network header, and - attaches the datagram to it, then sends the result via the local - network. - - The datagram arrives at a gateway host wrapped in the local network - header, the local network interface strips off this header, and - turns the datagram over to the internet module. The internet module - determines from the internet address that the datagram should be - forwarded to another host in a second network. The internet module - determines a local net address for the destination host. It calls - on the local network interface for that network to send the - datagram. - - This local network interface creates a local network header and - attaches the datagram sending the result to the destination host. - - At this destination host the datagram is stripped of the local net - header by the local network interface and handed to the internet - module. - - The internet module determines that the datagram is for an - application program in this host. It passes the data to the - application program in response to a system call, passing the source - address and other parameters as results of the call. - - - Application Application - Program Program - \ / - Internet Module Internet Module Internet Module - \ / \ / - LNI-1 LNI-1 LNI-2 LNI-2 - \ / \ / - Local Network 1 Local Network 2 - - - - Transmission Path - - Figure 2 - - - - - -[Page 6] - - -August 1979 - Internet Protocol - Overview - - - -2.3. Function Description - - The function or purpose of Internet Protocol is to move datagrams - through an interconnected set of networks. This is done by passing - the datagrams from one internet module to another until the - destination is reached. The internet modules reside in hosts and - gateways in the internet system. The datagrams are routed from one - internet module to another through individual networks based on the - interpretation of an internet address. Thus, one important mechanism - of the internet protocol is the internet address. - - In the routing of messages from one internet module to another, - datagrams may need to traverse a network whose maximum packet size is - smaller than the size of the datagram. To overcome this difficulty, a - fragmentation mechanism is provided in the internet protocol. - - Addressing - - A distinction is made between names, addresses, and routes [3]. A - name indicates what we seek. An address indicates where it is. A - route indicates how to get there. The internet protocol deals - primarily with addresses. It is the task of higher level (i.e., - host-to-host or application) protocols to make the mapping from - names to addresses. The internet module maps internet addresses to - local net addresses. It is the task of lower level (i.e., local net - or gateways) procedures to make the mapping from local net addresses - addresses to routes. - - Addresses are fixed length of four octets (32 bits). An address - begins with a one octet network number, followed by a three octet - local address. This three octet field is called the "rest" field. - - Care must be taken in mapping internet addresses to local net - addresses; a single physical host must be able to act as if it were - several distinct hosts to the extent of using several distinct - internet addresses. A host should also be able to have several - physical interfaces (multi-homing). - - That is, a host should be allowed several physical interfaces to the - network with each having several logical internet addresses. - - Examples of address mappings may be found in reference [4]. - - Fragmentation - - Fragmentation of an internet datagram may be necessary when it - originates in a local net that allows a large packet size and must - - - - [Page 7] - - - August 1979 -Internet Protocol -Overview - - - - traverse a local net that limits packets to a smaller size to reach - its destination. - - An internet datagram can be marked "don't fragment." Any internet - datagram so marked is not to be internet fragmented under any - circumstances. If internet datagram marked don't fragment cannot be - delivered to its destination without fragmenting it, it is to be - discarded instead. - - Fragmentation, transmission and reassembly across a local network - which is invisible to the internet protocol module is called - intranet fragmentation and may be used [5]. - - The internet fragmentation and reassembly procedure needs to be able - to break a datagram into an almost arbitrary number of pieces that - can be later reassembled. The receiver of the fragments uses the - identification field to ensure that fragments of different datagrams - are not mixed. The fragment offset field tells the receiver the - position of a fragment in the original datagram. The fragment - offset and length determine the portion of the original datagram - covered by this fragment. The more-fragments flag indicates (by - being reset) the last fragment. These fields provide sufficient - information to reassemble datagrams. - - The identification field is used to distinguish the fragments of one - datagram from those of another. The originating protocol module of - an internet datagram sets the identification field to a value that - must be unique for that source-destination pair and protocol for the - time the datagram will be active in the internet system. The - originating protocol module of a complete datagram sets the - more-fragments flag to zero and the fragment offset to zero. - - To fragment a long internet datagram, an internet protocol module - (for example, in a gateway), creates two new internet datagrams and - copies the contents of the internet header fields from the long - datagram into both new internet headers. The data of the long - datagram is divided into two portions on a 8 octet (64 bit) boundary - (the second portion might not be an integral multiple of 8 octets, - but the first must be). Call the number of 8 octet blocks in the - first portion NFB (for Number of Fragment Blocks). The first - portion of the data is placed in the first new internet datagram, - and the total length field is set to the length of the first - datagram. The more-fragments flag is set to one. The second - portion of the data is placed in the second new internet datagram, - and the total length field is set to the length of the second - datagram. The more-fragments flag carries the same value as the - long datagram. The fragment offset field of the second new internet - - - -[Page 8] - - -August 1979 - Internet Protocol - Overview - - - - datagram is set to the value of that field in the long datagram plus - NFB. - - This procedure can be generalized for an n-way split, rather than - the two-way split described. - - To assemble the fragments of an internet datagram, an internet - protocol module (for example at a destination host) combines - internet datagram that all have the same value for the four fields: - identification, source, destination, and protocol. The combination - is done by placing the data portion of each fragment in the relative - position indicated by the fragment offset in that fragment's - internet header. The first fragment will have the fragment offset - zero, and the last fragment will have the more-fragments flag reset - to zero. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Page 9] - - - August 1979 -Internet Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 10] - - -August 1979 - Internet Protocol - - - - 3. SPECIFICATION - -3.1. Internet Header Format - - A summary of the contents of the internet header follows: - - - 0 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - |Version| IHL |Type of Service| Total Length | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Identification |Flags| Fragment Offset | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Time to Live | Protocol | Header Checksum | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Source Address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Destination Address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Options | Padding | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - - Example Internet Datagram Header - - Figure 3. - - Note that each tick mark represents one bit position. - - Version: 4 bits - - The Version field indicates the format of the internet header. This - document describes version 4. - - IHL: 4 bits - - Internet Header Length is the length of the internet header in 32 - bit words, and thus points to the beginning of the data. Note that - the minimum value for a correct header is 5. - - - - - - - - - - - - - [Page 11] - - - August 1979 -Internet Protocol -Specification - - - - Type of Service: 8 bits - - The Type of service provides an indication of the abstract - parameters of the quality of service desired. These parameters are - to be used to guide the selection of the actual service parameters - when transmitting a datagram through a particular network. Several - networks offer a priority service, which somehow treats high - priority traffic as more important than other traffic. A few - networks offer a Stream service, whereby one can achieve a smoother - service at some cost. Typically this involves the reservation of - resources within the network. Another choice involves a low-delay - vs. high-reliability trade off. Typically networks invoke more - complex (and delay producing) mechanisms as the need for reliability - increases. - - Bits 0-1: Priority. - Bit 2: Stream or Datagram. - Bits 3-4: Reliability. - Bit 5: Speed over Reliability. - Bits 6-7: Speed. - - 0 1 2 3 4 5 6 7 - +-----+-----+-----+-----+-----+-----+-----+-----+ - | | | | | | - | PRIORITY |STRM |RELIABILITY| S/R | SPEED | - | | | | | | - +-----+-----+-----+-----+-----+-----+-----+-----+ - - PRIORITY STRM RELIABILITY S/R SPEED - 11-highest 1-STREAM 11-highest 1-speed 11-highest - 10-higher 0-DTGRM 10-higher 0-rlblt 10-higher - 01-lower 01-lower 01-lower - 00-lowest 00-lowest 00-lowest - - The type of service is used to specify the treatment of the datagram - during its transmission through the internet system. In the - discussion (section 3.2) below, a chart shows the relationship of - the internet type of service to the actual service provided on the - ARPANET, the SATNET, and the PRNET. - - Total Length: 16 bits - - Total Length is the length of the datagram, measured in octets, - including internet header and data. This field allows the length of - a datagram to be up to 65,535 octets. Such long datagrams are - impractical for most hosts and networks. All hosts must be prepared - to accept datagrams of up to 576 octets (whether they arrive whole - in fragments). It is recommended that hosts only send datagrams - - -[Page 12] - - -August 1979 - Internet Protocol - Specification - - - - larger than 576 octets if they have assurance that the destination - is prepared to accept the larger datagrams. - - The number 576 is selected to allow a reasonable sized data block to - be transmitted in addition to the required header information. For - example, this size allows a data block of 512 octets plus 64 header - octets to fit in a datagram. The maximal internet header is 60 - octets, and a typical internet header is 20 octets, allowing a - margin for headers of higher level protocols. - - Identification: 16 bits - - An identifying value assigned by the sender to aid in assembling the - fragments of a datagram. - - Flags: 3 bits - - Various Control Flags. - - Bit 0: reserved, must be zero - Bit 1: Don't Fragment This Datagram (DF). - Bit 2: More Fragments Flag (MF). - - 0 1 2 - +---+---+---+ - | | D | M | - | 0 | F | F | - +---+---+---+ - - Fragment Offset: 13 bits - - This field indicates where in the datagram this fragment belongs. - The fragment offset is measured in units of 8 octets (64 bits). The - first fragment has offset zero. - - Time to Live: 8 bits - - This field indicates the maximum time the datagram is allowed to - remain the internet system. If this field contains the value zero, - then the datagram should be destroyed. This field is modified in - internet header processing. The time is measured in units of - seconds. The intention is to cause undeliverable datagrams to be - discarded. - - - - - - - - [Page 13] - - - August 1979 -Internet Protocol -Specification - - - - Protocol: 8 bits - - This field indicates the next level protocol used in the data - portion of the internet datagram. The values for various protocols - are specified in reference [6]. - - Header Checksum: 16 bits - - A checksum on the header only. Since some header fields may change - (e.g., time to live), this is recomputed and verified at each point - that the internet header is processed. - - The checksum algorithm is: - - The checksum field is the 16 bit one's complement of the one's - complement sum of all 16 bit words in the header. For purposes of - computing the checksum, the value of the checksum field is zero. - - This is a simple to compute checksum and experimental evidence - indicates it is adequate, but it is provisional and may be replaced - by a CRC procedure, depending on further experience. - - Source Address: 32 bits - - The source address. The first octet is the Source Network, and the - following three octets are the Source Local Address. - - Destination Address: 32 bits - - The destination address. The first octet is the Destination - Network, and the following three octets are the Destination Local - Address. - - - - - - - - - - - - - - - - - - -[Page 14] - - -August 1979 - Internet Protocol - Specification - - - - Options: variable - - The option field is variable in length. There may be zero or more - options. There are two case for the format of an option: - - Case 1: A single octet of option-type. - - Case 2: An option-type octet, an option-length octet, and the - actual option-data octets. - - The option-length octet counts the option-type octet and the - option-length octet as well as the option-data octets. - - The option-type octet is viewed as having 3 fields: - - 1 bit reserved, must be zero - 2 bits option class, - 5 bits option number. - - The option classes are: - - 0 = control - 1 = internet error - 2 = experimental debugging and measurement - 3 = reserved for future use - - - - - - - - - - - - - - - - - - - - - - - - - - [Page 15] - - - August 1979 -Internet Protocol -Specification - - - - The following internet options are defined: - - CLASS NUMBER LENGTH DESCRIPTION - ----- ------ ------ ----------- - 0 0 - End of Option list. This option occupies only - 1 octet; it has no length octet. - 0 1 - No Operation. This option occupies only 1 - octet; it has no length octet. - 0 2 4 S/P/T. Used to carry Security, Precedence, - and user group (TCC) information compatible - with AUTODIN II requirements. - 0 3 var. Source Routing. Used to route the internet - datagram based on information supplied by the - source. - 0 4 var. BCR Open. - 0 5 var. BCR Close. - 0 6 var. BCR other. - 0 7 var. Return Route. Used to record the route an - internet datagram takes. - 0 8 4 Stream ID. Used to carry the stream - identifier. - 1 1 var. General Error Report. Used to report errors - in internet datagram processing. - 2 4 6 Internet Timestamp. Used to accumulate - timestamping information during internet - transit. The length field is variable and may - change as the internet datagram traverses the - networks and gateways of the internet system. - 2 5 6 Satellite Timestamp. Used as above for - special satellite network testing. - - - - Specific Option Definitions - - End of Option List - - +--------+ - |00000000| - +--------+ - Type=0 - - This option indicates the end of the option list. This might - not coincide with the end of the internet header according to - the internet header length. This is used at the end of all - options, not the end of each option, and need only be used if - the end of the options would not otherwise coincide with the end - of the internet header. - - -[Page 16] - - -August 1979 - Internet Protocol - Specification - - - - May be copied, introduced, or deleted on fragmentation. - - No Operation - - +--------+ - |00000001| - +--------+ - Type=1 - - This option may be used between options, for example, to align - the beginning of a subsequent option on a 32 bit boundary. - - May be copied, introduced, or deleted on fragmentation. - - S/P/T - - This option provides a way for AUTODIN II hosts to send - security, precedence, and TCC (closed user groups) parameters - through networks whose transport leader does not contain fields - for this information. The format for this option is as follows: - - +--------+--------+---------+--------+ - |00000010|00000100|Prec|Sec | TCC | - +--------+--------+---------+--------+ - Type=2 Length=4 - - Precedence: 4 bits - - Specifies one of 16 levels of precedence - - Security: 4 bits - - Specifies one of 16 levels of security - - Transmission Control Code: 8 bits - - Provides a means to compartmentalize traffic and define - controlled communities of interest among subscribers. - - This option might be used between hosts on the AUTODIN II - network and other networks, such as the EDN at DCEC. - - Must be copied on fragmentation. - - - - - - - - [Page 17] - - - August 1979 -Internet Protocol -Specification - - - - Source Route - - +--------+--------+--------+---------//--------+ - |00000011| length | source route | - +--------+--------+--------+---------//--------+ - Type=3 - - The source route option provides a means for the source of an - internet datagram to supply routing information to be used by - the gateways in forwarding the datagram to the destination. - - The option begins with the option type code. The second octet - is the option length which includes the option type code and the - length octet, as well as length-2 octets of source route data. - - A source route is composed of a series of internet addresses. - Each internet address is 32 bits or 4 octets. The length - defaults to two, which indicates the source route is empty and - the remaining routing is to be based on the destination address - field. - - If the address in destination address field has been reached and - this option's length is not two, the next address in the source - route replaces the address in the destination address field, and - is deleted from the source route and this option's length is - reduced by four. (The Internet Header Length Field must be - changed also.) - - Must be copied on fragmentation. - - Return Route - - +--------+--------+--------+---------//--------+ - |00000111| length | return route | - +--------+--------+--------+---------//--------+ - Type=7 - - The return route option provides a means to record the route of - an internet datagram. - - The option begins with the option type code. The second octet - is the option length which includes the option type code and the - length octet, as well as length-2 octets of return route data. - - A return route is composed of a series of internet addresses. - The length defaults to two, which indicates the return route is - empty. - - - -[Page 18] - - -August 1979 - Internet Protocol - Specification - - - - When an internet module routes a datagram it checks to see if - the return route option is present. If it is, it inserts its - own internet address as known in the environment into which this - datagram is being forwarded into the return route at the front - of the address string and increments the length by four. - - Not copied on fragmentation, goes in first fragment only. - - BCR Options - - BCR OPEN - - +--------+--------+------ - |00000100| length | data - +--------+--------+------ - Type=4 - - BCR CLOSE - - +--------+--------+------ - |00000101| length | data - +--------+--------+------ - Type=5 - - BCR OTHER - - +--------+--------+------ - |00000110| length | data - +--------+--------+------ - Type=6 - - These options are used with the BCR. - - These options are not copied on fragmentation, they are carried - only in the first fragment. - - Stream Identifier - - +--------+--------+---------+--------+ - |00001000|00000010| Stream ID | - +--------+--------+---------+--------+ - Type=8 Length=4 - - This option provides a way for the 16-bit SATNET stream - identifier to be carried through networks that do not support - the stream concept. - - Must be copied on fragmentation. - - - [Page 19] - - - August 1979 -Internet Protocol -Specification - - - - General Error Report - - +--------+--------+--------+--------+--------+----//----+ - |00100001| length |err code| id | | - +--------+--------+--------+--------+--------+----//----+ - Type=33 - - The general error report is used to report an error detected in - processing an internet datagram to the source internet module of - that datagram. The "err code" indicates the type of error - detected, and the "id" is copied from the identification field - of the datagram in error, additional octets of error information - may be present depending on the err code. - - If an internet datagram containing the general error report - option is found to be in error or must be discarded, no error - report is sent. - - ERR CODE: - - 0 - Undetermined Error, used when no information is available - about the type of error or the error does not fit any defined - class. Following the id should be as much of the datagram - (starting with the internet header) as fits in the option - space. - - 1 - Datagram Discarded, used when specific information is - available about the reason for discarding the datagram can be - reported. Following the id should be the original (4-octets) - destination address, and the (1-octet) reason. - - Reason Description - ------ ----------- - 0 No Reason - 1 No One Wants It - No higher level protocol or - application program at destination wants this - datagram. - 2 Fragmentation Needed & DF - Cannot deliver with out - fragmenting and has don't fragment bit set. - 3 Reassembly Problem - Destination could not - reassemble due to missing fragments when time to - live expired. - 4 Gateway Congestion - Gateway discarded datagram due - to congestion. - - The error report is placed in a datagram with the following - values in the internet header fields: - - - -[Page 20] - - -August 1979 - Internet Protocol - Specification - - - - Version: Same as the datagram in error. - IHL: As computed. - Type of Service: Zero. - Total Length: As computed. - Identification: A new identification is selected. - Flags: Zero. - Fragment Offset: Zero. - Time to Live: Sixty. - Protocol: Same as the datagram in error. - Header Checksum: As computed. - Source Address: Address of the error reporting module. - Destination Address: Source address of the datagram in error. - Options: The General Error Report Option. - Padding: As needed. - - Not copied on fragmentation, goes with first fragment. - - Internet Timestamp - - +--------+--------+--------+--------+--------+--------+ - |01000100|00000100| time in milliseconds | - +--------+--------+--------+--------+--------+--------+ - Type=68 Length=6 - - The data of the timestamp is a 32 bit time measured in - milliseconds. - - Not copied on fragmentation, goes with first fragment - - Satellite Timestamp - - +--------+--------+--------+--------+--------+--------+ - |01000101|00000100| time in milliseconds | - +--------+--------+--------+--------+--------+--------+ - Type=69 Length=6 - - The data of the timestamp is a 32 bit time measured in - milliseconds. - - Not copied on fragmentation, goes with first fragment - - Padding: variable - - The internet header padding is used to ensure that the internet - header ends on a 32 bit boundary. The padding is zero. - - - - - - [Page 21] - - - August 1979 -Internet Protocol -Specification - - - -3.2. Discussion - - The implementation of a protocol must be robust. Each implementation - must expect to interoperate with others created by different - individuals. While the goal of this specification is to be explicit - about the protocol there is the possibility of differing - interpretations. In general, an implementation should be conservative - in its sending behavior, and liberal in its receiving behavior. That - is, it should be careful to send well-formed datagrams, but should - accept any datagram that it can interpret (e.g., not object to - technical errors where the meaning is still clear). - - The basic internet service is datagram oriented and provides for the - fragmentation of datagrams at gateways, with reassembly taking place - at the destination internet protocol module in the destination host. - Of course, fragmentation and reassembly of datagrams within a network - or by private agreement between the gateways of a network is also - allowed since this is transparent to the internet protocols and the - higher-level protocols. This transparent type of fragmentation and - reassembly is termed "network-dependent" (or intranet) fragmentation - and is not discussed further here. - - Internet addresses distinguish sources and destinations to the host - level and provide a protocol field as well. It is assumed that each - protocol will provide for whatever multiplexing is necessary within a - host. - - Addressing - - The 8 bit network number, which is the first octet of the variable - length address, has a value as specified in reference [6]. - - The 24 bit local address, assigned by the local network, should - allow for a single physical host to act as several distinct internet - hosts. That is, there should be mapping between internet host - addresses and network/host interfaces that allows several internet - addresses to correspond to one interface. It should also be allowed - for a host to have several physical interfaces and to treat the - datagrams from several of them as if they were all addressed to a - single host. Address mappings between internet addresses and - addresses for ARPANET, SATNET, PRNET, and other networks are - described in reference [4]. - - Fragmentation and Reassembly. - - The internet identification field (ID) is used together with the - source and destination address, and the protocol fields, to identify - datagrams fragments for reassembly. - - -[Page 22] - - -August 1979 - Internet Protocol - Specification - - - - The More Fragments flag bit (MF) is set if the datagram is not the - last fragment. The Fragment Offset field identifies the fragment - location, relative to the beginning of the original unfragmented - datagram. Fragments are counted in units of 8 octets. The - fragmentation strategy is designed so than an unfragmented datagram - has all zero fragmentation information (MF = 0, fragment offset = - 0). If an internet datagram is fragmented, its data portion must be - broken on 8 octet boundaries. - - This format allows 2**13 = 8192 fragments of 8 octets each for a - total of 65,536 octets. Note that this is consistent with the the - datagram total length field. - - When fragmentation occurs, options some are not copied, but others - remain with the first fragment only. - - Every internet module must be able to forward a datagram of 68 - octets without further fragmentation. This is because an internet - header may be up to 60 octets, and the minimum fragment is 8 octets. - - Every internet destination must be able to receive a datagram of 576 - octets either in one piece or in fragments to be reassembled. - - The fields which may be affected by fragmentation include: - - (1) options field - (2) more fragments flag - (3) fragment offset - (4) internet header length field - (5) total length field - (6) header checksum - - If the Don't Fragment flag (DF) bit is set, then internet - fragmentation of this datagram is NOT permitted, although it may be - discarded. This can be used to prohibit fragmentation in cases - where the receiving host does not have sufficient resources to - reassemble internet fragments. - - General notation in the following pseudo programs: "=<" means "less - than or equal", "#" means "not equal", "=" means "equal", "<-" means - "is set to". Also, "x to y" includes x and excludes y; for example, - "4 to 7" would include 4, 5, and 6 (but not 7). - - Fragmentation Procedure - - The maximum sized message that can be transmitted through the next - network is called the maximum transmission unit (MTU). - - - - [Page 23] - - - August 1979 -Internet Protocol -Specification - - - - If the total length is less than or equal the maximum transmission - unit then submit this datagram to the next step in datagram - processing; otherwise cut the datagram into to fragments, the - first fragment being the maximum size (modulo the fragment block - size), and the second fragment being the rest of the datagram. - The first fragment is submitted to the next step in datagram - processing, while the second fragment is submitted to this - procedure in case it still too large. - - Notation: - - FO - Fragment Offset - IHL - Internet Header Length - MF - More Fragments flag - TL - Total Length - OFO - Old Fragment Offset - OIHL - Old Internet Header Length - OMF - Old More Fragments flag - OTL - Old Total Length - NFB - Number of Fragment Blocks - MTU - Maximum Transmission Unit - - Procedure: - - IF TL =< MTU THEN Submit this datagram to the next step - in datagram processing ELSE - To produce the first fragment: - (1) Copy the original internet header; - (2) OIHL <- IHL; OTL <- TL; OFO <- FO; OMF <- MF; - (3) NFB <- (MTU-IHL*4)/8; - (4) Attach the first NFB*8 data octets; - (5) Correct the header: - MF <- 1; TL <- (IHL*4)+(NFB*8); - Recompute Checksum; - (6) Submit this fragment to the next step in - datagram processing; - To produce the second fragment: - (7) Selectively copy the internet header (some options - are not copied, see option definitions); - (8) Append the remaining data; - (9) Correct the header: - IHL <- OIHL - ((length of options not copied)+3)/4; - TL <- OTL - NFB*8 - (OIHL-IHL)*4); - FO <- OFO + NFB; MF <- OMF; Recompute Checksum; - (10) Submit this fragment to the fragmentation test; DONE. - - - - - -[Page 24] - - -August 1979 - Internet Protocol - Specification - - - - Reassembly Procedure - - For each datagram the buffer identifier is computed as the - concatenation of the source, destination, protocol, and - identification fields. If this is a whole datagram (that is both - the fragment offset and the more fragments fields are zero), then - any reassembly resources associated with this buffer identifier - are released and the datagram is forwarded to the next step in - datagram processing. - - If no other fragment with this buffer identifier is on hand then - reassembly resources are allocated. The reassembly resources - consist of a data buffer, a header buffer, a fragment block bit - table, a total data length field, and a timer. The data from the - fragment is placed in the data buffer according to its fragment - offset and length, and bits are set in the fragment block bit - table corresponding to the fragment blocks received. - - If this is the first fragment (that is the fragment offset is - zero) this header is placed in the header buffer. If this is the - last fragment ( that is the more fragments field is zero) the - total data length is computed. If this fragment completes the - datagram (tested by checking the bits set in the fragment block - table), then the datagram is sent to the next step in datagram - processing; otherwise the timer is set to the maximum of the - current timer value and the value of the time to live field from - this fragment; and the reassembly routine gives up control. - - If the timer runs out, the all reassembly resources for this - buffer identifier are released. - - Notation: - - FO - Fragment Offset - IHL - Internet Header Length - MF - More Fragments flag - TTL - Time To Live - NFB - Number of Fragment Blocks - TL - Total Length - TDL - Total Data Length - BUFID - Buffer Identifier - RECBT - Fragment Received Bit Table - - - - - - - - - [Page 25] - - - August 1979 -Internet Protocol -Specification - - - - Procedure: - - (1) BUFID <- source|destination|protocol|identification; - (2) IF FO = 0 AND MF = 0 - (3) THEN IF buffer with BUFID is allocated - (4) THEN flush all reassembly for this BUFID; - (5) Submit datagram to next step; DONE. - (6) ELSE IF no buffer with BUFID is allocated - (7) THEN allocate reassembly resources - with BUFID; - TIMER <- 2 minutes; TDL <- 0; - (8) put data from fragment into data buffer with - BUFID from octet FO*8 to - octet (TL-(IHL*4))+FO*8; - (9) set RCVBT bits from FO - to FO+((TL-(IHL*4)+7)/8); - (10) IF MF = 0 THEN TDL <- TL-(IHL*4)+(FO*8) - (11) IF FO = 0 THEN put header in header buffer - (12) IF TDL # 0 - (13) AND all RCVBT bits from 0 - to (TDL+7)/8 are set - (14) THEN TL <- TDL+(IHL*4) - (15) Submit datagram to next step; - (16) free all reassembly resources - for this BUFID; DONE. - (17) TIMER <- MAX(TIMER,TTL); - (18) give up until next fragment or timer runout; - (19) timer runout: flush all reassembly with this BUFID; DONE. - - In the case that two or more fragments contain the same data - either identically or through a partial overlap, this procedure - will use the more recently arrived copy in the data buffer and - datagram delivered. - - Identification - - The choice of the Identifier for a datagram is based on the need to - provide a way to uniquely identify the fragments of a particular - datagram. The protocol module assembling fragments judges fragments - to belong to the same datagram if they have the same source, - destination, protocol, and Identifier. Thus, the sender must choose - the Identifier to be unique for this source, destination pair and - protocol for the time the datagram (or any fragment of it) could be - alive in the internet. - - It seems then that a sending protocol module needs to keep a table - of Identifiers, one entry for each destination it has communicated - with in the last maximum packet lifetime for the internet. - - -[Page 26] - - -August 1979 - Internet Protocol - Specification - - - - However, since the Identifier field allows 65,536 different values, - some host may be able to simply use unique identifiers independent - of destination. - - It is appropriate for some higher level protocols to choose the - identifier. For example, TCP protocol modules may retransmit an - identical TCP segment, and the probability for correct reception - would be enhanced if the retransmission carried the same identifier - as the original transmission since fragments of either datagram - could be used to construct a correct TCP segment. - - Type of Service - - The type of service (TOS) is for internet service quality selection. - The type of service is specified along the abstract parameters - priority, reliability, and speed. A further concern is the - possibility of efficient handling of streams of datagrams. These - abstract parameters are to be mapped into the actual service - parameters of the particular networks the datagram traverses. - - Priority. An independent measure of the importance of this - datagram. - - Stream or Datagram. Indicates if there will be other datagrams from - this source to this destination at regular frequent intervals - justifying the maintenance of stream processing information. - - Reliability. A measure of the level of effort desired to ensure - delivery of this datagram. - - Speed over Reliability. Indicates the relative importance of speed - and reliability when a conflict arises in meeting the pair of - requests. - - Speed. A measure of the importance of prompt delivery of this - datagram. - - For example, the ARPANET has a priority bit, and a choice between - "standard" messages (type 0) and "uncontrolled" messages (type 3), - (the choice between single packet and multipacket messages can also - be considered a service parameter). The uncontrolled messages tend - to be less reliably delivered and suffer less delay. Suppose an - internet datagram is to be sent through the ARPANET. Let the - internet type of service be given as: - - - - - - - [Page 27] - - - August 1979 -Internet Protocol -Specification - - - - Priority: 2 - Stream: 0 - Reliability: 1 - S/R: 1 - Speed: 1 - - The mapping of these parameters to those available for the ARPANET - would be to set the ARPANET priority bit on since the Internet - priority is in the upper have of its range, to select uncontrolled - messages since the speed and reliability requirements are equal and - speed is prefered. - - The following chart presents the recommended mappings from the - internet protocol type of service into the service parameters - actually available on the ARPANET, the PRNET, and the SATNET: - - +------------+----------+----------+----------+----------+ - |Application | INTERNET | ARPANET | PRNET | SATNET | - +------------+----------+----------+----------+----------+ - |TELNET |S/D:stream| T: 3 | R: ptp | T: block | - | on | R:normal| S: S | A: no | D: min | - | TCP |S/R:speed | | | H: inf | - | | S:fast | | | R: no | - +------------+----------+----------+----------+----------+ - |FTP |S/D:stream| T: 0 | R: ptp | T: block | - | on | R:normal| S: M | A: no | D: normal| - | TCP |S/R:rlblt | | | H: inf | - | | S:normal| | | R: no | - +------------+----------+----------+----------+----------+ - |interactive |S/D:strm* | T: 3 | R: ptp | T: stream| - |narrow band | R:least | S: S | A: no | D: min | - | speech | P:speed | | | H: short | - | | S:asap | | | R: no | - +------------+----------+----------+----------+----------+ - |datagram |S/D:dtgrm | T: 3 or 0| R:station| T: block | - | | R:normal| S: S or M| A: no | D: min | - | |S/R:speed | | | H: short | - | | S:fast | | | R: no | - +------------+----------+----------+----------+----------+ - key: S/D=strm/dtgrm T=type R=route T=type - R=reliability S=size A=ack D=delay - S/R=speed/rlblt H=holding time - S=speed R=reliability - *=requires stream set up - - - - - - -[Page 28] - - -August 1979 - Internet Protocol - Specification - - - - Time to Live - - The time to live is set by the sender to the maximum time the - datagram is allowed to be in the internet system. If the datagram - is in the internet system longer than the time to live, then the - datagram should be destroyed. This field should be decreased at - each point that the internet header is processed to reflect the time - spent processing the datagram. Even if no local information is - available on the time actually spent, the field should be - decremented by 1. The time is measured in units of seconds (i.e. - the value 1 means one second). Thus, the maximum time to live is - 255 seconds or 4.25 minutes. - - Options - - The options are just that, optional. That is, the presence or - absence of an option is the choice of the sender, but each internet - module must implement every option. - - There can be several options present in the option field. Every - internet module must be able to parse and act on every option. - - The options might not end on a 32-bit boundary. The internet header - should be filled out with octets of zeros. The first of these would - be interpreted as the end-of-options option, and the remainder as - internet header padding. - - Checksum - - The internet header checksum is recomputed if the internet header is - changed. For example, a reduction of the time to live, additions or - changes to internet options, or due to fragmentation. This checksum - at the internet level is intended to protect the internet header - fields from transmission errors. - - - - - - - - - - - - - - - - - [Page 29] - - - August 1979 -Internet Protocol -Specification - - - -3.3. Examples & Scenarios - - Example 1: - - This is an example of the minimal data carrying internet datagram: - - - 0 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - |Ver= 4 |IHL= 5 |Type of Service| Total Length = 21 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Identification = 111 |Flg=0| Fragment Offset = 0 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Time = 123 | Protocol = 1 | header checksum | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | source address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | destination address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - +-+-+-+-+-+-+-+-+ - - Example Internet Datagram - - Figure 4. - - Note that each tick mark represents one bit position. - - This is a internet datagram in version 4 of internet protocol; the - internet header consists of five 32 bit words, and the total length - of the datagram is 21 octets. This datagram is a complete datagram - (not a fragment). - - - - - - - - - - - - - - - - - -[Page 30] - - -August 1979 - Internet Protocol - Specification - - - - Example 2: - - In this example, we show first a moderate size internet datagram - (552 data octets), then two internet fragments that might result - from the fragmentation of this datagram if the maximum sized - transmission allowed were 280 octets. - - - 0 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - |Ver= 4 |IHL= 5 |Type of Service| Total Length = 472 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Identification = 111 |Flg=0| Fragment Offset = 0 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Time = 123 | Protocol = 6 | header checksum | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | source address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | destination address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - \ \ - \ \ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - - Example Internet Datagram - - Figure 5. - - - - - - - - - - - - - - - - - [Page 31] - - - August 1979 -Internet Protocol -Specification - - - - Now the first fragment that results from splitting the datagram - after 256 data octets. - - - 0 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - |Ver= 4 |IHL= 5 |Type of Service| Total Length = 276 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Identification = 111 |Flg=1| Fragment Offset = 0 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Time = 119 | Protocol = 6 | Header Checksum | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | source address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | destination address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - \ \ - \ \ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - - Example Internet Fragment - - Figure 6. - - - - - - - - - - - - - - - - - - - - -[Page 32] - - -August 1979 - Internet Protocol - Specification - - - - And the second fragment. - - - 0 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - |Ver= 4 |IHL= 5 |Type of Service| Total Length = 216 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Identification = 111 |Flg=0| Fragment Offset = 32 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Time = 119 | Protocol = 6 | Header Checksum | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | source address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | destination address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - \ \ - \ \ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - - Example Internet Fragment - - Figure 7. - - - - - - - - - - - - - - - - - - - - - - [Page 33] - - - August 1979 -Internet Protocol -Specification - - - - Example 3: - - Here, we show an example of a datagram containing options: - - - 0 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - |Ver= 4 |IHL= 8 |Type of Service| Total Length = 576 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Identification = 111 |Flg=0| Fragment Offset = 0 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Time = 123 | Protocol = 6 | Header Checksum | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | source address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | destination address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Opt. Code = x | Opt. Len.= 3 | option value | Opt. Code = x | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Opt. Len. = 4 | option value | Opt. Code = 1 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Opt. Code = y | Opt. Len. = 3 | option value | Opt. Code = 0 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - \ \ - \ \ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - - Example Internet Datagram - - Figure 8. - -3.4. Interfaces - - Internet protocol interfaces on one side to the local network and on - the other side to either a higher level protocol or an application - program. In the following, the higher level protocol or application - program (or even a gateway program) will be called the "user" since it - is using the internet module. Since internet protocol is a datagram - protocol, there is minimal memory or state maintained between datagram - transmissions, and each call on the internet protocol module by the - user supplies all the necessary information. - - - - -[Page 34] - - -August 1979 - Internet Protocol - Specification - - - - For example, the following two calls satisfy the requirements for the - user to internet protocol module communication ("=>" means returns): - - SEND (dest, TOS, TTL, BufPTR, len, Id, DF, options => result) - - where: - - dest = destination address - TOS = type of service - TTL = time to live - BufPTR = buffer pointer - len = length of buffer - Id = Identifier - DF = Don't Fragment - options = option data - result = response - OK = datagram sent ok - Error = error in arguments or local network error - - RECV (BufPTR => result, source, dest, prot, TOS, len) - - where: - - BufPTR = buffer pointer - result = response - OK = datagram received ok - Error = error in arguments - source = source address - dest = destination address - prot = protocol - TOS = type of service - len = length of buffer - - When the user sends a datagram, it executes the SEND call supplying - all the arguments. The internet protocol module, on receiving this - call, checks the arguments and prepares and sends the message. If the - arguments are good and the datagram is accepted by the local network, - the call returns successfully. If either the arguments are bad, or - the datagram is not accepted by the local network, the call returns - unsuccessfully. On unsuccessful returns, a reasonable report should - be made as to the cause of the problem, but the details of such - reports are up to individual implementations. - - When a datagram arrives at the internet protocol module from the local - network, either there is a pending RECV call from the user addressed - or there is not. In the first case, the pending call is satisfied by - passing the information from the datagram to the user. In the second - case, the user addressed is notified of a pending datagram. If the - - - [Page 35] - - - August 1979 -Internet Protocol -Specification - - - - user addressed does not exist, an error datagram is returned to the - sender, and the data is discarded. - - The notification of a user may be via a pseudo interrupt or similar - mechanism, as appropriate in the particular operating system - environment of the implementation. - - A user's RECV call may then either be immediately satisfied by a - pending datagram, or the call may be pending until a datagram arrives. - - An implementation may also allow or require a call to the internet - module to indicate interest in or reserve exclusive use of a class of - datagrams (e.g., all those with a certain value in the protocol - field). - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 36] - - -August 1979 - Internet Protocol - - - - GLOSSARY - - - -1822 - BBN Report 1822, "The Specification of the Interconnection of - a Host and an IMP". The specification of interface between a - host and the ARPANET. - -ARPANET message - The unit of transmission between a host and an IMP in the - ARPANET. The maximum size is about 1012 octets (8096 bits). - -ARPANET packet - A unit of transmission used internally in the ARPANET between - IMPs. The maximum size is about 126 octets (1008 bits). - -Destination - The destination address, an internet header field. - -DF - The Don't Fragment bit carried in the flags field. - -Flags - An internet header field carrying various control flags. - -Fragment Offset - This internet header field indicates where in the internet - datagram a fragment belongs. - -header - Control information at the beginning of a message, segment, - datagram, packet or block of data. - -Identification - An internet header field carrying the identifying value - assigned by the sender to aid in assembling the fragments of a - datagram. - -IHL - The internet header field Internet Header Length is the length - of the internet header measured in 32 bit words. - -IMP - The Interface Message Processor, the packet switch of the - ARPANET. - - - - - - [Page 37] - - - August 1979 -Internet Protocol -Glossary - - - -Internet Address - A four octet (32 bit) source or destination address consisting - of a Network field and a Local Address field. - -internet fragment - A portion of the data of an internet datagram with an internet - header. - -internet datagram - The unit of data exchanged between a pair of internet modules - (includes the internet header). - -ARPANET leader - The control information on an ARPANET message at the host-IMP - interface. - -Local Address - The address of a host within a network. The actual mapping of - an internet local address on to the host addresses in a - network is quite general, allowing for many to one mappings. - -MF - The More-Fragments Flag carried in the internet header flags - field. - -module - An implementation, usually in software, of a protocol or other - procedure. - -more-fragments flag - A flag indicating whether or not this internet datagram - contains the end of an internet datagram, carried in the - internet header Flags field. - -NFB - The Number of Fragment Blocks in a the data portion of an - internet fragment. That is, the length of a portion of data - measured in 8 octet units. - -octet - An eight bit byte. - -Options - The internet header Options field may contain several options, - and each option may be several octets in length. The options - are used primarily in testing situations, for example to carry - timestamps. - - - -[Page 38] - - -August 1979 - Internet Protocol - Glossary - - - -Padding - The internet header Padding field is used to ensure that the - data begins on 32 bit word boundary. The padding is zero. - -Protocol - In this document, the next higher level protocol identifier, - an internet header field. - -Rest - The 3 octet (24 bit) local address portion of an Internet - Address. - -RTP - Real Time Protocol: A host-to-host protocol for communication - of time critical information. - -Source - The source address, an internet header field. - -TCP - Transmission Control Protocol: A host-to-host protocol for - reliable communication in internet environments. - -TCP Segment - The unit of data exchanged between TCP modules (including the - TCP header). - -Total Length - The internet header field Total Length is the length of the - datagram in octets including internet header and data. - -Type of Service - An internet header field which indicates the type (or quality) - of service for this internet datagram. - -User - The user of the internet protocol. This may be a higher level - protocol module, an application program, or a gateway program. - -Version - The Version field indicates the format of the internet header. - - - - - - - - - - [Page 39] - - - August 1979 -Internet Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 40] - - -August 1979 - Internet Protocol - - - - REFERENCES - - - -[1] Cerf, V., "The Catenet Model for Internetworking," Information - Processing Techniques Office, Defense Advanced Research Projects - Agency, IEN 48, July 1978. - -[2] Bolt Beranek and Newman, "Specification for the Interconnection of - a Host and an IMP," BBN Technical Report 1822, May 1978 (Revised). - -[3] Shoch, J., "Inter-Network Naming, Addressing, and Routing," - COMPCON, IEEE Computer Society, Fall 1978. - -[4] Postel, J., "Address Mappings," IEN 115, USC/Information Sciences - Institute, August 1979. - -[5] Shoch, J., "Packet Fragmentation in Inter-Network Protocols," - Computer Networks, v. 3, n. 1, February 1979. - -[6] Postel, J., "Assigned Numbers," RFC 758, IEN 117, USC/Information - Sciences Institute, August 1979. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Page 41] - diff --git a/text/ien/ien112.txt b/text/ien/ien112.txt deleted file mode 100644 index 5f9f3974..00000000 --- a/text/ien/ien112.txt +++ /dev/null @@ -1,4891 +0,0 @@ - - August 1979 - -IEN: 112 - - - - - - - - TRANSMISSION CONTROL PROTOCOL - - - - August 1979 - - - - - - - - - - - - - - - - - - - prepared for - - Defense Advanced Research Projects Agency - Information Processing Techniques Office - 1400 Wilson Boulevard - Arlington, Virginia 22209 - - - - - - - - by - - Information Sciences Institute - University of Southern California - 4676 Admiralty Way - Marina del Rey, California 90291 - -August 1979 - Transmission Control Protocol - - - - TABLE OF CONTENTS - - PREFACE ........................................................ iii - -1. INTRODUCTION ..................................................... 1 - - 1.1 Motivation .................................................... 1 - 1.2 Scope ......................................................... 2 - 1.3 About This Document ........................................... 2 - 1.4 Interfaces .................................................... 3 - 1.5 Operation ..................................................... 3 - -2. PHILOSOPHY ....................................................... 7 - - 2.1 Elements of the Internetwork System ........................... 7 - 2.2 Model of Operation ............................................ 7 - 2.3 The Host Environment .......................................... 8 - 2.4 Interfaces .................................................... 9 - 2.5 Relation to Other Protocols ................................... 9 - 2.6 Reliable Communication ....................................... 10 - 2.7 Connection Establishment and Clearing ........................ 10 - 2.8 Data Communication ........................................... 12 - 2.9 Robustness Principle ......................................... 13 - -3. FUNCTIONAL SPECIFICATION ........................................ 15 - - 3.1 Header Format ................................................ 15 - 3.2 Terminology .................................................. 19 - 3.3 Sequence Numbers ............................................. 24 - 3.4 Establishing a connection .................................... 29 - 3.5 Closing a Connection ......................................... 35 - 3.6 Data Communication ........................................... 38 - 3.7 Interfaces ................................................... 41 - 3.8 Event Processing ............................................. 50 - -GLOSSARY ............................................................ 71 - -REFERENCES .......................................................... 79 - - - - - - - - - - - - - - [Page i] - - - August 1979 -Transmission Control Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page ii] - - -August 1979 - Transmission Control Protocol - - - - PREFACE - - - -This document describes the Transmission Control Protocol (TCP). There -have been six previous editions of the TCP specification, and the -present text draws heavily from them. There have been many contributors -to this document both in terms of concepts and in terms of text. - - Jon Postel - - Editor - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Page iii] - - -August 1979 -IEN:112 -Replaces: IENs 81, -55, 44, 40, 27, 21, 5 - - - - - TRANSMISSION CONTROL PROTOCOL - - - - 1. INTRODUCTION - -The Transmission Control Protocol (TCP) is intended for use as a highly -reliable host-to-host protocol between hosts in packet-switched computer -communication networks, and especially in interconnected systems of such -networks. - -This document describes the functions to be performed by the -Transmission Control Protocol, the program that implements it, and its -interface to programs or users that require its services. - -1.1. Motivation - - Computer communication systems are playing an increasingly important - role in military, government, and civilian environments. This - document primarily focuses its attention on military computer - communication requirements, especially robustness in the presence of - communication unreliability, but many of these problems are found in - the civilian and government sector as well. - - As strategic and tactical computer communication networks are - developed and deployed, it is essential to provide means of - interconnecting them and to provide standard interprocess - communication protocols which can support a broad range of - applications. In anticipation of the need for such standards, the - Deputy Undersecretary of Defense for Research and Engineering has - declared the Transmission Control Protocol (TCP) described herein to - be a basis for DoD-wide inter-process communication protocol - standardization. - - TCP is a connection-oriented, end-to-end reliable protocol designed to - fit into a layered hierarchy of protocols which support multi-network - applications. The TCP provides for reliable inter-process - communication between pairs of processes in host computers attached to - distinct but interconnected computer communication networks. Very few - assumptions are made as to the reliability of the communication - protocols below the TCP layer. At most, the TCP assumes it can obtain - a simple, potentially unreliable datagram service from the lower level - protocols. In principle, the TCP should be able to operate above a - wide spectrum of communication systems ranging from hard-wired - connections to packet-switched or circuit-switched networks. - - - - [Page 1] - - - August 1979 -Transmission Control Protocol -Introduction - - - - The TCP fits into a layered protocol architecture just above a basic - Internet Protocol [1] which provides a way for the TCP to send and - receive variable-length segments of information enclosed in internet - datagram "envelopes". The internet datagram provides a means for - addressing source and destination TCPs in different networks, and that - layer of protocol also deals with any fragmentation or reassembly of - the TCP segments which might be required to achieve transport and - delivery through multiple networks and interconnecting gateways. - - Protocol Layering - - +---------------------+ - | higher-level | - +---------------------+ - | TCP | - +---------------------+ - | internet protocol | - +---------------------+ - |communication network| - +---------------------+ - - Figure 1 - - Much of this document is written in the context of TCP implementations - which are co-resident with higher level protocols in the host - computer. As a practical matter, many computer systems will be - connected to networks via front-end computers which house the TCP and - internet protocol layers, as well as network specific software. The - TCP specification describes an interface to the higher level protocols - which appears to be implementable even for the front-end case, as long - as a suitable host-to-front end protocol is implemented. - -1.2. Scope - - The TCP is intended to provide a reliable process-to-process - communication service in a multinetwork environment. The TCP is - intended to be a host-to-host protocol in common use in multiple - networks. - -1.3. About this Document - - This document represents a specification of the behavior required of - any TCP implementation, both in its interactions with higher level - protocols and in its interactions with other TCPs. The rest of this - section offers a very brief view of the protocol interfaces and - operation. Section 2 summarizes the philosophical basis for the TCP - design. Section 3 offers both a detailed description of the actions - required of TCP when various events occur (arrival of new segments, - - -[Page 2] - - -August 1979 - Transmission Control Protocol - Introduction - - - - user calls, errors, etc.) and the details of the formats of TCP - segments. - -1.4. Interfaces - - The TCP interfaces on one side to user or application processes and on - the other side to a lower level protocol such as Internet Protocol. - - The interface between an application process and the TCP is - illustrated in reasonable detail. This interface consists of a set of - calls much like the calls an operating system provides to application - process for manipulating files. For example, there are calls to open - and close connections and to send and receive letters on established - connections. It is also expected that the TCP can asynchronously - communicate with application programs. Although considerable freedom - is permitted to TCP implementors to design interfaces which are - appropriate to a particular operating system environment, this TCP - specification requires a certain minimum functionality to be achieved - at the TCP/user interface for any valid implementation. - - The interface between TCP and lower level protocol is essentially - unspecified except that it is assume there is a mechanism whereby the - two can asynchronously pass information to each other. Typically, one - expects the lower level protocol to specify this interface. TCP is - designed to work in a very general environment of interconnected - networks. Therefore, the lower level protocol which is assumed - throughout this document is the Internet Protocol. - -1.5. Operation - - As noted above, the primary purpose of the TCP is to provide reliable - logical circuit or connection service between pairs of processes. To - provide this service on top of a less reliable internet communication - system requires facilities in the following areas: - - Basic Data Transfer - Reliability - Flow Control - Multiplexing - Connections - - The basic operation of the TCP in each of these areas is described in - the following paragraphs. - - - - - - - - [Page 3] - - - August 1979 -Transmission Control Protocol -Introduction - - - - Basic Data Transfer: - - The TCP is able to transfer a continuous stream of octets in each - direction between its users by packaging some number of octets into - segments for transmission through the internet system. In this - stream mode, the TCPs decide when to block and forward data at their - own convenience. - - For users who desire a record-oriented service, the TCP also permits - the user to submit records, called letters, for transmission. When - the sending user indicates a record boundary (end-of-letter), this - causes the TCPs to promptly forward and deliver data up to that - point to the receiver. - - Reliability: - - The TCP must recover from data that is damaged, lost, duplicated, or - delivered out of order by the internet communication system. This - is achieved by assigning a sequence number to each octet - transmitted, and requiring a positive acknowledgment (ACK) from the - receiving TCP. If the ACK is not received within a timeout - interval, the data is retransmitted. At the receiver, the sequence - numbers are used to correctly order segments that may be received - out of order and to eliminate duplicates. Damage is handled by - adding a checksum to each segment transmitted, checking it at the - receiver, and discarding damaged segments. - - As long as the TCPs continue to function properly and the internet - system does not become completely partitioned, no transmission - errors will affect the users. All errors in the internet - communication system are recovered by the TCP. - - Flow Control: - - TCP provides a means for the receiver to govern the amount of data - sent by the sender. This is achieved by returning a "window" with - every ACK indicating a range of acceptable sequence numbers beyond - the last segment successfully received. For stream mode, the window - indicates an allowed number of octets that the sender may transmit - before receiving further permission. It is also possible for the - TCP to operate in a mode where buffer sizes and letter boundaries - are incorporated in flow control. - - Multiplexing: - - To allow for many processes within a single Host to use TCP - communication facilities simultaneously, the TCP provides a set of - addresses or ports within each host. Concatenated with the network - - -[Page 4] - - -August 1979 - Transmission Control Protocol - Introduction - - - - and host addresses from the internet communication layer, this forms - a socket. A pair of sockets uniquely identifies each connection. - That is, different connections may have a common socket on one side, - but the sockets on the other sides must be different. - - The binding of ports to processes is handled independently by each - Host. However, it proves useful to attach frequently used processes - (e.g., a "logger" or timesharing service) to fixed sockets which are - made known to the public. These services can then be accessed - through the known addresses. Establishing and learning the port - addresses of other processes may involve more dynamic mechanisms. - - Connections: - - The reliability and flow control mechanisms described above require - that TCPs initialize and maintain certain status information for - each data stream. The combination of this information, including - sockets, sequence numbers, and window sizes, is called a connection. - Each connection is uniquely specified by a pair of sockets - identifying its two sides. - - When two processes wish to communicate, their TCP's must first - establish a connection (initialize the status information on each - side). When their communication is complete, the connection is - terminated or closed to free the resources for other uses. - - Since connections must be established over the unreliable internet - communication system, a handshake mechanism with clock-based - sequence numbers is used to avoid erroneous initialization of - connections. - - - - - - - - - - - - - - - - - - - - - [Page 5] - - - August 1979 -Transmission Control Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 6] - - -August 1979 - Transmission Control Protocol - - - - 2. PHILOSOPHY - -2.1. Elements of the Internetwork System - - The internetwork environment consists of hosts connected to networks - which are in turn interconnected via gateways. It is assumed here - that the networks may be either local networks (e.g., the ETHERNET) or - large networks (e.g., the ARPANET), but in any case are based on - packet switching technology. The active agents that produce and - consume messages are processes. Various levels of protocols in the - networks, the gateways, and the hosts support an interprocess - communication system that provides two-way data flow on logical - connections between process ports. - - We specifically assume that data is transmitted from host to host - through means of a set of networks. When we say network, we have in - mind a packet switched network (PSN). This assumption is probably - unnecessary, since a circuit switched network or a hybrid combination - of the two could also be used; but for concreteness, we explicitly - assume that the hosts are connected to one or more packet switches of - a PSN. - - The term packet is used generically here to mean the data of one - transaction between a host and a packet switch. The format of data - blocks exchanged between the packet switches in a network will - generally not be of concern to us. - - Hosts are computers attached to a network, and from the communication - network's point of view, are the sources and destinations of packets. - Processes are viewed as the active elements in host computers (in - accordance with the fairly common definition of a process as a program - in execution). Even terminals and files or other I/O devices are - viewed as communicating with each other through the use of processes. - Thus, all communication is viewed as inter-process communication. - - Since a process may need to distinguish among several communication - streams between itself and another process (or processes), we imagine - that each process may have a number of ports through which it - communicates with the ports of other processes. - -2.2. Model of Operation - - Processes transmit data by calling on the TCP and passing buffers of - data as arguments. The TCP packages the data from these buffers into - segments and calls on the internet module to transmit each segment to - the destination TCP. The receiving TCP places the data from a segment - into the receiving users buffer and notifies the receiving user. The - TCPs include control information in the segments which they use to - ensure reliable ordered data transmission. - - - [Page 7] - - - August 1979 -Transmission Control Protocol -Philosophy - - - - The model of internet communication is that there is a basic gateway - (or internet protocol module) associated with each TCP which provides - an interface to the local network. This basic gateway packages TCP - segments inside internet datagrams and routes these datagrams to a - destination or intermediate gateway. To transmit the datagram through - the local network, it is embedded in a local network packet. - - The packet switches may perform further packaging, fragmentation, or - other operations to achieve the delivery of the local packet to the - destination gateway. - - At a gateway between networks, the internet datagram is "unwrapped" - from its local packet and examined to determine through which network - the internet datagram should travel next. The internet datagram is - then "wrapped" in a local packet suitable to the next network and - routed to the next gateway. - - A gateway is permitted to break up an internet datagram into smaller - internet datagram fragments if this is necessary for transmission - through the next network. To do this, the gateway produces a set of - internet datagrams; each carrying a fragment. Fragments may be broken - into smaller ones at intermediate gateways. The internet datagram - fragment format is designed so that the destination gateway can - reassemble fragments into internet datagrams. - - A destination gateway unwraps the segment from the datagram (after - reassembling the datagram, if necessary) and passes it to the - destination TCP. - -2.3. The Host Environment - - The TCP is assumed to be a module in a time sharing operating system. - The users access the TCP much like they would access the file system. - The TCP may call on other operating system functions, for example, to - manage data structures. The actual interface to the network is - assumed to be controlled by a device driver module. The TCP does not - call on the network device driver directly, but rather calls on the - internet datagram protocol module which may in turn call on the device - driver. - - Though it is assumed here that processes are supported by the host - operating system, the mechanisms of TCP do not preclude implementation - of the TCP in a front-end processor. However, in such an - implementation, a host-to-front-end protocol must provide the - functionality to support the type of TCP-user interface described - above. - - - - -[Page 8] - - -August 1979 - Transmission Control Protocol - Philosophy - - - -2.4. Interfaces - - The TCP/user interface provides for calls made by the user on the TCP - to OPEN or CLOSE a connection, to SEND or RECEIVE data, or to obtain - STATUS about a connection. These calls are like other calls from user - programs on the operating system, for example, the calls to open, read - from, and close a file. - - The TCP/internet interface provides calls to send and receive - datagrams addressed to TCP modules in hosts anywhere in the internet - system. - -2.5. Relation to Other Protocols - - The following diagram illustrates the place of the TCP in the protocol - hierarchy: - - - +------+ +-----+ +-----+ +-----+ - |Telnet| | FTP | |Voice| ... | | Application Level - +------+ +-----+ +-----+ +-----+ - | | | | - +-----+ +-----+ +-----+ - | TCP | | RTP | ... | | Host Level - +-----+ +-----+ +-----+ - | | | - +-------------------------------+ - | Internet Protocol | Gateway Level - +-------------------------------+ - | - +---------------------------+ - | Local Network Protocol | Network Level - +---------------------------+ - | - - - - Protocol Relationships - - Figure 2. - - It is expected that the TCP will be able to support higher level - protocols efficiently. It should be easy to interface higher level - protocols like the ARPANET TELNET and FTP [2] to the TCP. - - - - - - - [Page 9] - - - August 1979 -Transmission Control Protocol -Philosophy - - - -2.6. Reliable Communication - - A stream of data sent on a TCP connection is delivered reliably and in - order at the destination. - - Transmission is made reliable via the use of sequence numbers and - acknowledgments. Conceptually, each octet of data is assigned a - sequence number. The sequence number of the first octet of data in a - segment is the sequence number transmitted with that segment and is - called the segment sequence number. Segments also carry an - acknowledgment number which is the sequence number of the most recent - data octet of transmissions in the reverse direction which has been - accepted. When the TCP transmits a segment, it puts a copy on a - retransmission queue and starts a timer; when the acknowledgment for - that data is received, the segment is deleted from the queue. If the - acknowledgment is not received before the timer runs out, the segment - is retransmitted. - - An acknowledgment by TCP does not guarantee that the data has been - delivered to the end user, but only that the TCP has taken the - responsibility to do so. - - To govern the flow of data into a TCP, a flow control mechanism is - employed. The the data receiving TCP reports a window to the sending - TCP. This window is a number of octets beyond the currently - acknowledged sequence number that the data receiving TCP is currently - prepared to receive. - -2.7. Connection Establishment and Clearing - - To identify the separate data streams that a TCP may handle, the TCP - provides a port identifier. Since port identifiers are selected - independently by each operating system, TCP, or user, they might not - be unique. To provide for unique addresses at each TCP, we - concatenate an internet address identifying the TCP with a port - identifier to create a socket which will be unique throughout all - networks connected together. - - A connection is fully specified by the pair of sockets at the ends, - since the same local socket may participate in many connections to - different foreign sockets. A connection can be used to carry data in - both directions, that is, it is "full duplex". - - TCPs are free to associate ports with processes however they choose. - However, several basic concepts seem necessary in any implementation. - There must be well-known sockets which the TCP associates only with - the "appropriate" processes by some means. We envision that processes - may "own" ports, and that processes can only initiate connections on - - -[Page 10] - - -August 1979 - Transmission Control Protocol - Philosophy - - - - the ports they own. (Means for implementing ownership is a local - issue, but we envision a Request Port user command, or a method of - uniquely allocating a group of ports to a given process, e.g., by - associating the high order bits of a port name with a given process.) - - A connection is specified in the OPEN call by the local port and - foreign socket arguments. In return, the TCP supplies a (short) local - connection name by which the user refers to the connection in - subsequent calls. There are several things that must be remembered - about a connection. To store this information we imagine that there - is a data structure called a Transmission Control Block (TCB). One - implementation strategy would have the local connection name be a - pointer to the TCB for this connection. The OPEN call also specifies - whether the connection establishment is to be actively pursued, or to - be passively waited for. - - A foreign socket of all zeros is called unspecified. The purpose - behind unspecified sockets is to provide a sort of "general delivery" - facility (useful for processes offering services). This is allowed - only for passive OPENs. - - A service process that wished to provide services for unknown other - processes could issue a passive OPEN request with an unspecified - foreign socket. Then a connection could be made with any process that - requested a connection to this local socket. It would help if this - local socket were known to be associated with this service. - - Well-known sockets are a convenient mechanism for a priori associating - a socket address with a standard service. For instance, the - "Telnet-Server" process might be permanently assigned to a particular - socket, and other sockets might be reserved for File Transfer, Remote - Job Entry, Text Generator, Echoer, and Sink processes (the last three - being for test purposes). A socket address might be reserved for - access to a "Look-Up" service which would return the specific socket - at which a newly created service would be provided. The concept of a - well-known socket is part of the TCP specification, but the assignment - of sockets to services is outside this specification. - - Processes can issue passive OPENs and wait for matching calls from - other processes and be informed by the TCP when connections have been - established. Two processes which issue calls to each other at the - same time are correctly connected. This flexibility is critical for - the support of distributed computing in which components act - asynchronously with each other. - - There are two cases for matching the sockets in the local request and - an incoming segment. In the first case, the local request has fully - specified the foreign socket. In this case, the match must be exact. - - - [Page 11] - - - August 1979 -Transmission Control Protocol -Philosophy - - - - In the second case, the local request has left the foreign socket - unspecified. In this case, any foreign socket is acceptable as long - as the local sockets match. - - If there are several pending passive OPENs (recorded in TCBs) with the - same local socket, an incoming segment should be matched to a request - with the specific foreign socket in the segment, if such a request - exists, before selecting a request with an unspecified foreign socket. - - The procedures to establish and clear connections utilize synchronize - (SYN) and finis (FIN) control flags and involve an exchange of three - messages. This exchange has been termed a three-way hand shake [3]. - - A connection is initiated by the rendezvous of an arriving segment - containing a SYN and a waiting TCB entry created by a user OPEN - command. The matching of local and foreign sockets determines when a - connection has been initiated. The connection becomes "established" - when sequence numbers have been synchronized in both directions. - - The clearing of a connection also involves the exchange of segments, - in this case carrying the FIN control flag. - -2.8. Data Communication - - The data that flows on a connection may be thought of as a stream of - octets, or as a sequence of records. In TCP the records are called - letters and are of variable length. The sending user indicates in - each SEND call if the data in that call completes a letter by the - setting of the end-of-letter parameter. - - The length of a letter may be such that it must be broken into - segments before it can be transmitted to its destination. We assume - that the segments will normally be reassembled into a letter before - being passed to the receiving process. A segment may contain all or a - part of a letter, but a segment never contains parts of more than one - letter. The end of a letter is marked by the appearance of an EOL - control flag in a segment. A sending TCP is allowed to collect data - from the sending user and to send that data in segments at its own - convenience, until the end of letter is signaled then it must send all - unsent data. When a receiving TCP has a complete letter, it must not - wait for more data from the sending TCP before passing the letter to - the receiving process. - - There is a coupling between letters as sent and the use of buffers of - data that cross the TCP/user interface. Each time an end-of-letter - (EOL) flag is associated with data placed into the receiving user's - buffer, the buffer is returned to the user for processing even if the - - - -[Page 12] - - -August 1979 - Transmission Control Protocol - Philosophy - - - - buffer is not filled. If a letter is longer than the user's buffer, - the letter is passed to the user in buffer size units. - - The TCP is responsible for regulating the flow of segments to and from - the on the connections, as a way of preventing itself from becoming - saturated or overloaded with traffic. This is done using a window - flow control mechanism. The data receiving TCP reports to the data - sending TCP a window which is the range of sequence numbers of data - octets that data receiving TCP is currently prepared to accept. - - TCP also provides a means to communicate to the receiver of data that - at some point further along in the data stream than the receiver is - currently reading there is urgent data. TCP does not attempt to - define what the user specifically does upon being notified of pending - urgent data, but the general notion is that the receiving process - should take action to read through the end urgent data quickly. - -2.9. Robustness Principle - - TCP implementations should follow a general principle of robustness: - be conservative in what you do, be liberal in what you accept from - others. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Page 13] - - - August 1979 -Transmission Control Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 14] - - -August 1979 - Transmission Control Protocol - - - - 3. FUNCTIONAL SPECIFICATION - -3.1. Header Format - - TCP segments are sent as internet datagrams. The Internet Protocol - header carries several information fields, including the source and - destination host addresses [1]. A TCP header follows the internet - header, supplying information specific to the TCP protocol. This - division allows for the existence of host level protocols other than - TCP. - - TCP Header Format - - - 0 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Source Port | Destination Port | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Sequence Number | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Acknowledgment Number | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Data | |U|A|E|R|S|F| | - | Offset| Reserved |R|C|O|S|Y|I| Window | - | | |G|K|L|T|N|N| | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Checksum | Urgent Pointer | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Options | Padding | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - - TCP Header Format - - Note that one tick mark represents one bit position. - - Figure 3. - - Source Port: 16 bits - - The source port number. - - Destination Port: 16 bits - - The destination port number. - - - - - [Page 15] - - - August 1979 -Transmission Control Protocol -Functional Specification - - - - Sequence Number: 32 bits - - The sequence number of the first data octet in this segment. - - Acknowledgment Number: 32 bits - - If the ACK control bit is set this field contains the value of the - next sequence number the sender of the segment is expecting to - receive. - - Data Offset: 4 bits - - The number of 32 bit words in the TCP Header. This indicates where - the data begins. The TCP header including options is an integral - number of 32 bits long. - - Reserved: 6 bits - - Reserved for future use. Must be zero. - - Control Bits: 8 bits (from left to right): - - URG: Urgent Pointer field significant - ACK: Acknowledgment field significant - EOL: End of Letter - RST: Reset the connection - SYN: Synchronize sequence numbers - FIN: No more data from sender - - Window: 16 bits - - The number of data octets beyond the one indicated in the - acknowledgment field which the sender of this segment is willing to - accept. - - Checksum: 16 bits - - The checksum field is the 16 bit one's complement of the one's - complement sum of all 16 bit words in the header and text. If a - segment contains an odd number of header and text octets to be - checksummed, the last octet is padded with zeros to form a 16 bit - word for checksum purposes. The pad is not transmitted as part of - the segment. While computing the checksum, the checksum field - itself is replaced with zeros. - - The checksum also covers a 96 bit pseudo header conceptually - prefixed to the TCP header. This pseudo header contains the Source - Address, the Destination Address, the Protocol, and TCP length. - - -[Page 16] - - -August 1979 - Transmission Control Protocol - Functional Specification - - - - This gives the TCP protection against misrouted segments. This - information is carried in the Internet Protocol and is transfered - across the TCP/Network interface in the arguments or results of - calls by the TCP on the IP. - - +--------------------------+ - | Source Address | - +--------------------------+ - | Destination Address | - +--------------------------+ - | zero | PTCL | TCP Length | - +--------------------------+ - - The TCP Length is the TCP header plus the data length in octets - (this is not a explicitly transmitted quantity, but is computed - from the total length, and the header length). - - Urgent Pointer: 16 bits - - This field communicates the current value of the urgent pointer as a - positive offset from the sequence number in this segment. The - urgent pointer points to the sequence number of the octet following - the urgent data. This field should only be interpreted in segments - with the URG control bit set. - - Options: variable - - Options may occupy space at the end of the TCP header and are a - multiple of 8 bits in length. All options are included in the - checksum. An option may begin on any octet boundary. There are two - cases for the format of an option: - - Case 1: A single octet of option-kind. - - Case 2: An octet of option-kind, an octet of option-length, and - the actual option-data octets. - - The option-length counts the two octets of option-kind and - option-length as well as the option-data octets. - - Note that the list of options may be shorter than the data offset - field might imply. The content of the header beyond the - End-of-Option option should be header padding (i.e., zero). - - A TCP must implement all options. - - - - - - [Page 17] - - - August 1979 -Transmission Control Protocol -Functional Specification - - - - Currently defined options include (kind indicated in octal): - - Kind Length Meaning - ---- ------ ------- - 0 - End of option list. - 1 - No-Operation. - 100 - Reserved. - 105 4 Buffer Size. - - - Specific Option Definitions - - End of Option List - - +--------+ - |00000000| - +--------+ - Kind=0 - - This option code indicates the end of the option list. This - might not coincide with the end of the TCP header according to - the Data Offset field. This is used at the end of all options, - not the end of each option, and need only be used if the end of - the options would not otherwise coincide with the end of the TCP - header. - - No-Operation - - +--------+ - |00000001| - +--------+ - Kind=1 - - This option code may be used between options, for example, to - align the beginning of a subsequent option on a word boundary. - There is no guarantee that senders will use this option, so - receivers must be prepared to process options even if they do - not begin on a word boundary. - - Buffer Size - - +--------+--------+---------+--------+ - |01000101|00000100| buffer size | - +--------+--------+---------+--------+ - Kind=105 Length=4 - - - - - -[Page 18] - - -August 1979 - Transmission Control Protocol - Functional Specification - - - - Buffer Size Option Data: 16 bits - - If this option is present, then it communicates the receive - buffer size at the TCP which sends this segment. This field - should only be sent in segments with the SYN control bit set. - If this option is not used, the default buffer size of one - octet is assumed. - - Padding: variable - - The TCP header padding is used to ensure that the TCP header ends - and data begins on a 32 bit boundary. The padding is composed of - zeros. - -3.2. Terminology - - Before we can discuss very much about the operation of the TCP we need - to introduce some detailed terminology. The maintenance of a TCP - connection requires the remembering of several variables. We conceive - of these variables being stored in a connection record called a - Transmission Control Block or TCB. Among the variables stored in the - TCB are the local and remote socket numbers, pointers to the user's - send and receive buffers, pointers to the retransmit queue and to the - current segment. In addition several variables relating to the send - and receive sequence numbers are stored in the TCB. - - Send Sequence Variables - - SND.UNA - send unacknowledged - SND.NXT - send sequence - SND.WND - send window - SND.BS - send buffer size - SND.UP - send urgent pointer - SND.WL - send sequence number used for last window update - SND.LBB - send last buffer beginning - ISS - initial send sequence number - - Receive Sequence Variables - - RCV.NXT - receive sequence - RCV.WND - receive window - RCV.BS - receive buffer size - RCV.UP - receive urgent pointer - RCV.LBB - receive last buffer beginning - IRS - initial receive sequence number - - - - - - [Page 19] - - - August 1979 -Transmission Control Protocol -Functional Specification - - - - The following diagrams may help to relate some of these variables to - the sequence space. - - Send Sequence Space - - 1 2 3 4 - ----------|----------|----------|---------- - SND.UNA SND.NXT SND.UNA - +SND.WND - - 1 - old sequence numbers which have been acknowledged - 2 - sequence numbers of unacknowledged data - 3 - sequence numbers allowed for new data transmission - 4 - future sequence numbers which are not yet allowed - - Send Sequence Space - - Figure 4. - - - - Receive Sequence Space - - 1 2 3 - ----------|----------|---------- - RCV.NXT RCV.NXT - +RCV.WND - - 1 - old sequence numbers which have been acknowledged - 2 - sequence numbers allowed for new reception - 3 - future sequence numbers which are not yet allowed - - Receive Sequence Space - - Figure 5. - - - - There are also some variables used frequently in the discussion that - take their values from the fields of the current segment. - - Current Segment Variables - - SEG.SEQ - segment sequence number - SEG.ACK - segment acknowledgment number - SEG.LEN - segment length - SEG.WND - segment window - SEG.UP - segment urgent pointer - - -[Page 20] - - -August 1979 - Transmission Control Protocol - Functional Specification - - - - A connection progresses through a series of states during its - lifetime. The states are: LISTEN, SYN-SENT, SYN-RECEIVED, - ESTABLISHED, FIN-WAIT-1, FIN-WAIT-2, TIME-WAIT, CLOSE-WAIT, CLOSING, - and the fictional state CLOSED. Closed is fictional because it - represents the state when there is no TCB, and therefore, no - connection. Briefly the meanings of the states are: - - LISTEN - represents waiting for a connection request from any remote - TCP and port. - - SYN-SENT - represents waiting for a matching connection request - after having sent a connection request. - - SYN-RECEIVED - represents waiting for a confirming connection - request acknowledgment after having both sent and received a - connection request. - - ESTABLISHED - represents an open connection, ready to transmit and - receive data segments. - - FIN-WAIT-1 - represents waiting for a connection termination request - from the remote TCP, or an acknowledgment of the connection - termination request previously sent. - - FIN-WAIT-2 - represents waiting for a connection termination request - from the remote TCP. - - TIME-WAIT - represents waiting for enough time to pass to be sure - the remote TCP received the acknowledgment of its connection - termination request. - - CLOSE-WAIT - represents waiting for a connection termination request - from the local user. - - CLOSING - represents waiting for a connection termination request - acknowledgment from the remote TCP. - - CLOSED - represents no connection state at all. - - A TCP connection progresses from one state to another in response to - events. The events are the user calls, OPEN, SEND, RECEIVE, CLOSE, - ABORT, and STATUS; the incoming segments, particularly those - containing the SYN and FIN flags; and timeouts. - - The Glossary contains a more complete list of terms and their - definitions. - - The state diagram in figure 6 only illustrates state changes, together - - - [Page 21] - - - August 1979 -Transmission Control Protocol -Functional Specification - - - - with the causing events and resulting actions, but addresses neither - error conditions nor actions which are not connected with state - changes. In a later section, more detail is offered with respect to - the reaction of the TCP to events. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 22] - - -August 1979 - Transmission Control Protocol - Functional Specification - - - - - +---------+ ---------\ active OPEN - | CLOSED | \ ----------- - +---------+<---------\ \ create TCB - | ^ \ \ snd SYN - passive OPEN | | CLOSE \ \ - ------------ | | ---------- \ \ - create TCB | | delete TCB \ \ - V | \ \ - +---------+ CLOSE | \ - | LISTEN | ---------- | | - +---------+ delete TCB | | - rcv SYN | | SEND | | - ----------- | | ------- | V - +---------+ snd SYN,ACK / \ snd SYN +---------+ - | |<----------------- ------------------>| | - | SYN | rcv SYN | SYN | - | RCVD |<-----------------------------------------------| SENT | - | | snd ACK | | - | |------------------ -------------------| | - +---------+ rcv ACK of SYN \ / rcv SYN,ACK +---------+ - | -------------- | | ----------- - | x | | snd ACK - | V V - | CLOSE +---------+ - | ------- | ESTAB | - | snd FIN +---------+ - | CLOSE | | rcv FIN - V ------- | | ------- - +---------+ snd FIN / \ snd ACK +---------+ - | FIN |<----------------- ------------------>| CLOSE | - | WAIT-1 |------------------ -------------------| WAIT | - +---------+ rcv FIN \ / CLOSE +---------+ - | rcv ACK of FIN ------- | | ------- - | -------------- snd ACK | | snd FIN - V x V V - +---------+ +---------+ - |FINWAIT-2| | CLOSING | - +---------+ +---------+ - | rcv FIN | rcv ACK of FIN - | ------- Timeout=2MSL | -------------- - V snd ACK ------------ V delete TCB - +---------+ delete TCB +---------+ - |TIME WAIT|----------------->| CLOSED | - +---------+ +---------+ - - TCP Connection State Diagram - Figure 6. - - - [Page 23] - - - August 1979 -Transmission Control Protocol -Functional Specification - - - -3.3. Sequence Numbers - - A fundamental notion in the design is that every octet of data sent - over a TCP connection has a sequence number. Since every octet is - sequenced, each of them can be acknowledged. The acknowledgment - mechanism employed is cumulative so that an acknowledgment of sequence - number X indicates that all octets up to but not including X have been - received. This mechanism allows for straight-forward duplicate - detection in the presence of retransmission. - - It is essential to remember that the actual sequence number space is - finite, though very large. This space ranges from 0 to 2**32 - 1. - Since the space is finite, all arithmetic dealing with sequence - numbers must be performed modulo 2**32. This unsigned arithmetic - preserves the relationship of sequence numbers as they cycle from - 2**32 - 1 to 0 again. There are some subtleties to computer modulo - arithmetic, so great care should be taken in programming the - comparison of such values. The typical kinds of sequence number - comparisons which the TCP must perform include: - - (a) Determining that an acknowledgment refers to some sequence - number sent but not yet acknowledged. - - (b) Determining that all sequence numbers occupied by a segment - have been acknowledged (e.g., to remove the segment from a - retransmission queue). - - (c) Determining that an incoming segment contains sequence numbers - which are expected (i.e., that the segment "overlaps" the - receive window). - - On send connections the following comparisons are needed: - - older sequence numbers newer sequence numbers - - - SND.UNA SEG.ACK SND.NXT - | | | - ----|----XXXXXXX------XXXXXXXXXX---------XXXXXX----|---- - | | | | | | - | | | - Segment 1 Segment 2 Segment 3 - - <----- sequence space -----> - - Sending Sequence Space Information - - Figure 7. - - -[Page 24] - - -August 1979 - Transmission Control Protocol - Functional Specification - - - - SND.UNA = oldest unacknowledged sequence number - - SND.NXT = next sequence number to be sent - - SEG.ACK = acknowledgment (next sequence number expected by the - acknowledging TCP) - - SEG.SEQ = first sequence number of a segment - - SEG.SEQ+SEG.LEN-1 = last sequence number of a segment - - An acceptable acknowledgment, SEG.ACK, is one for which the inequality - below holds: - - 0 < (SEG.ACK - SND.UNA) =< (SND.NXT - SND.UNA) - - or: - - SND.UNA < SEG.ACK =< SND.NXT - - Note that all arithmetic is modulo 2**32 and that comparisons are - unsigned. "=<" means "less than or equal". - - Similarly, the determination that a particular segment has been fully - acknowledged can be made if the inequality below holds: - - 0 < (SEG.SEQ+SEG.LEN-1 - SND.UNA) < (SEG.ACK - SND.UNA) - - SEG.LEN is the number of octets occupied by the data in the segment. - It is important to note that SEG.LEN must be non-zero; segments which - do not occupy any sequence space (e.g., empty acknowledgment segments) - are never placed on the retransmission queue, so would not go through - this particular test. - - - - - - - - - - - - - - - - - - [Page 25] - - - August 1979 -Transmission Control Protocol -Functional Specification - - - - On receive connections the following comparisons are needed: - - older sequence numbers newer sequence numbers - - - RCV.NXT RCV.NXT+RCV.WND - | | - ---------XXX|XXX------XXXXXXXXXX---------XXX|XX--------- - | | | | | - | | | - Segment 1 Segment 2 Segment 3 - - <----- sequence space -----> - - Receiving Sequence Space Information - - Figure 8. - - RCV.NXT = next sequence number expected on incoming segments - - RCV.NXT+RCV.WND = last sequence number expected on incoming - segments, plus one - - SEG.SEQ = first sequence number occupied by the incoming segment - - SEG.SEQ+SEG.LEN-1 = last sequence number occupied by the incoming - segment - - A segment is judged to occupy a portion of valid receive sequence - space if - - 0 =< (SEG.SEQ+SEG.LEN-1 - RCV.NXT) < (RCV.NXT+RCV.WND - RCV.NXT) - - SEG.SEQ+SEG.LEN-1 is the last sequence number occupied by the segment; - RCV.NXT is the next sequence number expected on an incoming segment; - and RCV.NXT+RCV.WND is the right edge of the receive window. - - Actually, it is a little more complicated than this. Due to zero - windows and zero length segments, we have four cases for the - acceptability of an incoming segment: - - - - - - - - - - -[Page 26] - - -August 1979 - Transmission Control Protocol - Functional Specification - - - - Segment Receive Test - Length Window - ------- ------- ------------------------------------------- - - 0 0 SEG.SEQ = RCV.NXT - - 0 >0 RCV.NXT =< SEG.SEQ < RCV.NXT+RCV.WND - - >0 0 not acceptable - - >0 >0 RCV.NXT < SEG.SEQ+SEG.LEN =< RCV.NXT+RCV.WND - - Note that the acceptance test for a segment, since it requires the end - of a segment to lie in the window, is somewhat more restrictive than - is absolutely necessary. If at least the first sequence number of the - segment lies in the receive window, or if some part of the segment - lies in the receive window, then the segment might be judged - acceptable. Thus, in figure 8, at least segments 1 and 2 are - acceptable by the strict rule, and segment 3 may or may not be, - depending on the strictness of interpretation of the rule. - - Note that when the receive window is zero no segments should be - acceptable except ACK segments. Thus, it should be possible for a TCP - to maintain a zero receive window while transmitting data and - receiving ACKs. - - We have taken advantage of the numbering scheme to protect certain - control information as well. This is achieved by implicitly including - some control flags in the sequence space so they can be retransmitted - and acknowledged without confusion (i.e., one and only one copy of the - control will be acted upon). Control information is not physically - carried in the segment data space. Consequently, we must adopt rules - for implicitly assigning sequence numbers to control. The SYN and FIN - are the only controls requiring this protection, and these controls - are used only at connection opening and closing. For sequence number - purposes, the SYN is considered to occur before the first actual data - octet of the segment in which it occurs, while the FIN is considered - to occur after the last actual data octet in a segment in which it - occurs. The segment length includes both data and sequence space - occupying controls. - - Initial Sequence Number Selection - - The protocol places no restriction on a particular connection being - used over and over again. A connection is defined by a pair of - sockets. New instances of a connection will be referred to as - incarnations of the connection. The problem that arises owing to this - is -- "how does the TCP identify duplicate segments from previous - - - [Page 27] - - - August 1979 -Transmission Control Protocol -Functional Specification - - - - incarnations of the connection?" This problem becomes apparent if the - connection is being opened and closed in quick succession, or if the - connection breaks with loss of memory and is then reestablished. - - To avoid confusion we must prevent segments from being emitted with - sequence numbers which duplicate those which are still in the network. - We want to assure this, even if a TCP crashes and loses all knowledge - of the sequence numbers it has been using. When new connections are - created, an initial sequence number (ISN) generator is employed which - selects a new 32 bit ISN. The generator is bound to a (possibly - fictitious) 32 bit clock whose low order bit is incremented roughly - every 4 microseconds. Thus, the ISN cycles approximately every 4.55 - hours. Since we assume that segments will stay in the network no more - than tens of seconds or minutes, at worst, we can reasonably assume - that ISN's will be unique. - - For each connection there is a send sequence number and a receive - sequence number. The initial send sequence number (ISS) is chosen by - the data sending TCP, and the initial receive sequence number (IRS) is - learned during the connection establishing procedure. - - For a connection to be established or initialized, the two TCPs must - synchronize on each other's initial sequence numbers. This is done in - an exchange of connection establishing messages carrying a control bit - called "SYN" (for synchronize) and the initial sequence numbers. As a - shorthand, messages carrying the SYN bit are also called "SYNs". - Hence, the solution requires a suitable mechanism for picking an - initial sequence number and a slightly involved handshake to exchange - the ISN's. A "three way handshake" is necessary because sequence - numbers are not tied to a global clock in the network, and TCPs may - have different mechanisms for picking the ISN's. The receiver of the - first SYN has no way of knowing whether the segment was an old delayed - one or not, unless it remembers the last sequence number used on the - connection (which is not always possible), and so it must ask the - sender to verify this SYN. - - The "three way handshake" and the advantages of a "clock-driven" - scheme are discussed in [3]. - - Knowing When to Keep Quiet - - To be sure that a TCP does not create a segment that carries a - sequence number which may be duplicated by an old segment remaining in - the network, the TCP must keep quiet for a maximum segment lifetime - (MSL) before assigning any sequence numbers upon starting up or - recovering from a crash in which memory of sequence numbers in use was - lost. For this specification the MSL is taken to be 2 minutes. This - is an engineering choice, and may be changed if experience indicates - - -[Page 28] - - -August 1979 - Transmission Control Protocol - Functional Specification - - - - it is desirable to do so. Note that if a TCP is reinitialized in some - sense, yet retains its memory of sequence numbers in use, then it need - not wait at all; it must only be sure to use sequence numbers larger - than those recently used. - - It should be noted that this strategy does not protect against - spoofing or other replay type duplicate message problems. - -3.4. Establishing a connection - - The "three-way handshake" is essentially a unidirectional attempt to - establish a connection, i.e., there is an initiator and a responder. - The TCP can also establish a connection when a simultaneous initiation - occurs. A simultaneous attempt occurs when one TCP receives a "SYN" - segment which carries no acknowledgment after it has sent a "SYN". Of - course, the arrival of an old duplicate "SYN" segment can potentially - make it appear, to the recipient, that a simultaneous connection - initiation is in progress. Proper use of "reset" segments can - disambiguate these cases. Several examples of connection initiation - are offered below. Although these examples do not show connection - synchronization using data-carrying segments, this is perfectly - legitimate, so long as the receiving TCP doesn't deliver the data to - the user until it is clear the data is valid (i.e., the data must be - buffered at the receiver until the connection reaches the ESTABLISHED - state). The three-way handshake reduces the possibility of false - connections. It is the implementation of a trade-off between memory - and messages to provide information for this checking. - - The simplest three-way handshake is shown in figure 9 below. The - figures should be interpreted in the following way. Each line is - numbered for reference purposes. Right arrows (-->) indicate - departure of a TCP segment from TCP A to TCP B, or arrival of a - segment at B from A. Left arrows (<--), indicate the reverse. - Ellipsis (...) indicates a segment which is still in the network - (delayed). An "XXX" indicates a segment which is lost or rejected. - Comments appear in parentheses. TCP states represent the state AFTER - the departure or arrival of the segment (whose contents are shown in - the center of each line). Segment contents are shown in abbreviated - form, with sequence number, control flags, and ACK field. Other - fields such as window, addresses, lengths, and text have been left out - in the interest of clarity. - - - - - - - - - - [Page 29] - - - August 1979 -Transmission Control Protocol -Functional Specification - - - - - - TCP A TCP B - - 1. CLOSED LISTEN - - 2. SYN-SENT --> --> SYN-RECEIVED - - 3. ESTABLISHED <-- <-- SYN-RECEIVED - - 4. ESTABLISHED --> --> ESTABLISHED - - 5. ESTABLISHED --> --> ESTABLISHED - - Basic 3-Way Handshake for Connection Synchronization - - Figure 9. - - In line 2 of figure 9, TCP A begins by sending a SYN segment - indicating that it will use sequence numbers starting with sequence - number 100. In line 3, TCP B sends a SYN and acknowledges the SYN it - received from TCP A. Note that the acknowledgment field indicates TCP - B is now expecting to hear sequence 101, acknowledging the SYN which - occupied sequence 100. - - At line 4, TCP A responds with an empty segment containing an ACK for - TCP B's SYN; and in line 5, TCP A sends some data. Note that the - sequence number of the segment in line 5 is the same as in line 4 - because the ACK does not occupy sequence number space (if it did, we - would wind up ACKing ACK's!). - - Simultaneous initiation is only slightly more complex, as is shown in - figure 10. Each TCP cycles from CLOSED to SYN-SENT to SYN-RECEIVED to - ESTABLISHED. - - The principle reason for the three-way handshake is to prevent old - duplicate connection initiations from causing confusion. To deal with - this, a special control message, reset, has been devised. A TCP which - receives a reset message first verifies that the ACK field of the - reset acknowledges something the TCP sent (otherwise, the message is - ignored). If the receiving TCP is in a non-synchronized state (i.e., - SYN-SENT, SYN-RECEIVED), it returns to LISTEN on receiving an - acceptable reset. If the TCP is in one of the synchronized states - (ESTABLISHED, FIN-WAIT-1, FIN-WAIT-2, TIME-WAIT, CLOSE-WAIT, CLOSING), - it aborts the connection and informs its user. We discuss this latter - case under "half-open" connections below. - - - - -[Page 30] - - -August 1979 - Transmission Control Protocol - Functional Specification - - - - - - TCP A TCP B - - 1. CLOSED CLOSED - - 2. SYN-SENT --> ... - - 3. SYN-RECEIVED <-- <-- SYN-SENT - - 4. ... --> SYN-RECEIVED - - 5. SYN-RECEIVED --> ... - - 6. ESTABLISHED <-- <-- SYN-RECEIVED - - 7. ... --> ESTABLISHED - - Simultaneous Connection Synchronization - - Figure 10. - - - - TCP A TCP B - - 1. CLOSED LISTEN - - 2. SYN-SENT --> ... - - 3. (duplicate) ... --> SYN-RECEIVED - - 4. SYN-SENT <-- <-- SYN-RECEIVED - - 5. SYN-SENT --> --> LISTEN - (ACK is ok) - - 6. ... --> SYN-RECEIVED - - 7. SYN-SENT <-- <-- SYN-RECEIVED - - 8. ESTABLISHED --> --> ESTABLISHED - - Recovery from Old Duplicate SYN - - Figure 11. - - As a simple example of recovery from old duplicates, consider - - - [Page 31] - - - August 1979 -Transmission Control Protocol -Functional Specification - - - - figure 11. At line 3, an old duplicate SYN arrives at TCP B. TCP B - cannot tell that this is an old duplicate, so it responds normally - (line 4). TCP A detects that the ACK field is incorrect and returns a - RST (reset) with its SEQ field selected to make the segment - believable. TCP B, on receiving the RST, returns to the LISTEN state. - When the original SYN (pun intended) finally arrives at line 6, the - synchronization proceeds normally. If the SYN at line 6 had arrived - before the RST, a more complex exchange might have occurred with RST's - sent in both directions. - - Half-Open Connections and Other Anomalies - - An established connection is said to be "half-open" if one of the - TCPs has closed or aborted the connection at its end without the - knowledge of the other, or if the two ends of the connection have - become desynchronized owing to a crash that resulted in loss of - memory. Such connections will automatically become reset if an - attempt is made to send data in either direction. However, half-open - connections are expected to be unusual, and the recovery procedure is - mildly involved. - - If at site A the connection no longer exists, then an attempt by the - user at site B to send any data on it will result in the site B TCP - receiving a reset control message. Such a message should indicate to - the site B TCP that something is wrong, and it is expected to abort - the connection. - - Assume that two user processes A and B are communicating with one - another when a crash occurs causing loss of memory to A's TCP. - Depending on the operating system supporting A's TCP, it is likely - that some error recovery mechanism exists. When the TCP is up again, - A is likely to start again from the beginning or from a recovery - point. As a result, A will probably try to OPEN the connection again - or try to SEND on the connection it believes open. In the latter - case, it receives the error message "connection not open" from the - local (A's) TCP. In an attempt to establish the connection, A's TCP - will send a segment containing SYN. This scenario leads to the - example shown in figure 12. After TCP A crashes, the user attempts to - re-open the connection. TCP B, in the meantime, thinks the connection - is open. - - - - - - - - - - -[Page 32] - - -August 1979 - Transmission Control Protocol - Functional Specification - - - - - - TCP A TCP B - - 1. (CRASH) (send 300,receive 100) - - 2. CLOSED ESTABLISHED - - 3. SYN-SENT --> --> (??) - - 4. (!!) <-- <-- ESTABLISHED - - 5. SYN-SENT --> --> (Abort!!) - - 6. CLOSED - - 7. SYN-SENT --> --> CLOSED - - 8. (Abort!!)<-- <-- CLOSED - - 9. CLOSED CLOSED - - Half-Open Connection Discovery - - Figure 12. - - When the SYN arrives at line 3, TCP B, being in a synchronized state, - responds with an acknowledgment indicating what sequence it next - expects to hear (ACK 100). TCP A sees that this segment does not - acknowledge anything it sent and, being unsynchronized, sends a reset - (RST) because it has detected a half-open connection. TCP B aborts at - line 5. TCP A will continue to retransmit its SYN; and if the user at - TCP B re-opens the connection, eventually everything will work out. - In the figure TCP B does not reopen the connection, and in line 8 - sends a reset to reject the offered connection. - - An interesting alternative case occurs when TCP A crashes and TCP B - tries to send data on what it thinks is a synchronized connection. - This is illustrated in figure 13. In this case, the data arriving at - TCP A from TCP B (line 2) is unacceptable because no such connection - exists, so TCP A sends a RST. The RST is acceptable so TCP B - processes it and aborts the connection. - - - - - - - - - [Page 33] - - - August 1979 -Transmission Control Protocol -Functional Specification - - - - - - TCP A TCP B - - 1. (CRASH) (send 300,receive 100) - - 2. (??) <-- <-- ESTABLISHED - - 3. --> --> (ABORT!!) - - Active Side Causes Half-Open Connection Discovery - - Figure 13. - - In figure 14, we find the two TCPs A and B with passive connections - waiting for SYN. An old duplicate arriving at TCP B (line 2) stirs B - into action. A SYN-ACK is returned (line 3) and causes TCP A to - generate a RST (the ACK in line 3 is not acceptable). TCP B accepts - the reset and returns to its passive LISTEN state. - - - - TCP A TCP B - - 1. LISTEN LISTEN - - 2. ... --> SYN-RECEIVED - - 3. (??) <-- <-- SYN-RECEIVED - - 4. --> --> (return to LISTEN!) - - 5. LISTEN LISTEN - - Old Duplicate SYN Initiates a Reset on two Passive Sockets - - Figure 14. - - A variety of other cases are possible, all of which are accounted for - by the following rules for RST generation and processing. - - Reset Generation - - As a general rule, reset (RST) should be sent whenever a segment - arrives which apparently is not intended for the current or a future - incarnation of the connection. A reset should not be sent if it is - not clear that this is the case. Thus, if any segment arrives for a - nonexistent connection, a reset should be sent. If a segment ACKs - - -[Page 34] - - -August 1979 - Transmission Control Protocol - Functional Specification - - - - something which has never been sent on the current connection, then - one of the following two cases applies. - - 1. If the connection is in any non-synchronized state (LISTEN, - SYN-SENT, SYN-RECEIVED) or if the connection does not exist, a reset - (RST) should be formed and sent for any segment that acknowledges - something not yet sent. The RST should take its SEQ field from the - ACK field of the offending segment (if the ACK control bit was set), - and its ACK bit should be reset (zero), except to refuse a initial - SYN. - - 2. If the connection is in a synchronized state (ESTABLISHED, - FIN-WAIT-1, FIN-WAIT-2, TIME-WAIT, CLOSE-WAIT, CLOSING), any - unacceptable segment should elicit only an empty acknowledgment - segment containing the current send-sequence number and an - acknowledgment indicating the next sequence number expected to be - received. - - Reset Processing - - All reset (RST) segments are validated by checking their SEQ-fields. - A reset is valid if it's sequence number is the next expected sequence - number. In the case of a RST received in response to an initial SYN - any sequence number is acceptable if the ACK field acknowledges the - SYN. - - The receiver of a RST first validates it, then changes state. If the - receiver was in the LISTEN state, it ignores it. If the receiver was - in SYN-RECEIVED state and had previously been in the LISTEN state, - then the receiver returns to the LISTEN state, otherwise the receiver - aborts the connection and goes to the CLOSED state. If the receiver - was in any other state, it aborts the connection and advises the user - and goes to the CLOSED state. - -3.5. Closing a Connection - - CLOSE is an operation meaning "I have no more data to send." The - notion of closing a full-duplex connection is subject to ambiguous - interpretation, of course, since it may not be obvious how to treat - the receiving side of the connection. We have chosen to treat CLOSE - in a simplex fashion. The user who CLOSEs may continue to RECEIVE - until he is told that the other side has CLOSED also. Thus, a program - could initiate several SENDs followed by a CLOSE, and then continue to - RECEIVE until signaled that a RECEIVE failed because the other side - has CLOSED. We assume that the TCP will unilaterally inform a user, - even if no RECEIVEs are outstanding, that the other side has closed, - so the user can terminate his side gracefully. A TCP will reliably - deliver all buffers SENT before the connection was CLOSED so a user - - - [Page 35] - - - August 1979 -Transmission Control Protocol -Functional Specification - - - - who expects no data in return need only wait to hear the connection - was CLOSED successfully to know that all his data was received at the - destination TCP. - - There are essentially three cases: - - 1) The user initiates by telling the TCP to CLOSE the connection - - 2) The remote TCP initiates by sending a FIN control signal - - 3) Both users CLOSE simultaneously - - Case 1: Local user initiates the close - - In this case, a FIN segment can be constructed and placed on the - outgoing segment queue. No further SENDs from the user will be - accepted by the TCP, and it enters the FIN-WAIT-1 state. RECEIVEs - are allowed in this state. All segments preceding and including FIN - will be retransmitted until acknowledged. When the other TCP has - both acknowledged the FIN and sent a FIN of its own, the first TCP - can ACK this FIN. It should be noted that a TCP receiving a FIN - will ACK but not send its own FIN until its user has CLOSED the - connection also. - - Case 2: TCP receives a FIN from the network - - If an unsolicited FIN arrives from the network, the receiving TCP - can ACK it and tell the user that the connection is closing. The - user should respond with a CLOSE, upon which the TCP can send a FIN - to the other TCP. The TCP then waits until its own FIN is - acknowledged whereupon it deletes the connection. If an ACK is not - forthcoming, after a timeout the connection is aborted and the user - is told. - - Case 3: both users close simultaneously - - A simultaneous CLOSE by users at both ends of a connection causes - FIN segments to be exchanged. When all segments preceding the FINs - have been processed and acknowledged, each TCP can ACK the FIN it - has received. Both will, upon receiving these ACKs, delete the - connection. - - - - - - - - - -[Page 36] - - -August 1979 - Transmission Control Protocol - Functional Specification - - - - - - TCP A TCP B - - 1. ESTABLISHED ESTABLISHED - - 2. (Close) - FIN-WAIT-1 --> --> CLOSE-WAIT - - 3. FIN-WAIT-2 <-- <-- CLOSE-WAIT - - 4. (Close) - TIME-WAIT <-- <-- CLOSING - - 5. TIME-WAIT --> --> CLOSED - - 6. (2 MSL) - CLOSED - - Normal Close Sequence - - Figure 15. - - - - TCP A TCP B - - 1. ESTABLISHED ESTABLISHED - - 2. (Close) (Close) - FIN-WAIT-1 --> --> FIN-WAIT-1 - <-- <-- - - 3. CLOSING --> --> CLOSING - <-- <-- - - 4. CLOSED CLOSED - - Simultaneous Close Sequence - - Figure 16. - - - - - - - - - - [Page 37] - - - August 1979 -Transmission Control Protocol -Functional Specification - - - -3.6. Data Communication - - Once the connection is established data is communicated by the - exchange of segments. Because segments may be lost due to errors - (checksum test failure), or network congestion, TCP uses - retransmission (after a timeout) to ensure delivery of every segment. - Duplicate segments may arrive due to network or TCP retransmission. - As discussed in the section on sequence numbers the TCP performs - certain tests on the sequence and acknowledgment numbers in the - segments to verify their acceptability. - - The sender of data keeps track of the next sequence number to use in - the variable SND.NXT. The receiver of data keeps track of the next - sequence number to expect in the variable RCV.NXT. The sender of data - keeps track of the oldest unacknowledged sequence number in the - variable SND.UNA. If the data flow is momentarily idle and all data - sent has been acknowledged then the three variables will be equal. - - When the sender creates a segment and transmits it the sender advances - SND.NXT. When the receiver accepts a segment it advances RCV.NXT and - sends an acknowledgment. When the data sender receives an - acknowledgment it advances SND.UNA. The extent to which the values of - these variables differ is a measure of the delay in the communication. - - Normally the amount by which the variables are advanced is the length - of the data in the segment. However, when letters are used there are - special provisions for coordination the sequence numbers, the letter - boundaries, and the receive buffer boundaries. - - End of Letter Sequence Number Adjustments - - There is provision in TCP for the receiver of data to optionally - communicate to the sender of data on a connection at the time of the - connection synchronization the receiver's buffer size. If this is - done the receiver must use this fixed size of buffers for the lifetime - of the connection. If a buffer size is communicated then there is a - coordination between receive buffers, letters, and sequence numbers. - - Each time a buffer is completed either due to being filled or due to - an end of letter, the sequence number is incremented through the end - of that buffer. - - That is, whenever an EOL is transmitted, the sender advances its send - sequence number, SND.NXT, by an amount sufficient to consume all the - unused space in the receiver's buffer. The amount of space consumed - in this fashion is subtracted from the send window just as is the - space consumed by actual data. - - - -[Page 38] - - -August 1979 - Transmission Control Protocol - Functional Specification - - - - And, whenever an EOL is received, the receiver advances its receive - sequence number, RCV.NXT, by an amount sufficient to consume all the - unused space in the receiver's buffer. The amount of space consumed - in this fashion is subtracted from the receive window just as is the - space consumed by actual data. - - older sequence numbers newer sequence numbers - - | Buffer 1 | Buffer 2 - | | - ----+-------------------------------+----------------- - XXXXXXXXXXXXXXXXXXXXX+++++++++++ - | | | - |<-----SEG.LEN------>| | - | | | - | | | - SEG.SEQ A B - - XXX - data octets from segment - +++ - phantom data - - <----- sequence space -----> - - End of Letter Adjustment - - Figure 17. - - In the case illustrated above, if the segment does not carry an EOL - flag, the next value of SND.NXT or RCV.NXT will be A. If it does - carry an EOL flag, the next value will be B. - - The exchange of buffer size and sequencing information is done in - units of octets. If no buffer size is stated, then the buffer size is - assumed to be 1 octet. The receiver tells the sender the size of the - buffer in a SYN segment that contains the 16 bit buffer size data in - an option field in the TCP header. - - Each EOL advances the sequence number (SN) to the next buffer boundary - - While LBB < SEG.SEQ+SEG.LEN - Do LBB <- LBB + BS End - SN <- LBB - - where LBB is the Last Buffer Beginning, and BS is the buffer size. - - The CLOSE user call implies an end of letter, as does the FIN control - flag in an incoming segment. - - - - [Page 39] - - - August 1979 -Transmission Control Protocol -Functional Specification - - - - The Communication of Urgent Information - - The objective of the TCP urgent mechanism is to allow the sending user - to stimulate the receiving user to accept some urgent data and to - permit the receiving TCP to indicate to the receiving user when all - the currently known urgent data has been received by the user. - - This mechanism permits a point in the data stream to be designated as - the end of "urgent" information. Whenever this point is in advance of - the receive sequence number (RCV.NXT) at the receiving TCP, that TCP - should tell the user to go into "urgent mode"; when the receive - sequence number catches up to the urgent pointer, the TCP should tell - user to go into "normal mode". If the urgent pointer is updated while - the user is in "read fast" mode, the update will be invisible to the - user. - - The method employs a urgent field which is carried in all segments - transmitted. The URG control flag indicates that the urgent field is - meaningful and should be added to the segment sequence number to yield - the urgent pointer. The absence of this flag indicates that the - urgent pointer has not changed. - - To send an urgent indication the user must also send at least one data - octet. If the sending user also indicates end of letter, timely - delivery of the urgent information to the destination process is - enhanced. - - Managing the Window - - The window sent in each segment indicates the range of sequence number - the sender of the window (the data receiver) is currently prepared to - accept. There is an assumption that this is somehow related to to the - currently available data buffer space available for this connection. - - Indicating a large window encourages transmissions. If more data - arrives than can be accepted, this will result in excessive - retransmissions, adding unnecessarily to the load on the network and - the TCPs. Indicating a small window may restrict the transmission of - data to the point of introducing a round trip delay between each new - segment transmitted. - - The mechanisms provided allow a TCP to advertise a large window and to - subsequently advertise a much smaller window without having accepted - that much data. This, so called "shrinking the window," is strongly - discouraged. The robustness principle dictates that TCPs will not - shrink the window themselves, but will be prepared for such behavior - on the part of other TCPs. - - - -[Page 40] - - -August 1979 - Transmission Control Protocol - Functional Specification - - - - The sending TCP must be prepared to accept and send at least one octet - of new data even if the send window is zero. The sending TCP should - regularly retransmit to the receiving TCP even when the window is - zero. Two minutes is recommended for the retransmission interval when - the window is zero. This retransmission is essential to guarantee - that when either TCP has a zero window the re-opening of the window - will be reliably reported to the other. - - Users must keep reading connections they close for sending until the - TCP says no more data. - - In a connection with a one-way data flow, the window information will - be carried in acknowledgment segments that all have the same sequence - number so there will be no way to reorder them if they arrive out of - order. This is not a serious problem, but it will allow the window - information to be on occasion temporarily based on old reports from - the data receiver. - -3.7. Interfaces - - There are of course two interfaces of concern: the user/TCP interface - and the TCP/network interface. We have a fairly elaborate model of - the user/TCP interface, but only a sketch of the interface to the - lower level protocol module. - - User/TCP Interface - - The functional description of user commands to the TCP is, at best, - fictional, since every operating system will have different - facilities. Consequently, we must warn readers that different TCP - implementations may have different user interfaces. However, all - TCPs must provide a certain minimum set of services to guarantee - that all TCP implementations can support the same protocol - hierarchy. This section specifies the functional interfaces - required of all TCP implementations. - - TCP User Commands - - The following sections functionally characterize a USER/TCP - interface. The notation used is similar to most procedure or - function calls in high level languages, but this usage is not - meant to rule out trap type service calls (e.g., SVCs, UUOs, - EMTs). - - The user commands described below specify the basic functions the - TCP must perform to support interprocess communication. - Individual implementations should define their own exact format, - and may provide combinations or subsets of the basic functions in - - - [Page 41] - - - August 1979 -Transmission Control Protocol -Functional Specification - - - - single calls. In particular, some implementations may wish to - automatically OPEN a connection on the first SEND or RECEIVE - issued by the user for a given connection. - - In providing interprocess communication facilities, the TCP must - not only accept commands, but must also return information to the - processes it serves. The latter consists of: - - (a) general information about a connection (e.g., interrupts, - remote close, binding of unspecified foreign socket). - - (b) replies to specific user commands indicating success or - various types of failure. - - Although the means for signaling user processes and the exact - format of replies will vary from one implementation to another, it - would promote common understanding and testing if a common set of - codes were adopted. Such a set of event codes is described below. - - Open - - Format: OPEN (local port, foreign socket, active/passive - [, buffer size] [, timeout]) -> local connection name - - We assume that the local TCP is aware of the identity of the - processes it serves and will check the authority of the process - to use the connection specified. Depending upon the - implementation of the TCP, the local network and TCP identifiers - for the source address will either be supplied by the TCP or by - the processes that serve it (e.g., the program which interfaces - the TCP network). These considerations are the result of - concern about security, to the extent that no TCP be able to - masquerade as another one, and so on. Similarly, no process can - masquerade as another without the collusion of the TCP. - - If the active/passive flag is set to passive, then this is a - call to LISTEN for an incoming connection. A passive open may - have either a fully specified foreign socket to wait for a - particular connection or an unspecified foreign socket to wait - for any call. A fully specified passive call can be made active - by the subsequent execution of a SEND. - - A full-duplex transmission control block (TCB) is created and - partially filled in with data from the OPEN command parameters. - The TCB format is described in more detail in section 5.4. - - On an active OPEN command, the TCP will begin the procedure to - synchronize (i.e., establish) the connection at once. - - -[Page 42] - - -August 1979 - Transmission Control Protocol - Functional Specification - - - - The buffer size, if present, indicates that the caller will - always receive data from the connection in that size of buffers. - This buffer size is a measure of the buffer between the user and - the local TCP. The buffer size between the two TCPs may be - different. - - The timeout, if present, permits the caller to set up a timeout - for all buffers transmitted on the connection. If a buffer is - not successfully delivered to the destination within the timeout - period, the TCP will abort the connection. The present global - default is 30 seconds. The buffer retransmission rate may vary; - most likely, it will be related to the measured time for - responses from the remote TCP. - - Depending on the TCP implementation, either a local connection - name will be returned to the user by the TCP, or the user will - specify this local connection name (in which case another - parameter is needed in the call). The local connection name can - then be used as a short hand term for the connection defined by - the pair. - - Send - - Format: SEND(local connection name, buffer address, byte count, - EOL flag, URGENT flag [, timeout]) - - This call causes the data contained in the indicated user buffer - to be sent on the indicated connection. If the connection has - not been opened, the SEND is considered an error. Some - implementations may allow users to SEND first; in which case, an - automatic OPEN would be done. If the calling process is not - authorized to use this connection, an error is returned. - - If the EOL flag is set, the data is the End Of a Letter, and the - EOL bit will be set in the last TCP segment created from the - buffer. If the EOL flag is not set, subsequent SENDs will - appear to be part of the same letter. - - If the URGENT flag is set, segments resulting from this call - will have the urgent pointer set to indicate that some of the - data associated with this call is urgent. This facility, for - example, can be used to simulate "break" signals from terminals - or error or completion codes from I/O devices. The semantics of - this signal to the receiving process are unspecified. The - receiving TCP will signal the urgent condition to the receiving - process as long as the urgent pointer indicates that data - preceding the urgent pointer has not been consumed by the - receiving process. The purpose of urgent is to stimulate the - - - [Page 43] - - - August 1979 -Transmission Control Protocol -Functional Specification - - - - receiver to accept some urgent data and to indicate to the - receiver when all the currently known urgent data has been - received. - - The number of times the sending user's TCP signals urgent will - not necessarily be equal to the number of times the receiving - user will be notified of the presence of urgent data. - - If no foreign socket was specified in the OPEN, but the - connection is established (e.g., because a LISTENing connection - has become specific due to a foreign segment arriving for the - local socket), then the designated buffer is sent to the implied - foreign socket. In general, users who make use of OPEN with an - unspecified foreign socket can make use of SEND without ever - explicitly knowing the foreign socket address. - - However, if a SEND is attempted before the foreign socket - becomes specified, an error will be returned. Users can use the - STATUS call to determine the status of the connection. In some - implementations the TCP may notify the user when an unspecified - socket is bound. - - If a timeout is specified, then the current timeout for this - connection is changed to the new one. - - In the simplest implementation, SEND would not return control to - the sending process until either the transmission was complete - or the timeout had been exceeded. However, this simple method - is both highly subject to deadlocks (for example, both sides of - the connection might try to do SENDs before doing any RECEIVEs) - and offers poor performance, so it is not recommended. A more - sophisticated implementation would return immediately to allow - the process to run concurrently with network I/O, and, - furthermore, to allow multiple SENDs to be in progress. - Multiple SENDs are served in first come, first served order, so - the TCP will queue those it cannot service immediately. - - We have implicitly assumed an asynchronous user interface in - which a SEND later elicits some kind of SIGNAL or - pseudo-interrupt from the serving TCP. An alternative is to - return a response immediately. For instance, SENDs might return - immediate local acknowledgment, even if the segment sent had not - been acknowledged by the distant TCP. We could optimistically - assume eventual success. If we are wrong, the connection will - close anyway due to the timeout. In implementations of this - kind (synchronous), there will still be some asynchronous - signals, but these will deal with the connection itself, and not - with specific segments or letters. - - -[Page 44] - - -August 1979 - Transmission Control Protocol - Functional Specification - - - - NOTA BENE: In order for the process to distinguish among error - or success indications for different SENDs, it might be - appropriate for the buffer address to be returned along with the - coded response to the SEND request. We will offer an example - event code format below, showing the information which should be - returned to the calling process. - - Receive - - Format: RECEIVE (local connection name, buffer address, byte - count) - - This command allocates a receiving buffer associated with the - specified connection. If no OPEN precedes this command or the - calling process is not authorized to use this connection, an - error is returned. - - In the simplest implementation, control would not return to the - calling program until either the buffer was filled, or some - error occurred, but this scheme is highly subject to deadlocks. - A more sophisticated implementation would permit several - RECEIVEs to be outstanding at once. These would be filled as - letters, segments or fragments arrive. This strategy permits - increased throughput at the cost of a more elaborate scheme - (possibly asynchronous) to notify the calling program that a - letter has been received or a buffer filled. - - If insufficient buffer space is given to reassemble a complete - letter, the EOL flag will not be set in the response to the - RECEIVE. The buffer will be filled with as much data as it can - hold. The last buffer required to hold the letter is returned - with EOL signaled. - - The remaining parts of a partly delivered letter will be placed - in buffers as they are made available via successive RECEIVEs. - If a number of RECEIVEs are outstanding, they may be filled with - parts of a single long letter or with at most one letter each. - The event codes associated with each RECEIVE will indicate what - is contained in the buffer. - - If a buffer size was given in the OPEN call, then all buffers - presented in RECEIVE calls must be of exactly that size, or an - error indication will be returned. - - The URGENT flag will be set only if the receiving user has - previously been informed via a general event, that urgent data - is waiting. The receiving user should thus be in "read-fast" - mode. If the URGENT flag is on, additional urgent data remains. - - - [Page 45] - - - August 1979 -Transmission Control Protocol -Functional Specification - - - - If the URGENT flag is off, this call to RECEIVE has returned all - the urgent data, and the user may now leave "read-fast" mode. - - To distinguish among several outstanding RECEIVEs and to take - care of the case that a letter is smaller than the buffer - supplied, the event code is accompanied by both a buffer pointer - and a byte count indicating the actual length of the letter - received. - - Alternative implementations of RECEIVE might have the TCP - allocate buffer storage, or the TCP might share a ring buffer - with the user. Variations of this kind will produce obvious - variation in user interface to the TCP. - - Close - - Format: CLOSE(local connection name) - - This command causes the connection specified to be closed. If - the connection is not open or the calling process is not - authorized to use this connection, an error is returned. - Closing connections is intended to be a graceful operation in - the sense that outstanding SENDs will be transmitted (and - retransmitted), as flow control permits, until all have been - serviced. Thus, it should be acceptable to make several SEND - calls, followed by a CLOSE, and expect all the data to be sent - to the destination. It should also be clear that users should - continue to RECEIVE on CLOSING connections, since the other side - may be trying to transmit the last of its data. Thus, CLOSE - means "I have no more to send" but does not mean "I will not - receive any more." It may happen (if the user level protocol is - not well thought out) that the closing side is unable to get rid - of all its data before timing out. In this event, CLOSE turns - into ABORT, and the closing TCP gives up. - - The user may CLOSE the connection at any time on his own - initiative, or in response to various prompts from the TCP - (e.g., remote close executed, transmission timeout exceeded, - destination inaccessible). - - Because closing a connection requires communication with the - foreign TCP, connections may remain in the closing state for a - short time. Attempts to reopen the connection before the TCP - replies to the CLOSE command will result in error responses. - - Close also implies end of letter. - - - - -[Page 46] - - -August 1979 - Transmission Control Protocol - Functional Specification - - - - Status - - Format: STATUS(local connection name) - - This is an implementation dependent user command and could be - excluded without adverse effect. Information returned would - typically come from the TCB associated with the connection. - - This command returns a data block containing the following - information: - - local socket, - foreign socket, - local connection name, - receive window, - send window, - connection state, - number of buffers awaiting acknowledgment, - number of buffers pending receipt (including partial ones), - receive buffer size, - urgent state, - and default transmission timeout. - - Depending on the state of the connection, or on the - implementation itself, some of this information may not be - available or meaningful. If the calling process is not - authorized to use this connection, an error is returned. This - prevents unauthorized processes from gaining information about a - connection. - - Abort - - Format: ABORT (local connection name) - - This command causes all pending SENDs and RECEIVES to be - aborted, the TCB to be removed, and a special RESET message to - be sent to the TCP on the other side of the connection. - Depending on the implementation, users may receive abort - indications for each outstanding SEND or RECEIVE, or may simply - receive an ABORT-acknowledgment. - - - - - - - - - - - [Page 47] - - - August 1979 -Transmission Control Protocol -Functional Specification - - - - TCP-to-User Messages - - It is assumed that the operating system environment provides a - means for the TCP to asynchronously signal the user program. When - the TCP does signal a user program, certain information is passed - to the user. Often in the specification the information will be - an error message. In other cases there will be information - relating to the completion of processing a SEND or RECEIVE or - other user call. - - The following information is provided: - - Local Connection Name Always - Response String Always - Buffer Address Send & Receive - Byte count (counts bytes received) Receive - End-of-Letter flag Receive - End-of-Urgent flag Receive - - TCP/Network Interface - - The TCP calls on a lower level protocol module to actually send and - receive information over a network. One case is that of the ARPA - internetwork system where the lower level module is the Internet - Protocol [1]. In most cases the following simple interface would be - adequate. - - The following two calls satisfy the requirements for the TCP to - internet protocol module communication: - - SEND (dest, TOS, TTL, BufPTR, len, Id, DF, options => result) - - where: - - dest = destination address - TOS = type of service - TTL = time to live - BufPTR = buffer pointer - len = length of buffer - Id = Identifier - DF = Don't Fragment - options = option data - result = response - OK = datagram sent ok - Error = error in arguments or local network error - - - - - -[Page 48] - - -August 1979 - Transmission Control Protocol - Functional Specification - - - - RECV (BufPTR => result, source, dest, prot, TOS, len) - - where: - - BufPTR = buffer pointer - result = response - OK = datagram received ok - Error = error in arguments - source = source address - dest = destination address - prot = protocol - TOS = type of service - len = length of buffer - - When the TCP sends a segment, it executes the SEND call supplying - all the arguments. The internet protocol module, on receiving - this call, checks the arguments and prepares and sends the - message. If the arguments are good and the segment is accepted by - the local network, the call returns successfully. If either the - arguments are bad, or the segment is not accepted by the local - network, the call returns unsuccessfully. On unsuccessful - returns, a reasonable report should be made as to the cause of the - problem, but the details of such reports are up to individual - implementations. - - When a segment arrives at the internet protocol module from the - local network, either there is a pending RECV call from TCP or - there is not. In the first case, the pending call is satisfied by - passing the information from the segment to the TCP. In the - second case, the TCP is notified of a pending segment. - - The notification of a TCP may be via a pseudo interrupt or similar - mechanism, as appropriate in the particular operating system - environment of the implementation. - - A TCP's RECV call may then either be immediately satisfied by a - pending segment, or the call may be pending until a segment - arrives. - - We note that the Internet Protocol provides arguments for a type - of service and for a time to live. TCP uses the following - settings for these parameters: - - type of service = Priority: none, Package: stream, - Reliability: higher, Preference: speed, Speed: higher; or - 00110110. - - time to live = one minute, or 00111100. - - - [Page 49] - - - August 1979 -Transmission Control Protocol -Functional Specification - - - - Note that the assumed maximum segment lifetime is two minutes. - Here we explicitly ask that a segment be destroyed if it - cannot be delivered by the internet system within one minute. - -3.8. Event Processing - - The activity of the TCP can be characterized as responding to events. - The events that occur can be cast into three categories: user calls, - arriving segments, and timeouts. This section describes the - processing the TCP does in response to each of the events. In many - cases the processing required depends on the state of the connection. - - Events that occur: - - User Calls - - OPEN - SEND - RECEIVE - CLOSE - ABORT - STATUS - - Arriving Segments - - SEGMENT ARRIVES - - Timeouts - - USER TIMEOUT - RETRANSMISSION TIMEOUT - - The model of the TCP/user interface is that user commands receive an - immediate return and possibly a delayed response via an event or - pseudo interrupt. In the following descriptions, the term "signal" - means cause a delayed response. - - Error responses are given as character strings. For example, user - commands referencing connections that do not exist receive "error: - connection not open". - - Please note in the following that all arithmetic on sequence numbers, - acknowledgment numbers, windows, et cetera, is modulo 2**32 the size - of the sequence number space. Also note that "=<" means less than or - equal to. - - A natural way to think about processing incoming segments is to - imagine that they are first tested for proper sequence number (i.e., - - -[Page 50] - - -August 1979 - Transmission Control Protocol - Functional Specification - - - - that their contents lie in the range of the expected "receive window" - in the sequence number space) and then that they are generally queued - and processed in sequence number order. - - When a segment overlaps other already received segments we reconstruct - the segment to contain just the new data, and adjust the header fields - to be consistent. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Page 51] - - - August 1979 -Transmission Control Protocol -Functional Specification - OPEN Call - - - - OPEN Call - - CLOSED STATE (i.e., TCB does not exist) - - Create a new transmission control block (TCB) to hold connection - state information. Fill in local socket identifier, foreign - socket, and user timeout information. If active and the foreign - socket is unspecified, return "error: foreign socket - unspecified"; if active and the foreign socket is specified, issue - a SYN segment. An initial send sequence number (ISS) is selected - and a SYN segment of the form is sent. Set - SND.UNA to ISS, SND.NXT to ISS+1, SND.LBB to ISS+1, enter SYN-SENT - state, and return. - - If the caller does not have access to the local socket specified, - return "error: connection illegal for this process". If there is - no room to create a new connection, return "error: insufficient - resources". - - LISTEN STATE - SYN-SENT STATE - SYN-RECEIVED STATE - ESTABLISHED STATE - FIN-WAIT-1 STATE - FIN-WAIT-2 STATE - TIME-WAIT STATE - CLOSE-WAIT STATE - CLOSING STATE - - Return "error: connection already exists". - - - - - - - - - - - - - - - - - - - -[Page 52] - - -August 1979 - Transmission Control Protocol - Functional Specification -SEND Call - - - - SEND Call - - CLOSED STATE (i.e., TCB does not exist) - - If the user should no have access to such a connection, then - return "error: connection illegal for this process". - - Otherwise, return "error: connection does not exist". - - LISTEN STATE - - If the foreign socket is specified, then change the connection - from passive to active, select an ISS, send a SYN segment, set - SND.UNA to ISS, SND.NXT to ISS+1 and SND.LBB to ISS+1. Enter - SYN-SENT state. Data associated with SEND may be sent with SYN - segment or queued for transmission after entering ESTABLISHED - state. The urgent bit if requested in the command should be sent - with the first data segment sent as a result of this command. If - there is no room to queue the request, respond with "error: - insufficient resources". If Foreign socket was not specified, - then return "error: foreign socket unspecified". - - SYN-SENT STATE - - Queue for processing after the connection is ESTABLISHED. - Typically, nothing can be sent yet, anyway, because the send - window has not yet been set by the other side. If no space, - return "error: insufficient resources". - - SYN-RECEIVED STATE - - Queue for later processing after entering ESTABLISHED state. If - no space to queue, respond with "error: insufficient resources". - - ESTABLISHED STATE - - Segmentize the buffer, send or queue it for output, with a - piggybacked acknowledgment (acknowledgment value = SND.UNA) with - the data (this is not required, but there is no advantage in not - doing so). If there is insufficient space to remember this - buffer, simply return "error: insufficient resources". - - If remote buffer size is not one octet, then, if this is the end - of a letter, do the following end-of-letter/buffer-size adjustment - processing: - - - - - [Page 53] - - - August 1979 -Transmission Control Protocol -Functional Specification - SEND Call - - - - if EOL = 0 then - - SND.NXT <- SEG.SEQ + SEG.LEN - - if EOL = 1 then - - While SND.LBB < SEG.SEQ + SEG.LEN - Do SND.LBB <- SND.LBB + SND.BS End - SND.NXT <- SND.LBB - - If the urgent flag is set, then SND.UP <- SND.NXT-1 and set the - urgent pointer in the outgoing segment. - - FIN-WAIT-1 STATE - FIN-WAIT-2 STATE - TIME-WAIT STATE - - Return "error: connection closing" and do not service request. - - CLOSE-WAIT STATE - - Segmentize any text to be sent and queue for output. If there is - insufficient space to remember the SEND, return "error: - insufficient resources" - - CLOSING STATE - - Respond with "error: connection closing" - - - - - - - - - - - - - - - - - - - - - -[Page 54] - - -August 1979 - Transmission Control Protocol - Functional Specification -RECEIVE Call - - - - RECEIVE Call - - CLOSED STATE (i.e., TCB does not exist) - - If the user should no have access to such a connection, return - "error: connection illegal for this process". - - Otherwise return "error: connection does not exist". - - LISTEN STATE - SYN-SENT STATE - SYN-RECEIVED STATE - - Queue for processing after entering ESTABLISHED state. If there - is no room to queue this request, respond with "error: - insufficient resources". - - ESTABLISHED STATE - - If insufficient incoming segments are queued to satisfy the - request, queue the request. If there is no queue space to - remember the RECEIVE, respond with "error: insufficient - resources". - - Reassemble queued incoming segments into receive buffer and return - to user. Mark "end of letter" (EOL) if this is the case. - - If RCV.UP is in advance of the data currently being passed to the - user notify the user of the presence of urgent data. - - When the TCP takes responsibility for delivering data to the user - that fact must be communicated to the sender via an - acknowledgment. The formation of such an acknowledgment is - described below in the discussion of processing an incoming - segment. - - FIN-WAIT-1 STATE - FIN-WAIT-2 STATE - - Reassemble and return a letter, or as much as will fit, in the - user buffer. Queue the request if it cannot be serviced - immediately. - - - - - - - - [Page 55] - - - August 1979 -Transmission Control Protocol -Functional Specification - RECEIVE Call - - - - TIME-WAIT STATE - CLOSE-WAIT STATE - - Since the remote side has already sent FIN, RECEIVEs must be - satisfied by text already reassembled, but not yet delivered to - the user. If no reassembled segment text is awaiting delivery, - the RECEIVE should get a "error: connection closing" response. - Otherwise, any remaining text can be used to satisfy the RECEIVE. - - CLOSING STATE - - Return "error: connection closing" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 56] - - -August 1979 - Transmission Control Protocol - Functional Specification -CLOSE Call - - - - CLOSE Call - - CLOSED STATE (i.e., TCB does not exist) - - If the user should no have access to such a connection, return - "error: connection illegal for this process". - - Otherwise, return "error: connection does not exist". - - LISTEN STATE - - Any outstanding RECEIVEs should be returned with "error: closing" - responses. Delete TCB, return "ok". - - SYN-SENT STATE - - Delete the TCB and return "error: closing" responses to any - queued SENDs, or RECEIVEs. - - SYN-RECEIVED STATE - - Queue for processing after entering ESTABLISHED state or - segmentize and send FIN segment. If the latter, enter FIN-WAIT-1 - state. - - ESTABLISHED STATE - - Queue this until all preceding SENDs have been segmentized, then - form a FIN segment and send it. In any case, enter FIN-WAIT-1 - state. - - FIN-WAIT-1 STATE - FIN-WAIT-2 STATE - - Strictly speaking, this is an error and should receive a "error: - connection closing" response. An "ok" response would be - acceptable, too, as long as a second FIN is not emitted (the first - FIN may be retransmitted though). - - - - - - - - - - - - [Page 57] - - - August 1979 -Transmission Control Protocol -Functional Specification - CLOSE Call - - - - TIME-WAIT STATE - - Strictly speaking, this is an error and should receive a "error: - connection closing" response. An "ok" response would be - acceptable, too. However, since the FIN has been sent and - acknowledged, nothing should be sent (or retransmitted). - - CLOSE-WAIT STATE - - Queue this request until all preceding SENDs have been - segmentized; then send a FIN segment, enter CLOSING state. - - CLOSING STATE - - Respond with "error: connection closing" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 58] - - -August 1979 - Transmission Control Protocol - Functional Specification -ABORT Call - - - - ABORT Call - - CLOSED STATE (i.e., TCB does not exist) - - If the user should no have access to such a connection, return - "error: connection illegal for this process". - - Otherwise return "error: connection does not exist". - - LISTEN STATE - - Any outstanding RECEIVEs should be returned with "error: - connection reset" responses. Delete TCB, return "ok". - - SYN-SENT STATE - - Delete the TCB and return "reset" responses to any queued SENDs, - or RECEIVEs. - - SYN-RECEIVED STATE - - Send a RST of the form: - - - - and return any unprocessed SENDs, or RECEIVEs with "reset" code, - delete the TCB. - - ESTABLISHED STATE - - Send a reset segment: - - - - All queued SENDs and RECEIVEs should be given "reset" responses; - all segments queued for transmission (except for the RST formed - above) or retransmission should be flushed, delete the TCB. - - - - - - - - - - - - - [Page 59] - - - August 1979 -Transmission Control Protocol -Functional Specification - ABORT Call - - - - FIN-WAIT-1 STATE - FIN-WAIT-2 STATE - - A reset segment (RST) should be formed and sent: - - - - Outstanding SENDs, RECEIVEs, CLOSEs, and/or segments queued for - retransmission, or segmentizing, should be flushed, with - "connection reset" notification to the user, delete the TCB. - - TIME-WAIT STATE - - Respond with "ok" and delete the TCB. - - CLOSE-WAIT STATE - - Flush any pending SENDs and RECEIVEs, returning "connection reset" - responses for them. Form and send a RST segment: - - - - Flush all segment queues and delete the TCB. - - CLOSING STATE - - Respond with "ok" and delete the TCB; flush any remaining segment - queues. If a CLOSE command is still pending, respond "error: - connection reset". - - - - - - - - - - - - - - - - - - - - -[Page 60] - - -August 1979 - Transmission Control Protocol - Functional Specification -STATUS Call - - - - STATUS Call - - CLOSED STATE (i.e., TCB does not exist) - - If the user should no have access to such a connection, return - "error: connection illegal for this process". - - Otherwise return "error: connection does not exist". - - LISTEN STATE - - Return "state = LISTEN", and the TCB pointer. - - SYN-SENT STATE - - Return "state = SYN-SENT", and the TCB pointer. - - SYN-RECEIVED STATE - - Return "state = SYN-RECEIVED", and the TCB pointer. - - ESTABLISHED STATE - - Return "state = ESTABLISHED", and the TCB pointer. - - FIN-WAIT-1 STATE - - Return "state = FIN-WAIT-1", and the TCB pointer. - - FIN-WAIT-2 STATE - - Return "state = FIN-WAIT-2", and the TCB pointer. - - TIME-WAIT STATE - - Return "state = TIME-WAIT and the TCB pointer. - - CLOSE-WAIT STATE - - Return "state = CLOSE-WAIT", and the TCB pointer. - - CLOSING STATE - - Return "state = CLOSING", and the TCB pointer. - - - - - - [Page 61] - - - August 1979 -Transmission Control Protocol -Functional Specification - SEGMENT ARRIVES - - - - SEGMENT ARRIVES - - If the state is CLOSED (i.e., TCB does not exist) then - - all data in the incoming segment is discarded. An incoming - segment containing a RST is discarded. An incoming segment not - containing a RST causes a RST to be sent in response. The - acknowledgment and sequence field values are selected to make the - reset sequence acceptable to the TCP that sent the offending - segment. - - If the ACK bit is off, sequence number zero is used, - - - - If the ACK bit is on, - - - - Return. - - If the state is LISTEN then - - first check for an ACK - - Any acknowledgment is bad if it arrives on a connection still in - the LISTEN state. An acceptable reset segment should be formed - for any arriving ACK-bearing segment, except another RST. The - RST should be formatted as follows: - - - - Return. - - An incoming RST should be ignored. Return. - - if there was no ACK then check for a SYN - - If the SYN bit is set, RCV.NXT and RCV.LBB are set to SEG.SEQ+1, - IRS is set to SEG.SEQ and any other control or text should be - queued for processing later. ISS should be selected and a SYN - segment sent of the form: - - - - SND.NXT and SND.LBB are set to ISS+1 and SND.UNA to ISS. The - connection state should be changed to SYN-RECEIVED. Note that - - -[Page 62] - - -August 1979 - Transmission Control Protocol - Functional Specification -SEGMENT ARRIVES - - - - any other incoming control or data (combined with SYN) will be - processed in the SYN-RECEIVED state, but processing of SYN and - ACK should not be repeated. - - This segment may also include data and control bits (e.g., URG, - EOL) which were queued for transmission. - - if there was no SYN but there was other text or control - - Any other control or text-bearing segment (not containing SYN) - should have an ACK and thus would be discarded by the ACK - processing. An incoming RST segment could not be valid, since - it could not have been sent in response to anything sent by this - incarnation of the connection. So you are unlikely to get here, - but if you do, drop the segment, and return. - - If the state is SYN-SENT then - - first check for an ACK - - If SND.UNA < SEG.ACK =< SND.NXT then the ACK is acceptable. - SND.UNA should be advanced to equal SEG.ACK, and any segments on - the retransmission queue which are thereby acknowledged should - be removed. - - If the segment acknowledgment is not acceptable (a segment - without an ACK is acceptable) and the RST bit is off, send an - acceptable RST segment of the form: - - - - and discard the segment. Return. - - if the ACK is ok (or there is no ACK), check the RST bit - - If the RST bit is set then signal the user "error: connection - reset", enter CLOSED state, drop the segment, delete TCB, and - return. - - if the ACK is ok (or there is no ACK) and it was not a RST, check - the SYN bit - - If the SYN bit is on then, RCV.NXT and RCV.LBB are set to - SEG.SEQ+1, IRS is set to SEG.SEQ. If SND.UNA > ISS (our SYN has - been ACKed), change the connection state to ESTABLISHED, - otherwise enter SYN-RECEIVED. In any case, form an ACK segment: - - - - [Page 63] - - - August 1979 -Transmission Control Protocol -Functional Specification - SEGMENT ARRIVES - - - - - - and send it. Data or controls which were queued for - transmission may be included. - - If there are other controls or text in the segment then continue - processing at the fifth step below where the URG bit is checked, - otherwise return. - - Otherwise, - - first check sequence number - - SYN-RECEIVED STATE - ESTABLISHED STATE - FIN-WAIT-1 STATE - FIN-WAIT-2 STATE - TIME-WAIT STATE - CLOSE-WAIT STATE - CLOSING STATE - - Segments are processed in sequence. Initial tests on arrival - are used to discard old duplicates, but further processing is - done in SEG.SEQ order. If a segment's contents straddle the - boundary between old and new, only the new parts should be - processed. - - There are four cases for the acceptability test for an incoming - segment: - - Segment Receive Test - Length Window - ------- ------- ------------------------------------------- - - 0 0 SEG.SEQ = RCV.NXT - - 0 >0 RCV.NXT =< SEG.SEQ < RCV.NXT+RCV.WND - - >0 0 not acceptable - - >0 >0 RCV.NXT < SEG.SEQ+SEG.LEN =< RCV.NXT+RCV.WND - - Note that the test above guarantees that the last sequence - number used by the segment lies in the receive-window. If the - RCV.WND is zero, no segments will be acceptable, but special - allowance should be made to accept valid ACKs. - - - -[Page 64] - - -August 1979 - Transmission Control Protocol - Functional Specification -SEGMENT ARRIVES - - - - If an incoming segment is not acceptable, an acknowledgment - should be sent in reply: - - - - If the incoming segment is unacceptable, drop it and return. - - second check the ACK field, - - SYN-RECEIVED STATE - - If the RST bit is off and SND.UNA < SEG.ACK =< SND.NXT then set - SND.UNA <- SEG.ACK, remove any acknowledged segments from the - retransmission queue, and enter ESTABLISHED state. - - If the segment acknowledgment is not acceptable, form a reset - segment, - - - - and send it, unless the incoming segment is an RST (or there is - no ACK), in which case, it should be discarded, then return. - - ESTABLISHED STATE - - If SND.UNA < SEG.ACK =< SND.NXT then, set SND.UNA <- SEG.ACK. - Any segments on the retransmission queue which are thereby - entirely acknowledged are removed. Users should receive - positive acknowledgments for buffers which have been SENT and - fully acknowledged (i.e., SEND buffer should be returned with - "ok" response). If the ACK is a duplicate, it can be ignored. - - If the segment passes the sequence number and acknowledgment - number tests, the send window should be updated. If - SND.WL =< SEG.SEQ, set SND.WND <- SEG.WND and set - SND.WL <- SEG.SEQ. - - If the remote buffer size is not one, then the - end-of-letter/buffer-size adjustment to sequence numbers may - have an effect on the next expected sequence number to be - acknowledged. It is possible that the remote TCP will - acknowledge with a SEG.ACK equal to a sequence number of an - octet that was skipped over at the end of a letter. This a mild - error on the remote TCPs part, but not cause for alarm. - - - - - - [Page 65] - - - August 1979 -Transmission Control Protocol -Functional Specification - SEGMENT ARRIVES - - - - FIN-WAIT-1 STATE - FIN-WAIT-2 STATE - - In addition to the processing for the ESTABLISHED state, if the - retransmission queue is empty, the user's CLOSE can be - acknowledged ("ok") but do not delete the TCB. - - TIME-WAIT STATE - - The only thing that can arrive in this state is a retransmission - of the remote FIN. Acknowledge it, and restart the 2 MSL - timeout. - - CLOSE-WAIT STATE - CLOSING STATE - - Do the same processing as for the ESTABLISHED state. - - third, check the RST bit, - - SYN-RECEIVED STATE - - If the RST bit is set then, if the segment has passed sequence - and acknowledgment tests, it is valid. If this connection was - initiated with a passive OPEN (i.e., came from the LISTEN - state), then return this connection to LISTEN state. The user - need not be informed. If this connection was initiated with an - active OPEN (i.e., came from SYN-SENT state) then the connection - was refused, signal the user "connection refused". In either - case, all segments on the retransmission queue should be - removed. - - ESTABLISHED - FIN-WAIT-1 - FIN-WAIT-2 - CLOSE-WAIT - CLOSING STATE - - If the RST bit is set then, any outstanding RECEIVEs and SEND - should receive "reset" responses. All segment queues should be - flushed. Users should also receive an unsolicited general - "connection reset" signal. Enter the CLOSED state, delete the - TCB, and return. - - TIME-WAIT - - Enter the CLOSED state, delete the TCB, and return. - - -[Page 66] - - -August 1979 - Transmission Control Protocol - Functional Specification -SEGMENT ARRIVES - - - - fourth, check the SYN bit, - - SYN-RECEIVED - ESTABLISHED STATE - - If the SYN bit is set, check the segment sequence number against - the receive window. The segment sequence number must be in the - receive window; if not, ignore the segment. If the SYN is on - and SEG.SEQ = RCV.NXT-1, then everything is ok and no action is - needed; but if they are not equal, there is an error and a reset - must be sent. - - If a reset must be sent it is formed as follows: - - - - The connection must be aborted as if a RST had been received. - - FIN-WAIT STATE-1 - FIN-WAIT STATE-2 - TIME-WAIT STATE - CLOSE-WAIT STATE - CLOSING STATE - - This case should not occur, since a duplicate of the SYN which - started the current connection incarnation will have been - filtered in the SEG.SEQ processing. Other SYN's will have been - rejected by this test as well (see SYN processing for - ESTABLISHED state). - - fifth, check the URG bit, - - ESTABLISHED STATE - FIN-WAIT-1 STATE - FIN-WAIT-2 STATE - - If the URG bit is set, RCV.UP <- max(RCV.UP,SEG.UP), and signal - the user that the remote side has urgent data if the urgent - pointer (RCV.UP) is in advance of the data consumed. If the - user has already been signaled (or is still in the "urgent - mode") for this continuous sequence of urgent data, do not - signal the user again. - - - - - - - - [Page 67] - - - August 1979 -Transmission Control Protocol -Functional Specification - SEGMENT ARRIVES - - - - TIME-WAIT STATE - CLOSE-WAIT STATE - CLOSING - - This should not occur, since a FIN has been received from the - remote side. Ignore the URG. - - sixth, process the segment text, - - ESTABLISHED STATE - - Once in the ESTABLISHED state, it is possible to deliver segment - text to user RECEIVE buffers. Text from segments can be moved - into buffers until either the buffer is full or the segment is - empty. If the segment empties and carries an EOL flag, then the - user is informed, when the buffer is returned, that an EOL has - been received. - - If buffer size is not one octet, then do the following - end-of-letter/buffer-size adjustment processing: - - if EOL = 0 then - - RCV.NXT <- SEG.SEQ + SEG.LEN - - if EOL = 1 then - - While RCV.LBB < SEG.SEQ+SEG.LEN - Do RCV.LBB <- RCV.LBB + RCV.BS End - RCV.NXT <- RCV.LBB - - When the TCP takes responsibility for delivering the data to the - user it must also acknowledge the receipt of the data. Send an - acknowledgment of the form: - - - - This acknowledgment should be piggybacked on a segment being - transmitted if possible without incurring undue delay. - - - - - - - - - - -[Page 68] - - -August 1979 - Transmission Control Protocol - Functional Specification -SEGMENT ARRIVES - - - - FIN-WAIT-1 STATE - FIN-WAIT-2 STATE - - If there are outstanding RECEIVEs, they should be satisfied, if - possible, with the text of this segment; remaining text should - be queued for further processing. If a RECEIVE is satisfied, - the user should be notified, with "end-of-letter" (EOL) signal, - if appropriate. - - TIME-WAIT STATE - CLOSE-WAIT STATE - - This should not occur, since a FIN has been received from the - remote side. Ignore the segment text. - - seventh, check the FIN bit, - - Send an acknowledgment for the FIN. Signal the user "connection - closing", and return any pending RECEIVEs with same message. Note - that FIN implies EOL for any segment text not yet delivered to the - user. If the current state is ESTABLISHED, enter the CLOSE-WAIT - state. If the current state is FIN-WAIT-1, enter the CLOSING - state. If the current state is FIN-WAIT-2, enter the TIME-WAIT - state. - - and return. - - - - - - - - - - - - - - - - - - - - - - - - [Page 69] - - - August 1979 -Transmission Control Protocol -Functional Specification - USER TIMEOUT - - - - USER TIMEOUT - - For any state if the user timeout expires, flush all queues, signal - the user "error: connection aborted due to user timeout" in general - and for any outstanding calls, delete the TCB, and return. - - RETRANSMISSION TIMEOUT - - For any state if the retransmission timeout expires on a segment in - the retransmission queue, send the segment at the front of the - retransmission queue again, reinitialize the retransmission timer, - and return. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 70] - - -August 1979 - Transmission Control Protocol - - - - GLOSSARY - - - -1822 - BBN Report 1822, "The Specification of the Interconnection of - a Host and an IMP". The specification of interface between a - host and the ARPANET. - -ACK - A control bit (acknowledge) occupying no sequence space, which - indicates that the acknowledgment field of this segment - specifies the next sequence number the sender of this segment - is expecting to receive, hence acknowledging receipt of all - previous sequence numbers. - -ARPANET message - The unit of transmission between a host and an IMP in the - ARPANET. The maximum size is about 1012 octets (8096 bits). - -ARPANET packet - A unit of transmission used internally in the ARPANET between - IMPs. The maximum size is about 126 octets (1008 bits). - -buffer size - An option (buffer size) used to state the receive data buffer - size of the sender of this option. May only be sent in a - segment that also carries a SYN. - -connection - A logical communication path identified by a pair of sockets. - -datagram - A message sent in a packet switched computer communications - network. - -Destination Address - The destination address, usually the network and host - identifiers. - -EOL - A control bit (End of Letter) occupying no sequence space, - indicating that this segment ends a logical letter with the - last data octet in the segment. If this end of letter causes - a less than full buffer to be released to the user and the - connection buffer size is not one octet then the - end-of-letter/buffer-size adjustment to the receive sequence - number must be made. - - - - [Page 71] - - - August 1979 -Transmission Control Protocol -Glossary - - - -FIN - A control bit (finis) occupying one sequence number, which - indicates that the sender will send no more data or control - occupying sequence space. - -fragment - A portion of a logical unit of data, in particular an internet - fragment is a portion of an internet datagram. - -FTP - A file transfer protocol. - -header - Control information at the beginning of a message, segment, - fragment, packet or block of data. - -host - A computer. In particular a source or destination of messages - from the point of view of the communication network. - -Identification - An Internet Protocol field. This identifying value assigned - by the sender aids in assembling the fragments of a datagram. - -IMP - The Interface Message Processor, the packet switch of the - ARPANET. - -internet address - A source or destination address specific to the host level. - -internet datagram - The unit of data exchanged between an internet module and the - higher level protocol together with the internet header. - -internet fragment - A portion of the data of an internet datagram with an internet - header. - -IRS - The Initial Receive Sequence number. The first sequence - number used by the sender on a connection. - -ISN - The Initial Sequence Number. The first sequence number used - on a connection, (either ISS or IRS). Selected on a clock - based procedure. - - - -[Page 72] - - -August 1979 - Transmission Control Protocol - Glossary - - - -ISS - The Initial Send Sequence number. The first sequence number - used by the sender on a connection. - -leader - Control information at the beginning of a message or block of - data. In particular, in the ARPANET, the control information - on an ARPANET message at the host-IMP interface. - -left sequence - This is the next sequence number to be acknowledged by the - data receiving TCP (or the lowest currently unacknowledged - sequence number) and is sometimes referred to as the left edge - of the send window. - -letter - A logical unit of data, in particular the logical unit of data - transmitted between processes via TCP. - -local packet - The unit of transmission within a local network. - -module - An implementation, usually in software, of a protocol or other - procedure. - -MSL - Maximum Segment Lifetime, the time a TCP segment can exist in - the internetwork system. - -octet - An eight bit byte. - -Options - An Option field may contain several options, and each option - may be several octets in length. The options are used - primarily in testing situations; for example, to carry - timestamps. Both the Internet Protocol and TCP provide for - options fields. - -packet - A package of data with a header which may or may not be - logically complete. More often a physical packaging than a - logical packaging of data. - - - - - - - [Page 73] - - - August 1979 -Transmission Control Protocol -Glossary - - - -port - The portion of a socket that specifies which logical input or - output channel of a process is associated with the data. - -process - A program in execution. A source or destination of data from - the point of view of the TCP or other host-to-host protocol. - -PSN - A Packet Switched Network. For example, the ARPANET. - -RCV.BS - receive buffer size, the remote buffer size - -RCV.LBB - receive last buffer beginning - -RCV.NXT - receive next sequence number - -RCV.UP - receive urgent pointer - -RCV.WND - receive window - -receive last buffer beginning - This is the sequence number of the first octet of the most - recent buffer. This value is use in calculating the next - sequence number when a segment contains an end of letter - indication. - -receive next sequence number - This is the next sequence number the local TCP is expecting to - receive. - -receive window - This represents the sequence numbers the local (receiving) TCP - is willing to receive. Thus, the local TCP considers that - segments overlapping the range RCV.NXT to - RCV.NXT + RCV.WND - 1 carry acceptable data or control. - Segments containing sequence numbers entirely outside of this - range are considered duplicates and discarded. - - - - - - - -[Page 74] - - -August 1979 - Transmission Control Protocol - Glossary - - - -RST - A control bit (reset), occupying no sequence space, indicating - that the receiver should delete the connection without further - interaction. The receiver can determine, based on the - sequence number and acknowledgment fields of the incoming - segment, whether it should honor the reset command or ignore - it. In no case does receipt of a segment containing RST give - rise to a RST in response. - -RTP - Real Time Protocol: A host-to-host protocol for communication - of time critical information. - -Rubber EOL - An end of letter (EOL) requiring a sequence number adjustment - to align the beginning of the next letter on a buffer - boundary. - -SEG.ACK - segment acknowledgment - -SEG.LEN - segment length - -SEG.SEQ - segment sequence - -SEG.UP - segment urgent pointer field - -SEG.WND - segment window field - -segment - A logical unit of data, in particular a TCP segment is the - unit of data transfered between a pair of TCP modules. - -segment acknowledgment - The sequence number in the acknowledgment field of the - arriving segment. - -segment length - The amount of sequence number space occupied by a segment, - including any controls which occupy sequence space. - -segment sequence - The number in the sequence field of the arriving segment. - - - - [Page 75] - - - August 1979 -Transmission Control Protocol -Glossary - - - -send last buffer beginning - This is the sequence number of the first octet of the most - recent buffer. This value is use in calculating the next - sequence number when a segment contains an end of letter - indication. - -send sequence - This is the next sequence number the local (sending) TCP will - use on the connection. It is initially selected from an - initial sequence number curve (ISN) and is incremented for - each octet of data or sequenced control transmitted. - -send window - This represents the sequence numbers which the remote - (receiving) TCP is willing to receive. It is the value of the - window field specified in segments from the remote (data - receiving) TCP. The range of sequence numbers which may be - emitted by a TCP lies between SND.NXT and - SND.UNA + SND.WND - 1. - -SND.BS - send buffer size, the local buffer size - -SND.LBB - send last buffer beginning - -SND.NXT - send sequence - -SND.UNA - left sequence - -SND.UP - send urgent pointer - -SND.WL - send sequence number at last window update - -SND.WND - send window - -socket - An address which specifically includes a port identifier, that - is, the concatenation of an Internet Address with a TCP port. - - - - - - -[Page 76] - - -August 1979 - Transmission Control Protocol - Glossary - - - -Source Address - The source address, usually the network and host identifiers. - -SYN - A control bit in the incoming segment, occupying one sequence - number, used at the initiation of a connection, to indicate - where the sequence numbering will start. - -TCP - Transmission Control Protocol: A host-to-host protocol for - reliable communication in internetwork environments. - -TOS - Type of Service, an Internet Protocol field. - -Type of Service - An Internet Protocol field which indicates the type of service - for this internet fragment. - -URG - A control bit (urgent), occupying no sequence space, used to - indicate that the receiving user should be notified to do - urgent processing as long as there is data to be consumed with - sequence numbers less than the value indicated in the urgent - pointer. - -urgent pointer - A control field meaningful only when the URG bit is on. This - field communicates the value of the urgent pointer which - indicates the data octet associated with the sending user's - urgent call. - - - - - - - - - - - - - - - - - - - - [Page 77] - - - August 1979 -Transmission Control Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 78] - - -August 1979 - Transmission Control Protocol - - - - REFERENCES - - - -[1] Postel, J. (ed.), "Internet Protocol," Defense Advanced Research - Projects Agency, Information Processing Techniques Office, IEN 111, - August 1979. - -[2] Feinler, E. and J. Postel, ARPANET Protocol Handbook, Network - Information Center, Stanford Research Institute, Menlo Park, CA, - January 1978. - -[3] Dalal, Y. and C. Sunshine, "Connection Management in Transport - Protocols," Computer Networks, Vol. 2, No. 6, pp. 454-473, - December 1978. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Page 79] - diff --git a/text/ien/ien113.txt b/text/ien/ien113.txt deleted file mode 100644 index fd3fd2e0..00000000 --- a/text/ien/ien113.txt +++ /dev/null @@ -1,4342 +0,0 @@ - - -IEN: 113 -RFC: 759 - - - - - - - INTERNET MESSAGE PROTOCOL - - - - Jonathan B. Postel - - - - - - - - - - - - - - - - - - August 1980 - - - - - Information Sciences Institute - University of Southern California - 4676 Admiralty Way - Marina del Rey, California 90291 - - (213) 822-1511 - - - - - - - -August 1980 - Internet Message Protocol - - - - TABLE OF CONTENTS - - PREFACE ........................................................ iii - -1. INTRODUCTION ..................................................... 1 - - 1.1. Motivation ................................................... 1 - 1.2. Scope ........................................................ 1 - 1.3. The Internetwork Environment ................................. 2 - 1.4. Model of Operation ........................................... 2 - 1.5. Interfaces ................................................... 4 - -2. FUNCTIONAL DESCRIPTION ........................................... 5 - - 2.1. Terminology .................................................. 5 - 2.2. Assumptions ................................................. 5 - 2.3. General Specification ........................................ 6 - 2.4. Mechanisms ................................................... 7 - 2.5. Relation to Other Protocols ................................. 10 - -3. DETAILED SPECIFICATION .......................................... 13 - - 3.1. Overview of Message Structure ............................... 13 - 3.2. Message Structure ........................................... 14 - 3.3. Identification .............................................. 15 - 3.4. Command ..................................................... 15 - 3.5. Document .................................................... 19 - 3.6. Message Objects ............................................. 20 - 3.7. Data Elements ............................................... 27 - -4. OTHER ISSUES .................................................... 35 - - 4.1. Accounting and Billing ...................................... 35 - 4.2. Addressing and Routing ...................................... 36 - 4.3. Encryption .................................................. 37 - -5. The MPM: A Possible Architecture ............................... 39 - - 5.1. Interfaces .................................................. 39 - 5.2. MPM Organization ............................................ 40 - -6. EXAMPLES & SCENARIOS ............................................ 45 - - Example 1: Message Format ........................................ 45 - Example 2: Delivery and Acknowledgment ........................... 47 - - - - - -Postel [Page i] - - - August 1980 -Internet Message Protocol -Table Of Contents - - - -7. SPECIFICATION SUMMARY ........................................... 55 - - 7.1. Message Fields .............................................. 55 - 7.2. Deliver Message ............................................. 58 - 7.3. Acknowledge Message ......................................... 59 - 7.4. Probe Message ............................................... 61 - 7.5. Response Message ............................................ 62 - 7.6. Cancel Message .............................................. 64 - 7.7. Canceled Message ............................................ 66 - 7.8. Data Element Summary ........................................ 68 - -REFERENCES .......................................................... 69 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page ii] Postel - - -August 1980 - Internet Message Protocol - - - - PREFACE - - - -This is the second edition of this specification and should be treated -as a request for comments, advice, and suggestions. A great deal of -prior work has been done on computer aided message systems and some of -this is listed in the reference section. This specification was shaped -by many discussions with members of the ARPA research community, and -others interested in the development of computer aided message systems. -This document was prepared as part of the ARPA sponsored Internetwork -Concepts Research Project at ISI, with the assistance of Greg Finn, -Suzanne Sluizer, Alan Katz, Paul Mockapetris, and Linda Sato. - - Jon Postel - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page iii] - - - - -IEN: 113 J. Postel -RFC: 759 USC-ISI - August 1980 - - - - - INTERNET MESSAGE PROTOCOL - - - - 1. INTRODUCTION - -This document describes an internetwork message system. The system is -designed to transmit messages between message processing modules -according to formats and procedures specified in this document. The -message processing modules are processes in host computers. Message -processing modules are located in different networks and together -constitute an internetwork message delivery system. - -This document is intended to provide all the information necessary to -implement a compatible cooperating module of this internetwork message -delivery system. - -1.1. Motivation - - As computer supported message processing activities grow on individual - host computers and in networks of computers, there is a natural desire - to provide for the interconnection and interworking of such systems. - This specification describes the formats and procedures of a general - purpose internetwork message system, which can be used as a standard - for the interconnection of individual message systems, or as a message - delivery system in its own right. - - This system also provides for the communication of data items beyond - the scope of contemporary message systems. Messages can include data - objects which could represent drawings, or facsimile images, or - digitized speech. One can imagine message stations equipped with - speakers and microphones (or telephone hand sets) where the body of a - message or a portion of it is recorded digitized speech. The output - terminal could include a graphics display, and the message might - present a drawing on the display, and verbally (via the speaker) - describe certain features of the drawing. This specification provides - for the composition of complex data objects and their encoding in - machine independent basic data elements. - -1.2. Scope - - The Internet Message Protocol is intended to be used for the - transmission of messages between networks. It may also be used for - the local message system of a network or host. This specification was - - - -Postel [Page 1] - - - August 1980 -Internet Message Protocol -Introduction - - - - developed in the context of the ARPA work on the interconnection of - networks, but it is thought that it has a more general scope. - - The focus here is on the internal mechanisms to transmit messages, - rather than the external interface to users. It is assumed that a - number of user interface programs will exist. These will be both new - programs designed to work with this system and old programs designed - to work with earlier systems. - -1.3. The Internetwork Environment - - The internetwork message environment consists of processes which run - in hosts which are connected to networks which are interconnected by - gateways. Each network consists of many different hosts. The - networks are tied together through gateways. The gateways are - essentially hosts on two (or more) networks and are not assumed to - have much storage capacity or to "know" which hosts are on the - networks to which they are attached [1,2]. - -1.4. Model of Operation - - This protocol is implemented in a process called a Message Processing - Module or MPM. The MPMs exchange messages by establishing full duplex - communication and sending the messages in a fixed format described in - this document. The MPM may also communicate other information by - means of commands described here. - - A message is formed by a user interacting with a User Interface - Program or UIP. The user may utilize several commands to create - various fields of the message and may invoke an editor program to - correct or format some or all of the message. Once the user is - satisfied with the message it is submitted for transmission by placing - it in a data structure read by the MPM. - - The MPM discovers the unprocessed input data (either by a specific - request or by a general background search), examines it, and, using - routing tables (or some other method), determines which outgoing link - to use. The destination may be another user on the same host, one on - another host on a network in common with the same host, or a user in - another network. - - In the first case, another user on this host, the MPM places the - message in a data structure read by the destination user, where that - user's UIP will look for incoming messages. - - In the second case, the user on another host in this network, the MPM - transmits the message to the MPM on that host. That MPM then repeats - - -[Page 2] Postel - - -August 1980 - Internet Message Protocol - Introduction - - - - the routing decision, and discovering the destination is local to it, - places the message in the data structure shared with the destination - user. - - In the third case, the user on a host in another network, the MPM - transmits the messages to an MPM in that network if it knows how to - establish a connection directly to it; otherwise, the MPM transmits - the message to an MPM that is "closer" to the destination. An MPM - might not know of direct connections to MPMs in all other networks, - but it must be able to select a next MPM to handle the message for - each possible destination network. - - An MPM might know a way to establish direct connections to each of a - few MPMs in other nearby networks, and send all other messages to a - particular big brother MPM that has a wider knowledge of the internet - environment. - - An individual network's message system may be quite different from the - internet message system. In this case, intranet messages will be - delivered using the network's own message system. If a message is - addressed outside the network, it is given to an MPM which then sends - it through the appropriate gateways to (or towards) the MPM in the - destination network. Eventually, the message gets to an MPM on the - network of the recipient of the message. The message is then sent via - the local message system to that host. - - When local message protocols are used, special conversion programs are - required to transform local messages to internet format when they are - going out, and to transform internet messages to local format when - they come into the local environment. Such transformations - potentially lead to information loss. The internet message format - attempts to provide features to capture all the information any local - message system might use. However, a particular local message system - is unlikely to have features equivalent to all the possible features - of the internet message system. Thus, in some cases the - transformation of an internet message to a local message discards some - of the information. For example, if an internet message carrying - mixed text and speech data in the body is to be delivered in a local - system which only carries text, the speech data may be replaced by the - text string "There was some speech here". Such discarding of - information is to be avoided when at all possible, and to be deferred - as long as possible; still, the possibility remains that in some cases - it is the only reasonable thing to do. - - - - - - -Postel [Page 3] - - - August 1980 -Internet Message Protocol -Introduction - - - -1.5. Interfaces - - The MPM calls on a reliable communication procedure to communicate - with other MPMs. This is a Transport Level protocol such as the - Transmission Control Protocol (TCP) [3]. The interface to such a - procedure conventionally provides calls to open and close connections, - send and receive data on a connection, and some means to signal and be - notified of special conditions (i.e., interrupts). - - The MPM receives input and produces output through data structures - that are produced and consumed respectively by user interface (or - other) programs. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 4] Postel - - -August 1980 - Internet Message Protocol - - - - 2. FUNCTIONAL DESCRIPTION - -This section gives an overview of the Internet Message System and its -environment. - -2.1. Terminology - - The messages are routed by a process called the Message Processing - Module or MPM. Messages are created and consumed by User Interface - Programs (UIPs) in conjunction with users. - - The basic unit transferred between MPMs is called a message. A - message is made up of a transaction identifier (which uniquely - identifies the message), a command (which contains the necessary - information for delivery), and document. The document may have a - header and a body. - - For a personal letter the document body corresponds to the contents of - the letter; the document header corresponds to the date line, - greeting, and signature. - - For an inter-office memo the document body corresponds to the text; - the document header corresponds to the header of the memo. - - The commands correspond to the information used by the Post Office or - the mail room to route the letter or memo. Some of the information in - the command is supplied by the UIP. - -2.2. Assumptions - - The following assumptions are made about the internetwork environment: - - In general, it is not known what format intranet addresses will - assume. Since no standard addressing scheme would suit all networks, - it is safe to assume there will be several and that they will change - with time. Thus, frequent software modification throughout all - internet MPMs would be required if such MPMs were to know about the - formats on many networks. Therefore, each MPM which handles internet - messages is required to know only the minimum necessary to deliver - them. - - Each MPM is required to know completely only the addressing format of - its own network(s). In addition, the MPM must be able to select an - output link for each message addressed to another network or host. - This does not preclude more intelligent behavior on the part of a - given MPM, but at least this minimum is necessary. Each network has a - unique name and numeric address. Such names and addresses are - - - -Postel [Page 5] - - - August 1980 -Internet Message Protocol -Functional Description - - - - registered with a naming authority and may be listed in documents such - as Assigned Numbers [4]. - - Each MPM will have a unique internet address. This feature will - enable every MPM to place a unique "handling-stamp" on a message which - passes through the MPM enroute to delivery. - -2.3. General Specification - - There are several aspects to a distributed service to be specified. - First, there is the service to be provided; that is, the - characteristics of the service as seen by its users. Second, there is - the service it uses; that is, the characteristics it assumes to be - provided by some lower level service. And third, there is the - protocol used between the modules of the distributed service. - - User User - \ / - UIP UIP - \ / - --+----------------------------------------+-- Service - | \ / | Interface - | +--------+ +--------+ | - | | Module | <--Protocol--> | Module | | - | +--------+ +--------+ | - | \ / | - | +-----------------------+ | - | | Communication Service | | - | +-----------------------+ | - | | - +----------------------------------------+ - - Message Service - - Figure 1. - - The User/Message Service Interface - - The service the message delivery system provides is to accept - messages conforming to a specified format, to attempt to deliver - those messages, and to report on the success or failure of the - delivery attempt. This service is provided in the context of an - interconnected system of networks and may involve relaying a message - through several intermediate MPMs via different communication - services. - - - - -[Page 6] Postel - - -August 1980 - Internet Message Protocol - Functional Description - - - - The Message/Communication Service Interface - - The message delivery system calls on a communication service to - transfer information from one MPM to another. There may be - different communication services used between different pairs of - MPMs, though all communication services must meet the service - characteristics described below. - - It is assumed that the communication service provides a reliable - two-way data stream. Such a data stream can usually be obtained in - computer networks from the transport level protocol, for example, - the Transmission Control Protocol (TCP) [3]. In any case, the - properties the communication service must provide are: - - o Logical connections for two way simultaneous data flow of - arbitrary data (i.e., no forbidden codes). All data sent is - delivered in order. - - o Simple commands to open and close the connections, and to send - and receive data on the connections. - - o Controlled flow of data so that data is not transmitted faster - that the receiver chooses to consume it (on the average). - - o Transmission errors are corrected without user notification or - involvement of the sender or receiver. Complete breakdown on - communication is reported to the sender or receiver. - - The Message-Message Protocol - - The protocol used between the distributed modules of the message - delivery system, that is, the MPMs, is a small set of commands which - convey requests and replies. These commands are encoded in a highly - structured and rigidly specified format. - -2.4. Mechanisms - - MPMs are processes which use some communication service. A pair of - MPMs which can communicate reside in a common interprocess - communication environment. An MPM might exist in two (or more) - interprocess communication environments, and such an MPM might act to - relay messages between MPMs. Messages may be held for a time in an - MPM; the total path required for delivery need not be available - simultaneously. - - From the time a message is accepted from a UIP by an MPM until it is - delivered to a UIP by an MPM and an acknowledgment is returned to the - - -Postel [Page 7] - - - August 1980 -Internet Message Protocol -Functional Description - - - - originating UIP, the message is considered to be active in the message - system. - - User User - \ / - UIP UIP - \ / - +---------------------------------------------------------+ - | \ / | - | +-----+ +-----+ +-----+ | - | | MPM | <--Protocol--> | MPM | <--Protocol--> | MPM | | - | +-----+ +-----+ +-----+ | - | | / \ | | - | +-----------------------+ +-----------------------+ | - | |Communication Service A| |Communication Service B| | - | +-----------------------+ +-----------------------+ | - | | - +---------------------------------------------------------+ - - Message Service with Internal Relaying - - Figure 2. - - It should be clear that there are two roles an MPM can play, an - end-point MPM or a relay MPM. Most MPMs will play both roles. A - relay MPM acts to relay messages from one communication environment to - another. An end-point MPM acts as a source or destination of - messages. - - The transfer of data between UIPs and MPMs is viewed as the exchange - of data structures which encode messages. The transfer of data - between MPMs is also in terms of the transmission of structured data. - - - - - - - - - - - - - - - - - -[Page 8] Postel - - -August 1980 - Internet Message Protocol - Functional Description - - - - +-----+ DATA +-----+ - USER-->| UIP |-->STRUCTURES-->| MPM |-->other - +-----+ +-----+ +-----+ MPMs - | | - | +-----+ - +--| | - | +-----+ - +--| | - | | - +-----+ - - +-----+ DATA +-----+ - other-->| MPM |-->STRUCTURES-->| UIP |-->USER - MPMs +-----+ +-----+ +-----+ - | | - | +-----+ - +--| | - | +-----+ - +--| | - | | - +-----+ - - Message Flow - - Figure 3. - - In the following, a message will be described as a structured data - object represented in a particular kind of typed data elements. This - is how a message is presented when transmitted between MPMs or - exchanged between an MPM and a UIP. Internal to an MPM (or a UIP), a - message may be represented in any convenient form. - - - - - - - - - - - - - - - - - - -Postel [Page 9] - - - August 1980 -Internet Message Protocol -Functional Description - - - -2.5. Relation to Other Protocols - - This protocol the benefited from the earlier work on message protocols - in the ARPA Network [5,6,7,8,9], and the ideas of others about the - design of computer message systems - [10,11,12,13,14,15,16,17,18,19,20,21]. - - Figure 4 illustrates the place of the message protocol in the ARPA - internet protocol hierarchy: - - - +------+ +-----+ +-------+ +-----+ +-----+ - |Telnet| | FTP | |Message| |Voice| ... | | Application Level - +------+ +-----+ +-------+ +-----+ +-----+ - \ | / | | - +-----+ +-----+ +-----+ - | TCP | | RTP | ... | | Host Level - +-----+ +-----+ +-----+ - | | | - +-------------------------------+ - | Internet Protocol | Gateway Level - +-------------------------------+ - | - +---------------------------+ - | Local Network Protocol | Network Level - +---------------------------+ - | - - - - Protocol Relationships - - Figure 4. - - Note that "local network" means an individual or specific network. - For example, the ARPANET is a local network. - - The message protocol interfaces on one side to user interface programs - and on the other side to a reliable transport protocol such as TCP. - - In this internet message system the MPMs communicate directly using - the lower level transport protocol. In the old ARPANET system, - message transmission was part of the file transfer protocol. - - - - - - -[Page 10] Postel - - -August 1980 - Internet Message Protocol - Functional Description - - - - - +------+ +-----+ +-------+ - |Telnet| | FTP |---|Message| Application Level - +------+ +-----+ +-------+ - \ / - +-----+ +-----+ - |Voice|---| NCP | Host Level - +-----+ +-----+ - | - | - | Gateway Level - | - | - +----------------+ - | ARPA NET | Network Level - +----------------+ - - - - - Old ARPANET Protocols - - Figure 5. - - Note that in the old ARPANET protocols one can't send messages (or - communicate in any way) to other networks since it has no gateway - level or internet protocol [5]. - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 11] - - - August 1980 -Internet Message Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 12] Postel - - -August 1980 - Internet Message Protocol - - - - 3. DETAILED SPECIFICATION - -The presentation of the information in this section is difficult since -everything depends on everything, and since this is a linear medium it -has to come in some order. In this attempt, a brief overview of the -message structure is given, the detail of the message is presented in -terms of data objects, the various data objects are defined, and finally -the representation of the data elements is specified. Several aspects -of the message structure are based on the NSW Transaction Protocol [22], -and similar (but more general) proposals [23,24]. - -3.1. Overview of Message Structure - - A message is normally composed of three parts: the identification, - the command, and the document. Each part is in turn composed of data - objects. - - The identification part is composed of a transaction number assigned - by the originating MPM and the MPM identifier. - - The command part is composed of an operation type, an operation code, - the arguments to the operation, error information, the destination - mailbox, and a trace. The trace is a list of the MPMs that have - handled this message. - - The document part is a data structure. The message delivery system - does not depend on the contents of the document part. A standard for - the document part is defined in reference [25]. - - The following sections define the representation of a message as a - structured object composed of other objects. Objects in turn are - represented using a set of basic data elements. - - The basic data elements are defined in section 3.7. In summary, these - are exact forms for representing integers, strings, booleans, et - cetera. There are also two elements for building data structures: - list and property list. Lists are simple lists of elements, including - lists. Property lists are lists of pairs of elements, where the first - element of each pair names the pair. That is, a property list is a - list of pairs. In general, when an object is composed of - multiple instances of a simpler object it is represented as a list of - the simpler objects. When an object is composed of a variety of - simpler objects it is represented as a property list of the simpler - objects. In most uses of the property list representation, the - presence of pairs in addition to those specifically - required is permitted. - - - - -Postel [Page 13] - - - August 1980 -Internet Message Protocol -Specification - - - -3.2. Message Structure - - An internet message is composed of two or three parts. The first is - the Identification which identifies the transaction; the second is the - Command; and the optional third part is the Document. - - When shipped between two MPMs, a message will take the form of a - property list, with the pairs in this order. - - MESSAGE is: - - ( Identification, Command [, Document ] ) - - It is convenient to batch several messages together, shipping them - as a unit from one MPM to another. Such a group of messages is - called a message-bag. - - A message-bag will be a list of Messages; each Message is of the - form described above. - - MESSAGE-BAG is: - - ( Message, Message, ... ) - - The Identification - - This is the transaction identifier. It is assigned by the - originating MPM. The identification is composed of the MPM - identifier, and a transaction number unique in that context for this - message. - - The Command - - The command is composed of a mailbox, an operation code, the - arguments to that operation, some error information, and a trace of - the route of this message. The command is implemented by a property - list which contains pairs, where the names are used to - identify the associated argument values. - - The Document - - The document portion of an internet message is optional and when - present is a data structure as defined in [25]. - - - - - - -[Page 14] Postel - - -August 1980 - Internet Message Protocol - Specification - - - -3.3. Identification - - Each message must have a unique identifier while it exists in the - message delivery system. This is provided by the combination of the - unique identifier of the MPM and a unique transaction number chosen - for the message by this MPM. - - IDENTIFICATION is: - - ( mpm-identifier, transaction-number ) - - The mpm-identifier is based on the host address of the computer in - which the MPM resides. If there is more than one MPM in a host the - mpm-identifier must be extended to distinguish between the co-resident - MPMs. - -3.4. Command - - This section describes the commands MPMs use to communicate between - themselves. The commands come in pairs, with each request having a - corresponding reply. - - COMMAND is: - - ( mailbox, operation, [arguments,] - [error-class, error-string,] trace ) - - The mailbox is the "To" specification of the message. Mailbox is a - property list of general information, some of which is the essential - information for delivery, and some of which could be extra information - which may be helpful for delivery. Mailbox is different from address - in that address is a very specific property list without extra - information. The mailbox includes a specification of the user, when - a command is addressed to the MPM itself (rather than a user it - serves) the special user name "*MPM*" is specified. - - The operation is the name of the operation or procedure to be - performed. - - The arguments to the operation vary from operation to operation. - - The error information is composed of a error class code and a - character string, and indicates what, if any, error occurred. The - error information is normally present only in replies, and not present - in requests. - - - - -Postel [Page 15] - - - August 1980 -Internet Message Protocol -Specification - - - - The trace is a list of the MPMs that have handled the message. Each - MPM must add its handling-stamp to the list. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 16] Postel - - -August 1980 - Internet Message Protocol - Specification - - - - 3.4.1. Command: DELIVER - - function: Sends a document to a mailbox. - - reply: The reply is ACKNOWLEDGE. - - arguments: - - type-of-service: one or more of the following: - - "REGULAR" regular delivery - "FORWARD" message forwarding - "GENDEL" general delivery - "PRIORITY" priority delivery - - 3.4.2. Command: ACKNOWLEDGE - - function: Reply to DELIVER. - - arguments: - - reference: the identifier of the originating message. - - address: - - The address is the final mailbox the message was delivered to. - This would be different from the original mailbox if the message - was forwarded, and is limited to the essential information - needed for delivery. - - type-of-service: one of the following: - - "GENDEL" message was accepted for general delivery - "REGULAR" message was accepted for normal delivery - "PRIORITY" message was accepted for priority delivery - - error-class: - error-string: - - If the document was delivered successfully, the error - information has class 0 and string "ok". Otherwise, the error - information has a non-zero class and the string would be one of - "no such user", "no such host", "no such network", "address - ambiguous", or a similar response. - - trail: the trace from the DELIVER command. - - - -Postel [Page 17] - - - August 1980 -Internet Message Protocol -Specification - - - - 3.4.3. Command: PROBE - - function: Finds out if specified mailbox (specified in mailbox of - the command) exists at a host. - - reply: The reply is RESPONSE. - - arguments: none. - - 3.4.4. Command: RESPONSE - - function: Reply to PROBE. - - arguments: - - reference: the identification of the originating PROBE. - - address: a specific address. - - error-class: - error-string: - - If the mailbox was found the error class is 0 and the error - string is "OK". If the mailbox has moved and a forwarding - address in known the error class is 1 and the error string is - "Mailbox moved, see address". Otherwise the error class is - greater than 1 and the error string may be one of the following: - "Mailbox doesn't exist", "Mailbox full", "Mailbox has moved, try - the new location indicated in the address". - - trail: the trace which came from the originating PROBE. - - - - - - - - - - - - - - - - - - -[Page 18] Postel - - -August 1980 - Internet Message Protocol - Specification - - - - 3.4.5. Command: CANCEL - - function: Abort request for specified transaction. - - reply: The reply is CANCELED. - - arguments: - - reference: identification of transaction to be canceled. - - 3.4.6. Command: CANCELED - - function: Reply to CANCEL. - - arguments: - - reference: identification of canceled transaction. - - error-class: - error-string: - - If the command was canceled the error class is 0 and the error - string is "OK". Otherwise the error class is positive and the - error string may be one of the following: "No such transaction", - or any error for an unreachable mailbox. - - trail: the trace of the CANCEL command. - - To summarize again, a command generally consists of a property list of - the following objects: - - name value - ---- ----- - mailbox property list of address information - operation name of operation - arguments --- - error-class numeric class of the error - error-string text description of the error - trace list ( handling-stamp, ... ) - -3.5. Document - - The actual document follows the command. The message delivery system - does not depend on the document, examine it, or use it in any way. - The standard for the contents of the document is reference [25]. The - document must be the last pair in the message property - list. - - -Postel [Page 19] - - - August 1980 -Internet Message Protocol -Specification - - - -3.6. Message Objects - - In the composition of messages, we use a set of objects such as - mailbox or date. These objects are encoded in basic data elements. - Some objects are simple things like integers or character strings, - other objects are more complex things built up of lists or property - lists. - - The following is a list of the objects used in messages. The object - descriptions are in alphabetical order. - - Action - - The type of handling action taken by the MPM when processing a - message. One of ORIGIN, RELAY, FORWARD, or DESTINATION. - - Address - - Address is intended to contain the minimum information necessary to - deliver a message, and no more (compare with mailbox). - - An address is a property list. An address contains the following - pairs: - - name description - ---- ----------- - NET network name - HOST host name - USER user name - - or: - - name description - ---- ----------- - MPM mpm-identifier - USER user name - - Answer - - A yes (true) or no (false) answer to a question. - - Arguments - - Many operations require arguments, which differ from command to - command. This "object" is a place holder for the actual arguments - when commands are described in a general way. - - - -[Page 20] Postel - - -August 1980 - Internet Message Protocol - Specification - - - - City - - The character string name of a city. - - Command - - (mailbox, operation [ ,arguments ] - [ ,error-class, error-string ], trace) - - Country - - The character string name of a country. - - Date - - The date and time are represented according to the International - Standards Organization (ISO) recommendations [26,27,28]. Taken - together the ISO recommendations 2014, 3307, and 4031 result in the - following representation of the date and time: - - yyyy-mm-dd-hh:mm:ss,fff+hh:mm - - Where yyyy is the four-digit year, mm is the two-digit month, dd is - the two-digit day, hh is the two-digit hour in 24 hour time, mm is - the two-digit minute, ss is the two-digit second, and fff is the - decimal fraction of the second. To this basic date and time is - appended the offset from Greenwich as plus or minus hh hours and mm - minutes. - - The time is local time and the offset is the difference between - local time and Coordinated Universal Time (UTC). To convert from - local time to UTC algebraically subtract the offset from the local - time. - - For example, when the time in - Los Angeles is 14:25:00-08:00 - the UTC is 22:25:00 - - or when the time in - Paris is 11:43:00+01:00 - the UTC is 10:43:00 - - Document - - The document is the user's composition and is not used by the - message delivery system in any way. - - - -Postel [Page 21] - - - August 1980 -Internet Message Protocol -Specification - - - - Error-Class - - A numeric code for the class of the error. The error classes are - coded as follows: - - = 0: indicates success, no error. - This is the normal case. - = 1: failure, address changed. - This error is used when forwarding is possible, but not allowed - by the type of service specified. - = 2: failure, resources unavailable. - These errors are temporary and the command they respond to may - work if attempted at a later time. - = 3: failure, user error. - For example, unknown operation, or bad arguments. - = 4: failure, MPM error. Recoverable. - These errors are temporary and the command they respond to may - work if attempted at a later time. - = 5: failure, MPM error. Permanent. - These errors are permanent, there is no point in trying the same - command again. - = 6: Aborted as requested by user. - The response to a successfully canceled command. - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 22] Postel - - -August 1980 - Internet Message Protocol - Specification - - - - Error-String - - This is a character string describing the error. Possible errors: - - error-string error-class - - No errors 0 - Ok 0 - Mailbox Moved, see address 1 - Mailbox Full, try again later 2 - Syntax error, operation unrecognized 3 - Syntax error, in arguments 3 - No Such User 3 - No Such Host 3 - No Such Network 3 - No Such Transaction 3 - Mailbox Does Not Exist 3 - Ambiguous Address 3 - Server error, try again later 4 - No service available 5 - Command not implemented 5 - Aborted as requested by user 6 - - Handling-Stamp - - The handling-stamp indicates the MPM, the date (including the time) - that a message was processed by an MPM, and the type of handling - action taken. - - ( mpm-identifier, date, action ) - - Host - - The character string name of a host. - - Identification - - This is the transaction identifier associated with a particular - message. It is the transaction number, and the MPM identifier of - the originating MPM. - - ( mpm-identifier, transaction-number ) - - - - - - - -Postel [Page 23] - - - August 1980 -Internet Message Protocol -Specification - - - - Internet Address - - This identifies a host in the ARPA internetwork environment. When - used as a part of identification, it identifies the originating host - of a message. The internet address is a 32 bit number, the higher - order 8 bits identify the network, and the lower order 24 bits - identify the host on that network [2]. For use in the MPMs the - internet address is divided into eight bit fields and the value of - each field is represented in decimal digits. For example, the - ARPANET address of ISIE is 167837748 and is represented as - 10,1,0,52. Further, this representation may be extended to include - an address within a host, such as the TCP port of the MPM, for - example, 10,1,0,52,0,45. - - Mailbox - - This is the destination address of a user of the internetwork mail - system. Mailbox contains information such as network, host, - location, and local user indentifier of the recipient of the - message. Some information contained in mailbox may not be necessary - for delivery. - - As an example, when one sends a message to someone for the first - time, he may include many items which are not necessary simply to - insure delivery. However, once he gets a reply to this message, the - reply will contain an Address (as opposed to Mailbox) which may be - used from then on. - - A mailbox is a property list. A mailbox might contain the - following pairs: - - name description - ---- ----------- - MPM mpm-identifier - NET network name - HOST host name - PORT address of MPM within the host - USER user name - ORG organization name - CITY city - STATE state - COUNTRY country - ZIP zip code - PHONE phone number - - The minimum mail box is an Address. - - - -[Page 24] Postel - - -August 1980 - Internet Message Protocol - Specification - - - - MPM-Identifier - - The internetwork address of the MPM. This may be the ARPA Internet - Address or an X.121 Public Data Network Address [29]. The - mpm-identifier is a property list which has one pair. - This unusual structure is used so that it will be easy to determine - the type of address used. - - Network - - This character string name of a network. - - Operation - - This names the operation or procedure to be performed. It is a - character string name. - - Organization - - This character string name of a organization. - - Phone - - This character string name representation of a phone number. For - example the phone number of ISI is 1 (international region) + 213 - (area code) + 822 (central office) + 1511 (station number) = - 12138221511. - - Port - - This names the port or subaddress within a host of the MPM. The - default port for the MPM is 45 (55 octal) [4]. - - Reference - - The reference is an identification from an earlier message. - - State - - The character string name of a state. - - - - - - - - - -Postel [Page 25] - - - August 1980 -Internet Message Protocol -Specification - - - - Trace - - Each MPM that handles the message must add its handling-stamp to - this list. This will allow detection of messages being sent in a - loop within the internet mail system, and aid in fault isolation. - - Trail - - When a message is sent through the internetwork environment, it - acquires this trace, a list of MPMs that have handled the message. - This list is then carried as the trail in a reply or acknowledgment - of that message. Requests and replies always have a trace and each - MPM adds its handling-stamp to this trace. Replies, in addition, - have a trail which is the complete trace of the original message. - - Transaction Number - - This is a number which is uniquely associated with this transaction - by the originating MPM. It identifies the transaction. (A - transaction is a message and acknowledgment.) A transaction number - must be unique during the time which the message (a request or - reply) containing it could be active in the network. - - Type-of-Service - - A service parameter for the delivery of a message, for instance a - message could be delivered (REGULAR), forwarded (FORWARD), turned - over to general delivery (GENDEL) (i.e., allow a person to decide - how to further attempt to deliver the message), or require priority - handling (PRIORITY). - - User - - The character string name of a user. - - X121 Address - - This identifies a host in the Public Data Network environment. When - used as a part of identifier, it identifies the originating host of - a message. The X121 address is a sequence of up to 14 digits [29]. - For use in the MPMs the X121 address is represented in decimal - digits. - - - - - - - -[Page 26] Postel - - -August 1980 - Internet Message Protocol - Specification - - - - Zip Code - - The character string representation of a postal zip code. The zip - code of ISI is 90291. - -3.7. Data Elements - - The data elements defined here are similar to the data structure and - encoding used in NSW [30]. - - Each of the diagrams which follow represent a sequence of octets. - Field boundaries are denoted by the "|" character, octet boundaries by - the "+" character. Each element begins with a one-octet code. The - order of the information in each element is left-to-right. In fields - with numeric values the high-order (or most significant) bit is the - left-most bit. For transmission purposes, the leftmost octet is - transmitted first. Cohen has described some of the difficulties in - mapping memory order to transmission order [31]. - - - Code Type Representation - ---- ---- -------------- - - - +------+ - 0 No Operation | 0 | - +------+ - - - +------+------+------+------+------ - 1 Padding | 1 | octet count | Data ... - +------+------+------+------+------ - - - +------+------+ - 2 Boolean | 2 | 1/0 | - +------+------+ - - - +------+------+------+ - 3 Index | 3 | Data | - +------+------+------+ - - - +------+------+------+------+------+ - 4 Integer | 4 | Data | - +------+------+------+------+------+ - - -Postel [Page 27] - - - August 1980 -Internet Message Protocol -Specification - - - - - Extended +------+------+------+------+------ - 5 Precision | 5 | octet count | Data ... - Integer +------+------+------+------+------ - - - +------+------+------+------+------ - 6 Bit String | 6 | bit count | Data ... - +------+------+------+------+------ - - - +------+------+------ - 7 Name String | 7 | count| Data ... - +------+------+------ - - - +------+------+------+------+------ - 8 Text String | 8 | octet count | Data ... - +------+------+------+------+------ - - - +------+------+------+------+----- - 9 List | 9 | octet count | Data ... - +------+------+------+------+----- - - - +------+------+------+------+------ - 10 Proplist | 10 | octet count | Data ... - +------+------+------+------+------ - - - +------+ - 11 End of List | 11 | - +------+ - - Element code 0 (NOP) is an empty data element used for padding when it - is necessary. It is ignored. - - Element code 1 (PAD) is used to transmit large amounts of data with a - message for test or padding purposes. The type-octet is followed by a - three-octet count of the number of octets to follow. No action is - taken with this data but the count of dummy octets must be correct to - indicate the next element code. - - Element code 2 (BOOLEAN) is a boolean data element. The octet - following the type-octet has the value 1 for True and 0 for False. - - - -[Page 28] Postel - - -August 1980 - Internet Message Protocol - Specification - - - - Element code 3 (INDEX) is a 16-bit unsigned integer datum. Element - code 3 occupies only 3 octets. - - Element code 4 (INTEGER) is a signed 32-bit integer datum. This will - always occupy five octets. Representation is two's complement. - - Element code 5 (EPI) is an extended precision integer. The type octet - is followed by a three-octet count of the number of data octets to - follow. Representation is two's complement. - - Element code 6 (BITSTR) is a bit string element for binary data. The - bit string is padded on the right with zeros to fill out the last - octet if the bit string does not end on an octet boundary. This data - type must have the bit-count in the three-octet count field instead of - the number of octets. - - Element code 7 (NAME) is used for the representation of character - string names (or other short strings). The type octet is followed by - a one-octet count of the number of characters (one per octet) to - follow. Seven bit ASCII characters are used, right justified in the - octet. The high order bit in the octet is zero. - - Element code 8 (TEXT) is used for the representation of text. The - type octet is followed by a three-octet count of the number of - characters (one per octet) to follow. Seven bit ASCII characters are - used, right justified in the octet. The high order bit in the octet - is zero. - - Element code 9 (LIST) can be used to create structures composed of - other elements. The three-octet octet count specifies the number of - octets in the whole list (i.e., the number of octets following this - count field to the end of the list, not including the ENDLIST octet). - The two-octet item count contains the number of elements which follow. - Any element may be used including list itself. - - - +------+------+------+------+------+------+ - | 9 | octet count | item count | - +------+------+------+------+------+------+ - +------+------/---+ - repeated | element | - +------+------/---+ - +-------+ - |ENDLIST| - +-------+ - - In some situations it may not be possible to know the length of a list - - -Postel [Page 29] - - - August 1980 -Internet Message Protocol -Specification - - - - until the head of it has been transmitted. To allow for this a - special ENDLIST element is defined. A list of undetermined length is - transmitted with the octet count cleared to zero, and the item count - cleared to zero. A null or empty List, one with no elements, has an - octet count of two (2) and an item count of zero (0). The ENDLIST - element always follows a LIST, even when the length is determined. - - Element code 10 (PROPLIST) is the Property List element. It is a - special case of the list element, in which the elements are in pairs - and the first element of each pair is a name. It has the following - form: - - - +------+------+------+------+------+ - | 10 | octet count | pair | - +------+------+------+------+------+ - +------+------/---+------+------/---+ - repeated | name element | value element | - +------+------/---+------+------/---+ - +-------+ - |ENDLIST| - +-------+ - - The Property List structure consists of a set of unordered - pairs. The pairs are composed of a name which must be a - NAME element and a value which may be any kind of element. Following - the type code is a three-octet octet count of the following octets. - Following the octet count is a one-octet pair count of the number of - pairs in the property list. - - The name of a pair is to be unique within the property - list, that is, there shall be at most one occurrence of any particular - name in one property list. - - In some situations it may not be possible to know the length of a - property list until the head of it has been transmitted. To allow for - this the special ENDLIST element is defined. A property list of - undetermined length is transmitted with the octet count cleared to - zero, and the pair count cleared to zero. A null or empty property - list, one with no elements, has an octet count of one (1) and an pair - count of zero (0). The ENDLIST element always follows a property - list, even when the length is determined. - - Element code 11 (ENDLIST) is the end of list element. It marks the - end of the corresponding list or property list. - - - - -[Page 30] Postel - - -August 1980 - Internet Message Protocol - Specification - - - - Structure Sharing - - When messages are batched in message-bags for transmission, it may - often be the case that the same document will be sent to more than - one recipient. Since the document portion can usually be expected - to be the major part of the message, much repeated data would be - sent if a copy of the document for each recipient were to be shipped - in the message-bag. - - To avoid this redundancy, messages may be assembled in the - message-bag so that actual data appears on its first occurrence and - only references to it appear in later occurrences. When data is - shared, the first occurrence of the data will be tagged, and later - locations where the data should appear will only reference the - earlier tagged location. All references to copied data point to - earlier locations in the message-bag. The data to be retrieved is - indicated by the tag. - - This is a very general sharing mechanism. PLEASE NOTE THAT THE MPM - WILL NOT SUPPORT THE FULL USE OF THIS MECHANISM. THE MPM WILL ONLY - SUPPORT SHARING OF WHOLE DOCUMENTS. No other level of sharing will - be supported by the MPMs. - - This sharing mechanism may be used within a document as long as all - references refer to tags within the same document. - - Sharing is implemented by placing a share-tag on the first - occurrence of the data to be shared, and placing a share-reference - at the locations where copies of that data should occur. - - - +------+------+------+ - 12 Share Tag | 12 | share-index | - +------+------+------+ - - - +------+------+------+ - 13 Share Reference | 13 | share-index | - +------+------+------+ - - Element code 12 (S-TAG) is a share tag element. The two octets - following the type-octet specify the shared data identification code - for the following data element. Note that s-tag is not a DATA - element, in the sense that data elements encode higher level - objects. - - Element code 13 (S-REF) is a share reference element. The two - - -Postel [Page 31] - - - August 1980 -Internet Message Protocol -Specification - - - - octets following the type-octet specify the referenced shared data - identification code. - - An example of using this mechanism is - - ( ( , ) ( , ) ) - - could be coded as follows to share - - ( ( , ) ( , ) ) - - To facilitate working with structures which may contain shared data, - the two high-order bits of the list and property list element codes - are reserved for indicating if the structure contains data to be - shared or contains a reference to shared data. That is, if the - high-order bit of the list or property list element code octet is - set to one then the property list contains a share-reference to - shared data. Or, if the second high-order bit is set to one the - structure contains a share-tag for data to be shared. - - The example above is now repeated in detail showing the use of the - high-order bits. - - - +------+------+------+------+------+------+------+------+ - |11 - 9|01 - 9| | 12 | 0 | 1 | | 11 | - +------+------+------+------+------+------+------+------+ - +------+------+------+------+------+------+------+ - |10 - 9| | 13 | 0 | 1 | 11 | 11 | - +------+------+------+------+------+------+------+ - - It is not considered an error for an element to be tagged but not - referenced. - - A substructure with internal sharing may be created. If such a - substructure is closed with respect to sharing -- that is, all - references to its tagged elements are within the substructure -- - then there is no need for the knowledge of the sharing to propagate - up the hierarchy of lists. For example, if the substructure is: - - 00-LIST ( a b c b ) - - which with sharing is: - - 11-LIST ( a T1:b c R1 ) - - When this substructure is included in a large structure the high - - -[Page 32] Postel - - -August 1980 - Internet Message Protocol - Specification - - - - order bits can be reset since the substructure is closed with - respect to sharing. For example: - - 00-LIST ( x 11-LIST ( a T1:b c R1 ) y ) - - Note: While sharing adds transmission and memory efficiency, it is - costly in processing to separate shared elements. This is the main - reason for restricting the sharing supported by the MPM. At some - later time these restrictions may be eased. - - It is possible to create loops, "strange loops" and "tangled - hierarchies" using this mechanism [32]. The MPM will not check for - such improper structures within documents, and will not deliver - messages involved in such structures between documents. - - If an encryption scheme is used to ensure the privacy of - communication it is unlikely that any parts of the message can be - shared. This is due to the fact that in most case the encryption - keys will be specific between two individuals. There may be a few - cases where encrypted data may be shared. For example, all the - members of a committee may use a common key when acting on committee - business, or in a public key scheme a document may be "signed" using - the private key of the sender and inspected by anyone using the - public key of the sender. - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 33] - - - August 1980 -Internet Message Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 34] Postel - - -August 1980 - Internet Message Protocol - - - - 4. OTHER ISSUES - -This section discusses various other issues that need to be dealt with -in a computer message system. - -4.1. Accounting and Billing - - Accounting and billing must be performed by the MPM. The charge to - the user by the message delivery system must be predictable, and so - cannot depend on the actual cost of sending a particular message which - incurs random delays, handling and temporary storage charges. Rather, - these costs must be aggregated and charged back to the users on an - average cost basis. The user of the service may be charged based on - the destination or distance, the length of the message, type of - service, or other parameters selected as the message is entered into - the delivery system, but must not depend on essentially random - handling by the system of the particular message. - - This means it is pointless to have each message carry an accumulated - charge (or list of charges). Rather, the MPM will keep a log of - messages handled and periodically bill the originators of those - messages. - - It seems that the most reasonable scheme is to follow the practice of - the international telephone authorities. In such schemes the - authority where the message originates bills the user of the service - for the total charge. The authorities assist each other in providing - the international message transfer and the authorities periodically - settle any differences in accounts due to an imbalance in - international traffic. - - Thus the MPMs will keep logs of messages handled and will periodically - charge their neighboring MPM for messages handled for them. This - settlement procedure is outside the message system and between the - administrators of the MPMs. - - As traffic grows it will be impractical to log every message - individually. It will be necessary to establish categories of - messages (e.g., short, medium, large) and only count the number in - each category. - - The MPM at the source of the message will have a local means of - identifying the user to charge for the message delivery service. The - relay and destination MPMs will know which neighbor MPMs to charge (or - settle with) for delivery of their messages. - - - - - -Postel [Page 35] - - - August 1980 -Internet Message Protocol -Other Issues - - - -4.2. Addressing and Routing - - The mailbox provides for many types of address information. The MPMs - in the ARPA internet can most effectively use the internet address - [2]. The use of other address information is not yet very clear. - Some thoughts on addressing issues may be found in the references - [33,34,35]. - - An MPM sometimes must make a routing decision when it is acting as a - relay-MPM (or source MPM). It must be able to use the information - from the mailbox to determine to which of its neighbor MPMs to send - the message. One way this might be implemented is to have a table of - destination networks with corresponding neighbor MPM identifiers to - use for routing toward that network. - - It is not expected that such routing tables would be very dynamic. - Changes would occur only when new MPMs came into existence or MPMs - went out of service for periods of days. - - Even with relatively slowly changing routing information the MPMs need - an automatic mechanism for adjusting their routing tables. The - routing problem here is quite similar to the problem of routing in a - network of packet switches such as the ARPANET IMPs or a set of - internet gateways. A great deal of work has been done on such - problems and many simple schemes have been found faulty. There are - details of these procedures which may become troublesome when the - number of nodes grows beyond a certain point or the frequency of - update exchanges gets large. - - A basic routing scheme is to have a table of pairs. The MPM could look up the network name found - in the mailbox of the message and determine the internet - mpm-identifier of the next MPM to which to route the message. To - permit automatic routing updates another column would be added to - indicate the distance to the destination. This could be measured in - several ways, for example, the number of relay MPM (or hops) to the - final destination. In this case each entry in the table is a triple - of . - - To update the routing information when changes occur an MPM updates - its table. It then sends to each next MPM in its table a table of - pairs , which say in effect "I can get a - message to each of these networks with "cost" distance." An MPM which - receives such an update will add to all the distances the distance to - the MPM sending the update (e.g., one hop) and compare the information - with its own table. - - - -[Page 36] Postel - - -August 1980 - Internet Message Protocol - Other Issues - - - - If the update information shows that the distance to a destination - network is now smaller via the MPM which sent the update, the MPM - changes its own table to reflect the better route, and the new - distance. If the MPM has made changes in its table it sends update - information to all the MPMs listed as next-MPMs in its table. - - One further feature is that when a new network comes into existence an - entry must be added to the table in each MPM. The MPMs should - therefore expect the case that update information may contain entries - which are new networks, and in such an event add these entries to - their own tables. - - When a new MPM comes into existence it will have an initial table - indicating that it is a good route (short distance) to the network it - is in, and will have entries for a few neighbor networks. It will - send an initial "update" to those neighbor MPMs which will respond - with more complete tables, thus informing the new MPM of routes to - many networks. - - This routing update mechanism is a simple minded scheme and may have - to be replaced as the system of MPMs grows. In addition it ignores - the opportunity for MPMs to use other information (besides destination - network name) for routing. MPMs may have tables that indicate - next-MPMs based on city, telephone number, organization, or other - categories of information. - -4.3. Encryption - - It is straightforward to add the capability to have the document - portion of messages either wholly or partially encrypted. An - additional basic data element is defined to carry encrypted data. The - data within this element may be composed of other elements, but that - could only be perceived after the data was decrypted. - - - +------+------+------+------+ - 14 Encrypt | 14 | octet count | - +------+------+------+------+ - - +------+------+------+------- - |alg id| key id | Data ... - +------+------+------+-------- - - Element code 14 (ENCRYPT) is used to encapsulate encrypted data. The - format is the one-octet type code, the three-octet octet count, a - one-octet algorithm identifier, a two-octet key identifier, and count - octets of data. Use of this element indicates that the data it - - -Postel [Page 37] - - - August 1980 -Internet Message Protocol -Other Issues - - - - contains is encrypted. The encryption scheme is indicated by the - algorithm identifier, and the key used is indicated by the key - identifier (this is not the key itself). The NBS Data Encryption - Standard (DES) [36], public key encryption [37,38,39], or other - schemes may be used. - - To process this data element, the user is asked for the appropriate - key and the data can then be decrypted. The data thus revealed will - be in the form of complete data element fields. Encryption cannot - occur over a partial field. The revealed data is then processed - normally. - - Note that there is no reason why all fields of a document could not be - encrypted including all document header information such as From, - Date, etc. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 38] Postel - - -August 1980 - Internet Message Protocol - - - - 5. THE MPM: A POSSIBLE ARCHITECTURE - -The heart of the internet message system is the MPM which is responsible -for routing and delivering messages. Each network must have at least -one MPM. These MPMs are logically connected together, and internet mail -is always transferred along logical channels between them. The MPMs -interface with existing local message systems. - -Since the local message system may be very different from the internet -system, special programs may be necessary to convert incoming internet -messages to the local format. Likewise, messages outgoing to other -networks may be converted to the internet format and sent via the MPMs. - -5.1. Interfaces - - User Interface - - It is assumed that the interface between the MPM and the UIP - provides for passing data structures which represent the document - portion of the message. In addition, this interface must pass the - delivery address information (which becomes the information in the - mailbox field of the command). It is assumed that the information - is passed between the UIP and the MPM via shared files, but this is - not the only possible mechanism. These two processes may be more - strongly coupled (e.g., by sharing memory), or less strongly coupled - (e.g., by communicating via logical channels). - - When a UIP passes a document and a destination address to the MPM, - the MPM assigns a transaction-number and forms a message to send. - The MPM must record the relationship between the transaction-number, - the document, and the UIP, so that it can inform the UIP about the - outcome of the delivery attempt for that document when the - acknowledgment message is received at some later time. - - Assuming a file passing mode of communication between the UIP and - the MPM the sending and receiving of mail might involve the - following interactions: - - A user has an interactive session with a UIP to compose a document - to send to a destination (or list of destinations). When the user - indicates to the UIP that the document is to be sent, the UIP - places the information into a file for the MPM. The UIP may then - turn to the next request of the user. - - The MPM finds the file and extracts the the information. It - creates a message, assigning a transaction-number and forming a - deliver command. The MPM records the UIP associated with this - message. The MPM sends the message toward the destination. - - -Postel [Page 39] - - - August 1980 -Internet Message Protocol -MPM Architecture - - - - When the MPM receives a deliver message from another MPM addressed - to a user in its domain, it extracts the document and puts it into - a file for the UIP associated with the destination user. The MPM - also sends an acknowledge message to the originating MPM. - - When the MPM receives an acknowledgment for a message it sent, the - MPM creates a notification for the associated UIP and places it in - a file for that UIP. - - The format of these files is up to each UIP/MPM interface pair. - One reasonable choice is to use the same data structures used in - the MPM-MPM communication. - - Communication Interface - - It is assumed here that the MPMs use an underlying communication - system, and TCP [3] has been taken as the model. In particular, the - MPM is assumed to be listening for a TCP connection on a TCP port, - i.e., it is a server process. The port is either given explicitly - in the mpm-identifier or takes the default vaule 45 (55 octal) [4]. - Again, this is not intended to limit the implementation choices; - other forms of interprocess communication are allowed, and other - types of physical interconnection are permitted. One might even use - dial telephone calls to interconnect MPMs (using suitable protocols - to provide reliable communication) [12,19,20,21]. - - - -5.2. The MPM Organization - - Messages in the internet mail system are transmitted in lists called - message-bags (or simply bags), each bag containing one or more - messages. Each MPM is expected to implement functions which will - allow it to deliver local messages it receives and to forward - non-local ones to other MPMs presumably closer to the message's - destination. - - Loosely, each MPM can be separated into six components: - - 1--Acceptor - - Receives incoming message-bags, from other MPMs, from UIPs, or - from conversion programs. - - 2--Message-Bag Processor - - Splits a bag into these three portions: - - -[Page 40] Postel - - -August 1980 - Internet Message Protocol - - - - a. Local Host Messages - b. Local Net Messages - c. Foreign Net Messages - - 3--Local Host Delivery - - Delivers local host messages, may call on conversion program. - - 4--Local Net Delivery - - Delivers local net messages, may call on conversion program. - - 5--Foreign Net Router - - Forms message-bags for transmission to other MPMs and determines - the first step in the route. - - 6--Foreign Net Sender - - Activates transmission channels to other MPMs and sends - message-bags to foreign MPMs. - - If the local net message system uses the protocol of the MPMs, then - there need be no distinction between local net and foreign net - delivery procedures. - - All of these components can be thought of as independent. The - function of the Acceptor is to await incoming message-bags and to - insert them into the Bag-Input Queue. - - The Bag-Input queue is read by the message-bag Processor which will - separate and deliver suitable portions of the message-bags it - retrieves from the queue to one of three queues: - - a. Local Host Queue - b. Local Net Queue - c. Foreign Net Queue - - When an MPM has a message to send to another MPM, it must add its own - handling-stamp to the trace field of the command. The trace then - becomes a record of the route the message has taken. An MPM should - examine the trace field to see if the message is in a routing loop. - All commands require the return of the trace as a trail in the - matching reply command. - - All of these queues have as elements complete message-bags created by - selecting messages from the input message-bags. - - - -Postel [Page 41] - - - August 1980 -Internet Message Protocol - - - - The Local Host queue serves as input to the Local Host Delivery - process. This component is responsible for delivering messages to its - local host. It may call on a conversion program to reformat the - messages into a form the local protocol will accept. This will - probably involve such things as copying shared information. - - The Local Net queue serves as input to the Local Net Delivery process. - This component is responsible for delivering messages to other hosts - on its local net. It must be capable of handling whatever error - conditions the local net might return, and should include the ability - to retransmit. It may call on a conversion program to reformat the - messages into a form the local protocol will accept. This will - probably involve such things as copying shared information. - - The other two processes are more closely coupled. The Foreign Net - Router takes its input bags from the Foreign Net Queue. From the - internal information it contains, it determines which of the MPMs to - which it is connected should receive the bag. - - It then places the bag along with the routing information into the - Send Mail Queue. The Foreign Net Sender retrieves it from that queue - and transmits it across a channel to the intended foreign MPM. The - Sender aggregates messages to the same next MPM into a bag. - - The Foreign Net Router should be capable of receiving external input - to its routing information table. This may come from the Foreign Net - Sender in the case of a channel going down, requiring a decision to - either postpone delivery or to determine a new route. The Router is - responsible for maintaining sufficient information to determine where - to send any incoming message-bag. - - Forwarding - - An MPM may have available information on the correct mailboxes of - users which are not at its location. This information, called a - forwarding data base, may be used to return the correct address in - response to a probe command, or to actually forward a deliver - command (if allowed by the type of service). - - Because such forwarding may cause the route of a message to pass - through an MPM already on the trace of this message, only the - portion of the trace back to the most recent forward action should - be used for loop detection by a relay relaying MPM, and only the - forward action entries in the trace should be checked by a - forwarding MPM. - - - - - -[Page 42] Postel - - -August 1980 - Internet Message Protocol - - - - Implementation Recommendations - - Transaction numbers can be assigned sequentially, with wrap around - when the highest value is reached. This should ensure that no - message with a particular transaction number from this source is in - the network when another instance of this transaction number is - chosen. - - The processing to separate shared elements when the routes of the - shared elements diverge while still preserving the sharing possible - appears to be an O(N*M**2) operation where N is the number of - distinct objects in a message which may be shared across message - boundaries and M is the number of messages in the bag. - - Also note that share-tags may be copied into separate message bags - which are not referenced. These could be removed with another pass - over the message bag. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 43] - - - August 1980 -Internet Message Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 44] Postel - - -August 1980 - Internet Message Protocol - - - - 6. EXAMPLES & SCENARIOS - -Example 1: Message Format - - Suppose we want to send the following message: - - Date: 1979-03-29-11:46-08:00 - From: Jon Postel - Subject: Meeting Thursday - To: Danny Cohen - CC: Linda - - Danny: - - Please mark your calendar for our meeting Thursday at 3 pm. - - --jon. - - It will be encoded in the structured format. The following will - present successive steps in the top down generation of this message. - The actual document above will not be shown in the coded form. - - 1. message - - 2. (identification, command, document) - - 3. (ID:(mpm-identifier, transaction-number), - CMD:(MAILBOX:mailbox, OPERATION:operation, - arguments, TRACE:trace), - DOC:<>) - - 4. (ID:(mpm-identifier, transaction-number), - CMD:(MAILBOX:mailbox, OPERATION:operation, - TYPE-OF-SERVICE:regular, TRACE:trace), - DOC:<>) - - 5. (ID:(MPM:(IA:12,1,0,52,0,45), TRANSACTION:37), - CMD:(MAILBOX:(MPM:(IA:12,3,0,52,0,45), - NET:ARPA, - HOST:ISIB, - PORT:45, - USER:Cohen), - OPERATION:DELIVER, - TYPE-OF-SERVICE:REGULAR, - TRACE:(MPM:(IA:12,1,0,52,0,45) - DATE:1979-03-29-11:46-08:00, - ACTION:ORIGIN)), - DOC:<>) - - -Postel [Page 45] - - - August 1980 -Internet Message Protocol -Examples & Scenarios - - - - 6. PROPLIST:( - ID:PROPLIST:( - MPM:PROPLIST:( - IA:12,1,0,52,0,45), - ENDLIST - TRANSACTION:37) - ENDLIST, - - CMD:PROPLIST( - MAILBOX:(PROPLIST:( - MPM:PROPLIST( - IA:12,3,0,52,0,45), - ENDLIST - NET:ARPA, - HOST:ISIB, - PORT:45, - USER:Cohen ), - ENDLIST - OPERATION:DELIVER, - TYPE-OF-SERVICE:REGULAR, - TRACE:(PROPLIST:MPM: - (PROPLIST: - IA:12,1,0,52,0,45) - ENDLIST - DATE:1979-03-29-11:46-08:00, - ACTION:ORIGIN)), - ENDLIST - ENDLIST - DOC:<>) - ENDLIST - - - - - - - - - - - - - - - - - - - -[Page 46] Postel - - -August 1980 - Internet Message Protocol - Examples & Scenarios - - - -Example 2: Delivery and Acknowledgment - - The following are four views of the message of example 1 during the - successive transmission from the origination MPM, through a relay MPM, - to the destination MPM, and the return of the acknowledgment, through - a relay MPM, to the originating MPM. - - +-----------------------------------------------------------------+ - | A B | - | sending --> originating --> relay --> destination --> receiving | - | user MPM MPM MPM user | - | | - | D C | - | originating <-- relay <-- destination | - | MPM MPM MPM | - +-----------------------------------------------------------------+ - - Transmission Path - - Figure 6. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 47] - - - August 1980 -Internet Message Protocol -Examples & Scenarios - - - - A. Between the originating MPM and the relay MPM. - - PROPLIST: - NAME:"ID", - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", NAME:"10,1,0,52,0,45" - ENDLIST - NAME:"TRANSACTION", INTEGER:37 - ENDLIST - NAME:"CMD", - PROPLIST: - NAME:"MAILBOX", - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", NAME:"10,3,0,52,0,45" - ENDLIST - NAME:"NET", NAME:"ARPA" - NAME:"HOST", NAME:"ISIB" - NAME:"PORT", NAME:"45" - NAME:"USER", NAME:"Cohen" - ENDLIST - NAME:"OPERATION", NAME:"DELIVER" - NAME:"TYPE-OF-SERVICE", NAME:"REGULAR" - NAME:"TRACE", - LIST: - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", NAME:"10,1,0,52,0,45" - ENDLIST - NAME:"DATE", NAME:"1979-03-29-11:47.5-08:00" - NAME:"ACTION", NAME:"ORIGIN" - ENDLIST - ENDLIST - ENDLIST - NAME:"DOC", <> - ENDLIST - - - - - - - - - -[Page 48] Postel - - -August 1980 - Internet Message Protocol - Examples & Scenarios - - - - B. Between the relay MPM and the destination MPM. - - PROPLIST: - NAME:"ID", - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", NAME:"10,1,0,52,0,45" - ENDLIST - NAME:"TRANSACTION", INTEGER:37 - ENDLIST - NAME:"CMD", - PROPLIST: - NAME:"MAILBOX", - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", NAME:"10,3,0,52,0,45" - ENDLIST - NAME:"NET", NAME:"ARPA" - NAME:"HOST", NAME:"ISIB" - NAME:"PORT", NAME:"45" - NAME:"USER", NAME:"Cohen" - ENDLIST - NAME:"OPERATION", NAME:"DELIVER" - NAME:"TYPE-OF-SERVICE", NAME:"REGULAR" - NAME:"TRACE", - LIST: - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", NAME:"10,1,0,52,0,45" - ENDLIST - NAME:"DATE", NAME:"1979-03-29-11:47.5-08:00" - NAME:"ACTION", NAME:"ORIGIN" - ENDLIST - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", NAME:"10,2,0,52,0,45" - ENDLIST - NAME:"DATE", NAME:"1979-03-29-11:48-08:00" - NAME:"ACTION", NAME:"RELAY" - ENDLIST - ENDLIST - ENDLIST - NAME:"DOC", <> - - -Postel [Page 49] - - - August 1980 -Internet Message Protocol -Examples & Scenarios - - - - ENDLIST - - C. Between the destination MPM and the relay MPM. - - PROPLIST: - NAME:"ID", - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", NAME:"10,3,0,52,0,45" - ENDLIST - NAME:"TRANSACTION", INTEGER:1993 - ENDLIST - NAME:"CMD", - PROPLIST: - NAME:"MAILBOX", - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", INTEGER:"10,1,0,52,0,45" - ENDLIST - NAME:"NET", NAME:"ARPA" - NAME:"HOST", NAME:"ISIE" - NAME:"PORT", NAME:"45" - NAME:"USER", NAME:"*MPM*" - ENDLIST - NAME:"OPERATION", NAME:"ACKNOWLEDGE" - NAME:"REFERENCE", - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", NAME:"10,1,0,52,0,45" - ENDLIST - NAME:"TRANSACTION", INTEGER:37 - ENDLIST - NAME:"ADDRESS", - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", INTEGER:"10,3,0,52,0,45" - ENDLIST - NAME:"USER", NAME:"Cohen" - ENDLIST - NAME:"TYPE-OF-SERVICE", NAME:"REGULAR" - NAME:"ERROR-CLASS", INDEX:0 - NAME:"ERROR-STRING", NAME:"Ok" - NAME:"TRAIL", - - -[Page 50] Postel - - -August 1980 - Internet Message Protocol - Examples & Scenarios - - - - LIST: - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", NAME:"10,1,0,52,0,45" - ENDLIST - NAME:"DATE", NAME:"1979-03-29-11:47.5-08:00" - NAME:"ACTION", NAME:"ORIGIN" - ENDLIST - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", NAME:"10,2,0,52,0,45" - ENDLIST - NAME:"DATE", NAME:"1979-03-29-11:48-08:00" - NAME:"ACTION", NAME:"RELAY" - ENDLIST - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", NAME:"10,3,0,52,0,45" - ENDLIST - NAME:"DATE", NAME:"1979-03-29-11:51.567-08:00" - NAME:"ACTION", NAME:"DESTINATION" - ENDLIST - ENDLIST - NAME:"TRACE", - LIST: - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", NAME:"10,3,0,52,0,45" - ENDLIST - NAME:"DATE", NAME:"1979-03-29-11:52-08:00" - NAME:"ACTION", NAME:"ORIGIN" - ENDLIST - ENDLIST - ENDLIST - ENDLIST - - - - - - - - - - -Postel [Page 51] - - - August 1980 -Internet Message Protocol -Examples & Scenarios - - - - D. Between the relay MPM and the originating MPM. - - PROPLIST: - NAME:"ID", - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", NAME:"10,3,0,52,0,45" - ENDLIST - NAME:"TRANSACTION", INTEGER:1993 - ENDLIST - NAME:"CMD", - PROPLIST: - NAME:"MAILBOX", - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", INTEGER:"10,1,0,52,0,45" - ENDLIST - NAME:"NET", NAME:"ARPA" - NAME:"HOST", NAME:"ISIE" - NAME:"PORT", NAME:"45" - NAME:"USER", NAME:"*MPM*" - ENDLIST - NAME:"OPERATION", NAME:"ACKNOWLEDGE" - NAME:"REFERENCE", - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", NAME:"10,1,0,52,0,45" - ENDLIST - NAME:"TRANSACTION", INTEGER:37 - ENDLIST - NAME:"ADDRESS", - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", INTEGER:"10,3,0,52,0,45" - ENDLIST - NAME:"USER", NAME:"Cohen" - ENDLIST - NAME:"TYPE-OF-SERVICE", NAME:"REGULAR" - NAME:"ERROR-CLASS", INDEX:0 - NAME:"ERROR-STRING", NAME:"Ok" - NAME:"TRAIL", - LIST: - PROPLIST: - - -[Page 52] Postel - - -August 1980 - Internet Message Protocol - Examples & Scenarios - - - - NAME:"MPM", - PROPLIST: - NAME:"IA", NAME:"10,1,0,52,0,45" - ENDLIST - NAME:"DATE", NAME:"1979-03-29-11:47.5-08:00" - NAME:"ACTION", NAME:"ORIGIN" - ENDLIST - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", NAME:"10,2,0,52,0,45" - ENDLIST - NAME:"DATE", NAME:"1979-03-29-11:48-08:00" - NAME:"ACTION", NAME:"RELAY" - ENDLIST - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", NAME:"10,3,0,52,0,45" - ENDLIST - NAME:"DATE", NAME:"1979-03-29-11:51.567-08:00" - NAME:"ACTION", NAME:"DESTINATION" - ENDLIST - ENDLIST - NAME:"TRACE", - LIST: - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", NAME:"10,3,0,52,0,45" - ENDLIST - NAME:"DATE", NAME:"1979-03-29-11:52-08:00" - NAME:"ACTION", NAME:"ORIGIN" - ENDLIST - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", NAME:"10,2,0,52,0,45" - ENDLIST - NAME:"DATE", NAME:"1979-03-29-11:52.345-08:00" - NAME:"ACTION", NAME:"RELAY" - ENDLIST - ENDLIST - ENDLIST - ENDLIST - - - - -Postel [Page 53] - - - August 1980 -Internet Message Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 54] Postel - - -August 1980 - Internet Message Protocol - - - - 7. SPECIFICATION SUMMARY - - - -7.1. Message Fields - - All keywords used in this protocol are to be recognized independent of - case. - - action: NAME (one of) - "ORIGIN" | "RELAY" | "FORWARD" | "DESTINATION" - - address: PROPLIST (one of) - - NAME: "MPM", - NAME: "USER", - - or - - NAME: "NET", - NAME: "HOST", - NAME: "PORT", - NAME: "USER", - - answer: BOOLEAN - - city: NAME - - command: PROPLIST - NAME: "MAILBOX", - NAME: "OPERATION", - <> - NAME: "ERROR-CLASS", (only in replies) - NAME: "ERROR-STRING", (only in replies) - NAME: "TRACE", - - country: NAME - - document: <> - - error-class: INDEX - - error-string: NAME - - host: NAME - - - - - -Postel [Page 55] - - - August 1980 -Internet Message Protocol - - - - handling-stamp: PROPLIST - NAME: "MPM", - NAME: "DATE", - NAME: "ACTION", - - identification: LIST - NAME: "MPM", - NAME: "TRANSACTION", - - internet-address: NAME - - mailbox: PROPLIST (some of) - NAME: "MPM", - NAME: "NET", - NAME: "HOST", - NAME: "PORT", - NAME: "USER", - NAME: "ORG", - NAME: "CITY", - NAME: "STATE", - NAME: "COUNTRY", - NAME: "ZIP", - NAME: "PHONE", - <> - - message: PROPLIST - NAME: "ID", - NAME: "CMD", - NAME: "DOC", (only in deliver) - - mpm-identifier: PROPLIST (one of) - - NAME: "IA", - - or - - NAME: "X121", - - net: NAME - - operation: NAME (one of) - "DELIVER" | "ACKNOWLEDGE - | "PROBE" | "RESPONSE - | "CANCEL" | "CANCELED" - - organization: NAME - - phone-number: NAME - - -[Page 56] Postel - - -August 1980 - Internet Message Protocol - - - - port: NAME - - state: NAME - - trace: LIST - - ... - - trail: LIST - - ... - - transaction-number: INTEGER - - type-of-service: NAME (one or more of) - "REGULAR" | "FORWARD" | "GENDEL" | "PRIORITY" - - user: NAME - - x121-address: NAME - - zip-code: NAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 57] - - - August 1980 -Internet Message Protocol - - - -7.2. Deliver Message - - PROPLIST: - NAME:"ID", - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", NAME: - ENDLIST - NAME:"TRANSACTION", INTEGER: - ENDLIST - NAME:"CMD", - PROPLIST: - NAME:"MAILBOX", - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", INTEGER: - ENDLIST - NAME:"NET", NAME: - NAME:"HOST", NAME: - NAME:"PORT", NAME: - NAME:"USER", NAME: - NAME:"ORG", NAME: - NAME:"CITY", NAME: - NAME:"STATE", NAME: - NAME:"COUNTRY", NAME: - NAME:"ZIP", NAME: - NAME:"PHONE", NAME: - <> - ENDLIST - NAME:"OPERATION", NAME:"DELIVER" - NAME:"TYPE-OF-SERVICE", NAME: - NAME:"TRACE", - LIST: - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", INTEGER: - ENDLIST - NAME:"DATE", NAME: - NAME:"ACTION", NAME: - ENDLIST - ... - ENDLIST - ENDLIST - NAME:"DOC", <> - ENDLIST - - -[Page 58] Postel - - -August 1980 - Internet Message Protocol - - - -7.3. Acknowledge Message - - PROPLIST: - NAME:"ID", - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", NAME: - ENDLIST - NAME:"TRANSACTION", INTEGER: - ENDLIST - NAME:"CMD", - PROPLIST: - NAME:"MAILBOX", - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", INTEGER: - ENDLIST - NAME:"USER", NAME:"*MPM*" - NAME:"NET", NAME: - NAME:"PORT", NAME: - NAME:"HOST", NAME: - ENDLIST - NAME:"OPERATION", NAME:"ACKNOWLEDGE" - NAME:"REFERENCE", - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", NAME: - ENDLIST - NAME:"TRANSACTION", INTEGER: - ENDLIST - NAME:"ADDRESS", - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", INTEGER: - ENDLIST - NAME:"USER", NAME: - ENDLIST - NAME:"TYPE-OF-SERVICE", NAME: - NAME:"ERROR-CLASS", INDEX: - NAME:"ERROR-STRING", NAME: - NAME:"TRAIL", - LIST: - PROPLIST: - NAME:"MPM", - - -Postel [Page 59] - - - August 1980 -Internet Message Protocol - - - - PROPLIST: - NAME:"IA", INTEGER: - ENDLIST - NAME:"DATE", NAME: - NAME:"ACTION", NAME: - ENDLIST - ... - ENDLIST - NAME:"TRACE", - LIST: - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", INTEGER: - ENDLIST - NAME:"DATE", NAME: - NAME:"ACTION", NAME: - ENDLIST - ... - ENDLIST - ENDLIST - ENDLIST - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 60] Postel - - -August 1980 - Internet Message Protocol - - - -7.4. Probe Message - - PROPLIST: - NAME:"ID", - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", NAME: - ENDLIST - NAME:"TRANSACTION", INTEGER: - ENDLIST - NAME:"CMD", - PROPLIST: - NAME:"MAILBOX", - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", INTEGER: - ENDLIST - NAME:"NET", NAME: - NAME:"HOST", NAME: - NAME:"PORT", NAME: - NAME:"USER", NAME: - NAME:"ORG", NAME: - NAME:"CITY", NAME: - NAME:"STATE", NAME: - NAME:"COUNTRY", NAME: - NAME:"ZIP", NAME: - NAME:"PHONE", NAME: - <> - ENDLIST - NAME:"OPERATION", NAME:"PROBE" - NAME:"TRACE", - LIST: - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", INTEGER: - ENDLIST - NAME:"DATE", NAME: - NAME:"ACTION", NAME: - ENDLIST - ... - ENDLIST - ENDLIST - ENDLIST - - - - -Postel [Page 61] - - - August 1980 -Internet Message Protocol - - - -7.5. Response Message - - PROPLIST: - NAME:"ID", - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", NAME: - ENDLIST - NAME:"TRANSACTION", INTEGER: - ENDLIST - NAME:"CMD", - PROPLIST: - NAME:"MAILBOX", - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", INTEGER: - ENDLIST - NAME:"NET", NAME: - NAME:"HOST", NAME: - NAME:"PORT", NAME: - NAME:"USER", NAME:"*MPM*" - ENDLIST - NAME:"OPERATION", NAME:"RESPONSE" - NAME:"REFERENCE", - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", NAME: - ENDLIST - NAME:"TRANSACTION", INTEGER: - ENDLIST - NAME:"ADDRESS", - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", INTEGER: - ENDLIST - NAME:"USER", NAME: - ENDLIST - NAME:"ERROR-CLASS", INDEX: - NAME:"ERROR-STRING", NAME: - NAME:"TRAIL", - LIST: - PROPLIST: - NAME:"MPM", - PROPLIST: - - -[Page 62] Postel - - -August 1980 - Internet Message Protocol - - - - NAME:"IA", INTEGER: - ENDLIST - NAME:"DATE", NAME: - NAME:"ACTION", NAME: - ENDLIST - ... - ENDLIST - NAME:"TRACE", - LIST: - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", INTEGER: - ENDLIST - NAME:"DATE", NAME: - NAME:"ACTION", NAME: - ENDLIST - ... - ENDLIST - ENDLIST - ENDLIST - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 63] - - - August 1980 -Internet Message Protocol - - - -7.6. Cancel Message - - PROPLIST: - NAME:"ID", - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", NAME: - ENDLIST - NAME:"TRANSACTION", INTEGER: - ENDLIST - NAME:"CMD", - PROPLIST: - NAME:"MAILBOX", - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", INTEGER: - ENDLIST - NAME:"NET", NAME: - NAME:"HOST", NAME: - NAME:"PORT", NAME: - NAME:"USER", NAME: - NAME:"ORG", NAME: - NAME:"CITY", NAME: - NAME:"STATE", NAME: - NAME:"COUNTRY", NAME: - NAME:"ZIP", NAME: - NAME:"PHONE", NAME: - <> - ENDLIST - NAME:"OPERATION", NAME:"CANCEL" - NAME:"REFERENCE", - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", NAME: - ENDLIST - NAME:"TRANSACTION", INTEGER: - ENDLIST - NAME:"TRACE", - LIST: - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", INTEGER: - ENDLIST - NAME:"DATE", NAME: - - -[Page 64] Postel - - -August 1980 - Internet Message Protocol - - - - NAME:"ACTION", NAME: - ENDLIST - ... - ENDLIST - ENDLIST - ENDLIST - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 65] - - - August 1980 -Internet Message Protocol - - - -7.7. Canceled Message - - PROPLIST: - NAME:"ID", - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", NAME: - ENDLIST - NAME:"TRANSACTION", INTEGER: - ENDLIST - NAME:"CMD", - PROPLIST: - NAME:"MAILBOX", - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", INTEGER: - ENDLIST - NAME:"NET", NAME: - NAME:"HOST", NAME: - NAME:"PORT", NAME: - NAME:"USER", NAME:"*MPM*" - ENDLIST - NAME:"OPERATION", NAME:"CANCELED" - NAME:"REFERENCE", - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", NAME: - ENDLIST - NAME:"TRANSACTION", INTEGER: - ENDLIST - NAME:"ADDRESS", - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", INTEGER: - ENDLIST - NAME:"USER", NAME: - ENDLIST - NAME:"ERROR-CLASS", INDEX: - NAME:"ERROR-STRING", NAME: - NAME:"TRAIL", - LIST: - PROPLIST: - NAME:"MPM", - PROPLIST: - - -[Page 66] Postel - - -August 1980 - Internet Message Protocol - - - - NAME:"IA", INTEGER: - ENDLIST - NAME:"DATE", NAME: - NAME:"ACTION", NAME: - ENDLIST - ... - ENDLIST - NAME:"TRACE", - LIST: - PROPLIST: - NAME:"MPM", - PROPLIST: - NAME:"IA", INTEGER: - ENDLIST - NAME:"DATE", NAME: - NAME:"ACTION", NAME: - ENDLIST - ... - ENDLIST - ENDLIST - ENDLIST - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 67] - - - August 1980 -Internet Message Protocol - - - -7.8. Data Element Summary - - CODE NAME STRUCTURE LENGTH - ---- ---- --------- ------ - - 0 NOP CODE(1) 1 - - 1 PAD CODE(1),COUNT(3),DATA(C) C+4 - - 2 BOOLEAN CODE(1),TRUE-FALSE(1) 2 - - 3 INDEX CODE(1),INDEX(2) 3 - - 4 INTEGER CODE(1),INTEGER(4) 5 - - 5 EPI CODE(1),COUNT(3),INTEGER(C) C+4 - - 6 BITSTR CODE(1),COUNT(3),BITS(C/8) C/8+4 - - 7 NAME CODE(1),COUNT(1),NAME(C) C+2 - - 8 TEXT CODE(1),COUNT(3),TEXT(C) C+4 - - 9 LIST CODE(1),COUNT(3),ITEMS(2),DATA(C-2) C+4 - - 10 PROPLIST CODE(1),COUNT(3),PAIRS(1),DATA(C-1) C+4 - - 11 ENDLIST CODE(1) 1 - - 12 S-TAG CODE(1),INDEX(2) 3 - - 13 S-REF CODE(1),INDEX(2) 3 - - 14 ENCRYPT CODE(1),COUNT(3),ALG-ID(1), - KEY-ID(2),DATA(C-3) C+4 - - The numbers in parentheses are the number of octets in the field. - - - - - - - - - - - - - -[Page 68] Postel - - -August 1980 - Internet Message Protocol - - - - REFERENCES - - - -[1] Cerf, V., "The Catenet Model for Internetworking," Information - Processing Techniques Office, Defense Advanced Research Projects - Agency, IEN 48, July 1978. - -[2] Postel, J., "DOD Standard Internet Protocol," USC/Information - Sciences Institute, IEN 128, NTIS number AD A079730, January 1980. - -[3] Postel, J., "DOD Standard Transmission Control Protocol," - USC/Information Sciences Institute, IEN 129, NTIS number AD - A082609, January 1980. - -[4] Postel, J., "Assigned Numbers," RFC 762, USC/Information Sciences - Institute, January 1980. - -[5] Feinler, E. and J. Postel, eds., "ARPANET Protocol Handbook," - NIC 7104, for the Defense Communications Agency by the Network - Information Center of SRI International, Menlo Park, California, - Revised January 1978. - -[6] Neigus, N., "File Transfer Protocol for the ARPA Network," - RFC 542, NIC 17759, SRI International, August 1973. - -[7] Bhushan, A., K. Progran, R. Tomlinson, and J. White, - "Standardizing Network Mail Headers," RFC 561, NIC 18516, - September 1973. - -[8] Myer, T., and D. Henderson, "Message Transmission Protocol," - RFC 680, NIC 32116, 30 April 1975. - -[9] Crocker, D., J. Vittal, K. Progran, and D. Henderson, "Standard - for the Format of ARPA Network Text Messages," RFC 733, NIC 41952, - 21 November 1977. - -[10] Barber, D., and J. Laws, "A Basic Mail Scheme for EIN," INWG 192, - February 1979. - -[11] Braaten, O., "Introduction to a Mail Protocol," Norwegian - Computing Center, INWG 180, August 1978. - -[12] Crocker, D., E. Szurkowski, and D. Farber, "An Internetwork Memo - Distribution Capability - MMDF," Sixth Data Communications - Symposium, ACM/IEEE, November 1979. - - - - -Postel [Page 69] - - - August 1980 -Internet Message Protocol -References - - - -[13] Haverty, J., D. Henderson, and D. Oestreicher, "Proposed - Specification of an Inter-site Message Protocol," 8 July 1975. - -[14] Thomas, R., "Providing Mail Services for NSW Users," BBN NSW - Working Note 24, Bolt Beranek and Newman, October 1978. - -[15] White, J., "A Proposed Mail Protocol," RFC 524, NIC 17140, SRI - International, 13 June 1973. - -[16] White, J., "Description of a Multi-Host Journal," NIC 23144, SRI - International, 30 May 1974. - -[17] White, J., "Journal Subscription Service," NIC 23143, SRI - International, 28 May 1974. - -[18] Levin, R., and M. Schroeder, "Transport of Electronic Messages - Through a Network," Teleinformatics 79, Boutmy & Danthine (eds.) - North Holland Publishing Co., 1979. - -[19] Earnest, L., and J. McCarthy, "DIALNET: A Computer Communications - Study," Computer Science Department, Stanford University, August - 1978. - -[20] Crispin M., "DIALNET: A Telephone Network Data Communications - Protocol," DECUS Proceedings, Fall 1979. - -[21] Caulkins, D., "The Personal Computer Network (PCNET) Project: A - Status Report," Dr. Dobbs Journal of Computer Calisthenics and - Orthodontia, v.5, n.6, June 1980. - -[22] Postel, J., "NSW Transaction Protocol (NSWTP)," USC/Information - Sciences Institute, IEN 38, May 1978. - -[23] Haverty, J., "MSDTP -- Message Services Data Transmission - Protocol," RFC 713, NIC 34739, April 1976. - -[24] Haverty, J., "Thoughts on Interactions in Distributed Services," - RFC 722, NIC 36806, 16 September 1976. - -[25] Postel, J., "A Structured Format for Transmission of Multi-Media - Documents," RFC 767, USC/Information Sciences Institute, - August 1980. - -[26] ISO-2014, "Writing of calendar dates in all-numeric form," - Recommendation 2014, International Organization for - Standardization, 1975. - - - -[Page 70] Postel - - -August 1980 - Internet Message Protocol - References - - - -[27] ISO-3307, "Information Interchange -- Representations of time of - the day," Recommendation 3307, International Organization for - Standardization, 1975. - -[28] ISO-4031, "Information Interchange -- Representation of local time - differentials," Recommendation 4031, International Organization - for Standardization, 1978. - -[29] CCITT-X.121, "International Numbering Plan for Public Data - Networks," Recommendation X.121, CCITT, Geneva, 1978. - -[30] Postel, J., "NSW Data Representation (NSWB8)," USC/Information - Sciences Institute, IEN 39, May 1978. - -[31] Cohen, D., "On Holy Wars and a Plea for Peace," IEN 137, - USC/Information Sciences Institute, 1 April 1980. - -[32] Hofstadter, D., "Godel, Escher, Bach: An Eternal Golden Braid," - Basic Books, New York, 1979.. - -[33] Harrenstien, K., "Field Addressing," ARPANET Message, SRI - International, October 1977. - -[34] Postel, J., "Out-of-Net Host Address for Mail," RFC 754, - USC/Information Sciences Institute, April 1979. - -[35] Shoch, J., "On Inter-Network Naming, Addressing, and Routing," - IEEE Computer Society, COMPCON, Fall 1978. - -[36] National Bureau of Standards, "Data Encryption Standard," Federal - Information Processing Standards Publication 46, January 1977. - -[37] Diffie, W., and M. Hellman, "New Directions in Cryptology," IEEE - Transactions on Information Theory, IT-22, 6, November 1976. - -[38] Rivest, R., A. Shamir, and L. Adleman, "A Method for Obtaining - Digital Signatures and Public-Key Cryptosystems" Communications - of the ACM, Vol. 21, Number 2, February 1978. - -[39] Merkle, R., and M. Hellman, "Hiding Information and Signatures in - Trapdoor Knapsacks," IEEE Transactions of Information Theory, - IT-24,5, September 1978. - - - - - - - -Postel [Page 71] - diff --git a/text/ien/ien114.txt b/text/ien/ien114.txt deleted file mode 100644 index 532a835a..00000000 --- a/text/ien/ien114.txt +++ /dev/null @@ -1,523 +0,0 @@ - - - -IEN-114 J. Postel - ISI - August 1979 - - - - PROTOCOL OPTIONS - ---------------- - -Introduction ------------- - -This memo collectes the definition of the various options used in the -Internet protocols, in particular the options from Internet -Protocol (IP) [1] and Transmission Control Protocol (TCP) [2]. - -Internet Protocol Options -------------------------- - -The option field is variable in length. The format is an option-type -octet, an option-length octet, and the actual option-data octets. There -are two special case options which have only the option-type octet. - -The option-length octet, which follows, includes the option-type octet -and the option-length octet in the octet count of the option length. - -The option-type octet can be viewed as having 3 fields: - - 1 bit reserved, must be zero - 2 bits option class, - 5 bits option number. - -The option classes are: - - 0 = control - 1 = internet error - 2 = experimental debugging and measurement - 3 = reserved for future use - - - - - - - - - - - - - - - - -Postel [page 1] - - - - August 1979 -Protocol Options IEN 114 - - - -The following internet options are defined: - - CLASS NUMBER LENGTH DESCRIPTION - ----- ------ ------ ----------- - 0 0 - End of Option list. This option occupies only 1 - octet; it has no length octet. - 0 1 - No Operation. This option occupies only 1 octet; - it has no length octet. - 0 2 4 S/P/T. Used to carry Security, Precedence, and - user group (TCC) information compatible with - AUTODIN II requirements. - 0 3 var. Source Routing. Used to route the internet packet - based on information supplied by the source. - 0 4 var. BCR Open. - 0 5 var. BCR Close. - 0 6 var. BCR other. - 0 7 var. Return Route. Used to record the route taken by - an internet packet. - 0 8 2 Stream ID. Used to carry the stream identifier. - 1 1 var. General Error Report. Used to report errors in - internet packet processing. - 2 4 4 Internet Timestamp. Used to carry timestamping - information. - 2 5 4 Satellite Timestamp. Used as above for special - satellite network testing. - -Specific Option Definitions - - End of Option List - - +--------+ - |00000000| - +--------+ - Type=0 - - This option indicates the end of the option list. This might not - coincide with the end of the internet header according to the - internet header length. This is used at the end of all options, not - the end of each option, and need only be used if the end of the - options would not otherwise coincide with the end of the internet - header. - - - - - - - - -[page 2] Postel - - - -August 1979 -IEN 114 Protocol Options - - - - No Operation - - +--------+ - |00000001| - +--------+ - Type=1 - - This option may be used between options, for example, to align the - beginning of a subsequent option on a 32 bit boundary. - - S/P/T - - This option provides a way for AUTODIN II hosts to send security, - precedence, and TCC (closed user groups) parameters through networks - whose transport leader does not contain fields for this information. - The format for this option is as follows: - - +--------+--------+---------+--------+ - |00000010|00000100|Prec|Sec | TCC | - +--------+--------+---------+--------+ - Type=2 Length=4 - - Precedence: 4 bits - - Specifies one of 16 levels of precedence - - Security: 4 bits - - Specifies one of 16 levels of security - - Transmission Control Code: 8 bits - - Provides a means to compartmentalize traffic and define controlled - communities of interest among subscribers. - - This option might be used between hosts on the AUTODIN II network - and other networks, such as the EDN at DCEC. - - - - - - - - - - - - -Postel [page 3] - - - - August 1979 -Protocol Options IEN 114 - - - - Source Route - - +--------+--------+--------+---------//--------+ - |00000011| length | source route | - +--------+--------+--------+---------//--------+ - Option=3 - - The source route option provides a means for the source of an - internet datagram to supply routing information to be used by the - gateways in forwarding the datagram to the destination. - - The option begins with the option type code. The second octet is - the option length which includes the option type code and the length - octet, as well as length-2 octets of source route data. - - A source route is composed of a series of internet addresses. Each - internet address is 32 bits or 4 octets. The length defaults to - two, which indicates the source route is empty and the remaining - routing is to be based on the destination address field. - - If the address in destination address field has been reached and - this option's length is not two, the next address in the source - route replaces the address in the destination address field, and is - deleted from the source route and this option's length is reduced by - four. (The Internet Header Length Field must be changed also.) - - Return Route - - +--------+--------+--------+---------//--------+ - |00000111| length | return route | - +--------+--------+--------+---------//--------+ - Option=7 - - The return route option provides a means to record the route of an - internet datagram. - - The option begins with the option type code. The second octet is - the option length which includes the option type code and the length - octet, as well as length-2 octets of return route data. - - A return route is composed of a series of internet addresses. The - length defaults to two, which indicates the return route is empty. - - When an internet module routes a datagram it checks to see if the - return route option is present. If it is, it inserts its own - internet address as known in the environment into which this - - - -[page 4] Postel - - - -August 1979 -IEN 114 Protocol Options - - - - datagram is being forwarded into the return route at the front of - the address string and increments the length by four. - - BCR Options - - BCR OPEN - - +--------+--------+------ - |00000100| length | data - +--------+--------+------ - Type=4 - - BCR CLOSE - - +--------+--------+------ - |00000101| length | data - +--------+--------+------ - Type=5 - - BCR OTHER - - +--------+--------+------ - |00000110| length | data - +--------+--------+------ - Type=6 - - These options are used with the BCR. - - Stream Identifier - - +--------+--------+---------+--------+ - |00001000|00000010| Stream ID | - +--------+--------+---------+--------+ - Type=8 Length=2 - - This option provides a way for the 16-bit SATNET stream identifier - to be carried through networks that do not support the stream - concept. - - General Error Report - - +--------+--------+--------+--------+--------//--------+ - |00100001| length |err code| id | | - +--------+--------+--------+--------+--------//--------+ - Type=33 - - - - -Postel [page 5] - - - - August 1979 -Protocol Options IEN 114 - - - - The general error report is used to report an error detected in - processing an internet packet to the originator of that packet. The - "err code" indicates the type of error detected and the "id" is - copied from the identification field of the packet in error, - additional octets of error information may be present depending on - the err code. - - ERR CODE: - - 0 - Undetermined Error, used when no information is available - about the type of error or the error does not fit any defined - class. Following the id should be as much of the datagram as fits - in the option space. - - No err codes have been defined for specific classes as yet. - - Internet Timestamp - - +--------+--------+--------+--------+--------+--------+ - |01000100|00000100| time in milliseconds | - +--------+--------+--------+--------+--------+--------+ - Type=68 Length=4 - - The data of the timestamp is a 32 bit time measured in milliseconds. - - Satellite Timestamp - - +--------+--------+--------+--------+--------+--------+ - |01000101|00000100| time in milliseconds | - +--------+--------+--------+--------+--------+--------+ - Type=69 Length=4 - - The data of the timestamp is a 32 bit time measured in milliseconds. - -The options are just that, optional. That is, the presence or absence -of an option is the choice of the sender, but each internet module must -understand how to process every option. - - - - - - - - - - - - -[page 6] Postel - - - -August 1979 -IEN 114 Protocol Options - - - -Transmission Control Protocol Options -------------------------------------- - -Options may occupy space at the end of the TCP header and are a multiple -of 8 bits in length. All options are included in the checksum. An -option may begin on any octet boundary. All options have the same basic -format: - - Option kind: 8 bits - - Option length: 8 bits - - Length in octets (including the two octets of length and kind - information) - - There are two special cases for options. - - The first is the End-of-Options option. Only one octet is - associated with this option, the kind octet itself. - - The second is the No-Operation option and is also one octet long. - - Note that the list of options may be shorter than the data offset - field might imply. The content of the header beyond the End-of-Option - option should be header padding (i.e., zero). - -Currently defined options include (kind indicated in octal): - - Kind Length Meaning - ---- ------ ------- - 0 - End of option list. - 1 - No-Operation. - 100 - Reserved. - 105 4 Buffer Size. - - - - - - - - - - - - - - - -Postel [page 7] - - - - August 1979 -Protocol Options IEN 114 - - - -Specific Option Definitions - - End of Option List - - +--------+ - |00000000| - +--------+ - Kind=0 - - This option code indicates the end of the option list. This might - not coincide with the end of the TCP header according to the Data - Offset field. This is used at the end of all options, not the end - of each option, and need only be used if the end of the options - would not otherwise coincide with the end of the TCP header. - - No-Operation - - +--------+ - |00000001| - +--------+ - Kind=1 - - This option code may be used between options, for example, to align - the beginning of a subsequent option on a word boundary. There is - no guarantee that senders will use this option, so receivers must be - prepared to process options even if they do not begin on a word - boundary. - - Buffer Size - - +--------+--------+---------+--------+ - |01000101|00000100| buffer size | - +--------+--------+---------+--------+ - Kind=105 Length=4 - - Buffer Size Option Data: 16 bits - - If this option is present, then it communicates the receive buffer - size at the TCP which sends this segment. This field should only - be sent in segments with the SYN control bit set. If this option - is not used, the default buffer size of one octet is assumed. - - - - - - - - -[page 8] Postel - - - -August 1979 -IEN 114 Protocol Options - References - - - -References ----------- - -[1] Postel, J., "Internetwork Protocol," IEN 111, USC/Information - Sciences Institute, August 1979. - -[2] Postel, J., "Transmission Control Protocol," IEN 112, - USC/Information Sciences Institute, August 1979. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [page 9] - diff --git a/text/ien/ien115.txt b/text/ien/ien115.txt deleted file mode 100644 index 14541289..00000000 --- a/text/ien/ien115.txt +++ /dev/null @@ -1,231 +0,0 @@ - - - - J. Postel -IEN 115 ISI - August 1979 - - - - ADDRESS MAPPINGS - ---------------- - - - -Internet Address ----------------- - - This memo describes the relationship between address fields used in - the Internet Protocol (IP) [1] and several specific networks. - - An internet address is a 32 bit quantity, divided into an 8 bit - network number and a 24 bit local address as shown below. - - +--------+--------+--------+--------+ - | Net | Local Address | - +--------+--------+--------+--------+ - - The local address carries information to address a host in the - network identified by the network number. Since each network has a - particular address format and length, the following section describes - the mapping between internet local addresses and the actual address - format used in the particular network. - -Internet to Local Net Address Mappings --------------------------------------- - - The following transformations are used to convert internet addresses - to local net addresses and vice versa: - - ARPANET - ------- - - The ARPANET (with 96 bit leaders) has 24 bit addresses. The 24 - bits are assigned to host, logical host, and IMP fields as - illustrated below. These 24 bit addresses are used directly - for the 24 bit local address of the internet address. - - The network number of the ARPANET is 10. - - +--------+--------+--------+ - | HOST | LH | IMP | - +--------+--------+--------+ - 8 8 8 - - - -Postel [Page 1] - - - August 1979 -IEN 115 Address Mappings - - - - SATNET - ------ - - The Atlantic Satellite Packet Network has 16 bit addresses for - hosts. These addresses may be assigned independent of location - (i.e., ground station). It is also possible to assign several - addresses to one physical host, so the addresses are logical - addresses. The 16 bit SATNET address is located in the 24 bit - internet local address as shown below. - - The network number of the SATNET is 4. - - +--------+----------------+ - | ZERO | HOST | - +--------+----------------+ - 8 16 - - PRNET - ----- - - The Packet Radio networks use 16 bit addresses. These are - independent of location (indeed the hosts may be mobile). The - 16 bit PRNET addresses are located in the 24 bit internet local - address as shown below. - - The network numbers of the PRNETs are: - - BBN-PR 1 - SF-PR-1 2 - SILL-PR 5 - SF-PR-2 6 - BRAGG-PR 9 - DC-PR 20 - - +--------+----------------+ - | ZERO | HOST | - +--------+----------------+ - 8 16 - - LCSNET - ------ - - The LCS NET at MIT's Laboratory for Computer Science uses 32 - bit addresses of several formats. Please see [2] for more - details. The most common format locates the low order 24 bits - of the 32 bit LCS NET address in the 24 bit internet local - address, as shown below. - - - -Postel [Page 2] - - - August 1979 -IEN 115 Address Mappings - - - - The network number of the LCS NET is 18. - - +--------+--------+--------+ - | SUB |RESERVED| HOST | - | NET | | | - +--------+--------+--------+ - 8 8 8 - - EDN - --- - - The Experimental Data Network at the Defense Communication - Engineering Center (DCEC) uses the old 1822 32 bit leader, and - so has 8 bit addresses. These 8 bit EDN addresses are located - in the 24 bit internet local address as shown below. - - The network number of the EDN is 21. - - +------+--+----------+------+ - | | H| | | - | ZERO | O| ZERO | IMP | - | | S| | | - | | T| | | - +------+--+----------+------+ - 6 2 10 6 - - DCNs - ---- - - The DCNs at COMSAT and UCL use 16 bit addresses divided into an - 8 bit host identifier (HID), and an 8 bit process identifier - (PID). The format locates these 16 bits in the low order 16 - bits of the 24 bit internet address, as shown below. - - The network number of the CONSAT-DCN is 29, and of the UCL-DCN - is 30. - - +--------+--------+--------+ - | ZERO | HID | PID | - +--------+--------+--------+ - 8 8 8 - - - - - - - - - -Postel [Page 3] - - - August 1979 -IEN 115 Address Mappings - - - -References ----------- - - [1] Jonathan B. Postel, "Internet Protocol," USC/Information - Sciences Institute, IEN 111, August 1979. - - [2] Noel Chiappa, David Clark, David Reed, "LCS Net Address - Format," M.I.T. Laboratory for Computer Science Network - Implementation, Note No.5, IEN 82, February 1979. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 4] diff --git a/text/ien/ien116.txt b/text/ien/ien116.txt deleted file mode 100644 index 2db74137..00000000 --- a/text/ien/ien116.txt +++ /dev/null @@ -1,522 +0,0 @@ - - -IEN 116 J. Postel - ISI - August 1979 -Obsoletes: 89, 61 - - - - INTERNET NAME SERVER - -------------------- - -INTRODUCTION ------------- - -This memo defines the procedure to access an Internet Name Server. Such -a server provides the actual addresses of hosts in the internet when -supplied with a host name. An Internet Name Server is a dynamic -name-to-number translation service. - -This server utilizes the User Datagram Protocol (UDP) [2], which in turn -calls on the Internet Protocol (IP) [3]. - -NAME SYNTAX ------------ - -It is strongly recommended that the use of host names in programs be -consistent for both input and output across all hosts. To promote such -consistency of the internet level, the following syntax is specified: - -The SYNTAX of names as presented to the user and as entered by the user -is: - - ! NET ! REST - - where: - - NET is a network name or number as defined in "Assigned Numbers" [1] - - and - - REST is a host name within that network expressed as a character - string or as a number. When a number is used, it is expressed in - decimal and is prefixed with a sharp sign (e.g., #1234). - - Note that this syntax has minimal impact on the allowable character - strings for host names within a network. The only restriction is that - a REST string cannot begin with an exclamation point (!). - - The !NET! may be omitted when specifying a host in the local network. - That is "!" indicates the network portion of a name string. - - - - - -Postel [page 1] - - - August 1979 -Internet Name Server IEN 116 - - - -BASIC NAME SERVER ------------------ - -To aid in the translation of names to internet addresses, several name -server processes will be provided. The name server process will accept -a name in the above form and will return a name, address pair. - -The name server processes will have well-known addresses; addresses that -are constant over long periods of time and published in documents such -as "Assigned Numbers" [1]. - -A request sent to a name server is sent as a user datagram [2] with the -following content: - - +--------+--------+--------+--------+--------+--------+---\\---+ - | | | | - | NAME | LENGTH | NAME STRING | - | | | | - +--------+--------+--------+--------+--------+--------+---\\---+ - - where: - - NAME is a one octet code indicating that the following is a name, - - LENGTH is a one octet count of the number of octets in the name - string, and - - NAME STRING is an ASCII character string of the form ! NET ! REST. - -A reply to a successful translation is sent as a user datagram with the -following content: - - +--------+--------+--------+--------+--------+--------+---\\---+ - | | | | - | NAME | LENGTH | NAME STRING | - | | | | - +--------+--------+--------+--------+--------+--------+---\\---+ - | | | | - | ADDRESS| LENGTH | INTERNET ADDRESS | - | | | | - +--------+--------+--------+--------+--------+--------+ - - - - - - - - - -[page 2] Postel - - -August 1979 -IEN 116 Internet Name Server - - - - where: - - ADDRESS is a one octet code indicating that the following is an - internet address, - - LENGTH is a one octet count (=4) of the length of the internet - address, and - - INTERNET ADDRESS is the internet address. - -Actually a particular name might map to several internet addresses, in -this case the response would include a list of internet addresses. - -When a name is not found, an error is reported via a user datagram as -follows: - - +--------+--------+--------+--------+--------+--------+---\\---+ - | | | | - | NAME | LENGTH | NAME STRING | - | | | | - +--------+--------+--------+--------+--------+--------+---\\---+ - | | | ERROR | | - | ERROR | LENGTH | CODE | ERROR STRING | - | | | | | - +--------+--------+--------+--------+--------+--------+---\\---+ - - where: - - ERROR CODE specifies the error. - - ERROR STRING explains the error. - -Error Codes - - The following error codes are defined: - - CODE MEANING - ---- ------- - 0 Undetermined or undefined error - 1 Name not found - 2 Improper name syntax - -Communication with a Name Server Process - - Communication with a name server process is via user datagrams. User - datagrams do not guarantee reliable communication. Thus, some - requests or replies may be lost. - - - -Postel [page 3] - - - August 1979 -Internet Name Server IEN 116 - - - - The name server process is a transaction oriented process; - furthermore, the nature of the transactions allows them to be - processed in any order and even to be duplicated. This allows the use - of a very simple communication protocol. - - If a request is made to the name server process and no response is - received within a reasonable time, then the requester should make the - request again. This recovers from communication errors which cause - the loss of either the request or the reply. - - In order to use this simple strategy, care must be taken to allow - replies to be properly matched with requests. The name server process - does this by including in each reply a copy of the entire request. - - The user datagram protocol does provide a checksum for the detection - of errors. - -Format - - The requests and replies to and from a name server process are encoded - as "items". An item consists of an item-code an item-length and the - item-data. The item-length includes in its count the item-count and - the item-length octets. - - Item := Item-Code Item-Length Item-Data - - +--------+--------+--------+--------+--------+--------+---\\---+ - | | | | - | Item | Item | Item | - | Code | Length | Data | - | | | | - +--------+--------+--------+--------+--------+--------+---\\---+ - - A request is typically one item, and a reply is typically two items. - - - +--------+--------+--------+--------+ - |ItemCode|Item Len|... Item Data ...| - +--------+--------+--------+--------+ - | ......... Item Data cont ........ | - +--------+--------+--------+--------+ - | Item Data cont. |ItemCode|Item Len| - +--------+--------+--------+--------+ - | ........... Item Data ........... | - +--------+--------+--------+--------+ - - - - - -[page 4] Postel - - -August 1979 -IEN 116 Internet Name Server - - - -Item Code Value Assignments: - - NAME = 1 - - ADDRESS = 2 - - ERROR = 3 - -Example - - a typical request: - - - +-----------------+--------+--------+ - | 1 | 12 | ! | A | - +--------+--------+--------+--------+ - | R | P | A | ! | - +--------+--------+--------+--------+ - | I | S | I | B | - +--------+--------+--------+--------+ - - and the reply: - - - +-----------------+--------+--------+ - | 1 | 12 | ! | A | - +--------+--------+--------+--------+ - | R | P | A | ! | - +--------+--------+--------+--------+ - | I | S | I | B | - +--------+--------+--------+--------+ - | 2 | 6 | 10 | 3 | - +--------+--------+--------+--------+ - | 0 | 52 | - +--------+--------+ - - - - - - - - - - - - - - - -Postel [page 5] - - - August 1979 -Internet Name Server IEN 116 - - - -EXTENDED NAME SERVER --------------------- - -Several extensions have been proposed [4], the following two are -adopted: partially specified names, and a service field. - -In the first extension partially specified names are allowed and are -indicated by the use of "wild card" fields or characters. - -Wild Card Field Meaning ---------------- ------- - * All - ~ Local (Same as that of the requestor) - -Wild Card Character Meaning ---------------- ------- - * Any substring - -Examples: - - !~!* all hosts on the net of the requestor. - - !*!SRI* all hosts with names whose first three characters - are SRI on all nets - -In general, there are three cases for each of the net and host fields. -Using the symbols N for named network and H for named host the 9 cases -are: - - !~!~ local net, local host - - !~!* local net, all hosts - - !~!H local net, named host - - !*!~ all nets, local host - - !*!* all nets, all hosts - - !*!H all nets, named host - - !N!~ named net, local host - - !N!* named net, all hosts - - !N!H named net, named host - - - - -[page 6] Postel - - -August 1979 -IEN 116 Internet Name Server - - - -When such a request is processed and the result is more than one -name/address pair, the response is all the pairs. - -Examples: - - 1) - - request: - - !ARPA!ISI* - - response: - - !ARPA!ISIA 10 1 0 22 - - !ARPA!ISIB 10 3 0 52 - - !ARPA!ISIC 10 2 0 22 - - !ARPA!ISID 10 3 0 22 - - !ARPA!ISIE 10 1 0 52 - - 2) - - request: - - !~!SRI-R2D2 - - response: - - !ARPA!SRI-R2D2 10 3 0 51 - - !SF-PR-1!SRI-R2D2 2 0 0 11 - - 3) - - request: - - !*!ISIA - - response: - - !ARPA!ISIA 10 1 0 22 - -The second extension is that a third field may be appended to the name. -This is the SERVICE field. - - - -Postel [page 7] - - - August 1979 -Internet Name Server IEN 116 - - - - ! NET ! HOST ! SERVICE - -To reply to a request of this form the name server must provide the -internet address (net and host), the protocol number, and the port -number. - - +--------+--------+--------+--------+--------+--------+---\\---+ - | | | | - | NAME | LENGTH | NAME STRING | - | | | | - +--------+--------+--------+--------+--------+--------+---\\---+ - | | | | - | ADDRESS| LENGTH | INTERNET ADDRESS | - | | | | - +--------+--------+--------+--------+--------+--------+ - | | | | - |PROTOCOL| PORT | - | | | | - +--------+--------+--------+ - -Examples: - - 1) - - request: - - !ARPA!ISIA!TELNET - - response: - - !ARPA!ISIA!TELNET 10 1 0 22 6 0 23 - - 2) - - request: - - !ARPA!*!NAME-SERVER - - response: - - !ARPA!SRI-KL!NAME-SERVER 10 1 0 2 17 42 - - - - - - - - - -[page 8] Postel - - -August 1979 -IEN 116 Internet Name Server -References - - - -References ----------- - -[1] J. Postel. "Assigned Numbers," IEN 117, USC/Information Sciences - Institute, August 1979. - -[2] J. Postel. "User Datagram Protocol," IEN 88, USC/Information - Sciences Institute, May 1979. - -[3] J. Postel. "Internet Protocol," IEN 111, USC/Information - Sciences Institute, August 1979. - -[4] J. Pickens, E. Feinler, and J. Mathis. "The NIC Name Server -- A - Datagram Based Information Utility," Proceedings of the Fourth - Berkeley Conference on Distributed Data Management and Computer - Networks, pp. 275-283, August 1979. - - - -Acknowledgments ---------------- - -John Pickens contributed the ideas for the Extended Name Server. - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [page 9] - diff --git a/text/ien/ien117.txt b/text/ien/ien117.txt deleted file mode 100644 index 9f9de08f..00000000 --- a/text/ien/ien117.txt +++ /dev/null @@ -1,696 +0,0 @@ - - - - - -Network Working Group J. Postel -Request for Comments: 758 USC-ISI -IEN: 117 August 1979 - -Obsoletes RFCs: 755, -750,739, 604, 503, 433, 349 -Obsoletes IENs: 93 - - - - ASSIGNED NUMBERS - - - - -This Network Working Group Request for Comments documents the currently -assigned values from several series of numbers used in network protocol -implementations. This RFC will be updated periodically, and in any case -current information can be obtained from Jon Postel. The assignment of -numbers is also handled by Jon. If you are developing a protocol or -application that will require the use of a link, socket, etc. please -contact Jon to receive a number assignment. - - Jon Postel - USC - Information Sciences Institute - 4676 Admiralty Way - Marina del Rey, California 90291 - - phone: (213) 822-1511 - - ARPANET mail: POSTEL@ISIB - -Most of the protocols mentioned here are documented in the RFC series of -notes. The more prominent and more generally used are documented in the -Protocol Handbook [1] prepared by the Network Information Center (NIC). -In the lists that follow a bracketed number, e.g. [1], off to the right -of the page indicates a reference for the listed protocol. - - - - - - - - - - - - - - -Postel [Page 1] - - -RFC 758 August 1979 -IEN 117 Assigned Numbers -Network Numbers - - - - ASSIGNED NETWORK NUMBERS - - This list of network numbers is used in the internetwork, the field - is 8 bits in size. - - Assigned Network Numbers - - Decimal Octal Name Network References - ------- ----- ---- ------- ---------- - 0 0 Reserved - 1 1 BBN-PR BBN Packet Radio Network - 2 2 SF-PR-1 SF Bay Area Packet Radio Network (1) - 3 3 BBN-RCC BBN RCC Network - 4 4 SATNET Atlantic Satellite Network - 5 5 SILL-PR Ft. Sill Packet Radio Network - 6 6 SF-PR-2 SF Bay Area Packet Radio Network (2) - 7 7 CHAOS MIT CHAOS Network - 8 10 CLARKNET SATNET subnet for Clarksburg - 9 11 BRAGG-PR Ft. Bragg Packet Radio Network - 10 12 ARPANET ARPANET [1,2] - 11 13 UCLNET University College London Network - 12 14 CYCLADES CYCLADES - 13 15 NPLNET National Physical Laboratory - 14 16 TELENET TELENET - 15 17 EPSS British Post Office EPSS - 16 20 DATAPAC DATAPAC - 17 21 TRANSPAC TRANSPAC - 18 22 LCSNET MIT LCS Network [37,38] - 19 23 TYMNET TYMNET - 20 24 DC-PR Washington D.C. Packet Radio Network - 21 25 EDN DCEC EDN - 22 26 DIALNET DIALNET [47,48] - 23 27 MITRE MITRE Cablenet [23] - 24 30 BBN-LOCAL BBN Local Network - 25 31 RSRE-PPSN RSRE / PPSN - 26 32 AUTODIN-II AUTODIN II - 27 33 NOSC-LCCN NOSC / LCCN - 28 34 WIDEBAND Wide Band Satellite Network - 29 35 DCN-COMSAT COMSAT Distributed Computing Network - 30 36 DCN-UCL UCL Distributed Computing Network - 31 37 BBN-SAT-TEST BBN SATNET Test Network - 32-254 40-376 Unassigned - 255 377 Reserved - - - - - - -Postel [Page 2] - - -RFC 758 August 1979 -IEN 117 Assigned Numbers -Internet Protocol Versions - - - - ASSIGNED INTERNET PROTOCOL VERSIONS - - In the Internet Protocol (IP) there is a field to identify the - version of the internetwork general protocol. This field is 4 bits - in size. - - Assigned Internet Protocol Versions - - Decimal Octal Version References - ------- ----- ------- ---------- - 0 0 March 1977 version [35] - 1 1 January 1978 version [36] - 2 2 February 1978 version A [42] - 3 3 February 1978 version B [43] - 4 4 August 1979 version 4 [44] - 5-14 5-16 Unassigned - 15 17 Reserved - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 3] - - -RFC 758 August 1979 -IEN 117 Assigned Numbers -Internet Protocol Numbers - - - - ASSIGNED INTERNET PROTOCOL NUMBERS - - In the Internet Protocol (IP) [44] there is a field to identify the - the next level protocol. This field is 8 bits in size. This field - is called Protocol in the IP header. - - Assigned Internet Protocol Numbers - - Decimal Octal Protocol Numbers References - ------- ----- ---------------- ---------- - 0 0 Reserved - 1 1 raw internet datagrams [44] - 2 2 TCP-3 [36] - 3 3 Gateway-to-Gateway [49] - 4 4 Gateway Monitoring Message [41] - 5 5 TCP-3.1 [45] - 6 6 TCP-4 [46] - 7 7 UCL - 8 10 DSP [37,38] - 9 11 Secure - 10 12 TCP-2 [35] - 11 13 NVP [39] - 12 14 Unassigned - 13 15 Pluribus - 14 16 Telenet - 15 17 XNET - 16 20 Chaos - 17 21 User Datagram [50] - 18 22 Multiplexing [51] - 19-63 23-77 Unassigned - 64 100 EXPAK cumstats - 65 101 EXPAK PC messages - 66 102 Unassigned - 67 103 Gateway Monitoring - 68 104 Unassigned - 69 105 SIMP monitoring - 70 106 SIMP polling - 71 107 SIMP packet core/U - 72-76 110-114 Unassigned - 77 115 backroom SIMP polling - 78 116 backroom SIMP monitoring - 79 117 SIMP message generators - 80-254 120-376 Unassigned - 255 377 Reserved - - - - - -Postel [Page 4] - - -RFC 758 August 1979 -IEN 117 Assigned Numbers -Port or Socket Numbers - - - - ASSIGNED PORT or SOCKET NUMBERS - - Ports are used in the TCP [46] and sockets are used in the AHHP [1,3] - to name the ends of logical connections which carry long term - conversations. For the purpose of providing services to unknown - callers a service contact socket is defined. This list specifies the - port or socket used by the server process as its contact socket. In - the AHHP an Initial Connection Procedure ICP [1,34] is used between - the user process and the server process to make the initial contact - and establish the long term connections leaving the contact socket - free to handle other callers. In the TCP no ICP is necessary since a - port may engage in many simultaneous connections. - - Socket Assignments: - - General Assignments: - - Decimal Octal Description - ------- ----- ----------- - 0-63 0-77 Network Wide Standard Function - 64-127 100-177 Hosts Specific Functions - 128-223 200-337 Reserved for Future Use - 224-255 340-377 Any Experimental Function - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 5] - - -RFC 758 August 1979 -IEN 117 Assigned Numbers -Port or Socket Numbers - - - - Specific Assignments: - - Network Standard Functions - - Decimal Octal Description References - ------- ----- ----------- ---------- - 1 1 Old Telnet [6] - 3 3 Old File Transfer [7,8,9] - 5 5 Remote Job Entry [1,10] - 7 7 Echo [11] - 9 11 Discard [12] - 11 13 Who is on or SYSTAT - 13 15 Date and Time - 15 17 Who is up or NETSTAT - 17 21 Short Text Message - 19 23 Character generator or TTYTST [13] - 21 25 New File Transfer [1,14,15] - 23 27 New Telnet [1,16,17] - 25 31 Distributed Programming System [18,19] - 27 33 NSW User System w/COMPASS FE [20] - 29 35 MSG-3 ICP [21] - 31 37 MSG-3 Authentication [21] - 33 41 DPS ICP [18,19] - 35 43 IO Station Spooler - 37 45 Time Server [1,22] - 39 47 NSW User System w/SRI FE [20] - 41 51 Graphics [1,26] - 42 52 Name Server [52] - 43 53 WhoIs - 45 55 Internet Message Processing Module [53] - 47-63 57-77 unassigned - - - - - - - - - - - - - - - - - - -Postel [Page 6] - - -RFC 758 August 1979 -IEN 117 Assigned Numbers -Port or Socket Numbers - - - - Host Specific Functions - - Decimal Octal Description References - ------- ----- ----------- ---------- - 65 101 unassigned - 67 103 Datacomputer at CCA [24] - 69 105 CPYNET - 71 107 NETRJS (EBCDIC) at UCLA-CCN [1,25] - 73 111 NETRJS (ASCII-68) at UCLA-CCN [1,25] - 75 113 NETRJS (ASCII-63) at UCLA-CCN [1,25] - 77 115 any private RJE server - 79 117 Name or Finger [1,40] - 81 121 Network BSYS - 83 123 MIT ML Device - 85 125 MIT ML Device - 86-94 126-136 unassigned - 95 137 SUPDUP [33] - 97 141 Datacomputer Status - 98-127 142-136 unassigned - - Reserved for Future Use - - Decimal Octal Description References - ------- ----- ----------- ---------- - 128-223 200-337 reserved - - Experimental Functions - - Decimal Octal Description References - ------- ----- ----------- ---------- - 224-231 340-347 unassigned - 232-237 350-355 Authorized Mailer at BBN - 239 357 unassigned - 241 361 NCP Measurement [27,28] - 243 363 Survey Measurement [28,29,30] - 245 365 LINK [31] - 247 367 TIPSRV - 249-255 371-377 RSEXEC [31,32] - - - - - - - - - - - -Postel [Page 7] - - -RFC 758 August 1979 -IEN 117 Assigned Numbers -Link Numbers - - - - ASSIGNED LINK NUMBERS - - The word "link" here refers to a field in the original ARPANET - Host/IMP interface leader. The link was originally defined as an 8 - bit field. Some time after the ARPANET Host-to-Host (AHHP) protocol - was defined and, by now, some time ago the definition of this field - was changed to "Message-ID" and the length to 12 bits. The name link - now refers to the high order 8 bits of this 12 bit message-id field. - The low order 4 bits of the message-id field are to be zero unless - specifically specified otherwise for the particular protocol used on - that link. The Host/IMP interface is defined in BBN report 1822 [2]. - - Link Assignments: - - Decimal Octal Description References - ------- ----- ----------- ---------- - 0 0 AHHP Control Messages [1,3] - 1 1 Reserved - 2-71 2-107 AHHP Regular Messages [1,3] - 72-151 110-227 Reserved - 152 230 PARC Universal Protocol - 153 231 TIP Status Reporting - 154 232 TIP Accounting - 155-158 233-236 Internet Protocol [44] - 159-191 237-277 Measurements [28] - 192-195 300-303 Message Switching Protocol [4,5] - 196-255 304-377 Experimental Protocols - 224-255 340-377 NVP [1,39] - - - - - - - - - - - - - - - - - - - - - -Postel [Page 8] - - -RFC 758 August 1979 -IEN 117 Assigned Numbers -References - - - - REFERENCES - - [1] Feinler, E. and J. Postel, eds., "ARPANET Protocol Handbook," - NIC 7104, for the Defense Communications Agency by SRI - International, Menlo Park, California, Revised January 1978. - - [2] BBN, "Specifications for the Interconnection of a Host and an - IMP," Report 1822, Bolt Beranek and Newman, Cambridge, - Massachusetts, January 1976. - - [3] McKenzie,A. "Host/Host Protocol for the ARPA Network," - NIC 8246, January 1972. Also in [1]. - - [4] Walden, D. " A System for Interprocess Communication in a - Resource Sharing Network," RFC 62, NIC 4962, 3 August 1970. - Also published in Communications of the ACM, volume 15, - number 4, April 1972. - - [5] Bressler, B. "A Proposed Experiment with a Message Switching - Protocol," RFC 333, NIC 9926, 15 May 72. - - [6] Postel, J. "Telnet Protocol," RFC 318, NIC 9348, 3 April 1972. - - [7] McKenzie, A. "File Transfer Protocol," RFC 454, NIC 14333, - 16 February 1973. - - [8] Clements, R. "FTPSRV -- Extensions for Tenex Paged Files," - RFC 683, NIC 32251, 3 April 1975. Also in [1]. - - [9] Harvey, B. "One More Try on the FTP," RFC 691, NIC 32700, - 6 June 1975. - - [10] Bressler, B. "Remote Job Entry Protocol," RFC 407, NIC 12112, - 16 October 72. Also in [1]. - - [11] Postel, J. "Echo Process," RFC 347, NIC 10426, 30 May 1972. - - [12] Postel, J. "Discard Process," RFC 348, NIC 10427, - 30 May 1972. - - [13] Postel, J. "Character Generator Process," RFC 429, NIC 13281, - 12 December 1972. - - [14] Neigus, N. "File Transfer Protocol," RFC 542, NIC 17759, - 12 July 1973. Also in [1]. - - - - -Postel [Page 9] - - -RFC 758 August 1979 -IEN 117 Assigned Numbers -References - - - - [15] Postel, J. "Revised FTP Reply Codes," RFC 640, NIC 30843, - 5 June 1974. Also in [1]. - - [16] McKenzie, A. "Telnet Protocol Specification," NIC 18639, - August 1973. Also in [1]. - - [17] McKenzie, A. "Telnet Option Specification," NIC 18640, - August 1973. Also in [1]. - - [18] White, J. "A High Level Framework for Network-Based Resource - Sharing," RFC 707, NIC 34263, 14 January 1976. Also in NCC - Proceedings, AFIPS, June 1976. - - [19] White, J. "Elements of a Distributed Programming System," - RFC 708, NIC 34353, 28 January 1976. - - [20] COMPASS. "Semi-Annual Technical Report," CADD-7603-0411, - Massachusetts Computer Associates, 4 March 1976. Also as, - "National Software Works, Status Report No. 1," - RADC-TR-76-276, Volume 1, September 1976. And COMPASS. "Second - Semi-Annual Report," CADD-7608-1611, Massachusetts Computer - Associates, 16 August 1976. - - [21] NSW Protocol Committee, "MSG: The Interprocess Communication - Facility for the National Software Works," CADD-7612-2411, - Massachusetts Computer Associates, BBN 3237, Bolt Beranek and - Newman, Revised 24 December 1976. - - [22] Harrenstien, K. "Time Server," RFC 738, NIC 42218, - 31 October 1977. Also in [1]. - - [23] Skelton, A., S. Holmgren, and D. Wood, "The MITRE Cablenet - Project," IEN 96, April 1979. - - [24] CCA, "Datacomputer Version 1 User Manual," Computer - Corporation of America, August 1975. - - [25] Braden, R. "NETRJS Protocol," RFC 740, NIC 42423, - 22 November 1977. Also in [1]. - - [26] Sproull, R, and E. Thomas. "A Networks Graphics Protocol," - NIC 24308, 16 August 1974. Also in [1]. - - [27] Cerf, V., "NCP Statistics," RFC 388, NIC 11360, - 23 August 1972. - - - - -Postel [Page 10] - - -RFC 758 August 1979 -IEN 117 Assigned Numbers -References - - - - [28] Cerf, V., "Formation of a Network Measurement Group (NMG)," - RFC 323, NIC 9630, 23 March 1972. - - [29] Bhushan, A., "A Report on the Survey Project," RFC 530, - NIC 17375, 22 June 1973. - - [30] Cantor, D., "Storing Network Survey Data at the Datacomputer," - RFC 565, NIC 18777, 28 August 1973. - - [31] Bressler, R., "Inter-Entity Communication -- An Experiment," - RFC 441, NIC 13773, 19 January 1973. - - [32] Thomas, R. "A Resource Sharing Executive for the ARPANET," - AFIPS Conference Proceedings, 42:155-163, NCC, 1973. - - [33] Crispin, M. "SUPDUP Protocol," RFC 734, NIC 41953, - 7 October 1977. Also in [1]. - - [34] Postel, J. "Official Initial Connection Protocol," NIC 7101, - 11 June 1971. Also in [1]. - - [35] Cerf, V. "Specification of Internet Transmission Control - Program -- TCP (version 2)," March 1977. - - [36] Cerf, V. and J. Postel, "Specification of Internetwork - Transmission Control Program -- TCP Version 3," - USC/Information Sciences Institute, January 1978. - - [37] Reed, D. "Protocols for the LCS Network," Local Network Note - 3, Laboratory for Computer Science, MIT, 29 November 1976. - - [38] Clark, D. "Revision of DSP Specification," Local Network Note - 9, Laboratory for Computer Science, MIT, 17 June 1977. - - [39] Cohen, D. "Specifications for the Network Voice Protocol - (NVP)," NSC Note 68, 29 January 1976. Also as USC/Information - Sciences Institute RR-75-39, March 1976, and as RFC 741, - NIC 42444, 22 November 1977. Also in [1]. - - [40] Harrenstien, K. "Name/Finger," RFC 742, NIC 42758, - 30 December 1977. Also in [1]. - - [41] Cole, J. "Gateway Monitoring Messages," BBN, 1 February 1978. - - [42] Postel, J. "Draft Internetwork Protocol Specification -- - Version 2," USC/Information Sciences Institute, February 1978. - - - -Postel [Page 11] - - -RFC 758 August 1979 -IEN 117 Assigned Numbers -References - - - - [43] Cerf, V. "A Proposed New Internet Header Format," Advanced - Research Projects Agency, IEN 26, 14 February 1978. - - [44] Postel, J. "Internet Protocol," IEN-111, USC/Information - Sciences Institute, August 1979. - - [45] Cerf, V. "A Proposal for TCP Version 3.1 Header Format," - Advanced Research Projects Agency, IEN 26, 14 February 1978. - - [46] Postel, J., "Transmission Control Protocol," IEN-112, - USC/Information Sciences Institute, August 1979. - - [47] McCarthy, J. and L. Earnest, "DIALNET," Stanford University - Artificial Intelligence Laboratory, Undated. - - [48] Crispin, M. and I. Zabala, "DIALNET Protocols," Stanford - University Artificial Intelligence Laboratory, July 1978. - - [49] Strazisar, V, and R. Perlman, "Gateway Routing, An - Implementation Specification," IEN-30, Bolt Berenak and - Newman, April 1978. - - [50] Postel, J., "User Datagram Protocol," IEN-88, USC/Information - Sciences Institute, May 1979. - - [51] Cohen, D. and J. Postel, "Multiplexing Protocol," IEN-90, - USC/Information Sciences Institute, May 1979. - - [52] Postel, J., "Name Server," IEN-116, USC/Information Sciences - Institute, August 1979. - - [53] Postel, J., "Internet Message Protocol," RFC-759, IEN-113, - USC/Information Sciences Institute, August 1979. - - - - - - - - - - - - - - - - -Postel [Page 12] - \ No newline at end of file diff --git a/text/ien/ien118.txt b/text/ien/ien118.txt deleted file mode 100644 index cb648971..00000000 --- a/text/ien/ien118.txt +++ /dev/null @@ -1,59 +0,0 @@ - - - J. Postel -IEN 118 ISI - August 1979 -Obsoletes: 94 - - - - Internet Protocol Handbook - - - - - Table of Contents - - - - -Gateway Level - - Internet Datagram Protocol IEN-111 - - Gateway Routing: An Implementation Specification IEN-30 - -Host Level - - User Datagram Protocol IEN-88 - - Transmission Control Protocol IEN-112 - - Multiplexing Protocol IEN-90 - -Application Level - - Name Server Protocol IEN-116 - - Internet Message Protocol IEN-113 - -Appendices - - Protocol Options IEN-114 - - Address Mappings IEN-115 - - Assigned Numbers IEN-117 - - - - - - - - - - - -Postel [Page 1] - \ No newline at end of file diff --git a/text/ien/ien119.txt b/text/ien/ien119.txt deleted file mode 100644 index 2a9f17dc..00000000 --- a/text/ien/ien119.txt +++ /dev/null @@ -1,2180 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - IEN 119 - - - ST - A Proposed Internet Stream Protocol - - by - - James W. Forgie - - - M. I. T. Lincoln Laboratory - - 7 September 1979 - - - - - - - - - - - - - - - - - - - - - - - - - - IEN 119 ST.DOC 7 September 1979 - - - - - 1.0 INTRODUCTION - - The internet stream protocol (ST) described in this - document has been developed to support efficient delivery of - streams of packets to either single or multiple destinations in - applications requiring guaranteed data rates and controlled delay - characteristics. The principal applications with these - requirements are point-to-point speech communication and voice - conferencing. While ST has been developed as a part of the ARPA - Internet Program and has been formulated as an extension to the - presently defined Internet Protocol (IP), it is not likely to - find useful application in the current ARPA internet environment - where the networks and gateways lack the capacity to handle - significant speech communication. Instead, ST is aimed at - application in wideband networks, in particular those intended to - carry a large fraction of packet voice in their traffic mixes. - Work is currently underway on such networks both for local access - and long haul use. These networks will serve as vehicles for - research on techniques for flow and traffic control and as - testbeds for evaluating the potential of packet technology for - providing economical speech communication. The design of the ST - protocol represents a compromise among the sometimes conflicting - requirements of compatibility with the existing IP and the - gateways which handle it, the need for flexibility in supporting - flow and traffic control research, and transmission efficiency. - - The concepts in this protocol originated in the - deliberations of a working group consisting of Danny Cohen, Estil - Hoversten, and the author. They have been influenced by - interactions with many other people. In order to examine the - cost and feasibility of the protocol, the author has fleshed out - some aspects of the protocol in detail. The other working group - participants have not had an opportunity to approve or modify - these detailed aspects of the protocol, and consequently all - responsibility for them lies with the author. - - The state of the protocol is such that, while there are - still details to be worked out, implementation could begin if the - protocol were acceptable to those interested. - - - - - - - - - -2- - - - IEN 119 ST.DOC 7 September 1979 - - - 2.0 MOTIVATION AND GENERAL DESCRIPTION - - It is reasonable to ask why a new protocol is required to - handle applications such as point-to-point speech and voice - conferencing. This section addresses that question and begins - with a brief statement of the requirements for packet speech - communication. They are: - - 1. The network must be able to keep up with the data rate - requirements of the speech terminal. Because no bits - need be transmitted during silent intervals, the - average data rate for conversational speech can be - expected to be between 40 and 50% of the peak data rate - for commonly used constant-rate encoding techniques. - Experimental variable-rate encoding techniques have - exhibited higher peak-to-average ratios. The network - must be able to sustain the peak rate for the duration - of talkspurt that can be as long as 20 seconds. - - 2. The stream of packets containing a talkspurt (a - continuous segment of speech between silent intervals) - must be delivered with a delay dispersion whose spread - does not exceed some value that can be estimated with a - high probability of success prior to the start of the - talkspurt. Since the individual packets of the spurt - will experience different delays as they pass through - the net, delay must be added at the receiver to allow - continuous speech to be played out for the listener. - It is necessary to predict the value of this smoothing - delay before starting to play out the talkspurt. - Packets that are delayed more than the predicted - worst-case value will arrive too late to be used, and - gaps will occur in the output speech. - - 3. Overall delay should be kept low. If the overall - round-trip delay is less than about l/4 second, - conversations are carried out in a "normal" fashion - with considerable feedback from "listener" to "talker" - taking place. When greater delay is experienced, - people switch to a more formal mode in which feedback - utterances are mostly suppressed, and the listener - generally waits until the talker indicates that he has - finished before saying anything. User satisfaction - declines with increasing delay, but systems remain - usable for delays as long as several seconds. - - 4. The amount of speech for any one talker contained in a - packet (the basic unit subject to transmission loss) - should be kept small. The loss of small (50 msec or - less) chunks of speech produces a degradation of - quality, but sentence intelligibility tends to be - - - -3- - - - IEN 119 ST.DOC 7 September 1979 - - - preserved up to fairly high percentage losses. Larger - chunks of speech represent whole syllables or words, - and their loss can change the meaning of sentences. - - 5. Listeners will tolerate some packet loss without - downgrading the acceptability of the system, but the - probability of loss due to either failed or late - delivery must be kept in the order of 1% or less to be - considered acceptable for everyday (non-crisis) use. - - 6. As a network approaches its load limit it should reject - (or hold off) new offered load on a call basis not on - an individual packet basis. Continuing to accept new - calls beyond capacity can result in unsatisfactory - communication for many users. - - 7. If packet-switched speech transmission is to become - economically competitive with circuit-switched - transmission, a further requirement must be met. The - product of packet efficiency and average link - utilization must equal or exceed the efficiency of - circuit switching. That efficiency is defined as one - minus the fraction of the time that silence occurs in - conversational situations. Estimates of this fraction - for real-world conversations give values for efficiency - between 40 and 50%. We will use 45% as a convenient - figure for comparative purposes. Packet switching can - easily take advantage of the silent intervals in a - conversation by not transmitting packets, but that - advantage may be lost through the combination of - overhead bits in packet headers (packet efficiency) and - the difficulty of operating communication links at high - average utilization while keeping queueing delays - within reasonable bounds. - - Conventional datagram networks are unsatisfactory for - speech communication except under conditions of light overall - load or where speech constitutes a small fraction of the overall - load and can be given priority service. The difficulty with - datagram nets comes from their inability to provide the - controlled delay and guaranteed data rate required for speech. - Delay increases with offered load, slowly at light load, but - dramatically as average load approaches capacity. Flow control - strategies tend to be aimed at buffer management and fairness - goals, both of which will operate to restrict the effective data - rate available to an individual user as load increases. Traffic - control strategies are mainly concerned with congestion control - and are primarily defensive, resulting in offered datagrams being - held off or refused when difficulties are detected. - Unfortunately for the speech user, by the time congestion is - detected, it is already too late. For satisfactory speech - - - -4- - - - IEN 119 ST.DOC 7 September 1979 - - - service, congestion due to overload must be prevented. Since a - datagram net has no knowledge of the a priori requirements of - users, it cannot develop traffic control strategies to meet these - requirements. - - Another disadvantage of datagrams for speech is their - packet efficiency. The speech content of an individual user - packet can be anything from 50 or so bits up to 1200 or 1300 bits - depending upon the speech digitization technique in use. The - need to carry full source and destination addresses as well as - other packet-handling information in each packet penalizes - datagrams relative to other packet and circuit switching - techniques. In the internet case the penalty is worse since two - sets of header information have to be carried. - - For example, IP datagrams on SATNET carrying 40-msec - chunks of 16-kbps speech (a reasonaable chunk size and popular - data rate) would have a packet efficiency of about 56% and would - require utilization factors of about 80% to break even with - respect to circuit switching. It is unlikely that delay - characteristics would be satisfactory at this level of load. - - The goal of the ST design effort has been to attempt to - overcome both of the difficulties associated with datagrams. ST - uses abbreviated internet headers and also allows speech from - many talkers to be aggregated into single packets for - transmission on wide-band networks where such aggregation is - possible. For the case of ST messages on a wide-band SATNET each - carrying ten 40-msec chunks of 16-kbps speech for ten different - talkers, packet efficiency would be about 86% allowing break-even - link utilization to occur at 52%, a much more comfortable level - for assuring desirable delay characteristics. - - Overcoming the inability of datagram nets to maintain - data rates and delay characteristics as offered load increases is - more difficult to achieve than improving packet efficiency. - Circuit switching solves the problem by dedicating communication - capacity to individual streams. The goal of ST is to support - traffic control policies that match stated user requirements to - available resources taking into account the statistical - properties of these requirements rather than the peak - requirements used in circuit switching. ST does not itself - specify the traffic control algorithms to be used. The - development of such algorithms is an area of research that the - protocol is intended to support. Some algorithms may need only - rough statistical knowledge of user requirements and network - behavior. Others may want more detailed knowledge and need to - monitor the behavior of individual streams. The protocol is - intended to be general enough to support both extremes. A - successful traffic control algorithm would retain much of the - statistical multiplexing advantages of datagram nets while at the - - - -5- - - - IEN 119 ST.DOC 7 September 1979 - - - same time gaining much of the guaranteed data rate and controlled - delay capabilities of circuit switched nets. A packet net using - ST also has the ability of a circuit switched network to deny - access to, or negotiate lower rates with, users whose demands - would exceed capability. - - The ST protocol requires users to state the data rate and - delay requirements for a data stream before accepting any stream - data. These requirements are used by ST agents (host processes - and gateways) to determine whether or not resources are available - in the catenet to support the offered stream load. The - determination is based on knowledge of the stated requirements of - other users, negotiation with networks such as SATNET which have - built-in resource allocation mechanisms, and statistical load - estimates of traffic on networks that lack such mechanisms. In - order to accept the offered stream load, the cooperating agents - must find a route through networks with sufficient uncommitted - capacity to handle the new stream. In the process of routing the - stream, intermediate agents retain information about the stream. - The existence of this information allows the use of abbreviated - headers on stream data packets and the efficient distribution of - the multi-addressed packets required for conferencing. - - The process used by ST agents in finding a route with - sufficient capacity between source and destination is assumed to - use a distributed routing algorithm to take advantage of the - robustness and flexibility characteristic of distributed packet - routing techniques. In the simplest case, the result would be a - fixed-path internet route (a fixed set of intermediate agents - (gateways)) for the stream packets. In the event of gateway or - network failure, rerouting would be required. This can be - undertaken automatically, but success is not guaranteed, since - loss of the failed element or elements is likely to result in - inadequate capacity to carry the original load. Fixed-path - routing is not required by the protocol. If desired, dynamic - alternate routing of stream packets can be used at the discretion - of individual agents, but gateway implementation and the routing - process will be more complex if that option is chosen. The - protocol described in this document assumes fixed-path routing. - - The goal toward which the cooperating ST agents in a - catenet work is the maintenance of a controlled delay, guaranteed - data rate environment in which packet speech communications can - take place in a satisfactory fashion. Obviously, other non- - cooperating users of the networks involved in the catenet can - make it impossible to achieve that goal. Some independence of - other users can be obtained in some networks such as SATNET by - the use of dedicated resources. Gateways can be programmed to - throttle non-cooperating internet traffic. To some extent, - networks with poor delay characteristics can be avoided in the - routing process. Priority service can be used in some nets to - - - -6- - - - IEN 119 ST.DOC 7 September 1979 - - - allow small quantities (proportionately) of ST traffic to be - handled satisfactorily in spite of the activities of other users. - However, the success of ST or any other approach to handling - packet speech will require either the cooperation of all network - users or the involvement of the networks themselves in providing - the required controlled delay, guaranteed data rate services. - - 3.0 RELATIONSHIP TO IP - - ST is intended to operate as an extension of the - presently defined internet protocol (IP). ST provides a - different kind of service than the datagram service offered by - IP. ST must operate on the same level as IP in order to access - local net resources such as SATNET streams and to be able to take - advantage of any available local net multi-address delivery - capabilities to support conferencing applications. If an ST - agent shares a local net port with an IP datagram handler, the - two must cooperate in the use of the port to regulate traffic - flow through the port. - - In order to get the advantage of abbreviated headers on - stream packets, ST uses a different header format than that used - for IP datagrams. Packets with this format (see Section 5.0 for - details) are called ST packets in this document. They pass from - one ST agent to another, and the abbreviated header information - changes on a hop-to-hop basis. However, ST packets cannot be - transmitted until a route for the stream has been found and - intermediate agents have built routing tables to translate the - abbreviated headers. Since end-to-end negotiation between ST - users is often desirable before stream routing takes place, for - example to agree on vocoder type and data rate, and it is - convenient for a user to interface to only one protocol handler, - ST provides a second type of service. This service uses IP - datagrams with an "ST" value in the IP Protocol Field. These - packets are called "IP.ST" packets. They pass through datagram - handlers in gateways and reach ST agents only at their - destination hosts. - - A third type of packet is allowed by the protocol. This - type is realized by embedding an ST packet in an IP.ST packet. - This method of sending an ST packet allows it to pass through - gateways that do not support the ST protocol but do support IP - datagrams. Of course, the packet efficiency and traffic control - benefits of ST are lost in such a case, but the use of this - artifice could be justified on the grounds that any communication - is better than none. - - - - - - - - -7- - - - IEN 119 ST.DOC 7 September 1979 - - - 4.0 CONCEPTS - - The key concept in ST is that of a connection. - Connections are supported by entities called agents which are - made aware of the connection during a setup process that precedes - use of the connection for data transfer. - - 4.1 Agents - - There are four types of agents that may be involved in - supporting ST connections. They are: - - 4.1.1 ST Hosts - - The users of connections are processes that run in host - computers and communicate over connections through other - processes or software modules that adhere to the ST protocol. - Hosts having these processes or modules are called "ST hosts" (or - "hosts," when the context permits). ST hosts perform the - functions of gateway halves in interacting with gateways for - internet traffic. ST hosts share the management of local net ST - resources with the other agents on the local net and are capable - of routing connections to other agents as may be required. In - networks with local multi-addressing capability, ST hosts make - use of this capability in routing conference connections. In - networks lacking such capability, ST hosts may need to replicate - messages for conference connections unless a special agent called - a "replicator" is available in the local net. In some local nets - it may be desirable for hosts to forward traffic for conference - connections. The protocol allows but does not require the latter - capability. - - 4.1.2 ST Gateways - - ST gateways perform routing and forwarding functions very - similar to those performed by IP gateways. Unlike IP gateways, - they store information about the connections they support and - share the management of resources in the nets to which they are - connected with the other agents in those nets. Like hosts, ST - gateways may have to replicate packets for conference - connections. - - 4.1.3 Replicators - - In networks that lack multi-addressing or broadcast - capability it may be desirable to provide special server hosts to - handle the replication required for conferences. Replicators are - needed in situations where the load caused by replication would - produce congestion at a gateway port. Use of a replicator adds - delay and is probably not warranted unless the number of copies - needed in a particular net exceeds some threshold that depends - - - -8- - - - IEN 119 ST.DOC 7 September 1979 - - - upon network port capacity. In worst-case situations a daisy- - chain type of replication might be required because the peak rate - could not be sustained at any network site. The existence of a - replicator does not eliminate the need for replication in hosts - and gateways. For example, a host in a conference with some - participants on the same net but others on other nets may need to - send packets to one or more gateways for speedy internet delivery - as well as to a replicator for automatic distribution to other - local net participants. - - 4.1.4 Access Controllers - - The management of ST conference connections involves the - services of an access controller. The functions of an access - controller are to control conference participation and provide a - central source for information about the data rate requirements - of a conference connection. Ideally, access control services - would be provided by a set of hosts distributed throughout the - catenet that shared information about the connections being - controlled. The addresses of these public access controllers - would be known to all other agents, and a query to any one - controller would provide information about any connection. In - the absence of public access controllers, the protocol allows any - host to serve as a private access controller. It is proposed to - use a bit in the conference connection name to allow agents to - determine whether a public or private access controller is - responsible for a particular conference. The name identifies the - "owner" of the conference. The owner is also the access - controller in the private case. - - 4.2 Connections - - Most applications for ST connections require full-duplex - (bi-directional) communication between the parties in a point- - to-point connection and omni-directional communication among the - participants in a conference connection. In the design of the - protocol two different approaches to realizing the desired - capability have been considered. The first, called the simplex - approach, uses a combination of simplex (one-way) connections. - For example, in the simplex approach the caller requests a - simplex connection to the called party, who, after accepting the - connection, requests another simplex connection for the return - path to the caller. In the second, called the full-duplex - approach, the caller requests a full-duplex connection at the - outset, and as soon as the called party has accepted the - connection, data can flow in both directions. - - For conference connections, the simplex approach requires - each participant to request a simplex connection to all the - others. The full-duplex approach requires that a participant - request connection only to those that have not already requested - - - -9- - - - IEN 119 ST.DOC 7 September 1979 - - - connection to him. - - Both approaches can provide workable bases for the - required capabilities. The pros and cons for both may be - summarized as follows: - - 1. Simplex connections can take maximum advantage of - available resources by using different routes for the - forward and return paths. The routing of a full-duplex - connection is more likely to fail since a path with the - desired capacity in both directions must be found. - This advantage for simplex connections is most - pronounced in networks where load is assymetrical, a - situation to be expected in nets carrying relatively - heavy data loads. - - 2. Full-duplex connections can, except perhaps under - conditions of heavy load, be set up more rapidly and - with less control message traffic. The difference is - most pronounced for conference connections. With - full-duplex components of a conference connection, m-l - connection requests are required for an m-participant - conference, since each new participant must connect to - all those already in the conference. In the case of - simplex components each new participant must also - connect to all those already in the conference; but, in - addition, those already in must connect to each - newcomer. This activity adds sigma (m-l) connection - requests (and responses) to the setup procedure. - - 3. Simplex connections have an advantage in situations in - which two parties attempt to call each other at the - same time. The two simplex connections can easily be - combined into the required full-duplex connection. If - the two parties start out with full-duplex connections, - one of them must be refused or disconnected, a somewhat - more complex task for the higher level protocol - requesting the connection. - - This document proposes a full-duplex basis for ST - connections because the author believes that the advantage of - relative simplicity and efficiency in setting up conference - connections outweighs the advantages of the simplex basis. To - allow connections with assymetrical flow requirements, the - protocol allows users to specify different data rates in the two - directions. - - Even though traffic can flow in both directions on an ST - connection, the connection has an orientation, and packets are - said to move in either the "forward" or "backward" direction - depending on whether they are moving away from or toward the - - - -10- - - - IEN 119 ST.DOC 7 September 1979 - - - originator of the connection. - - ST provides two types of connections: Point-to-Point - (PTP) and Conference (CONF). PTP connections use different - packet header formats and setup procedures to reduce overhead and - allow faster setup for that more frequently used type. - - - 4.2.1 Point-to-Point (PTP) Connections - - PTP connections are set up in response to a CONNECT - command from an originating process to an ST agent. The CONNECT - specifies the following: - - 1. The NAME of the connection. The NAME is obtained by - concatenating the ST address of the originating process - (ORIGIN) with an arbitrary number. The ST address is - the internet host address (ala IP) concatenated with an - "extension" field (32 bits) to specify a process in the - host (a telephone for NVP applications). It is the - responsibility of the originating process to provide - arbitrary numbers that keep the names of all - outstanding connections unique. - - 2. The internet address of the process to which the - connection is desired. This address is called the - "TARGET." The terms "ORIGIN" and "TARGET" are used - instead of "SOURCE" and "DESTINATION" because the - latter terms will be used to refer to the senders and - receivers of packets travelling on the connection. - Thus the ORIGIN process can be both SOURCE and a - DESTINATION for packets on the full-duplex connection. - - 3. A flow specification (FLOW-SPEC) that tells ST agents - about the desired characteristics of the connection. - In addition to information about the data rate - requirements for both directions of the full-duplex - connection, the FLOW-SPEC has a PRECEDENCE value that - agents can use as a basis for the preemption of this or - other connections as part of the traffic control - strategy. The FLOW-SPEC is discussed in more detail in - Section 4.5. - - 4. An arbitrary 16-bit number that the agent is to use to - identify all ST packets that it will send to the - originator on the connection (the backward direction). - This identifier is called the "CID.B." If the - connection request is accepted, the originator will be - given a CID.F to be used to identify all packets it - sends in the forward direction on the connection. - These CID's allow abbreviated headers to be used on ST - - - -11- - - - IEN 119 ST.DOC 7 September 1979 - - - packets and provide a means for agents to rapidly - locate the stored forwarding table involved in handling - a received packet. CID's are assigned by the agents - receiving packets and need be only locally unique since - they are reassigned on a hop-by-hop basis. The CID to - be used on the next hop is stored in the agent's - forwarding table. - - During the setup procedure the CONNECT command propagates - from agent to agent until it reaches the TARGET process. This - propagation differs from ordinary packet forwarding in that the - intermediate agents inspect the command, take appropriate action, - and retain information about the requested connection. If the - TARGET process agrees to the connection, it sends an ACCEPT - command that is propagated back through the same intermediate - agents that handled the CONNECT. The agents take appropriate - action as they process the ACCEPT. If the TARGET process is not - willing to accept the connection, it issues a REFUSE command - which propagates back in the same fashion as the ACCEPT. - REFUSE's are generated by intermediate agents if they find - themselves unable to support a requested connection. An agent - receiving such a REFUSE tries alternate routes and passes the - REFUSE back another hop only when it has exhausted its routing - alternatives. Appropriate REASON codes are included in the REFUSE - commands. - - After a connection has become established (an ACCEPT has - reached the ORIGIN), changes to the FLOW-SPEC can be accomplished - by the ORIGIN issuing a new CONNECT or the TARGET issuing a new - ACCEPT command. (Actually, the TARGET can issue a new ACCEPT at - any time after issuing the first ACCEPT, and it can also at that - time begin sending packets on the connection although there is - some hazard in doing so since they may pass the ACCEPT enroute - and be discarded.) For the case where the FLOW-SPEC calls for a - connection whose rate can be varied at the discretion of the - catenet, intermediate agents issue CONNECT's and ACCEPT's to - inform other agents and the end users about rate changes. These - commands are marked to distinguish them from end user commands. - - The ACCEPT command contains the same kinds of information - as the CONNECT except that the backward connection identifier - (CID.B) is replaced by a forward identifier (CID.F). In - addition, the FLOW-SPEC will generally be different and will - indicate the data rates and delay characteristics accepted by the - agents. The CONNECT that arrives at the TARGET will be similarly - modified from the CONNECT that was issued by the ORIGIN and will - match the ACCEPT received by the ORIGIN. See Section 4.5 for a - discussion of the changes that can occur to the FLOW-SPEC. - - - - - - -12- - - - IEN 119 ST.DOC 7 September 1979 - - - 4.2.2 Conference (CONF) Connections - - The type of connection required for voice conferencing is - one in which any participant can send messages to all the others. - Connections of this type have been called "omniplex" connections. - ST realizes a conference connection by means of a superposition - of tree-like components that start from an origin process (the - root) and extend to a set of targets (the leaves). The set of - participants in a conference is represented by a bit map. Each - participant has a location in the conference bit map that is - assigned by the access controller (AC). When a conference - CONNECT command is given, a TARGET-BIT-MAP (TBM) is used to - specify the set of targets to which connection is requested. The - TBM is supplied by the AC when a participant joins a conference. - The tree-like components all have the same NAME, and intermediate - agents combine branches from the components whenever possible to - minimize resources committed to the conference. Because of this - combining, an ORIGIN-BIT-MAP (OBM) is needed to represent the set - of originators that have requested connection to a particular - participant. - - The list of participating processes in a CONF connection - is not carried in the CONNECT request but is is maintained by the - AC and provided to agents and participants when needed. Another - function of the AC is to provide the FLOW-SPEC for the connection - to any agent on request. The reason for assigning these tasks to - an access controller is to prevent unauthorized connection to a - conference and to assure that all components of the connection - use the same FLOW-SPEC. - - The first step in establishing a conference is to install - a list of participants and a FLOW-SPEC in an AC. The list of - participants may be fixed at the outset or be allowed to grow - during the course of the conference. A participant may depart - from a conference, but his position in the list and the bit maps - is not reused. The method by which the list of participants is - made known to the AC is not of concern to ST itself and is not - specified in this document. Higher level protocols such as a - network voice protocol (NVP) engage in communications between - participant processes and the AC in the process of setting up a - conference. For example, an NVP issues a JOIN command to - request access to a conference. If the NVP process is on the - participant list or is otherwise acceptable, the AC responds with - a WELCOME command that among other things tells the participating - NVP its location in the CONF bit map. The NVP then sends TELL-ME - messages to the AC to obtain the participant list and FLOW-SPEC - for the CONF connection. This information is provided in INFO - messages from the AC. Several of these messages may be required - to transmit all the information about a large conference. The - messages exchanged between participants and the AC are IP.ST - datagrams. They cannot be ST packets because no ST connection - - - -13- - - - IEN 119 ST.DOC 7 September 1979 - - - exists between the participants and the AC. - - Once a participant has received a WELCOME message from - the AC, it can issue a CONNECT.CONF command to its ST host agent. - It uses a TARGET-BIT-MAP (TBM) that it received as part of the - data in the WELCOME message. This TBM has bits set for all the - previous joiners of the conference. The CONNECT.CONF will thus - attempt to establish a full-duplex path to each of the previous - joiners. These paths will make use of common links where - possible and will result in a connection resembling a tree rooted - at the site of the process originating the connection. When the - CONNECT.CONF is issued by the originator it contains an ORIGIN- - BIT-MAP (OBM) with a single bit set corresponding to the - originating participant. If the CONNECT.CONF is successful - (i.e., some subset of the targets are reached), an ACCEPT.CONF - will be returned with bits set in the TBM indicating the - participants to which connection has been achieved. In a CONF - connection attempt, success may not be achieved with the entire - set of targets specified by TBM. Some may be unreachable for any - of a number of reasons. REFUSE.CONF messages will be returned - for all such failures with bits in the TBM identifying the - unreachable participants. If the failures in a particular - attempt are due to more than one REASON, at least one REFUSE.CONF - will be returned for each reason. - - - The technique for setting up conference connections - proposed for ST results in each participant actively connecting - to some subset of the others while accepting connections from the - rest. The first participant does not issue a CONNECT and accepts - all the others. The last connects to all the others and accepts - none. Each participant can maintain up-to-date information about - participation in the conference by utilizing the information in - the CONNECT and ACCEPT messages it receives. - - - The CONNECT.CONF messages received by agents during the - setup procedure do not contain information about the identity of - the participants. In order to route the connection, the agents - must acquire this information, and they do so by sending TELL-ME - messages to the AC and getting INFO messages in response. They - need to retain this information only during the routing phase of - connection setup. Once the connection is established, bit map - information in forwarding tables combined with a FORWARDING-BIT- - MAP (FBM) in the ST packet is sufficient to handle the forwarding - of packets on the connection. The FBM is used to specify the set - of destinations for the packet. Thus a packet can be sent to all - or any subset of the connection participants. The source of the - packet is identified by a number representing the position of the - source participant in the conference bit map. - - - - -14- - - - IEN 119 ST.DOC 7 September 1979 - - - In the case of a voice conference, no useful purpose is - accomplished when many people speak at the same time. It is - expected that a higher level protocol (part of NVP) would - regulate the activity of the conference and would normally allow - one or perhaps two persons to transmit speech at the same time. - ST is not involved in this aspect of conference control except to - the extent that if there are too many simultaneous talkers, the - traffic-handling capability of the connection could be exceeded, - and ST might discard some of the packets. The higher level - control protocol should set the FLOW-SPEC for the connection to - accommodate the expected traffic flow. Thus, for a simple one- - at-a-time conference, ST would be asked for a data rate - corresponding to a single speech stream. - - The above discussion has described a connection - arrangement suitable for supporting voice conferences in which - any participant can transmit and be heard by all others. ST also - provides another kind of multi-address message delivery - capability. If only one participant issues a CONNECT.CONF - command with a TBM specifying connection to all the others, a - tree-like connection will be set up that allows the ORIGIN to - send packets to all the others and receive from any of the - others, but packets sent by the others will be received only by - the ORIGIN. - - 4.2.3 Taking Connections Down - - The process of taking a connection down is initiated - either by an ORIGIN issuing a DISCONNECT message or a TARGET - issuing a REFUSE. These messages propagate from agent to agent - along the connection path so that intermediate agents can take - appropriate action to clean up their stored information about the - connection. - - Connections can also be taken down as a result of - intermediate agents detecting a faulty link or gateway or - deciding to preempt the connection. In this case the agent or - agents involved issue a DISCONNECT/ REFUSE pair that propagate in - the appropriate directions. A REASON code in the messages - informs the users as to the cause of the disconnection. - - In the case of conference connections, bit maps allow - selective disconnection and refusal. - - 4.3 Types of Service - - ST offers two types of service for packets travelling on - connections. Neither type has any delivery guarantees, i.e., - there are no acknowledgements or retransmissions on either a - hop-by-hop or an end-to-end basis. Neither type guarantees - packet integrity; i.e., if local nets offer a type of service - - - -15- - - - IEN 119 ST.DOC 7 September 1979 - - - that can deliver packets with bits in error, ST may use that type - of service. The headers of ST packets are sum-checked by ST - agents, but the data portions are not. - - The two types of service differ in whether or not they - use the channel capacity nominally allocated to the connection - and also in the strategy used by intermediate agents in buffering - them. The two types are: - - 1. Stream Packets (called ST.ST packets). These packets - use the allocated resources and are buffered for a - short time only, since they are intended for - applications such as speech communication where a late - packet is not worth delivering. They are discarded by - intermediate agents if queue conditions indicate that - they cannot be delivered in a timely fashion. - - 2. Datagrams (called ST.DG packets). These packets have - the same form as ST.ST packets except for a flag bit in - the header and travel over the same connection path. - They use allocated resources only when spare capacity - exists, e.g., when the ST.ST flow drops below the - allocated value. Otherwise they share local net - resources with other IP datagram traffic. They are - buffered with a queueing strategy appropriate for - datagram traffic and are discarded only when agent - buffer resources approach exhaustion. They are - intended for use by higher level protocols such as NVP - in applications such as dynamic control of the "floor" - in a conference. They are also used by ST itself for - connection management. - - 4.4 Packet Aggregation - - ST allows any ST packets, stream or datagram, to be - aggregated together that have the same next-agent local-net - destination. "Aggregation" is a form of multiplexing, but is - given a different name to distinguish it from the multiplexing - done in the IP Multiplexing protocol that allows multiplexing - only for packets with the same end-to-end source and destination. - The term "envelope" is used to refer to any ST message sent from - one agent to another. An envelope may contain one or more ST - packets and is limited in size by the maximum size of packet that - the local net can carry. The envelope has a short header in - addition to the header of the individual aggregated packets. See - Section 5.0 for a description of header formats. - - The ST aggregation technique requires agents to look - inside of received envelopes and handle the packets as individual - entities. This procedure adds to the computing load of gateways, - but can achieve significant communication savings in networks - - - -16- - - - IEN 119 ST.DOC 7 September 1979 - - - with high per-packet overhead such as SATNET, particularly when - many short packets must be handled. - - 4.5 Flow Specifications - - The FLOW-SPEC that is carried by CONNECT and ACCEPT - messages contains several fields. Some are specified by the - originator of the CONNECT. Others are produced either during the - process of setting up the connection or changing its allowed flow - characteristics. Some apply in common to both directions of the - full-duplex connection. Others apply individually to allow - different flows in the two directions and appear in pairs in the - control messages. - - Data rate, the basic quantity used in traffic control - computations, is specified by means of three parameters; a stream - interval (SI), a packet length (PL), and a duty factor (DF). The - average expected data rate can be computed by taking the product - of PL, DF, and the reciprocol of SI. The FLOW SPEC allows for - one value each for SI and DF for each direction. However, as - many as four values of PL can be provided as options, allowing - the ST agents flexibility in allocating resources for some types - of traffic flow. - - The flow type (TYPE) parameter is intended to allow ST to - take into account a variety of different user load - characteristics. The set of possible types can be expected to - grow with experience, but a relatively few types seem to be - adequate to deal with presently contemplated voice encoding - techniques. These are: - - 1. Fixed Rate. The data rate is held fixed for the life - of the connection. A simple speech encoder that can - run at only one rate would use this type value with all - four PL's set to the same value. A somewhat more - complex encoder that could run at more than one rate - but could not change rates on the fly would use the - fixed-rate type but could offer a choice of up to four - values for PL. A variable-rate vocoder such as the - LPC2 vocoder used in the ARPANET that has a rate that - varies depending on the short time behavior of the - speech signal would also use the fixed-rate type but - would set the duty factor to a lower value than the 0.5 - or so used by a simple encoder. - - 2. Multiple Rate. The data rate allowed can be of any of - the four specified by the four PL's and the agents are - free to change rates at any time to accommodate to - network load changes. Whenever an agent changes the - rate, it sends appropriate CONNECT and ACCEPT messages - to tell other agents and the users about the change. - - - -17- - - - IEN 119 ST.DOC 7 September 1979 - - - Since such rate changes require extra communication and - processing in the catenet, agents would have to avoid - frequent changes. This flow type would be used by - enoders that run at a variety of rates and can switch - rates rapidly but need to do so explicitly either - because packet formats must change with rate changes or - because some parameter such as sampling rate must be - changed at sender and receiver. This flow type could - also be useful for sending data rather than voice over - ST connections. - - 3. Prioritized Variable Rate. This flow type is intended - for use by certain advanced encoders of a kind called - "embedded" where subsets of the coded bit stream can be - stripped en route without loss of intelligibility. - There is, of course, some loss of quality and/or - ability to withstand acoustical background noise when - stripping occurs. For this flow type each of the four - PL's corresponds to one of the four packet priorities - that can be attached to ST.ST packets. The encoder - would place the bits needed for its lowest rate in the - highest priority packet, the next lowest in the second - highest, etc. When pressed for channel capacity, - agents would be free to discard the lower priority - packets for this flow type. The overall precedence of - the connection would also affect the probability of - packet discard. It is not anticipated that agents - would send explicit messages to announce that - discarding was taking place. - - Another set of parameters in the FLOW-SPEC is concerned - with transmission delay. ST does not allow the user to specify a - delay requirement, but it does allow some control over the - tradeoff between delay and data rate options during the routing - process. A ROUTING-STRATEGY parameter is provided for this - purpose. Currently, two strategy options for PTP connections are - envisioned, but others could be added if desired. One gives - preference to minimizing delay at the expense of data rate. The - other gives preference to data rate over delay. The ROUTING- - STRATEGY options are meaningful only when data rate options are - available. Otherwise data rate is as absolute requirement in - routing. - - While a user cannot specify a delay requirement to ST, ST - does provide the user with an estimate of both minimum delay and - delay dispersion in fields of the FLOW-SPEC. The estimates are - based on a priori statistics relating delays to average network - loads. When an agent propagates a CONNECT packet, it adds values - from tables indexed on the current load estimate to the MIN-DELAY - and DISPERSION fields of the FLOW-SPEC for the forward direction. - It performs the same function for the backward direction as it - - - -18- - - - IEN 119 ST.DOC 7 September 1979 - - - propagates the ACCEPT. The MIN-DELAY is the simple sum of the - hop-to-hop contributions, but the DISPERSION is a sum of squares. - The receiver can compute an estimate of overall delay by adding - the MIN-DELAY to the square root of the DISPERSION. The - DISPERSION estimate by itself can be useful in setting the - reconstitution delay value needed to play out satisfactory speech - for listeners. The proper value can vary over a wide range - depending on the path through a catenet of networks with very - different delay characteristics. - - Another parameter set by agents during the routing - process is the ACCEPTED-RATE field. This field informs the users - as to which of the four possible data rate options (PL's) have - been accepted for each of the two directions of the connection. - Of course, if none were acceptable, a REFUSE would be returned - with a REASON code indicating unavailability of resources at the - requested precedence level. Another flow-related reason for - refusal could be an inability of the networks to handle a too- - short stream interval. - - All FLOW-SPEC parameters except PRECEDENCE and ROUTING- - STRATEGY can be independently specified or are reported - separately for each of the two directions of the full-duplex - connection. The exceptions are required to apply to the entire - connection to simplify the task of gateways in handling - connections. - - The ROUTING-STRATEGY field has other control functions in - addition to weighting the tradeoff between data rate and delay. - For CONF connections it indicates whether or not data rate - options must match in both directions (a requirement for voice - conferencing) or can be negotiated independently. If ST agents - support split routing, (a capability to divide the traffic on a - connection among two or more paths) the ROUTING-STRATEGY field - will indicate whether or not this technique is to be applied to - the connection. Split routing also requires additional fields to - indicate the fraction of the nominal traffic that has been - accepted or is requested to be handled. This document does not - propose the implementations of split routing in the first version - of ST. - - - - - - - - - - - - - - -19- - - - IEN 119 ST.DOC 7 September 1979 - - - 5.0 PACKET FORMATS - - The messages sent between ST agents on connections are - envelopes containing one or more ST packets. The envelope - consists of an envelope header (EH) followed by one or more - packet headers (PH's) followed by the data portions of the - packets in the same order. The envelope thus has the form: - - EH, PH1, PH2, . . .PHn, DATA1, DATA2, . . . DATAn - - The reason for aggregating the headers separately from the data - is that doing so allows the header region to be checksummed - easily as a unit before attempting to parse the envelope. It is - expected that ST will be used in networks that can deliver - messages with bits in error and that some non-negligible fraction - of the messages will have such errors. To require the entire - envelope to be error-free in order to use any of it would result - in an excessive rate of lost packets. - - Since ST operates as an extension of IP, the envelope - arrives at the same network port that IP uses to receive IP - datagrams. It is proposed to use a unique code in the first - field of the message to identify it as an ST envelope. The first - four bits of an IP datagram are defined to be the Version Number - field. It is therefore proposed to use one of the 16 possible IP - versions to distinguish ST envelopes from IP datagrams. With - this convention an envelope header will have the following - format: - - - - - - - - - - - - - - - - - - - - - - - - - - -20- - - - IEN 119 ST.DOC 7 September 1979 - - - ENVELOPE HEADER - - 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - ! ST !VERSION! HEADER-LENGTH ! - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - ! TOTAL-LENGTH ! - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - ! CKSUM ! - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - - ST is the particular IP Version Number assigned to - identify ST envelopes. - - VERSION is the ST version number. This document is a - proposal for VERSION 1. - - HEADER-LENGTH* is the length in words of the envelope - header (3) plus the sum of the header lengths of the - aggregated packets. - - TOTAL-LENGTH is the length of the entire envelope. It - does not include any local net headers or trailers. - - CKSUM covers the envelope header and all packet - headers. - - ++++++++++++++ - *All ST communications use the 16-bit word as a basic unit. All - lengths are in word units. - ++++++++++++++ - - - - - - - - - - - - - - - - - - - - - - -21- - - - IEN 119 ST.DOC 7 September 1979 - - - The individual packet headers have one of two formats - depending on whether they are for PTP or CONF connections. These - formats are: - - PTP PACKET HEADER - - 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - ! CID ! - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - !0! BITS ! DATA-LENGTH ! - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - - CONF PACKET HEADER - - 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - ! CID ! - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - !1! BITS ! DATA-LENGTH ! - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - ! Spare ! FBML! ! SID ! - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - ! FBM - 1st word ! - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - . - . - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - ! FBM - nth word ! - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - - CID is an arbitrary identifier assigned by the agent - receiving the packet for the purpose of identifying the - connection on which the packet is travelling. Since - the CID is unique only to the agent that assigned it, - it will generally have a different value on each hop of - the connection path. - - BITS are defined as follows: - Bit 1 distinguishes stream packets (ST.ST) from - datagrams (ST.DG) (1 = DG). - - Bits 2 and 3 define the packet priority (00 = highest - priority). - - Bits 4 and 5 are spares. - - Bits 6 and 7 are unused (may be used by higher level - protocols if desired). - - - -22- - - - IEN 119 ST.DOC 7 September 1979 - - - DATA-LENGTH is the length of the data field in words. - - FBML (3 bits) is one less than the length of the - Forwarding Bit Map (FBM) in words. - - SID (7 bits) identifies the source of the packet on a - CONF connection (the source is implicit for a PTP - connection packet). The value of SID corresponds to - the bit position of the source in the conference bit - map. Bit numbers start with zero, and positions start - with the left-most (most significant) bit of the first - word of the bit map. - - FBM is the Forwarding Bit Map. It can be at most 128 - bits (8 words) long, and thus it limits conferences to - 128 participants (a generous number). Ones in the FBM - indicate that the packet is to be delivered to the - corresponding participants. The FBM is allowed to - increase in one word increments to allow new - participants to enter during the course of a - conference, but it does not shrink when participants - leave, and bit positions are not reused. - - As pointed out in Section 3.0, ST supports a second type - of communication called IP.ST datagrams. These are ordinary IP - datagrams with an "ST" value in the protocol field. They are - used to allow higher level protocols to communicate prior to the - setting up of an ST connection, and they are also used for - communication between access controllers and other ST agents - during the setup of CONF connections. They are strictly point- - to-point communications since they are IP datagrams. According - to the conventions for IP datagrams, these messages would have - the form: - - IP Header, IP.ST Header, Data - - - - - - - - - - - - - - - - - - - -23- - - - IEN 119 ST.DOC 7 September 1979 - - - The IP.ST Header has the following form: - - IP.ST PACKET HEADER - - 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - ! IP.ST !VERSION! LENGTH ! - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - ! SOURCE- ! - +-+-+ +-+-+ - ! EXTENSION ! - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - ! DESTINATION- ! - +-+-+ +-+-+ - ! EXTENSION ! - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - - - IP.ST is a value chosen to be different from the "ST" - value used in the first four bits of the ST envelope. - This field allows IP.ST datagrams to be distinguished - from ST envelopes embedded in IP.ST packets, a - technique that can be used to get ST envelopes through - gateways that do not support ST. - - VERSION is the ST version number. - - LENGTH is the total length of the IP.ST packet - excluding IP and local net headers, etc. - - SOURCE- and DESTINATION-EXTENSION's are 32-bit fields - used to identify the source and destination processes. - Like ARPANET NCP process identifiers, they are not - specified by the protocol. The source and destination - host addresses are carried in the IP header. - - - 6.0 CONTROL MESSAGES - - With the exception of communications with access - controllers, ST control messages are sent from agent to agent as - ST.DG packets with the CID set to zero. This convention is - similar to the ARPANET NCP use of Link 0 for control. - Communication with AC's uses IP.ST packets. The form is - otherwise the same. The control protocol follows a request- - response model with all requests expecting responses and all - responses expecting acknowledgements. Retransmission after - timeout is used to allow for lost or ignored messages. A packet - may contain more than one control message. Control messages do - not extend across packet boundaries. - - - -24- - - - IEN 119 ST.DOC 7 September 1979 - - - Control message headers have the following format: - - CONTROL MESSAGE FORMAT - - 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - ! OP-CODE ! LENGTH ! - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - ! CKSUM ! - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - ! REFERENCE ! - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - - OP-CODE specifies the request or response. - - LENGTH is the length of the control message in words. - - CKSUM is the checksum of the control message. Because - the control messages travel in envelopes that may be - delivered with bits in error, each control message must - be checked before it is acted upon. - - REFERENCE is an arbitrary reference number used to - associate requests with responses and acknowledgements. - - The header is followed by parameters as required for the - particular OP-CODE. Each parameter is identified with a P-CODE - byte that is followed by a P-LENGTH byte indicating the length of - the parameter (including the P-CODE, P-LENGTH word) in words. - Parameters can be sent in any order. The format of individual - parameters is specified in the following sections in connection - with the OP-CODE's with which they are used. - - Control messages fall into two categories according to - whether they deal with PTP or CONF connections. There are four - messages that are independent of connection type. These are: - - 6.0.1 [ACK] - - ACK (OP-CODE = 1) has no parameters. The REFERENCE in - the header is the REFERENCE number of the message being - acknowledged. ACK's are used to acknowledge responses to - requests and in some cases constitute responses or partial - responses themselves. - - - - - - - - - -25- - - - IEN 119 ST.DOC 7 September 1979 - - - 6.0.2 [HELLO] - - HELLO (OP-CODE = 2) is used to determine whether or not - another agent is alive and well. It has no parameters and - expects an ACK in response. - - 6.0.3 [ERROR-IN-REQUEST] - - ERROR-IN-REQUEST (OP-CODE = 3) is sent in response to a - request in which an error is detected. An ACK is expected. No - action is taken on the erroneous request. - - REF (P-CODE = 7, P-LENGTH = 2) is the REFERENCE number - of the erroneous request. - - ERROR-TYPE is not yet specified. - - 6.0.4 [ERROR-IN-RESPONSE] - - This message (OP-CODE = 4) is sent in lieu of an ACK for - a response in which an error is detected. No ACK is expected. - Action taken by the requester and responder will vary with the - nature of the request. - - REF identifies the erroneous response. - - ERROR-TYPE is not yet specified. - - - 6.1 Control Messages for PTP Connections - - PTP connections are set up and taken down with the - following messages: - - 6.1.1 [CONNECT.PTP] - - CONNECT.PTP (OP-CODE = 5) requests the set up (routing) - of a PTP connection or asks for a change in the flow - specification of a connection already routed. Its parameters - are: - - NAME (P-CODE = 1, P-LENGTH = 6) is the ST address of - the process that originated the CONNECT.PTP (the - ORIGIN) concatenated with a 16-bit number chosen to - make the name unique. An ST address is a 32-bit IP - host address concatenated with a 32-bit EXTENSION - identifier chosen to identify a particular process in - the host. The EXTENSION is provided by some higher- - level protocol and is assumed by ST to be unique to the - host. For NVP use the EXTENSION identifies a - particular telephone and is presumably a well-known - - - -26- - - - IEN 119 ST.DOC 7 September 1979 - - - quantity. - - TARGET (P-CODE = 2, P-LENGTH = 5) is the ST address of - the target process. - - FLOW-SPEC (P-CODE = 3, P-LENGTH = 18) is a complex - parameter that both specifies and reports on the flow - requirements and expected delay characteristics of the - full-duplex connection. See Section 4.5 for further - information. - - CID.B (P-CODE = 4, P-LENGTH = 2) is the connection - identifier to be used on packets moving in the backward - direction on the connection. - - CONNECT.PTP expects a response. There are four response - possibilities: ACCEPT.PTP, REFUSE.PTP, ACK, and ERROR-IN-REQUEST. - Receipt of an ACK means that the agent receiving the request is - working on it, and the requester should wait for a future ACCEPT - or REFUSE. ERROR-IN-REQUEST will be returned only when a format - error is detected in the CONNECT.PTP. Other errors, if detected, - will elicit REFUSE messages. - - The processing of CONNECT messages requires care to avoid - routing loops that could result from delays in propagating - routing information among gateways. The example in Section 7.0 - describes in some detail the actions of agents in handling - CONNECT requests while routing a connection. - - 6.1.2 [ACCEPT.PTP] - - REFUSE.PTP (OP-CODE = 7) is returned to indicate that agents have - failed to set up a requested connection or that a previously - established connection has been lost. REFUSE's are also returned - to indicate routing failure, and in such a case may not end up - - - -27- - - - IEN 119 ST.DOC 7 September 1979 - - - propagating back to the origin. TARGET's also issue REFUSE's to - take down connections intentionally. - - REASON (P-CODE = 6, P-LENGTH = 2) indicates the reason for - connection refusal. REASON codes apply also to DISCONNECT - messages and include the following: - - CODE EXPLANATION - - 0 No explanation - 1 Target refuses connection - 2 Target does not respond - 3 Target cannot be reached - 4 Connection preempted - 5 STREAM INTERVAL too short - 6 Requested data rate cannot be handled - 7 Connection broken due to network fault - 8 Connection broken by ORIGIN - 9 Conflicting FLOW-SPECs in CONF connections - - REFUSE's are ACK'ed and are propagated by intermediate - agents if meaningful (i.e., the agents had tables for the - connection). The backward propagation of a refuse may be halted - at an intermediate agent if an alternate route exists that has - not been tried, and the REASON indicates that it is reasonable to - try the alternate route. (I.e., it does not indicate that the - target refuses or does not respond). - - 6.1.4 [DISCONNECT.PTP] - - DISCONNECT.PTP (OP-CODE = 8) is sent to request that a - previously requested connection be taken down. It can be - generated either by the originator of the CONNECT or by an - intermediate agent that executes a preemption or detects a fault. - - REASON uses the same codes as REFUSE although not all - codes apply. - - DISCONNECT expects an ACK and is propagated in the - forward direction so long as agents are encountered that know - about the connection. - - A connection can be taken down either by a REFUSE or a - DISCONNECT (or both) depending upon which end first decides to - initiate the process. If both start within a propagation time of - each other, neither message will reach the opposite end. - - - - - - - - -28- - - - IEN 119 ST.DOC 7 September 1979 - - - 6.2 Control Messages for CONF Connections - - - CONF connections are set up and taken down with CONNECT, - ACCEPT, REFUSE, and DISCONNECT messages, but the CONF versions of - these messages have somewhat different parameters. In addition, - CONF connection setup requires that agents communicate with - access controllers by means of TELL-ME and INFO messages. These - latter messages are sent as IP.ST datagrams. The former are sent - as ST.DG packets with CID = 0. - - 6.2.1 [CONNECT.CONF] - - CONNECT.CONF (OP-CODE = 9) requests the setup (routing) - of a CONF connection or asks for a change in flow specifications - of a connection already routed. The parameters NAME and CID.B - have the same form and interpretation as they do for CONNECT.PTP - except that NAME is the name of the owner of the conference, not - the originator of the CONNECT message. The new parameters OBM - and TBM allow the message to deal with multiple ORIGIN and TARGET - processes. The FLOW-SPEC for the connection is obtained from the - access controller. - - OBM (P-CODE = 8, P-LENGTH = 2-9) is the ORIGIN-BIT-MAP. - Bits set in the map identify originating processes. When a - CONNECT.CONF is first issued by a user process only one bit is - set in OBM identifying the issuer. However, as the message - propagates, intermediate agents may find that they have other - CONNECT.CONF messages for the same connection on hand at the same - time. In that case, they can merge the requests so that more - bits become set as the message approaches its targets. - - TBM (P-CODE = 9, P-LENGTH = 2-9) is the TARGET-BIT-MAP. - Bits set in the map identify the target processes. In general, - the user process will have set many bits in TBM when it first - issues a CONNECT.CONF. As the message propagates it will split - many times, each split reducing the number of bits left set in - TBM. When the CONNECT.CONF's reach their targets only one bit - will be left set in each. - - Since the CONNECT.CONF message does not tell its receiver - anything about the actual identities of the target processes, - intermediate agents must get this information, as well as the - FLOW-SPEC, from the access controller by sending TELL-ME messages - and receiving INFO messages in response. The agents use the NAME - to locate the AC, using a bit in the name to distinguish between - a public or private AC. The NAME is the ST address of a process - concatenated with a 16-bit number to make the NAME unique. It is - proposed that the most significant bit of that 16-bit number be - used to distinguish public from private ACs. A zero in that bit - would indicate a private AC and in that case, agents would send - - - -29- - - - IEN 119 ST.DOC 7 September 1979 - - - TELL-ME messages to the process address in the NAME. In the - public case, the agent would communicate with an AC whose address - was known a priori to the agent. - - 6.2.2 [ACCEPT.CONF] - - ACCEPT.CONF (OP-CODE = 10) is similar in function to - ACCEPT.PTP. NAME, FLOW-SPEC, and CID.F have the same form and - interpretation. OBM specifies the set of originators to which - the ACCEPT is to be propagated. TBM specifies the set of targets - that have accepted the connection. This set may be a sub-set of - the targets requested in the CONNECT to which an ACCEPT responds. - The FLOW-SPEC is included in the ACCEPT because it reflects the - actual resources granted to the connection. - - 6.2.3 [REFUSE.CONF] - - REFUSE.CONF (OP-CODE = 11) is similar in function to - REFUSE.PTP. As for ACCEPT.CONF, OBM specifies the set of - originators to which the REFUSE is to be propagated. TBM - specifies the set of targets that cannot be reached, have - refused, etc. A single REASON applies to all the targets in the - TBM. If more than one REASON applies to a set of targets, as - many REFUSE's as REASON's will be sent. - - 6.2.4 [DISCONNECT.CONF] - - DISCONNECT.CONF (OP-CODE = 12) is similar in function to - DISCONNECT.PTP. As for REFUSE.CONF, OBM and TBM specify the sets - of originators and targets to which the DISCONNECT applies. - - 6.2.5 [TELL-ME] - - TELL-ME (OP-CODE = 13) is sent from an agent or a - participant process to an access controller . The AC is expected - to return an INFO message with the requested information. Either - of the latter two parameters may be omitted. - - PART-NUM (P-CODE = 10, P-LENGTH = 2) specifies the number - of the first participant about which information is requested. - The response will be a participant list starting with the - specified participant and continuing until the maximum packet - size is reached or the list is exhausted. - - FLOW-SPEC-REQ (P-CODE = 11, P-LENGTH = 2) requests the AC - to send the FLOW-SPEC for the connection. - - - - - - - - -30- - - - IEN 119 ST.DOC 7 September 1979 - - - 6.2.6 [INFO] - - INFO (OP-CODE = 14) is sent from an AC to an agent or - participant process in response to a TELL-ME. It provides the - requested information. STATUS is always present. PART-LIST and - FLOW-SPEC are present only when requested by the TELL-ME. - - STATUS (P-CODE = 12, P-LENGTH = 2) carries 2 bytes of - information. Byte 1 is the CONF-TYPE. Byte 2 gives the length - of the participant list. The following values for CONF-TYPE are - defined: - Type Meaning - - 0 No conference defined with this NAME - - 1 Conference with closed participant list - - 2 Conference with open list and password - - 3 Conference with completely open list (no - password needed). - - - PART-LIST (P-CODE = 13, P-LENGTH = (4m + 2)) provides a - section of the participant list starting at the location (PART- - NUM) requested in the TELL-ME and continuing until either the end - of the list or packet capacity is reached. The items in the - PART-LIST are the ST addresses (64 bits) of the participating - processes. The addresses are present whether or not the - participants are active. The addresses are preceded by a word - giving the number of the first participant on the list. - - FLOW-SPEC is the nominal FLOW-SPEC for the conference. - - - 7.0 AN EXAMPLE OF CONF CONNECTION SETUP - - - This section is a rather detailed example of the actions - called for by ST in setting up a connection for a conference with - four participants. In addition to showing the control message - flow, it also indicates the information used and retained by - gateways in supporting the connection. For the sake of - simplicity, it is assumed that the flow requirements are always - met. The ".CONF" suffix is omitted from OP-CODE's, and - parameters such as NAME and FLOW-SPEC that are always the same - are also omitted. In addition, ACK's are not shown but are - assumed to occur where required. - - - - - - -31- - - - IEN 119 ST.DOC 7 September 1979 - - - - The example uses the following network configuration: - - - - +---+ +---+ +---+ - !P3 ! !P2 ! !P1 ! - +---+ +---+ +---+ - !ST3! !ST2! !ST1! - +---+ +---+ +---+ - ! ! ! - ! ! ! - +-------+ +------+ +-------+ +------+ +-------+ - ! Net A !--! G.AB !--! Net B !--! G.BC !--! Net C ! - +-------+ +------+ +-------+ +------+ +-------+ - ! ! - ! ! - +---+ +---+ - !ST4! !AC ! - +---+ +---+ - !P4 ! - +---+ - - - Each participant (Pi) communicates through a host agent - called "STi." The communications between the P's and their local - ST's are written out as control messages to show the logical flow - even though in actual implementations they might be handled very - differently. - - The actions involving ST start after the participants - have joined the conference by communicating with the access - controller (AC) and have received TARGET-BIT-MAPs (TBMs) telling - each Pi to which other Pi's connections are to be set up. The - notation "{ A, B, C }" is used to indicate a bit map with bits - set for A, B, and C. The participants are assumed to have joined - in the order of their numbers. Thus P1 got an empty TBM ({ }), - and P4 got TBM = { P1, P2, P3 }. According to the rules, P1 - issues no CONNECT messages, but waits for the others to connect - to it. The action thus begins with P2 sending: - - P2->ST2: [CONNECT] - - ST2->AC: [TELL-ME] - - AC->ST2: [INFO] - - - These last two commands are executed independently by all - agents when they first receive a CONNECT. They will be replaced - by the phrase "X gets info" in the following. - - - -32- - - - IEN 119 ST.DOC 7 September 1979 - - - ST2 observes that ADDR.P1 is not in its local net and - lacking routing knowledge decides to try G.AB (the wrong - direction). - - ST2->G.AB: [CONNECT] - - G.AB gets info and decides that net C is unreachable - except through net B from whence the CONNECT came. - - G.AB->ST2: [REFUSE] - - - ST2 decides to try another gateway. - - ST2->G.BC: [CONNECT] - - G.BC gets info, builds a connection entry, and sends: - - G.BC->ST1: [CONNECT] - - ST1 gets info and sends: - - ST1->P1: [CONNECT] - - Since P1 has already joined the conference and recognizes - P2 as another participant, it sends: - - P1->ST1: [ACCEPT] - - ST1->G.BC: [ACCEPT] - - At this point G.BC would have the following stored - information (neglecting bookkeeping items such as pointers). - - 1. A connection block with NAME, FLOW-SPEC, and CID.IN = - 1001 (the same CID can be used for all inputs for the - connection). This information is retained for the life - of the connection. The PART-LIST used in processing - may be discarded once an ACCEPT (or REFUSE) has been - received and the forwarding tables have been created. - However, since there are likely to be other CONNECT's - to be processed, it would be efficient to keep the - PART-LIST for a time (say several minutes). - - - - - - - - - - - -33- - - - IEN 119 ST.DOC 7 September 1979 - - - 2. Two forwarding tables, one for each packet that might - be sent in response to an input. - - ITEMS #1 #2 - - NET-PORT B C - - ADDRESS ST2 ST1 - - MASK.OBM { P2 } { } - - MASK.TBM { } { P1 } - - CID.OUT 17 32 - - - The principal function of the masks is to facilitate - packet forwarding. When a packet arrives, the following - computation is made for each forwarding table to compute the - output FORWARDING-BIT-MAP (FBM): - - FBM.OUT = FBM.IN & (MASK.OBM U MASK.TBM) - - If FBM.OUT has no bits set, it is not necessary to send a packet - to the address in the table. Otherwise a packet is sent using - the NET-PORT, ADDRESS, and CID.OUT from the table. - - Having built its tables, G.BC sends: - - G.BC->ST2: [ACCEPT] - - ST2->P2: [ACCEPT] - - At this point P2 and P1 are connected and could begin - talking, if permitted by the higher level protocol. - - In connecting P3 and P4 we will assume that both initiate - requests at essentially the same time so that they propagate - concurrently. - - P3->ST3: [CONNECT] - - P4->ST4: [CONNECT] - - - ST3 and ST4 get info. ST3 notices that P1, P2 both are - outside the local net, but ST4 notices as well that P3 is on the - same net as P4. - - They send: - - - - -34- - - - IEN 119 ST.DOC 7 September 1979 - - - ST3->G.AB: [CONNECT] - - - ST4->ST3: [CONNECT] - - ST4->G.AB: [CONNECT] - - - ST3 forwards the CONNECT to P3, which accepts, and ST3 - responds to ST4 with: - - ST3->ST4: [ACCEPT] - - Meanwhile G.AB gets info and notices that it has two - CONNECT's for the same NAME. It decides to merge them and sends: - - G.AB->ST2: [CONNECT] - - - and - - G.AB->G.BC: [CONNECT] - - - ST2 forwards the CONNECT to P2, which accepts, and ST2 - sends: - - ST2->G.AB: [ACCEPT] - - - Now G.AB will not continue to propagate the ACCEPT - because the CONNECT on which it is working asked for connection - to P1 as well as P2. It will wait for an ACCEPT or REFUSE from - P1. - - G.BC already knows about the connection to P1, but it - does not assume that P1 will accept P3 and P4, so it propagates - the CONNECT. - - G.BC->ST1: [CONNECT] - - - ST1 forwards to P1, which accepts, and ST1 responds: - - ST1->G.BC: [ACCEPT] - - In the latter exchange G.BC and ST1 used the same CID's - they had used before for this connection. If either had chosen - to use a different CID, the newer value would supercede the - earlier one in the forwarding table. - - - -35- - - - IEN 119 ST.DOC 7 September 1979 - - - It should be noted that the protocol could allow G.BC to - accept the connection from P3 and P4 without forwarding the - CONNECT to ST1 because G.BC already knows it has a connection to - P1. This shortcut is not taken because it denies P1 the - information about the connection requests from P3 and P4 and the - opportunity to refuse those connections if desired. - - - To finish the setup we have: - - G.BC->G.AB: [ACCEPT] - - - G.AB will now accept for P1 and P2. - - G.AB->ST3: [ACCEPT] - - - G.AB->ST4: [ACCEPT] - - - When ST3 and ST4 propagate the ACCEPT's to P3 and P4 the - conference connection is complete. - - At this point the forwarding tables in G.BC are the - following: - - ITEM #1 #2 #3 - - NET-PORT B C B - - ADDRESS ST2 ST1 G.AB - - MASK.OBM { P2 } { } { P3, P4 } - - MASK.TBM { } { P1 } { } - - CID.OUT 17 32 2356 - - - If at some later time G.BC should decide to preempt the - connection, it would issue one message for each forwarding table - entry: - - G.BC->ST2: [REFUSE] - - - G.BC->ST1: [DISCONNECT] - - - - - - -36- - - - IEN 119 ST.DOC 7 September 1979 - - - G.BC->G.AB: [REFUSE] - - - Having issued these messages and received ACKs in - response (or timed out in the absence of an ACK), the gateway can - delete the table entries and reclaim the CID for future use. The - REFUSE sent to G.AB would, of course, be propogated to ST3 and - ST4. - - - 8.0 AREAS NEEDING FURTHER WORK - - This document does not completely specify the protocol. - Further work is needed to specify error conditions and their - handling. The FLOW-SPEC parameter is not yet laid out in detail. - Rerouting has not been thought through sufficiently. The whole - area of routing strategies and the information to be exchanged - among gateways has not been given much consideration. There is - also a need for agents to exchange information (not yet - specified) about local net resources. For example, if agents are - to make use of local net multi-addressing capability, the - selection of a CID for a connection is no longer at the - discretion of an individual agent. A convention is needed to - avoid conflicting use of CID's as well as requesting duplicate - resources to serve a CONF connection. The CONNECT control - message needs to be extended to allow agents to indicate local - net resources that are already committed to a CONF connection. - - - - - - - - - - - - - - - - - - - - - - - - - - - -37- - - - \ No newline at end of file diff --git a/text/ien/ien12.txt b/text/ien/ien12.txt deleted file mode 100644 index e989597c..00000000 --- a/text/ien/ien12.txt +++ /dev/null @@ -1,1951 +0,0 @@ - - LLG 8-Jun-77 13:01 29364 - -IEN # 12 L. Garlick / SRI-ARC -Supercedes: None R. Rom / SRI-ARC -Replaces: None J. Postel /SRI-ARC - 15 March 1977 - -Section: 2.4.4.1 - - - - - Issues in Reliable Host-to-Host Protocols - - - - - - - Lawrence L. Garlick - Raphael Rom - Jonathan B. Postel - - - - - - - - - - - - - - - - - - - March 15, 1977 - - - - - - - Augmentation Research Center - Stanford Research Institute - Menlo Park, California 94025 - - (415) 326-6200 - - LLG 8-Jun-77 13:01 29364 - Issues in Reliable Host-to-Host Protocols - - - - ABSTRACT - - Fully reliable network host-to-host protocols have recently - gained significant attention, primarily due to more strin- - gent security requirements of network users. This paper - will discuss issues related to one such protocol, which is - supported by the Transmission Control Program (TCP). The - protocol, first introduced in 1974, features end-to-end pos- - itive acknowledgement, retransmission, internetwork - addressing capabilities, and ordered delivery. - - The issues of interest in this paper are protocol correct- - ness and completeness, protocol efficiency, and complexity - of implementation. The discussion will suggest alterations - and extensions to TCP. - - Flow control heuristics using TCP's windowing techniques are - explored. Flow control information is augmented to allow - fair apportionment of bandwidth, better bandwidth utiliza- - tion through optimistic credits, flow control credits - matched to the type of traffic, and increased performance - for high precedence connections. - - An alternative for selecting the startup sequence number of - a connection is presented. It is suggested that the - resynchronization method for sequence number space manage- - ment should be abandoned because it is overly complicated - and can actually fail when the data stream is stopped by - flow control. - - The need for the separation of data and control channels is - motivated, introducing the notion of a reliable subchannel. - - The findings are presented both to further the understanding - of reliable protocols and to encourage intelligent - implementations of TCP. - - LLG 8-Jun-77 13:01 29364 - Issues in Reliable Host-to-Host Protocols - - - - Issues in Reliable Host-to-Host Protocols - - 2 - - INTRODUCTION 3 - - Due to numerous advances in computer communications, there - has been a tremendous growth in computer networking. This - has led to the need for parallel advances in distributed - computing protocols. Typical of these advances are the - packet switching network protocols developed for the ARPA - network. The need for a protocol that supports distributed - process-to-process communication was realized early by ARPA - network designers and the ARPA host-to-host protocol (AHHP) - became the reference point for such process-to-process - protocols. 3a - - The AHHP has been very successful in providing a basis for - abundant research in distributed computing and in providing - a prototype for process-to-process protocols. As experience - with networking has grown, new applications, new topologies, - new network access methods, and new higher level protocols - have emerged. The AHHP has not been entirely suited for the - new requirements that have resulted from this experience. 3b - - End-to-end reliability is an example of a new requirement - needed by host-to-host protocols. It has been a concern for - builders of both secure applications and higher level - protocols. There are two important motivations for strin- - gent reliability requirements. First, security measures, - such as encryption, are often applied at the host-to-host - level or lower. Second, higher level protocols, such as the - ARPA TELNET protocol, should not be required to handle - transmission error checking. The AHHP does not provide - host-to-host acknowledgement; it relies upon subnet and - host-to-subnet protocols to deliver messages reliably. - While the performance of the AHHP has been almost error - free, it has been known to lose messages; thus it cannot be - considered a fully reliable protocol. 3c - - Other deficiencies in AHHP include addressing constraints, - weak error recovery, simplex connections, and large overhead - for passing flow control information. 3d - - TCP, which, throughout this paper will be an abbreviation - for both the Transmission Control Program and the protocol - it supports, corrects the deficiencies of AHHP. TCP was - - - - - Garlick, Rom, & Postel page 1 - - LLG 8-Jun-77 13:01 29364 - Issues in Reliable Host-to-Host Protocols - - - - initially designed to be a reliable internetwork host-to- - host protocol [Reference 1], as well as a solution to many - of the problems of the AHHP. When the special internetwork - addressing considerations are ignored (as they shall be in - this paper), it represents a significant advancement in - host-to-host protocols. Among its reliability features are - positive acknowledgement, retransmission, and sequencing of - data and controls. It guarantees the error free delivery of - each message for which it claims successful delivery. Other - improvements include duplex connections and the ability to - use a network address (socket) in several connections. 3e - - The paper is organized around three issues--a discussion of - flow control techniques for TCP, alternate strategies for - the management of connection sequence number space, and the - need for a control subchannel for each TCP connection. To - provide further context for the discussion, a brief summary - of interesting TCP features is presented. It is assumed - that the reader is somewhat familiar with the AHHP and has - been exposed to the early literature on TCP-like protocols - [References 1, 2, 6]. A glossary of abbreviations and - terms, and appendices that magnify a few of the more in- - volved issues can be found at the end of the paper. 3f - - - - TCP: A RELIABLE TRANSMISSION PROTOCOL 4 - - Network Characteristics 4a - - TCP does not depend on the transmission medium for its re- - liability, i.e., it is assumed that the subnetwork may be - unreliable. The subnet need not ensure the orderly or - errorless delivery of subnet packets, or account for lost - packets. TCP functions correctly in the face of large - packet lifetimes, and the opening and closing of - connections in quick succession. - - Connections 4b - - Logical connections are established for process-to-process - (user-to-user) communication. TCP connections are full- - duplex channels established between source and destination - sockets (network-wide process names). A socket may be a - party to more than one connection, but only one connection - can exist between any pair of sockets. - - - - - - Garlick, Rom, & Postel page 2 - - LLG 8-Jun-77 13:01 29364 - Issues in Reliable Host-to-Host Protocols - - - - TCP provides the means by which a connection between the - processes is established, controlled during the transfer - of data, and terminated at the completion of the session. - Connection management requires the exchange of controls - between TCP's. There are controls for connection - synchronization, out-of-band signalling (interrupt), data - flushing, resynchronization, and connection closing. As - described below, controls accompany data whenever possible - to avoid the overhead of separate control packets. - - Packaging and Headers 4c - - TCP packages user letters (messages) into packets suitable - for transmission over a subnetwork. Each letter or par- - tial letter is prefixed by a TCP header, which includes - fields for addressing, sequencing, acknowledgements, flow - control, controls, and error checking. The header is - optionally followed by a block of data. The smallest unit - of data transfer and the unit of sequencing is the 8-bit - byte (octet). - - Sequencing 4d - - Sequence numbers are used as acknowledgement identifiers - and as an ordering mechanism. They are assigned to each - octet of data and to those controls that need - synchronization with the data stream. Only one sequence - number is sent with each TCP header; it represents the se- - quence number assigned to the first control or data in the - packet. This means that data and control sequence numbers - come from the same name space. The packet length is used - to determine the highest sequence number consumed by the - packet. - - Reuse of sequence numbers is allowed only for duplicate - retransmissions. The sequence number space is managed by - a cooperatively by the sender and the receiver, as will be - discussed later. - - Acknowledgement and Retransmission 4e - - A TCP acknowledgement represents the successful delivery - of some number of octets to the receiving process's buffer - or to the remote TCP (controls). It is sent to the - transmitting TCP in the acknowledgement field of a subse- - quent TCP header. The sequence number placed in this - field is the highest sequence number acknowledged by the - - - - - Garlick, Rom, & Postel page 3 - - LLG 8-Jun-77 13:01 29364 - Issues in Reliable Host-to-Host Protocols - - - - receiver and implies acknowledgement of all previous - octets. If packets arrive out of order, an - acknowledgement cannot be sent for octets with sequence - numbers higher than the missing octets, since that would - implicitly acknowledge the missing data. - - Packets can be retransmitted at will until they are - acknowledged; however, bandwidth may be underutilized if - improper retransmission policies are followed. Duplicates - naturally arise from retransmissions that occur prior to - the receipt of an acknowledgment and are detected and han- - dled as described below. - - Synchronization and Resynchronization 4f - - TCP is expected to run in a network with relatively long - packet lifetimes and relatively short times between the - closing and opening of a connection. Therefore, several - problems must be solved concerning detection of old dupli- - cate packets, that is, packets that have sequence numbers - assigned by old instances of a connection between the same - sockets. These problems are how to select startup se- - quence numbers, how to reliably exchange new sequence num- - bers, and how to determine when resynchronization of se- - quence numbers is necessary. - - The exchange of sequence numbers at synchronization or - resynchronization time is accomplished using a "three-way - handshake" method [References 2, 4, 5]. This method pro- - vides positive acknowledgement of the exchanged sequence - numbers and is sufficient to handle the problem of - simultaneous connection establishment attempts. - - A solution to the other two problems has been an Initial - Sequence Number curve [References 4, 5, 6], that is used - by the sender as a mechanism for 1) selecting the first - sequence number for a connection and 2) detecting when the - consumption of sequence numbers is not progressing in a - manner that will guarantee that old duplicates can be - reliably identified by the receiving TCP. - - The management of the sequence number space will be dis- - cussed in section 4. - - - - - - - - - Garlick, Rom, & Postel page 4 - - LLG 8-Jun-77 13:01 29364 - Issues in Reliable Host-to-Host Protocols - - - - Flow Control 4g - - Flow control is exerted by the receiver by issuing - credits, which represent the receiving process's - willingness to buffer data. Credits are passed in the TCP - header in the window size field. The window size is added - to the last acknowledged sequence number (the window's - left edge) to give the highest allowable sequence number - that may be sent (the window's right edge). Flow control - is discussed in further detail in section 3. - - Packet Acceptance Checking 4h - - The receiving TCP is responsible for the detection of - packets with improper sequence numbers. These may have - sequence numbers that are either old duplicates (from pre- - vious connections) or illegal because they are not within - an acceptable flow control range. - - To determine the action to be taken for a newly received - packet, acceptability ranges are defined. The following - three ranges are mutually exclusive and collectively - exhaustive of the sequence number space (see Figure 1): - - Acknowledge-deliver range (ADR) - - The packet has arrived in-order and does not exceed - the receiving process's buffer space. Data will be - placed in the buffer and an acknowledgement will be - generated to indicate successful delivery. - - Acknowledge-only range (AOR) - - A duplicate packet has arrived, as a result of - retransmission. It will be acknowledged, but not de- - livered, since delivery has already occurred. - - Discard range (DR) - - An illegal packet has arrived. It may be an old du- - plicate or a packet that cannot be delivered due to - flow control. - - Appendix A provides more details of the packet acceptance - policy. - - - - - - - Garlick, Rom, & Postel page 5 - - LLG 8-Jun-77 13:01 29364 - Issues in Reliable Host-to-Host Protocols - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Garlick, Rom, & Postel page 6 - - LLG 8-Jun-77 13:01 29364 - Issues in Reliable Host-to-Host Protocols - - - - - - FLOW CONTROL TECHNIQUES 5 - - Flow control is basically a mechanism to prevent the re- - ceiving process's buffers from overflowing. A good flow - control scheme must handle a whole spectrum of problems that - result from performing this basic duty. This section first - discusses general flow control goals and methods, and then - specific techniques for use with TCP that could significa- - ntly improve protocol performance. Where suggestions occur, - they represent an enhancement to the flow control scheme - used in the initial versions of TCP. 5a - - The goals of an ambitious flow control scheme include the - following: 5b - - Receiver's Allocation - - Any flow control strategy should consider the buffer - space offered by a receiving user, since this represents - a depository for incoming messages and relieves the TCP - of resource allocation problems. - - Congestion Prevention - - The flow control strategy should prevent queueing of - messages in the protocol module (TCP), so that TCP re- - sources can be used to handle those messages that have a - high probability of being delivered immediately. - Congestion in the subnet can be caused by a - retransmission protocol like TCP, since each - unacknowledged packet is retransmitted. The flow con- - trol scheme should make it easy to slow or stop - retransmission from the sender. - - Deadlock Prevention - - When congestion does occur, resources must be available - to handle traffic-clearing messages. Controls and flow - control information must be delivered and interpreted - even when data is queued. - - Fair Apportionment Of Bandwidth - - In a virtual connection environment, it is important to - be able to fairly allocate the available bandwidth to - - - - - Garlick, Rom, & Postel page 7 - - LLG 8-Jun-77 13:01 29364 - Issues in Reliable Host-to-Host Protocols - - - - users, based on a variety of criteria. One criterion - may be precedence of the user or the connection. Anoth- - er may be the mode of traffic, e.g., interactive traffic - may get preference over bulk traffic. - - Bandwidth Utilization For Various Modes Of Transmission - - A network will usually serve several types of user - communities and thus should be able to adapt the flow - control strategy to the needs of the user. For example, - transmission patterns for interactive users and bulk - transfer users are quite different. Those differences - should be reflected in the flow control strategies. - - Interplay With Subnet Flow Control - - Often the interfaces between modules representing levels - of protocol can cause flow control problems [Reference - 8]. For instance, the subnet flow control of the - ARPANET is adversely affected whenever a host does not - readily accept incoming data from the packet switch - (IMP). TCP is especially flexible in this regard, be- - cause it can absorb congested traffic from the subnet - and discard it if necessary. - - Exchanging Flow Control Information 5c - - A windowing scheme to convey flow control information has - been used for many different types of protocols. It is an - efficient technique that is useful whenever positive - acknowledgement and retransmission are used for reliable - transmission. Flow control information is passed in the - header of a packet as a window size. It is used in con- - junction with the acknowledgement sequence number (the - window's left edge) to determine the highest sequence num- - ber that can be transmitted with some assurance that it - will be acknowledged without retransmission. The - acknowledge sequence number plus the window size gives the - right edge of the flow control window. - - A nonzero window size gives permission to send a message - of a certain length. It is an "oversend" to send messages - with sequence numbers that exceed the window right edge. - In TCP, oversends will occur occasionally, since the flow - control information is always slightly out of date and it - is possible to withdraw flow control credits. Occassional - oversends are not a problem, because the receiver can al- - - - - - Garlick, Rom, & Postel page 8 - - LLG 8-Jun-77 13:01 29364 - Issues in Reliable Host-to-Host Protocols - - - - ways discard incoming data without sending - acknowledgements. - - Determining the Window Size 5d - - The TCP acknowledgement and retransmission scheme allows - flexibility in determining the correct flow control window - size. The window size should indicate the willingness of - the receiving process to provide buffer space. The window - size could represent exactly the available buffer space - that the user has offered for letter receiving (the - conservative strategy), or it could reflect some expected - buffer space, based on previous allocations (the - optimistic strategy). - - Conservative Guaranteed Allocation - - The conservative approach to window size setting gives - the receiving process almost full control over the flow - control mechanism. By assuring the sender that there - will be space for a particular number of octets, the - policy reduces discards thus reducing the number of - retransmissions. (Some messages may still be discarded - if they arrive out of order and sufficient reassembly - space is not available.) - - There are some disadvantages to the conservative - strategy of window size setting. Flow control informa- - tion is always slightly out of date when it is finally - received. The receiving process could have drastically - increased or decreased its allocation, making the infor- - mation useless. Unless a process provides for double - buffering, the window very likely will go from a fixed - size (whatever the users buffer is) to zero, each time a - message is passed on to the receiving process. Depend- - ing on the scheduling algorithm in the host, this could - result in windows of size zero, totally inhibiting mes- - sage flow. Before messages can flow again, a packet - with flow control information must arrive at the source. - Thus, a round trip delay is experienced between messages - and there is an increase of dataless packets in the net- - work. - - Another related problem is that large single buffers may - be used to receive small letters. If a window of say - size k is advertised and a packet of size << k arrives - that includes the end of a letter, then the destination - - - - - Garlick, Rom, & Postel page 9 - - LLG 8-Jun-77 13:01 29364 - Issues in Reliable Host-to-Host Protocols - - - - buffer is returned to the receiving process. The previ- - ous flow control credit, which was large, is withdrawn - and the window becomes zero. In the interim, the sender - may have sent several small letters, thinking the - receiver has the buffers to accept them. The receiving - TCP, knowing that the receiving process has no available - buffer space, will advertise a zero window. By the time - the window information arrives at the sending TCP, it - likely will be an inaccurate report and cause further - delays. - - Optimistic Credits - - The alternative to the conservative approach is to send - flow control information that is a good estimate of the - expected receiver's available space [References 3,7]. - Thus, the window size should be a function of previous - window sizes as well as the current available space. - The window size should be an average, weighted very - heavily toward the current time, so that a process that - is truly rejecting data will soon reflect a very small - window. - - This method could even be mixed with heuristics to force - the window to zero after a fixed period without re- - ceiving. - - Optimistic allocation can do much to help solve the - problem of drastic window size changes experienced with - the conservative scheme. In granting permission to - transmit messages before the user has allocated buffer - space, it fills the pipe and allows a smoother flow. It - is still reliable, because any message can be discarded - in the receiver since it will be retransmitted later. - - The disadvantages of the method are its instability when - faced with very irregular receiving patterns. A poorly - behaving receiver can still sabotage this policy, but - not as easily as with conservative technique. As will - be shown below, an optimistic strategy may be quite - dynamic with respect to recent receiving patterns, - connection precedence, and the fair sharing of the - available bandwidth. - - It may be possible to determine the semantics associated - with the window size by exchanging transmission mode or - topological information. When a connection is opened, - - - - - Garlick, Rom, & Postel page 10 - - LLG 8-Jun-77 13:01 29364 - Issues in Reliable Host-to-Host Protocols - - - - the transmission mode (e.g., interactive, bulk) and the - topology (e.g., satellite link) could be exchanged. - This would be used to determine the weighting of previ- - ous window sizes in calculating the current window. - - To demonstrate the idea of an optimistic flow control - policy, a method for setting the receive window size is - given in Appendix B. - - Zero Flow Control Windows 5e - - It may be necessary to stop the flow on a TCP connection, - i.e., stop all new transmissions and unnecessary - retransmissions. This is required when there are no user - receive buffers into which data can be placed. A zero re- - ceive window indicates an unwillingless to receive data. - This reluctance is conveyed to the remote TCP by sending a - packet with zero in the window size field. - - When interpreting packets, each TCP must read window sizes - on all packets, even those that acknowledge old - duplicates. This is necessary for setting the window to - zero when there is no data to carry the flow control in- - formation. - - TCP must perform special functions with regard to sending - packets into a zero window. If no data is being sent on - the connection, a zero window is of no concern to the - sending TCP. If there is data to be sent, it must be - queued. If necessary, new data from the sending process - must be rejected. The creation of new packets must be - suspended entirely, and retransmission must be suspended, - except for flushing controls, synchronizing controls, and - the window opening control mentioned below. - - Opening a window of size zero also presents some special - problems [Reference 6]. Since a window size can accompany - each packet, it seems that the normal data packet and - acknowledgement transmissions should be sufficient to vary - the size of the windows. However, when the remote TCP is - showing a zero receive window, it is difficult to send a - window change reliably. A data packet cannot be sent be- - cause the closed window indicates that only controls - should be retransmitted; moreover, there may be no data to - send. If ACKs are used and they arrive out of order, it - may be impossible to tell if the window is opening or - closing. - - - - - Garlick, Rom, & Postel page 11 - - LLG 8-Jun-77 13:01 29364 - Issues in Reliable Host-to-Host Protocols - - - - The problem of opening a window of size zero is solved by - using a pair of controls, one sent by the local TCP that - is making its window size nonzero (WOPEN) and one that is - sent by the foreign TCP to acknowledge the opening (WACK). - These are special controls that must be handled immediate- - ly, without regard for flow control restrictions. If con- - trols can be blocked by data, as in the present TCP, then - the WOPEN must be tagged with, but must not consume a se- - quence number. - - - - SEQUENCE NUMBER SPACE MANAGEMENT 6 - - The second area of the current TCP protocol that needs at- - tention is that of the reliable handling of the sequence - number space. In a packet-switching network with - alternative routing schemes, a packet can have a relatively - long lifetime, especially if the topology of the network in- - cludes satellite links. Due to misrouting, a packet can ar- - rive at its destination minutes or even hours late, depend- - ing on the topology. A reliable protocol must be able to - determine if such a packet is deliverable, acknowledgeable, - or if it must be discarded without acknowledgement. If dur- - ing the packet's transit time the connection is closed or - broken due to a crash with loss of memory, then the packet - is no longer valid. If the connection is reestablished, - using the same source and destination addresses, then the - arrival of the old packet can cause confusion in the re- - ceiving TCP. A reliable mechanism must exist to guarantee - that the receiving TCP can distinguish packets of the cur- - rent connection from packets of an old connection. 6a - - Resynchronization, suggested by Tomlinson [Reference 4,5], - is one such mechanism. Resynchronization is used in this - paper to denote the mechanism itself, rather than the stage - of the mechanism when the actual resetting of the sequence - numbers is done. The scheme is based on selecting initial - sequence numbers (ISN's) from a curve in the sequence- - number/time plane. When a new connection is opened, its - first sequence number is taken from the ISN curve. If the - consumption of sequence numbers is satisfactory, i.e., simi- - lar in slope to the ISN curve, resynchronization of sequence - numbers need not occur. However, if the rate of consumption - is too slow, resynchronization may be required to avoid - colliding with the ISN curve. The ISN curve has a parallel - boundary (defining a "forbidden zone") that indicates that - - - - - Garlick, Rom, & Postel page 12 - - LLG 8-Jun-77 13:01 29364 - Issues in Reliable Host-to-Host Protocols - - - - no new sequence numbers may be assigned and that - resynchronization must take place immediately. If this is - not done and if a crash occurs, sequence numbers assigned in - the forbidden zone could conflict with the ISN chosen for - the new connection. See Appendix C, and References 4, 5, 6 - for further details of the resynchronization mechanism. 6b - - A few of the problems related to implementing - resynchronization are discussed below. 6c - - Understanding and Documenting the Problem - - Even though the resynchronization method is a workable - one, it is not at all straightforward. It takes - numerous pages and illustrations just to document the - concept [Reference 4,5,6]. As has been pointed out in - the past by weathered ARPANET protocol implementers, a - protocol must be reasonably easy to understand and easy - to document. After all, if the network is - heterogeneous, it will be implemented on numerous kinds - of hardware by system programmers with various degrees - of skill. - - Testing for the Need to Resynchronize - - The protocol requires that if a connection is broken due - to a system crash, the sequence number chosen at startup - must be one that cannot be confused with any sequence - number still in the network for the old instance of that - connection. To satisfy this requirement, periodic - runtime checking must be done to determine if the se- - quence number consumption rate is satisfactory, i.e., if - it is approaching the forbidden zone. This check must - be done at fixed time intervals, not just when sequence - numbers are being assigned. The check may result in the - need to resynchronize even (and especially) if the - connection is idle. - - Resynchronization and Flow Control - - The need to resynchronize may occur at any time, and the - resynchronization must proceed in a timely manner if - normal activity is to continue. However, since - resynchronization means changing from the old sequence - numbers to new sequence numbers and since the - resynchronization control must be acknowledged (marked - with an "old" sequence number), all data marked with the - - - - - Garlick, Rom, & Postel page 13 - - LLG 8-Jun-77 13:01 29364 - Issues in Reliable Host-to-Host Protocols - - - - "old" numbers must be acknowledged before the - resynchronization control is acknowledged. If data is - not being accepted because the user is not receiving, - then resynchronization cannot proceed. If - resynchronization cannot proceed, then neither new con- - trols nor new data may be sent. - - The Loss of a Truly Out-Of-Band Signal - - Due to the flow control problem mentioned above, all - controls can be blocked during a resynchronization pro- - cess. This includes the interrupt, which is supposed to - be an out-of-band signal. Losing the out-of-band capa- - bility, even in rare instances, is an unfortunate defi- - ciency. Higher-level protocols that rely on an out-of- - band signal could be severely crippled by the inability - to interrupt a "runaway" process. In fact, it is the - runaway process, by not accepting data, that will soon - force resynchronization and will not be interruptable. - - Extra Connection States and Controls - - When a state diagram is used to represent a TCP - connection, 40% of the connection states are a result of - the resynchronization mechanism [Reference 6]. These - seven extra states allow for simultaneous - resynchronization attempts and resynchronization - attempts during connection closing (with no data loss). - - One extra control is required to support - resynchronization. It is believed that more would be - required for satisfactory solutions to the problems of - resynchronizing a connection that is blocked by data - flow control and for support of a true out-of-band sig- - nal. - - Decentralized Code - - Code to support resynchronization would be scattered - throughout many modules of the protocol implementation. - There must be a watchdog for detecting the forbidden - zone. There would be heuristics strewn throughout the - control sending and parsing modules. Also, to solve the - flow control and interrupt problems mentioned above, - special provisions must be made for either flushing data - or saving old sequence numbers. - - - - - - Garlick, Rom, & Postel page 14 - - LLG 8-Jun-77 13:01 29364 - Issues in Reliable Host-to-Host Protocols - - - - An Alternative to Resynchronization 6d - - An alternative to resynchronization is a strategy that - uniquely names each instance of a connection. The name - (or incarnation number) is passed in each packet and is - used by the receiver to filter out packets from old - connections. The incarnation number is generated from - clock time; thus, like the resynchronization method, no - crash-proof memory is required. - - Each time a TCP comes up, it determines its incarnation - number from a clock. The appropriate clock resolution and - wraparound period is a factor of the maximum packet - lifetime for the network or interconnected network. Let - us assume that the clock has a resolution of one minute - and a wraparound period of 256 minutes. The resulting - incarnation number is 8 bits long, and is used to assure - the receiver that any message received with this - incarnation number is from the active connection and not - an old one. The uniqueness of the incarnation number al- - lows the resetting of the sequence number space to zero at - initialization of each new path (first connection between - two users). - - When a connection is closed, a TCP must save the last se- - quence number used. It must retain the number for time - MPL (maximum packet lifetime). Saving the sequence number - and the time of a closed connection solves the problem of - the repeated opening and closing of the same connection - (source and destination). It does not solve the problems - created by TCP or host computer crashes. - - When connection establishment is requested, the list of - old connections must be searched by (source, destination). - If a match is found, the sequence number plus one is the - first sequence number used when the connection is opened. - If there is no match, then numbering can start at zero. - Management of the old connection list entails removal of - outdated items. This can be handled, for the most part, - during normal searching. When list storage becomes - scarce, a simple garbage collection routine can be - invoked. - - There are two problems with the method using incarnation - numbers. First, there is some concern about the size of - the old connection list. It would not be surprising to - see 1000 connections per hour for an average host. The - - - - - Garlick, Rom, & Postel page 15 - - LLG 8-Jun-77 13:01 29364 - Issues in Reliable Host-to-Host Protocols - - - - fact that TCP allows a socket to be party to many - connections will lead to fewer source and destination - pairs; thus, many connections will be reused. (This is in - contrast to the ARPA network, where restrictions in socket - usage result in contact connections being used to spawn - direct, dynamically named service connections.) Another - factor that alleviates concern about the space required - for the old connection list is the recent progress in - inexpensive memories. - - The second problem is how to keep the incarnation number - small enough to be sent in each header and still keep the - clock cycle (name space) large enough to ensure - uniqueness. It is felt that an incarnation number field - greater than 8 bits is excessive header overhead. To ac- - commodate this, the resolution of the clock is - constrained, which leads to the following restriction ap- - plied at host startup time. When a host comes up after a - crash, it must delay at least MPL / 2**8 before any - connections are opened, so that a unique TCP incarnation - number is always chosen. A startup delay of one minute is - probably sufficient for the internetting case since it - implies a maximum packet lifetime (MPL) of 256 minutes. - - - - THE NEED FOR A CONTROL SUBCHANNEL 7 - - In earlier versions of TCP, data, controls, and out-of-band - signals (also a control) are all multiplexed onto one - logical channel. This means that one set of sequence num- - bers is used for their orderly and reliable delivery. 7a - - One advantage of a single logical channel is the savings in - the TCP header. Protocol overhead is a serious matter, - since it is suffered with each message. Let us assume that - it is desirable to allow piggybacking of activity from each - channels. Since each logical channel requires header fields - for both a sequence number and an acknowledgement number, - header sizes increase by twice the sequence number field - size as each new channel is added. 7b - - A second advantage to one logical channel is the ability to - synchronize the control stream with the data stream. - Synchronization of the control and data streams is useful - for handling interrupts and connection closing (without data - loss). However, synchronization of streams can result in - - - - - Garlick, Rom, & Postel page 16 - - LLG 8-Jun-77 13:01 29364 - Issues in Reliable Host-to-Host Protocols - - - - unwanted interdependencies, since the acknowledgement of a - control may require the acknowledgement of preceding data. 7c - - Two disadvantages of the single sequence number space scheme - have been discovered recently: reassembly of data mixed - with controls is costly when packets arrive out of order, - and a true out-of-band signal is not being provided. The - first problem is an efficiency matter that has plagued early - implementers [Reference 9]. User buffer space cannot be - used for the reassembly of out of order packets because - there is no way to know if the unarrived packets contain - only data or if controls are intermixed with the data. 7d - - The essence of the second problem is that the - acknowledgement scheme requires that acknowledgement of a - sequence number is implicit acknowledgement of all preceding - sequence numbers. Since interrupts must be acknowledged for - reliability, the transmission of an interrupt can be blocked - by data flow control in the receiver. This was noticed by - Cerf initially (Reference 2) and an attempt was made to - rectify the matter by giving the interrupt extra semantics-- - that it always flushes unacknowledged data. This solution - is probably sufficient unless resynchronization methods are - used for sequence number selection. 7e - - As mentioned earlier, when the resynchronization method is - used, there is no clean solution to the problem of achieving - both synchronization with the data stream and independence - of data flow control. This is due to the fact that the - resynchronizing control can be blocked by data flow control - but cannot be flushed. 7f - - A compromise solution when using resynchronization is to - separate controls and interrupts from the data channel, mak- - ing a control subchannel. The control sequence number is - the composite of the data channel sequence number (DCSN) and - the subchannel sequence number (SCSN). This serves the dual - purpose of synchronizing the two streams and using the - resynchronization mechanism of the data channel for all - subchannels. A subchannel allows reliable transmission even - when the data channel is inactive, without flushing data. 7g - - From the SCSN, the number of control fields, and the last - SCSN received, the receiver can determine if subchannel - traffic is coming in order and thus, whether it can be - acknowledged. 7h - - - - - - Garlick, Rom, & Postel page 17 - - LLG 8-Jun-77 13:01 29364 - Issues in Reliable Host-to-Host Protocols - - - - The field size holding the SCSN determines the wraparound - point in the SCSN space. The SCSN space is initialized to - zero when the DCSN is synchronized. It IS NOT reset with - each DCSN change. 7i - - There is no flow control information passed for the - subchannel. Discarding controls (without acknowledgement) - is the flow control mechanism. Since the sequence number - space is small compared to that needed to prevent wraparound - in the worst case, the TCP must keep track of the DCSN to - which the first SCSN was assigned. If wraparound of the - SCSN space occurs, in the rare event that many controls are - sent while the data channel is blocked, then the control - channel becomes blocked. This is very unlikely because a - long series of controls will probably contain a string of - interrupts, and successfully delivered interrupts will usu- - ally cause the receiving process to unblock the data chan- - nel. 7j - - Acceptability Test for Subchannel Traffic 7k - - The acceptability test of items on the subchannel is a - composite test of both sequence numbers. First the DCSN - is checked to see if it would be acknowledged if it were - an octet received on the data channel. Only if it would - have been discarded will the item on the subchannel be - discarded. Having passed the DCSN test, the SCSN is - checked to see if the item is deliverable and - acknowledgeable with respect to the SCSN sequence number - space. The SCSN test is less involved than the DCSN test - because there is no flow control range. To be believable, - the SCSN must fall in the range of SCSN's sent and SCSN's - for which acknowledgements have been received. This is a - check for everything except the existence of old - duplicates from old instances of the connection, which is - made by checking the DCSN. - - - - - - - - - - - - - - - - Garlick, Rom, & Postel page 18 - - LLG 8-Jun-77 13:01 29364 - Issues in Reliable Host-to-Host Protocols - - - - A Scenario Using a Control Subchannel 7l - - Let us examine a short scenario between TCP A and TCP B. - The scenario assumes connections have been established and - transmission has proceeded normally. Only those header - fields that relate to data and control channels will be - indicated. Note that the control length can be determined - by the receiver from other fields in the header. The fol- - lowing shorthand will be used in the scenario: - - DSN - data sequence number - DL - length of data in octets - DACK - acknowledgement for all preceding data octets - CSN - control sequence number - CACK - acknowledgement for all preceding controls - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Garlick, Rom, & Postel page 19 - - LLG 8-Jun-77 13:01 29364 - Issues in Reliable Host-to-Host Protocols - - - - #1 from TCP A - ----------------------------------- - ! DSN ! DL ! DACK ! CSN ! CACK ! ====> - ! 100 ! 2 ! 200 ! 5 ! 25 ! ====> - ----------------------------------- - sends 2 data octets (100 & 101), - acks data through 200; - sends 1 control (5), acks controls - through 25. - - #2 from TCP A - ----------------------------------- - ! DSN ! DL ! DACK ! CSN ! CACK ! ====> - ! 102 ! 3 ! 200 ! 5 ! 25 ! ====> - ----------------------------------- - sends 3 data octets (102-104), - acks data through 200; - sends no controls, - acks controls through 25. - - #3 from TCP A - ----------------------------------- - ! DSN ! DL ! DACK ! CSN ! CACK ! ====> - ! 105 ! 3 ! 201 ! 6 ! 25 ! ====> - ----------------------------------- - sends 3 data octets (105-107), - acks data through 201; - sends 1 control (6), - acks controls through 25. - - #4 from TCP B - ---------------------------------- - <==== ! DSN ! DL ! DACK ! CSN ! CACK ! - <==== ! 202 ! 1 ! 101 ! 26 ! 6 ! - ---------------------------------- - Having received #1, #3, but not #2, - sends 1 data octets (202), - acks data through 101; - sends 1 control (26), - acks controls through 6. - - - The main things to notice from this scenario are that data - and controls are still piggybacked, as in the current - version of TCP, and that there is a degree of independence - between the two channels. As the scenario shows, TCP B can - acknowledge controls that have arrived in order even though - - - - - Garlick, Rom, & Postel page 20 - - LLG 8-Jun-77 13:01 29364 - Issues in Reliable Host-to-Host Protocols - - - - it has not received data in order. Moreover, TCP B is able - to use the latest data sequence number to test the accep- - tability of the latest control sequence numbers. - - - - SUMMARY 8 - - Several suggestions have been presented here for the im- - provement of TCP. The suggestions relate to improved effi- - ciency, simplification of implementation, and protocol - functionality. The motivation for the suggestions is more - than to improve a specific protocol. It is also to focus - attention on a set of issues that are common to all reliable - host-to-host protocols. 8a - - Flow control ideas have been discussed, with attention to - implementation ideas that satisfy fairly ambitious goals. - Window management techniques have been suggested that could - improve efficiency. A window setting method was presented - that features optimistic credits that are a function of past - credits, congestion, and available buffer space. 8b - - An alternative to the resynchronization method of sequence - number space management has been given. The suggested meth- - od is based on passing TCP incarnation numbers and keeping - an old connection list. The method is simple to implement, - requires no nonvolatile memory, and still guarantees reli- - able detection of illegal packets. 8c - - Finally, the need for the separation of data and control - channels was motivated. The solution, a reliable - subchannel, is achievable with no separate sequence number - space maintenance. 8d - - It is hoped that each of these suggestions will be imple- - mented in future versions of TCP. There are - interdependencies involved; that is, some of the stated - problems become less severe when others are solved. For ex- - ample, if resynchronization is abandoned, then the argument - for separate channels is motivated only by the need for the - efficient reassembly of out of order packets. 8e - - Of all the suggestions, the most important is that concern- - ing a new approach to sequence number space management. - However, if resynchronization methods are retained, then a - - - - - - Garlick, Rom, & Postel page 21 - - LLG 8-Jun-77 13:01 29364 - Issues in Reliable Host-to-Host Protocols - - - - subchannel for controls is a must. Otherwise, a truly out- - of-band signal is lost. 8f - - The discussion of flow control indicated areas that should - gain attention as more experience with TCP is gained. This - should be an area for significant measurement, under many - different transmission modes. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Garlick, Rom, & Postel page 22 - - LLG 8-Jun-77 13:01 29364 - Issues in Reliable Host-to-Host Protocols - - - - - - REFERENCES - - [1] Cerf, V. and R. Kahn, "A Protocol for Packet Network - Intercommunication," IEEE Transactions on Communica- - tion, Vol COM-20, No. 5, May 1974. - - [2] Cerf, V., Y. Dalal, C. Sunshine, "Specification of - Internet Transmission Control Program," INWG General - Note #72, December 1974 (Revised). - - [3] Sunshine, C., "Interprocess Communication Protocols - for Computer Networks," Digital Systems Laboratory - Technical Note #105, December 1975. - - [4] Tomlinson, R., "Selecting Sequence Numbers," INWG - Protocol Note #2, September 1974. - - [5] Dalal, Y., "More on Selecting Sequence Numbers," - INWG Protocol Note #4, October 1974. - - [6] Postel, J., L. Garlick, R. Rom, "Transmission Con- - trol Protocol Specification (AUTODIN II)," SRI-ARC - Catalog #35938 & #35939, July 1976. - - [7] Sunshine, C., "Factors In Interprocess Communication - Protocol Efficiency For Computer Networks," Proc. - National Computer Conf., 1976, AFIPS Press, pp - 571-576. - - [8] Herrmann, Jeff, "Flow Control in the ARPA Network," - Networks, Vol 1, Number 1, June 1976. - - [9] Burchfiel, J., W. Plummer, R. Tomlinson, "Proposed - Revisions to the TCP," INWG Protocol Note #44, Sep- - tember 1976. - - - - - - - - - - - - - - - Garlick, Rom, & Postel page 23 - - LLG 8-Jun-77 13:01 29364 - Issues in Reliable Host-to-Host Protocols - - - - GLOSSARY - - AHHP: ARPANET host-to-host protocol. - - control: commands passed between TCP's that are used to co- - ordinate connection management. - - DCSN: data channel sequence number. - - host: a computer that is connected to the network and that - executes programs on behalf of its users. A host may pro- - vide services to other computers on the network. - - ISN: Initial sequence number; the first sequence number - used when a connection is synchronized or resynchronized. - - MPL: maximum packet lifetime. - - octet: eight bits. - - SCSN: subchannel sequence number; control channel sequence - number. - - socket: an entity defining one end of a TCP connection; the - inter-network-wide name of a process port. - - subnetwork: the network of computers that provides a com- - munication medium for network hosts. The nodes of a - subnetwork may function as host interface points as well as - store and forward computers. - - TCP: Transmisssion Control Program and the protocol it - implements. - - window: a dynamic range in the sequence number space used - in flow control management. - - - - - - - - - - - - - - - - Garlick, Rom, & Postel page 24 - - LLG 8-Jun-77 13:01 29364 - Issues in Reliable Host-to-Host Protocols - - - - APPENDIX A: PACKET ACCEPTANCE - - This appendix provides details of the TCP packet acceptance - testing scheme. It should clarify the possible actions the - receiving TCP may take when it receives an arbitrary packet. - Remember, the receiver is responsible for the detection of - packets with improper sequence numbers from either old - connections or ill-behaving TCP's. For notation, let - - ADR = acknowledge and deliver range - - AOR = acknowledge only range - - DR = discard range - - S = size of sequence number space (number per octet) - - x = sequence number to be tested - - FCLE = flow control left window edge - - ADRE = (FCLE+ADR) mod S = Ack-deliver right edge (Discard - left edge - 1) - - AOLE = (FCLE-AOR) mod S = Ack-only left edge (Discard - right edge + 1) - - TSE = time since connection establishment (in sec) - - MPL = maximum packet lifetime (in sec) - - TB = TCP bandwidth (in octets/sec) - - For any sequence number, x, and packet text length, l, if - - (AOLE <= x <= ADRE) mod S and - - (AOLE <= x+l-1 <= ADRE) mod S - - then the packet should be acknowledged. - - If x and l satisfy - - (FCLE <= x <= ADRE) mod S and - - (FCLE <= x+l-1 <= ADRE) mod S - - - - - - Garlick, Rom, & Postel page 25 - - LLG 8-Jun-77 13:01 29364 - Issues in Reliable Host-to-Host Protocols - - - - then x can also be delivered to the user; however, ordered - delivery requires that x = FCLE. - - A packet is not in a range only if all of it lies outside a - range. When a packet falls in more than one range, prece- - dence is ADR, then AOR, then DR. When a packet falls in the - AOR then an ACK should be sent, even if a packet has to be - created. The ACK will specify the current left window edge. - This assures acknowledgment of all duplicates. - - ADRE is exactly the maximum sequence number ever - "advertised" through the flow control window, plus one. - This allows for controls to be accepted even though - permission for them may never have been explicitly given. - Of course, each time a control with a sequence number equal - to the ADRE is sent, the ADRE must be incremented by one. - - AOR is set so that old duplicates (from previous - incarnations of the connection) can be detected and dis- - carded. Thus - - AOR = Min(TSE, MPL) * TB. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Garlick, Rom, & Postel page 26 - - LLG 8-Jun-77 13:01 29364 - Issues in Reliable Host-to-Host Protocols - - - - APPENDIX B: WINDOW SIZE SETTING - - To demonstrate the idea of an optimistic policy for window - size setting, a method for setting the receive window size - is given [Reference 6]. The scheme satisfies the flow con- - trol goals discussed earlier. Several parameters have been - vaguely unspecified since they can be determined only after - considerable testing and measurement of a specific TCP im- - plementation. - - First, some notation: - - B - Total bandwidth of the TCP, given unlimited user re- - sources - - N - The number of connections in the TCP - - CONGEST - A congestion factor which reflects available TCP - resources (CONGEST =< 1) - - WLT - The long term window - - W - The current window - - AVWT - Weighting coefficient for available buffer space - - OLDWT - Weighting coefficient for old window (OLDWT = 1 - - AVWT) - - Tot - Total user buffer space - - Avail - The unfilled part of Tot - - The long term window might look like: - - WLT = B/N * CONGEST. - - The algorithm used to update the current window is the fol- - lowing. Upon the processing of a user's receive request - (buffer offering), the local receive window is set so that: - - W = MINIMUM(WLT, Tot). - - - - - - - - - - Garlick, Rom, & Postel page 27 - - LLG 8-Jun-77 13:01 29364 - Issues in Reliable Host-to-Host Protocols - - - - Each time a packet is sent for this connection, the local - TCP sets the receive window and the packet header window - size field so that - - W = (AVWT * Avail/Tot) * WLT + (OLDWT * W) (for nonzero - Tot) - - and - - W = OLDWT * W (for Tot = 0). - - It is important to note that a user's receive buffer is re- - turned when an End-of-Letter is received. Thus, a small - letter sent to a large buffer can cause the Avail and Tot to - vary abruptly, even though there may be a smooth flow of - letters. - - This window size setting scheme meets the goals mentioned in - section 3 in the following ways: - - WLT is dependent upon the number of the connections, - thereby administering fairness among connections. It also - considers the level of congestion in the receiving TCP, - assuming some measure of resource availability can be pro- - vided. - - The window size will never exceed the bandwidth allocated - to the connection. The algorithm may sometimes give cre- - dit to a "well behaving" process by setting his window to - greater than the actual buffer available. This window will - be reduced if the process does not supply new receive - buffers promptly. - - The current window size is dependent upon previous window - sizes and upon the rate at which the process makes letter - space available. If a process fails to make such space - available, its receive window will be reduced by OLDWT - every time a packet is sent. (The TCP may also apply a - threshold mechanism by which a window is set to zero when - it is reduced below the threshold.) - - The algorithm can be modified slightly to support high - throughput for high precedence connections. Parameter WLT - cAn be made dependent on some criterion for the high pri- - ority traffic. Categories of priority can be used with - some guaranteed service (part of the bandwidth) given the - highest priority categories. - - - - - Garlick, Rom, & Postel page 28 - - LLG 8-Jun-77 13:01 29364 - Issues in Reliable Host-to-Host Protocols - - - - APPENDIX C: RESYNCHRONIZATION DETAILS - - In Figure 2, we show the history of sequence numbers used by - a particular connection. The lines labeled "ISN" represent - the maximum permitted rate at which sequence numbers can be - used, however, this may be different than the maximum - throughput rate for the TCP. - - Suppose that the TCP supporting the connection fails at "C" - and must be restarted. Assume, also, that the sequence num- - ber selected to restart is drawn from the value of ISN at - the time event "C" occurred. The shaded area between "C" - and "B" represents the maximum expected time that packets - emitted at "C" can stay in the net. Clearly, the ISN line - intersects this shaded area, indicating that, after the - restart, it is possible that packets emitted at "C" may be- - come undistinguishable from those potentially emitted along - the ISN curve. To correct this flaw, the sequence number - currently to be used on the connection must be - resynchronized before running into the forbidden zone to the - left of the ISN line. - - Testing for the need to resynchronize - - As packets are produced and sequence numbers assigned to - them, the TCP must check for two possible conditions which - indicate that resynchronization is needed. The first is - that sequence numbers are being used up so fast that they - advance faster than ISN. The other is that they advance - so slowly that ISN "catches up with them." - - The basic method of selecting an initial sequence number - is to delay for an arbitrary period labelled a "clock - tick" or STEP and then select the new ISN. - - In Figure 2, three sequence number histories are traced, - ending in points "A", "B", and "C". In the trace labelled - "A," sequence numbers are used at such a rate that point - "A" lies beyond ISN plus one STEP. If the connection were - to fail and be restarted at "A," the new ISN would be just - below point "A" and would introduce potential unwanted - duplicates. - - This situation can be detected before transmission of the - packet. Let L be the length of the data in octets. Let - SEQ represent the proposed sequence number of the packet, - and SEQ+L-1 be the sequence number implicitly associated - - - - - Garlick, Rom, & Postel page 29 - - LLG 8-Jun-77 13:01 29364 - Issues in Reliable Host-to-Host Protocols - - - - with the last octet of packet data. Also, let SMPL be the - sequence numbers consumed at maximum TCP throughput during - a maximum packet lifetime. If ISN+STEP (at the moment - that SEQ is to be assigned) lies in the range [SEQ, - SEQ+L-1], then the type "A" ISN failure is about to occur. - The solution is to send only as much text as is allowed - (which does not result in the failure) and WAIT for the - clock to tick again. - - The situation in curve "B" is quite different. In this - case, the connection is using numbers so slowly that the - forbidden zone preceding the ISN curve has advanced and - run into the connection sequence number curve. There are - two solutions. One is to wait for the packet lifetime - plus one clock step to expire (in which case the sequence - history will pop out of the forbidden zone again). The - other is to actively resynchronize the connection. The - test for the type "B" situation is whether sequence number - SEQ lies in the range [ISN, ISN+SMPL+STEP]. - - Note that all tests for inclusion must be modulo S, the - size of the sequence number space, to account for the wrap - around of sequence numbers. - - Curve "C" in Figure 2 shows a sequence number trace which - tends, on the average, to lie within legal values at all - times. - - - - - - - - - - - - - - - - - - - - - - - - - Garlick, Rom, & Postel page 30 - - LLG 8-Jun-77 13:01 29364 - Issues in Reliable Host-to-Host Protocols - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Garlick, Rom, & Postel page 31 - - LLG 8-Jun-77 13:01 29364 - Issues in Reliable Host-to-Host Protocols - - - - As presented at the Second Berkeley Workshop on Distributed - Data Management and Computer Networks, May 1977, at Berkeley, - California.####; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Garlick, Rom, & Postel page 0 diff --git a/text/ien/ien120.txt b/text/ien/ien120.txt deleted file mode 100644 index 66d4f5c3..00000000 --- a/text/ien/ien120.txt +++ /dev/null @@ -1,650 +0,0 @@ - IEN 120 - - - - - - - INTERNET ROUTING AND THE NETWORK PARTITION PROBLEM - IEN #120 - PRTN #279 - Radia Perlman - Bolt Beranek and Newman, Inc. - October, 1979 - - -I. INTRODUCTION - -As described in IEN 110, "Internet Addressing and Naming in a -Tactical Environment", a network can become partitioned into two -or more pieces. Assuming some of these pieces are still -connected to the catenet, we would like the catenet to be able to -efficiently deliver packets to a host in any such piece. Such a -capability in the catenet could additionally be utilized by a -scheme for delivering intranet traffic across partitions in a -partitioned network. - -There are four parts to the solution: -1) detecting that a network is partitioned -2) deriving a name for each partition -3) figuring out which partition a host is in -4) routing packets to the correct partition - -The currently implemented gateway routing algorithm is based on -the original ARPANET algorithm. To efficiently provide for -routing to network partitions, routing must be based on a link -state routing scheme. I will demonstrate this after first -presenting the design (parts II-VIII), then showing what would be -involved in modifying the original ARPANET algorithm for that -purpose (part IX), and then comparing the two approaches (part -X). - - -II. TERMINOLOGY - -1) neighbor gateways--two gateways attached to the same network - -2) functioning neighbor gateways--neighbor gateways able to -communicate with each other over their common network - -3) attached network--a network physically attached to a gateway, -and with which the gateway can communicate directly (not through -another gateway) - -4) neighbor network of gateway G--an attached network of a -functioning neighbor gateway of G, excluding attached networks of -G. - - - - 1 - - - - -III. TABLES TO BE MAINTAINED BY EACH GATEWAY - -1) a list of attached networks--This list is relatively constant -and is updated by a gateway when it notices a network interface -is down or for some other reason the gateway is incapable of -communicating with an attached network. Keeping this table -updated is solely the responsibility of each gateway, and does -not require intergateway communication. - -2) a table of all gateways and their attached networks--This -table is maintained by intergateway communication -- gateways -give copies of their table 1 to all other gateways. The table of -all gateways never shrinks (a down gateway is assumed to exist -but be unreachable). - -3) a table of link states to neighbor gateways--This table in -gateway G specifies, for each neighbor gateway G1, over which -common networks G and G1 can communicate. This table is updated -by G periodically bouncing packets off each neighbor gateway from -which it has not recently received traffic. Note that I refer to -two gateways as neighbor gateways even if they cannot -(temporarily, hopefully) communicate with each other. - -4) a list of neighbor networks--This list is derived from the -table of link states to neighbor gateways and the list of -gateways with attached networks (tables 3 and 2). - -5) total link state--This is a table of all gateways and the -state of their links to their neighbor gateways. This table is -compiled from intergateway communication. When a gateway notices -that its table of attached networks, or its table of link states -to neighbor gateways (tables 2 and 3) changes, that gateway -efficiently broadcasts this information to all other gateways in -the catenet. To minimize numbers of reports when a link is -flaky, a link on an attached network must be up continuously for -some amount of time before its state is considered to change from -down to up and trigger a link state report. - -6) shortest distance matrix--This is a data structure from which -routing decisions can be made directly. It is computed from the -other tables. It is described more fully in part IV. - - -IV. ROUTING COMPUTATION - -A gateway, using the tables described above, constructs a -connectivity matrix whose rows and columns represent networks, -and whose entries are 1 if any gateways claim to be attached to -both networks, and infinity otherwise. Then the gateway *'s that -matrix to construct a shortest distance matrix. (The operation -"*" consists of "multiplying" a matrix by itself, using the -operations min and plus instead of plus and times, until the -result stabilizes. This is a well-known algorithm.) The gateway - - - - 2 - - - - -then looks in the shortest distance matrix for the neighbor -network (or set of such) closest to the destination network, and -chooses a functioning neighbor gateway (or set of such) attached -to that neighbor network, to forward packets to for that -destination network. - -When a link state report changes the state of an entry in the -connectivity matrix (remember, all gateways connecting two -networks have to go down before a 1 changes to infinity), a -gateway must recompute the distance matrix. - -This design is a slight modification of the design presented in -"Gateway Routing", by Radia Perlman (PRTN #242, PSPWN #99). The -modification is that the indices of the matrix are networks, not -gateways. The purpose of this modification is to make the size -of the matrix smaller, an important modification given that in -the catenet there are many more gateways than networks. There -are aspects to the scheme that are irrelevant to a discussion of -how to solve the network partition problem, such as sequence -numbers for link state reports, etc. The purpose of this paper -is to direct a correct approach to the design, and not to present -an implementation specification. Thus an implementer should read -PRTN 242 to discover the details of a link state algorithm that -were not relevant for presentation here. - -Note that an alternative to *'ing the matrix is to use the scheme -that the ARPANET has switched over to, which is a link state -scheme in which a shortest path routing tree is constructed from -the connectivity information. The new ARPANET scheme is less -costly to maintain as links change state. Its disadvantages are -that it precludes load splitting, probably a very important -problem in the case of the catenet, and is probably a little -harder to implement. Since links will not change state very -often, the author favors the overhead of the matrix *'ing scheme -over the disadvantages of the ARPANET scheme. However, this -decision is separable from the rest of the design and can be -decided either way at a later time. - - -V. DETECTING THAT A NETWORK HAS PARTITIONED - -Now we look at the problem of network partitions. In the design -presented so far there is enough information for any gateway to -detect a partitioned network and to isolate groups of gateways on -each partition: A gateway G knows that network N is partitioned -if there are two sets of gateways, set Q and set R, such that all -gateways in both sets report they are attached to network N, but -there are no two-way links between a member of set Q and a member -of set R via network N. This information is derived -independently by each gateway from the table of all gateways and -their attached networks, and from the table of total link state -(tables 2 and 5). - - - - - 3 - - - - -VI. DERIVING A NAME FOR EACH PARTITION - -It is necessary to expand the internet header to allow a field -for identifying a network partition. The reason for this is to -avoid the necessity for every gateway on a packet's route to -discover to which partition the packet should be sent. - -The partition name must give sufficient information so that every -gateway can make the proper routing decisions to send a packet to -that partition, based on its tables of total link state and -gateways/attached nets (tables 5 and 2). - -The following schemes for naming a partition are all done -independently by all gateways, as opposed to having some central -authority choose a name and inform all gateways, or having a -group of gateways decide on a name "by committee". - -One method of identifying a partition is to use the name of any -member gateway of the partition. It will not matter if two -gateways choose different names for the same partition. Since -the sets of gateways involved in the network partitions are -disjoint, any member of the set identifies the set. - -Another method is to list (either by an explicit list or a bit -table) the set of gateways that make up that partition. This is -unnecessarily descriptive, since the list of gateways is -derivable from a single member of the set. And it is a less -robust scheme, because any change to the partition (a gateway -going down, coming up, or the net partitioning into more pieces) -can confuse a gateway trying to route to that set of gateways. -In the first method, if the partition changes, the packet will be -routed unambiguously to whatever partition the named gateway is -in. Of course, if the named gateway goes down, the packet -becomes undeliverable, but that is easier to deal with than -trying to deliver a packet to a set of gateways that overlaps two -partitions. - -A third method is for each gateway to number partitions from 1 to -the number of partitions, ordered by, say, the highest numbered -gateway in each partition. This method uses fewer bits in the -packet header but is a much less robust scheme. With gateways -having slightly differing information, partition names have -different meanings. Also, partitions can switch names suddenly. -For instance, a net can be partitioned into 2 pieces, numbered 1 -and 2, and, assuming the highest numbered gateway was down, and -comes up in partition 2, partitions 1 and 2 now switch -identities. - -Thus the recommended method of identifying a partition is the -first method. - - - - - - - 4 - - - - -VII. FIGURING OUT WHICH PARTITION A HOST IS IN - -Now we will examine several schemes for having the correct -partition identified in a packet. It is the responsibility of -either the source host or first gateway to do this. By examining -the alternative schemes we can also determine whose -responsibility it should be. - -a) Source host determines correct partition by trial and error -- -The source host does not know about the structure of the catenet -and does not know that the destination net is partitioned. When -it sends a packet to that net with no partition name filled in, -the first gateway to receive the packet sends back a message that -that network is partitioned, and lists the partition names. -Assuming there are k partitions, the source host sends k packets -requiring ACKs to the destination, each packet addressed to a -different partition. The packet that receives an ACK is the one -addressed to the correct partition. - -If a gateway receives a packet with an incorrectly filled in -partition name field, that gateway will send back the same kind -of notification as for a packet with a blank field -- it will -notify the host that the net is partitioned and list the -partition names, or if the net is no longer partitioned, give -that information. - -If the source host is sending packets that require -acknowledgments, it will notice quickly if its packets stop -getting successfully delivered to the destination. Then it can -redetermine the host's partition. - -b) The first gateway, using trial and error -- If it is the first -gateway that has the responsibility, it can do the same thing as -the source host in scheme a, sending packets to the destination -addressed to each partition to discover from which partition it -receives an ACK. Since a network is unlikely to be partitioned -into very many pieces, it is not costly to try all partitions. -Either the correct partition will be found or no ACK will return -(in which case presumably the host is down or the network is -partitioned in such a way that some hosts are unreachable from -all gateways). The disadvantage of having the first gateway do -the work in this scheme is that a gateway does not know whether -packets it is forwarding successfully reach their destination. -Thus it must either keep a cache of host/partition -correspondence, which can be out of date for some amount of time -during which the gateway will misaddress packets to a -destination, or the gateway must rediscover the correct partition -on a packet by packet basis, which is of course unacceptably -expensive. Also, assuming it is common for a source host to -split its traffic among several gateways on the source net, after -a gateway discovers the correct partition for a destination host -it should inform all other gateways on the source net of the -correct partition, to prevent the necessity of them rediscovering -that fact. - - - 5 - - - - -c) gateways on a partitioned net could keep track of -host/partition correspondence for their net -- Another method is -for gateways on a partitioned net to find out which hosts they -can reach, and exchange that information with the other gateways -on that partitioned network. Then a gateway could respond more -intelligently to a packet addressed to the incorrect partition by -sending back a message giving the correct partition (to the -packet source if that is who fills in the partition field in the -packet header, or to all gateways on the source net otherwise). -In addition, a gateway on the partitioned network can forward the -misaddressed packet to the correct partition. - -This method requires gateways on the partitioned network either -to keep a complete list of the hosts on the net, marked as to -partition, or to keep a cache of hosts, adding hosts to the cache -by querying the gateways on other partitions at the time the -necessity of locating that host arises. In the complete list -case, gateways on a partitioned net would periodically send -packets requiring ACKs to all hosts on that net in order to keep -their lists up-to-date. In the cache case, gateways would poke a -host only when the need to know its location arose (when the -gateway received a packet for that host, and the host was not -already in its cache, or when a query from a gateway on a -different partition of the net arrived, asking for that host's -location). - -This method suffers from the same problem as method b, with the -first gateway having responsibility for determining -host/partition correspondence -- the tables in the gateways on -the partitioned net can become out of date, during which time -they will misdirect traffic, and they cannot constantly be -checking their tables. - -Thus I recommend method a, having the source host fill in the -partition field using the trial and error method of discovering -host/partition correspondence. - - -VIII. ROUTING PACKETS TO THE CORRECT PARTITION - -As stated above, a gateway G, distant from partitioned network N, -must know which gateways are involved in a partition before G can -correctly route a packet -- it might have to make a different -routing decision for one partition than for another one. - -When G detects a network has become partitioned into n pieces, G -must add n-1 rows and columns to its shortest distance matrix, -i.e., it treats each partition as a separate network. It is an -implementation detail, and not a difficult one, to ensure that -the gateway understands the meaning of each row and column. And -given that the gateway understands the meaning of each row and -column, it is easy for it to fill in the connectivity matrix from -its table of total link state. The computation is done exactly -as in the nonpartitioned case. - - - 6 - - - - -IX. MODIFYING THE ORIGINAL ARPANET ROUTING FOR PARTITIONS - -The original ARPANET routing is the currently implemented routing -algorithm in the gateways. The basic design is that gateways -report their distance vector to all their neighbor gateways -(their distance vector gives their distance to all destination -nets). They derive their distance vector from their neighbors' -distance vectors. (A gateway's distance to a destination net is 0 -if the gateway is directly attached to the destination net. -Otherwise, it is 1 hop further than the neighbor closest to the -destination.) - -The major modifications that are necessary to handle partitioning -are: - -1) Currently distance vectors are just a list of numbers, and -gateways have an assembled-in offset/net number correspondence. -Thus the vectors do not need labels for each entry. If networks -became partitioned, more destinations would need to be reported -in the distance vector. Either some (very complicated) -negotiation process would need to be carried out so that all -gateways would agree, when nets became more or less partitioned, -on a new offset/net number correspondence, or the distance -vectors would need labels identifying the destination whose -distance is being reported. The problems associated with a -negotiation process make that scheme unworkable. Thus we can -assume the vectors would be expanded to have an identifying label -for each destination. The label would include net number and -partition name. - -2) Gateways do not have global knowledge of the structure of the -catenet, in contrast to a link state scheme. Thus it is the -responsibility of the gateways on a partitioned network to notice -that the net has become partitioned and start a routing update. - -In the current implementation, there is no way for gateways on a -partitioned net to tell the difference between having their net -partitioned and having several gateways on their net go down, -since they do not receive information about individual gateways --- they only receive distance vectors from their neighbors. They -will no longer receive distance vectors from their neighbors on a -partitioned net, or from neighbors who have gone down, so lack of -response from neighbors does not distinguish between dead -neighbors and a partitioned network. - -Thus either distance vectors would have to contain information -about all catenet gateways (which adds a great deal of overhead -since there are many more gateways than nets, and the only -purpose of doing that is to detect partitions) or gateways on a -network would report that the network has become partitioned -every time a gateway goes down. - - - - - - 7 - - - - -3) Gateways in a partition must agree on a partition name, since -if two of them started a routing update with two different names -for the same partition, the rest of the catenet can draw no -conclusion except that the two partition names refer to distinct -destination partitions. Agreeing on a name is not that easy. If -some simple algorithm is chosen, such as highest numbered gateway -in that partition, the name of a partition can change. Suppose -the old partition name was 5 and it changes to 12. A source host -(or distant gateway) has gone through the overhead of determining -that the proper partition for a destination host was 5. When the -name of the partition changes, this overhead must be repeated. -Also, when the name of a partition changes, the rest of the -gateways on the catenet must be informed of that fact so that -they will stop reporting about obsolete partition names in their -distance vectors. - - -X. COMPARISON OF LINK STATE AND ORIGINAL ARPANET SCHEMES - -The link state scheme is far more robust. Because gateways have -global knowledge, routing is more likely to proceed calmly while -routing updates are percolating throughout the catenet. -Partition names are not as important in the link state scheme -- -gateways do not have to agree on a single name for a partition. - -As stated above, because in the currently implemented scheme -gateways report only their distances to destination networks, and -not to individual gateways, either gateways would report network -partitions whenever gateways went down, or the distance vectors -would have to be expanded to include reports about all gateways. -This is a further disadvantage of the original ARPANET scheme to -this application. - -Another disadvantage of the original ARPANET routing, not related -to partitioning, is that, because nodes do not have global -knowledge of network connectivity, there are types of routing -loops which they cannot distinguish from degradation of best -routes due to connectivity changes. As currently implemented in -the catenet, nodes report their distance to a destination as -"infinity" (a number higher than the maximum possible distance in -the catenet) when reporting to downstream neighbors. This fixes -many kinds of routing loops. However, neither this scheme nor -any variant (such as hold-down, the scheme chosen by the ARPANET -as a modification of the original algorithm) can distinguish all -kinds of routing loops from connectivity changes. Thus there are -cases when a group of nodes will have to count up their distance -to a destination until it reaches "infinity" before discovering -the destination is unreachable. This does not make the scheme -unworkable for the current catenet, since the longest possible -path in the catenet is less than 10 hops. However, it is again a -further disadvantage of the original ARPANET scheme. - - - - - - 8 - - - - -Another important consideration is the link state scheme's -flexibility. There are new features that the catenet is -scheduled to provide, most notably extended routing, in which the -functional differences between links are recognized and accounted -for. As described in IEN #86 "Extended Internet Routing", by -Radia Perlman, a link state scheme must be adopted eventually in -order for the catenet to provide this service. - -Thus the link state approach should be adopted to provide for -network partitioning. - - -XI. CONCLUSIONS - -A link state scheme, as originally presented in PRTN 242, -modified as presented in part IV of this paper should be the -basis of internet routing. - -The internet header should include a field long enough for a -gateway ID, for the purpose of specifying a partition name. A -partition name is the ID of any member gateway on that partition. - -The first gateway that handles a packet checks to see if it is -addressed to a partitioned network. If so, and if the partition -name field in the internet header is blank, the gateway sends -back a special packet to the source host informing it that the -network is partitioned and giving it a name for each partition of -that network. When a gateway on the source net handles a packet -for an unpartitioned network in which the partition name field is -not blank, it erases that field and informs the source that that -network is no longer partitioned. - -When a source host receives notice that a network is partitioned, -it stores the partition names for that network, and when it -wishes to send a packet to a host on that net, it first tries all -partitions to determine the correct one. It keeps a cache of -host/partition correspondence. When packets for a host in its -cache no longer reach the destination, the source host should -again attempt to determine the correct partition for that host. - - - - - - - - - - - - - - - - - - 9 - - - - - APPENDIX - COMBINING USUALLY SEPARATE NETWORKS - -In IEN 110, Dr. Vinton Cerf raises the possibility of combining -nets, given that the catenet could handle a partitioned network. -In general if the networks in question are usually partitioned, -this is a bad idea, since there is overhead involved in having a -partitioned network. Every time a source wishes to send a packet -to a destination, someone must discover which partition to send -the packet to. - -However, the specific example discussed in IEN 110 is an example -where there is also a cost associated with not combining -networks. In the example there are two ground PR nets, A and B. -There are also a number of PRs on airplanes, call them P1, P2, -... Pn. When Pi is within range of a PR in net A, Pi -automatically becomes a part of network A. When Pi is within -range of both PR nets, the nets become a single PR net. - -Keeping the two nets separate leads to problems of addressing the -airplane PRs, since the net on which they reside changes. -Combining the two nets into a single network has the overhead of -introducing a usually partitioned network into the catenet. - -There is a third solution to the particular case involved here. -That is to keep networks A and B as separate logical networks, -and to have P1, P2, ... Pn also as separate logical networks on -the internet level. On the packet radio level there might be -only one net, because one of the Pi connects nets A and B. But -on the internet level there will be n+2 nets. - -A gateway on net A, called G1, will have a half gateway -associated with each of the nets it might be "directly connected -to" in the internet sense. In other words, it will have a half -gateway for A, P1, ... Pn. The half gateway associated with -network A determines whether its interface to net A is up or down -depending on the state of the hardware ready line, etc., as is -now done. The half gateway associated with "network" Pi must -determine whether it is "connected" to its "network" by some -other means. One method is to have a special querying packet -containing the number i. The packet would be addressed, with a -local header only, to Pi, and sent out the interface to network -A. Pi's responsibility, upon seeing this querying packet, is to -send back a special answering packet, also containing the number -i. The half gateway associated with network A, upon receiving -one of these special answering packets, uses the number contained -in the packet to dispatch the packet to the half gateway -associated with Pi. The half gateway associated with Pi, upon -receiving this special answering packet, knows that its "network" -is up. - -G1's list of neighbor gateways will include, besides all the -gateways on net A, all the gateways on net B, since a gateway on - - - - 10 - - - - -net B also has the Pi as potential attached networks. If some Pi -connects nets A and B, then the gateways on A and B will all -consider each other functional neighbors, and A, B, and the -connected Pi, which have formed themselves into a single -functional PR net, will function as a single net on the internet -level, too. If one of the Pi is not within reach of either net A -or net B, then all the gateways on nets A and B will report that -they are not attached to net Pi, and all the gateways in the -catenet will know Pi is unreachable. If A and B have not merged -into one net (none of the Pi are in both nets), then the gateways -on each will report which Pi are reachable from them, so the -catenet will automatically route packets for Pi to the correct -ground PR net. - -[It would be reasonable to include, in gateway G1, a half gateway -for net B also, since if nets A and B merged, G1 would be -connected to net B. However, it is not necessary to and is -slightly more efficient not to, since even if nets A and B are -merged, PRs in B are probably physically closer to the gateways -on net B, so the catenet should route packets for PRs in B to the -gateways that "really" are on ground net B. The advantage of -including a half gateway for B in G1 is that net B could -potentially partition in such a way that some partition included -no gateways from B, but was reachable in the catenet via net A -and some Pi. It is not obvious, however, what algorithm a half -gateway for B should use to determine whether its "network" is -up.] - -The airplane PR Pi does not think of itself as a network. From -its point of view it is an ordinary PR. The only difference -between Pi and an ordinary PR on net A is that Pi (or the TIU -attached to Pi, if we want to strictly adhere to packet radio -terminology) has stored as its internet address, Pi for its net -number. It also has a list of possible gateways to use for -internet packets. This list includes all the gateways on nets A -and B. In the current PR net there is only one gateway, and all -PRs know the ID of the gateway. This will change such that there -will either be a special ID for an information service that will -give out the ID of a gateway on the net (so that Pi, instead of -keeping a list of gateways, could ask for a gateway address, as -would the rest of the PRs on nets A and B) or all PRs will have -assembled in a list of gateways, and they will need to probe each -in turn until they find one that responds. Thus the only -difference in Pi's finding a gateway and in an ordinary PR on net -A finding a gateway, is that (assuming the assembled-in gateway -list scheme is used) Pi's list will be longer, since it will also -include the gateways on net B. - -There is obviously a cost associated with this solution, too. If -the number of Pi are small, then this is a reasonable solution. -If there are enough Pi, then the cost of having all those logical -nets becomes greater than the cost of having an often partitioned -network, so the solution of combining A, B, and all the Pi into -one logical net in the catenet is a more practical solution. - - - 11 - - diff --git a/text/ien/ien121.txt b/text/ien/ien121.txt deleted file mode 100644 index 1e8fc07f..00000000 --- a/text/ien/ien121.txt +++ /dev/null @@ -1,1948 +0,0 @@ - - - - J. Postel -IEN 121 ISI - 25 October 1979 - - - - Internet Meeting Notes - 10, 11, 12 & 13 September 1979 - - - - -I. INTRODUCTION TO UCL - Jones - - Ron welcomed us to UCL and discussed the arrangements for facilities, - refreshments, and lunch. - -II. OVERVIEW AND OBJECTIVES - Cerf - - Vint reviewed the need for a working internet system and cited the - performance of the system as a key issue. The development of - procedures to measure and test the performance of the internet are - now important. Vint has pointed out that several conceptual design - issues need to be resolved, for example, protocol support for voice - conferencing in the internet. - -III. STATUS REPORTS - - A. DARPA - Cerf - - Vint reported that the Director of the ARPA Information Processing - Techniques Office, Col. Dave Russell retired on 31 August. The - new Director is Dr. Robert Kahn. - - The standardization of IP and TCP for use as the DOD networks - protocol is progressing. Dr. Robert Lyons at DCEC is the - Executive Agent. The only changes that are necessary are to - incorporate mechanisms to pass the security and precedence - information between the application program and TCP, and between - TCP and IP. There already is an IP option to carry that - information in the internet. - - There is a need for a way to test TCP implementations and - applications that use TCP without taking a service machine down. - For TOPS20s this will be satisfied by using BBNF. BBNF is - currently only on the BBN RCCNET but will be connected to the - ARPANET for October through December 1979. - - Vint acknowledged that there have been hardware delivery delays - that have had a substantial impact on the internet program. The - delivery schedules from manufactures are very long. - - - - - -Postel [Page 1] - - IEN 121 -Internet Meeting Notes - - - - The program managers in the ARPA office are coordinating to have - all new applications use internet protocols. - - B. BBN - Haverty, Plummer, Strazisar, McNeill, Flood Page - - Jack reported that the BBN-Unix TCP is in regular use. Currently - work is in progress to provide a user interface to the IP layer. - The IP support is available as a subroutine package. The - interface will be similar to the TOPS20 interface documented in - IEN 108. BBN is also working on a VAX UNIX with the goal of - having the current 11/70 UNIX and VAX UNIX be compatible at the - applications level. - - Bill reported on the plan to attach BBNF to the ARPANET for ease - in testing TCP and TCP using applications. In doing this testing - it is preferred to have one person at a time to simplify the - identification of problems. Note that one will have to use new - 1822 (96-bit leaders) to access BBNF since it will be on IMP 67. - The latest IP and TCP and Telnet are installed at ISID and ISIE - TOPS20 Systems. In the last month or two several bugs have been - identified and fixed. The next major step is to complete the - TENEX version of TCP-4 and to eliminate any remaining instances of - TCP-2.5. It is assumed that both the Packet Radio Project and UCL - have completed their conversion to version 4, and that as soon as - the SATNET project completes its conversion version 2.5 can be - eliminated. The LDRSRV program was converted to use IP in a few - hours. An FTP on TCP, based on ARPA FTP, is in debugging. - - Ginny reported that several gateways are running, most are MOS - based. It is planned to phase out the remaining ELF based - gateways. - - MOS Gateways - - at UCL between UCLNET and SATNET - at NDRE between ARPANET and SATNET - at BBN between ARPANET and SATNET - at SRI between PRNET and ARPANET - - ELF Gateways - - at Ft. Bragg between PRNET and ARPANET - - It is planned to install a gateway at COMSAT between SATNET and - the COMSAT local net. There is a new monitoring system. A - configuration with a port expander and a gateway in the same - machine is planned, it will be a tight fit. - - Dale reported on the SATNET conversion to use IP. There are still - - - -Postel [Page 2] - - IEN 121 -Internet Meeting Notes - - - - a number of programs to be converted, but it could be completed in - about a month. Most of the remaining programs are used for - maintenance or error recover. A weekend test was conducted using - IP only. The major event impacting SATNET will be the removal of - the NORWAY-LONDON ARPANET line at the end of September. This - means all the LONDON ARPANET traffic will be routed via SATNET. - - David noted that the scheduled GMCC demonstration will be a - presentation, since there is nothing to demonstrate. - - C. COMSAT - Mills - - Dave reported that the ETAM and GOONHILLY PSPs are in the field - and the TANUM PSP will be shipped soon. There have been some - minor problems, for example, the software checksum and the - hardware checksum do not agree. It is expected that the PSPs will - be on the air next month. - - Much of the COMSAT activity during the last few months has been - directed to the NTC Demo in November and development of the Demo - Terminal software. Currently, we have made arrangements for a - suitable room and are now planning installation of lines, - terminals and other gear. The demo will include speech, fax and - the usual interactive and bulk transfers between ARPANET hosts and - the Demo Terminal. - - The Demo Terminal software has been checked out at UCL using an - LSI-11, floppy disk, LPCM and Port Expander connected to UCLNET - (net 13). TCP/Telnet was tested with ISIE via UCLNET, SATNET and - ARPANET. FTP was checked out in loopback mode via the UCL Gateway. - The LPCM was operated in expensive dictaphone mode only, since - support is not yet complete for SATNET streams. This software will - play with the Demo Terminal software at COMSAT and at the NTC - Demo. - - At COMSAT a Dacom 450 FAX machine has been delivered. This will be - connected to the Demo Terminal and taken to the NTC site. Software - to support this machine is now in frenzied development. When - complete an update will be distributed to UCL. For local testing - we are trying to arrange a direct connection to ARPANET (avoiding - the SATNET for the time being) for debugging. - - D. DCA - Cain - - Ed reported that DCEC has a small (2-page) "C" program running in - an 11/34 with two 1822 interfaces which implements a gateway. - - - - - - -Postel [Page 3] - - IEN 121 -Internet Meeting Notes - - - - E. DOD - McFarland - - Ray noted that mid October is the target date for the draft DOD - Standards IP/TCP document. These documents will be rewritten to - military document conventions. - - F. ISI STATUS - Postel - - Jon noted that ISI is not implementing any IP, TCP or Gateways. - ISI did attempt to write a program that used TCP on TOPS20. This - program did not work (TOPs'20 crashed). Debugging is in progress - with Bill Plummer and the ISI systems staff. ISI is working on an - Internet Message Program. This is in an early testing phase and - will be using TCP for inter module communication. - - G. LL - Forgie - - Jim noted that the main Lincoln effort has been on the ST protocol - to be discussed later and described in IEN 119. - - Experiments with ARPANET-SATNET speech have been conducted with - one source/destination in the ARPANET and another in the SATNET. - There have been unexpectedly large delays in the SATNET streams, - and in matching the ARPANET to the SATNET in the special purpose - Gateway. - - H. MIT - Clark, Chiappa - - Dave discussed the status of the LSCNET. There is a 5 node system - up and running. The development of a version 2 interface is in - progress. There has been difficulty getting an LSCNET/ARPANET - gateway working due to low level hardware problems. A Trivial - File Transfer has been implemented directly on IP. In Multics the - IP layer will act as a gateway. MIT will be involved in the - XEROX Grant program. Dave will be involved in integrating the - Xerox equipment into the LCS environment. A PDP-11 based gateway - between LCSNET and the ETHERNET is contemplated. - - Noel commented that he saw a need for an effort to be made to - convince groups to use IP rather than invent their own protocols. - - I. NDRE - Stensby - - NDRE has been assisting in the preparations for the speech demo. - The protocol status is nearly the same as last reported. This is - due to VDH connection problems. Much work has been done on - debugging the connection. Possible bugs have been very difficult - to track down because we lack control of vital parts of the - system. A couple of bugs have been found and corrected in the - - - -Postel [Page 4] - - IEN 121 -Internet Meeting Notes - - - - NORD-10 VDH software without any substantial effect. The real - problem seems to be that at certain times when the TIP has sent a - packet out of sequence, it keeps retransmitting this packet - instead of retransmitting the packet that is really missing. - - J. RSRE - Davies - - Brian reported that RSRE has programmed a gateway (based on - IEN 30) and attempted to bring it up as a catenet gateway between - UCLNET and RSRENET. RSRE will be bringing up a host with IP and - TCP in about a month. - - K. SRI - Kunzelman, Mathis - - Ron reported that SRI is now operating two PRNETs in the San - Francisco bay area, and one PRNET at Ft. Bragg, North Carolina. - The net at Ft. Bragg is now eight terminals on two TIUs, and will - grow to forty terminals. - - Jim reported that the LDRSRV at SRI-KA which now uses TCP-2.5 will - be changed to use version 4 soon, tested at BBNF, and installed at - ISID and ISIE. Jim is also working on a Port Expander and Mini - Gateway combined. - - L. UCL - Kirstein, Jones, Treadwell, Cole, Bennett, Higginson - - Peter gave a brief overview of the UCL effort, then let various - members of the UCL group give reports on their activities. - - Ron discussed the problems of including network software in a - small Unix system. There was also some discussion of port - expanders and X.25/IP interfaces. - - Steve reported on the situation with the FAX experiment. The main - problems seem to be with the timing constraints of the device, and - matching these to the flow control constraints of TCP. This - system currently uses TCP-2.5 but will convert to version 4 soon. - - Bob reported on the development of a "C" to MOS linkage. - - Chris discussed the prototype NIFTP service that allows FTPs from - EPSS to Tenex and vice versa. A Unix version of NIFTP has been - implemented. - - Peter discussed the many flavors of X.25 one finds when building - X.25/XXX interfaces. - - - - - - -Postel [Page 5] - - IEN 121 -Internet Meeting Notes - - - - M. IRIA & CELAR - Zimmerman - - Hubert said that IRIA and CELAR would like to explore the - possibility of cooperative research on the interconnection of - networks. IRIA is working on local networks and interconnection - with TRANSPAC and CYCLADES. - - N. UNIVERSITY OF ROCHESTER - Lantz - - Keith gave a brief overview of the environment at the University - of Rochester and indicated the interest in becoming part of the - internet system. - -IV. ACTION ITEMS - - A. DOCUMENTATION STATUS - Postel - - Jon reviewed the IENs issued since the last meeting. - - IEN Author Title - --- ------ ----- - - 108 Plummer Internet User Queues - - Describes the TOPS20 user interface to the IP. - - 109 Strazisar How to Build a Gateway - - Describes the messages Gateways exchange with each other and - with hosts, i.e., the Gateway-Gateway protocol. The main - focus is on the computation of connectivity and routing - information. Replaces IEN 30. - - 110 Cerf Internet Addressing and Naming in a - Tactical Environment - - Presents several addressing problems, particularly the - "flying packet radio" problem. - - 111 Postel Internet Protocol - 112 Postel Transmission Control Protocol - - The latest editions of the IP and TCP specifications. Not - intended to be a change to the protocols but a better - documentation of them. Replaces IENs 80 and 81. - - - - - - - -Postel [Page 6] - - IEN 121 -Internet Meeting Notes - - - - 114 Postel Protocol Options - - Summarizes the option available with IP and TCP. Replaces - IEN 92. - - 115 Postel Address Mappings - - Shows how the addresses of various networks are carried in - the Internet Address format. Replaces IEN 91. - - 116 Postel Internet Name Server - - Specifies the Internet Name Server, including same new - features suggested by John Pickens. Replaces IEN 89. - - 117 Postel Assigned Numbers - - Lists the assigned number for various protocol fields, e.g. - Networks, Sockets or Ports. Replaces IEN 93. - - 118 Postel Internet Protocol Handbook - Table of Contents - - A one page list of the IENs that specify the current - internet protocols. Replaces IEN 94. - - 119 Forgie ST - A Proposed Internet - Stream Protocol - - The description of a Internet level protocol for voice - conferencing. Includes features for establishing - multi-addressee connections. - - The discussion that followed suggested several things that should - be documented. For example, the higher level protocols (Telnet, - FTP) should be in the internet protocol handbook, the procedure - for determining parameters (e.g. retransmission timeout) should be - documented, what to do in exception conditions should be - described, testing procedures should be discussed (especially an - acceptance test). - - Concern was expressed that the new editions of the IP and TCP - specification were not suitably reviewed by the implementors. It - was suggested that a version with changes marked would be useful - (see Appendix B). - - - - - - - -Postel [Page 7] - - IEN 121 -Internet Meeting Notes - - - - B. EXPECTED DOCUMENTS - - 1. IP Generic Services - Do the two documents 1) the IP Spec by - Jon (IEN 111), and 2) the Gateway Spec by Ginny (IEN 109), - supply the information needed? - - 2. SATNET IP Services - Dale McNeill is working with Dave Mills - (currently the only user). When the current experiments are - completed a document will be produced. - - 3. Transition Plan - Vint will discuss the issues in a small - group meeting and appoint a task force to prepare the plan. - - 4. Host IP Services - Bill Plummer will prepare a document based - on his talk on How to Build a Host IP. - - C. XNET - It seems that XNET is not yet fixed to work with IP due to - a technical disagreement between Jim Mathis and Ray Tomlinson. - The solution to this is to be reported on at the next meeting. - - D. Hack IP at SRI-KA and LDRSRV - This is working according to Jim - Mathis. - -V. INTERNET TRAFFIC EXPERIENCE - Davies - - RSRE has conducted some experiments sending messages looped back to - themselves, with the loopback being located at various places, and - using several input speeds and block sizes. - - At RSRE there is a multi-terminal TIU with some modifications to - perform measurements. The TIU measures the time between the TCP - segment first being sent and the acknowledgment arriving, a kind of - round-trip time. - - The path is TIU via 2.4Kb line to PIXIE to PORT Expander to TIP into - ARPANET. The input was either typing, a 1 octet segment traffic - generator, or a 128 octet segment traffic generator. Histograms of - performance under various inputs and loopback points were presented. - - The results indicate lower than expected performance and the - speculation was that the limiting factor was the program interrupt - 1822 interface (either in PIXIE or the Port Expander). - - It was noted that when two traffic generators were run sending - segments to each other, ACKs were piggybacked 100% of the time both - at the TCP level and at the X.25 level (recall the RSRE to PIXIE line - operates the X.25 level 2 link protocol). - - - - - -Postel [Page 8] - - IEN 121 -Internet Meeting Notes - - - -VI. HOW TO BUILD A GATEWAY - Strazisar - - Ginny discussed the way gateways determine how to do routing. The - actual messages used are documented in IEN 109. - - A gateway gathers information on network connectivity by polling its - network interfaces and known neighbor gateways. The polling is done - by sending a message, currently every 30 seconds. There is an - algorithm to decide if a net or gateway is up or down based on the - results of the polling. The routing algorithm is based on a distance - measure, a directly connected network is zero distance, an - unreachable network is infinite distance. The gateways exchange with - neighbors their distance tables (substituting infinity in entries - where the distance to the destination is greater than the distance - from the neighbor). Routing information is sent only when something - changes. A new gateway can join the system as long as old gateways - can add a row to their tables dynamically. - - Note that "smart gateways" do all this routing and connectivity work, - "dumb gateways" do not. Smart gateways try to route things to other - smart gateways, but if that can't be done they may fall back to using - compiled in fixed routes to dumb gateways. - - Danny Cohen suggested that there may be problems with this algorithm - as the number of networks gets large. - -VII. HOW TO BUILD A HOST IP - Plummer - - Bill presented the general flow of processing in a Host IP. In - general datagrams arrive from the connected network interfaces. Any - fragmented datagrams are reassembled. Complete datagrams are entered - into a queue. Datagrams addressed to other hosts may be forwarded if - this host is acting as a gaweway, otherwise they are discarded. - Datagrams addressed to this host are delivered to waiting protocol - modules or user processes. User processes or protocol modules may - create datagrams to be sent, these are queued and based on the - destination address sent via one of the connected network interfaces. - - During the processing of arriving datagrams several checks must be - made: - - 1. check the IP version number - 2. verify the checksum - 3. see that the length field and the amount received are - consistent (amount received may be slightly greater due to - padding) - 4. check time to live - 5. assemble fragments - - - - -Postel [Page 9] - - IEN 121 -Internet Meeting Notes - - - - When sending a datagram the IP fills in several fields and makes a - routing decision: - - 1. Insert source address - 2. Insert any IP options called for - 3. Insert time to live - 4. Insert checksum - 5. Make a routing decision, select an output interface, generate - local net header and interpret type of service. - 6. Queue for transmission - - The routing decision can be based on a table of network - gateway - correspondences. For each network a gateway on a directly connected - network is listed. If the host is notified to use a different - gateway for that destination network the table can be updated. If a - gateway breaks and the host can tell (e.g., receives a "destination - dead" response) then switch to an alternate gateway. It is - suggested that a heuristic for switching destination gateway is to do - it when the higher level protocol (e.g., TCP) retransmits a segment. - (However it is not clear the IP can tell a new transmission from a - retransmission). - - In the area of congestion control Bill suggests that it is the rate - that must be controlled which may be considered to determine an - internet datagram interval. If a gateway tells a host to slow down, - increase the internet datagram interval to, say, 130% of its former - value. To avoid being stuck at a too large value for the internet - datagram interval, reduce it to 95% of its former value every 30 - seconds or so. - - There is an issue of fairness in any congestion control. How can the - IP properly allocate the available transmission capacity among the - higher level protocol modules and users? - - The discussion suggested the need for a "Trace Datagram" that causes - each gateway and the destination host to send back a note, a kind of - "multi-echo." - - IP modules should provide a handle on the user side to explicitly - cause a new routing to be calculated. - - The congestion control parameters may be very critical and sensitive. - Dave Clark has done some simulation experiments and will prepare an - IEN on this topic. There may be some interaction between - source-destination host pairs in this area. - - - - - - - -Postel [Page 10] - - IEN 121 -Internet Meeting Notes - - - -VIII. STREAMS AND CONFERENCING - Forgie - - Jim presented the proposed ST protocol which is documented in IEN - 119. The goals of ST are: (1) to provide a good base for - point-to-point and conference packet speech, (2) to support research - on effective traffic control techniques, (3) to support a - demonstration of cost-effective speech, and (4) to operate as an - extension of internet protocol. - - Jim indicated four requirements and corresponding approaches for - meeting them: (1) guaranteed data rate - know requirement in advance - and assign loads to links statistically, (2) controlled delay - (predictable dispersion) - prevent congestion by controlling access - on a call basis, (3) small quantity of speech per packet - use - abbreviated header and aggregate small packets for efficiency, and - (4) efficiency equal to or better than circuit switching without TASI - (packet efficiency * link utilization > 45%) - abbreviated headers - for packet efficiency and high link utilization with effective - traffic control. - - One of the key decisions is to consider ST connections to be full - duplex. The claim is made that this allows faster connection setup - for conferences. There was some discussion on this point and the - issue will be examined further. - - Another issue is the sharing of transmission capacity between speech - (ST) and data (IP) in the internet. - - Also discussed was the identification of the route by a list of - gateways rather than by a list of networks. The resources to be - reserved are controlled by networks not gateways. - - One very interesting feature of ST is its mechanism for flexible - multi-addressing and routing of messages such that each addressee - receives at most one copy of a message. - - Jim presented the message formats and worked through an example of - connection setup. There was some concern expressed about the effects - of delayed duplicate control messages, and how ST operates under - failure conditions. Also concern that several conference setups in - competion may result is a deadlock similar to reassembly lock up. - - - - - - - - - - - -Postel [Page 11] - - IEN 121 -Internet Meeting Notes - - - -IX. SOURCE ROUTING & PROTOCOL MULTIPLEXING - Cohen - - Danny reviewed the proposed source routing procedure described in - IEN 95. This mechanism provides a list of addresses for the datagram - to pass through. Normal routing is used to move the datagram between - these points. The route information for sending a datagram from A - through B and C to D is expressed by A as TO: B, SR: C,D. At B this - is changed to TO: C, SR: D, and at C it is changed to TO: D. The key - is that the next address must be interpretable at the point it is - used. This means that local (rather than internet) addresses may be - used. - - The discussion focused around the issue of non internet addresses in - the source route and how (if at all) to mark them. It seems - desirable to let a source route contain any of the following in any - order: - - 1. Internet Address. - 2. Local Address (prefixed with an escape code and a length). - 3. Network Address (Network part only). - 4. Here - an address value that means this host, this net (or any - host, or every host). - - Alternately one could have each address in the source route have a - prefixed "op-code" that indicates what kind of address it is. - - Danny did not discuss the multiplexing of protocols (due to time - pressures) but urged everyone to review IEN 90. It appeared that the - multiplexing protocol was accepted (at least in principle). - -X. GATEWAY MONITORING & CONTROL CENTER - Flood Page - - David described the GMCC organization and the types of information - that will be reported. - - The operation is much like the ARPANET NCC except that gateways are - the objects of interest rather than IMPs. - - Gateways will communicate with a set of monitoring and control - processes (running on a TOPS20 somewhere). These monitoring and - control processes will update a central data base. The data in this - data base may be accessed by Terminal Processes (i.e., User Interface - Programs). - - A terminal process may take control of a gateway, but a gateway may - only be controlled by one terminal process at a time. - - Three types of controls may be exercised: start or stop reports, - inquiries, enable or disable traps. The reports give throughput - - - -Postel [Page 12] - - IEN 121 -Internet Meeting Notes - - - - statistics and interface up/down status. The inquiries give the - gateway description (name, connectivity), echo response, or routing - data. The traps give changes in the interface up/down status, or - neighbor gateway up/down status. - - The information stored for each gateway in the central data base - includes: the latest regular report, the interface address, the - neighbor gateways, the reporting and trap status, the gateways own - up/down status, and the process currently controlling the gateway (if - any). - - In the future the GMCC will provide summary reports on traffic and - up/down status. - - Other future topics are Performance Measures, Higher Level Fault - Diagnosis, Accounting Information, and inclusion of information from - NCCs. - - To use the GMCC facilities one would login to the GMCC host and run a - terminal process. There was some discussion of the access control on - people taking control of gateways. Also some concern about the - artifact introduced into the measurement by accessing the GMCC via - the gateway being measured, and also the effect on other gateways (or - their statistics) of relaying the measurement messages to the GMCC - host. - - David will prepare reports on: (1) GMCC Message Formats, (2) How to - use a Terminal Process. - -XI. DISCUSSION OF SPEECH DEMO - Forgie - - Jim described the configuration for the speech demo. There are four - sites involved: Lincoln Laboratory and ISI on the ARPANET and NDRE - and UCL on the SATNET. There is a special purpose gateway at BBN. - This gateway is a PDP 11/34 ELF system. The basic data rate for one - site is 5 packets/sec, at this rate the gateway must handle 15 - packets/sec. - - In the ARPANET section of the conference the mode of operation is - centralized control and distributed data. In the SATNET section the - mode is distributed control and distributed data. The SATNET section - uses a SATNET shared stream. - -XII. DISCUSSION OF FAX SYSTEM - Treadwell - - Steve described the configuration and operation of the FAX-Network - system. The FAX machine is a DACOM 6000. It is connected to an - LSI-11 (MOS operating system). The LSI-11 contains an interface to - - - - -Postel [Page 13] - - IEN 121 -Internet Meeting Notes - - - - the DACOM, a TCP, and a controlling program. The controlling program - interacts with a user at a display terminal. - - There is also a server FAX program on BBNC that accepts input and - stores it in the file system, or on request sends stored FAX data - from the file system. - - The operation is for the user to type on the controlling programs - terminal a request to send FAX data to a file. A TCP connection is - established between the LSI-11 and FAX server at BBNC. - - Pages are input through the DACOM and data is sent to BBNC and stored - in the file. To move FAX data from the file to paper, the user - enters a retrieve request on the controlling programs terminal. - - This system currently uses TCP-2.5. The next step will be to convert - to using version 4. Also to change the address so the transmission - will be through an internet gateway. - - There have been several problems in getting this working. Primarily - the timing requirements of the DACOM and the flow control of TCP. A - typical page results in 300,000 bits (with wide variance). The DACOM - sends 585 bit blocks and if not accepted with in 6 seconds aborts the - page. The total transmission path must support at least 100 bits/sec - on the long term average. - - ISI is getting a RAPICOM 450 FAX machine and will use it in a similar - way. (A RAPICOM 450 and a DACOM 6000 are identical machines). At - ISI the FAX machine will be treated as a device (a peculiar terminal - on TOPS20) rather than as a host. - -XIII. ADDRESSING ISSUES - Cerf - - Vint described several situations where a host may have several - possible addresses and may wish to change between them dynamically - without losing ongoing communications. - - A host may be dual (or multiply) homed, i.e., have two (or more) - interfaces to the same net. A host may be connected to more than one - net. Or a host may change nets. - - This last case is illustrated by a flying packet radio, passing over - a series of ground PRNETs each connected to the internet via a - gateway. The flying packet radio is for a time in the range of - PRNET-1, then passes out of that range into the range of PRNET-2, - etc. - - Another problem is partitioning. That is a network breaks into two - (or more) parts which continue to function independently. Can a host - - - -Postel [Page 14] - - IEN 121 -Internet Meeting Notes - - - - in one part communicate with a host in another part via gateways and - other networks? - - Does source routing solve the partitioning problem? Or is a scheme - needed to dynamically assign unique addresses to each partition so - that the ordinary gateway dynamic routing will solve the problem? - - Another proposal is to drop the requirement that connection be - identified by the total address. By using only the pair of ports to - identify a connection one could accept as a continuation of a - conversation messages from a different host if it had the same pair - of ports (and the expected sequence number). - -XIV. PARTITIONING - Plummer - - Bill discussed the problems of multiply connected hosts. If a host - is connected to two networks, which are also interconnected via - gateways, the host has alternate routes to use in sending messages. - The internet gateways can exchange connectivity information. A - multiply connected host cannot take full advantage of this without - being a gateway itself and calling the host a network. Another - problem is for a destination to answer a message from a multi- - connected host. The multi-connected host would like to allow any of - its interfaces to be used to receive the reply. To do this it could - use a pseudo network number and act as if those interfaces were - gateway connections. - - This use of network numbers for pseudo nets may use up the network - numbers too quickly. Bill proposes what he calls host-group routing - which uses a 32 bit address as if it were a network number. A host - chooses one of its internet addresses as its "name". Gateways treat - that name as a network name for connectivity and routing purposes. A - mask can be used to allow groups of hosts to be routed based on one - entry. Bill gave an example of how this might work and showed a - routing table for a pseudo net at BBNC. - - This topic is to be discussed again at the next meeting. - -XV. RIG - Lantz - - Keith reported on the network environment at the University of - Rochester. The key is a multi-machine multi-net system started in - 1974. All communication between processes in this system is via - messages. The system is based on Feldman's experience and other - papers on message communication. - - The equipment involved includes: 4 Altos, 2 Eclipses, an Ethernet, 9 - terminals, 1 PDP-10, 1 VAX, and an ARPANET. The applications - include: editing, compiling, file management. An important - - - -Postel [Page 15] - - IEN 121 -Internet Meeting Notes - - - - development is the virtual terminal model, which allows several - processes to interact with a terminal using multiple possibly - overlapping windows. - - The process level communication involves a name to address conversion - by lookup in a name server, and an address to route conversion - supported by a local kernel and network communication modules. Three - communication styles are supported: atomic transactions, connections - or streams, and asynchronous messages. - - One problem area is protocols. There are too many: U of R Ethernet, - PARC Ethernet, ARPANET, DECNET, internet. Can all these live in - harmony? - -XVI. SUMMARY OF SMALL GROUP MEETINGS - - 1. PERFORMANCE MEASUREMENT SMALL GROUP MEETING - Kunzelman - - This group discussed the need for performance measurements of the - internet protocols at all levels. The group reviewed the current - work, discussed performance metrics, measurement tools, and - documentation of measurement methods and results. - - The group recommends that specifications of performance measures - for IP and TCP be written, that a set of tests for IP, TCP, and - higher level protocols be defined, and that a bibliography on - performance measurement be prepared. - - Please see Appendix C for further detail on this group meeting. - - 2. UNIX SMALL GROUP MEETING - Cain - - Three topics were addressed in the UNIX small group meeting: - - 1. Use of network UNIX on small PDP-11's - (specifically, the 11/34 and the 11/40). - 2. MOS work on UNIX systems. - 3. Use of UNIX on VAX machines. - - For PDP-11's which do not support the separation of instruction - and data space, incorporating the widely distributed NCP programs - into the UNIX kernel usually produces an object which is barely - small enough to boot, even after greatly reducing various system - parameters. Processes like TCP and Telnet have to share the scarce - remaining space, and are bound to perform poorly because of - swapping. Noel Chiappa is about to obtain, from NOSC, a version of - UNIX which has no disk buffers in the kernel data space, and will - attempt to install the NCP kernel software. Performance of this - - - - -Postel [Page 16] - - IEN 121 -Internet Meeting Notes - - - - version of UNIX is uncertain, but a mailing list (see Appendix A) - has been established for those interested in the outcome. - - UCL, MIT, and BBN are all interested in doing MOS work in a UNIX - environment. The problem is that there is a variety of file types - (a.out, .obj, .rel, .lda) which must somehow be combined into an - object which is loadable into an LSI-11, and is understandable by - DDT or a similar debugger. UCL has "C" interfaces to MOS system - calls and some utilities which Noel Chiappa will attempt to put in - a "nice" UNIX environment, and make them available for others. A - mailing list (see Appendix A) was established for those who wish - to follow his progress. - - Keith Lantz discussed a meeting with ARPA, Rochester, CMU, and - others associated with ARPA-funded research involving VAX - machines. At the meeting, the decision was made to use UNIX on the - VAX machines, specifically the version of UNIX modified at - Berkeley to take advantage of the VAX paging hardware. The source - of support for the VAX UNIX is not yet named. Rochester and CMU - are both interested in implementing TCP and IP on their VAX - machines. A mailing list (see Appendix A) was established for - those interested. - - 3. TCP VERSION 4 AND TIU SMALL GROUP MEETING - Haverty - - The small group meeting on the status of the new TCP - implementation and TIU also covered some general issues of TCP - support for MOS-based systems in general. - - Jim Mathis reported that recent work on the MOS TCP version 4 - implementation involved separating the code into individual - modules, to isolate the network- and operating-system-dependent - sections of the code. The major part of the TCP code is now in the - TV4PRO module. Operating system support code exists in TV4MOS or - TV4ELF, depending on the operating system involved. The - "released" versions of this implementation are available on the - SRI-KL machine in the MOS-DEVEL directory, but they will be moved - soon to PKT-LSI-11. - - Ongoing work with the TCP involves addition of an internet layer - which will be accessible to user processes using entry points to - be defined. This will occur in a later release of the software, - which is not expected to involve any changes to the TCP interface - to user processes. The internet layer will also implement some of - the gateway-gateway protocol functions. - - In addition, the software can be extended to support multiple - hardware interfaces, to permit multi-homing of hosts on multiple - networks. This work however is not yet in progress. - - - -Postel [Page 17] - - IEN 121 -Internet Meeting Notes - - - - The discussions which followed identified a need for two new - mechanisms within the user community. The first is simply an - announcement mechanism, to inform users of the SRI software of new - releases, the changes which have been made, functions added, and - location of the code itself. A second mechanism involves - integration of changes developed at user sites into the - SRI-maintained sources. For example, software to support other - network types must be done at the site running the network, but - should then be integrated into the standard sources. - - Because of the need for sites other than SRI to implement - network-interface software, the internal interface between the TCP - and internet layer and the local-net module must be clearly - defined and stabilized. MIT is likely to be the first site to - implement a new local-net module. - - Further discussion explored details of the functionality of the - existing TCP implementation, and requirements which various user - projects expect to have in the future. Some of the facilities - not yet implemented include: - - o ability to have multiple connections in one MOS process - o reassembly of internet fragments - o full processing of EOL - o processing of "rubber EOL" - o user access to URGENT functions - o full functionality at the Telnet user interface - - The last area explored identified the need for additional work on - the Telnet implementation, to, for example, provide the ability to - send remote RESETs. - - A short discussion of "coming attractions" followed, including the - following expected changes: - - o internet layer in Bliss, probably by the end of 1979 - o use of the internet name server by Telnet - o XNET server within MOS, to debug MOS processes remotely - - The TCP software is currently written in MACRO-11. It is a - candidate for conversion to Bliss, but this will not be done until - the Port-expander software is converted. - - One possible performance limitation was identified during the - discussion. Currently, data is ACKed when it is accepted by a - user process. Since this can be significantly later than the - actual receipt of the data from the network, throughput might be - improved by modifying the TCP to ACK data on receipt from the - network. - - - -Postel [Page 18] - - IEN 121 -Internet Meeting Notes - - - - A short discussion of TIU issues identified the need for - determining how many terminals can be supported by a TIU at once, - in two cases. In a heavy-use situation, the limitation on number - of active, high-throughput terminals should be determined. This - number is probably limited by the raw speed of the LSI-11, and may - be increased by conversion to faster hardware such as the - PDP-11/23 when it is available. A second case involves the - limitation on support of low-usage terminals. This limit involves - primarily how many serial interfaces can be connected to the - LSI-11 and configured in the packaging. - - The meeting also demonstrated a need for better interchange of - information among the participants and general community of users - of MOS, TIUs, and related hardware and software. A mailing list - is being set up, called MOS-TCP, for this kind of activity (see - Appendix A). - - 4. LONDON-NORSAR LINE AND SATNET SMALL GROUP MEETING - McNeill - - Dale said that loading of the Goonhilly SIMP and the london TIP - over the satellite channel is operational. Monitoring and control - paths exist for all SIMPs; sufficient backup paths exist through - use of the satellite channel and gateways connected to other - SIMPs. - - Vint announced that beginning January 1, l980, the NORSAR-SDAC - circuit will become a military circuit for operational data only. - Seismic data traffic from the NORSAR TIP will continue to be sent - on this line. - - Funding for the London-NORSAR circuit ceases October 1, 1979. - Peter anticipates that the ARPANET direct connection circuit via - SATNET (line 77 between London and SDAC) will be needed to provide - ARPANET connectivity to the London TIP until some time after - October l980. This circuit will continue to provide ARPANET - service to the Rutherford Lab, EPSS, and the London TIP. The - long-term goal is to have internet service to London only using - the UCL gateway attached to SATNET. Prerequisite is a change of - the London TIP to a host (TCP TIP). The mechanism of internet - loading and support of London machines must be developed. - - In conflict with the maintenance of operational service to London - is the introduction and checkout of PSP Terminals, the checkout - and release of new SIMP software, and the checkout and performance - of the NTC demonstration. Hardware and software development will - be restricted to after 1400 EDT, while operational service will be - maintained from 0200 to 1400 EDT, daily. - - - - - -Postel [Page 19] - - IEN 121 -Internet Meeting Notes - - - - 5. NTC DEMO PLANNING SMALL GROUP MEETING - Mills - - The principal results from that meeting were a revised plan for - network connectivity and a change in the way speech would be - handled. Specifically, it was decided that Jim Forgie's software - would be used in the BBN and UCL gateways with the LPCM operated - from Washington via appropriate data lines to the BBN Gateway. Jim - has already made provision for this in the LPCM design, but it has - not been operated in this mode before. - - Datagram traffic for the Demo is planned to be sent via - Clarksburg, with a backup to Etam via a backdoor connection via - the Clarksburg SIMP internal gateway and the RCC or other suitable - hack. UCL will participate in the Demo from London with live - speech and fax. Participation by NDRE will depend on a PSP - Terminal being installed there. - - Jim mentioned a couple of minor problems with the LPCM hardware. - Correcting these will probably involve sending ROMs to the various - sites. There is a question of Gateway reliability which leaves all - of us nervous - - 6. IP/TCP FLOW CONTROL SMALL GROUP MEETING - Clark - - This meeting was a fairly informal discussion among the - implementors of TCP and gateways. Several topics were discussed. - 1) How to manage RFNMs on internet link. - 2) A simple simulation of a host responding to quench messages. - 3) How to perform quenching experiments, given the current level - of internet operation. - 4) Should the TCP-IP or application-TCP interface be - specified/standardized with respect to flow control? - - While the discussion was fruitful, no substantial conclusions were - drawn. - - 7. X.25 GATEWAY SMALL GROUP MEETING - Binder - - The purpose of this meeting was to review various factors - impacting the development of an ARPANET/X.25 gateway using an - LSI-11 to provide a 50 Kbps full duplex service. The meeting - basically covered only the issue of hardware interfacing to the - X.25 network. Three different interfaces were discussed: a - byte-interrupt device, a non-DMA packet-interrupt device, and a - full DMA device. - - The byte-interrupt interface and related level 2 and 3 X.25 - software has been developed by UCL and is now available for use. - Although precise throughput measurements have not yet been made, - - - -Postel [Page 20] - - IEN 121 -Internet Meeting Notes - - - - experience with the LSI-11/MOS system by meeting attendees - indicated that a byte-interrupt configuration would not achieve 50 - Kbps full duplex operation. In particular, measurements by SRI - have indicated a maximum of about 50 Kbps through a looped-back - 1822 byte-interrupt interface on a MOS system running only a - message generator (no gateway or second network interface). - - The packet-interrupt interface is being developed by RSRE, and - along with level 2 software is expected to be checked out in 6-8 - weeks. This interface contains 4K bytes of buffering, shared among - input and output. Operation consists of copying packets between - the interface memory and main memory, with a single interrupt - associated with each packet. - - UCL plans to develop a full DMA interface, but this is not - expected to be available until anywhere from 8 to 12 months from - now. - - A framing issue presently exists in that both IPSS and Telenet - X.25 networks now use bi-sync framing. However, both are expected - to make HDLC bit-oriented framing available this fall. - - 8. PORT EXPANDER SMALL GROUP MEETING NOTES - Davies - - 1. Hardware Delivery Outlook. - - SRI has fifteen systems on its order book and enough components - to build only two complete ones at this time. Some of the - hardware bottlenecks are: - a) Boxes from DEC - deliveries up to January '80. - b) Low power Schottky chips for 1822 DMA boards. - c) Cable connectors for 1822 units - Amphenol. - d) Control Panels. - - Delivery of port expander units would continue at a slow rate - at least until the end of the year with Vint Cerf nominating - the recipient of each system as it rolls off the production - line. - - A postscript on the hardware discussion concerned the - robustness card which may have to be reprogrammed for automatic - loading from nets which are not on the ARPANET. The robustness - card uses UV erasable PROMS. Mathis said that there would be - documentation supplied with the robustness card indicating how - this should be done. The cards themselves were just coming back - from the printed circuit facility and although one or two types - of chip for this board were in short supply, it was hoped that - board delivery would begin at the end of September. - - - - -Postel [Page 21] - - IEN 121 -Internet Meeting Notes - - - - 2. Software Developments. - - Most of the discussion centered around the new facilities which - would be offered with the SRI supported BLISS-11 version of the - PORT Expander code. Some of these features are: - a) Provision of NOP handling. - b) Provision of IMP padding. - c) Flow control facility. - d) Facility to simulate RFNMs internally. - - There were still some open ended problems like what should a - port expander do when the NCP host crashes. One possible - approach is to offer two different solutions to this problem - and select one at configuration time. - Possible release dates for the BLISS-11 version of the port - expander were mid October if Mathis can get an IMP port for - debugging or up to a month after depending on the priority of - the work. - - Finally Strazisar joined the meeting for a discussion on - integrating the mini-gateway code and port expander code into - the same machine. Clark suggested that this integration problem - would become almost trivial if someone wrote a null 1822 driver - under MOS which allowed buffers to be passed across the driver - without copying. Strazisar volunteered to take a debugged copy - of Mathis' port expander code and integrate it into the - mini-gateway with an optimistic delivery date of the End of - November. - - 9. TCP IMPLEMENTATION SMALL GROUP MEETING - Cerf - - The discussion focused on the changes to IP required by DCA to - satisfy the DOD security and precedence needs. The existing IP - option for S/P/T does most of what's needed, but in addition the - TOS field will be redefined slightly to be: - - 0 1 2 3 4 5 6 7 - +-+-+-+-+-+-+-+-+ - | |S| |S|S| - | PRC |/|Rel|/|P| - | |D| |R|D| - +-+-+-+-+-+-+-+-+ - - That is: - - Bits 0-2: Precedence - Bit 3: Stream or Datagram - Bits 4-5: Reliability - Bit 6: Speed or Reliability - - - -Postel [Page 22] - - IEN 121 -Internet Meeting Notes - - - - Bit 7: Speed - - This information has to be passed up and down the layers of - protocol. Enforcement of the security and precedence is up to - each host. There needs to be a specification of how to interpret - and implement these functions. Preemption rules must be specified - too, for the higher level protocols. - - There was some discussion of the unauthorized use of security and - precedence features. The basic rule is to act on it speedily now - and to log the header of the message so one can ask later if the - originator was authorized. - - 10. TCP APPLICATIONS SMALL GROUP MEETING - Postel - - This group discussed problems in programming application programs - that use TCP. Postel had a problem figuring out how to use the - user/TCP interface (JSYSs) to create a successful TCP using - program. The problem may be with the documentation. Haverty has - the problem that programs don't work but don't crash either. - Clark said his TCP can't tell the user anything more specific than - "it didn't work." - - What is needed is better documentation, fault isolation tools, and - user level debugging aids. Also a memo on what is available, - e.g., a traffic generator at BBN-UNIX. - - 11. ST PROTOCOL SMALL GROUP MEETING - Hoversten - - This group first made up a detailed agenda of issues to discuss. - In general the topics included: - - Connectivity - Routing - Stability - Protocol Layering - Resource Allocation - Information Exchange - - Further discussion of the role of ST in resource allocation is - needed. It is agreed that ST provides a structure to support - multi-addressing and a resource allocation policy. - - The relationship of ST to IP is that ST is experimental, will be - implemented at a small number of sites, and will have IP imbedded - in it. - - - - - - -Postel [Page 23] - - IEN 121 -Internet Meeting Notes - - - - 12. 1822 BOARD PROBLEM SMALL GROUP MEETING - Mathis - - The problem with 1822 boards is being worked on at SRI. Software - for the TIU which circumvents the problem will be made available. - A hardware fix is being studied. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 24] - - IEN 121 -Internet Meeting Notes - - - -XVII. AGENDA FOR NEXT TIME - - The next meeting is February 4-6 at SRI International in Menlo Park. - Ron Kunzelman is the contact. - - Agenda Items: - - 1. Kirstein, Davies, Frankel - Internet Performance Experience - - 2. Flood Page - Longterm Gateway Statistics - - 3. Cerf - Schedule & Milestones Review - - 4. Forgie - ST Protocol - - 5. Cohen - ST Performance - - 6. McQuillan - Internet Routing - - 7. Cain, McFarland, Cerf - IP/TCP Acceptance Testing - - 8. Plummer, Tomlinson - Higher Level Protocols FTP & Integration - with TCP - - 9. Postel - Internet Message Handling Interim FTP Based Multi - Media Supporting - - 10. Deutsch - BBN - FAX & Text Message System - - 11. Cerf - Multi Homing & Partitioning - - 12. Plummer - Host Group Routing - - 13. Demos: - - A. GMCC Monitoring - Flood Page - - B. Fault Isolation in TIU - Mathis - - C. Internet Message Transport - Postel - - Action Items: - - 1. Milestones - each contractor is to provide a list of - milestones to Cerf. The intention is to quantize tasks and - identify increments in capability. The goal is to make - progress easily detectable. The combined milestones will be - distributed to the internet group, and will be reviewed at the - next meeting. - - - -Postel [Page 25] - - IEN 121 -Internet Meeting Notes - - - - 2. Monthly Reports - each contractor is to provide a monthly - report to Postel. The report should note accomplishments, - progress on milestones, unusual events, problems. A summary - of all reports will be distributed to the internet group. - - 3. XNET - to be converted to version 4 by Jim Mathis and Ray - Tomlinson. - - 4. Host IP Document - Bill Plummer is to write an IEN on how to - build a host IP. - - 5. GMCC - David Flood Page will write an IEN on GMCC message - formats and an IEN on how to use a terminal process . - - 6. Congestion Control - Dave Clark will write an IEN on - simulation experiments in IP congestion control. - - Future Meetings Schedule - - 1980 - FEB - SRI - MAY - MIT - SEP - RSRE - 1981 - JAN - ISI - MAY - ARPA - SEP -UCL - -XVIII. DOCUMENTS DISTRIBUTED - - IEN Author Title - --- ------ ----- - 109 Strazisar How to Build a Gateway - 110 Cerf Internet Addressing and Naming in a Tactical - Environment - 119 Forgie ST - A Proposed Internet Stream Protocol - - - - - - - - - - - - - - - - -Postel [Page 26] - - IEN 121 -Internet Meeting Notes - - - -XIX. ATTENDEES - - Vint Cerf ARPA Cerf@ISIA - Robert E. Kahn ARPA KAHN@ISIA - Dick Binder BBN BINDER@BBNE - Jack Haverty BBN JHAVERTY@BBND - Dale McNeill BBN DMCNEILL@BBNE - David Flood Page BBN DFLOODPAGE@BBNE - William Plummer BBN Plummer@BBNA - Virginia Strazisar BBN STRAZISAR@BBNA - Hoi Y. Chong COMSAT Mills@ISIE - David Mills COMSAT Mills@ISIE - Chip Bumgardner CTEC CHIPS@BBNC - Jack Hammett DARPA-IPT Hammett@ISIA - Ed Cain DCA Cain@EDN-UNIX - Ray McFarland DoD McFARLAND@ISIA - Michel L. Audren French Ministry Observer - Dominique A. Truchetet of Defense Observer - Hubert Zimmerman IRIA HZim@BBNC - Danny Cohen ISI Cohen@ISIB - Jon Postel ISI Postel@ISIB - Estil Hoversten Linkabit Hoversten@ISIA - Noel Chiappa MIT JNC@MIT-AI - Dave Clark MIT Clark@MIT-MULTICS - Jim Forgie Lincoln Lab FORGIE@BBN - Frank Deckelman NAVELEX DECKELMAN@ISIA - Aage Stensby NDRE AAGE@SRI-KA - Andrew Bates RSRE RSRE-T4@ISIA - Brian Davies RSRE RSRE-T4@ISIA - Allan J. Fox RSRE RSRE-T4@ISIA - John Laws RSRE RSRE-T4@ISIA - Ron Kunzelman SRI KUNZELMAN@SRI-KL - Jim Mathis SRI Mathis@SRI-KL - Robert Cole UCL UKSAT@ISIE - Sunil K. Das UCL PKT-UCL@SRI-KL - Peter L. Higginson UCL UKSAT@ISIE - Andrew Hinchley UCL UKSAT@ISIE - Ron Jones UCL UKSAT@ISIE - Peter Kirstein UCL Kirstein@ISIA - Alan J. Mayne UCL UKSAT@ISIE - Steve Treadwell UCL UKSAT@ISIE - David Lloyd UCL/UKMOD LLOYD@ISIA - Keith A. Lantz U of R LANTZ@SRI-KL - - - - - - - - - -Postel [Page 27] - - IEN 121 -Internet Meeting Notes - - - -APPENDIX A - - The following special interest group mailing lists have been set up - by Noel Chiappa at MIT-ML. To use them, send to -PEOPLE at - MIT-ML [or just (DON'T include the "<"'s)]. - - If you want to be on one or more of these mailing lists please send a - note to Noel, JNC@MIT-AI (not to the whole group). - - If you get a message from Person and to a mailing list, DO NOT send - your reply to the mailing list AND Person; the MIT-ML mailer isn't - smart enough to notice and will send duplicate copies to Person. - - MOS-UNIX MOS support on UNIX - - SMALL-UNIX UNIX on small machines - - VAX-UNIX UNIX on VAX - - MOS-TCP MOS, TIU and the MACRO-11 TCP - - MOS-PE Port expander / Minigateway - - NET-UNIX Network support on any UNIX - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 28] - - IEN 121 -Internet Meeting Notes - - - -APPENDIX B - - IP and TCP Specification Differences - - The following is a brief description of the difference between IEN-80 - and IEN-111 (IP), and between IEN-81 and IEN-112 (TCP). - - In both cases the new documents are intended to simply be better - documents, and no significant changes to the protocols are intended. - There are many minor changes of wording, punctuation, or spacing, so - that a source compare would catch many many paragraphs in which there - is no significant change. It is intended that the text added (or in - some cases deleted) lead to an easier to understand description of - the protocols. - - IP Differences - - 1. A much more specific description of a fragmentation and - reassembly procedure is included. - - 2. Some Options are changed or added: - - a. Three options are added for use by the BCR protocol. - - b. A Stream-ID option is added. - - c. The Source Route option is changed to conform with IEN-95. - - d. The Return Route option is added to conform with IEN-95. - - e. The Error Report option is expanded to have several specific - error codes., and a standardized IP header for error reporting. - - TCP Differences - - 1. Two additional States are introduced in the connection closing - sequence. - - 2. The EOL sequence number fixup procedure is changed to be based - on remembering the sequence number of the beginning of the most - recent buffer rather that the initial sequence number of the - connection. - - 3. In many cases the RST is not required to acknowledge that - segment that caused the reset to be generated, and in many cases - it is not necessary to check the ACK value to verify a RST. - - - - - - -Postel [Page 29] - - IEN 121 -Internet Meeting Notes - - - - APPENDIX C - - Minutes of Internet Subgroup Meeting for Performance Measurement - - Present: Ron Kunzelman (SRI) (Chairman), Noel Chiappa (MIT), - Brian Davies (RSRE), Stephen Edge (UCL), David Flood Page (BBN), - Andrew Hinchley (UCL), Ron Jones (UCL), Bob Kahn (ARPA), Peter - Kirstein (UCL), Alan Mayne (UCL) (Minute-taker), Ray McFarland - (DOD) - - Kunzelman pointed out that there is need for performance - measurement at different levels of protocol, including - measurements on Telnet and FTP at the user level, TCP at the - transport level, and datagrams at the internet level. The meeting - then considered various specific aspects of measurement. - - Measurement Work Now Being Done or Being Planned - - BBN (Flood Page) will do some performance measurements at the - datagram level on traffic passing through gateways; no tests are - envisaged. The BBN gateway will monitor IP traffic going through - the gateway. BBN is looking at CPU utilization, and can also - extract interface information by address pairs. BBN (Wingfield) - is doing some performance tests on TCP. Throughput and delays - have been investigated. - - SRI is measuring Telnet throughput (bits/sec) from TOPS20 and - TENEX hosts. - - UCL is trying to time FAX transmissions, and NIFTP transmissions - at the user level. UCL would like to measure individual - performances end-to-end, to see if there is any destructive - interference. For ARPANET-SATNET-ARPANET transmissions, there is - a need to know the best ARPANET performance, the best gateway - performance, and the best Satnet performance, and then compare the - combination of these with the best actual ARPANET-SATNET-ARPANET - performance, to see whether they are comparable or differ by an - order of magnitude. - - RSRE (Davies) has previously measured with old PIXIE, and would - now like to repeat some of these measurements with new PIXIE. - Measures have been made of round-trip TCP ack times. The - measurement techniques consist mainly of turning the traffic - generator on for about five minutes at a time, then obtaining a - delay histogram. - - - - - - - -Postel [Page 30] - - IEN 121 -Internet Meeting Notes - - - - Performance Metrics - - The following metrics have been used to measure ARPANET - performance: - - 1. ARPANET has problems of low bandwidth, hence uses - throughput metrics such as packets/sec and user-bits/sec. - - 2. SATNET has long delays, hence measures mean transmission - time. - - 3. PRNET is liable to high loss, hence measures the percentage - of missing packets. - - 4. Packet efficiency is the ratio of information packets - received to total packets received (the difference being - due to control and retransmission overhead). - - Kirstein stressed the need for better individual metrics, and then - for developing algorithms for combining them. For example, both - bits/sec and packets/sec are important. - - He also raised the question of how the performance varies when - going through different combinations of networks. - - Measurement Tools - - Tools currently being used in Arpanet include: - - 1. At the user level, FTP + "stopwatch" for bandwidth and - Telnet + "stopwatch" for measurements of remote echo time and - bandwidth. - - 2. Timestamps in pickup packets. - - 3. Echo server in gateways. - - 4. Traffic generators and sinks. - - There is also a possibility of using synchronized clocks to - measure one-way times and asymmetric delays as well as round - trip times. Hinchley is looking at interval times between - successive packet streams, as a method of measuring delays. - - Measurement Needs - - Kunzelman pointed out that there is currently no measurement at - the transport level in the ARPANET. Statistics are needed for the - distribution of user traffic, which can be measured on entry to - - - -Postel [Page 31] - - IEN 121 -Internet Meeting Notes - - - - the internet system. There is also a need to have statistics for - the distribution of packet sizes. - - More measurement is needed of round-trip TCP ack times: so far, - this has been done only by RSRE. Also in TCP, measurements are - needed of retransmissions and checksum errors. TCP-specific - measures should be separated from general network and gateway - measures, although such separation might be difficult to achieve - in practice. - - Mayne would be grateful to anyone who would send him empirical - data that would be useful to help validate his proposed simulation - and theoretical studies, especially on problems of joint - ARPANET-SATNET operation. It was pointed out that McQuillan has a - large amount of empirical data. - - Some Problem Areas - - Kahn pointed out the need to isolate problem areas, such as - optimization and tuning, for which measurements are needed. Some - of these problems relate to research and development about - networks, including obtaining insights about their behavior, - others are concerned with the operational control of networks, and - there is also the problem of persuading some network users that - they actually have problems! - - Kirstein said that a big problem is to put uniform methods of - measurement into the internet environment; this is very difficult - and requires much thought. - - Kahn asked if we could do absolute performance measurements, or - whether they are all relative. - - Kahn said that measurements could contribute to the understanding - of various problem areas, for example: performance tuning and - other parameter optimization, retransmission strategies, - alternative routing strategies, minimum delays for - interactive-type traffic, cost considerations, robustness and - recoverability. - - Mayne mentioned two important incentives for carrying out - comprehensive measurements: - - 1. Validation of simulation runs and theoretical models. - - 2. Obtaining insights into what is happening, especially in - network operating problems of crucial practical importance. - - - - - -Postel [Page 32] - - IEN 121 -Internet Meeting Notes - - - - Documentation - - Mayne said that is would be valuable to prepare a comprehensive - list of all documents relevant to network measurement, including - papers on methods and tools, measurement software and write-ups of - that software, and collections and summaries of actual performance - data. He suggested that each organization participating in the - internet, should contribute relevant entries, and he himself will - prepare an annotated bibliography of relevant UCL literature. He - is also willing to act as a mailbox for collecting information - from the other organizations. - - It was pointed out that important documents in this area have been - written by Kleinrock, McQuillan, and Wingfield, and also at UCL. - - Recommendations for Further Action - - 1. Study network performance in relation to types of network - subsystem, including network as a whole, gateways, hosts, - operating systems. - - 2. Write specifications of performance measures for TCP (it - was suggested that this might be done by Wingfield), user - level protocols, and IP. - - 3. Define a set of tests for IP, Datagram, TCP, higher level - protocols, etc. - - 4. More work needs to be done on IP, for example, using GGP - and echo packets and measuring round trip times, also - investigating loss rates including numbers of duplicate packets - and packets out of order. - - 5. Prepare and adequate bibliography of documents on - performance measurements, and keep it up to date. - - - - - - - - - - - - - - - - - -Postel [Page 33] - \ No newline at end of file diff --git a/text/ien/ien122.txt b/text/ien/ien122.txt deleted file mode 100644 index a3dad756..00000000 --- a/text/ien/ien122.txt +++ /dev/null @@ -1,295 +0,0 @@ -IEN-122 Danny Cohen - I S I - 31 October 1979 - Halloween - - - On Addressing and Related Issues. - (or: Fuel for a Discussion) - --------------------------------- - - -This note is about addressing of hosts on local nets. - - -THE AXIOM-A1 - -According to our current model a local net (LN) is an InterNetworkly -(like "internationally") known network, having an 8-bit Net-ID (NID) -assigned by the czar, registered in the official registry, etc., etc. - -Furthermore, we have Axiom-A1 which states that: - - (A1): All Gateways know how to get to ALL Networks. - -Here, both "Gateway" and "Network" are spelled with capital letters to -indicate that they are part of the global InterNetwork Environment as -opposed to some trivial network or gateway, like the hidden ones, for -example. - -An interesting question is: "Is every local network a Network?". - -Now the answer seems to be "yes". I beg to differ. - -I cannot escape the feeling that if we hold to this practice we will -soon find that slow nets, like the ARPANET, cannot keep up with all the -inter-Gateways traffic needed for all Gateways to know all about all -Networks, or at least about their existence and how to get there. In -addition the storage capacity to keep this information and the cycles to -process it may also exceed any reasonable estimate. In addition, the -8-bit field may turn out to be too small for the NID. - -This fear is based on the experience with the ARPANET routing update -which was frequent when the net was lightly loaded, hence least needed, -and less frequent when it was needed the most, when the net was heavily -loaded. - -Also, so far we have 31 NID's assigned (according to page 2 of IEN-117, -August 79) and this does not even include the 10 telephone lines each of -which has to be treated as a Network, according to Dave Clark; the 3 (at -least) LN's at ISI, at Lincoln, SRI, LLL, LBL, CMU and more. In the -very near future every installation will have an LN (DECNETS and the -like) and probably so will any medium and big computer system. - - Page 2 - -If every PDP-10 (and bigger) computer has a local net to communicate -with its devices, file systems and the like, and if local nets have NIDs -then we may need LOTS of bits in LOTS of tables, and lots of cycles to -process them, if we ever manage to get enough bandwidth to communicate -them. - -I propose the following: - - * Let NID='377 be an escape-code, and NID=0 mean "this-Net". - - * Let networks which have only one connection to the IN-environment - (e.g., one Gateway only) be defined as Ln's. Note, net, not Net. - - * Let Ln-addresses be 24 bit wide. The value 24 is used here for - convenience only. Obviously it may assume any other value, as is - needed for any particular network. - - * Let Ln's not have NID's!!! and their gateways considered as - gateways (not Gateways); and - - * Use source-routing to get to the hosts on these Ln's. - -Hence, if there is a local net at site-X, which is connected to the -IN-environment via IMP-Y on the ARPANET, then the addresses of processes -on this net should be: - - - - -Note that this is a 64-bit address !! - -In comparison, now we have only 32-bit addresses, such as: - - - -However, for sites on Networks with only 16-bit addressing (e.g., the -ARPANet and WBnet) it is most advantegous to have local nets with 8-bit -addressing only, since this allows packing of the entire address in a -single IP-address without the need for source-routing. - -For example, the IP-address of host-123 on the local-net which is -connected to the INE via the gateway which is on interface-3 of IMP-22 -could be: - - - -The main idea is that if all the communication to X has to pass through -"g" then there is absolutely no point in propagating to the outside -world any information about the structure of the environment inside -(i.e., "inwards" or "beyond") of "g". - - Page 3 - -If CMU, for example, has 5 local nets, all of which are connected to the -world via the same IMP, then there is absolutely no point in treating -them as Networks with NID's, and polluting the world with information -about them, how to get to them etc., since the only way to get there is -to get first to the ARPANET and then to the CMU-IMP. - -Proliferation of information which is not needed may be very costly, in -storage, in cycles, and in bandwidth. - -I don't believe that the fact that someone adds a local network in -Timbaktoo has to be propagated to all the Gateways. - -In summary: Let's adopt the policy of non-proliferation of NID's and -let's use source routing. - -THE THEOREMS T1, T2 and T3 - -The following three theorems have been proven experimentally and require -no more discussion: - - (T1): Any fixed size field will be found to be too small. - - (T2): Any fixed number of fields will be found to be too small. - - (T3): You can fool T1, or T2, but not both. - -It is important to understand that T1 is not the only reason to avoid -Networks proliferation. By having a very-very long NID field (say 100 -bits) T1 may be fooled for some time. - - -THE POSTULATE-P1 - -Addressing hosts and processes which have several physical connections -with the INE (the InterNetwork Environment, or "Catenet") is a messy and -nasty problem. - -This problem may be stated as: "What is the address of X if it is -connected with the INE both as HOST-m on NET-i and as HOST-n on NET-j?". - -If X is a network, say NET-k, then there are Gateways in between, and -according to Axiom-A1 there is no problem in addressing it as NET-k, -since all the Gateways anywhere know how to get to it. - -But if X is a host, or any other non-network type of process, then -there is a problem with its dual-homing (or better: multiple-homing). - -If the choice between the multiple addresses is left to any process -which tries to communicate with X then we have to admit that our -communication system is not capable of solving ALL the addressing -issues, and push this problem "up" into hosts. It goes without saying -that this does not mean that people (like senders of text messages) have -to remember these multiple addresses, and that programs and tables could -be used for it. - - Page 4 - -Here is where Postulate-P1 is defined. - - (P1): Every process should have only one IN-address. - -This is possible to achieve by simply defining any process, or -collection of processes, as a Network. For example, if hosts (which are -not Gateways) and local networks which have more than one connection to -the INE, are defined as Networks, with their own NID's, then Axiom-A1 -guarantees that Postulate-P1 is always true. - -Note how nicely this alleviates the problem of handling multiple -addressing, source routing, the mess required to handle variable length -addresses, and more. - -THE INNER STRUCTURE OF GATEWAYS - -After establishing both Axiom-A1 and Postulate-P1 the addressing issue -is totally under control. There may be a slight difficulty with -handling the number of Networks which are required, but T1 can always be -fooled by assigning a very long field for the NID and by assuming that -the bandwidth, the storage and the cycles are avilable at all the -Gateways to handle all the information about ALL these Networks. - -Next, consider a process P which is inside the Gateway G(i,j) which -connects NET-i with NET-j. Such a process may deal with access control, -checks and balance, routing, or any of many other possible issues. - -What is the address of this process? - -G(i,j) is both HOST-m on NET-i and HOST-n on NET-j, just like X above. - -Since our Postulate-P1 does not allow multiple homing, we cannot let the -address of this process be - - either

or

- -Hence, we must define the inside the Gateway to be another Network. - -The new Network is obviously connected both to NET-i and to NET-j. But -how? Simply, as shown in <**> below: - - <**> Via two Gateways, each of which is itself - a Network with an InterNetworkly known NID. - - How is each of these Networks connected to - its own neighboring Networks? Simply, as shown - in <**> above. - -Well, this does not seem to jibe perfectly with the notion of finite -length NID-fields... By the way, I suspect that you did not trace the -above explanation to its logical termination. Did you? - -There are several tacks one may take here to mend this situation. I -dare say that un-adopting Postulate-P1 is one of the better ones. - - Page 5 - -Let's do it, hence we accept that the multiple-homing issue is not -necessarily always solved completely by the Gateways. - -There is a lot to be said about multiple-addressing but this is left for -yet another note. - -Once this heresy is introduced -- even Local Networks with more than one -connection to INE may be treated as Ln's without NID's !! - - -CONCLUSION - -Local networks, regardless of the number of connections which they have -to the INE, should NOT be treated as Networks with NID's. - -AFTERTHOUGHTS - -The network forefathers demonstrated remarkable foresight by allocating -an 8-bit field for HOSTs on the ARPANet. The notions of that many -hosts, that many IMPs and several computers connected to a single IMP at -one location were ahead of their time. - -Since then the scenario developed in several directions. First, it is -not THE network any more. Many networks, of different technologies are -in existence. Second, on many occasions there is more than one computer -at the same location. - -The concept of HOST is gradually and implicitly replaced by the new -concept of SITE. Here "site" is some combination of an organization and -a certain location, like "ISI", "MIT" or "BBN", but not like "DoD" or -"Cambridge". - -The association of processes, people, files, devices is not per-host, as -it used to be, but more and more per-site. This is especially apparent -when text messages ("mail") are discussed. It is typically expressed by -statements like: "I know that he is at MIT, but have no idea on which -machine there, and don't even care to know!". - -I suspect (but am not quite sure) that the similarities between -local-networking and Networking (a la ARPANet, WBCNet and PRNet) are -deeper than just a lucky coincidence, but less than a deep fundamental -phenomena. - -Treating local networks with all the "glory" which is associated with -"real" (or "global") networks -- may be misleading and may cause more -artifacts than what we bargain for. - - Let's think about it...... - - Page 6 - -A COMMENT ABOUT MULTIPLE-ADDRESSING. - -Without suggesting anything to the INE, following are some examples of -the handling of multiple-addressing in Telephonia. - -My addresses, at ISI, are 1-213-822-1511 thru 1-213-822-1519 (plus some -non-contigious numbers). However, no one outside of ISI has to know -these numbers, since all the communication which is addressed to the one -of them is automatically re-routed to the rest, if so needed. - -I have one address at ISI, and another at home. The re-routing between -them takes place outside the "pure" communication system, unless its -definition is augmented to include the human operators, secretaries, and -the like. - -If I am not around someone probably can provide the sought information. -This multi-address (of the information!) is the choice of whom-to-ask. -It is very difficult to stretch the definition of communication sytems -to include that. - -These examples show that in Telephonia the multiple-addressing issue is -handled at several levels. Maybe the same is true for internetting, too. diff --git a/text/ien/ien123.txt b/text/ien/ien123.txt deleted file mode 100644 index e64251c6..00000000 --- a/text/ien/ien123.txt +++ /dev/null @@ -1,2708 +0,0 @@ - - December 1979 - -IEN: 123 - - - - - - - - DOD STANDARD - - INTERNET PROTOCOL - - - - December 1979 - - - - - - - - - - - - - - - - - prepared for - - Defense Advanced Research Projects Agency - Information Processing Techniques Office - 1400 Wilson Boulevard - Arlington, Virginia 22209 - - - - - - - - by - - Information Sciences Institute - University of Southern California - 4676 Admiralty Way - Marina del Rey, California 90291 - -December 1979 - Internet Protocol - - - - TABLE OF CONTENTS - - PREFACE ........................................................ iii - -1. INTRODUCTION ..................................................... 1 - - 1.1 Motivation .................................................... 1 - 1.2 Scope ......................................................... 1 - 1.3 Interfaces .................................................... 1 - 1.4 Operation ..................................................... 2 - -2. OVERVIEW ......................................................... 5 - - 2.1 Relation to Other Protocols ................................... 5 - 2.2 Model of Operation ............................................ 5 - 2.3 Function Description .......................................... 7 - -3. SPECIFICATION ................................................... 11 - - 3.1 Internet Header Format ....................................... 11 - 3.2 Discussion ................................................... 22 - 3.3 Examples & Scenarios ......................................... 30 - 3.4 Interfaces ................................................... 34 - -GLOSSARY ............................................................ 37 - -REFERENCES .......................................................... 41 - - - - - - - - - - - - - - - - - - - - - - - - - [Page i] - - - December 1979 -Internet Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page ii] - - -December 1979 - Internet Protocol - - - - PREFACE - - - -This document specifies the DoD Standard Internet Protocol. This -document is based on four earlier editions of the ARPA Internet Protocol -Specification, and the present text draws heavily from them. There have -been many contributors to this work both in terms of concepts and in -terms of text. - -This edition revises the details security, compartmentation, and -precedence features of the internet protocol. - - Jon Postel - - Editor - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Page iii] - - -December 1979 -IEN: 123 -Replaces: IENs 111, -80, 54, 44, 41, 28, 26 - - DOD STANDARD - - INTERNET PROTOCOL - - - - 1. INTRODUCTION - -1.1. Motivation - - The Internet Protocol is designed for use in interconnected systems of - packet-switched computer communication networks. Such a system has - been called a "catenet" [1]. The internet protocol provides for - transmitting blocks of data called datagrams from sources to - destinations, where sources and destinations are hosts identified by - fixed length addresses. The internet protocol also provides for - fragmentation and reassembly of long datagrams, if necessary, for - transmission through "small packet" networks. - -1.2. Scope - - The internet protocol is specifically limited in scope to provide the - functions necessary to deliver a package of bits (an internet - datagram) from a source to a destination over an interconnected system - of networks. There are no mechanisms to promote data reliability, - flow control, sequencing, or other services commonly found in - host-to-host protocols. - -1.3. Interfaces - - This protocol is called on by host-to-host protocols in an internet - environment. This protocol calls on local network protocols to carry - the internet datagram to the next gateway or destination host. - - For example, a TCP module would call on the internet module to take a - TCP segment (including the TCP header and user data) as the data - portion of an internet datagram. The TCP module would provide the - addresses and other parameters in the internet header to the internet - module as arguments of the call. The internet module would then - create an internet datagram and call on the local network interface to - transmit the internet datagram. - - In the ARPANET case, for example, the internet module would call on a - local net module which would add the 1822 leader [2] to the internet - datagram creating an ARPANET message to transmit to the IMP. The - ARPANET address would be derived from the internet address by the - local network interface and would be the address of some host in the - ARPANET, that host might be a gateway to other networks. - - - - [Page 1] - - - December 1979 -Internet Protocol -Introduction - - - -1.4. Operation - - The internet protocol implements two basic functions: addressing and - fragmentation. - - The internet modules use the addresses carried in the internet header - to transmit the internet datagram toward their destinations. The - selection of a path for transmission is called routing. - - The internet modules use fields in the internet header to fragment and - reassemble internet datagrams when necessary for transmission through - "small packet" networks. - - The model of operation is that an internet module resides in each host - engaged in internet communication and in each gateway that - interconnects networks. These modules share common rules for - interpreting address fields and for fragmenting and assembling - internet datagrams. In addition, these modules (especially in - gateways) may have procedures for making routing decisions and other - functions. - - The internet protocol treats each internet datagram as an independent - entity unrelated to any other internet datagram. There are no - connections or logical circuits (virtual or otherwise). - - The internet protocol uses four key mechanisms in providing its - service: Type of Service, Time to Live, Options, and Header Checksum. - - The Type of Service is used to indicate the quality of the service - desired; this may be thought of as selecting among Interactive, Bulk, - or Real Time, for example. The type of service is an abstract or - generalized set of parameters which characterize the service choices - provided in the networks that make up the internet. This type of - service indication is to be used by gateways to select the actual - transmission parameters for a particular network, the network to be - used for the next hop, or the next gateway when routing an internet - datagram. - - The Time to Live is an indication of the lifetime of an internet - datagram. It is set by the sender of the datagram and reduced at the - points along the route where it is processed. If the time to live - reaches zero before the internet datagram reaches its destination, the - internet datagram is destroyed. The time to live can be thought of as - a self destruct time limit. - - The Options provide for control functions needed or useful in some - situations but unnecessary for the most common communications. The - - - -[Page 2] - - -December 1979 - Internet Protocol - Introduction - - - - options include provisions for timestamps, error reports, and special - routing. - - The Header Checksum provides a verification that the information used - in processing internet datagram has been transmitted correctly. The - data may contain errors. If the header checksum fails, the internet - datagram is discarded at once by the entity which detects the error. - - The internet protocol does not provide a reliable communication - facility. There are no acknowledgments either end-to-end or - hop-by-hop. There is no error control for data, only a header - checksum. There are no retransmissions. There is no flow control. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Page 3] - - - December 1979 -Internet Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 4] - - -December 1979 - Internet Protocol - - - - 2. OVERVIEW - -2.1. Relation to Other Protocols - - The following diagram illustrates the place of the internet protocol - in the protocol hierarchy: - - - +------+ +-----+ +-----+ +-----+ - |Telnet| | FTP | |Voice| ... | | - +------+ +-----+ +-----+ +-----+ - | | | | - +-----+ +-----+ +-----+ - | TCP | | RTP | ... | | - +-----+ +-----+ +-----+ - | | | - +-------------------------------+ - | Internet Protocol | - +-------------------------------+ - | - +---------------------------+ - | Local Network Protocol | - +---------------------------+ - | - - - - Protocol Relationships - - Figure 1. - - Internet protocol interfaces on one side to the higher level - host-to-host protocols and on the other side to the local network - protocol. - -2.2. Model of Operation - - The model of operation for transmitting a datagram from one - application program to another is illustrated by the following - scenario: - - We suppose that this transmission will involve one intermediate - gateway. - - The sending application program prepares its data and calls on its - local internet module to send that data as a datagram and passes the - destination address and other parameters as arguments of the call. - - The internet module prepares a datagram header and attaches the data - - - [Page 5] - - - December 1979 -Internet Protocol -Overview - - - - to it. The internet module determines a local network address for - this internet address, in this case it is the address of a gateway. - It sends this datagram and the local network address to the local - network interface. - - The local network interface creates a local network header, and - attaches the datagram to it, then sends the result via the local - network. - - The datagram arrives at a gateway host wrapped in the local network - header, the local network interface strips off this header, and - turns the datagram over to the internet module. The internet module - determines from the internet address that the datagram should be - forwarded to another host in a second network. The internet module - determines a local net address for the destination host. It calls - on the local network interface for that network to send the - datagram. - - This local network interface creates a local network header and - attaches the datagram sending the result to the destination host. - - At this destination host the datagram is stripped of the local net - header by the local network interface and handed to the internet - module. - - The internet module determines that the datagram is for an - application program in this host. It passes the data to the - application program in response to a system call, passing the source - address and other parameters as results of the call. - - - Application Application - Program Program - \ / - Internet Module Internet Module Internet Module - \ / \ / - LNI-1 LNI-1 LNI-2 LNI-2 - \ / \ / - Local Network 1 Local Network 2 - - - - Transmission Path - - Figure 2 - - - - - -[Page 6] - - -December 1979 - Internet Protocol - Overview - - - -2.3. Function Description - - The function or purpose of Internet Protocol is to move datagrams - through an interconnected set of networks. This is done by passing - the datagrams from one internet module to another until the - destination is reached. The internet modules reside in hosts and - gateways in the internet system. The datagrams are routed from one - internet module to another through individual networks based on the - interpretation of an internet address. Thus, one important mechanism - of the internet protocol is the internet address. - - In the routing of messages from one internet module to another, - datagrams may need to traverse a network whose maximum packet size is - smaller than the size of the datagram. To overcome this difficulty, a - fragmentation mechanism is provided in the internet protocol. - - Addressing - - A distinction is made between names, addresses, and routes [3]. A - name indicates what we seek. An address indicates where it is. A - route indicates how to get there. The internet protocol deals - primarily with addresses. It is the task of higher level (i.e., - host-to-host or application) protocols to make the mapping from - names to addresses. The internet module maps internet addresses to - local net addresses. It is the task of lower level (i.e., local net - or gateways) procedures to make the mapping from local net addresses - addresses to routes. - - Addresses are fixed length of four octets (32 bits). An address - begins with a one octet network number, followed by a three octet - local address. This three octet field is called the "rest" field. - - Care must be taken in mapping internet addresses to local net - addresses; a single physical host must be able to act as if it were - several distinct hosts to the extent of using several distinct - internet addresses. A host should also be able to have several - physical interfaces (multi-homing). - - That is, a host should be allowed several physical interfaces to the - network with each having several logical internet addresses. - - Examples of address mappings may be found in reference [4]. - - Fragmentation - - Fragmentation of an internet datagram may be necessary when it - originates in a local net that allows a large packet size and must - - - - [Page 7] - - - December 1979 -Internet Protocol -Overview - - - - traverse a local net that limits packets to a smaller size to reach - its destination. - - An internet datagram can be marked "don't fragment." Any internet - datagram so marked is not to be internet fragmented under any - circumstances. If internet datagram marked don't fragment cannot be - delivered to its destination without fragmenting it, it is to be - discarded instead. - - Fragmentation, transmission and reassembly across a local network - which is invisible to the internet protocol module is called - intranet fragmentation and may be used [5]. - - The internet fragmentation and reassembly procedure needs to be able - to break a datagram into an almost arbitrary number of pieces that - can be later reassembled. The receiver of the fragments uses the - identification field to ensure that fragments of different datagrams - are not mixed. The fragment offset field tells the receiver the - position of a fragment in the original datagram. The fragment - offset and length determine the portion of the original datagram - covered by this fragment. The more-fragments flag indicates (by - being reset) the last fragment. These fields provide sufficient - information to reassemble datagrams. - - The identification field is used to distinguish the fragments of one - datagram from those of another. The originating protocol module of - an internet datagram sets the identification field to a value that - must be unique for that source-destination pair and protocol for the - time the datagram will be active in the internet system. The - originating protocol module of a complete datagram sets the - more-fragments flag to zero and the fragment offset to zero. - - To fragment a long internet datagram, an internet protocol module - (for example, in a gateway), creates two new internet datagrams and - copies the contents of the internet header fields from the long - datagram into both new internet headers. The data of the long - datagram is divided into two portions on a 8 octet (64 bit) boundary - (the second portion might not be an integral multiple of 8 octets, - but the first must be). Call the number of 8 octet blocks in the - first portion NFB (for Number of Fragment Blocks). The first - portion of the data is placed in the first new internet datagram, - and the total length field is set to the length of the first - datagram. The more-fragments flag is set to one. The second - portion of the data is placed in the second new internet datagram, - and the total length field is set to the length of the second - datagram. The more-fragments flag carries the same value as the - long datagram. The fragment offset field of the second new internet - - - -[Page 8] - - -December 1979 - Internet Protocol - Overview - - - - datagram is set to the value of that field in the long datagram plus - NFB. - - This procedure can be generalized for an n-way split, rather than - the two-way split described. - - To assemble the fragments of an internet datagram, an internet - protocol module (for example at a destination host) combines - internet datagram that all have the same value for the four fields: - identification, source, destination, and protocol. The combination - is done by placing the data portion of each fragment in the relative - position indicated by the fragment offset in that fragment's - internet header. The first fragment will have the fragment offset - zero, and the last fragment will have the more-fragments flag reset - to zero. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Page 9] - - - December 1979 -Internet Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 10] - - -December 1979 - Internet Protocol - - - - 3. SPECIFICATION - -3.1. Internet Header Format - - A summary of the contents of the internet header follows: - - - 0 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - |Version| IHL |Type of Service| Total Length | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Identification |Flags| Fragment Offset | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Time to Live | Protocol | Header Checksum | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Source Address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Destination Address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Options | Padding | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - - Example Internet Datagram Header - - Figure 3. - - Note that each tick mark represents one bit position. - - Version: 4 bits - - The Version field indicates the format of the internet header. This - document describes version 4. - - IHL: 4 bits - - Internet Header Length is the length of the internet header in 32 - bit words, and thus points to the beginning of the data. Note that - the minimum value for a correct header is 5. - - - - - - - - - - - - - [Page 11] - - - December 1979 -Internet Protocol -Specification - - - - Type of Service: 8 bits - - The Type of Service provides an indication of the abstract - parameters of the quality of service desired. These parameters are - to be used to guide the selection of the actual service parameters - when transmitting a datagram through a particular network. Several - networks offer service precedence, which somehow treats high - precedence traffic as more important than other traffic. A few - networks offer a Stream service, whereby one can achieve a smoother - service at some cost. Typically this involves the reservation of - resources within the network. Another choice involves a low-delay - vs. high-reliability trade off. Typically networks invoke more - complex (and delay producing) mechanisms as the need for reliability - increases. - - Bits 0-2: Priority. - Bit 3: Stream or Datagram. - Bits 4-5: Reliability. - Bit 6: Speed over Reliability. - Bits 7: Speed. - - 0 1 2 3 4 5 6 7 - +-----+-----+-----+-----+-----+-----+-----+-----+ - | | | | | | - | PRECEDENCE | STRM|RELIABILITY| S/R |SPEED| - | | | | | | - +-----+-----+-----+-----+-----+-----+-----+-----+ - - PRECEDENCE STRM RELIABILITY S/R SPEED - 111-Flash Override 1-STREAM 11-highest 1-speed 1-high - 110-Flash 0-DTGRM 10-higher 0-rlblt 0-low - 11X-Immediate 01-lower - 01X-Priority 00-lowest - 00X-Routine - - The type of service is used to specify the treatment of the datagram - during its transmission through the internet system. In the - discussion (section 3.2) below, a chart shows the relationship of - the internet type of service to the actual service provided on the - ARPANET, the SATNET, and the PRNET. - - Total Length: 16 bits - - Total Length is the length of the datagram, measured in octets, - including internet header and data. This field allows the length of - a datagram to be up to 65,535 octets. Such long datagrams are - impractical for most hosts and networks. All hosts must be prepared - to accept datagrams of up to 576 octets (whether they arrive whole - - -[Page 12] - - -December 1979 - Internet Protocol - Specification - - - - in fragments). It is recommended that hosts only send datagrams - larger than 576 octets if they have assurance that the destination - is prepared to accept the larger datagrams. - - The number 576 is selected to allow a reasonable sized data block to - be transmitted in addition to the required header information. For - example, this size allows a data block of 512 octets plus 64 header - octets to fit in a datagram. The maximal internet header is 60 - octets, and a typical internet header is 20 octets, allowing a - margin for headers of higher level protocols. - - Identification: 16 bits - - An identifying value assigned by the sender to aid in assembling the - fragments of a datagram. - - Flags: 3 bits - - Various Control Flags. - - Bit 0: reserved, must be zero - Bit 1: Don't Fragment This Datagram (DF). - Bit 2: More Fragments Flag (MF). - - 0 1 2 - +---+---+---+ - | | D | M | - | 0 | F | F | - +---+---+---+ - - Fragment Offset: 13 bits - - This field indicates where in the datagram this fragment belongs. - The fragment offset is measured in units of 8 octets (64 bits). The - first fragment has offset zero. - - Time to Live: 8 bits - - This field indicates the maximum time the datagram is allowed to - remain the internet system. If this field contains the value zero, - then the datagram should be destroyed. This field is modified in - internet header processing. The time is measured in units of - seconds. The intention is to cause undeliverable datagrams to be - discarded. - - - - - - - [Page 13] - - - December 1979 -Internet Protocol -Specification - - - - Protocol: 8 bits - - This field indicates the next level protocol used in the data - portion of the internet datagram. The values for various protocols - are specified in reference [6]. - - Header Checksum: 16 bits - - A checksum on the header only. Since some header fields may change - (e.g., time to live), this is recomputed and verified at each point - that the internet header is processed. - - The checksum algorithm is: - - The checksum field is the 16 bit one's complement of the one's - complement sum of all 16 bit words in the header. For purposes of - computing the checksum, the value of the checksum field is zero. - - This is a simple to compute checksum and experimental evidence - indicates it is adequate, but it is provisional and may be replaced - by a CRC procedure, depending on further experience. - - Source Address: 32 bits - - The source address. The first octet is the Source Network, and the - following three octets are the Source Local Address. - - Destination Address: 32 bits - - The destination address. The first octet is the Destination - Network, and the following three octets are the Destination Local - Address. - - - - - - - - - - - - - - - - - - -[Page 14] - - -December 1979 - Internet Protocol - Specification - - - - Options: variable - - The option field is variable in length. There may be zero or more - options. There are two case for the format of an option: - - Case 1: A single octet of option-type. - - Case 2: An option-type octet, an option-length octet, and the - actual option-data octets. - - The option-length octet counts the option-type octet and the - option-length octet as well as the option-data octets. - - The option-type octet is viewed as having 3 fields: - - 1 bit reserved, must be zero - 2 bits option class, - 5 bits option number. - - The option classes are: - - 0 = control - 1 = internet error - 2 = experimental debugging and measurement - 3 = reserved for future use - - - - - - - - - - - - - - - - - - - - - - - - - - [Page 15] - - - December 1979 -Internet Protocol -Specification - - - - The following internet options are defined: - - CLASS NUMBER LENGTH DESCRIPTION - ----- ------ ------ ----------- - 0 0 - End of Option list. This option occupies only - 1 octet; it has no length octet. - 0 1 - No Operation. This option occupies only 1 - octet; it has no length octet. - 0 2 4 Security. Used to carry Security, and user - group (TCC) information compatible with DOD - requirements. - 0 3 var. Source Routing. Used to route the internet - datagram based on information supplied by the - source. - 0 4 var. BCR Open. - 0 5 var. BCR Close. - 0 6 var. BCR other. - 0 7 var. Return Route. Used to record the route an - internet datagram takes. - 0 8 4 Stream ID. Used to carry the stream - identifier. - 1 1 var. General Error Report. Used to report errors - in internet datagram processing. - 2 4 6 Internet Timestamp. Used to accumulate - timestamping information during internet - transit. The length field is variable and may - change as the internet datagram traverses the - networks and gateways of the internet system. - 2 5 6 Satellite Timestamp. Used as above for - special satellite network testing. - - - - Specific Option Definitions - - End of Option List - - +--------+ - |00000000| - +--------+ - Type=0 - - This option indicates the end of the option list. This might - not coincide with the end of the internet header according to - the internet header length. This is used at the end of all - options, not the end of each option, and need only be used if - the end of the options would not otherwise coincide with the end - of the internet header. - - -[Page 16] - - -December 1979 - Internet Protocol - Specification - - - - May be copied, introduced, or deleted on fragmentation. - - No Operation - - +--------+ - |00000001| - +--------+ - Type=1 - - This option may be used between options, for example, to align - the beginning of a subsequent option on a 32 bit boundary. - - May be copied, introduced, or deleted on fragmentation. - - Security - - This option provides a way for DOD hosts to send security and - TCC (closed user groups) parameters through networks whose - transport leader does not contain fields for this information. - The format for this option is as follows: - - +--------+--------+---------+--------+ - |00000010|00000100|000000SS | TCC | - +--------+--------+---------+--------+ - Type=2 Length=4 - - Security: 2 bits - - Specifies one of 4 levels of security - - 11-top secret - 10-secret - 01-confidential - 00-unclassified - - Transmission Control Code: 8 bits - - Provides a means to compartmentalize traffic and define - controlled communities of interest among subscribers. - - Note that this option does not require processing by the - internet module but does require that this information be passed - to higher level protocol modules. The security and TCC - information might be used to supply class level and compartment - information for transmitting datagrams into or through - AUTODIN II. - - Must be copied on fragmentation. - - - [Page 17] - - - December 1979 -Internet Protocol -Specification - - - - Source Route - - +--------+--------+--------+---------//--------+ - |00000011| length | source route | - +--------+--------+--------+---------//--------+ - Type=3 - - The source route option provides a means for the source of an - internet datagram to supply routing information to be used by - the gateways in forwarding the datagram to the destination. - - The option begins with the option type code. The second octet - is the option length which includes the option type code and the - length octet, as well as length-2 octets of source route data. - - A source route is composed of a series of internet addresses. - Each internet address is 32 bits or 4 octets. The length - defaults to two, which indicates the source route is empty and - the remaining routing is to be based on the destination address - field. - - If the address in destination address field has been reached and - this option's length is not two, the next address in the source - route replaces the address in the destination address field, and - is deleted from the source route and this option's length is - reduced by four. (The Internet Header Length Field must be - changed also.) - - Must be copied on fragmentation. - - Return Route - - +--------+--------+--------+---------//--------+ - |00000111| length | return route | - +--------+--------+--------+---------//--------+ - Type=7 - - The return route option provides a means to record the route of - an internet datagram. - - The option begins with the option type code. The second octet - is the option length which includes the option type code and the - length octet, as well as length-2 octets of return route data. - - A return route is composed of a series of internet addresses. - The length defaults to two, which indicates the return route is - empty. - - - -[Page 18] - - -December 1979 - Internet Protocol - Specification - - - - When an internet module routes a datagram it checks to see if - the return route option is present. If it is, it inserts its - own internet address as known in the environment into which this - datagram is being forwarded into the return route at the front - of the address string and increments the length by four. - - Not copied on fragmentation, goes in first fragment only. - - BCR Options - - BCR OPEN - - +--------+--------+------ - |00000100| length | data - +--------+--------+------ - Type=4 - - BCR CLOSE - - +--------+--------+------ - |00000101| length | data - +--------+--------+------ - Type=5 - - BCR OTHER - - +--------+--------+------ - |00000110| length | data - +--------+--------+------ - Type=6 - - These options are used with the BCR. - - These options are not copied on fragmentation, they are carried - only in the first fragment. - - Stream Identifier - - +--------+--------+---------+--------+ - |00001000|00000010| Stream ID | - +--------+--------+---------+--------+ - Type=8 Length=4 - - This option provides a way for the 16-bit SATNET stream - identifier to be carried through networks that do not support - the stream concept. - - Must be copied on fragmentation. - - - [Page 19] - - - December 1979 -Internet Protocol -Specification - - - - General Error Report - - +--------+--------+--------+--------+--------+----//----+ - |00100001| length |err code| id | | - +--------+--------+--------+--------+--------+----//----+ - Type=33 - - The general error report is used to report an error detected in - processing an internet datagram to the source internet module of - that datagram. The "err code" indicates the type of error - detected, and the "id" is copied from the identification field - of the datagram in error, additional octets of error information - may be present depending on the err code. - - If an internet datagram containing the general error report - option is found to be in error or must be discarded, no error - report is sent. - - ERR CODE: - - 0 - Undetermined Error, used when no information is available - about the type of error or the error does not fit any defined - class. Following the id should be as much of the datagram - (starting with the internet header) as fits in the option - space. - - 1 - Datagram Discarded, used when specific information is - available about the reason for discarding the datagram can be - reported. Following the id should be the original (4-octets) - destination address, and the (1-octet) reason. - - Reason Description - ------ ----------- - 0 No Reason - 1 No One Wants It - No higher level protocol or - application program at destination wants this - datagram. - 2 Fragmentation Needed & DF - Cannot deliver with out - fragmenting and has don't fragment bit set. - 3 Reassembly Problem - Destination could not - reassemble due to missing fragments when time to - live expired. - 4 Gateway Congestion - Gateway discarded datagram due - to congestion. - - The error report is placed in a datagram with the following - values in the internet header fields: - - - -[Page 20] - - -December 1979 - Internet Protocol - Specification - - - - Version: Same as the datagram in error. - IHL: As computed. - Type of Service: Zero. - Total Length: As computed. - Identification: A new identification is selected. - Flags: Zero. - Fragment Offset: Zero. - Time to Live: Sixty. - Protocol: Same as the datagram in error. - Header Checksum: As computed. - Source Address: Address of the error reporting module. - Destination Address: Source address of the datagram in error. - Options: The General Error Report Option. - Padding: As needed. - - Not copied on fragmentation, goes with first fragment. - - Internet Timestamp - - +--------+--------+--------+--------+--------+--------+ - |01000100|00000100| time in milliseconds | - +--------+--------+--------+--------+--------+--------+ - Type=68 Length=6 - - The data of the timestamp is a 32 bit time measured in - milliseconds. - - Not copied on fragmentation, goes with first fragment - - Satellite Timestamp - - +--------+--------+--------+--------+--------+--------+ - |01000101|00000100| time in milliseconds | - +--------+--------+--------+--------+--------+--------+ - Type=69 Length=6 - - The data of the timestamp is a 32 bit time measured in - milliseconds. - - Not copied on fragmentation, goes with first fragment - - Padding: variable - - The internet header padding is used to ensure that the internet - header ends on a 32 bit boundary. The padding is zero. - - - - - - [Page 21] - - - December 1979 -Internet Protocol -Specification - - - -3.2. Discussion - - The implementation of a protocol must be robust. Each implementation - must expect to interoperate with others created by different - individuals. While the goal of this specification is to be explicit - about the protocol there is the possibility of differing - interpretations. In general, an implementation should be conservative - in its sending behavior, and liberal in its receiving behavior. That - is, it should be careful to send well-formed datagrams, but should - accept any datagram that it can interpret (e.g., not object to - technical errors where the meaning is still clear). - - The basic internet service is datagram oriented and provides for the - fragmentation of datagrams at gateways, with reassembly taking place - at the destination internet protocol module in the destination host. - Of course, fragmentation and reassembly of datagrams within a network - or by private agreement between the gateways of a network is also - allowed since this is transparent to the internet protocols and the - higher-level protocols. This transparent type of fragmentation and - reassembly is termed "network-dependent" (or intranet) fragmentation - and is not discussed further here. - - Internet addresses distinguish sources and destinations to the host - level and provide a protocol field as well. It is assumed that each - protocol will provide for whatever multiplexing is necessary within a - host. - - Addressing - - The 8 bit network number, which is the first octet of the address, - has a value as specified in reference [6]. - - The 24 bit local address, assigned by the local network, should - allow for a single physical host to act as several distinct internet - hosts. That is, there should be mapping between internet host - addresses and network/host interfaces that allows several internet - addresses to correspond to one interface. It should also be allowed - for a host to have several physical interfaces and to treat the - datagrams from several of them as if they were all addressed to a - single host. Address mappings between internet addresses and - addresses for ARPANET, SATNET, PRNET, and other networks are - described in reference [4]. - - Fragmentation and Reassembly. - - The internet identification field (ID) is used together with the - source and destination address, and the protocol fields, to identify - datagram fragments for reassembly. - - -[Page 22] - - -December 1979 - Internet Protocol - Specification - - - - The More Fragments flag bit (MF) is set if the datagram is not the - last fragment. The Fragment Offset field identifies the fragment - location, relative to the beginning of the original unfragmented - datagram. Fragments are counted in units of 8 octets. The - fragmentation strategy is designed so than an unfragmented datagram - has all zero fragmentation information (MF = 0, fragment offset = - 0). If an internet datagram is fragmented, its data portion must be - broken on 8 octet boundaries. - - This format allows 2**13 = 8192 fragments of 8 octets each for a - total of 65,536 octets. Note that this is consistent with the the - datagram total length field. - - When fragmentation occurs, options some are not copied, but others - remain with the first fragment only. - - Every internet module must be able to forward a datagram of 68 - octets without further fragmentation. This is because an internet - header may be up to 60 octets, and the minimum fragment is 8 octets. - - Every internet destination must be able to receive a datagram of 576 - octets either in one piece or in fragments to be reassembled. - - The fields which may be affected by fragmentation include: - - (1) options field - (2) more fragments flag - (3) fragment offset - (4) internet header length field - (5) total length field - (6) header checksum - - If the Don't Fragment flag (DF) bit is set, then internet - fragmentation of this datagram is NOT permitted, although it may be - discarded. This can be used to prohibit fragmentation in cases - where the receiving host does not have sufficient resources to - reassemble internet fragments. - - General notation in the following pseudo programs: "=<" means "less - than or equal", "#" means "not equal", "=" means "equal", "<-" means - "is set to". Also, "x to y" includes x and excludes y; for example, - "4 to 7" would include 4, 5, and 6 (but not 7). - - Fragmentation Procedure - - The maximum sized message that can be transmitted through the next - network is called the maximum transmission unit (MTU). - - - - [Page 23] - - - December 1979 -Internet Protocol -Specification - - - - If the total length is less than or equal the maximum transmission - unit then submit this datagram to the next step in datagram - processing; otherwise cut the datagram into two fragments, the - first fragment being the maximum size (modulo the fragment block - size), and the second fragment being the rest of the datagram. - The first fragment is submitted to the next step in datagram - processing, while the second fragment is submitted to this - procedure in case it still too large. - - Notation: - - FO - Fragment Offset - IHL - Internet Header Length - MF - More Fragments flag - TL - Total Length - OFO - Old Fragment Offset - OIHL - Old Internet Header Length - OMF - Old More Fragments flag - OTL - Old Total Length - NFB - Number of Fragment Blocks - MTU - Maximum Transmission Unit - - Procedure: - - IF TL =< MTU THEN Submit this datagram to the next step - in datagram processing ELSE - To produce the first fragment: - (1) Copy the original internet header; - (2) OIHL <- IHL; OTL <- TL; OFO <- FO; OMF <- MF; - (3) NFB <- (MTU-IHL*4)/8; - (4) Attach the first NFB*8 data octets; - (5) Correct the header: - MF <- 1; TL <- (IHL*4)+(NFB*8); - Recompute Checksum; - (6) Submit this fragment to the next step in - datagram processing; - To produce the second fragment: - (7) Selectively copy the internet header (some options - are not copied, see option definitions); - (8) Append the remaining data; - (9) Correct the header: - IHL <- OIHL - ((length of options not copied)+3)/4; - TL <- OTL - NFB*8 - (OIHL-IHL)*4); - FO <- OFO + NFB; MF <- OMF; Recompute Checksum; - (10) Submit this fragment to the fragmentation test; DONE. - - - - - -[Page 24] - - -December 1979 - Internet Protocol - Specification - - - - Reassembly Procedure - - For each datagram the buffer identifier is computed as the - concatenation of the source, destination, protocol, and - identification fields. If this is a whole datagram (that is both - the fragment offset and the more fragments fields are zero), then - any reassembly resources associated with this buffer identifier - are released and the datagram is forwarded to the next step in - datagram processing. - - If no other fragment with this buffer identifier is on hand then - reassembly resources are allocated. The reassembly resources - consist of a data buffer, a header buffer, a fragment block bit - table, a total data length field, and a timer. The data from the - fragment is placed in the data buffer according to its fragment - offset and length, and bits are set in the fragment block bit - table corresponding to the fragment blocks received. - - If this is the first fragment (that is the fragment offset is - zero) this header is placed in the header buffer. If this is the - last fragment ( that is the more fragments field is zero) the - total data length is computed. If this fragment completes the - datagram (tested by checking the bits set in the fragment block - table), then the datagram is sent to the next step in datagram - processing; otherwise the timer is set to the maximum of the - current timer value and the value of the time to live field from - this fragment; and the reassembly routine gives up control. - - If the timer runs out, the all reassembly resources for this - buffer identifier are released. - - Notation: - - FO - Fragment Offset - IHL - Internet Header Length - MF - More Fragments flag - TTL - Time To Live - NFB - Number of Fragment Blocks - TL - Total Length - TDL - Total Data Length - BUFID - Buffer Identifier - RCVBT - Fragment Received Bit Table - - - - - - - - - [Page 25] - - - December 1979 -Internet Protocol -Specification - - - - Procedure: - - (1) BUFID <- source|destination|protocol|identification; - (2) IF FO = 0 AND MF = 0 - (3) THEN IF buffer with BUFID is allocated - (4) THEN flush all reassembly for this BUFID; - (5) Submit datagram to next step; DONE. - (6) ELSE IF no buffer with BUFID is allocated - (7) THEN allocate reassembly resources - with BUFID; - TIMER <- 2 minutes; TDL <- 0; - (8) put data from fragment into data buffer with - BUFID from octet FO*8 to - octet (TL-(IHL*4))+FO*8; - (9) set RCVBT bits from FO - to FO+((TL-(IHL*4)+7)/8); - (10) IF MF = 0 THEN TDL <- TL-(IHL*4)+(FO*8) - (11) IF FO = 0 THEN put header in header buffer - (12) IF TDL # 0 - (13) AND all RCVBT bits from 0 - to (TDL+7)/8 are set - (14) THEN TL <- TDL+(IHL*4) - (15) Submit datagram to next step; - (16) free all reassembly resources - for this BUFID; DONE. - (17) TIMER <- MAX(TIMER,TTL); - (18) give up until next fragment or timer expires; - (19) timer expires: flush all reassembly with this BUFID; DONE. - - In the case that two or more fragments contain the same data - either identically or through a partial overlap, this procedure - will use the more recently arrived copy in the data buffer and - datagram delivered. - - Identification - - The choice of the Identifier for a datagram is based on the need to - provide a way to uniquely identify the fragments of a particular - datagram. The protocol module assembling fragments judges fragments - to belong to the same datagram if they have the same source, - destination, protocol, and Identifier. Thus, the sender must choose - the Identifier to be unique for this source, destination pair and - protocol for the time the datagram (or any fragment of it) could be - alive in the internet. - - It seems then that a sending protocol module needs to keep a table - of Identifiers, one entry for each destination it has communicated - with in the last maximum packet lifetime for the internet. - - -[Page 26] - - -December 1979 - Internet Protocol - Specification - - - - However, since the Identifier field allows 65,536 different values, - some host may be able to simply use unique identifiers independent - of destination. - - It is appropriate for some higher level protocols to choose the - identifier. For example, TCP protocol modules may retransmit an - identical TCP segment, and the probability for correct reception - would be enhanced if the retransmission carried the same identifier - as the original transmission since fragments of either datagram - could be used to construct a correct TCP segment. - - Type of Service - - The type of service (TOS) is for internet service quality selection. - The type of service is specified along the abstract parameters - precedence, reliability, and speed. A further concern is the - possibility of efficient handling of streams of datagrams. These - abstract parameters are to be mapped into the actual service - parameters of the particular networks the datagram traverses. - - Precedence. An independent measure of the importance of this - datagram. - - Stream or Datagram. Indicates if there will be other datagrams from - this source to this destination at regular frequent intervals - justifying the maintenance of stream processing information. - - Reliability. A measure of the level of effort desired to ensure - delivery of this datagram. - - Speed over Reliability. Indicates the relative importance of speed - and reliability when a conflict arises in meeting the pair of - requests. - - Speed. A measure of the importance of prompt delivery of this - datagram. - - For example, the ARPANET has a priority bit, and a choice between - "standard" messages (type 0) and "uncontrolled" messages (type 3), - (the choice between single packet and multipacket messages can also - be considered a service parameter). The uncontrolled messages tend - to be less reliably delivered and suffer less delay. Suppose an - internet datagram is to be sent through the ARPANET. Let the - internet type of service be given as: - - - - - - - [Page 27] - - - December 1979 -Internet Protocol -Specification - - - - Precedence: 5 - Stream: 0 - Reliability: 1 - S/R: 1 - Speed: 1 - - The mapping of these parameters to those available for the ARPANET - would be to set the ARPANET priority bit on since the Internet - priority is in the upper have of its range, to select uncontrolled - messages since the speed and reliability requirements are equal and - speed is preferred. - - The following chart presents the recommended mappings from the - internet protocol type of service into the service parameters - actually available on the ARPANET, the PRNET, and the SATNET: - - +------------+----------+----------+----------+----------+ - |Application | INTERNET | ARPANET | PRNET | SATNET | - +------------+----------+----------+----------+----------+ - |TELNET |S/D:stream| T: 3 | R: ptp | T: block | - | on | R:normal| S: S | A: no | D: min | - | TCP |S/R:speed | | | H: inf | - | | S:fast | | | R: no | - +------------+----------+----------+----------+----------+ - |FTP |S/D:stream| T: 0 | R: ptp | T: block | - | on | R:normal| S: M | A: no | D: normal| - | TCP |S/R:rlblt | | | H: inf | - | | S:normal| | | R: no | - +------------+----------+----------+----------+----------+ - |interactive |S/D:strm* | T: 3 | R: ptp | T: stream| - |narrow band | R:least | S: S | A: no | D: min | - | speech | P:speed | | | H: short | - | | S:asap | | | R: no | - +------------+----------+----------+----------+----------+ - |datagram |S/D:dtgrm | T: 3 or 0| R:station| T: block | - | | R:normal| S: S or M| A: no | D: min | - | |S/R:speed | | | H: short | - | | S:fast | | | R: no | - +------------+----------+----------+----------+----------+ - key: S/D=strm/dtgrm T=type R=route T=type - R=reliability S=size A=ack D=delay - S/R=speed/rlblt H=holding time - S=speed R=reliability - *=requires stream set up - - - - - - -[Page 28] - - -December 1979 - Internet Protocol - Specification - - - - Time to Live - - The time to live is set by the sender to the maximum time the - datagram is allowed to be in the internet system. If the datagram - is in the internet system longer than the time to live, then the - datagram should be destroyed. This field should be decreased at - each point that the internet header is processed to reflect the time - spent processing the datagram. Even if no local information is - available on the time actually spent, the field should be - decremented by 1. The time is measured in units of seconds (i.e. - the value 1 means one second). Thus, the maximum time to live is - 255 seconds or 4.25 minutes. - - Options - - The options are just that, optional. That is, the presence or - absence of an option is the choice of the sender, but each internet - module must implement every option. - - There can be several options present in the option field. Every - internet module must be able to parse and act on every option. - - The options might not end on a 32-bit boundary. The internet header - should be filled out with octets of zeros. The first of these would - be interpreted as the end-of-options option, and the remainder as - internet header padding. - - Checksum - - The internet header checksum is recomputed if the internet header is - changed. For example, a reduction of the time to live, additions or - changes to internet options, or due to fragmentation. This checksum - at the internet level is intended to protect the internet header - fields from transmission errors. - - - - - - - - - - - - - - - - - [Page 29] - - - December 1979 -Internet Protocol -Specification - - - -3.3. Examples & Scenarios - - Example 1: - - This is an example of the minimal data carrying internet datagram: - - - 0 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - |Ver= 4 |IHL= 5 |Type of Service| Total Length = 21 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Identification = 111 |Flg=0| Fragment Offset = 0 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Time = 123 | Protocol = 1 | header checksum | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | source address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | destination address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - +-+-+-+-+-+-+-+-+ - - Example Internet Datagram - - Figure 4. - - Note that each tick mark represents one bit position. - - This is a internet datagram in version 4 of internet protocol; the - internet header consists of five 32 bit words, and the total length - of the datagram is 21 octets. This datagram is a complete datagram - (not a fragment). - - - - - - - - - - - - - - - - - -[Page 30] - - -December 1979 - Internet Protocol - Specification - - - - Example 2: - - In this example, we show first a moderate size internet datagram - (552 data octets), then two internet fragments that might result - from the fragmentation of this datagram if the maximum sized - transmission allowed were 280 octets. - - - 0 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - |Ver= 4 |IHL= 5 |Type of Service| Total Length = 472 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Identification = 111 |Flg=0| Fragment Offset = 0 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Time = 123 | Protocol = 6 | header checksum | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | source address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | destination address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - \ \ - \ \ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - - Example Internet Datagram - - Figure 5. - - - - - - - - - - - - - - - - - [Page 31] - - - December 1979 -Internet Protocol -Specification - - - - Now the first fragment that results from splitting the datagram - after 256 data octets. - - - 0 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - |Ver= 4 |IHL= 5 |Type of Service| Total Length = 276 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Identification = 111 |Flg=1| Fragment Offset = 0 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Time = 119 | Protocol = 6 | Header Checksum | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | source address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | destination address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - \ \ - \ \ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - - Example Internet Fragment - - Figure 6. - - - - - - - - - - - - - - - - - - - - -[Page 32] - - -December 1979 - Internet Protocol - Specification - - - - And the second fragment. - - - 0 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - |Ver= 4 |IHL= 5 |Type of Service| Total Length = 216 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Identification = 111 |Flg=0| Fragment Offset = 32 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Time = 119 | Protocol = 6 | Header Checksum | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | source address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | destination address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - \ \ - \ \ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - - Example Internet Fragment - - Figure 7. - - - - - - - - - - - - - - - - - - - - - - [Page 33] - - - December 1979 -Internet Protocol -Specification - - - - Example 3: - - Here, we show an example of a datagram containing options: - - - 0 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - |Ver= 4 |IHL= 8 |Type of Service| Total Length = 576 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Identification = 111 |Flg=0| Fragment Offset = 0 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Time = 123 | Protocol = 6 | Header Checksum | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | source address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | destination address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Opt. Code = x | Opt. Len.= 3 | option value | Opt. Code = x | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Opt. Len. = 4 | option value | Opt. Code = 1 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Opt. Code = y | Opt. Len. = 3 | option value | Opt. Code = 0 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - \ \ - \ \ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - - Example Internet Datagram - - Figure 8. - -3.4. Interfaces - - Internet protocol interfaces on one side to the local network and on - the other side to either a higher level protocol or an application - program. In the following, the higher level protocol or application - program (or even a gateway program) will be called the "user" since it - is using the internet module. Since internet protocol is a datagram - protocol, there is minimal memory or state maintained between datagram - transmissions, and each call on the internet protocol module by the - user supplies all the necessary information. - - - - -[Page 34] - - -December 1979 - Internet Protocol - Specification - - - - For example, the following two calls satisfy the requirements for the - user to internet protocol module communication ("=>" means returns): - - SEND (dest, TOS, TTL, BufPTR, len, Id, DF, options => result) - - where: - - dest = destination address - TOS = type of service - TTL = time to live - BufPTR = buffer pointer - len = length of buffer - Id = Identifier - DF = Don't Fragment - options = option data - result = response - OK = datagram sent ok - Error = error in arguments or local network error - - RECV (BufPTR => result, source, dest, prot, TOS, len) - - where: - - BufPTR = buffer pointer - result = response - OK = datagram received ok - Error = error in arguments - source = source address - dest = destination address - prot = protocol - TOS = type of service - len = length of buffer - - When the user sends a datagram, it executes the SEND call supplying - all the arguments. The internet protocol module, on receiving this - call, checks the arguments and prepares and sends the message. If the - arguments are good and the datagram is accepted by the local network, - the call returns successfully. If either the arguments are bad, or - the datagram is not accepted by the local network, the call returns - unsuccessfully. On unsuccessful returns, a reasonable report should - be made as to the cause of the problem, but the details of such - reports are up to individual implementations. - - When a datagram arrives at the internet protocol module from the local - network, either there is a pending RECV call from the user addressed - or there is not. In the first case, the pending call is satisfied by - passing the information from the datagram to the user. In the second - case, the user addressed is notified of a pending datagram. If the - - - [Page 35] - - - December 1979 -Internet Protocol -Specification - - - - user addressed does not exist, an error datagram is returned to the - sender, and the data is discarded. - - The notification of a user may be via a pseudo interrupt or similar - mechanism, as appropriate in the particular operating system - environment of the implementation. - - A user's RECV call may then either be immediately satisfied by a - pending datagram, or the call may be pending until a datagram arrives. - - An implementation may also allow or require a call to the internet - module to indicate interest in or reserve exclusive use of a class of - datagrams (e.g., all those with a certain value in the protocol - field). - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 36] - - -December 1979 - Internet Protocol - - - - GLOSSARY - - - -1822 - BBN Report 1822, "The Specification of the Interconnection of - a Host and an IMP". The specification of interface between a - host and the ARPANET. - -ARPANET message - The unit of transmission between a host and an IMP in the - ARPANET. The maximum size is about 1012 octets (8096 bits). - -ARPANET packet - A unit of transmission used internally in the ARPANET between - IMPs. The maximum size is about 126 octets (1008 bits). - -Destination - The destination address, an internet header field. - -DF - The Don't Fragment bit carried in the flags field. - -Flags - An internet header field carrying various control flags. - -Fragment Offset - This internet header field indicates where in the internet - datagram a fragment belongs. - -header - Control information at the beginning of a message, segment, - datagram, packet or block of data. - -Identification - An internet header field carrying the identifying value - assigned by the sender to aid in assembling the fragments of a - datagram. - -IHL - The internet header field Internet Header Length is the length - of the internet header measured in 32 bit words. - -IMP - The Interface Message Processor, the packet switch of the - ARPANET. - - - - - - [Page 37] - - - December 1979 -Internet Protocol -Glossary - - - -Internet Address - A four octet (32 bit) source or destination address consisting - of a Network field and a Local Address field. - -internet fragment - A portion of the data of an internet datagram with an internet - header. - -internet datagram - The unit of data exchanged between a pair of internet modules - (includes the internet header). - -ARPANET leader - The control information on an ARPANET message at the host-IMP - interface. - -Local Address - The address of a host within a network. The actual mapping of - an internet local address on to the host addresses in a - network is quite general, allowing for many to one mappings. - -MF - The More-Fragments Flag carried in the internet header flags - field. - -module - An implementation, usually in software, of a protocol or other - procedure. - -more-fragments flag - A flag indicating whether or not this internet datagram - contains the end of an internet datagram, carried in the - internet header Flags field. - -NFB - The Number of Fragment Blocks in a the data portion of an - internet fragment. That is, the length of a portion of data - measured in 8 octet units. - -octet - An eight bit byte. - -Options - The internet header Options field may contain several options, - and each option may be several octets in length. The options - are used primarily in testing situations, for example to carry - timestamps. - - - -[Page 38] - - -December 1979 - Internet Protocol - Glossary - - - -Padding - The internet header Padding field is used to ensure that the - data begins on 32 bit word boundary. The padding is zero. - -Protocol - In this document, the next higher level protocol identifier, - an internet header field. - -Rest - The 3 octet (24 bit) local address portion of an Internet - Address. - -RTP - Real Time Protocol: A host-to-host protocol for communication - of time critical information. - -Source - The source address, an internet header field. - -TCP - Transmission Control Protocol: A host-to-host protocol for - reliable communication in internet environments. - -TCP Segment - The unit of data exchanged between TCP modules (including the - TCP header). - -Total Length - The internet header field Total Length is the length of the - datagram in octets including internet header and data. - -Type of Service - An internet header field which indicates the type (or quality) - of service for this internet datagram. - -User - The user of the internet protocol. This may be a higher level - protocol module, an application program, or a gateway program. - -Version - The Version field indicates the format of the internet header. - - - - - - - - - - [Page 39] - - - December 1979 -Internet Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 40] - - -December 1979 - Internet Protocol - - - - REFERENCES - - - -[1] Cerf, V., "The Catenet Model for Internetworking," Information - Processing Techniques Office, Defense Advanced Research Projects - Agency, IEN 48, July 1978. - -[2] Bolt Beranek and Newman, "Specification for the Interconnection of - a Host and an IMP," BBN Technical Report 1822, May 1978 (Revised). - -[3] Shoch, J., "Inter-Network Naming, Addressing, and Routing," - COMPCON, IEEE Computer Society, Fall 1978. - -[4] Postel, J., "Address Mappings," IEN 115, USC/Information Sciences - Institute, August 1979. - -[5] Shoch, J., "Packet Fragmentation in Inter-Network Protocols," - Computer Networks, v. 3, n. 1, February 1979. - -[6] Postel, J., "Assigned Numbers," RFC 758, IEN 117, USC/Information - Sciences Institute, August 1979. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Page 41] - - - December 1979 -Internet Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 42] - diff --git a/text/ien/ien124.txt b/text/ien/ien124.txt deleted file mode 100644 index f3fe7a26..00000000 --- a/text/ien/ien124.txt +++ /dev/null @@ -1,5185 +0,0 @@ - - -IEN: 124 - - - - - - - - DOD STANDARD - - TRANSMISSION CONTROL PROTOCOL - - - - December 1979 - - - - - - - - - - - - - - - - - prepared for - - Defense Advanced Research Projects Agency - Information Processing Techniques Office - 1400 Wilson Boulevard - Arlington, Virginia 22209 - - - - - - - - by - - Information Sciences Institute - University of Southern California - 4676 Admiralty Way - Marina del Rey, California 90291 - -December 1979 - Transmission Control Protocol - - - - TABLE OF CONTENTS - - PREFACE ........................................................ iii - -1. INTRODUCTION ..................................................... 1 - - 1.1 Motivation .................................................... 1 - 1.2 Scope ......................................................... 2 - 1.3 About This Document ........................................... 2 - 1.4 Interfaces .................................................... 3 - 1.5 Operation ..................................................... 3 - -2. PHILOSOPHY ....................................................... 7 - - 2.1 Elements of the Internetwork System ........................... 7 - 2.2 Model of Operation ............................................ 7 - 2.3 The Host Environment .......................................... 8 - 2.4 Interfaces .................................................... 9 - 2.5 Relation to Other Protocols ................................... 9 - 2.6 Reliable Communication ....................................... 10 - 2.7 Connection Establishment and Clearing ........................ 10 - 2.8 Data Communication ........................................... 12 - 2.9 Precedence and Security ...................................... 13 - 2.10 Robustness Principle ......................................... 13 - -3. FUNCTIONAL SPECIFICATION ........................................ 15 - - 3.1 Header Format ................................................ 15 - 3.2 Terminology .................................................. 19 - 3.3 Sequence Numbers ............................................. 24 - 3.4 Establishing a connection .................................... 29 - 3.5 Closing a Connection ......................................... 35 - 3.6 Precedence and Security ...................................... 38 - 3.7 Data Communication ........................................... 38 - 3.8 Interfaces ................................................... 42 - 3.9 Event Processing ............................................. 52 - -GLOSSARY ............................................................ 75 - -REFERENCES .......................................................... 83 - - - - - - - - - - - - [Page i] - - - December 1979 -Transmission Control Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page ii] - - -December 1979 - Transmission Control Protocol - - - - PREFACE - - - -This document describes the DoD Standard Transmission Control Protocol -(TCP). There have been seven earlier editions of the ARPA TCP -specification on which this standard is based, and the present text -draws heavily from them. There have been many contributors to this work -both in terms of concepts and in terms of text. This edition -incorporates the addition of security, compartmentation, and precedence -concepts into the TCP specification. - - Jon Postel - - Editor - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Page iii] - - -December 1979 -IEN:124 -Replaces: IENs 112, -81, 55, 44, 40, 27, 21, 5 - - DOD STANDARD - - TRANSMISSION CONTROL PROTOCOL - - - - 1. INTRODUCTION - -The Transmission Control Protocol (TCP) is intended for use as a highly -reliable host-to-host protocol between hosts in packet-switched computer -communication networks, and especially in interconnected systems of such -networks. - -This document describes the functions to be performed by the -Transmission Control Protocol, the program that implements it, and its -interface to programs or users that require its services. - -1.1. Motivation - - Computer communication systems are playing an increasingly important - role in military, government, and civilian environments. This - document primarily focuses its attention on military computer - communication requirements, especially robustness in the presence of - communication unreliability and availability in the presence of - congestion, but many of these problems are found in the civilian and - government sector as well. - - As strategic and tactical computer communication networks are - developed and deployed, it is essential to provide means of - interconnecting them and to provide standard interprocess - communication protocols which can support a broad range of - applications. In anticipation of the need for such standards, the - Deputy Undersecretary of Defense for Research and Engineering has - declared the Transmission Control Protocol (TCP) described herein to - be a basis for DoD-wide inter-process communication protocol - standardization. - - TCP is a connection-oriented, end-to-end reliable protocol designed to - fit into a layered hierarchy of protocols which support multi-network - applications. The TCP provides for reliable inter-process - communication between pairs of processes in host computers attached to - distinct but interconnected computer communication networks. Very few - assumptions are made as to the reliability of the communication - protocols below the TCP layer. At most, the TCP assumes it can obtain - a simple, potentially unreliable datagram service from the lower level - protocols. In principle, the TCP should be able to operate above a - wide spectrum of communication systems ranging from hard-wired - connections to packet-switched or circuit-switched networks. - - - - [Page 1] - - - December 1979 -Transmission Control Protocol -Introduction - - - - The TCP fits into a layered protocol architecture just above a basic - Internet Protocol [1] which provides a way for the TCP to send and - receive variable-length segments of information enclosed in internet - datagram "envelopes". The internet datagram provides a means for - addressing source and destination TCPs in different networks, and the - internet protocol also deals with any fragmentation or reassembly of - the TCP segments which might be required to achieve transport and - delivery through multiple networks and interconnecting gateways. The - internet protocol also carries information on the precedence, security - classification and compartmentation of the TCP segments, so this - information can be communicated end-to-end across multiple networks. - - Protocol Layering - - +---------------------+ - | higher-level | - +---------------------+ - | TCP | - +---------------------+ - | internet protocol | - +---------------------+ - |communication network| - +---------------------+ - - Figure 1 - - Much of this document is written in the context of TCP implementations - which are co-resident with higher level protocols in the host - computer. As a practical matter, many computer systems will be - connected to networks via front-end computers which house the TCP and - internet protocol layers, as well as network specific software. The - TCP specification describes an interface to the higher level protocols - which appears to be implementable even for the front-end case, as long - as a suitable host-to-front end protocol is implemented. - -1.2. Scope - - The TCP is intended to provide a reliable process-to-process - communication service in a multinetwork environment. The TCP is - intended to be a host-to-host protocol in common use in multiple - networks. - -1.3. About this Document - - This document represents a specification of the behavior required of - any TCP implementation, both in its interactions with higher level - protocols and in its interactions with other TCPs. The rest of this - section offers a very brief view of the protocol interfaces and - - -[Page 2] - - -December 1979 - Transmission Control Protocol - Introduction - - - - operation. Section 2 summarizes the philosophical basis for the TCP - design. Section 3 offers both a detailed description of the actions - required of TCP when various events occur (arrival of new segments, - user calls, errors, etc.) and the details of the formats of TCP - segments. - -1.4. Interfaces - - The TCP interfaces on one side to user or application processes and on - the other side to a lower level protocol such as Internet Protocol. - - The interface between an application process and the TCP is - illustrated in reasonable detail. This interface consists of a set of - calls much like the calls an operating system provides to an - application process for manipulating files. For example, there are - calls to open and close connections and to send and receive letters on - established connections. It is also expected that the TCP can - asynchronously communicate with application programs. Although - considerable freedom is permitted to TCP implementors to design - interfaces which are appropriate to a particular operating system - environment, this TCP specification requires a certain minimum - functionality to be achieved at the TCP/user interface for any valid - implementation. - - The interface between TCP and lower level protocol is essentially - unspecified except that it is assume there is a mechanism whereby the - two can asynchronously pass information to each other. Typically, one - expects the lower level protocol to specify this interface. TCP is - designed to work in a very general environment of interconnected - networks. Therefore, the lower level protocol which is assumed - throughout this document is the Internet Protocol. - -1.5. Operation - - As noted above, the primary purpose of the TCP is to provide reliable, - securable logical circuit or connection service between pairs of - processes. To provide this service on top of a less reliable internet - communication system requires facilities in the following areas: - - Basic Data Transfer - Reliability - Flow Control - Multiplexing - Connections - Precedence and Security - - The basic operation of the TCP in each of these areas is described in - the following paragraphs. - - - [Page 3] - - - December 1979 -Transmission Control Protocol -Introduction - - - - Basic Data Transfer: - - The TCP is able to transfer a continuous stream of octets in each - direction between its users by packaging some number of octets into - segments for transmission through the internet system. In this - stream mode, the TCPs decide when to block and forward data at their - own convenience. - - For users who desire a record-oriented service, the TCP also permits - the user to submit records, called letters, for transmission. When - the sending user indicates a record boundary (end-of-letter), this - causes the TCPs to promptly forward and deliver data up to that - point to the receiver. - - Reliability: - - The TCP must recover from data that is damaged, lost, duplicated, or - delivered out of order by the internet communication system. This - is achieved by assigning a sequence number to each octet - transmitted, and requiring a positive acknowledgment (ACK) from the - receiving TCP. If the ACK is not received within a timeout - interval, the data is retransmitted. At the receiver, the sequence - numbers are used to correctly order segments that may be received - out of order and to eliminate duplicates. Damage is handled by - adding a checksum to each segment transmitted, checking it at the - receiver, and discarding damaged segments. - - As long as the TCPs continue to function properly and the internet - system does not become completely partitioned, no transmission - errors will affect the users. All errors in the internet - communication system are recovered by the TCP. - - Flow Control: - - TCP provides a means for the receiver to govern the amount of data - sent by the sender. This is achieved by returning a "window" with - every ACK indicating a range of acceptable sequence numbers beyond - the last segment successfully received. For stream mode, the window - indicates an allowed number of octets that the sender may transmit - before receiving further permission. It is also possible for the - TCP to operate in a mode where buffer sizes and letter boundaries - are incorporated in flow control. - - Multiplexing: - - To allow for many processes within a single Host to use TCP - communication facilities simultaneously, the TCP provides a set of - addresses or ports within each host. Concatenated with the network - - -[Page 4] - - -December 1979 - Transmission Control Protocol - Introduction - - - - and host addresses from the internet communication layer, this forms - a socket. A pair of sockets uniquely identifies each connection. - That is, different connections may have a common socket on one side, - but the sockets on the other sides must be different. - - The binding of ports to processes is handled independently by each - Host. However, it proves useful to attach frequently used processes - (e.g., a "logger" or timesharing service) to fixed sockets which are - made known to the public. These services can then be accessed - through the known addresses. Establishing and learning the port - addresses of other processes may involve more dynamic mechanisms. - - Connections: - - The reliability and flow control mechanisms described above require - that TCPs initialize and maintain certain status information for - each data stream. The combination of this information, including - sockets, sequence numbers, and window sizes, is called a connection. - Each connection is uniquely specified by a pair of sockets - identifying its two sides. - - When two processes wish to communicate, their TCP's must first - establish a connection (initialize the status information on each - side). When their communication is complete, the connection is - terminated or closed to free the resources for other uses. - - Since connections must be established over the unreliable internet - communication system, a handshake mechanism with clock-based - sequence numbers is used to avoid erroneous initialization of - connections. - - Precedence and Security: - - The users of TCP may indicate the security and precedence of their - communication. Provision is made for default values to be used when - these features are not needed. - - - - - - - - - - - - - - - [Page 5] - - - December 1979 -Transmission Control Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 6] - - -December 1979 - Transmission Control Protocol - - - - 2. PHILOSOPHY - -2.1. Elements of the Internetwork System - - The internetwork environment consists of hosts connected to networks - which are in turn interconnected via gateways. It is assumed here - that the networks may be either local networks (e.g., the ETHERNET) or - large networks (e.g., the ARPANET), but in any case are based on - packet switching technology. The active agents that produce and - consume messages are processes. Various levels of protocols in the - networks, the gateways, and the hosts support an interprocess - communication system that provides two-way data flow on logical - connections between process ports. - - We specifically assume that data is transmitted from host to host - through means of a set of networks. When we say network, we have in - mind a packet switched network (PSN). This assumption is probably - unnecessary, since a circuit switched network or a hybrid combination - of the two could also be used; but for concreteness, we explicitly - assume that the hosts are connected to one or more packet switches of - a PSN. - - The term packet is used generically here to mean the data of one - transaction between a host and a packet switch. The format of data - blocks exchanged between the packet switches in a network will - generally not be of concern to us. - - Hosts are computers attached to a network, and from the communication - network's point of view, are the sources and destinations of packets. - Processes are viewed as the active elements in host computers (in - accordance with the fairly common definition of a process as a program - in execution). Even terminals and files or other I/O devices are - viewed as communicating with each other through the use of processes. - Thus, all communication is viewed as inter-process communication. - - Since a process may need to distinguish among several communication - streams between itself and another process (or processes), we imagine - that each process may have a number of ports through which it - communicates with the ports of other processes. - -2.2. Model of Operation - - Processes transmit data by calling on the TCP and passing buffers of - data as arguments. The TCP packages the data from these buffers into - segments and calls on the internet module to transmit each segment to - the destination TCP. The receiving TCP places the data from a segment - into the receiving users buffer and notifies the receiving user. The - TCPs include control information in the segments which they use to - ensure reliable ordered data transmission. - - - [Page 7] - - - December 1979 -Transmission Control Protocol -Philosophy - - - - The model of internet communication is that there is a basic gateway - (or internet protocol module) associated with each TCP which provides - an interface to the local network. This basic gateway packages TCP - segments inside internet datagrams and routes these datagrams to a - destination or intermediate gateway. To transmit the datagram through - the local network, it is embedded in a local network packet. - - The packet switches may perform further packaging, fragmentation, or - other operations to achieve the delivery of the local packet to the - destination gateway. - - At a gateway between networks, the internet datagram is "unwrapped" - from its local packet and examined to determine through which network - the internet datagram should travel next. The internet datagram is - then "wrapped" in a local packet suitable to the next network and - routed to the next gateway. - - A gateway is permitted to break up an internet datagram into smaller - internet datagram fragments if this is necessary for transmission - through the next network. To do this, the gateway produces a set of - internet datagrams; each carrying a fragment. Fragments may be broken - into smaller ones at intermediate gateways. The internet datagram - fragment format is designed so that the destination gateway can - reassemble fragments into internet datagrams. - - A destination gateway unwraps the segment from the datagram (after - reassembling the datagram, if necessary) and passes it to the - destination TCP. - - This simple model of the operation glosses over many details. One - important feature is the type of service. This provides information - to the gateway to guide it in selecting the service parameters to be - used in traversing the next network. Included in the type of service - information is the precedence of the datagram. Datagrams may also - carry security information to permit host and gateways that operate in - multilevel secure environments to properly segregate datagrams for - security considerations. - -2.3. The Host Environment - - The TCP is assumed to be a module in a time sharing operating system. - The users access the TCP much like they would access the file system. - The TCP may call on other operating system functions, for example, to - manage data structures. The actual interface to the network is - assumed to be controlled by a device driver module. The TCP does not - call on the network device driver directly, but rather calls on the - internet datagram protocol module which may in turn call on the device - driver. - - -[Page 8] - - -December 1979 - Transmission Control Protocol - Philosophy - - - - Though it is assumed here that processes are supported by the host - operating system, the mechanisms of TCP do not preclude implementation - of the TCP in a front-end processor. However, in such an - implementation, a host-to-front-end protocol must provide the - functionality to support the type of TCP-user interface described - above. - -2.4. Interfaces - - The TCP/user interface provides for calls made by the user on the TCP - to OPEN or CLOSE a connection, to SEND or RECEIVE data, or to obtain - STATUS about a connection. These calls are like other calls from user - programs on the operating system, for example, the calls to open, read - from, and close a file. - - The TCP/internet interface provides calls to send and receive - datagrams addressed to TCP modules in hosts anywhere in the internet - system. These calls have parameters for passing the address type of - service, precedence, security, and other control information. - -2.5. Relation to Other Protocols - - The following diagram illustrates the place of the TCP in the protocol - hierarchy: - - - +------+ +-----+ +-----+ +-----+ - |Telnet| | FTP | |Voice| ... | | Application Level - +------+ +-----+ +-----+ +-----+ - | | | | - +-----+ +-----+ +-----+ - | TCP | | RTP | ... | | Host Level - +-----+ +-----+ +-----+ - | | | - +-------------------------------+ - | Internet Protocol | Gateway Level - +-------------------------------+ - | - +---------------------------+ - | Local Network Protocol | Network Level - +---------------------------+ - | - - - - Protocol Relationships - - Figure 2. - - - [Page 9] - - - December 1979 -Transmission Control Protocol -Philosophy - - - - It is expected that the TCP will be able to support higher level - protocols efficiently. It should be easy to interface higher level - protocols like the ARPANET Telnet or AUTODIN II THP to the TCP. - -2.6. Reliable Communication - - A stream of data sent on a TCP connection is delivered reliably and in - order at the destination. - - Transmission is made reliable via the use of sequence numbers and - acknowledgments. Conceptually, each octet of data is assigned a - sequence number. The sequence number of the first octet of data in a - segment is the sequence number transmitted with that segment and is - called the segment sequence number. Segments also carry an - acknowledgment number which is the sequence number of the next - expected data octet of transmissions in the reverse direction. When - the TCP transmits a segment, it puts a copy on a retransmission queue - and starts a timer; when the acknowledgment for that data is received, - the segment is deleted from the queue. If the acknowledgment is not - received before the timer runs out, the segment is retransmitted. - - An acknowledgment by TCP does not guarantee that the data has been - delivered to the end user, but only that the TCP has taken the - responsibility to do so. - - To govern the flow of data into a TCP, a flow control mechanism is - employed. The the data receiving TCP reports a window to the sending - TCP. This window is the number of octets starting with the - acknowledgment number that the data receiving TCP is currently - prepared to receive. - -2.7. Connection Establishment and Clearing - - To identify the separate data streams that a TCP may handle, the TCP - provides a port identifier. Since port identifiers are selected - independently by each operating system, TCP, or user, they might not - be unique. To provide for unique addresses at each TCP, we - concatenate an internet address identifying the TCP with a port - identifier to create a socket which will be unique throughout all - networks connected together. - - A connection is fully specified by the pair of sockets at the ends, - since the same local socket may participate in many connections to - different foreign sockets. A connection can be used to carry data in - both directions, that is, it is "full duplex". - - TCPs are free to associate ports with processes however they choose. - However, several basic concepts seem necessary in any implementation. - - -[Page 10] - - -December 1979 - Transmission Control Protocol - Philosophy - - - - There must be well-known sockets which the TCP associates only with - the "appropriate" processes by some means. We envision that processes - may "own" ports, and that processes can only initiate connections on - the ports they own. (Means for implementing ownership is a local - issue, but we envision a Request Port user command, or a method of - uniquely allocating a group of ports to a given process, e.g., by - associating the high order bits of a port name with a given process.) - - A connection is specified in the OPEN call by the local port and - foreign socket arguments. In return, the TCP supplies a (short) local - connection name by which the user refers to the connection in - subsequent calls. There are several things that must be remembered - about a connection. To store this information we imagine that there - is a data structure called a Transmission Control Block (TCB). One - implementation strategy would have the local connection name be a - pointer to the TCB for this connection. The OPEN call also specifies - whether the connection establishment is to be actively pursued, or to - be passively waited for. - - A foreign socket of all zeros is called unspecified. The purpose - behind unspecified sockets is to provide a sort of "general delivery" - facility (useful for processes offering services). This is allowed - only for passive OPENs. - - A service process that wished to provide services for unknown other - processes could issue a passive OPEN request with an unspecified - foreign socket. Then a connection could be made with any process that - requested a connection to this local socket. It would help if this - local socket were known to be associated with this service. - - Well-known sockets are a convenient mechanism for a priori associating - a socket address with a standard service. For instance, the - "Telnet-Server" process might be permanently assigned to a particular - socket, and other sockets might be reserved for File Transfer, Remote - Job Entry, Text Generator, Echoer, and Sink processes (the last three - being for test purposes). A socket address might be reserved for - access to a "Look-Up" service which would return the specific socket - at which a newly created service would be provided. The concept of a - well-known socket is part of the TCP specification, but the assignment - of sockets to services is outside this specification. - - Processes can issue passive OPENs and wait for matching calls from - other processes and be informed by the TCP when connections have been - established. Two processes which issue calls to each other at the - same time are correctly connected. This flexibility is critical for - the support of distributed computing in which components act - asynchronously with respect to each other. - - - - [Page 11] - - - December 1979 -Transmission Control Protocol -Philosophy - - - - There are two cases for matching the sockets in the local request and - an incoming segment. In the first case, the local request has fully - specified the foreign socket. In this case, the match must be exact. - In the second case, the local request has left the foreign socket - unspecified. In this case, any foreign socket is acceptable as long - as the local sockets match. - - If there are several pending passive OPENs (recorded in TCBs) with the - same local socket, an incoming segment should be matched to a request - with the specific foreign socket in the segment, if such a request - exists, before selecting a request with an unspecified foreign socket. - - The procedures to establish and clear connections utilize synchronize - (SYN) and finis (FIN) control flags and involve an exchange of three - messages. This exchange has been termed a three-way hand shake [3]. - - A connection is initiated by the rendezvous of an arriving segment - containing a SYN and a waiting TCB entry created by a user OPEN - command. The matching of local and foreign sockets determines when a - connection has been initiated. The connection becomes "established" - when sequence numbers have been synchronized in both directions. - - The clearing of a connection also involves the exchange of segments, - in this case carrying the FIN control flag. - -2.8. Data Communication - - The data that flows on a connection may be thought of as a stream of - octets, or as a sequence of records. In TCP the records are called - letters and are of variable length. The sending user indicates in - each SEND call whether the data in that call completes a letter by the - setting of the end-of-letter parameter. - - The length of a letter may be such that it must be broken into - segments before it can be transmitted to its destination. We assume - that the segments will normally be reassembled into a letter before - being passed to the receiving process. A segment may contain all or a - part of a letter, but a segment never contains parts of more than one - letter. The end of a letter is marked by the appearance of an EOL - control flag in a segment. A sending TCP is allowed to collect data - from the sending user and to send that data in segments at its own - convenience, until the end of letter is signaled then it must send all - unsent data. When a receiving TCP has a complete letter, it must not - wait for more data from the sending TCP before passing the letter to - the receiving process. - - There is a coupling between letters as sent and the use of buffers of - data that cross the TCP/user interface. Each time an end-of-letter - - -[Page 12] - - -December 1979 - Transmission Control Protocol - Philosophy - - - - (EOL) flag is associated with data placed into the receiving user's - buffer, the buffer is returned to the user for processing even if the - buffer is not filled. If a letter is longer than the user's buffer, - the letter is passed to the user in buffer size units, the last of - which may be only partly full. - - The TCP is responsible for regulating the flow of segments on the - connections, as a way of preventing itself from becoming saturated or - overloaded with traffic. This is done using a window flow control - mechanism. The data receiving TCP reports to the data sending TCP a - window which is the range of sequence numbers of data octets that data - receiving TCP is currently prepared to accept. - - TCP also provides a means to communicate to the receiver of data that - at some point further along in the data stream than the receiver is - currently reading there is urgent data. TCP does not attempt to - define what the user specifically does upon being notified of pending - urgent data, but the general notion is that the receiving process - should take action to read through the end urgent data quickly. - -2.9. Precedence and Security - - The TCP makes use of the internet protocol type of service field and - security option to provide precedence and security on a per connection - basis to TCP users. Not all TCP modules will necessarily function in - a multilevel secure environment, some may be limited to unclassified - use only, and others may operate at only one security level and - compartment. Consequently, some TCP implementations and services to - users may be limited to a subset of the multilevel secure case. - - TCP modules which operate in a multilevel secure environment should - properly mark outgoing segments with the security, compartment, and - precedence. Such TCP modules should also provide to their users or - higher level protocols such as Telnet or THP an interface to allow - them to specify the desired security level, compartment, and - precedence of connections. - -2.10. Robustness Principle - - TCP implementations should follow a general principle of robustness: - be conservative in what you do, be liberal in what you accept from - others. - - - - - - - - - [Page 13] - - - December 1979 -Transmission Control Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 14] - - -December 1979 - Transmission Control Protocol - - - - 3. FUNCTIONAL SPECIFICATION - -3.1. Header Format - - TCP segments are sent as internet datagrams. The Internet Protocol - header carries several information fields, including the source and - destination host addresses [1]. A TCP header follows the internet - header, supplying information specific to the TCP protocol. This - division allows for the existence of host level protocols other than - TCP. - - TCP Header Format - - - 0 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Source Port | Destination Port | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Sequence Number | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Acknowledgment Number | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Data | |U|A|E|R|S|F| | - | Offset| Reserved |R|C|O|S|Y|I| Window | - | | |G|K|L|T|N|N| | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Checksum | Urgent Pointer | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Options | Padding | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - - TCP Header Format - - Note that one tick mark represents one bit position. - - Figure 3. - - Source Port: 16 bits - - The source port number. - - Destination Port: 16 bits - - The destination port number. - - - - - [Page 15] - - - December 1979 -Transmission Control Protocol -Functional Specification - - - - Sequence Number: 32 bits - - The sequence number of the first data octet in this segment. - - Acknowledgment Number: 32 bits - - If the ACK control bit is set this field contains the value of the - next sequence number the sender of the segment is expecting to - receive. - - Data Offset: 4 bits - - The number of 32 bit words in the TCP Header. This indicates where - the data begins. The TCP header including options is an integral - number of 32 bits long. - - Reserved: 6 bits - - Reserved for future use. Must be zero. - - Control Bits: 8 bits (from left to right): - - URG: Urgent Pointer field significant - ACK: Acknowledgment field significant - EOL: End of Letter - RST: Reset the connection - SYN: Synchronize sequence numbers - FIN: No more data from sender - - Window: 16 bits - - The number of data octets beginning with the one indicated in the - acknowledgment field which the sender of this segment is willing to - accept. - - Checksum: 16 bits - - The checksum field is the 16 bit one's complement of the one's - complement sum of all 16 bit words in the header and text. If a - segment contains an odd number of header and text octets to be - checksummed, the last octet is padded on the right with zeros to - form a 16 bit word for checksum purposes. The pad is not - transmitted as part of the segment. While computing the checksum, - the checksum field itself is replaced with zeros. - - The checksum also covers a 96 bit pseudo header conceptually - prefixed to the TCP header. This pseudo header contains the Source - Address, the Destination Address, the Protocol, and TCP length. - - -[Page 16] - - -December 1979 - Transmission Control Protocol - Functional Specification - - - - This gives the TCP protection against misrouted segments. This - information is carried in the Internet Protocol and is transferred - across the TCP/Network interface in the arguments or results of - calls by the TCP on the IP. - - +--------------------------+ - | Source Address | - +--------------------------+ - | Destination Address | - +--------------------------+ - | zero | PTCL | TCP Length | - +--------------------------+ - - The TCP Length is the TCP header plus the data length in octets - (this is not a explicitly transmitted quantity, but is computed - from the total length, and the header length). - - Urgent Pointer: 16 bits - - This field communicates the current value of the urgent pointer as a - positive offset from the sequence number in this segment. The - urgent pointer points to the sequence number of the octet following - the urgent data. This field should only be interpreted in segments - with the URG control bit set. - - Options: variable - - Options may occupy space at the end of the TCP header and are a - multiple of 8 bits in length. All options are included in the - checksum. An option may begin on any octet boundary. There are two - cases for the format of an option: - - Case 1: A single octet of option-kind. - - Case 2: An octet of option-kind, an octet of option-length, and - the actual option-data octets. - - The option-length counts the two octets of option-kind and - option-length as well as the option-data octets. - - Note that the list of options may be shorter than the data offset - field might imply. The content of the header beyond the - End-of-Option option should be header padding (i.e., zero). - - A TCP must implement all options. - - - - - - [Page 17] - - - December 1979 -Transmission Control Protocol -Functional Specification - - - - Currently defined options include (kind indicated in octal): - - Kind Length Meaning - ---- ------ ------- - 0 - End of option list. - 1 - No-Operation. - 100 - Reserved. - 105 4 Buffer Size. - - - Specific Option Definitions - - End of Option List - - +--------+ - |00000000| - +--------+ - Kind=0 - - This option code indicates the end of the option list. This - might not coincide with the end of the TCP header according to - the Data Offset field. This is used at the end of all options, - not the end of each option, and need only be used if the end of - the options would not otherwise coincide with the end of the TCP - header. - - No-Operation - - +--------+ - |00000001| - +--------+ - Kind=1 - - This option code may be used between options, for example, to - align the beginning of a subsequent option on a word boundary. - There is no guarantee that senders will use this option, so - receivers must be prepared to process options even if they do - not begin on a word boundary. - - Buffer Size - - +--------+--------+---------+--------+ - |01000101|00000100| buffer size | - +--------+--------+---------+--------+ - Kind=105 Length=4 - - - - - -[Page 18] - - -December 1979 - Transmission Control Protocol - Functional Specification - - - - Buffer Size Option Data: 16 bits - - If this option is present, then it communicates the receive - buffer size at the TCP which sends this segment. This field - should only be sent in segments with the SYN control bit set. - If this option is not used, the default buffer size of one - octet is assumed. - - Padding: variable - - The TCP header padding is used to ensure that the TCP header ends - and data begins on a 32 bit boundary. The padding is composed of - zeros. - -3.2. Terminology - - Before we can discuss very much about the operation of the TCP we need - to introduce some detailed terminology. The maintenance of a TCP - connection requires the remembering of several variables. We conceive - of these variables being stored in a connection record called a - Transmission Control Block or TCB. Among the variables stored in the - TCB are the local and remote socket numbers, the security and - precedence of the connection, pointers to the user's send and receive - buffers, pointers to the retransmit queue and to the current segment. - In addition several variables relating to the send and receive - sequence numbers are stored in the TCB. - - Send Sequence Variables - - SND.UNA - send unacknowledged - SND.NXT - send sequence - SND.WND - send window - SND.BS - send buffer size - SND.UP - send urgent pointer - SND.WL - send sequence number used for last window update - SND.LBB - send last buffer beginning - ISS - initial send sequence number - - Receive Sequence Variables - - RCV.NXT - receive sequence - RCV.WND - receive window - RCV.BS - receive buffer size - RCV.UP - receive urgent pointer - RCV.LBB - receive last buffer beginning - IRS - initial receive sequence number - - - - - [Page 19] - - - December 1979 -Transmission Control Protocol -Functional Specification - - - - The following diagrams may help to relate some of these variables to - the sequence space. - - Send Sequence Space - - 1 2 3 4 - ----------|----------|----------|---------- - SND.UNA SND.NXT SND.UNA - +SND.WND - - 1 - old sequence numbers which have been acknowledged - 2 - sequence numbers of unacknowledged data - 3 - sequence numbers allowed for new data transmission - 4 - future sequence numbers which are not yet allowed - - Send Sequence Space - - Figure 4. - - - - Receive Sequence Space - - 1 2 3 - ----------|----------|---------- - RCV.NXT RCV.NXT - +RCV.WND - - 1 - old sequence numbers which have been acknowledged - 2 - sequence numbers allowed for new reception - 3 - future sequence numbers which are not yet allowed - - Receive Sequence Space - - Figure 5. - - - - There are also some variables used frequently in the discussion that - take their values from the fields of the current segment. - - - - - - - - - - -[Page 20] - - -December 1979 - Transmission Control Protocol - Functional Specification - - - - Current Segment Variables - - SEG.SEQ - segment sequence number - SEG.ACK - segment acknowledgment number - SEG.LEN - segment length - SEG.WND - segment window - SEG.UP - segment urgent pointer - SEG.PRC - segment precedence value - - A connection progresses through a series of states during its - lifetime. The states are: LISTEN, SYN-SENT, SYN-RECEIVED, - ESTABLISHED, FIN-WAIT-1, FIN-WAIT-2, TIME-WAIT, CLOSE-WAIT, CLOSING, - and the fictional state CLOSED. Closed is fictional because it - represents the state when there is no TCB, and therefore, no - connection. Briefly the meanings of the states are: - - LISTEN - represents waiting for a connection request from any remote - TCP and port. - - SYN-SENT - represents waiting for a matching connection request - after having sent a connection request. - - SYN-RECEIVED - represents waiting for a confirming connection - request acknowledgment after having both sent and received a - connection request. - - ESTABLISHED - represents an open connection, ready to transmit and - receive data segments. - - FIN-WAIT-1 - represents waiting for a connection termination request - from the remote TCP, or an acknowledgment of the connection - termination request previously sent. - - FIN-WAIT-2 - represents waiting for a connection termination request - from the remote TCP. - - TIME-WAIT - represents waiting for enough time to pass to be sure - the remote TCP received the acknowledgment of its connection - termination request. - - CLOSE-WAIT - represents waiting for a connection termination request - from the local user. - - CLOSING - represents waiting for a connection termination request - acknowledgment from the remote TCP. - - CLOSED - represents no connection state at all. - - - - [Page 21] - - - December 1979 -Transmission Control Protocol -Functional Specification - - - - A TCP connection progresses from one state to another in response to - events. The events are the user calls, OPEN, SEND, RECEIVE, CLOSE, - ABORT, and STATUS; the incoming segments, particularly those - containing the SYN and FIN flags; and timeouts. - - The Glossary contains a more complete list of terms and their - definitions. - - The state diagram in figure 6 only illustrates state changes, together - with the causing events and resulting actions, but addresses neither - error conditions nor actions which are not connected with state - changes. In a later section, more detail is offered with respect to - the reaction of the TCP to events. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 22] - - -December 1979 - Transmission Control Protocol - Functional Specification - - - - - +---------+ ---------\ active OPEN - | CLOSED | \ ----------- - +---------+<---------\ \ create TCB - | ^ \ \ snd SYN - passive OPEN | | CLOSE \ \ - ------------ | | ---------- \ \ - create TCB | | delete TCB \ \ - V | \ \ - +---------+ CLOSE | \ - | LISTEN | ---------- | | - +---------+ delete TCB | | - rcv SYN | | SEND | | - ----------- | | ------- | V - +---------+ snd SYN,ACK / \ snd SYN +---------+ - | |<----------------- ------------------>| | - | SYN | rcv SYN | SYN | - | RCVD |<-----------------------------------------------| SENT | - | | snd ACK | | - | |------------------ -------------------| | - +---------+ rcv ACK of SYN \ / rcv SYN,ACK +---------+ - | -------------- | | ----------- - | x | | snd ACK - | V V - | CLOSE +---------+ - | ------- | ESTAB | - | snd FIN +---------+ - | CLOSE | | rcv FIN - V ------- | | ------- - +---------+ snd FIN / \ snd ACK +---------+ - | FIN |<----------------- ------------------>| CLOSE | - | WAIT-1 |------------------ -------------------| WAIT | - +---------+ rcv FIN \ / CLOSE +---------+ - | rcv ACK of FIN ------- | | ------- - | -------------- snd ACK | | snd FIN - V x V V - +---------+ +---------+ - |FINWAIT-2| | CLOSING | - +---------+ +---------+ - | rcv FIN | rcv ACK of FIN - | ------- Timeout=2MSL | -------------- - V snd ACK ------------ V delete TCB - +---------+ delete TCB +---------+ - |TIME WAIT|----------------->| CLOSED | - +---------+ +---------+ - - TCP Connection State Diagram - Figure 6. - - - [Page 23] - - - December 1979 -Transmission Control Protocol -Functional Specification - - - -3.3. Sequence Numbers - - A fundamental notion in the design is that every octet of data sent - over a TCP connection has a sequence number. Since every octet is - sequenced, each of them can be acknowledged. The acknowledgment - mechanism employed is cumulative so that an acknowledgment of sequence - number X indicates that all octets up to but not including X have been - received. This mechanism allows for straight-forward duplicate - detection in the presence of retransmission. - - It is essential to remember that the actual sequence number space is - finite, though very large. This space ranges from 0 to 2**32 - 1. - Since the space is finite, all arithmetic dealing with sequence - numbers must be performed modulo 2**32. This unsigned arithmetic - preserves the relationship of sequence numbers as they cycle from - 2**32 - 1 to 0 again. There are some subtleties to computer modulo - arithmetic, so great care should be taken in programming the - comparison of such values. The typical kinds of sequence number - comparisons which the TCP must perform include: - - (a) Determining that an acknowledgment refers to some sequence - number sent but not yet acknowledged. - - (b) Determining that all sequence numbers occupied by a segment - have been acknowledged (e.g., to remove the segment from a - retransmission queue). - - (c) Determining that an incoming segment contains sequence numbers - which are expected (i.e., that the segment "overlaps" the - receive window). - - On send connections the following comparisons are needed: - - older sequence numbers newer sequence numbers - - - SND.UNA SEG.ACK SND.NXT - | | | - ----|----XXXXXXX------XXXXXXXXXX---------XXXXXX----|---- - | | | | | | - | | | - Segment 1 Segment 2 Segment 3 - - <----- sequence space -----> - - Sending Sequence Space Information - - Figure 7. - - -[Page 24] - - -December 1979 - Transmission Control Protocol - Functional Specification - - - - SND.UNA = oldest unacknowledged sequence number - - SND.NXT = next sequence number to be sent - - SEG.ACK = acknowledgment (next sequence number expected by the - acknowledging TCP) - - SEG.SEQ = first sequence number of a segment - - SEG.SEQ+SEG.LEN-1 = last sequence number of a segment - - An acceptable acknowledgment, SEG.ACK, is one for which the inequality - below holds: - - 0 < (SEG.ACK - SND.UNA) =< (SND.NXT - SND.UNA) - - or: - - SND.UNA < SEG.ACK =< SND.NXT - - Note that all arithmetic is modulo 2**32 and that comparisons are - unsigned. "=<" means "less than or equal". - - Similarly, the determination that a particular segment has been fully - acknowledged can be made if the inequality below holds: - - 0 < (SEG.SEQ+SEG.LEN-1 - SND.UNA) < (SEG.ACK - SND.UNA) - - SEG.LEN is the number of octets occupied by the data in the segment. - It is important to note that SEG.LEN must be non-zero; segments which - do not occupy any sequence space (e.g., empty acknowledgment segments) - are never placed on the retransmission queue, so would not go through - this particular test. - - - - - - - - - - - - - - - - - - [Page 25] - - - December 1979 -Transmission Control Protocol -Functional Specification - - - - On receive connections the following comparisons are needed: - - older sequence numbers newer sequence numbers - - - RCV.NXT RCV.NXT+RCV.WND - | | - ---------XXX|XXX------XXXXXXXXXX---------XXX|XX--------- - | | | | | - | | | - Segment 1 Segment 2 Segment 3 - - <----- sequence space -----> - - Receiving Sequence Space Information - - Figure 8. - - RCV.NXT = next sequence number expected on incoming segments - - RCV.NXT+RCV.WND = last sequence number expected on incoming - segments, plus one - - SEG.SEQ = first sequence number occupied by the incoming segment - - SEG.SEQ+SEG.LEN-1 = last sequence number occupied by the incoming - segment - - A segment is judged to occupy a portion of valid receive sequence - space if - - 0 =< (SEG.SEQ+SEG.LEN-1 - RCV.NXT) < (RCV.NXT+RCV.WND - RCV.NXT) - - SEG.SEQ+SEG.LEN-1 is the last sequence number occupied by the segment; - RCV.NXT is the next sequence number expected on an incoming segment; - and RCV.NXT+RCV.WND is the right edge of the receive window. - - Actually, it is a little more complicated than this. Due to zero - windows and zero length segments, we have four cases for the - acceptability of an incoming segment: - - - - - - - - - - -[Page 26] - - -December 1979 - Transmission Control Protocol - Functional Specification - - - - Segment Receive Test - Length Window - ------- ------- ------------------------------------------- - - 0 0 SEG.SEQ = RCV.NXT - - 0 >0 RCV.NXT =< SEG.SEQ < RCV.NXT+RCV.WND - - >0 0 not acceptable - - >0 >0 RCV.NXT < SEG.SEQ+SEG.LEN =< RCV.NXT+RCV.WND - - Note that the acceptance test for a segment, since it requires the end - of a segment to lie in the window, is somewhat more restrictive than - is absolutely necessary. If at least the first sequence number of the - segment lies in the receive window, or if some part of the segment - lies in the receive window, then the segment might be judged - acceptable. Thus, in figure 8, at least segments 1 and 2 are - acceptable by the strict rule, and segment 3 may or may not be, - depending on the strictness of interpretation of the rule. - - Note that when the receive window is zero no segments should be - acceptable except ACK segments. Thus, it should be possible for a TCP - to maintain a zero receive window while transmitting data and - receiving ACKs. - - We have taken advantage of the numbering scheme to protect certain - control information as well. This is achieved by implicitly including - some control flags in the sequence space so they can be retransmitted - and acknowledged without confusion (i.e., one and only one copy of the - control will be acted upon). Control information is not physically - carried in the segment data space. Consequently, we must adopt rules - for implicitly assigning sequence numbers to control. The SYN and FIN - are the only controls requiring this protection, and these controls - are used only at connection opening and closing. For sequence number - purposes, the SYN is considered to occur before the first actual data - octet of the segment in which it occurs, while the FIN is considered - to occur after the last actual data octet in a segment in which it - occurs. The segment length includes both data and sequence space - occupying controls. - - Initial Sequence Number Selection - - The protocol places no restriction on a particular connection being - used over and over again. A connection is defined by a pair of - sockets. New instances of a connection will be referred to as - incarnations of the connection. The problem that arises owing to this - is -- "how does the TCP identify duplicate segments from previous - - - [Page 27] - - - December 1979 -Transmission Control Protocol -Functional Specification - - - - incarnations of the connection?" This problem becomes apparent if the - connection is being opened and closed in quick succession, or if the - connection breaks with loss of memory and is then reestablished. - - To avoid confusion we must prevent segments from being emitted with - sequence numbers which duplicate those which are still in the network. - We want to assure this, even if a TCP crashes and loses all knowledge - of the sequence numbers it has been using. When new connections are - created, an initial sequence number (ISN) generator is employed which - selects a new 32 bit ISN. The generator is bound to a (possibly - fictitious) 32 bit clock whose low order bit is incremented roughly - every 4 microseconds. Thus, the ISN cycles approximately every 4.55 - hours. Since we assume that segments will stay in the network no more - than tens of seconds or minutes, at worst, we can reasonably assume - that ISN's will be unique. - - For each connection there is a send sequence number and a receive - sequence number. The initial send sequence number (ISS) is chosen by - the data sending TCP, and the initial receive sequence number (IRS) is - learned during the connection establishing procedure. - - For a connection to be established or initialized, the two TCPs must - synchronize on each other's initial sequence numbers. This is done in - an exchange of connection establishing messages carrying a control bit - called "SYN" (for synchronize) and the initial sequence numbers. As a - shorthand, messages carrying the SYN bit are also called "SYNs". - Hence, the solution requires a suitable mechanism for picking an - initial sequence number and a slightly involved handshake to exchange - the ISN's. A "three way handshake" is necessary because sequence - numbers are not tied to a global clock in the network, and TCPs may - have different mechanisms for picking the ISN's. The receiver of the - first SYN has no way of knowing whether the segment was an old delayed - one or not, unless it remembers the last sequence number used on the - connection (which is not always possible), and so it must ask the - sender to verify this SYN. - - The "three way handshake" and the advantages of a "clock-driven" - scheme are discussed in [3]. - - Knowing When to Keep Quiet - - To be sure that a TCP does not create a segment that carries a - sequence number which may be duplicated by an old segment remaining in - the network, the TCP must keep quiet for a maximum segment lifetime - (MSL) before assigning any sequence numbers upon starting up or - recovering from a crash in which memory of sequence numbers in use was - lost. For this specification the MSL is taken to be 2 minutes. This - is an engineering choice, and may be changed if experience indicates - - -[Page 28] - - -December 1979 - Transmission Control Protocol - Functional Specification - - - - it is desirable to do so. Note that if a TCP is reinitialized in some - sense, yet retains its memory of sequence numbers in use, then it need - not wait at all; it must only be sure to use sequence numbers larger - than those recently used. - - It should be noted that this strategy does not protect against - spoofing or other replay type duplicate message problems. - -3.4. Establishing a connection - - The "three-way handshake" is essentially a unidirectional attempt to - establish a connection, i.e., there is an initiator and a responder. - The TCP can also establish a connection when a simultaneous initiation - occurs. A simultaneous attempt occurs when one TCP receives a "SYN" - segment which carries no acknowledgment after it has sent a "SYN". Of - course, the arrival of an old duplicate "SYN" segment can potentially - make it appear, to the recipient, that a simultaneous connection - initiation is in progress. Proper use of "reset" segments can - disambiguate these cases. Several examples of connection initiation - are offered below. Although these examples do not show connection - synchronization using data-carrying segments, this is perfectly - legitimate, so long as the receiving TCP doesn't deliver the data to - the user until it is clear the data is valid (i.e., the data must be - buffered at the receiver until the connection reaches the ESTABLISHED - state). The three-way handshake reduces the possibility of false - connections. It is the implementation of a trade-off between memory - and messages to provide information for this checking. - - The simplest three-way handshake is shown in figure 9 below. The - figures should be interpreted in the following way. Each line is - numbered for reference purposes. Right arrows (-->) indicate - departure of a TCP segment from TCP A to TCP B, or arrival of a - segment at B from A. Left arrows (<--), indicate the reverse. - Ellipsis (...) indicates a segment which is still in the network - (delayed). An "XXX" indicates a segment which is lost or rejected. - Comments appear in parentheses. TCP states represent the state AFTER - the departure or arrival of the segment (whose contents are shown in - the center of each line). Segment contents are shown in abbreviated - form, with sequence number, control flags, and ACK field. Other - fields such as window, addresses, lengths, and text have been left out - in the interest of clarity. - - - - - - - - - - [Page 29] - - - December 1979 -Transmission Control Protocol -Functional Specification - - - - - - TCP A TCP B - - 1. CLOSED LISTEN - - 2. SYN-SENT --> --> SYN-RECEIVED - - 3. ESTABLISHED <-- <-- SYN-RECEIVED - - 4. ESTABLISHED --> --> ESTABLISHED - - 5. ESTABLISHED --> --> ESTABLISHED - - Basic 3-Way Handshake for Connection Synchronization - - Figure 9. - - In line 2 of figure 9, TCP A begins by sending a SYN segment - indicating that it will use sequence numbers starting with sequence - number 100. In line 3, TCP B sends a SYN and acknowledges the SYN it - received from TCP A. Note that the acknowledgment field indicates TCP - B is now expecting to hear sequence 101, acknowledging the SYN which - occupied sequence 100. - - At line 4, TCP A responds with an empty segment containing an ACK for - TCP B's SYN; and in line 5, TCP A sends some data. Note that the - sequence number of the segment in line 5 is the same as in line 4 - because the ACK does not occupy sequence number space (if it did, we - would wind up ACKing ACK's!). - - Simultaneous initiation is only slightly more complex, as is shown in - figure 10. Each TCP cycles from CLOSED to SYN-SENT to SYN-RECEIVED to - ESTABLISHED. - - The principle reason for the three-way handshake is to prevent old - duplicate connection initiations from causing confusion. To deal with - this, a special control message, reset, has been devised. A TCP which - receives a reset message first verifies that the ACK field of the - reset acknowledges something the TCP sent (otherwise, the message is - ignored). If the receiving TCP is in a non-synchronized state (i.e., - SYN-SENT, SYN-RECEIVED), it returns to LISTEN on receiving an - acceptable reset. If the TCP is in one of the synchronized states - (ESTABLISHED, FIN-WAIT-1, FIN-WAIT-2, TIME-WAIT, CLOSE-WAIT, CLOSING), - it aborts the connection and informs its user. We discuss this latter - case under "half-open" connections below. - - - - -[Page 30] - - -December 1979 - Transmission Control Protocol - Functional Specification - - - - - - TCP A TCP B - - 1. CLOSED CLOSED - - 2. SYN-SENT --> ... - - 3. SYN-RECEIVED <-- <-- SYN-SENT - - 4. ... --> SYN-RECEIVED - - 5. SYN-RECEIVED --> ... - - 6. ESTABLISHED <-- <-- SYN-RECEIVED - - 7. ... --> ESTABLISHED - - Simultaneous Connection Synchronization - - Figure 10. - - - - TCP A TCP B - - 1. CLOSED LISTEN - - 2. SYN-SENT --> ... - - 3. (duplicate) ... --> SYN-RECEIVED - - 4. SYN-SENT <-- <-- SYN-RECEIVED - - 5. SYN-SENT --> --> LISTEN - (ACK is ok) - - 6. ... --> SYN-RECEIVED - - 7. SYN-SENT <-- <-- SYN-RECEIVED - - 8. ESTABLISHED --> --> ESTABLISHED - - Recovery from Old Duplicate SYN - - Figure 11. - - As a simple example of recovery from old duplicates, consider - - - [Page 31] - - - December 1979 -Transmission Control Protocol -Functional Specification - - - - figure 11. At line 3, an old duplicate SYN arrives at TCP B. TCP B - cannot tell that this is an old duplicate, so it responds normally - (line 4). TCP A detects that the ACK field is incorrect and returns a - RST (reset) with its SEQ field selected to make the segment - believable. TCP B, on receiving the RST, returns to the LISTEN state. - When the original SYN (pun intended) finally arrives at line 6, the - synchronization proceeds normally. If the SYN at line 6 had arrived - before the RST, a more complex exchange might have occurred with RST's - sent in both directions. - - Half-Open Connections and Other Anomalies - - An established connection is said to be "half-open" if one of the - TCPs has closed or aborted the connection at its end without the - knowledge of the other, or if the two ends of the connection have - become desynchronized owing to a crash that resulted in loss of - memory. Such connections will automatically become reset if an - attempt is made to send data in either direction. However, half-open - connections are expected to be unusual, and the recovery procedure is - mildly involved. - - If at site A the connection no longer exists, then an attempt by the - user at site B to send any data on it will result in the site B TCP - receiving a reset control message. Such a message should indicate to - the site B TCP that something is wrong, and it is expected to abort - the connection. - - Assume that two user processes A and B are communicating with one - another when a crash occurs causing loss of memory to A's TCP. - Depending on the operating system supporting A's TCP, it is likely - that some error recovery mechanism exists. When the TCP is up again, - A is likely to start again from the beginning or from a recovery - point. As a result, A will probably try to OPEN the connection again - or try to SEND on the connection it believes open. In the latter - case, it receives the error message "connection not open" from the - local (A's) TCP. In an attempt to establish the connection, A's TCP - will send a segment containing SYN. This scenario leads to the - example shown in figure 12. After TCP A crashes, the user attempts to - re-open the connection. TCP B, in the meantime, thinks the connection - is open. - - - - - - - - - - -[Page 32] - - -December 1979 - Transmission Control Protocol - Functional Specification - - - - - - TCP A TCP B - - 1. (CRASH) (send 300,receive 100) - - 2. CLOSED ESTABLISHED - - 3. SYN-SENT --> --> (??) - - 4. (!!) <-- <-- ESTABLISHED - - 5. SYN-SENT --> --> (Abort!!) - - 6. CLOSED - - 7. SYN-SENT --> --> CLOSED - - 8. (Abort!!)<-- <-- CLOSED - - 9. CLOSED CLOSED - - Half-Open Connection Discovery - - Figure 12. - - When the SYN arrives at line 3, TCP B, being in a synchronized state, - responds with an acknowledgment indicating what sequence it next - expects to hear (ACK 100). TCP A sees that this segment does not - acknowledge anything it sent and, being unsynchronized, sends a reset - (RST) because it has detected a half-open connection. TCP B aborts at - line 5. TCP A will continue to retransmit its SYN; and if the user at - TCP B re-opens the connection, eventually everything will work out. - In the figure TCP B does not reopen the connection, and in line 8 - sends a reset to reject the offered connection. - - An interesting alternative case occurs when TCP A crashes and TCP B - tries to send data on what it thinks is a synchronized connection. - This is illustrated in figure 13. In this case, the data arriving at - TCP A from TCP B (line 2) is unacceptable because no such connection - exists, so TCP A sends a RST. The RST is acceptable so TCP B - processes it and aborts the connection. - - - - - - - - - [Page 33] - - - December 1979 -Transmission Control Protocol -Functional Specification - - - - - - TCP A TCP B - - 1. (CRASH) (send 300,receive 100) - - 2. (??) <-- <-- ESTABLISHED - - 3. --> --> (ABORT!!) - - Active Side Causes Half-Open Connection Discovery - - Figure 13. - - In figure 14, we find the two TCPs A and B with passive connections - waiting for SYN. An old duplicate arriving at TCP B (line 2) stirs B - into action. A SYN-ACK is returned (line 3) and causes TCP A to - generate a RST (the ACK in line 3 is not acceptable). TCP B accepts - the reset and returns to its passive LISTEN state. - - - - TCP A TCP B - - 1. LISTEN LISTEN - - 2. ... --> SYN-RECEIVED - - 3. (??) <-- <-- SYN-RECEIVED - - 4. --> --> (return to LISTEN!) - - 5. LISTEN LISTEN - - Old Duplicate SYN Initiates a Reset on two Passive Sockets - - Figure 14. - - A variety of other cases are possible, all of which are accounted for - by the following rules for RST generation and processing. - - Reset Generation - - As a general rule, reset (RST) should be sent whenever a segment - arrives which apparently is not intended for the current or a future - incarnation of the connection. A reset should not be sent if it is - not clear that this is the case. Thus, if any segment arrives for a - nonexistent connection, a reset should be sent. If a segment ACKs - - -[Page 34] - - -December 1979 - Transmission Control Protocol - Functional Specification - - - - something which has never been sent on the current connection, then - one of the following two cases applies. - - 1. If the connection is in any non-synchronized state (LISTEN, - SYN-SENT, SYN-RECEIVED) or if the connection does not exist, a reset - (RST) should be formed and sent for any segment that acknowledges - something not yet sent. The RST should take its SEQ field from the - ACK field of the offending segment (if the ACK control bit was set), - and its ACK bit should be reset (zero), except to refuse a initial - SYN. A reset is also sent if an incoming segment has a security level - or compartment which does not exactly match the level and compartment - requested for the connection. If the precedence of the incoming - segment is less than the precedence level requested a reset is sent. - - 2. If the connection is in a synchronized state (ESTABLISHED, - FIN-WAIT-1, FIN-WAIT-2, TIME-WAIT, CLOSE-WAIT, CLOSING), any - unacceptable segment should elicit only an empty acknowledgment - segment containing the current send-sequence number and an - acknowledgment indicating the next sequence number expected to be - received. - - Reset Processing - - All reset (RST) segments are validated by checking their SEQ-fields. - A reset is valid if its sequence number is the next expected sequence - number. In the case of a RST received in response to an initial SYN - any sequence number is acceptable if the ACK field acknowledges the - SYN. - - The receiver of a RST first validates it, then changes state. If the - receiver was in the LISTEN state, it ignores it. If the receiver was - in SYN-RECEIVED state and had previously been in the LISTEN state, - then the receiver returns to the LISTEN state, otherwise the receiver - aborts the connection and goes to the CLOSED state. If the receiver - was in any other state, it aborts the connection and advises the user - and goes to the CLOSED state. - -3.5. Closing a Connection - - CLOSE is an operation meaning "I have no more data to send." The - notion of closing a full-duplex connection is subject to ambiguous - interpretation, of course, since it may not be obvious how to treat - the receiving side of the connection. We have chosen to treat CLOSE - in a simplex fashion. The user who CLOSEs may continue to RECEIVE - until he is told that the other side has CLOSED also. Thus, a program - could initiate several SENDs followed by a CLOSE, and then continue to - RECEIVE until signaled that a RECEIVE failed because the other side - has CLOSED. We assume that the TCP will unilaterally inform a user, - - - [Page 35] - - - December 1979 -Transmission Control Protocol -Functional Specification - - - - even if no RECEIVEs are outstanding, that the other side has closed, - so the user can terminate his side gracefully. A TCP will reliably - deliver all buffers SENT before the connection was CLOSED so a user - who expects no data in return need only wait to hear the connection - was CLOSED successfully to know that all his data was received at the - destination TCP. - - There are essentially three cases: - - 1) The user initiates by telling the TCP to CLOSE the connection - - 2) The remote TCP initiates by sending a FIN control signal - - 3) Both users CLOSE simultaneously - - Case 1: Local user initiates the close - - In this case, a FIN segment can be constructed and placed on the - outgoing segment queue. No further SENDs from the user will be - accepted by the TCP, and it enters the FIN-WAIT-1 state. RECEIVEs - are allowed in this state. All segments preceding and including FIN - will be retransmitted until acknowledged. When the other TCP has - both acknowledged the FIN and sent a FIN of its own, the first TCP - can ACK this FIN. It should be noted that a TCP receiving a FIN - will ACK but not send its own FIN until its user has CLOSED the - connection also. - - Case 2: TCP receives a FIN from the network - - If an unsolicited FIN arrives from the network, the receiving TCP - can ACK it and tell the user that the connection is closing. The - user should respond with a CLOSE, upon which the TCP can send a FIN - to the other TCP. The TCP then waits until its own FIN is - acknowledged whereupon it deletes the connection. If an ACK is not - forthcoming, after a timeout the connection is aborted and the user - is told. - - Case 3: both users close simultaneously - - A simultaneous CLOSE by users at both ends of a connection causes - FIN segments to be exchanged. When all segments preceding the FINs - have been processed and acknowledged, each TCP can ACK the FIN it - has received. Both will, upon receiving these ACKs, delete the - connection. - - - - - - -[Page 36] - - -December 1979 - Transmission Control Protocol - Functional Specification - - - - - - TCP A TCP B - - 1. ESTABLISHED ESTABLISHED - - 2. (Close) - FIN-WAIT-1 --> --> CLOSE-WAIT - - 3. FIN-WAIT-2 <-- <-- CLOSE-WAIT - - 4. (Close) - TIME-WAIT <-- <-- CLOSING - - 5. TIME-WAIT --> --> CLOSED - - 6. (2 MSL) - CLOSED - - Normal Close Sequence - - Figure 15. - - - - TCP A TCP B - - 1. ESTABLISHED ESTABLISHED - - 2. (Close) (Close) - FIN-WAIT-1 --> ... FIN-WAIT-1 - <-- <-- - ... --> - - 3. CLOSING --> ... CLOSING - <-- <-- - ... --> - - 4. CLOSED CLOSED - - Simultaneous Close Sequence - - Figure 16. - - - - - - - - [Page 37] - - - December 1979 -Transmission Control Protocol -Functional Specification - - - -3.6. Precedence and Security - - The intent is that connection be allowed only between ports operating - with exactly the same security and compartment values and at the - higher of the precedence level requested by the two parts. - - The precedence levels are: - - flash override - 111 - flash - 110 - immediate - 10X - priority - 01X - routine - 00X - - The security levels are: - - top secret - 11 - secret - 10 - confidential - 01 - unclassified - 00 - - The compartments are assigned by the Defense Communications Agency. - The defaults are precedence: routine, security: unclassified, - compartment: zero. A host which does not implement precedence or - security feature should clear these fields to zero for segments it - sends. - - A connection attempt with mismatched security/compartment values or a - lower precedence value should be rejected by sending a reset. - - Note that TCP modules which operate only at the default value of - precedence will still have to check the precedence of incoming - segments and possibly raise the precedence level they use on the - connection. - -3.7. Data Communication - - Once the connection is established data is communicated by the - exchange of segments. Because segments may be lost due to errors - (checksum test failure), or network congestion, TCP uses - retransmission (after a timeout) to ensure delivery of every segment. - Duplicate segments may arrive due to network or TCP retransmission. - As discussed in the section on sequence numbers the TCP performs - certain tests on the sequence and acknowledgment numbers in the - segments to verify their acceptability. - - The sender of data keeps track of the next sequence number to use in - the variable SND.NXT. The receiver of data keeps track of the next - - -[Page 38] - - -December 1979 - Transmission Control Protocol - Functional Specification - - - - sequence number to expect in the variable RCV.NXT. The sender of data - keeps track of the oldest unacknowledged sequence number in the - variable SND.UNA. If the data flow is momentarily idle and all data - sent has been acknowledged then the three variables will be equal. - - When the sender creates a segment and transmits it the sender advances - SND.NXT. When the receiver accepts a segment it advances RCV.NXT and - sends an acknowledgment. When the data sender receives an - acknowledgment it advances SND.UNA. The extent to which the values of - these variables differ is a measure of the delay in the communication. - - Normally the amount by which the variables are advanced is the length - of the data in the segment. However, when letters are used there are - special provisions for coordination the sequence numbers, the letter - boundaries, and the receive buffer boundaries. - - End of Letter Sequence Number Adjustments - - There is provision in TCP for the receiver of data to optionally - communicate to the sender of data on a connection at the time of the - connection synchronization the receiver's buffer size. If this is - done the receiver must use this fixed size of buffers for the lifetime - of the connection. If a buffer size is communicated then there is a - coordination between receive buffers, letters, and sequence numbers. - - Each time a buffer is completed either due to being filled or due to - an end of letter, the sequence number is incremented through the end - of that buffer. - - That is, whenever an EOL is transmitted, the sender advances its send - sequence number, SND.NXT, by an amount sufficient to consume all the - unused space in the receiver's buffer. The amount of space consumed - in this fashion is subtracted from the send window just as is the - space consumed by actual data. - - And, whenever an EOL is received, the receiver advances its receive - sequence number, RCV.NXT, by an amount sufficient to consume all the - unused space in the receiver's buffer. The amount of space consumed - in this fashion is subtracted from the receive window just as is the - space consumed by actual data. - - - - - - - - - - - [Page 39] - - - December 1979 -Transmission Control Protocol -Functional Specification - - - - older sequence numbers newer sequence numbers - - | Buffer 1 | Buffer 2 - | | - ----+-------------------------------+----------------- - XXXXXXXXXXXXXXXXXXXXX+++++++++++ - | | | - |<-----SEG.LEN------>| | - | | | - | | | - SEG.SEQ A B - - XXX - data octets from segment - +++ - phantom data - - <----- sequence space -----> - - End of Letter Adjustment - - Figure 17. - - In the case illustrated above, if the segment does not carry an EOL - flag, the next value of SND.NXT or RCV.NXT will be A. If it does - carry an EOL flag, the next value will be B. - - The exchange of buffer size and sequencing information is done in - units of octets. If no buffer size is stated, then the buffer size is - assumed to be 1 octet. The receiver tells the sender the size of the - buffer in a SYN segment that contains the 16 bit buffer size data in - an option field in the TCP header. - - Each EOL advances the sequence number (SN) to the next buffer boundary - - While LBB < SEG.SEQ+SEG.LEN - Do LBB <- LBB + BS End - SN <- LBB - - where LBB is the Last Buffer Beginning, and BS is the buffer size. - - The CLOSE user call implies an end of letter, as does the FIN control - flag in an incoming segment. - - The Communication of Urgent Information - - The objective of the TCP urgent mechanism is to allow the sending user - to stimulate the receiving user to accept some urgent data and to - permit the receiving TCP to indicate to the receiving user when all - the currently known urgent data has been received by the user. - - -[Page 40] - - -December 1979 - Transmission Control Protocol - Functional Specification - - - - This mechanism permits a point in the data stream to be designated as - the end of "urgent" information. Whenever this point is in advance of - the receive sequence number (RCV.NXT) at the receiving TCP, that TCP - should tell the user to go into "urgent mode"; when the receive - sequence number catches up to the urgent pointer, the TCP should tell - user to go into "normal mode". If the urgent pointer is updated while - the user is in "read fast" mode, the update will be invisible to the - user. - - The method employs a urgent field which is carried in all segments - transmitted. The URG control flag indicates that the urgent field is - meaningful and should be added to the segment sequence number to yield - the urgent pointer. The absence of this flag indicates that the - urgent pointer has not changed. - - To send an urgent indication the user must also send at least one data - octet. If the sending user also indicates end of letter, timely - delivery of the urgent information to the destination process is - enhanced. - - Managing the Window - - The window sent in each segment indicates the range of sequence number - the sender of the window (the data receiver) is currently prepared to - accept. There is an assumption that this is somehow related to to the - currently available data buffer space available for this connection. - - Indicating a large window encourages transmissions. If more data - arrives than can be accepted, this will result in excessive - retransmissions, adding unnecessarily to the load on the network and - the TCPs. Indicating a small window may restrict the transmission of - data to the point of introducing a round trip delay between each new - segment transmitted. - - The mechanisms provided allow a TCP to advertise a large window and to - subsequently advertise a much smaller window without having accepted - that much data. This, so called "shrinking the window," is strongly - discouraged. The robustness principle dictates that TCPs will not - shrink the window themselves, but will be prepared for such behavior - on the part of other TCPs. - - The sending TCP must be prepared to accept and send at least one octet - of new data even if the send window is zero. The sending TCP should - regularly retransmit to the receiving TCP even when the window is - zero. Two minutes is recommended for the retransmission interval when - the window is zero. This retransmission is essential to guarantee - that when either TCP has a zero window the re-opening of the window - will be reliably reported to the other. - - - [Page 41] - - - December 1979 -Transmission Control Protocol -Functional Specification - - - - Users must keep reading connections they close for sending until the - TCP says no more data. - - In a connection with a one-way data flow, the window information will - be carried in acknowledgment segments that all have the same sequence - number so there will be no way to reorder them if they arrive out of - order. This is not a serious problem, but it will allow the window - information to be on occasion temporarily based on old reports from - the data receiver. - -3.8. Interfaces - - There are of course two interfaces of concern: the user/TCP interface - and the TCP/IP interface. We have a fairly elaborate model of the - user/TCP interface, but only a sketch of the interface to the lower - level protocol module. - - User/TCP Interface - - The functional description of user commands to the TCP is, at best, - fictional, since every operating system will have different - facilities. Consequently, we must warn readers that different TCP - implementations may have different user interfaces. However, all - TCPs must provide a certain minimum set of services to guarantee - that all TCP implementations can support the same protocol - hierarchy. This section specifies the functional interfaces - required of all TCP implementations. - - TCP User Commands - - The following sections functionally characterize a USER/TCP - interface. The notation used is similar to most procedure or - function calls in high level languages, but this usage is not - meant to rule out trap type service calls (e.g., SVCs, UUOs, - EMTs). - - The user commands described below specify the basic functions the - TCP must perform to support interprocess communication. - Individual implementations should define their own exact format, - and may provide combinations or subsets of the basic functions in - single calls. In particular, some implementations may wish to - automatically OPEN a connection on the first SEND or RECEIVE - issued by the user for a given connection. - - - - - - - -[Page 42] - - -December 1979 - Transmission Control Protocol - Functional Specification - - - - In providing interprocess communication facilities, the TCP must - not only accept commands, but must also return information to the - processes it serves. The latter consists of: - - (a) general information about a connection (e.g., interrupts, - remote close, binding of unspecified foreign socket). - - (b) replies to specific user commands indicating success or - various types of failure. - - Although the means for signaling user processes and the exact - format of replies will vary from one implementation to another, it - would promote common understanding and testing if a common set of - codes were adopted. Such a set of event codes is described below. - - Open - - Format: OPEN (local port, foreign socket, active/passive - [, buffer size] [, timeout] [, precedence] - [, security/compartment]) -> local connection name - - We assume that the local TCP is aware of the identity of the - processes it serves and will check the authority of the process - to use the connection specified. Depending upon the - implementation of the TCP, the local network and TCP identifiers - for the source address will either be supplied by the TCP or by - the processes that serve it (e.g., the program which interfaces - the TCP network). These considerations are the result of - concern about security, to the extent that no TCP be able to - masquerade as another one, and so on. Similarly, no process can - masquerade as another without the collusion of the TCP. - - If the active/passive flag is set to passive, then this is a - call to LISTEN for an incoming connection. A passive open may - have either a fully specified foreign socket to wait for a - particular connection or an unspecified foreign socket to wait - for any call. A fully specified passive call can be made active - by the subsequent execution of a SEND. - - A full-duplex transmission control block (TCB) is created and - partially filled in with data from the OPEN command parameters. - - On an active OPEN command, the TCP will begin the procedure to - synchronize (i.e., establish) the connection at once. - - The buffer size, if present, indicates that the caller will - always receive data from the connection in that size of buffers. - This buffer size is a measure of the buffer between the user and - - - [Page 43] - - - December 1979 -Transmission Control Protocol -Functional Specification - - - - the local TCP. The buffer size between the two TCPs may be - different. - - The timeout, if present, permits the caller to set up a timeout - for all buffers transmitted on the connection. If a buffer is - not successfully delivered to the destination within the timeout - period, the TCP will abort the connection. The present global - default is 30 seconds. The buffer retransmission rate may vary; - most likely, it will be related to the measured time for - responses from the remote TCP. - - The TCP or some component of the operating system will verify - the users authority to open a connection with the specified - precedence or security/compartment. The absence of precedence - or security/compartment specification in the OPEN call indicates - the default values should be used. - - TCP will accept incoming requests as matching only if the - security/compartment information is exactly the same and only if - the precedence is equal to or higher than the precedence - requested in the OPEN call. - - The precedence for the connection is the higher of the values - requested in the OPEN call and received from the incoming - request, and fixed at that value for the life of the connection. - - Depending on the TCP implementation, either a local connection - name will be returned to the user by the TCP, or the user will - specify this local connection name (in which case another - parameter is needed in the call). The local connection name can - then be used as a short hand term for the connection defined by - the pair. - - Send - - Format: SEND(local connection name, buffer address, byte count, - EOL flag, URGENT flag [, timeout]) - - This call causes the data contained in the indicated user buffer - to be sent on the indicated connection. If the connection has - not been opened, the SEND is considered an error. Some - implementations may allow users to SEND first; in which case, an - automatic OPEN would be done. If the calling process is not - authorized to use this connection, an error is returned. - - If the EOL flag is set, the data is the End Of a Letter, and the - EOL bit will be set in the last TCP segment created from the - - - -[Page 44] - - -December 1979 - Transmission Control Protocol - Functional Specification - - - - buffer. If the EOL flag is not set, subsequent SENDs will - appear to be part of the same letter. - - If the URGENT flag is set, segments resulting from this call - will have the urgent pointer set to indicate that some of the - data associated with this call is urgent. This facility, for - example, can be used to simulate "break" signals from terminals - or error or completion codes from I/O devices. The semantics of - this signal to the receiving process are unspecified. The - receiving TCP will signal the urgent condition to the receiving - process as long as the urgent pointer indicates that data - preceding the urgent pointer has not been consumed by the - receiving process. The purpose of urgent is to stimulate the - receiver to accept some urgent data and to indicate to the - receiver when all the currently known urgent data has been - received. - - The number of times the sending user's TCP signals urgent will - not necessarily be equal to the number of times the receiving - user will be notified of the presence of urgent data. - - If no foreign socket was specified in the OPEN, but the - connection is established (e.g., because a LISTENing connection - has become specific due to a foreign segment arriving for the - local socket), then the designated buffer is sent to the implied - foreign socket. In general, users who make use of OPEN with an - unspecified foreign socket can make use of SEND without ever - explicitly knowing the foreign socket address. - - However, if a SEND is attempted before the foreign socket - becomes specified, an error will be returned. Users can use the - STATUS call to determine the status of the connection. In some - implementations the TCP may notify the user when an unspecified - socket is bound. - - If a timeout is specified, then the current timeout for this - connection is changed to the new one. - - In the simplest implementation, SEND would not return control to - the sending process until either the transmission was complete - or the timeout had been exceeded. However, this simple method - is both highly subject to deadlocks (for example, both sides of - the connection might try to do SENDs before doing any RECEIVEs) - and offers poor performance, so it is not recommended. A more - sophisticated implementation would return immediately to allow - the process to run concurrently with network I/O, and, - furthermore, to allow multiple SENDs to be in progress. - - - - [Page 45] - - - December 1979 -Transmission Control Protocol -Functional Specification - - - - Multiple SENDs are served in first come, first served order, so - the TCP will queue those it cannot service immediately. - - We have implicitly assumed an asynchronous user interface in - which a SEND later elicits some kind of SIGNAL or - pseudo-interrupt from the serving TCP. An alternative is to - return a response immediately. For instance, SENDs might return - immediate local acknowledgment, even if the segment sent had not - been acknowledged by the distant TCP. We could optimistically - assume eventual success. If we are wrong, the connection will - close anyway due to the timeout. In implementations of this - kind (synchronous), there will still be some asynchronous - signals, but these will deal with the connection itself, and not - with specific segments or letters. - - NOTA BENE: In order for the process to distinguish among error - or success indications for different SENDs, it might be - appropriate for the buffer address to be returned along with the - coded response to the SEND request. We will offer an example - event code format below, showing the information which should be - returned to the calling process. - - Receive - - Format: RECEIVE (local connection name, buffer address, byte - count) - - This command allocates a receiving buffer associated with the - specified connection. If no OPEN precedes this command or the - calling process is not authorized to use this connection, an - error is returned. - - In the simplest implementation, control would not return to the - calling program until either the buffer was filled, or some - error occurred, but this scheme is highly subject to deadlocks. - A more sophisticated implementation would permit several - RECEIVEs to be outstanding at once. These would be filled as - letters, segments or fragments arrive. This strategy permits - increased throughput at the cost of a more elaborate scheme - (possibly asynchronous) to notify the calling program that a - letter has been received or a buffer filled. - - If insufficient buffer space is given to reassemble a complete - letter, the EOL flag will not be set in the response to the - RECEIVE. The buffer will be filled with as much data as it can - hold. The last buffer required to hold the letter is returned - with EOL signaled. - - - -[Page 46] - - -December 1979 - Transmission Control Protocol - Functional Specification - - - - The remaining parts of a partly delivered letter will be placed - in buffers as they are made available via successive RECEIVEs. - If a number of RECEIVEs are outstanding, they may be filled with - parts of a single long letter or with at most one letter each. - The event codes associated with each RECEIVE will indicate what - is contained in the buffer. - - If a buffer size was given in the OPEN call, then all buffers - presented in RECEIVE calls must be of exactly that size, or an - error indication will be returned. - - The URGENT flag will be set only if the receiving user has - previously been informed via a general event, that urgent data - is waiting. The receiving user should thus be in "read-fast" - mode. If the URGENT flag is on, additional urgent data remains. - If the URGENT flag is off, this call to RECEIVE has returned all - the urgent data, and the user may now leave "read-fast" mode. - - To distinguish among several outstanding RECEIVEs and to take - care of the case that a letter is smaller than the buffer - supplied, the event code is accompanied by both a buffer pointer - and a byte count indicating the actual length of the letter - received. - - Alternative implementations of RECEIVE might have the TCP - allocate buffer storage, or the TCP might share a ring buffer - with the user. Variations of this kind will produce obvious - variation in user interface to the TCP. - - Close - - Format: CLOSE(local connection name) - - This command causes the connection specified to be closed. If - the connection is not open or the calling process is not - authorized to use this connection, an error is returned. - Closing connections is intended to be a graceful operation in - the sense that outstanding SENDs will be transmitted (and - retransmitted), as flow control permits, until all have been - serviced. Thus, it should be acceptable to make several SEND - calls, followed by a CLOSE, and expect all the data to be sent - to the destination. It should also be clear that users should - continue to RECEIVE on CLOSING connections, since the other side - may be trying to transmit the last of its data. Thus, CLOSE - means "I have no more to send" but does not mean "I will not - receive any more." It may happen (if the user level protocol is - not well thought out) that the closing side is unable to get rid - - - - [Page 47] - - - December 1979 -Transmission Control Protocol -Functional Specification - - - - of all its data before timing out. In this event, CLOSE turns - into ABORT, and the closing TCP gives up. - - The user may CLOSE the connection at any time on his own - initiative, or in response to various prompts from the TCP - (e.g., remote close executed, transmission timeout exceeded, - destination inaccessible). - - Because closing a connection requires communication with the - foreign TCP, connections may remain in the closing state for a - short time. Attempts to reopen the connection before the TCP - replies to the CLOSE command will result in error responses. - - Close also implies end of letter. - - Status - - Format: STATUS(local connection name) - - This is an implementation dependent user command and could be - excluded without adverse effect. Information returned would - typically come from the TCB associated with the connection. - - This command returns a data block containing the following - information: - - local socket, - foreign socket, - local connection name, - receive window, - send window, - connection state, - number of buffers awaiting acknowledgment, - number of buffers pending receipt (including partial ones), - receive buffer size, - urgent state, - precedence, - security/compartment, - and default transmission timeout. - - Depending on the state of the connection, or on the - implementation itself, some of this information may not be - available or meaningful. If the calling process is not - authorized to use this connection, an error is returned. This - prevents unauthorized processes from gaining information about a - connection. - - - - -[Page 48] - - -December 1979 - Transmission Control Protocol - Functional Specification - - - - Abort - - Format: ABORT (local connection name) - - This command causes all pending SENDs and RECEIVES to be - aborted, the TCB to be removed, and a special RESET message to - be sent to the TCP on the other side of the connection. - Depending on the implementation, users may receive abort - indications for each outstanding SEND or RECEIVE, or may simply - receive an ABORT-acknowledgment. - - TCP-to-User Messages - - It is assumed that the operating system environment provides a - means for the TCP to asynchronously signal the user program. When - the TCP does signal a user program, certain information is passed - to the user. Often in the specification the information will be - an error message. In other cases there will be information - relating to the completion of processing a SEND or RECEIVE or - other user call. - - The following information is provided: - - Local Connection Name Always - Response String Always - Buffer Address Send & Receive - Byte count (counts bytes received) Receive - End-of-Letter flag Receive - End-of-Urgent flag Receive - - TCP/Network Interface - - The TCP calls on a lower level protocol module to actually send and - receive information over a network. One case is that of the ARPA - internetwork system where the lower level module is the Internet - Protocol [1]. In most cases the following simple interface would be - adequate. - - - - - - - - - - - - - - [Page 49] - - - December 1979 -Transmission Control Protocol -Functional Specification - - - - The following two calls satisfy the requirements for the TCP to - internet protocol module communication: - - SEND (dest, TOS, TTL, BufPTR, len, Id, DF, options => result) - - where: - - dest = destination address - TOS = type of service - TTL = time to live - BufPTR = buffer pointer - len = length of buffer - Id = Identifier - DF = Don't Fragment - options = option data - result = response - OK = datagram sent ok - Error = error in arguments or local network error - - Note that the precedence is included in the TOS and the - security/compartment is passed as an option. - - RECV (BufPTR => result, source, dest, prot, TOS, len) - - where: - - BufPTR = buffer pointer - result = response - OK = datagram received ok - Error = error in arguments - source = source address - dest = destination address - prot = protocol - TOS = type of service - options = option data - len = length of buffer - - Note that the precedence is in the TOS, and the - security/compartment is an option. - - When the TCP sends a segment, it executes the SEND call supplying - all the arguments. The internet protocol module, on receiving - this call, checks the arguments and prepares and sends the - message. If the arguments are good and the segment is accepted by - the local network, the call returns successfully. If either the - arguments are bad, or the segment is not accepted by the local - network, the call returns unsuccessfully. On unsuccessful - returns, a reasonable report should be made as to the cause of the - - -[Page 50] - - -December 1979 - Transmission Control Protocol - Functional Specification - - - - problem, but the details of such reports are up to individual - implementations. - - When a segment arrives at the internet protocol module from the - local network, either there is a pending RECV call from TCP or - there is not. In the first case, the pending call is satisfied by - passing the information from the segment to the TCP. In the - second case, the TCP is notified of a pending segment. - - The notification of a TCP may be via a pseudo interrupt or similar - mechanism, as appropriate in the particular operating system - environment of the implementation. - - A TCP's RECV call may then either be immediately satisfied by a - pending segment, or the call may be pending until a segment - arrives. - - We note that the Internet Protocol provides arguments for a type - of service and for a time to live. TCP uses the following - settings for these parameters: - - Type of Service = Precedence: none, Package: stream, - Reliability: higher, Preference: speed, Speed: higher; or - 00011111. - - Time to Live = one minute, or 00111100. - - Note that the assumed maximum segment lifetime is two minutes. - Here we explicitly ask that a segment be destroyed if it - cannot be delivered by the internet system within one minute. - - - - - - - - - - - - - - - - - - - - - [Page 51] - - - December 1979 -Transmission Control Protocol -Functional Specification - - - -3.9. Event Processing - - The activity of the TCP can be characterized as responding to events. - The events that occur can be cast into three categories: user calls, - arriving segments, and timeouts. This section describes the - processing the TCP does in response to each of the events. In many - cases the processing required depends on the state of the connection. - - Events that occur: - - User Calls - - OPEN - SEND - RECEIVE - CLOSE - ABORT - STATUS - - Arriving Segments - - SEGMENT ARRIVES - - Timeouts - - USER TIMEOUT - RETRANSMISSION TIMEOUT - - The model of the TCP/user interface is that user commands receive an - immediate return and possibly a delayed response via an event or - pseudo interrupt. In the following descriptions, the term "signal" - means cause a delayed response. - - Error responses are given as character strings. For example, user - commands referencing connections that do not exist receive "error: - connection not open". - - Please note in the following that all arithmetic on sequence numbers, - acknowledgment numbers, windows, et cetera, is modulo 2**32 the size - of the sequence number space. Also note that "=<" means less than or - equal to. - - A natural way to think about processing incoming segments is to - imagine that they are first tested for proper sequence number (i.e., - that their contents lie in the range of the expected "receive window" - in the sequence number space) and then that they are generally queued - and processed in sequence number order. - - - -[Page 52] - - -December 1979 - Transmission Control Protocol - Functional Specification - - - - When a segment overlaps other already received segments we reconstruct - the segment to contain just the new data, and adjust the header fields - to be consistent. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Page 53] - - - December 1979 -Transmission Control Protocol -Functional Specification - OPEN Call - - - - OPEN Call - - CLOSED STATE (i.e., TCB does not exist) - - Create a new transmission control block (TCB) to hold connection - state information. Fill in local socket identifier, foreign - socket, precedence, security/compartment, and user timeout - information. Verify the security and precedence requested are - allowed for this user, if not return "error: precedence not - allowed" or "error: security/compartment not allowed." If active - and the foreign socket is unspecified, return "error: foreign - socket unspecified"; if active and the foreign socket is - specified, issue a SYN segment. An initial send sequence number - (ISS) is selected and a SYN segment of the form - is sent. Set SND.UNA to ISS, SND.NXT to ISS+1, SND.LBB to ISS+1, - enter SYN-SENT state, and return. - - If the caller does not have access to the local socket specified, - return "error: connection illegal for this process". If there is - no room to create a new connection, return "error: insufficient - resources". - - LISTEN STATE - SYN-SENT STATE - SYN-RECEIVED STATE - ESTABLISHED STATE - FIN-WAIT-1 STATE - FIN-WAIT-2 STATE - TIME-WAIT STATE - CLOSE-WAIT STATE - CLOSING STATE - - Return "error: connection already exists". - - - - - - - - - - - - - - - - -[Page 54] - - -December 1979 - Transmission Control Protocol - Functional Specification -SEND Call - - - - SEND Call - - CLOSED STATE (i.e., TCB does not exist) - - If the user should no have access to such a connection, then - return "error: connection illegal for this process". - - Otherwise, return "error: connection does not exist". - - LISTEN STATE - - If the foreign socket is specified, then change the connection - from passive to active, select an ISS, send a SYN segment, set - SND.UNA to ISS, SND.NXT to ISS+1 and SND.LBB to ISS+1. Enter - SYN-SENT state. Data associated with SEND may be sent with SYN - segment or queued for transmission after entering ESTABLISHED - state. The urgent bit if requested in the command should be sent - with the first data segment sent as a result of this command. If - there is no room to queue the request, respond with "error: - insufficient resources". If Foreign socket was not specified, - then return "error: foreign socket unspecified". - - SYN-SENT STATE - - Queue for processing after the connection is ESTABLISHED. - Typically, nothing can be sent yet, anyway, because the send - window has not yet been set by the other side. If no space, - return "error: insufficient resources". - - SYN-RECEIVED STATE - - Queue for later processing after entering ESTABLISHED state. If - no space to queue, respond with "error: insufficient resources". - - ESTABLISHED STATE - - Segmentize the buffer, send or queue it for output, with a - piggybacked acknowledgment (acknowledgment value = SND.UNA) with - the data (this is not required, but there is no advantage in not - doing so). If there is insufficient space to remember this - buffer, simply return "error: insufficient resources". - - If remote buffer size is not one octet, then, if this is the end - of a letter, do the following end-of-letter/buffer-size adjustment - processing: - - - - - [Page 55] - - - December 1979 -Transmission Control Protocol -Functional Specification - SEND Call - - - - if EOL = 0 then - - SND.NXT <- SEG.SEQ + SEG.LEN - - if EOL = 1 then - - While SND.LBB < SEG.SEQ + SEG.LEN - Do SND.LBB <- SND.LBB + SND.BS End - SND.NXT <- SND.LBB - - If the urgent flag is set, then SND.UP <- SND.NXT-1 and set the - urgent pointer in the outgoing segment. - - FIN-WAIT-1 STATE - FIN-WAIT-2 STATE - TIME-WAIT STATE - - Return "error: connection closing" and do not service request. - - CLOSE-WAIT STATE - - Segmentize any text to be sent and queue for output. If there is - insufficient space to remember the SEND, return "error: - insufficient resources" - - CLOSING STATE - - Respond with "error: connection closing" - - - - - - - - - - - - - - - - - - - - - -[Page 56] - - -December 1979 - Transmission Control Protocol - Functional Specification -RECEIVE Call - - - - RECEIVE Call - - CLOSED STATE (i.e., TCB does not exist) - - If the user should no have access to such a connection, return - "error: connection illegal for this process". - - Otherwise return "error: connection does not exist". - - LISTEN STATE - SYN-SENT STATE - SYN-RECEIVED STATE - - Queue for processing after entering ESTABLISHED state. If there - is no room to queue this request, respond with "error: - insufficient resources". - - ESTABLISHED STATE - - If insufficient incoming segments are queued to satisfy the - request, queue the request. If there is no queue space to - remember the RECEIVE, respond with "error: insufficient - resources". - - Reassemble queued incoming segments into receive buffer and return - to user. Mark "end of letter" (EOL) if this is the case. - - If RCV.UP is in advance of the data currently being passed to the - user notify the user of the presence of urgent data. - - When the TCP takes responsibility for delivering data to the user - that fact must be communicated to the sender via an - acknowledgment. The formation of such an acknowledgment is - described below in the discussion of processing an incoming - segment. - - FIN-WAIT-1 STATE - FIN-WAIT-2 STATE - - Reassemble and return a letter, or as much as will fit, in the - user buffer. Queue the request if it cannot be serviced - immediately. - - - - - - - - [Page 57] - - - December 1979 -Transmission Control Protocol -Functional Specification - RECEIVE Call - - - - TIME-WAIT STATE - CLOSE-WAIT STATE - - Since the remote side has already sent FIN, RECEIVEs must be - satisfied by text already reassembled, but not yet delivered to - the user. If no reassembled segment text is awaiting delivery, - the RECEIVE should get a "error: connection closing" response. - Otherwise, any remaining text can be used to satisfy the RECEIVE. - - CLOSING STATE - - Return "error: connection closing" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 58] - - -December 1979 - Transmission Control Protocol - Functional Specification -CLOSE Call - - - - CLOSE Call - - CLOSED STATE (i.e., TCB does not exist) - - If the user should no have access to such a connection, return - "error: connection illegal for this process". - - Otherwise, return "error: connection does not exist". - - LISTEN STATE - - Any outstanding RECEIVEs should be returned with "error: closing" - responses. Delete TCB, return "ok". - - SYN-SENT STATE - - Delete the TCB and return "error: closing" responses to any - queued SENDs, or RECEIVEs. - - SYN-RECEIVED STATE - - Queue for processing after entering ESTABLISHED state or - segmentize and send FIN segment. If the latter, enter FIN-WAIT-1 - state. - - ESTABLISHED STATE - - Queue this until all preceding SENDs have been segmentized, then - form a FIN segment and send it. In any case, enter FIN-WAIT-1 - state. - - FIN-WAIT-1 STATE - FIN-WAIT-2 STATE - - Strictly speaking, this is an error and should receive a "error: - connection closing" response. An "ok" response would be - acceptable, too, as long as a second FIN is not emitted (the first - FIN may be retransmitted though). - - - - - - - - - - - - [Page 59] - - - December 1979 -Transmission Control Protocol -Functional Specification - CLOSE Call - - - - TIME-WAIT STATE - - Strictly speaking, this is an error and should receive a "error: - connection closing" response. An "ok" response would be - acceptable, too. However, since the FIN has been sent and - acknowledged, nothing should be sent (or retransmitted). - - CLOSE-WAIT STATE - - Queue this request until all preceding SENDs have been - segmentized; then send a FIN segment, enter CLOSING state. - - CLOSING STATE - - Respond with "error: connection closing" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 60] - - -December 1979 - Transmission Control Protocol - Functional Specification -ABORT Call - - - - ABORT Call - - CLOSED STATE (i.e., TCB does not exist) - - If the user should no have access to such a connection, return - "error: connection illegal for this process". - - Otherwise return "error: connection does not exist". - - LISTEN STATE - - Any outstanding RECEIVEs should be returned with "error: - connection reset" responses. Delete TCB, return "ok". - - SYN-SENT STATE - - Delete the TCB and return "reset" responses to any queued SENDs, - or RECEIVEs. - - SYN-RECEIVED STATE - - Send a RST of the form: - - - - and return any unprocessed SENDs, or RECEIVEs with "reset" code, - delete the TCB. - - ESTABLISHED STATE - - Send a reset segment: - - - - All queued SENDs and RECEIVEs should be given "reset" responses; - all segments queued for transmission (except for the RST formed - above) or retransmission should be flushed, delete the TCB. - - - - - - - - - - - - - [Page 61] - - - December 1979 -Transmission Control Protocol -Functional Specification - ABORT Call - - - - FIN-WAIT-1 STATE - FIN-WAIT-2 STATE - - A reset segment (RST) should be formed and sent: - - - - Outstanding SENDs, RECEIVEs, CLOSEs, and/or segments queued for - retransmission, or segmentizing, should be flushed, with - "connection reset" notification to the user, delete the TCB. - - TIME-WAIT STATE - - Respond with "ok" and delete the TCB. - - CLOSE-WAIT STATE - - Flush any pending SENDs and RECEIVEs, returning "connection reset" - responses for them. Form and send a RST segment: - - - - Flush all segment queues and delete the TCB. - - CLOSING STATE - - Respond with "ok" and delete the TCB; flush any remaining segment - queues. If a CLOSE command is still pending, respond "error: - connection reset". - - - - - - - - - - - - - - - - - - - - -[Page 62] - - -December 1979 - Transmission Control Protocol - Functional Specification -STATUS Call - - - - STATUS Call - - CLOSED STATE (i.e., TCB does not exist) - - If the user should no have access to such a connection, return - "error: connection illegal for this process". - - Otherwise return "error: connection does not exist". - - LISTEN STATE - - Return "state = LISTEN", and the TCB pointer. - - SYN-SENT STATE - - Return "state = SYN-SENT", and the TCB pointer. - - SYN-RECEIVED STATE - - Return "state = SYN-RECEIVED", and the TCB pointer. - - ESTABLISHED STATE - - Return "state = ESTABLISHED", and the TCB pointer. - - FIN-WAIT-1 STATE - - Return "state = FIN-WAIT-1", and the TCB pointer. - - FIN-WAIT-2 STATE - - Return "state = FIN-WAIT-2", and the TCB pointer. - - TIME-WAIT STATE - - Return "state = TIME-WAIT and the TCB pointer. - - CLOSE-WAIT STATE - - Return "state = CLOSE-WAIT", and the TCB pointer. - - CLOSING STATE - - Return "state = CLOSING", and the TCB pointer. - - - - - - [Page 63] - - - December 1979 -Transmission Control Protocol -Functional Specification - SEGMENT ARRIVES - - - - SEGMENT ARRIVES - - If the state is CLOSED (i.e., TCB does not exist) then - - all data in the incoming segment is discarded. An incoming - segment containing a RST is discarded. An incoming segment not - containing a RST causes a RST to be sent in response. The - acknowledgment and sequence field values are selected to make the - reset sequence acceptable to the TCP that sent the offending - segment. - - If the ACK bit is off, sequence number zero is used, - - - - If the ACK bit is on, - - - - Return. - - If the state is LISTEN then - - first check for an ACK - - Any acknowledgment is bad if it arrives on a connection still in - the LISTEN state. An acceptable reset segment should be formed - for any arriving ACK-bearing segment, except another RST. The - RST should be formatted as follows: - - - - Return. - - An incoming RST should be ignored. Return. - - if there was no ACK then check for a SYN - - If the SYN bit is set, check the security. If the - security/compartment on the incoming segment does not exactly - match the security/compartment in the TCB then send a reset and - return and check the precedence. If the SEG.PRC is less than - the TCB.PRC then send a reset and return. If the SEG.PRC is - greater than the TCB.PRC then set TCB.PRC<-SEG.PRC. Now RCV.NXT - and RCV.LBB are set to SEG.SEQ+1, IRS is set to SEG.SEQ and any - other control or text should be queued for processing later. - ISS should be selected and a SYN segment sent of the form: - - -[Page 64] - - -December 1979 - Transmission Control Protocol - Functional Specification -SEGMENT ARRIVES - - - - - - SND.NXT and SND.LBB are set to ISS+1 and SND.UNA to ISS. The - connection state should be changed to SYN-RECEIVED. Note that - any other incoming control or data (combined with SYN) will be - processed in the SYN-RECEIVED state, but processing of SYN and - ACK should not be repeated. - - This segment may also include data and control bits (e.g., URG, - EOL) which were queued for transmission. - - if there was no SYN but there was other text or control - - Any other control or text-bearing segment (not containing SYN) - should have an ACK and thus would be discarded by the ACK - processing. An incoming RST segment could not be valid, since - it could not have been sent in response to anything sent by this - incarnation of the connection. So you are unlikely to get here, - but if you do, drop the segment, and return. - - If the state is SYN-SENT then - - first check for an ACK - - If SEG.ACK =< ISS, or SEG.ACK > SND.NXT, or the - security/compartment in the segment does not exactly match the - security/compartment in the TCB, or the precedence in the - segment is less than the precedence in the TCB, send a reset - - - - and discard the segment. Return. - - If SND.UNA =< SEG.ACK =< SND.NXT and the security/compartment - and precedence are acceptable then the ACK is acceptable. - SND.UNA should be advanced to equal SEG.ACK, and any segments on - the retransmission queue which are thereby acknowledged should - be removed. - - if the ACK is ok (or there is no ACK), check the RST bit - - If the RST bit is set then signal the user "error: connection - reset", enter CLOSED state, drop the segment, delete TCB, and - return. - - if the ACK is ok (or there is no ACK) and it was not a RST, check - the SYN bit - - - [Page 65] - - - December 1979 -Transmission Control Protocol -Functional Specification - SEGMENT ARRIVES - - - - If the SYN bit is on and the security/compartment and precedence - are acceptable then, RCV.NXT and RCV.LBB are set to SEG.SEQ+1, - IRS is set to SEG.SEQ. If SND.UNA > ISS (our SYN has been - ACKed), change the connection state to ESTABLISHED, otherwise - enter SYN-RECEIVED. In any case, form an ACK segment: - - - - and send it. Data or controls which were queued for - transmission may be included. - - If SEG.PRC is greater than TCB.PRC set TCB.PRC<-SEG.PRC. - - If there are other controls or text in the segment then continue - processing at the fifth step below where the URG bit is checked, - otherwise return. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 66] - - -December 1979 - Transmission Control Protocol - Functional Specification -SEGMENT ARRIVES - - - - Otherwise, - - first check sequence number - - SYN-RECEIVED STATE - ESTABLISHED STATE - FIN-WAIT-1 STATE - FIN-WAIT-2 STATE - TIME-WAIT STATE - CLOSE-WAIT STATE - CLOSING STATE - - Segments are processed in sequence. Initial tests on arrival - are used to discard old duplicates, but further processing is - done in SEG.SEQ order. If a segment's contents straddle the - boundary between old and new, only the new parts should be - processed. - - There are four cases for the acceptability test for an incoming - segment: - - Segment Receive Test - Length Window - ------- ------- ------------------------------------------- - - 0 0 SEG.SEQ = RCV.NXT - - 0 >0 RCV.NXT =< SEG.SEQ < RCV.NXT+RCV.WND - - >0 0 not acceptable - - >0 >0 RCV.NXT < SEG.SEQ+SEG.LEN =< RCV.NXT+RCV.WND - - Note that the test above guarantees that the last sequence - number used by the segment lies in the receive-window. If the - RCV.WND is zero, no segments will be acceptable, but special - allowance should be made to accept valid ACKs. - - If an incoming segment is not acceptable, an acknowledgment - should be sent in reply: - - - - If the incoming segment is unacceptable, drop it and return. - - - - - - [Page 67] - - - December 1979 -Transmission Control Protocol -Functional Specification - SEGMENT ARRIVES - - - - second check security and precedence - - If the security/compartment and precedence in the segment do not - exactly match the security/compartment and precedence in the TCB - then form a reset and return. - - Note this check is placed following the sequence check to prevent - a segment from an old connection between these parts with a - different security or precedence from causing an abort of the - current connection. - - third check the ACK field, - - SYN-RECEIVED STATE - - If the RST bit is off and SND.UNA < SEG.ACK =< SND.NXT then set - SND.UNA <- SEG.ACK, remove any acknowledged segments from the - retransmission queue, and enter ESTABLISHED state. - - If the segment acknowledgment is not acceptable, form a reset - segment, - - - - and send it, unless the incoming segment is an RST (or there is - no ACK), in which case, it should be discarded, then return. - - ESTABLISHED STATE - - If SND.UNA < SEG.ACK =< SND.NXT then, set SND.UNA <- SEG.ACK. - Any segments on the retransmission queue which are thereby - entirely acknowledged are removed. Users should receive - positive acknowledgments for buffers which have been SENT and - fully acknowledged (i.e., SEND buffer should be returned with - "ok" response). If the ACK is a duplicate, it can be ignored. - - If the segment passes the sequence number and acknowledgment - number tests, the send window should be updated. If - SND.WL =< SEG.SEQ, set SND.WND <- SEG.WND and set - SND.WL <- SEG.SEQ. - - If the remote buffer size is not one, then the - end-of-letter/buffer-size adjustment to sequence numbers may - have an effect on the next expected sequence number to be - acknowledged. It is possible that the remote TCP will - acknowledge with a SEG.ACK equal to a sequence number of an - - - -[Page 68] - - -December 1979 - Transmission Control Protocol - Functional Specification -SEGMENT ARRIVES - - - - octet that was skipped over at the end of a letter. This a mild - error on the remote TCPs part, but not cause for alarm. - - FIN-WAIT-1 STATE - FIN-WAIT-2 STATE - - In addition to the processing for the ESTABLISHED state, if the - retransmission queue is empty, the user's CLOSE can be - acknowledged ("ok") but do not delete the TCB. - - TIME-WAIT STATE - - The only thing that can arrive in this state is a retransmission - of the remote FIN. Acknowledge it, and restart the 2 MSL - timeout. - - CLOSE-WAIT STATE - CLOSING STATE - - Do the same processing as for the ESTABLISHED state. - - fourth check the RST bit, - - SYN-RECEIVED STATE - - If the RST bit is set then, if the segment has passed sequence - and acknowledgment tests, it is valid. If this connection was - initiated with a passive OPEN (i.e., came from the LISTEN - state), then return this connection to LISTEN state. The user - need not be informed. If this connection was initiated with an - active OPEN (i.e., came from SYN-SENT state) then the connection - was refused, signal the user "connection refused". In either - case, all segments on the retransmission queue should be - removed. - - ESTABLISHED - FIN-WAIT-1 - FIN-WAIT-2 - CLOSE-WAIT - CLOSING STATE - - If the RST bit is set then, any outstanding RECEIVEs and SEND - should receive "reset" responses. All segment queues should be - flushed. Users should also receive an unsolicited general - "connection reset" signal. Enter the CLOSED state, delete the - TCB, and return. - - - - [Page 69] - - - December 1979 -Transmission Control Protocol -Functional Specification - SEGMENT ARRIVES - - - - TIME-WAIT - - Enter the CLOSED state, delete the TCB, and return. - - fifth, check the SYN bit, - - SYN-RECEIVED - ESTABLISHED STATE - - If the SYN bit is set, check the segment sequence number against - the receive window. The segment sequence number must be in the - receive window; if not, ignore the segment. If the SYN is on - and SEG.SEQ = RCV.NXT-1, then everything is ok and no action is - needed; but if they are not equal, there is an error and a reset - must be sent. - - If a reset must be sent it is formed as follows: - - - - The connection must be aborted as if a RST had been received. - - FIN-WAIT STATE-1 - FIN-WAIT STATE-2 - TIME-WAIT STATE - CLOSE-WAIT STATE - CLOSING STATE - - This case should not occur, since a duplicate of the SYN which - started the current connection incarnation will have been - filtered in the SEG.SEQ processing. Other SYN's will have been - rejected by this test as well (see SYN processing for - ESTABLISHED state). - - sixth, check the URG bit, - - ESTABLISHED STATE - FIN-WAIT-1 STATE - FIN-WAIT-2 STATE - - If the URG bit is set, RCV.UP <- max(RCV.UP,SEG.UP), and signal - the user that the remote side has urgent data if the urgent - pointer (RCV.UP) is in advance of the data consumed. If the - user has already been signaled (or is still in the "urgent - mode") for this continuous sequence of urgent data, do not - signal the user again. - - - -[Page 70] - - -December 1979 - Transmission Control Protocol - Functional Specification -SEGMENT ARRIVES - - - - TIME-WAIT STATE - CLOSE-WAIT STATE - CLOSING - - This should not occur, since a FIN has been received from the - remote side. Ignore the URG. - - seventh, process the segment text, - - ESTABLISHED STATE - - Once in the ESTABLISHED state, it is possible to deliver segment - text to user RECEIVE buffers. Text from segments can be moved - into buffers until either the buffer is full or the segment is - empty. If the segment empties and carries an EOL flag, then the - user is informed, when the buffer is returned, that an EOL has - been received. - - If buffer size is not one octet, then do the following - end-of-letter/buffer-size adjustment processing: - - if EOL = 0 then - - RCV.NXT <- SEG.SEQ + SEG.LEN - - if EOL = 1 then - - While RCV.LBB < SEG.SEQ+SEG.LEN - Do RCV.LBB <- RCV.LBB + RCV.BS End - RCV.NXT <- RCV.LBB - - When the TCP takes responsibility for delivering the data to the - user it must also acknowledge the receipt of the data. Send an - acknowledgment of the form: - - - - This acknowledgment should be piggybacked on a segment being - transmitted if possible without incurring undue delay. - - - - - - - - - - - [Page 71] - - - December 1979 -Transmission Control Protocol -Functional Specification - SEGMENT ARRIVES - - - - FIN-WAIT-1 STATE - FIN-WAIT-2 STATE - - If there are outstanding RECEIVEs, they should be satisfied, if - possible, with the text of this segment; remaining text should - be queued for further processing. If a RECEIVE is satisfied, - the user should be notified, with "end-of-letter" (EOL) signal, - if appropriate. - - TIME-WAIT STATE - CLOSE-WAIT STATE - - This should not occur, since a FIN has been received from the - remote side. Ignore the segment text. - - eighth, check the FIN bit, - - Send an acknowledgment for the FIN. Signal the user "connection - closing", and return any pending RECEIVEs with same message. Note - that FIN implies EOL for any segment text not yet delivered to the - user. If the current state is ESTABLISHED, enter the CLOSE-WAIT - state. If the current state is FIN-WAIT-1, enter the CLOSING - state. If the current state is FIN-WAIT-2, enter the TIME-WAIT - state. - - and return. - - - - - - - - - - - - - - - - - - - - - - - -[Page 72] - - -December 1979 - Transmission Control Protocol - Functional Specification -USER TIMEOUT - - - - USER TIMEOUT - - For any state if the user timeout expires, flush all queues, signal - the user "error: connection aborted due to user timeout" in general - and for any outstanding calls, delete the TCB, and return. - - RETRANSMISSION TIMEOUT - - For any state if the retransmission timeout expires on a segment in - the retransmission queue, send the segment at the front of the - retransmission queue again, reinitialize the retransmission timer, - and return. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Page 73] - - - December 1979 -Transmission Control Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 74] - - -December 1979 - Transmission Control Protocol - - - - GLOSSARY - - - -1822 - BBN Report 1822, "The Specification of the Interconnection of - a Host and an IMP". The specification of interface between a - host and the ARPANET. - -ACK - A control bit (acknowledge) occupying no sequence space, which - indicates that the acknowledgment field of this segment - specifies the next sequence number the sender of this segment - is expecting to receive, hence acknowledging receipt of all - previous sequence numbers. - -ARPANET message - The unit of transmission between a host and an IMP in the - ARPANET. The maximum size is about 1012 octets (8096 bits). - -ARPANET packet - A unit of transmission used internally in the ARPANET between - IMPs. The maximum size is about 126 octets (1008 bits). - -buffer size - An option (buffer size) used to state the receive data buffer - size of the sender of this option. May only be sent in a - segment that also carries a SYN. - -connection - A logical communication path identified by a pair of sockets. - -datagram - A message sent in a packet switched computer communications - network. - -Destination Address - The destination address, usually the network and host - identifiers. - -EOL - A control bit (End of Letter) occupying no sequence space, - indicating that this segment ends a logical letter with the - last data octet in the segment. If this end of letter causes - a less than full buffer to be released to the user and the - connection buffer size is not one octet then the - end-of-letter/buffer-size adjustment to the receive sequence - number must be made. - - - - [Page 75] - - - December 1979 -Transmission Control Protocol -Glossary - - - -FIN - A control bit (finis) occupying one sequence number, which - indicates that the sender will send no more data or control - occupying sequence space. - -fragment - A portion of a logical unit of data, in particular an internet - fragment is a portion of an internet datagram. - -FTP - A file transfer protocol. - -header - Control information at the beginning of a message, segment, - fragment, packet or block of data. - -host - A computer. In particular a source or destination of messages - from the point of view of the communication network. - -Identification - An Internet Protocol field. This identifying value assigned - by the sender aids in assembling the fragments of a datagram. - -IMP - The Interface Message Processor, the packet switch of the - ARPANET. - -internet address - A source or destination address specific to the host level. - -internet datagram - The unit of data exchanged between an internet module and the - higher level protocol together with the internet header. - -internet fragment - A portion of the data of an internet datagram with an internet - header. - -IP - Internet Protocol. - -IRS - The Initial Receive Sequence number. The first sequence - number used by the sender on a connection. - - - - - -[Page 76] - - -December 1979 - Transmission Control Protocol - Glossary - - - -ISN - The Initial Sequence Number. The first sequence number used - on a connection, (either ISS or IRS). Selected on a clock - based procedure. - -ISS - The Initial Send Sequence number. The first sequence number - used by the sender on a connection. - -leader - Control information at the beginning of a message or block of - data. In particular, in the ARPANET, the control information - on an ARPANET message at the host-IMP interface. - -left sequence - This is the next sequence number to be acknowledged by the - data receiving TCP (or the lowest currently unacknowledged - sequence number) and is sometimes referred to as the left edge - of the send window. - -letter - A logical unit of data, in particular the logical unit of data - transmitted between processes via TCP. - -local packet - The unit of transmission within a local network. - -module - An implementation, usually in software, of a protocol or other - procedure. - -MSL - Maximum Segment Lifetime, the time a TCP segment can exist in - the internetwork system. - -octet - An eight bit byte. - -Options - An Option field may contain several options, and each option - may be several octets in length. The options are used - primarily in testing situations; for example, to carry - timestamps. Both the Internet Protocol and TCP provide for - options fields. - -packet - A package of data with a header which may or may not be - - - - [Page 77] - - - December 1979 -Transmission Control Protocol -Glossary - - - - logically complete. More often a physical packaging than a - logical packaging of data. - -port - The portion of a socket that specifies which logical input or - output channel of a process is associated with the data. - -process - A program in execution. A source or destination of data from - the point of view of the TCP or other host-to-host protocol. - -PSN - A Packet Switched Network. For example, the ARPANET. - -RCV.BS - receive buffer size, the remote buffer size - -RCV.LBB - receive last buffer beginning - -RCV.NXT - receive next sequence number - -RCV.UP - receive urgent pointer - -RCV.WND - receive window - -receive last buffer beginning - This is the sequence number of the first octet of the most - recent buffer. This value is use in calculating the next - sequence number when a segment contains an end of letter - indication. - -receive next sequence number - This is the next sequence number the local TCP is expecting to - receive. - -receive window - This represents the sequence numbers the local (receiving) TCP - is willing to receive. Thus, the local TCP considers that - segments overlapping the range RCV.NXT to - RCV.NXT + RCV.WND - 1 carry acceptable data or control. - Segments containing sequence numbers entirely outside of this - range are considered duplicates and discarded. - - - - -[Page 78] - - -December 1979 - Transmission Control Protocol - Glossary - - - -RST - A control bit (reset), occupying no sequence space, indicating - that the receiver should delete the connection without further - interaction. The receiver can determine, based on the - sequence number and acknowledgment fields of the incoming - segment, whether it should honor the reset command or ignore - it. In no case does receipt of a segment containing RST give - rise to a RST in response. - -RTP - Real Time Protocol: A host-to-host protocol for communication - of time critical information. - -Rubber EOL - An end of letter (EOL) requiring a sequence number adjustment - to align the beginning of the next letter on a buffer - boundary. - -SEG.ACK - segment acknowledgment - -SEG.LEN - segment length - -SEG.PRC - segment precedence value - -SEG.SEQ - segment sequence - -SEG.UP - segment urgent pointer field - -SEG.WND - segment window field - -segment - A logical unit of data, in particular a TCP segment is the - unit of data transfered between a pair of TCP modules. - -segment acknowledgment - The sequence number in the acknowledgment field of the - arriving segment. - -segment length - The amount of sequence number space occupied by a segment, - including any controls which occupy sequence space. - - - - [Page 79] - - - December 1979 -Transmission Control Protocol -Glossary - - - -segment sequence - The number in the sequence field of the arriving segment. - -send last buffer beginning - This is the sequence number of the first octet of the most - recent buffer. This value is use in calculating the next - sequence number when a segment contains an end of letter - indication. - -send sequence - This is the next sequence number the local (sending) TCP will - use on the connection. It is initially selected from an - initial sequence number curve (ISN) and is incremented for - each octet of data or sequenced control transmitted. - -send window - This represents the sequence numbers which the remote - (receiving) TCP is willing to receive. It is the value of the - window field specified in segments from the remote (data - receiving) TCP. The range of sequence numbers which may be - emitted by a TCP lies between SND.NXT and - SND.UNA + SND.WND - 1. - -SND.BS - send buffer size, the local buffer size - -SND.LBB - send last buffer beginning - -SND.NXT - send sequence - -SND.UNA - left sequence - -SND.UP - send urgent pointer - -SND.WL - send sequence number at last window update - -SND.WND - send window - -socket - An address which specifically includes a port identifier, that - is, the concatenation of an Internet Address with a TCP port. - - - -[Page 80] - - -December 1979 - Transmission Control Protocol - Glossary - - - -Source Address - The source address, usually the network and host identifiers. - -SYN - A control bit in the incoming segment, occupying one sequence - number, used at the initiation of a connection, to indicate - where the sequence numbering will start. - -TCB - Transmission control block, the data structure that records - the state of a connection. - -TCB.PRC - The precedence of the connection. - -TCP - Transmission Control Protocol: A host-to-host protocol for - reliable communication in internetwork environments. - -TOS - Type of Service, an Internet Protocol field. - -Type of Service - An Internet Protocol field which indicates the type of service - for this internet fragment. - -URG - A control bit (urgent), occupying no sequence space, used to - indicate that the receiving user should be notified to do - urgent processing as long as there is data to be consumed with - sequence numbers less than the value indicated in the urgent - pointer. - -urgent pointer - A control field meaningful only when the URG bit is on. This - field communicates the value of the urgent pointer which - indicates the data octet associated with the sending user's - urgent call. - - - - - - - - - - - - - [Page 81] - - - December 1979 -Transmission Control Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 82] - - -December 1979 - Transmission Control Protocol - - - - REFERENCES - - - -[1] Postel, J. (ed.), "DOD Standard Internet Protocol," Defense - Advanced Research Projects Agency, Information Processing - Techniques Office, IEN 123, December 1979. - -[2] Feinler, E. and J. Postel, ARPANET Protocol Handbook, Network - Information Center, Stanford Research Institute, Menlo Park, CA, - January 1978. - -[3] Dalal, Y. and C. Sunshine, "Connection Management in Transport - Protocols," Computer Networks, Vol. 2, No. 6, pp. 454-473, - December 1978. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Page 83] - - - December 1979 -Transmission Control Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 84] - diff --git a/text/ien/ien125.txt b/text/ien/ien125.txt deleted file mode 100644 index eb148654..00000000 --- a/text/ien/ien125.txt +++ /dev/null @@ -1,177 +0,0 @@ - - -IEN: 125 V. Cerf - ARPA - December 1979 - - PRE-EMPTION - - - -In circuit-switching systems, once a user has acquired a circuit, the -communication bandwidth of that circuit, is dedicated, even if it is not -used. When the system saturates, additional circuit set-up requests are -blocked. To allow high precedence users to gain access to circuit -resources, systems such as AUTOVON associate a precedence with each -telephone instrument. Those instruments with high precedence can -pre-empt circuit resources, causing lower precedence users to be cut -off. - -In message switching systems such as AUTODIN I, incoming traffic is -stored on disks (or drums or tape) and processed in order of -precedence. If a high precedence message is entered into the system, it -is processed and forwarded as quickly as possible. When the high -precedence message arrives at the destination message switch, it may -pre-empt the use of the output devices on the switch, interrupting the -printing of a lower precedence message. - -In packet switching systems, there is little or no storage in the -transport system so that precedence has little impact on delay for -processing a packet. However, when a packet switching system reaches -saturation, it rejects offered traffic. Precedence can be used in -saturated packet switched systems to sort traffic queued for entry into -the system. - -In general, precedence is a tool for deciding how to allocate resources -when systems are saturated. In circuit switched systems, the resource -is circuits; in message switched systems the resource is the message -switch processor; and in packet switching the resource is the packet -switching system itself. - -This capability can be realized in AUTODIN II without adding any new -mechanisms to TCP (except to make precedence of incoming connection -requests visible to the processes which use TCP). To allow pre-emptive -access to a particular terminal, the software (i.e., THP) which supports -terminal access to the TAC can be configured so as to always have a -LISTEN posted for that terminal, even if the terminal has a connection -in operation. For example in the ARPANET TENEX systems, the user TELNET -permits a user to have many connections open at one time - the user can -switch among them at will. To the extent that this can be done without -violating security requirements, one could imagine a multi-connection -THP which always leaves a LISTEN pending for incoming connection -requests. If a connection is established, the THP can decide, based on -its precedence, whether to pre-empt any existing connection and to -switch the user to the high precedence one. - - - - [Page 1] - - - December 1979 -Pre-Emption - - - -If the user is working with several connections of different precedence -at the same time, the THP would close or abort the lowest precedence -connection in favor of the higher precedence pre-empting one. Then the -THP would do a new LISTEN on that terminal's port in case a higher -priority connection is attempted. - -One of the reasons for suggesting this model is that processes are the -users of TCP (in general) and that TCP itself cannot cause processes to -be created on behalf of an incoming connection request. Implementations -could be realized in which TCPs accept incoming connection requests and, -based on the destination port number, create appropriate server -processes. In terms of pre-empting access to a remote terminal, -however, it seems more sensible to let the process which interfaces the -terminal to the system mediate the pre-emption. If the terminal is not -connected or is turned off, there is no point in creating a process to -serve the incoming high precedence connection request. - -For example, suppose a routine FTP is in operation between Host X and -Host Y. Host Z decides to do a flash-override FTP to Host X. It opens -a high precedence connection via its TCP and the "SYN" goes out to the -FTP port on Host X. - -FTP always leaves one LISTEN pending and to pre-empt lower precedence -remote users if it cannot serve one more user (and still keep a LISTEN -pending). In this way, the FTP is naturally in a state permitting the -high precedence connection request to be properly served, and the FTP -can initiate any cleaning up that is needed to deal with the -pre-emption. - -In general, this strategy permits the processes using TCP to accommodate -pre-emption in the context of the applications they support. - -A non-pre-emptable process is one that does not have a LISTEN pending -while it is serving on (or more) users. - -The actions taken to deal with pre-emption of TCP connections will be -application-process specific and this strategy of a second (or N+1st) -LISTEN is well suited to the situation. - -Pre-emption may also be necessary at the site initiating a high -precedence connection request. Suppose there is a high precedence user -who wants to open an FTP connection request from Host Z to Host X. But -all FTP and/or TCP resources are saturated when this user tries to start -the user FTP process. In this case, the operating system would have to -know about the precedence of the user and would have to locally pre-empt -resources on his behalf (e.g., by logging out lower precedence users). -This is a system issue, not specific only to TCP. Implementation of -pre-emption at the source could vary greatly. Precedence may be -associated with a user or with a terminal. The TCP implementation may - - -[Page 2] - - -December 1979 - Pre-Emption - - - -locally pre-empt resources to serve high precedence users. The -operating system may make all pre-emption decisions. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Page 3] - \ No newline at end of file diff --git a/text/ien/ien126.txt b/text/ien/ien126.txt deleted file mode 100644 index 9089cd7d..00000000 --- a/text/ien/ien126.txt +++ /dev/null @@ -1,709 +0,0 @@ - -IEN 126 Danny Cohen - U S C / I S I - November 1979 - - - - SUMMARY OF THE ARPA/ETHERNET COMMUNITY MEETING - - -On Thursday, October 18th, 1979, a meeting was held at Xerox-PARC to -discuss the support of ETHERNET based communication in the ARPA -sponsored internetwork environment (INE). - -The following participated in the meeting: - - - CMU (Bob Sproull) - - - ISI (Danny Cohen) - - - MIT-LCS (Dave Clark) - - - Stanford University (Forest Baskett, John Seamas, Bill Nowicki) - - - University of Rochester (Ed Burke) - - - Xerox-PARC (Ed Taft, Mike Schroeder, Ron Crane, John Shoch) - -It turned out that Caltech, which is another ARPA site, already has four -ALTOs and an Ethernet. They were not represented in this meeting, and -probably should be made part of this ARPA/Ethernet community. - -The group reached an agreement about the way to support both IP- and -PUP-based communication in such a way that the richness of both worlds -is preserved. This can be encapsulated in the following: when in -conflict, use IP as a transport (hence, lower level) protocol for PUP. - -A detailed discussion of this issue follows, in (A) below. - Page 2 - -One cannot over-emphasize that this effort is NOT aimed to provide an -automatic translation/conversion between the IP-based and the PUP-based -software, but to support coexistence and mutual support of both -communication regimes. Providing that conversion service is a noble -goal, but unfortunately is too complicated to be considered as a part of -this effort because it involves complicated technical issues like -addresses in a non-uniform set of internetwork environments. - -However, even though no automatic direct conversion is provided between -these regimes, a certain degree of compatibility and inter-operability -exists due to hosts which "talk" both "languages". This capability is -provided by the ability to transfer files back and forth between the IP- -and the PUP-worlds, to forward mail, to cascade TELNET connections, and -the like. - -In addition, the existence of PUP-based Xerox products (like Dovers, -ALTOs and Penguins) in the ARPA community requires, to a certain degree, -the ability to support PUP communication among sites which are already a -part of the IP-internet, without requiring them also to participate in -the PUP-internet. - -Basically the entire group agreed to work toward communication -compatibility and effort sharing. - -Since there is a great deal of commonality of both hardware and software -requirements among the sites, we expect to be able to share both -hardware and software efforts by exchanging and copying interface -designs, exchange of software, and the like. - -According to the proposed agreement, the IP-world and the PUP-world can -coexist in such a way that ARPA maintains complete control of the former -and Xerox-PARC of the latter. This control is the assignment of -network-IDs, updating of routing-tables, name-servers, etc. - -Ethernets may participate in the PUP-world, or serve just as private -local access systems, which are not part of any internetworking -environment. In either case, the Ethernets may be totally transparent -to the outside, while supporting traffic between IP-hosts, and no -symmetry is required between the communicating sites, i.e., a site -without an Ethernet does not have to be aware that the other site uses -an Ethernet for its local access. - -The following sections are: - - (A) A discussion of the proposed relation between the protocols, - - (B) The hardware/software components which will probably be - developed at individual sites and made available to other - participants. This is a tentative list and should not be - viewed as a firm commitment, and - - (C) The list of the participants, addresses, etc. - - Page 3 - -(A) IP/PUP Communication - - - -THE PROBLEM - -Support communication between Ethernet-based systems at different sites, -by using either the IP- or the PUP-based protocols, over the ARPA -sponsored InterNetwork Environment (INE). - -This is NOT intended to provide inter-operability of these protocols, -only their co-existence. - - - -APPROACH - -Both the IP and PUP assume that they are the sole level-1 internetwork -protocols. - -Since the ARPA-sponsored INE already has many gateways which are based -on IP, we chose to encapsulate PUP inside IP for traversing the INE. -Note that this doesn't exclude the dual, namely IP inside PUP. - -This encapsulation may be performed either by hosts or by gateways. - -The interaction between IP and PUP is based on the ability of each to -act as the transport for the other. - -This is a slight deviation from our previous simplistic notion of pure -hierarchy of protocols which allows the drawing of nice tree structures -with unique level-number to each protocol. Since both IP and PUP can be -either "above" or "below" the other -- strange loops [GEB] may result. - -It is important not to exclude the ability of each IP-host to have its -own unique IP-address, while each PUP-host has its own unique -PUP-address, if so desired, without excluding the ability to have both. - Page 4 - -DISCUSSION - -Sites which use mainly IP probably are better off by performing this -encapsulation by the hosts, and have a E-IP-A ("pure-IP") gateway. Here -"E" is the Ethernet protocol and "A" is the external transport net -protocol (e.g. ARPAnet) which is used to connect this site to the INE. - -Let's use the notation X" are considered as -arrows, note that they always point "down", to the lower level protocol -and do not indicate direction of flow. - -By using this notation the above gateway may be described as EA. -Again, the "arrows" do not indicate direction of flow, but indicate the -encapsulation/decapsulation of messages as they flow through this -gateway in either direction. - -According to the philosophy of IP both the "E" and the "A" are -considered as "local" even though "E" is a local access system and "A" -is a cross-country communication system. As a matter of fact, all -networks are considered as "local-networks" by this school of thought. - -In such sites the role of the Ethernet here is to be a local transport -(level-0) for the IP traffic. - -However, internal (intra-site) PUP traffic may avoid the IP entirely, -which is essential if Xerox black-boxes (e.g., Dovers and Penguins) are -used. Note that PUP traffic cannot leave this site unless it is -encapsulated in IP by the sending hosts. - -We refer to such sites as type S1. - -Sites with only PUP based traffic may choose to implement EIP>A -("pure-PUP") gateways. This frees the local hosts from dealing with IP. - -We expect that only Xerox sites may use such gateways. We refer to such -sites as type S2. - -Note that PUP traffic cannot be communicated between S1 and S2 easily. -It may be kluged but should be considered as not feasible due mainly to -addressing problems. - -Sites which have to communicate with both S1 and S2 sites have to -implement a combined IP+PUP gateways. These are the S12 type sites. -The gateways used by these sites are discussed in some detail later. - Page 5 - -MORE DISCUSSION - -An important notion is that even though PUP is always encapsulated in IP -while traversing the INE it may be performed by either the hosts (the S1 -way), or by the gateways (the S2 way). - -In the S1 way the IP-communication is addressed to the destination IP- -host (process). However, the PUP-communication inside it, if any, is -addressed to a PUP-process, using PUP-addresses. - -In the S2 way the PUP-communication is addressed to the PUP-process in -the source-gateway which is expected to perform its own routing to the -PUP-process in the gateway which is the re-entry point into the -PUP-world (or the exit point from the IP-world). The end-to-end -communication is addressed by its PUP-address. - -The S1 model treats the Ethernet as a local access scheme, while IP is -the internetworking regime. - -The S2 model treats the IP-INE as a single transporting network, while -PUP is the internetworking regime. - -Hence, it is not expected to support communication between S1 and S2. - -If we use [E(IP)] to represent an IP-message encapsulated inside an -Ethernet-message then the function of the S1-gateway is to perform the -following transformation: [E(IP)] <=> [A(IP)], where the direction of -the transformation depends on the direction of the flow, from the -Ethernet into the the ARPAnet, or vice versa. - -Hence, the function of the S2-gateway is [E(PUP)] <=> [A(IP(PUP))]. - -The S12 gateway is one which can operate in either of these modes. As a -matter of fact, there is one other mode of operation which is in some -use, treating the ARPAnet as a communication line (level-0) for PUP. - -This is done by encapsulating PUP directly in ARPAnet messages, and -using link-152 to designate this traffic. Note: no IP is involved. -This gateway function is represented by [E(PUP)] <=> [A(PUP)]. By the -way, the [A(IP)] traffic in the ARPAnet is designated by link-155. - -Hence, a general gateway, which uses an Ethernet for local access, has -to support the following: - - 1. [E(IP)] <=> [A(IP)] - Encapsulation of IP-messages in ARPANEt-messages. The - IP-address is that of the destination IP-process. - - 2. [E(PUP)] <=> [A(IP(PUP))] - Encapsulation of PUP-messages inside IP-messages, encapsulated - in ARPANet-messages. The PUP-address is that of the - destination host, the IP-address is that of the PUP-process in - the destination gateway which retrieves (performs the - decapsulation) of PUP from inside IP. - - 3. [E(PUP)] <=> [A(PUP)]. - Direct encapsulation of PUP-messages inside ARPAnet-messages. - Page 6 - -Using the previous notations, where "arrows" indicate the direction of -encapsulation/decapsulation for the two-way flow, the general IP+PUP -gateway can be described by the following diagram: - - ********** ****** ********** - * <--1-----------1--< * * * - * Ether- * ******* * IP >-1,2-> ARPA- * - --1,2,3--< net * * >--2--> * * net >--1,2,3-- - * <-2,3-< PUP * ****** * * - * * * >--3----------3--> * - ********** ******* ********** - -John Shoch observed that diagrams like this one (with or without the -arrows) may be viewed as if the lines represent messages and the boxes -represent processes, or as if the boxes represent messages and the lines -represent processes (encapsulation/decapsulation). - - - - -MORE DETAILS and EXAMPLES - -Let us consider communication between host-A at site-X and host-B at -site-Y, where at site-X there is an Ethernet whose PUP-address is S, and -at site-Y there is an Ethernet whose PUP-address is T. Here "host" is a -single process and a "site" is a set of hosts connected by a local -access scheme. - -Even though the ARPAnet is mentioned in all the following examples, one -should be able to notice that in most cases it represents any network -which supports IP, i.e., for which IP-gateways are implemented. Only -the LINKs mentioned below are actually ARPAnet specific. - -Let's examine the protocol-nestings and encapsulations for FTPs. - -(1) Encapsulation/decapsulation into IP, by hosts. - -Two case are discussed in some details, (1.1) transport of TCP-traffic, -and (1.2) transport of PUP-traffic. - -Obviously, the FTPs of (1.1) and (1.2) differ and cannot talk directly -to each other, but they can communicate indirectly via a file system, -such as MAXC's. - Page 7 - -(1.1) FTP above TCP, above IP. - -This is the case of IP communication, using the Ethernet and the ARPAnet -as part of the IP-INE. - -The sender, host-A, generates an IP-message of the form [IP(TCP(FTP))], -carrying the IP-address Y:B, which is encapsulated in the Ethernet -protocol for accessing the gateway. Hence, upon leaving host-A, the -message is [E(IP(TCP(FTP)))], with the Ethernet-address of the -IP-process in the gateway, by setting the Ethernet 8-bit address to that -of the Ethernet interface of gateway-X, and setting the PROTOCOL field -to the value 1001-octal, meaning IP-protocol. - -Upon receiving this message the Ethernet-process examines the value of -the PROTOCOL field and recognizes the message as an IP-message. It then -hands to the IP-process the message without the Ethernet header. This -is the decapsulation of the message from the Ethernet encapsulation. - -The IP-process finds that the IP-address of the destination is Y:B. -After checking its routing-tables the IP-process finds the ARPAnet -address of the first gateway along the INE-route to Y. It may happen -that this is also the final one, if Y is also connected directly to the -ARPAnet. - -Next, the IP-message is encapsulated in an ARPAnet-message, carrying the -ARPAnet-address of that gateway: [A(IP(TCP(FTP)))]. - -Upon arriving at the gateway of site-Y the local-net header is stripped -off. This local network is probably the ARPAnet, if Y is connected to -it directly, but may be any other network which supports IP. The -resulting IP-message is handed to the IP-process. - -Next, the IP-message is encapsulated again in an Ethernet-message, -addressed to host-B, [E(IP(TCP(FTP)))]. - -Upon arriving at host-B the Ethernet header is removed, and the -IP-message is recovered and handed to the IP process which hands it to -the TCP process, which hands it to the FTP process. - -Note that for this scheme to work it is not necessary for site-Y to have -the same type of local-access network (here the Ethernet) as site-X has, -or any other local network. - -Note also that in this case the Ethernet neither at site-X nor at site-Y -has to have a PUP-address, and it does not have to be considered as a -part of the PUP-based internetwork environment. - -In summary, the function of the gateway in this case is: - - [E(IP(TCP(FTP)))] <=> [A(IP(TCP(FTP)))]. - Page 8 - -(1.2) FTP above BSP above PUP, above IP. - -This is the case of PUP-communication, using host encapsulation of PUP- -messages inside IP-messages for transport through the IP-INE. - -The sender, host-A, generates a PUP-message of the form [PUP(BSP(FTP))], -and encapsulates it in the IP-message [IP(PUP(BSP(FTP)))] which carries -the IP-address Y:B, which is encapsulated in the Ethernet protocol for -accessing the gateway. Hence, upon leaving host-A, the message is -[E(IP(PUP(BSP(FTP))))], with the Ethernet-address of the IP-process in -the gateway, by setting the Ethernet 8-bit address to that of the -Ethernet interface of gateway-X, and setting the PROTOCOL field to the -value 1001-octal, meaning IP-protocol. - - In some sense, this Ethernet might not be managed as part of - the PUP-internet, but the hosts had better have valid PUP- - addresses; the destination process certainly has a PUP-address - -- that's why we're sending it PUP-messages! - - This raises the following question: how does the FTP process - in the PUP destination get the PUP-address to which it will - send its response? A possible answer is that the sender had - better have used a valid PUP-address, including a PUP-net - number. - - It is important to note that in this case the end processes - are still sending and receiving PUP-messages and must be - located within the PUP-internet address space, despite the - fact that the IP encapsulation is done in the end hosts. The - INE is being treated as a single PUP transport network, and - the end hosts are both on the same "network". - - The PUP-address within a network is only 8 bits, while an IP - address within any network is 24 bits. For now, we propose - that an ad-hoc mapping strategy be employed. Each IP host - that implements IP(PUP) encapsulation is assigned a unique PUP - host number within the IP "network". IP addresses are derived - from PUP-addresses by table lookup. The table is manually - maintained (by Xerox-PARC) limited to 256 entries. We expect - that only a few hosts will need to communicate in this manner. - -Upon receiving this message the Ethernet-process in the source-gateway -examines the value of the PROTOCOL field and recognizes the message as -an IP-message. It then hands to the IP-process the message without the -Ethernet header. This is the decapsulation of the message from the -Ethernet encapsulation. The IP-process finds that the IP-address of the -destination is Y:B. After checking its routing-tables the IP-process -finds the ARPAnet address of the first gateway along the INE-route to Y. -It may happen that this is also the final one, if Y is also connected -directly to the ARPAnet. - -Next, the IP-message is encapsulated in an ARPAnet-message, carrying the -ARPAnet-address of that gateway: [A(IP(PUP(BSP(FTP))))]. - Page 9 - -Upon arriving at the gateway of site-Y the local-net header is stripped -off. This local network is probably the ARPAnet, if Y is connected to -it directly, but may be any other network which supports IP. The -resulting IP-message is handed to the IP-process. - -Next, the IP-message is encapsulated again in an Ethernet-message, -addressed to host-B, [E(IP(PUP(BSP(FTP))))]. - -Upon arriving at host-B the Ethernet header is removed, and the -IP-message is recovered and handed to the PUP process which hands it to -the BSP process, which hands it to the FTP process. - -Note that for this scheme to work it is not necessary for site-Y to have -the same local-access network (here the Ethernet) as site-X has, or any -other local network. - -In summary, the function of the gateway in this case is: - - [E(IP(PUP(BSP(FTP))))] <=> [A(IP(PUP(BSP(FTP))))]. - - - - - -(2) Encapsulation/decapsulation into IP, by gateways. - -We consider a case of FTP above BSP, above PUP. - -This is the case of PUP-communication, using gateway encapsulation of -PUP-messages inside IP-messages for transport through the IP-INE. - -The sender, host-A, generates a PUP-message of the form [PUP(BSP(FTP))], -carrying the PUP-address T:B, which is encapsulated in the Ethernet -protocol for accessing the gateway. Hence, upon leaving host-A, the -message is [E(PUP(BSP(FTP)))], with the Ethernet-address of the -PUP-process in the gateway, by setting the Ethernet 8-bit address to -that of the Ethernet interface of gateway-X, and setting the PROTOCOL -field to the value 1000-octal, meaning PUP-protocol. - -Upon receiving this message the Ethernet-process examines the value of -the PROTOCOL field and recognizes the message as a PUP-message. It then -hands to the PUP-process the message without the Ethernet header. This -is the decapsulation of the message from the Ethernet encapsulation. -The PUP-process finds that the PUP-address of the destination is T:B. -After checking its routing-tables the PUP-process finds the PUP-address -of the gateway into PUP-network T, which is the PUP-process in the -gateway-Y. Then it encapsulates the PUP-message [PUP(BSP(FTP))], inside -the IP-message [IP(PUP(BSP(FTP)))]. The protocol field of this -IP-message is set to the value 14-octal to designate this message as a -PUP-message. - Page 10 - -Next, this IP-message is given to the IP-process with the IP-address of -the PUP-process in gateway-Y. After checking its routing-tables the -IP-process finds the ARPAnet address of the first gateway along the -INE-route to Y. As before, it may happen that this is also the final -one, if Y is also connected directly to the ARPAnet. - -Next, the IP-message is encapsulated in an ARPAnet-message, carrying the -ARPAnet-address of that gateway: [A(IP(PUP(BSP(FTP))))]. - -Upon arriving at the gateway of site-Y the local-net header is stripped -off. This local network is probably the ARPAnet, if Y is connected to -it directly, but may be any other network which support IP. The -resulting IP-message is handed to the IP-process which recognizes the -message as a PUP message (by the value 14-octal in its PROTOCOL field) -and hands it to the PUP-process of this gateway. - -However, if the network can support process-addressing, then the -IP-address of this message may be that of the PUP-process in the -destination gateway. Process-addressing is like addressing the -"fake-host"s in the ARPAnet, for example. In this case the PROTOCOL -field of the IP-header does not have to be used to be used at all. - -Note that there is some possible redundancy here, the message may be -both marked as a PUP-message and be addressed to the PUP-process. -Hence, it is possible to use only one of these two mechanisms, either -the IP-header's PROTOCOL field, or the ability to address directly -processes in gateways. - -The PUP-process has no trouble to figure the exact Ethernet-address of -the destination host, T:B. - -Next, the PUP-message is encapsulated again in an Ethernet-message, -addressed to host-B, [E(PUP(BSP(FTP)))]. - -Upon arriving at host-B the Ethernet header is removed, and the -PUP-message is recovered and handed to the BSP process which hands it to -the FTP process. - -Note that for such a scheme to work it is absolutely necessary for both -sites to have PUP supporting networks, like the Ethernet, for example. - -Note also that every gateway of the [E(PUP)] <=> [A(IP(PUP))] variety -must have a PUP-address in the "IP-network" as discussed in 1.2, page 8. -Furthermore, the gateways must implement the ability to broadcast PUP- -messages to all PUP-hosts (or at least to all other gateways) in the -"IP-network" so that PUP-routing information will propagate through that -"network". - -In summary, the function of the gateway in this case is: - - [E(PUP(BSP(FTP)))] <=> [A(IP(PUP(BSP(FTP))))]. - -Note that in this case, unlike the previous ones, there is a difference -in the level of nesting between the two sides of this expression. Why? - Page 11 - -(3) The standard PUP-internetwork gateway, treating the Ethernet and - ARPAnet as independent PUP transport networks. - -In this case FTP is implemented above BSP above PUP, in an ARPAnet host. - -This is the case of PUP-communication, using the Ethernet and the -ARPAnet as part of the PUP system. - -The sending host, A, generates an PUP-message of the form -[PUP(BSP(FTP))], carrying the PUP-address T:B, which is encapsulated in -the Ethernet protocol for accessing the gateway. Hence, upon leaving -host-A, the message is [E(PUP(BSP(FTP)))], with the Ethernet-address of -the PUP-process in the gateway, by setting the Ethernet 8-bit address to -that of the Ethernet interface of gateway-X, and setting the PROTOCOL -field to the value 1000-octal, meaning PUP-protocol. - -Upon receiving this message the PUP-process in the gateway removes the -Ethernet header (hence, decapsulates the message from the Ethernet -encapsulation) and finds the PUP-address of the destination, T:B. After -checking its routing tables the PUP-process finds the ARPAnet-address of -the gateway into PUP-network T, which is the PUP-process in the -gateway-Y, which is also directly on the ARPAnet. - -Then it encapsulates the PUP-message [PUP(BSP(FTP))] inside the ARPAnet- -message [A(PUP(BSP(FTP)))]. The LINK field of this ARPAnet-message is -set to the value 152 to designate this message as a PUP-message. - -Upon arriving at site-Y the message the ARPAnet-process recognizes it as -a PUP-message by the value of its LINK field (152), and gives it to the -PUP-process of this gateway. - -The PUP-process has no trouble to figure the exact Ethernet-address of -the destination host, T:B. - -Next, the PUP-message is encapsulated again in an Ethernet-message, -addressed to host-B, [E(PUP(BSP(FTP)))]. - -Upon arriving at host-B the Ethernet header is removed, and the -PUP-message is recovered and handed to the BSP process which hands it to -the FTP process. - -Note that both sites must have PUP gateways connected to the ARPAnet; -the end hosts themselves may be anywhere in the PUP-internet. All -communication in this case is pure-PUP, with no IP encapsulation -anywhere. - -By the way, the reason for having this type of gateway is to be able to -talk to MAXC via the ARPAnet. MAXC speaks only pure-PUP, not -IP-encapsulated PUP, and this isn't likely to change in the near future. - -In summary, the function of the gateway in this case is: - - [E(PUP(BSP(FTP)))] <=> [A(PUP(BSP(FTP)))]. - Page 12 - -A NOTE ABOUT LOCAL ADDRESSING - This section is independent of the - previous sections. One may accept - the previous recommendations without - accepting the recommendations of this - section. - -It is our feeling that local access scheme in general, and Ethernets in -particular, should NOT be treated as NETWORKS which are globally -registered in the InterNetwork directory of Networks. - -For sites (1) whose local access network (e.g., the Ethernet) is NOT a -registered network and does not have an Internetworkly known Network-ID, -issued by Jon Postel, and (2) are on the ARPAnet, it is proposed that -the 8-bit LOGICAL-ADDRESS field be used as their Ethernet-address. - -Since the new ARPAnet address (1822, 96-bit header) is in the same -format as the IP-address, this could result in a significant -simplification of the gateway implementation. -Hence, the proposed IP- and ARPAnet-address format is as follows: - -IP: |<--Network--->|<----- understood only by that network ----->| -ARPAnet: |<--Network--->| IMP |Physical host | Logical host | - +--------------+--------------+--------------+---------------+ - | ARPAnet='12 | IMP | INTERFACE | local address | - +--------------+--------------+--------------+---------------+ - 8 bits 8 bits 8 bits 8 bits - - (The ARPAnet format is conceptually as shown above, - physically it is different, obviously) - -The third field identifies the IMP/HOST-interface which is used for the -gateway. Traditionally it is called "physical-host", but it does not -identify the host, it identifies only the interface. - -Obviously, the 8-bits local address cannot be sufficient for a long -time, and sooner or later more bits will be needed to identify all the -local destinations. - -Thence, source routing should be used, in the same framework of protocol -nesting. It is important to recognize that this will happen, -eventually, and incorporate this concept in the design of current -software, even though it is not about to be implemented soon. - -Note that for sites which are connected to the INE this approach -interacts with the "multiple-homing" problem, whose solution is beyond -the scope of this note. - -The multiple-homing problem does not exist for sites which are connected -to the INE via a single gateway, like CMU for example. - Page 13 - -(B) Available Hardware/Software - -NOTE: this list is a tentative list of hardware and software components -which may be made available by some sites to other members of the group. -This should be treated as a tentative list, rather than a firm -commitment. It is always advisable to check with each group about the -status of these components before counting on them. - - - CMU will program a PDP11/34 to serve as an IP+PUP gateway - which is capable of performing the encapsulation of PUP inside - IP, hence being of type S12, being able to communicate both - with type-S1 and type-S2 sites. - - It is expected that most of the other sites will duplicate - this gateway by getting an 11/34 and importing the software - from CMU. - - - CMU may be able to implement the IP protocol in Dovers and - Penguins. PARC will help. - - - ISI will implement an efficient PDP10-KL/Ethernet interface. - - - ISI will implement a PDP11-based terminal concentrator - interfaced to an Ethernet. - - - MIT will probably implement IP (but probably not TCP) in MESA - for the ALTO. - - - SU will build microprocessor-based Ethernet interfaces, with - the MCS-68000 (or Z-8000) and the IEEE488 bus (GPIB) for the - HP3000, several HP300's and twelve IBM Series/1's. Also for a - VAX system. - - - SU will implement a microprocessor-based terminal concentrator - for the Ethernet. - - - SU plan to interface a PDP10-KL (SAIL) via the 11/40 console. - Probably the same for a PDP-KI (SUMEX), too. - - - PARC will be able to supply both TENEX and TOPS-20 code for - handling both raw-PUPs and byte-streams, also the higher level - PUP-based protocols such as FTP, EFTP, EMPRESS, PSPOOL, etc. - This does not include the level-0 handling which obviously - depends on the exact hardware interface. Since none of the - sites is expected to have the same Ethernet interface as MAXC - has, the level-0 help is not available. - Page 14 - - -(C) List of participants - - -CMU Bob Sproull 412-578-2621 Sproull@CMUA - -ISI Danny Cohen 213-822-1511 Cohen@ISIB - -MIT Dave Clark 617-253-6003 Clark@MIT-MULTICS - -Stanford Forest Baskett 415-497-1916 FB@SAIL - John Seamons 415-497-3236 Admin.jks@SCORE - Bill Nowicki 415-497-9437 CSD.Nowicki@SCORE - Ron Crane 415-494-4298 Crane@PARC - -U of Rochester Ed Burke 716-275-5671 Feldman@SUMEX-AIM - -Xerox-PARC Ed Taft 415-494-4419 Taft@PARC - Mike Schroeder 415-494-4463 Schroeder@PARC - Ron Crane 415-494-4298 Crane@PARC - John Shoch 415-494-4384 Shoch@PARC - - - -======================================================================== - -A personal comment: - -The main idea of traversing the ARPA-INE with [IP(PUP)] and the division -between host and gateway encapsulation was conceived during discussions -with Bob Sproull, at CMU. Bob deserves the credit for getting it right, -but should not be blamed for the details which I managed to mess up. - -The meeting summary was expanded to cover in detail several technical -issues (especially addressing) which were sketched in the meeting -without the details which are necessary to make it all work. Therefore, -putting this note together turned out to be a bigger effort than what -was expected. - -In addition, the note attempts to explain many issues and details in a -way which is (hopefully) clear even to the internetworking-naive reader. -Doing so was a substantial effort which could not have been done without -the help from Jon Postel and Carl Sunshine, and a tremendous help from -Ed Taft and John Shoch who pointed many issues, corrected many details -and rewrote several sections. Thank you all. - -======================================================================== - - - -All comments are welcome, - Cheers, - Danny. diff --git a/text/ien/ien127.txt b/text/ien/ien127.txt deleted file mode 100644 index 2b8a7393..00000000 --- a/text/ien/ien127.txt +++ /dev/null @@ -1,753 +0,0 @@ - - - - -Network Working Group J. Postel -Request for Comments: 762 USC-ISI -Internet Experiment Note: 127 January 1980 - -Obsoletes RFCs: 758, 755, -750,739, 604, 503, 433, 349 -Obsoletes IENs: 117, 93 - - - - ASSIGNED NUMBERS - - - - -This Network Working Group Request for Comments documents the currently -assigned values from several series of numbers used in network protocol -implementations. This RFC will be updated periodically, and in any case -current information can be obtained from Jon Postel. The assignment of -numbers is also handled by Jon. If you are developing a protocol or -application that will require the use of a link, socket, etc. please -contact Jon to receive a number assignment. - - Jon Postel - USC - Information Sciences Institute - 4676 Admiralty Way - Marina del Rey, California 90291 - - phone: (213) 822-1511 - - ARPANET mail: POSTEL@ISIE - -Most of the protocols mentioned here are documented in the RFC series of -notes. The more prominent and more generally used are documented in the -Protocol Handbook [1] prepared by the Network Information Center (NIC). -In the lists that follow a bracketed number, e.g. [1], off to the right -of the page indicates a reference for the listed protocol. - - - - - - - - - - - - - - -Postel [Page 1] - - -RFC 762 January 1980 -IEN 127 Assigned Numbers -Network Numbers - - - - ASSIGNED NETWORK NUMBERS - - This list of network numbers is used in the internetwork, the field - is 8 bits in size. - - Assigned Network Numbers - - Decimal Octal Name Network References - ------- ----- ---- ------- ---------- - 0 0 Reserved - 1 1 BBN-PR BBN Packet Radio Network - 2 2 SF-PR-1 SF Bay Area Packet Radio Network (1) - 3 3 BBN-RCC BBN RCC Network - 4 4 SATNET Atlantic Satellite Network - 5 5 SILL-PR Ft. Sill Packet Radio Network - 6 6 SF-PR-2 SF Bay Area Packet Radio Network (2) - 7 7 CHAOS MIT CHAOS Network - 8 10 CLARKNET SATNET subnet for Clarksburg - 9 11 BRAGG-PR Ft. Bragg Packet Radio Network - 10 12 ARPANET ARPANET [1,2] - 11 13 UCLNET University College London Network - 12 14 CYCLADES CYCLADES - 13 15 NPLNET National Physical Laboratory - 14 16 TELENET TELENET - 15 17 EPSS British Post Office EPSS - 16 20 DATAPAC DATAPAC - 17 21 TRANSPAC TRANSPAC - 18 22 LCSNET MIT LCS Network [37,38] - 19 23 TYMNET TYMNET - 20 24 DC-PR Washington D.C. Packet Radio Network - 21 25 EDN DCEC EDN - 22 26 DIALNET DIALNET [47,48] - 23 27 MITRE MITRE Cablenet [23] - 24 30 BBN-LOCAL BBN Local Network - 25 31 RSRE-PPSN RSRE / PPSN - 26 32 AUTODIN-II AUTODIN II - 27 33 NOSC-LCCN NOSC / LCCN - 28 34 WIDEBAND Wide Band Satellite Network - 29 35 DCN-COMSAT COMSAT Distributed Computing Network - 30 36 DCN-UCL UCL Distributed Computing Network - 31 37 BBN-SAT-TEST BBN SATNET Test Network - 32 40 UCL-CR1 UCL Cambridge Ring 1 - 33 41 UCL-CR2 UCL Cambridge Ring 2 - 34-254 42-376 Unassigned - 255 377 Reserved - - - - -Postel [Page 2] - - -RFC 762 January 1980 -IEN 127 Assigned Numbers -Internet Protocol Versions - - - - ASSIGNED INTERNET PROTOCOL VERSIONS - - In the Internet Protocol (IP) there is a field to identify the - version of the internetwork general protocol. This field is 4 bits - in size. - - Assigned Internet Protocol Versions - - Decimal Octal Version References - ------- ----- ------- ---------- - 0 0 March 1977 version [35] - 1 1 January 1978 version [36] - 2 2 February 1978 version A [42] - 3 3 February 1978 version B [43] - 4 4 August 1979 version 4 [44] - 5 5 ST Datagram Mode [45] - 6-14 6-16 Unassigned - 15 17 Reserved - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 3] - - -RFC 762 January 1980 -IEN 127 Assigned Numbers -Internet Protocol Numbers - - - - ASSIGNED INTERNET PROTOCOL NUMBERS - - In the Internet Protocol (IP) [44] there is a field to identify the - the next level protocol. This field is 8 bits in size. This field - is called Protocol in the IP header. - - Assigned Internet Protocol Numbers - - Decimal Octal Protocol Numbers References - ------- ----- ---------------- ---------- - 0 0 Reserved - 1 1 raw internet datagrams [44] - 2 2 TCP-3 [36] - 3 3 Gateway-to-Gateway [49] - 4 4 Gateway Monitoring Message [41] - 5 5 ST [45] - 6 6 TCP-4 [46] - 7 7 UCL - 8 10 DSP [37,38] - 9 11 Secure - 10 12 TCP-2 [35] - 11 13 NVP [39] - 12 14 PUP [55] - 13 15 Pluribus - 14 16 Telenet - 15 17 XNET - 16 20 Chaos - 17 21 User Datagram [50] - 18 22 Multiplexing [51] - 19-63 23-77 Unassigned - 64 100 EXPAK cumstats - 65 101 EXPAK PC messages - 66 102 Unassigned - 67 103 Gateway Monitoring - 68 104 Unassigned - 69 105 SIMP monitoring - 70 106 SIMP polling - 71 107 SIMP packet core/U - 72-76 110-114 Unassigned - 77 115 backroom SIMP polling - 78 116 backroom SIMP monitoring - 79 117 SIMP message generators - 80-254 120-376 Unassigned - 255 377 Reserved - - - - - -Postel [Page 4] - - -RFC 762 January 1980 -IEN 127 Assigned Numbers -Port or Socket Numbers - - - - ASSIGNED PORT or SOCKET NUMBERS - - Ports are used in the TCP [46] and sockets are used in the AHHP [1,3] - to name the ends of logical connections which carry long term - conversations. For the purpose of providing services to unknown - callers a service contact socket is defined. This list specifies the - port or socket used by the server process as its contact socket. In - the AHHP an Initial Connection Procedure ICP [1,34] is used between - the user process and the server process to make the initial contact - and establish the long term connections leaving the contact socket - free to handle other callers. In the TCP no ICP is necessary since a - port may engage in many simultaneous connections. - - Socket Assignments: - - General Assignments: - - Decimal Octal Description - ------- ----- ----------- - 0-63 0-77 Network Wide Standard Function - 64-127 100-177 Hosts Specific Functions - 128-223 200-337 Reserved for Future Use - 224-255 340-377 Any Experimental Function - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 5] - - -RFC 762 January 1980 -IEN 127 Assigned Numbers -Port or Socket Numbers - - - - Specific Assignments: - - Network Standard Functions - - Decimal Octal Description References - ------- ----- ----------- ---------- - 1 1 Old Telnet [6] - 3 3 Old File Transfer [7,8,9] - 5 5 Remote Job Entry [1,10] - 7 7 Echo [11] - 9 11 Discard [12] - 11 13 Who is on or SYSTAT - 13 15 Date and Time - 15 17 Who is up or NETSTAT - 17 21 Short Text Message - 19 23 Character generator or TTYTST [13] - 21 25 New File Transfer [1,14,15] - 23 27 New Telnet [1,16,17] - 25 31 Distributed Programming System [18,19] - 27 33 NSW User System w/COMPASS FE [20] - 29 35 MSG-3 ICP [21] - 31 37 MSG-3 Authentication [21] - 33 41 DPS ICP [18,19] - 35 43 IO Station Spooler - 37 45 Time Server [1,22] - 39 47 NSW User System w/SRI FE [20] - 41 51 Graphics [1,26] - 42 52 Name Server [52] - 43 53 WhoIs - 45 55 Internet Message Processing Module [53] - 47 57 NI FTP [54] - 49 61 RAND Network Graphics Conference [56] - 51 63 Simple Internet Mail - 53 65 AUTODIN II FTP [57] - 55-63 67-77 unassigned - - - - - - - - - - - - - - -Postel [Page 6] - - -RFC 762 January 1980 -IEN 127 Assigned Numbers -Port or Socket Numbers - - - - Host Specific Functions - - Decimal Octal Description References - ------- ----- ----------- ---------- - 65 101 unassigned - 67 103 Datacomputer at CCA [24] - 69 105 CPYNET - 71 107 NETRJS (EBCDIC) at UCLA-CCN [1,25] - 73 111 NETRJS (ASCII-68) at UCLA-CCN [1,25] - 75 113 NETRJS (ASCII-63) at UCLA-CCN [1,25] - 77 115 any private RJE server - 79 117 Name or Finger [1,40] - 81 121 Network BSYS - 83 123 MIT ML Device - 85 125 MIT ML Device - 86-94 126-136 unassigned - 95 137 SUPDUP [33] - 97 141 Datacomputer Status - 99 143 CADC - NIFTP via UCL - 101 145 NPL - NIFTP via UCL - 103 147 BNPL - NIFTP via UCL - 105 151 CAMBRIDGE - NIFTP via UCL - 107 153 HARWELL - NIFTP via UCL - 109 155 SWURCC - NIFTP via UCL - 111 157 ESSEX - NIFTP via UCL - 113 161 RUTHERFORD - NIFTP via UCL - 115-127 163-177 unassigned - - Reserved for Future Use - - Decimal Octal Description References - ------- ----- ----------- ---------- - 128-223 200-337 reserved - - - - - - - - - - - - - - - - -Postel [Page 7] - - -RFC 762 January 1980 -IEN 127 Assigned Numbers -Port or Socket Numbers - - - - Experimental Functions - - Decimal Octal Description References - ------- ----- ----------- ---------- - 224-231 340-347 unassigned - 232-237 350-355 Authorized Mailer at BBN - 239 357 unassigned - 241 361 NCP Measurement [27,28] - 243 363 Survey Measurement [28,29,30] - 245 365 LINK [31] - 247 367 TIPSRV - 249-255 371-377 RSEXEC [31,32] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 8] - - -RFC 762 January 1980 -IEN 127 Assigned Numbers -Link Numbers - - - - ASSIGNED LINK NUMBERS - - The word "link" here refers to a field in the original ARPANET - Host/IMP interface leader. The link was originally defined as an 8 - bit field. Some time after the ARPANET Host-to-Host (AHHP) protocol - was defined and, by now, some time ago the definition of this field - was changed to "Message-ID" and the length to 12 bits. The name link - now refers to the high order 8 bits of this 12 bit message-id field. - The low order 4 bits of the message-id field are to be zero unless - specifically specified otherwise for the particular protocol used on - that link. The Host/IMP interface is defined in BBN report 1822 [2]. - - Link Assignments: - - Decimal Octal Description References - ------- ----- ----------- ---------- - 0 0 AHHP Control Messages [1,3] - 1 1 Reserved - 2-71 2-107 AHHP Regular Messages [1,3] - 72-151 110-227 Reserved - 152 230 PARC Universal Protocol - 153 231 TIP Status Reporting - 154 232 TIP Accounting - 155-158 233-236 Internet Protocol [44] - 159-191 237-277 Measurements [28] - 192-195 300-303 Message Switching Protocol [4,5] - 196-255 304-377 Experimental Protocols - 224-255 340-377 NVP [1,39] - 248-255 370-377 Network Maintenance - - - - - - - - - - - - - - - - - - - - -Postel [Page 9] - - -RFC 762 January 1980 -IEN 127 Assigned Numbers -References - - - - REFERENCES - - [1] Feinler, E. and J. Postel, eds., "ARPANET Protocol Handbook," - NIC 7104, for the Defense Communications Agency by SRI - International, Menlo Park, California, Revised January 1978. - - [2] BBN, "Specifications for the Interconnection of a Host and an - IMP," Report 1822, Bolt Beranek and Newman, Cambridge, - Massachusetts, May 1978. - - [3] McKenzie,A. "Host/Host Protocol for the ARPA Network," - NIC 8246, January 1972. Also in [1]. - - [4] Walden, D. " A System for Interprocess Communication in a - Resource Sharing Network," RFC 62, NIC 4962, 3 August 1970. - Also published in Communications of the ACM, volume 15, - number 4, April 1972. - - [5] Bressler, B. "A Proposed Experiment with a Message Switching - Protocol," RFC 333, NIC 9926, 15 May 72. - - [6] Postel, J. "Telnet Protocol," RFC 318, NIC 9348, 3 April 1972. - - [7] McKenzie, A. "File Transfer Protocol," RFC 454, NIC 14333, - 16 February 1973. - - [8] Clements, R. "FTPSRV -- Extensions for Tenex Paged Files," - RFC 683, NIC 32251, 3 April 1975. Also in [1]. - - [9] Harvey, B. "One More Try on the FTP," RFC 691, NIC 32700, - 6 June 1975. - - [10] Bressler, B. "Remote Job Entry Protocol," RFC 407, NIC 12112, - 16 October 72. Also in [1]. - - [11] Postel, J. "Echo Process," RFC 347, NIC 10426, 30 May 1972. - - [12] Postel, J. "Discard Process," RFC 348, NIC 10427, - 30 May 1972. - - [13] Postel, J. "Character Generator Process," RFC 429, NIC 13281, - 12 December 1972. - - [14] Neigus, N. "File Transfer Protocol," RFC 542, NIC 17759, - 12 July 1973. Also in [1]. - - - - -Postel [Page 10] - - -RFC 762 January 1980 -IEN 127 Assigned Numbers -References - - - - [15] Postel, J. "Revised FTP Reply Codes," RFC 640, NIC 30843, - 5 June 1974. Also in [1]. - - [16] McKenzie, A. "Telnet Protocol Specification," NIC 18639, - August 1973. Also in [1]. - - [17] McKenzie, A. "Telnet Option Specification," NIC 18640, - August 1973. Also in [1]. - - [18] White, J. "A High Level Framework for Network-Based Resource - Sharing," RFC 707, NIC 34263, 14 January 1976. Also in NCC - Proceedings, AFIPS, June 1976. - - [19] White, J. "Elements of a Distributed Programming System," - RFC 708, NIC 34353, 28 January 1976. - - [20] COMPASS. "Semi-Annual Technical Report," CADD-7603-0411, - Massachusetts Computer Associates, 4 March 1976. Also as, - "National Software Works, Status Report No. 1," - RADC-TR-76-276, Volume 1, September 1976. And COMPASS. "Second - Semi-Annual Report," CADD-7608-1611, Massachusetts Computer - Associates, 16 August 1976. - - [21] NSW Protocol Committee, "MSG: The Interprocess Communication - Facility for the National Software Works," CADD-7612-2411, - Massachusetts Computer Associates, BBN 3237, Bolt Beranek and - Newman, Revised 24 December 1976. - - [22] Harrenstien, K. "Time Server," RFC 738, NIC 42218, - 31 October 1977. Also in [1]. - - [23] Skelton, A., S. Holmgren, and D. Wood, "The MITRE Cablenet - Project," IEN 96, April 1979. - - [24] CCA, "Datacomputer Version 5/4 User Manual," Computer - Corporation of America, August 1979. - - [25] Braden, R. "NETRJS Protocol," RFC 740, NIC 42423, - 22 November 1977. Also in [1]. - - [26] Sproull, R, and E. Thomas. "A Networks Graphics Protocol," - NIC 24308, 16 August 1974. Also in [1]. - - [27] Cerf, V., "NCP Statistics," RFC 388, NIC 11360, - 23 August 1972. - - - - -Postel [Page 11] - - -RFC 762 January 1980 -IEN 127 Assigned Numbers -References - - - - [28] Cerf, V., "Formation of a Network Measurement Group (NMG)," - RFC 323, NIC 9630, 23 March 1972. - - [29] Bhushan, A., "A Report on the Survey Project," RFC 530, - NIC 17375, 22 June 1973. - - [30] Cantor, D., "Storing Network Survey Data at the Datacomputer," - RFC 565, NIC 18777, 28 August 1973. - - [31] Bressler, R., "Inter-Entity Communication -- An Experiment," - RFC 441, NIC 13773, 19 January 1973. - - [32] Thomas, R. "A Resource Sharing Executive for the ARPANET," - AFIPS Conference Proceedings, 42:155-163, NCC, 1973. - - [33] Crispin, M. "SUPDUP Protocol," RFC 734, NIC 41953, - 7 October 1977. Also in [1]. - - [34] Postel, J. "Official Initial Connection Protocol," NIC 7101, - 11 June 1971. Also in [1]. - - [35] Cerf, V. "Specification of Internet Transmission Control - Program -- TCP (version 2)," March 1977. - - [36] Cerf, V. and J. Postel, "Specification of Internetwork - Transmission Control Program -- TCP Version 3," - USC/Information Sciences Institute, January 1978. - - [37] Reed, D. "Protocols for the LCS Network," Local Network Note - 3, Laboratory for Computer Science, MIT, 29 November 1976. - - [38] Clark, D. "Revision of DSP Specification," Local Network Note - 9, Laboratory for Computer Science, MIT, 17 June 1977. - - [39] Cohen, D. "Specifications for the Network Voice Protocol - (NVP)," NSC Note 68, 29 January 1976. Also as USC/Information - Sciences Institute RR-75-39, March 1976, and as RFC 741, - NIC 42444, 22 November 1977. Also in [1]. - - [40] Harrenstien, K. "Name/Finger," RFC 742, NIC 42758, - 30 December 1977. Also in [1]. - - [41] Cole, J. "Gateway Monitoring Messages," BBN, 1 February 1978. - - [42] Postel, J. "Draft Internetwork Protocol Specification -- - Version 2," USC/Information Sciences Institute, February 1978. - - - -Postel [Page 12] - - -RFC 762 January 1980 -IEN 127 Assigned Numbers -References - - - - [43] Cerf, V. "A Proposed New Internet Header Format," Advanced - Research Projects Agency, IEN 26, 14 February 1978. - - [44] Postel, J. "DOD Standard Internet Protocol," IEN-128, - USC/Information Sciences Institute, January 1980. - - [45] Forgie, J. "ST - A Proposed Internet Stream Protocol," - IEN-119, M.I.T. Lincoln Laboratory, September 1979. - - [46] Postel, J., ""DOD Standard Transmission Control Protocol," - IEN-129, USC/Information Sciences Institute, January 1980. - - [47] McCarthy, J. and L. Earnest, "DIALNET," Stanford University - Artificial Intelligence Laboratory, Undated. - - [48] Crispin, M. and I. Zabala, "DIALNET Protocols," Stanford - University Artificial Intelligence Laboratory, July 1978. - - [49] Strazisar, V., "How to Build a Gateway," IEN-109, Bolt Berenak - and Newman, August 1979. - - [50] Postel, J., "User Datagram Protocol," IEN-88, USC/Information - Sciences Institute, May 1979. - - [51] Cohen, D. and J. Postel, "Multiplexing Protocol," IEN-90, - USC/Information Sciences Institute, May 1979. - - [52] Postel, J., "Name Server," IEN-116, USC/Information Sciences - Institute, August 1979. - - [53] Postel, J., "Internet Message Protocol," RFC-759, IEN-113, - USC/Information Sciences Institute, August 1979. - - [54] The High Level Protocol Group, "A Network Independent File - Transfer Protocol," INWG Protocol Note 86, December 1977. - - [55] Boggs, D., J. Shoch, E. Taft, and R. Metcalfe, "PUP: An - Internetwork Architecture," XEROX Palo Alto Research Center, - CSL-79-10, July 1979. - - [56] O'Brien, M., "A Network Graphical Conferencing System," RAND - Corporation, N-1250-ARPA, August 1979. - - [57] Forsdick, H., and A. McKenzie, "FTP Functional Specification," - Bolt Beranek and Newman, Report 4051, August 1979. - - - - -Postel [Page 13] - diff --git a/text/ien/ien128.txt b/text/ien/ien128.txt deleted file mode 100644 index e20fbf0b..00000000 --- a/text/ien/ien128.txt +++ /dev/null @@ -1,2707 +0,0 @@ - - -RFC: 760 -IEN: 128 - - - - - - - - DOD STANDARD - - INTERNET PROTOCOL - - - - January 1980 - - - - - - - - - - - - - - - - prepared for - - Defense Advanced Research Projects Agency - Information Processing Techniques Office - 1400 Wilson Boulevard - Arlington, Virginia 22209 - - - - - - - - by - - Information Sciences Institute - University of Southern California - 4676 Admiralty Way - Marina del Rey, California 90291 - -January 1980 - Internet Protocol - - - - TABLE OF CONTENTS - - PREFACE ........................................................ iii - -1. INTRODUCTION ..................................................... 1 - - 1.1 Motivation .................................................... 1 - 1.2 Scope ......................................................... 1 - 1.3 Interfaces .................................................... 1 - 1.4 Operation ..................................................... 2 - -2. OVERVIEW ......................................................... 5 - - 2.1 Relation to Other Protocols ................................... 5 - 2.2 Model of Operation ............................................ 5 - 2.3 Function Description .......................................... 7 - -3. SPECIFICATION ................................................... 11 - - 3.1 Internet Header Format ....................................... 11 - 3.2 Discussion ................................................... 21 - 3.3 Examples & Scenarios ......................................... 30 - 3.4 Interfaces ................................................... 34 - -GLOSSARY ............................................................ 37 - -REFERENCES .......................................................... 41 - - - - - - - - - - - - - - - - - - - - - - - - - [Page i] - - - January 1980 -Internet Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page ii] - - -January 1980 - Internet Protocol - - - - PREFACE - - - -This document specifies the DoD Standard Internet Protocol. This -document is based on five earlier editions of the ARPA Internet Protocol -Specification, and the present text draws heavily from them. There have -been many contributors to this work both in terms of concepts and in -terms of text. This edition revises the details security, -compartmentation, and precedence features of the internet protocol. - - Jon Postel - - Editor - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Page iii] - - -January 1980 -RFC: 760 -IEN: 128 -Replaces: IENs 123, 111, -80, 54, 44, 41, 28, 26 - - DOD STANDARD - - INTERNET PROTOCOL - - - - 1. INTRODUCTION - -1.1. Motivation - - The Internet Protocol is designed for use in interconnected systems of - packet-switched computer communication networks. Such a system has - been called a "catenet" [1]. The internet protocol provides for - transmitting blocks of data called datagrams from sources to - destinations, where sources and destinations are hosts identified by - fixed length addresses. The internet protocol also provides for - fragmentation and reassembly of long datagrams, if necessary, for - transmission through "small packet" networks. - -1.2. Scope - - The internet protocol is specifically limited in scope to provide the - functions necessary to deliver a package of bits (an internet - datagram) from a source to a destination over an interconnected system - of networks. There are no mechanisms to promote data reliability, - flow control, sequencing, or other services commonly found in - host-to-host protocols. - -1.3. Interfaces - - This protocol is called on by host-to-host protocols in an internet - environment. This protocol calls on local network protocols to carry - the internet datagram to the next gateway or destination host. - - For example, a TCP module would call on the internet module to take a - TCP segment (including the TCP header and user data) as the data - portion of an internet datagram. The TCP module would provide the - addresses and other parameters in the internet header to the internet - module as arguments of the call. The internet module would then - create an internet datagram and call on the local network interface to - transmit the internet datagram. - - In the ARPANET case, for example, the internet module would call on a - local net module which would add the 1822 leader [2] to the internet - datagram creating an ARPANET message to transmit to the IMP. The - ARPANET address would be derived from the internet address by the - local network interface and would be the address of some host in the - ARPANET, that host might be a gateway to other networks. - - - [Page 1] - - - January 1980 -Internet Protocol -Introduction - - - -1.4. Operation - - The internet protocol implements two basic functions: addressing and - fragmentation. - - The internet modules use the addresses carried in the internet header - to transmit internet datagrams toward their destinations. The - selection of a path for transmission is called routing. - - The internet modules use fields in the internet header to fragment and - reassemble internet datagrams when necessary for transmission through - "small packet" networks. - - The model of operation is that an internet module resides in each host - engaged in internet communication and in each gateway that - interconnects networks. These modules share common rules for - interpreting address fields and for fragmenting and assembling - internet datagrams. In addition, these modules (especially in - gateways) may have procedures for making routing decisions and other - functions. - - The internet protocol treats each internet datagram as an independent - entity unrelated to any other internet datagram. There are no - connections or logical circuits (virtual or otherwise). - - The internet protocol uses four key mechanisms in providing its - service: Type of Service, Time to Live, Options, and Header Checksum. - - The Type of Service is used to indicate the quality of the service - desired; this may be thought of as selecting among Interactive, Bulk, - or Real Time, for example. The type of service is an abstract or - generalized set of parameters which characterize the service choices - provided in the networks that make up the internet. This type of - service indication is to be used by gateways to select the actual - transmission parameters for a particular network, the network to be - used for the next hop, or the next gateway when routing an internet - datagram. - - The Time to Live is an indication of the lifetime of an internet - datagram. It is set by the sender of the datagram and reduced at the - points along the route where it is processed. If the time to live - reaches zero before the internet datagram reaches its destination, the - internet datagram is destroyed. The time to live can be thought of as - a self destruct time limit. - - The Options provide for control functions needed or useful in some - situations but unnecessary for the most common communications. The - - - -[Page 2] - - -January 1980 - Internet Protocol - Introduction - - - - options include provisions for timestamps, error reports, and special - routing. - - The Header Checksum provides a verification that the information used - in processing internet datagram has been transmitted correctly. The - data may contain errors. If the header checksum fails, the internet - datagram is discarded at once by the entity which detects the error. - - The internet protocol does not provide a reliable communication - facility. There are no acknowledgments either end-to-end or - hop-by-hop. There is no error control for data, only a header - checksum. There are no retransmissions. There is no flow control. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Page 3] - - - January 1980 -Internet Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 4] - - -January 1980 - Internet Protocol - - - - 2. OVERVIEW - -2.1. Relation to Other Protocols - - The following diagram illustrates the place of the internet protocol - in the protocol hierarchy: - - - +------+ +-----+ +-----+ +-----+ - |Telnet| | FTP | |Voice| ... | | - +------+ +-----+ +-----+ +-----+ - | | | | - +-----+ +-----+ +-----+ - | TCP | | RTP | ... | | - +-----+ +-----+ +-----+ - | | | - +-------------------------------+ - | Internet Protocol | - +-------------------------------+ - | - +---------------------------+ - | Local Network Protocol | - +---------------------------+ - | - - - - Protocol Relationships - - Figure 1. - - Internet protocol interfaces on one side to the higher level - host-to-host protocols and on the other side to the local network - protocol. - -2.2. Model of Operation - - The model of operation for transmitting a datagram from one - application program to another is illustrated by the following - scenario: - - We suppose that this transmission will involve one intermediate - gateway. - - The sending application program prepares its data and calls on its - local internet module to send that data as a datagram and passes the - destination address and other parameters as arguments of the call. - - The internet module prepares a datagram header and attaches the data - - - [Page 5] - - - January 1980 -Internet Protocol -Overview - - - - to it. The internet module determines a local network address for - this internet address, in this case it is the address of a gateway. - It sends this datagram and the local network address to the local - network interface. - - The local network interface creates a local network header, and - attaches the datagram to it, then sends the result via the local - network. - - The datagram arrives at a gateway host wrapped in the local network - header, the local network interface strips off this header, and - turns the datagram over to the internet module. The internet module - determines from the internet address that the datagram should be - forwarded to another host in a second network. The internet module - determines a local net address for the destination host. It calls - on the local network interface for that network to send the - datagram. - - This local network interface creates a local network header and - attaches the datagram sending the result to the destination host. - - At this destination host the datagram is stripped of the local net - header by the local network interface and handed to the internet - module. - - The internet module determines that the datagram is for an - application program in this host. It passes the data to the - application program in response to a system call, passing the source - address and other parameters as results of the call. - - - Application Application - Program Program - \ / - Internet Module Internet Module Internet Module - \ / \ / - LNI-1 LNI-1 LNI-2 LNI-2 - \ / \ / - Local Network 1 Local Network 2 - - - - Transmission Path - - Figure 2 - - - - - -[Page 6] - - -January 1980 - Internet Protocol - Overview - - - -2.3. Function Description - - The function or purpose of Internet Protocol is to move datagrams - through an interconnected set of networks. This is done by passing - the datagrams from one internet module to another until the - destination is reached. The internet modules reside in hosts and - gateways in the internet system. The datagrams are routed from one - internet module to another through individual networks based on the - interpretation of an internet address. Thus, one important mechanism - of the internet protocol is the internet address. - - In the routing of messages from one internet module to another, - datagrams may need to traverse a network whose maximum packet size is - smaller than the size of the datagram. To overcome this difficulty, a - fragmentation mechanism is provided in the internet protocol. - - Addressing - - A distinction is made between names, addresses, and routes [3]. A - name indicates what we seek. An address indicates where it is. A - route indicates how to get there. The internet protocol deals - primarily with addresses. It is the task of higher level (i.e., - host-to-host or application) protocols to make the mapping from - names to addresses. The internet module maps internet addresses to - local net addresses. It is the task of lower level (i.e., local net - or gateways) procedures to make the mapping from local net - addresses to routes. - - Addresses are fixed length of four octets (32 bits). An address - begins with a one octet network number, followed by a three octet - local address. This three octet field is called the "rest" field. - - Care must be taken in mapping internet addresses to local net - addresses; a single physical host must be able to act as if it were - several distinct hosts to the extent of using several distinct - internet addresses. A host should also be able to have several - physical interfaces (multi-homing). - - That is, a host should be allowed several physical interfaces to the - network with each having several logical internet addresses. - - Examples of address mappings may be found in reference [4]. - - Fragmentation - - Fragmentation of an internet datagram may be necessary when it - originates in a local net that allows a large packet size and must - - - - [Page 7] - - - January 1980 -Internet Protocol -Overview - - - - traverse a local net that limits packets to a smaller size to reach - its destination. - - An internet datagram can be marked "don't fragment." Any internet - datagram so marked is not to be internet fragmented under any - circumstances. If internet datagram marked don't fragment cannot be - delivered to its destination without fragmenting it, it is to be - discarded instead. - - Fragmentation, transmission and reassembly across a local network - which is invisible to the internet protocol module is called - intranet fragmentation and may be used [5]. - - The internet fragmentation and reassembly procedure needs to be able - to break a datagram into an almost arbitrary number of pieces that - can be later reassembled. The receiver of the fragments uses the - identification field to ensure that fragments of different datagrams - are not mixed. The fragment offset field tells the receiver the - position of a fragment in the original datagram. The fragment - offset and length determine the portion of the original datagram - covered by this fragment. The more-fragments flag indicates (by - being reset) the last fragment. These fields provide sufficient - information to reassemble datagrams. - - The identification field is used to distinguish the fragments of one - datagram from those of another. The originating protocol module of - an internet datagram sets the identification field to a value that - must be unique for that source-destination pair and protocol for the - time the datagram will be active in the internet system. The - originating protocol module of a complete datagram sets the - more-fragments flag to zero and the fragment offset to zero. - - To fragment a long internet datagram, an internet protocol module - (for example, in a gateway), creates two new internet datagrams and - copies the contents of the internet header fields from the long - datagram into both new internet headers. The data of the long - datagram is divided into two portions on a 8 octet (64 bit) boundary - (the second portion might not be an integral multiple of 8 octets, - but the first must be). Call the number of 8 octet blocks in the - first portion NFB (for Number of Fragment Blocks). The first - portion of the data is placed in the first new internet datagram, - and the total length field is set to the length of the first - datagram. The more-fragments flag is set to one. The second - portion of the data is placed in the second new internet datagram, - and the total length field is set to the length of the second - datagram. The more-fragments flag carries the same value as the - long datagram. The fragment offset field of the second new internet - - - -[Page 8] - - -January 1980 - Internet Protocol - Overview - - - - datagram is set to the value of that field in the long datagram plus - NFB. - - This procedure can be generalized for an n-way split, rather than - the two-way split described. - - To assemble the fragments of an internet datagram, an internet - protocol module (for example at a destination host) combines - internet datagram that all have the same value for the four fields: - identification, source, destination, and protocol. The combination - is done by placing the data portion of each fragment in the relative - position indicated by the fragment offset in that fragment's - internet header. The first fragment will have the fragment offset - zero, and the last fragment will have the more-fragments flag reset - to zero. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Page 9] - - - January 1980 -Internet Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 10] - - -January 1980 - Internet Protocol - - - - 3. SPECIFICATION - -3.1. Internet Header Format - - A summary of the contents of the internet header follows: - - - 0 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - |Version| IHL |Type of Service| Total Length | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Identification |Flags| Fragment Offset | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Time to Live | Protocol | Header Checksum | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Source Address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Destination Address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Options | Padding | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - - Example Internet Datagram Header - - Figure 3. - - Note that each tick mark represents one bit position. - - Version: 4 bits - - The Version field indicates the format of the internet header. This - document describes version 4. - - IHL: 4 bits - - Internet Header Length is the length of the internet header in 32 - bit words, and thus points to the beginning of the data. Note that - the minimum value for a correct header is 5. - - - - - - - - - - - - - [Page 11] - - - January 1980 -Internet Protocol -Specification - - - - Type of Service: 8 bits - - The Type of Service provides an indication of the abstract - parameters of the quality of service desired. These parameters are - to be used to guide the selection of the actual service parameters - when transmitting a datagram through a particular network. Several - networks offer service precedence, which somehow treats high - precedence traffic as more important than other traffic. A few - networks offer a Stream service, whereby one can achieve a smoother - service at some cost. Typically this involves the reservation of - resources within the network. Another choice involves a low-delay - vs. high-reliability trade off. Typically networks invoke more - complex (and delay producing) mechanisms as the need for reliability - increases. - - Bits 0-2: Precedence. - Bit 3: Stream or Datagram. - Bits 4-5: Reliability. - Bit 6: Speed over Reliability. - Bits 7: Speed. - - 0 1 2 3 4 5 6 7 - +-----+-----+-----+-----+-----+-----+-----+-----+ - | | | | | | - | PRECEDENCE | STRM|RELIABILITY| S/R |SPEED| - | | | | | | - +-----+-----+-----+-----+-----+-----+-----+-----+ - - PRECEDENCE STRM RELIABILITY S/R SPEED - 111-Flash Override 1-STREAM 11-highest 1-speed 1-high - 110-Flash 0-DTGRM 10-higher 0-rlblt 0-low - 11X-Immediate 01-lower - 01X-Priority 00-lowest - 00X-Routine - - The type of service is used to specify the treatment of the datagram - during its transmission through the internet system. In the - discussion (section 3.2) below, a chart shows the relationship of - the internet type of service to the actual service provided on the - ARPANET, the SATNET, and the PRNET. - - Total Length: 16 bits - - Total Length is the length of the datagram, measured in octets, - including internet header and data. This field allows the length of - a datagram to be up to 65,535 octets. Such long datagrams are - impractical for most hosts and networks. All hosts must be prepared - to accept datagrams of up to 576 octets (whether they arrive whole - - -[Page 12] - - -January 1980 - Internet Protocol - Specification - - - - or in fragments). It is recommended that hosts only send datagrams - larger than 576 octets if they have assurance that the destination - is prepared to accept the larger datagrams. - - The number 576 is selected to allow a reasonable sized data block to - be transmitted in addition to the required header information. For - example, this size allows a data block of 512 octets plus 64 header - octets to fit in a datagram. The maximal internet header is 60 - octets, and a typical internet header is 20 octets, allowing a - margin for headers of higher level protocols. - - Identification: 16 bits - - An identifying value assigned by the sender to aid in assembling the - fragments of a datagram. - - Flags: 3 bits - - Various Control Flags. - - Bit 0: reserved, must be zero - Bit 1: Don't Fragment This Datagram (DF). - Bit 2: More Fragments Flag (MF). - - 0 1 2 - +---+---+---+ - | | D | M | - | 0 | F | F | - +---+---+---+ - - Fragment Offset: 13 bits - - This field indicates where in the datagram this fragment belongs. - The fragment offset is measured in units of 8 octets (64 bits). The - first fragment has offset zero. - - Time to Live: 8 bits - - This field indicates the maximum time the datagram is allowed to - remain the internet system. If this field contains the value zero, - then the datagram should be destroyed. This field is modified in - internet header processing. The time is measured in units of - seconds. The intention is to cause undeliverable datagrams to be - discarded. - - - - - - - [Page 13] - - - January 1980 -Internet Protocol -Specification - - - - Protocol: 8 bits - - This field indicates the next level protocol used in the data - portion of the internet datagram. The values for various protocols - are specified in reference [6]. - - Header Checksum: 16 bits - - A checksum on the header only. Since some header fields may change - (e.g., time to live), this is recomputed and verified at each point - that the internet header is processed. - - The checksum algorithm is: - - The checksum field is the 16 bit one's complement of the one's - complement sum of all 16 bit words in the header. For purposes of - computing the checksum, the value of the checksum field is zero. - - This is a simple to compute checksum and experimental evidence - indicates it is adequate, but it is provisional and may be replaced - by a CRC procedure, depending on further experience. - - Source Address: 32 bits - - The source address. The first octet is the Source Network, and the - following three octets are the Source Local Address. - - Destination Address: 32 bits - - The destination address. The first octet is the Destination - Network, and the following three octets are the Destination Local - Address. - - - - - - - - - - - - - - - - - - -[Page 14] - - -January 1980 - Internet Protocol - Specification - - - - Options: variable - - The option field is variable in length. There may be zero or more - options. There are two cases for the format of an option: - - Case 1: A single octet of option-type. - - Case 2: An option-type octet, an option-length octet, and the - actual option-data octets. - - The option-length octet counts the option-type octet and the - option-length octet as well as the option-data octets. - - The option-type octet is viewed as having 3 fields: - - 1 bit reserved, must be zero - 2 bits option class, - 5 bits option number. - - The option classes are: - - 0 = control - 1 = internet error - 2 = experimental debugging and measurement - 3 = reserved for future use - - - - - - - - - - - - - - - - - - - - - - - - - - [Page 15] - - - January 1980 -Internet Protocol -Specification - - - - The following internet options are defined: - - CLASS NUMBER LENGTH DESCRIPTION - ----- ------ ------ ----------- - 0 0 - End of Option list. This option occupies only - 1 octet; it has no length octet. - 0 1 - No Operation. This option occupies only 1 - octet; it has no length octet. - 0 2 4 Security. Used to carry Security, and user - group (TCC) information compatible with DOD - requirements. - 0 3 var. Source Routing. Used to route the internet - datagram based on information supplied by the - source. - 0 7 var. Return Route. Used to record the route an - internet datagram takes. - 0 8 4 Stream ID. Used to carry the stream - identifier. - 1 1 var. General Error Report. Used to report errors - in internet datagram processing. - 2 4 6 Internet Timestamp. - 2 5 6 Satellite Timestamp. - - - - Specific Option Definitions - - End of Option List - - +--------+ - |00000000| - +--------+ - Type=0 - - This option indicates the end of the option list. This might - not coincide with the end of the internet header according to - the internet header length. This is used at the end of all - options, not the end of each option, and need only be used if - the end of the options would not otherwise coincide with the end - of the internet header. - - May be copied, introduced, or deleted on fragmentation. - - - - - - - - -[Page 16] - - -January 1980 - Internet Protocol - Specification - - - - No Operation - - +--------+ - |00000001| - +--------+ - Type=1 - - This option may be used between options, for example, to align - the beginning of a subsequent option on a 32 bit boundary. - - May be copied, introduced, or deleted on fragmentation. - - Security - - This option provides a way for DOD hosts to send security and - TCC (closed user groups) parameters through networks whose - transport leader does not contain fields for this information. - The format for this option is as follows: - - +--------+--------+---------+--------+ - |00000010|00000100|000000SS | TCC | - +--------+--------+---------+--------+ - Type=2 Length=4 - - Security: 2 bits - - Specifies one of 4 levels of security - - 11-top secret - 10-secret - 01-confidential - 00-unclassified - - Transmission Control Code: 8 bits - - Provides a means to compartmentalize traffic and define - controlled communities of interest among subscribers. - - Note that this option does not require processing by the - internet module but does require that this information be passed - to higher level protocol modules. The security and TCC - information might be used to supply class level and compartment - information for transmitting datagrams into or through - AUTODIN II. - - Must be copied on fragmentation. - - - - - [Page 17] - - - January 1980 -Internet Protocol -Specification - - - - Source Route - - +--------+--------+--------+---------//--------+ - |00000011| length | source route | - +--------+--------+--------+---------//--------+ - Type=3 - - The source route option provides a means for the source of an - internet datagram to supply routing information to be used by - the gateways in forwarding the datagram to the destination. - - The option begins with the option type code. The second octet - is the option length which includes the option type code and the - length octet, as well as length-2 octets of source route data. - - A source route is composed of a series of internet addresses. - Each internet address is 32 bits or 4 octets. The length - defaults to two, which indicates the source route is empty and - the remaining routing is to be based on the destination address - field. - - If the address in destination address field has been reached and - this option's length is not two, the next address in the source - route replaces the address in the destination address field, and - is deleted from the source route and this option's length is - reduced by four. (The Internet Header Length Field must be - changed also.) - - Must be copied on fragmentation. - - Return Route - - +--------+--------+--------+---------//--------+ - |00000111| length | return route | - +--------+--------+--------+---------//--------+ - Type=7 - - The return route option provides a means to record the route of - an internet datagram. - - The option begins with the option type code. The second octet - is the option length which includes the option type code and the - length octet, as well as length-2 octets of return route data. - - A return route is composed of a series of internet addresses. - The length defaults to two, which indicates the return route is - empty. - - - -[Page 18] - - -January 1980 - Internet Protocol - Specification - - - - When an internet module routes a datagram it checks to see if - the return route option is present. If it is, it inserts its - own internet address as known in the environment into which this - datagram is being forwarded into the return route at the front - of the address string and increments the length by four. - - Not copied on fragmentation, goes in first fragment only. - - Stream Identifier - - +--------+--------+---------+--------+ - |00001000|00000010| Stream ID | - +--------+--------+---------+--------+ - Type=8 Length=4 - - This option provides a way for the 16-bit SATNET stream - identifier to be carried through networks that do not support - the stream concept. - - Must be copied on fragmentation. - - General Error Report - - +--------+--------+--------+--------+--------+----//----+ - |00100001| length |err code| id | | - +--------+--------+--------+--------+--------+----//----+ - Type=33 - - The general error report is used to report an error detected in - processing an internet datagram to the source internet module of - that datagram. The "err code" indicates the type of error - detected, and the "id" is copied from the identification field - of the datagram in error, additional octets of error information - may be present depending on the err code. - - If an internet datagram containing the general error report - option is found to be in error or must be discarded, no error - report is sent. - - ERR CODE: - - 0 - Undetermined Error, used when no information is available - about the type of error or the error does not fit any defined - class. Following the id should be as much of the datagram - (starting with the internet header) as fits in the option - space. - - 1 - Datagram Discarded, used when specific information is - - - [Page 19] - - - January 1980 -Internet Protocol -Specification - - - - available about the reason for discarding the datagram can be - reported. Following the id should be the original (4-octets) - destination address, and the (1-octet) reason. - - Reason Description - ------ ----------- - 0 No Reason - 1 No One Wants It - No higher level protocol or - application program at destination wants this - datagram. - 2 Fragmentation Needed & DF - Cannot deliver with out - fragmenting and has don't fragment bit set. - 3 Reassembly Problem - Destination could not - reassemble due to missing fragments when time to - live expired. - 4 Gateway Congestion - Gateway discarded datagram due - to congestion. - - The error report is placed in a datagram with the following - values in the internet header fields: - - Version: Same as the datagram in error. - IHL: As computed. - Type of Service: Zero. - Total Length: As computed. - Identification: A new identification is selected. - Flags: Zero. - Fragment Offset: Zero. - Time to Live: Sixty. - Protocol: Same as the datagram in error. - Header Checksum: As computed. - Source Address: Address of the error reporting module. - Destination Address: Source address of the datagram in error. - Options: The General Error Report Option. - Padding: As needed. - - Not copied on fragmentation, goes with first fragment. - - Internet Timestamp - - +--------+--------+--------+--------+--------+--------+ - |01000100|00000100| time in milliseconds | - +--------+--------+--------+--------+--------+--------+ - Type=68 Length=6 - - The data of the timestamp is a 32 bit time measured in - milliseconds. - - - -[Page 20] - - -January 1980 - Internet Protocol - Specification - - - - Not copied on fragmentation, goes with first fragment - - Satellite Timestamp - - +--------+--------+--------+--------+--------+--------+ - |01000101|00000100| time in milliseconds | - +--------+--------+--------+--------+--------+--------+ - Type=69 Length=6 - - The data of the timestamp is a 32 bit time measured in - milliseconds. - - Not copied on fragmentation, goes with first fragment - - Padding: variable - - The internet header padding is used to ensure that the internet - header ends on a 32 bit boundary. The padding is zero. - -3.2. Discussion - - The implementation of a protocol must be robust. Each implementation - must expect to interoperate with others created by different - individuals. While the goal of this specification is to be explicit - about the protocol there is the possibility of differing - interpretations. In general, an implementation should be conservative - in its sending behavior, and liberal in its receiving behavior. That - is, it should be careful to send well-formed datagrams, but should - accept any datagram that it can interpret (e.g., not object to - technical errors where the meaning is still clear). - - The basic internet service is datagram oriented and provides for the - fragmentation of datagrams at gateways, with reassembly taking place - at the destination internet protocol module in the destination host. - Of course, fragmentation and reassembly of datagrams within a network - or by private agreement between the gateways of a network is also - allowed since this is transparent to the internet protocols and the - higher-level protocols. This transparent type of fragmentation and - reassembly is termed "network-dependent" (or intranet) fragmentation - and is not discussed further here. - - Internet addresses distinguish sources and destinations to the host - level and provide a protocol field as well. It is assumed that each - protocol will provide for whatever multiplexing is necessary within a - host. - - - - - - [Page 21] - - - January 1980 -Internet Protocol -Specification - - - - Addressing - - The 8 bit network number, which is the first octet of the address, - has a value as specified in reference [6]. - - The 24 bit local address, assigned by the local network, should - allow for a single physical host to act as several distinct internet - hosts. That is, there should be mapping between internet host - addresses and network/host interfaces that allows several internet - addresses to correspond to one interface. It should also be allowed - for a host to have several physical interfaces and to treat the - datagrams from several of them as if they were all addressed to a - single host. Address mappings between internet addresses and - addresses for ARPANET, SATNET, PRNET, and other networks are - described in reference [4]. - - Fragmentation and Reassembly. - - The internet identification field (ID) is used together with the - source and destination address, and the protocol fields, to identify - datagram fragments for reassembly. - - The More Fragments flag bit (MF) is set if the datagram is not the - last fragment. The Fragment Offset field identifies the fragment - location, relative to the beginning of the original unfragmented - datagram. Fragments are counted in units of 8 octets. The - fragmentation strategy is designed so than an unfragmented datagram - has all zero fragmentation information (MF = 0, fragment offset = - 0). If an internet datagram is fragmented, its data portion must be - broken on 8 octet boundaries. - - This format allows 2**13 = 8192 fragments of 8 octets each for a - total of 65,536 octets. Note that this is consistent with the the - datagram total length field. - - When fragmentation occurs, some options are copied, but others - remain with the first fragment only. - - Every internet module must be able to forward a datagram of 68 - octets without further fragmentation. This is because an internet - header may be up to 60 octets, and the minimum fragment is 8 octets. - - Every internet destination must be able to receive a datagram of 576 - octets either in one piece or in fragments to be reassembled. - - - - - - -[Page 22] - - -January 1980 - Internet Protocol - Specification - - - - The fields which may be affected by fragmentation include: - - (1) options field - (2) more fragments flag - (3) fragment offset - (4) internet header length field - (5) total length field - (6) header checksum - - If the Don't Fragment flag (DF) bit is set, then internet - fragmentation of this datagram is NOT permitted, although it may be - discarded. This can be used to prohibit fragmentation in cases - where the receiving host does not have sufficient resources to - reassemble internet fragments. - - General notation in the following pseudo programs: "=<" means "less - than or equal", "#" means "not equal", "=" means "equal", "<-" means - "is set to". Also, "x to y" includes x and excludes y; for example, - "4 to 7" would include 4, 5, and 6 (but not 7). - - Fragmentation Procedure - - The maximum sized datagram that can be transmitted through the - next network is called the maximum transmission unit (MTU). - - If the total length is less than or equal the maximum transmission - unit then submit this datagram to the next step in datagram - processing; otherwise cut the datagram into two fragments, the - first fragment being the maximum size, and the second fragment - being the rest of the datagram. The first fragment is submitted - to the next step in datagram processing, while the second fragment - is submitted to this procedure in case it still too large. - - Notation: - - FO - Fragment Offset - IHL - Internet Header Length - MF - More Fragments flag - TL - Total Length - OFO - Old Fragment Offset - OIHL - Old Internet Header Length - OMF - Old More Fragments flag - OTL - Old Total Length - NFB - Number of Fragment Blocks - MTU - Maximum Transmission Unit - - - - - - [Page 23] - - - January 1980 -Internet Protocol -Specification - - - - Procedure: - - IF TL =< MTU THEN Submit this datagram to the next step - in datagram processing ELSE - To produce the first fragment: - (1) Copy the original internet header; - (2) OIHL <- IHL; OTL <- TL; OFO <- FO; OMF <- MF; - (3) NFB <- (MTU-IHL*4)/8; - (4) Attach the first NFB*8 data octets; - (5) Correct the header: - MF <- 1; TL <- (IHL*4)+(NFB*8); - Recompute Checksum; - (6) Submit this fragment to the next step in - datagram processing; - To produce the second fragment: - (7) Selectively copy the internet header (some options - are not copied, see option definitions); - (8) Append the remaining data; - (9) Correct the header: - IHL <- (((OIHL*4)-(length of options not copied))+3)/4; - TL <- OTL - NFB*8 - (OIHL-IHL)*4); - FO <- OFO + NFB; MF <- OMF; Recompute Checksum; - (10) Submit this fragment to the fragmentation test; DONE. - - Reassembly Procedure - - For each datagram the buffer identifier is computed as the - concatenation of the source, destination, protocol, and - identification fields. If this is a whole datagram (that is both - the fragment offset and the more fragments fields are zero), then - any reassembly resources associated with this buffer identifier - are released and the datagram is forwarded to the next step in - datagram processing. - - If no other fragment with this buffer identifier is on hand then - reassembly resources are allocated. The reassembly resources - consist of a data buffer, a header buffer, a fragment block bit - table, a total data length field, and a timer. The data from the - fragment is placed in the data buffer according to its fragment - offset and length, and bits are set in the fragment block bit - table corresponding to the fragment blocks received. - - If this is the first fragment (that is the fragment offset is - zero) this header is placed in the header buffer. If this is the - last fragment ( that is the more fragments field is zero) the - total data length is computed. If this fragment completes the - datagram (tested by checking the bits set in the fragment block - table), then the datagram is sent to the next step in datagram - - -[Page 24] - - -January 1980 - Internet Protocol - Specification - - - - processing; otherwise the timer is set to the maximum of the - current timer value and the value of the time to live field from - this fragment; and the reassembly routine gives up control. - - If the timer runs out, the all reassembly resources for this - buffer identifier are released. The initial setting of the timer - is a lower bound on the reassembly waiting time. This is because - the waiting time will be increased if the Time to Live in the - arriving fragment is greater than the current timer value but will - not be decreased if it is less. The maximum this timer value - could reach is the maximum time to live (approximately 4.25 - minutes). The current recommendation for the initial timer - setting is 15 seconds. This may be changed as experience with - this protocol accumulates. Note that the choice of this parameter - value is related to the buffer capacity available and the data - rate of the transmission medium; that is, data rate times timer - value equals buffer size (e.g., 10Kb/s X 15s = 150Kb). - - Notation: - - FO - Fragment Offset - IHL - Internet Header Length - MF - More Fragments flag - TTL - Time To Live - NFB - Number of Fragment Blocks - TL - Total Length - TDL - Total Data Length - BUFID - Buffer Identifier - RCVBT - Fragment Received Bit Table - TLB - Timer Lower Bound - - - - - - - - - - - - - - - - - - - - - [Page 25] - - - January 1980 -Internet Protocol -Specification - - - - Procedure: - - (1) BUFID <- source|destination|protocol|identification; - (2) IF FO = 0 AND MF = 0 - (3) THEN IF buffer with BUFID is allocated - (4) THEN flush all reassembly for this BUFID; - (5) Submit datagram to next step; DONE. - (6) ELSE IF no buffer with BUFID is allocated - (7) THEN allocate reassembly resources - with BUFID; - TIMER <- TLB; TDL <- 0; - (8) put data from fragment into data buffer with - BUFID from octet FO*8 to - octet (TL-(IHL*4))+FO*8; - (9) set RCVBT bits from FO - to FO+((TL-(IHL*4)+7)/8); - (10) IF MF = 0 THEN TDL <- TL-(IHL*4)+(FO*8) - (11) IF FO = 0 THEN put header in header buffer - (12) IF TDL # 0 - (13) AND all RCVBT bits from 0 - to (TDL+7)/8 are set - (14) THEN TL <- TDL+(IHL*4) - (15) Submit datagram to next step; - (16) free all reassembly resources - for this BUFID; DONE. - (17) TIMER <- MAX(TIMER,TTL); - (18) give up until next fragment or timer expires; - (19) timer expires: flush all reassembly with this BUFID; DONE. - - In the case that two or more fragments contain the same data - either identically or through a partial overlap, this procedure - will use the more recently arrived copy in the data buffer and - datagram delivered. - - Identification - - The choice of the Identifier for a datagram is based on the need to - provide a way to uniquely identify the fragments of a particular - datagram. The protocol module assembling fragments judges fragments - to belong to the same datagram if they have the same source, - destination, protocol, and Identifier. Thus, the sender must choose - the Identifier to be unique for this source, destination pair and - protocol for the time the datagram (or any fragment of it) could be - alive in the internet. - - It seems then that a sending protocol module needs to keep a table - of Identifiers, one entry for each destination it has communicated - with in the last maximum packet lifetime for the internet. - - -[Page 26] - - -January 1980 - Internet Protocol - Specification - - - - However, since the Identifier field allows 65,536 different values, - some host may be able to simply use unique identifiers independent - of destination. - - It is appropriate for some higher level protocols to choose the - identifier. For example, TCP protocol modules may retransmit an - identical TCP segment, and the probability for correct reception - would be enhanced if the retransmission carried the same identifier - as the original transmission since fragments of either datagram - could be used to construct a correct TCP segment. - - Type of Service - - The type of service (TOS) is for internet service quality selection. - The type of service is specified along the abstract parameters - precedence, reliability, and speed. A further concern is the - possibility of efficient handling of streams of datagrams. These - abstract parameters are to be mapped into the actual service - parameters of the particular networks the datagram traverses. - - Precedence. An independent measure of the importance of this - datagram. - - Stream or Datagram. Indicates if there will be other datagrams from - this source to this destination at regular frequent intervals - justifying the maintenance of stream processing information. - - Reliability. A measure of the level of effort desired to ensure - delivery of this datagram. - - Speed over Reliability. Indicates the relative importance of speed - and reliability when a conflict arises in meeting the pair of - requests. - - Speed. A measure of the importance of prompt delivery of this - datagram. - - For example, the ARPANET has a priority bit, and a choice between - "standard" messages (type 0) and "uncontrolled" messages (type 3), - (the choice between single packet and multipacket messages can also - be considered a service parameter). The uncontrolled messages tend - to be less reliably delivered and suffer less delay. Suppose an - internet datagram is to be sent through the ARPANET. Let the - internet type of service be given as: - - - - - - - [Page 27] - - - January 1980 -Internet Protocol -Specification - - - - Precedence: 5 - Stream: 0 - Reliability: 1 - S/R: 1 - Speed: 1 - - The mapping of these parameters to those available for the ARPANET - would be to set the ARPANET priority bit on since the Internet - priority is in the upper half of its range, to select uncontrolled - messages since the speed and reliability requirements are equal and - speed is preferred. - - The following chart presents the recommended mappings from the - internet protocol type of service into the service parameters - actually available on the ARPANET, the PRNET, and the SATNET: - - +------------+----------+----------+----------+----------+ - |Application | INTERNET | ARPANET | PRNET | SATNET | - +------------+----------+----------+----------+----------+ - |TELNET |S/D:stream| T: 3 | R: ptp | T: block | - | on | R:normal| S: S | A: no | D: min | - | TCP |S/R:speed | | | H: inf | - | | S:fast | | | R: no | - +------------+----------+----------+----------+----------+ - |FTP |S/D:stream| T: 0 | R: ptp | T: block | - | on | R:normal| S: M | A: no | D: normal| - | TCP |S/R:rlblt | | | H: inf | - | | S:normal| | | R: no | - +------------+----------+----------+----------+----------+ - |interactive |S/D:strm* | T: 3 | R: ptp | T: stream| - |narrow band | R:least | S: S | A: no | D: min | - | speech | P:speed | | | H: short | - | | S:asap | | | R: no | - +------------+----------+----------+----------+----------+ - |datagram |S/D:dtgrm | T: 3 or 0| R:station| T: block | - | | R:normal| S: S or M| A: no | D: min | - | |S/R:speed | | | H: short | - | | S:fast | | | R: no | - +------------+----------+----------+----------+----------+ - key: S/D=strm/dtgrm T=type R=route T=type - R=reliability S=size A=ack D=delay - S/R=speed/rlblt H=holding time - S=speed R=reliability - *=requires stream set up - - - - - - -[Page 28] - - -January 1980 - Internet Protocol - Specification - - - - Time to Live - - The time to live is set by the sender to the maximum time the - datagram is allowed to be in the internet system. If the datagram - is in the internet system longer than the time to live, then the - datagram should be destroyed. This field should be decreased at - each point that the internet header is processed to reflect the time - spent processing the datagram. Even if no local information is - available on the time actually spent, the field should be - decremented by 1. The time is measured in units of seconds (i.e. - the value 1 means one second). Thus, the maximum time to live is - 255 seconds or 4.25 minutes. - - Options - - The options are just that, optional. That is, the presence or - absence of an option is the choice of the sender, but each internet - module must be able to parse every option. There can be several - options present in the option field. - - The options might not end on a 32-bit boundary. The internet header - should be filled out with octets of zeros. The first of these would - be interpreted as the end-of-options option, and the remainder as - internet header padding. - - Every internet module must be able to act on the following options: - End of Option List (0), No Operation (1), Source Route (3), Return - Route (7), General Error Report (33), and Internet Timestamp (68). - The Security Option (2) is required only if classified or - compartmented traffic is to be passed. - - Checksum - - The internet header checksum is recomputed if the internet header is - changed. For example, a reduction of the time to live, additions or - changes to internet options, or due to fragmentation. This checksum - at the internet level is intended to protect the internet header - fields from transmission errors. - - - - - - - - - - - - - [Page 29] - - - January 1980 -Internet Protocol -Specification - - - -3.3. Examples & Scenarios - - Example 1: - - This is an example of the minimal data carrying internet datagram: - - - 0 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - |Ver= 4 |IHL= 5 |Type of Service| Total Length = 21 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Identification = 111 |Flg=0| Fragment Offset = 0 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Time = 123 | Protocol = 1 | header checksum | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | source address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | destination address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - +-+-+-+-+-+-+-+-+ - - Example Internet Datagram - - Figure 4. - - Note that each tick mark represents one bit position. - - This is a internet datagram in version 4 of internet protocol; the - internet header consists of five 32 bit words, and the total length - of the datagram is 21 octets. This datagram is a complete datagram - (not a fragment). - - - - - - - - - - - - - - - - - -[Page 30] - - -January 1980 - Internet Protocol - Specification - - - - Example 2: - - In this example, we show first a moderate size internet datagram - (552 data octets), then two internet fragments that might result - from the fragmentation of this datagram if the maximum sized - transmission allowed were 280 octets. - - - 0 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - |Ver= 4 |IHL= 5 |Type of Service| Total Length = 472 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Identification = 111 |Flg=0| Fragment Offset = 0 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Time = 123 | Protocol = 6 | header checksum | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | source address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | destination address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - \ \ - \ \ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - - Example Internet Datagram - - Figure 5. - - - - - - - - - - - - - - - - - [Page 31] - - - January 1980 -Internet Protocol -Specification - - - - Now the first fragment that results from splitting the datagram - after 256 data octets. - - - 0 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - |Ver= 4 |IHL= 5 |Type of Service| Total Length = 276 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Identification = 111 |Flg=1| Fragment Offset = 0 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Time = 119 | Protocol = 6 | Header Checksum | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | source address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | destination address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - \ \ - \ \ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - - Example Internet Fragment - - Figure 6. - - - - - - - - - - - - - - - - - - - - -[Page 32] - - -January 1980 - Internet Protocol - Specification - - - - And the second fragment. - - - 0 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - |Ver= 4 |IHL= 5 |Type of Service| Total Length = 216 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Identification = 111 |Flg=0| Fragment Offset = 32 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Time = 119 | Protocol = 6 | Header Checksum | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | source address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | destination address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - \ \ - \ \ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - - Example Internet Fragment - - Figure 7. - - - - - - - - - - - - - - - - - - - - - - [Page 33] - - - January 1980 -Internet Protocol -Specification - - - - Example 3: - - Here, we show an example of a datagram containing options: - - - 0 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - |Ver= 4 |IHL= 8 |Type of Service| Total Length = 576 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Identification = 111 |Flg=0| Fragment Offset = 0 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Time = 123 | Protocol = 6 | Header Checksum | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | source address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | destination address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Opt. Code = x | Opt. Len.= 3 | option value | Opt. Code = x | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Opt. Len. = 4 | option value | Opt. Code = 1 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Opt. Code = y | Opt. Len. = 3 | option value | Opt. Code = 0 | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - \ \ - \ \ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - - Example Internet Datagram - - Figure 8. - -3.4. Interfaces - - Internet protocol interfaces on one side to the local network and on - the other side to either a higher level protocol or an application - program. In the following, the higher level protocol or application - program (or even a gateway program) will be called the "user" since it - is using the internet module. Since internet protocol is a datagram - protocol, there is minimal memory or state maintained between datagram - transmissions, and each call on the internet protocol module by the - user supplies all the necessary information. - - - - -[Page 34] - - -January 1980 - Internet Protocol - Specification - - - - For example, the following two calls satisfy the requirements for the - user to internet protocol module communication ("=>" means returns): - - SEND (dest, TOS, TTL, BufPTR, len, Id, DF, options => result) - - where: - - dest = destination address - TOS = type of service - TTL = time to live - BufPTR = buffer pointer - len = length of buffer - Id = Identifier - DF = Don't Fragment - options = option data - result = response - OK = datagram sent ok - Error = error in arguments or local network error - - RECV (BufPTR => result, source, dest, prot, TOS, len) - - where: - - BufPTR = buffer pointer - result = response - OK = datagram received ok - Error = error in arguments - source = source address - dest = destination address - prot = protocol - TOS = type of service - len = length of buffer - - When the user sends a datagram, it executes the SEND call supplying - all the arguments. The internet protocol module, on receiving this - call, checks the arguments and prepares and sends the message. If the - arguments are good and the datagram is accepted by the local network, - the call returns successfully. If either the arguments are bad, or - the datagram is not accepted by the local network, the call returns - unsuccessfully. On unsuccessful returns, a reasonable report should - be made as to the cause of the problem, but the details of such - reports are up to individual implementations. - - When a datagram arrives at the internet protocol module from the local - network, either there is a pending RECV call from the user addressed - or there is not. In the first case, the pending call is satisfied by - passing the information from the datagram to the user. In the second - case, the user addressed is notified of a pending datagram. If the - - - [Page 35] - - - January 1980 -Internet Protocol -Specification - - - - user addressed does not exist, an error datagram is returned to the - sender, and the data is discarded. - - The notification of a user may be via a pseudo interrupt or similar - mechanism, as appropriate in the particular operating system - environment of the implementation. - - A user's RECV call may then either be immediately satisfied by a - pending datagram, or the call may be pending until a datagram arrives. - - An implementation may also allow or require a call to the internet - module to indicate interest in or reserve exclusive use of a class of - datagrams (e.g., all those with a certain value in the protocol - field). - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 36] - - -January 1980 - Internet Protocol - - - - GLOSSARY - - - -1822 - BBN Report 1822, "The Specification of the Interconnection of - a Host and an IMP". The specification of interface between a - host and the ARPANET. - -ARPANET message - The unit of transmission between a host and an IMP in the - ARPANET. The maximum size is about 1012 octets (8096 bits). - -ARPANET packet - A unit of transmission used internally in the ARPANET between - IMPs. The maximum size is about 126 octets (1008 bits). - -Destination - The destination address, an internet header field. - -DF - The Don't Fragment bit carried in the flags field. - -Flags - An internet header field carrying various control flags. - -Fragment Offset - This internet header field indicates where in the internet - datagram a fragment belongs. - -header - Control information at the beginning of a message, segment, - datagram, packet or block of data. - -Identification - An internet header field carrying the identifying value - assigned by the sender to aid in assembling the fragments of a - datagram. - -IHL - The internet header field Internet Header Length is the length - of the internet header measured in 32 bit words. - -IMP - The Interface Message Processor, the packet switch of the - ARPANET. - - - - - - [Page 37] - - - January 1980 -Internet Protocol -Glossary - - - -Internet Address - A four octet (32 bit) source or destination address consisting - of a Network field and a Local Address field. - -internet fragment - A portion of the data of an internet datagram with an internet - header. - -internet datagram - The unit of data exchanged between a pair of internet modules - (includes the internet header). - -ARPANET leader - The control information on an ARPANET message at the host-IMP - interface. - -Local Address - The address of a host within a network. The actual mapping of - an internet local address on to the host addresses in a - network is quite general, allowing for many to one mappings. - -MF - The More-Fragments Flag carried in the internet header flags - field. - -module - An implementation, usually in software, of a protocol or other - procedure. - -more-fragments flag - A flag indicating whether or not this internet datagram - contains the end of an internet datagram, carried in the - internet header Flags field. - -NFB - The Number of Fragment Blocks in a the data portion of an - internet fragment. That is, the length of a portion of data - measured in 8 octet units. - -octet - An eight bit byte. - -Options - The internet header Options field may contain several options, - and each option may be several octets in length. The options - are used primarily in testing situations, for example to carry - timestamps. - - - -[Page 38] - - -January 1980 - Internet Protocol - Glossary - - - -Padding - The internet header Padding field is used to ensure that the - data begins on 32 bit word boundary. The padding is zero. - -Protocol - In this document, the next higher level protocol identifier, - an internet header field. - -Rest - The 3 octet (24 bit) local address portion of an Internet - Address. - -RTP - Real Time Protocol: A host-to-host protocol for communication - of time critical information. - -Source - The source address, an internet header field. - -TCP - Transmission Control Protocol: A host-to-host protocol for - reliable communication in internet environments. - -TCP Segment - The unit of data exchanged between TCP modules (including the - TCP header). - -Total Length - The internet header field Total Length is the length of the - datagram in octets including internet header and data. - -Type of Service - An internet header field which indicates the type (or quality) - of service for this internet datagram. - -User - The user of the internet protocol. This may be a higher level - protocol module, an application program, or a gateway program. - -Version - The Version field indicates the format of the internet header. - - - - - - - - - - [Page 39] - - - January 1980 -Internet Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 40] - - -January 1980 - Internet Protocol - - - - REFERENCES - - - -[1] Cerf, V., "The Catenet Model for Internetworking," Information - Processing Techniques Office, Defense Advanced Research Projects - Agency, IEN 48, July 1978. - -[2] Bolt Beranek and Newman, "Specification for the Interconnection of - a Host and an IMP," BBN Technical Report 1822, May 1978 (Revised). - -[3] Shoch, J., "Inter-Network Naming, Addressing, and Routing," - COMPCON, IEEE Computer Society, Fall 1978. - -[4] Postel, J., "Address Mappings," IEN 115, USC/Information Sciences - Institute, August 1979. - -[5] Shoch, J., "Packet Fragmentation in Inter-Network Protocols," - Computer Networks, v. 3, n. 1, February 1979. - -[6] Postel, J., "Assigned Numbers," RFC 762, IEN 127, USC/Information - Sciences Institute, January 1980. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Page 41] - - - January 1980 -Internet Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 42] - diff --git a/text/ien/ien129.txt b/text/ien/ien129.txt deleted file mode 100644 index 6e02a8dc..00000000 --- a/text/ien/ien129.txt +++ /dev/null @@ -1,5185 +0,0 @@ - - -RFC: 761 -IEN: 129 - - - - - - - - DOD STANDARD - - TRANSMISSION CONTROL PROTOCOL - - - - January 1980 - - - - - - - - - - - - - - - - prepared for - - Defense Advanced Research Projects Agency - Information Processing Techniques Office - 1400 Wilson Boulevard - Arlington, Virginia 22209 - - - - - - - - by - - Information Sciences Institute - University of Southern California - 4676 Admiralty Way - Marina del Rey, California 90291 - -January 1980 - Transmission Control Protocol - - - - TABLE OF CONTENTS - - PREFACE ........................................................ iii - -1. INTRODUCTION ..................................................... 1 - - 1.1 Motivation .................................................... 1 - 1.2 Scope ......................................................... 2 - 1.3 About This Document ........................................... 2 - 1.4 Interfaces .................................................... 3 - 1.5 Operation ..................................................... 3 - -2. PHILOSOPHY ....................................................... 7 - - 2.1 Elements of the Internetwork System ........................... 7 - 2.2 Model of Operation ............................................ 7 - 2.3 The Host Environment .......................................... 8 - 2.4 Interfaces .................................................... 9 - 2.5 Relation to Other Protocols ................................... 9 - 2.6 Reliable Communication ....................................... 10 - 2.7 Connection Establishment and Clearing ........................ 10 - 2.8 Data Communication ........................................... 12 - 2.9 Precedence and Security ...................................... 13 - 2.10 Robustness Principle ......................................... 13 - -3. FUNCTIONAL SPECIFICATION ........................................ 15 - - 3.1 Header Format ................................................ 15 - 3.2 Terminology .................................................. 19 - 3.3 Sequence Numbers ............................................. 24 - 3.4 Establishing a connection .................................... 29 - 3.5 Closing a Connection ......................................... 35 - 3.6 Precedence and Security ...................................... 38 - 3.7 Data Communication ........................................... 38 - 3.8 Interfaces ................................................... 42 - 3.9 Event Processing ............................................. 52 - -GLOSSARY ............................................................ 75 - -REFERENCES .......................................................... 83 - - - - - - - - - - - - [Page i] - - - January 1980 -Transmission Control Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page ii] - - -January 1980 - Transmission Control Protocol - - - - PREFACE - - - -This document describes the DoD Standard Transmission Control Protocol -(TCP). There have been eight earlier editions of the ARPA TCP -specification on which this standard is based, and the present text -draws heavily from them. There have been many contributors to this work -both in terms of concepts and in terms of text. This edition -incorporates the addition of security, compartmentation, and precedence -concepts into the TCP specification. - - Jon Postel - - Editor - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Page iii] - - -January 1980 -RFC:761 -IEN:129 -Replaces: IENs 124, 112, -81, 55, 44, 40, 27, 21, 5 - - DOD STANDARD - - TRANSMISSION CONTROL PROTOCOL - - - - 1. INTRODUCTION - -The Transmission Control Protocol (TCP) is intended for use as a highly -reliable host-to-host protocol between hosts in packet-switched computer -communication networks, and especially in interconnected systems of such -networks. - -This document describes the functions to be performed by the -Transmission Control Protocol, the program that implements it, and its -interface to programs or users that require its services. - -1.1. Motivation - - Computer communication systems are playing an increasingly important - role in military, government, and civilian environments. This - document primarily focuses its attention on military computer - communication requirements, especially robustness in the presence of - communication unreliability and availability in the presence of - congestion, but many of these problems are found in the civilian and - government sector as well. - - As strategic and tactical computer communication networks are - developed and deployed, it is essential to provide means of - interconnecting them and to provide standard interprocess - communication protocols which can support a broad range of - applications. In anticipation of the need for such standards, the - Deputy Undersecretary of Defense for Research and Engineering has - declared the Transmission Control Protocol (TCP) described herein to - be a basis for DoD-wide inter-process communication protocol - standardization. - - TCP is a connection-oriented, end-to-end reliable protocol designed to - fit into a layered hierarchy of protocols which support multi-network - applications. The TCP provides for reliable inter-process - communication between pairs of processes in host computers attached to - distinct but interconnected computer communication networks. Very few - assumptions are made as to the reliability of the communication - protocols below the TCP layer. TCP assumes it can obtain a simple, - potentially unreliable datagram service from the lower level - protocols. In principle, the TCP should be able to operate above a - wide spectrum of communication systems ranging from hard-wired - connections to packet-switched or circuit-switched networks. - - - [Page 1] - - - January 1980 -Transmission Control Protocol -Introduction - - - - TCP is based on concepts first described by Cerf and Kahn in [1]. The - TCP fits into a layered protocol architecture just above a basic - Internet Protocol [2] which provides a way for the TCP to send and - receive variable-length segments of information enclosed in internet - datagram "envelopes". The internet datagram provides a means for - addressing source and destination TCPs in different networks. The - internet protocol also deals with any fragmentation or reassembly of - the TCP segments required to achieve transport and delivery through - multiple networks and interconnecting gateways. The internet protocol - also carries information on the precedence, security classification - and compartmentation of the TCP segments, so this information can be - communicated end-to-end across multiple networks. - - Protocol Layering - - +---------------------+ - | higher-level | - +---------------------+ - | TCP | - +---------------------+ - | internet protocol | - +---------------------+ - |communication network| - +---------------------+ - - Figure 1 - - Much of this document is written in the context of TCP implementations - which are co-resident with higher level protocols in the host - computer. As a practical matter, many computer systems will be - connected to networks via front-end computers which house the TCP and - internet protocol layers, as well as network specific software. The - TCP specification describes an interface to the higher level protocols - which appears to be implementable even for the front-end case, as long - as a suitable host-to-front end protocol is implemented. - -1.2. Scope - - The TCP is intended to provide a reliable process-to-process - communication service in a multinetwork environment. The TCP is - intended to be a host-to-host protocol in common use in multiple - networks. - -1.3. About this Document - - This document represents a specification of the behavior required of - any TCP implementation, both in its interactions with higher level - protocols and in its interactions with other TCPs. The rest of this - - -[Page 2] - - -January 1980 - Transmission Control Protocol - Introduction - - - - section offers a very brief view of the protocol interfaces and - operation. Section 2 summarizes the philosophical basis for the TCP - design. Section 3 offers both a detailed description of the actions - required of TCP when various events occur (arrival of new segments, - user calls, errors, etc.) and the details of the formats of TCP - segments. - -1.4. Interfaces - - The TCP interfaces on one side to user or application processes and on - the other side to a lower level protocol such as Internet Protocol. - - The interface between an application process and the TCP is - illustrated in reasonable detail. This interface consists of a set of - calls much like the calls an operating system provides to an - application process for manipulating files. For example, there are - calls to open and close connections and to send and receive letters on - established connections. It is also expected that the TCP can - asynchronously communicate with application programs. Although - considerable freedom is permitted to TCP implementors to design - interfaces which are appropriate to a particular operating system - environment, a minimum functionality is required at the TCP/user - interface for any valid implementation. - - The interface between TCP and lower level protocol is essentially - unspecified except that it is assumed there is a mechanism whereby the - two levels can asynchronously pass information to each other. - Typically, one expects the lower level protocol to specify this - interface. TCP is designed to work in a very general environment of - interconnected networks. The lower level protocol which is assumed - throughout this document is the Internet Protocol [2]. - -1.5. Operation - - As noted above, the primary purpose of the TCP is to provide reliable, - securable logical circuit or connection service between pairs of - processes. To provide this service on top of a less reliable internet - communication system requires facilities in the following areas: - - Basic Data Transfer - Reliability - Flow Control - Multiplexing - Connections - Precedence and Security - - The basic operation of the TCP in each of these areas is described in - the following paragraphs. - - - [Page 3] - - - January 1980 -Transmission Control Protocol -Introduction - - - - Basic Data Transfer: - - The TCP is able to transfer a continuous stream of octets in each - direction between its users by packaging some number of octets into - segments for transmission through the internet system. In this - stream mode, the TCPs decide when to block and forward data at their - own convenience. - - For users who desire a record-oriented service, the TCP also permits - the user to submit records, called letters, for transmission. When - the sending user indicates a record boundary (end-of-letter), this - causes the TCPs to promptly forward and deliver data up to that - point to the receiver. - - Reliability: - - The TCP must recover from data that is damaged, lost, duplicated, or - delivered out of order by the internet communication system. This - is achieved by assigning a sequence number to each octet - transmitted, and requiring a positive acknowledgment (ACK) from the - receiving TCP. If the ACK is not received within a timeout - interval, the data is retransmitted. At the receiver, the sequence - numbers are used to correctly order segments that may be received - out of order and to eliminate duplicates. Damage is handled by - adding a checksum to each segment transmitted, checking it at the - receiver, and discarding damaged segments. - - As long as the TCPs continue to function properly and the internet - system does not become completely partitioned, no transmission - errors will affect the users. TCP recovers from internet - communication system errors. - - Flow Control: - - TCP provides a means for the receiver to govern the amount of data - sent by the sender. This is achieved by returning a "window" with - every ACK indicating a range of acceptable sequence numbers beyond - the last segment successfully received. For stream mode, the window - indicates an allowed number of octets that the sender may transmit - before receiving further permission. For record mode, the window - indicates an allowed amount of buffer space the sender may consume, - this may be more than the number of data octets transmitted if there - is a mismatch between letter size and buffer size. - - - - - - - -[Page 4] - - -January 1980 - Transmission Control Protocol - Introduction - - - - Multiplexing: - - To allow for many processes within a single Host to use TCP - communication facilities simultaneously, the TCP provides a set of - addresses or ports within each host. Concatenated with the network - and host addresses from the internet communication layer, this forms - a socket. A pair of sockets uniquely identifies each connection. - That is, a socket may be simultaneously used in multiple - connections. - - The binding of ports to processes is handled independently by each - Host. However, it proves useful to attach frequently used processes - (e.g., a "logger" or timesharing service) to fixed sockets which are - made known to the public. These services can then be accessed - through the known addresses. Establishing and learning the port - addresses of other processes may involve more dynamic mechanisms. - - Connections: - - The reliability and flow control mechanisms described above require - that TCPs initialize and maintain certain status information for - each data stream. The combination of this information, including - sockets, sequence numbers, and window sizes, is called a connection. - Each connection is uniquely specified by a pair of sockets - identifying its two sides. - - When two processes wish to communicate, their TCP's must first - establish a connection (initialize the status information on each - side). When their communication is complete, the connection is - terminated or closed to free the resources for other uses. - - Since connections must be established between unreliable hosts and - over the unreliable internet communication system, a handshake - mechanism with clock-based sequence numbers is used to avoid - erroneous initialization of connections. - - Precedence and Security: - - The users of TCP may indicate the security and precedence of their - communication. Provision is made for default values to be used when - these features are not needed. - - - - - - - - - - [Page 5] - - - January 1980 -Transmission Control Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 6] - - -January 1980 - Transmission Control Protocol - - - - 2. PHILOSOPHY - -2.1. Elements of the Internetwork System - - The internetwork environment consists of hosts connected to networks - which are in turn interconnected via gateways. It is assumed here - that the networks may be either local networks (e.g., the ETHERNET) or - large networks (e.g., the ARPANET), but in any case are based on - packet switching technology. The active agents that produce and - consume messages are processes. Various levels of protocols in the - networks, the gateways, and the hosts support an interprocess - communication system that provides two-way data flow on logical - connections between process ports. - - We specifically assume that data is transmitted from host to host - through means of a set of networks. When we say network, we have in - mind a packet switched network (PSN). This assumption is probably - unnecessary, since a circuit switched network or a hybrid combination - of the two could also be used; but for concreteness, we explicitly - assume that the hosts are connected to one or more packet switches of - a PSN. - - The term packet is used generically here to mean the data of one - transaction between a host and a packet switch. The format of data - blocks exchanged between the packet switches in a network will - generally not be of concern to us. - - Hosts are computers attached to a network, and from the communication - network's point of view, are the sources and destinations of packets. - Processes are viewed as the active elements in host computers (in - accordance with the fairly common definition of a process as a program - in execution). Even terminals and files or other I/O devices are - viewed as communicating with each other through the use of processes. - Thus, all communication is viewed as inter-process communication. - - Since a process may need to distinguish among several communication - streams between itself and another process (or processes), we imagine - that each process may have a number of ports through which it - communicates with the ports of other processes. - -2.2. Model of Operation - - Processes transmit data by calling on the TCP and passing buffers of - data as arguments. The TCP packages the data from these buffers into - segments and calls on the internet module to transmit each segment to - the destination TCP. The receiving TCP places the data from a segment - into the receiving user's buffer and notifies the receiving user. The - TCPs include control information in the segments which they use to - ensure reliable ordered data transmission. - - - [Page 7] - - - January 1980 -Transmission Control Protocol -Philosophy - - - - The model of internet communication is that there is an internet - protocol module associated with each TCP which provides an interface - to the local network. This internet module packages TCP segments - inside internet datagrams and routes these datagrams to a destination - internet module or intermediate gateway. To transmit the datagram - through the local network, it is embedded in a local network packet. - - The packet switches may perform further packaging, fragmentation, or - other operations to achieve the delivery of the local packet to the - destination internet module. - - At a gateway between networks, the internet datagram is "unwrapped" - from its local packet and examined to determine through which network - the internet datagram should travel next. The internet datagram is - then "wrapped" in a local packet suitable to the next network and - routed to the next gateway, or to the final destination. - - A gateway is permitted to break up an internet datagram into smaller - internet datagram fragments if this is necessary for transmission - through the next network. To do this, the gateway produces a set of - internet datagrams; each carrying a fragment. Fragments may be broken - into smaller ones at intermediate gateways. The internet datagram - fragment format is designed so that the destination internet module - can reassemble fragments into internet datagrams. - - A destination internet module unwraps the segment from the datagram - (after reassembling the datagram, if necessary) and passes it to the - destination TCP. - - This simple model of the operation glosses over many details. One - important feature is the type of service. This provides information - to the gateway (or internet module) to guide it in selecting the - service parameters to be used in traversing the next network. - Included in the type of service information is the precedence of the - datagram. Datagrams may also carry security information to permit - host and gateways that operate in multilevel secure environments to - properly segregate datagrams for security considerations. - -2.3. The Host Environment - - The TCP is assumed to be a module in a time sharing operating system. - The users access the TCP much like they would access the file system. - The TCP may call on other operating system functions, for example, to - manage data structures. The actual interface to the network is - assumed to be controlled by a device driver module. The TCP does not - call on the network device driver directly, but rather calls on the - internet datagram protocol module which may in turn call on the device - driver. - - -[Page 8] - - -January 1980 - Transmission Control Protocol - Philosophy - - - - Though it is assumed here that processes are supported by the host - operating system, the mechanisms of TCP do not preclude implementation - of the TCP in a front-end processor. However, in such an - implementation, a host-to-front-end protocol must provide the - functionality to support the type of TCP-user interface described - above. - -2.4. Interfaces - - The TCP/user interface provides for calls made by the user on the TCP - to OPEN or CLOSE a connection, to SEND or RECEIVE data, or to obtain - STATUS about a connection. These calls are like other calls from user - programs on the operating system, for example, the calls to open, read - from, and close a file. - - The TCP/internet interface provides calls to send and receive - datagrams addressed to TCP modules in hosts anywhere in the internet - system. These calls have parameters for passing the address, type of - service, precedence, security, and other control information. - -2.5. Relation to Other Protocols - - The following diagram illustrates the place of the TCP in the protocol - hierarchy: - - - +------+ +-----+ +-----+ +-----+ - |Telnet| | FTP | |Voice| ... | | Application Level - +------+ +-----+ +-----+ +-----+ - | | | | - +-----+ +-----+ +-----+ - | TCP | | RTP | ... | | Host Level - +-----+ +-----+ +-----+ - | | | - +-------------------------------+ - | Internet Protocol | Gateway Level - +-------------------------------+ - | - +---------------------------+ - | Local Network Protocol | Network Level - +---------------------------+ - | - - - - Protocol Relationships - - Figure 2. - - - [Page 9] - - - January 1980 -Transmission Control Protocol -Philosophy - - - - It is expected that the TCP will be able to support higher level - protocols efficiently. It should be easy to interface higher level - protocols like the ARPANET Telnet [3] or AUTODIN II THP to the TCP. - -2.6. Reliable Communication - - A stream of data sent on a TCP connection is delivered reliably and in - order at the destination. - - Transmission is made reliable via the use of sequence numbers and - acknowledgments. Conceptually, each octet of data is assigned a - sequence number. The sequence number of the first octet of data in a - segment is the sequence number transmitted with that segment and is - called the segment sequence number. Segments also carry an - acknowledgment number which is the sequence number of the next - expected data octet of transmissions in the reverse direction. When - the TCP transmits a segment, it puts a copy on a retransmission queue - and starts a timer; when the acknowledgment for that data is received, - the segment is deleted from the queue. If the acknowledgment is not - received before the timer runs out, the segment is retransmitted. - - An acknowledgment by TCP does not guarantee that the data has been - delivered to the end user, but only that the receiving TCP has taken - the responsibility to do so. - - To govern the flow of data into a TCP, a flow control mechanism is - employed. The the data receiving TCP reports a window to the sending - TCP. This window specifies the number of octets, starting with the - acknowledgment number that the data receiving TCP is currently - prepared to receive. - -2.7. Connection Establishment and Clearing - - To identify the separate data streams that a TCP may handle, the TCP - provides a port identifier. Since port identifiers are selected - independently by each operating system, TCP, or user, they might not - be unique. To provide for unique addresses at each TCP, we - concatenate an internet address identifying the TCP with a port - identifier to create a socket which will be unique throughout all - networks connected together. - - A connection is fully specified by the pair of sockets at the ends. A - local socket may participate in many connections to different foreign - sockets. A connection can be used to carry data in both directions, - that is, it is "full duplex". - - TCPs are free to associate ports with processes however they choose. - However, several basic concepts seem necessary in any implementation. - - -[Page 10] - - -January 1980 - Transmission Control Protocol - Philosophy - - - - There must be well-known sockets which the TCP associates only with - the "appropriate" processes by some means. We envision that processes - may "own" ports, and that processes can only initiate connections on - the ports they own. (Means for implementing ownership is a local - issue, but we envision a Request Port user command, or a method of - uniquely allocating a group of ports to a given process, e.g., by - associating the high order bits of a port name with a given process.) - - A connection is specified in the OPEN call by the local port and - foreign socket arguments. In return, the TCP supplies a (short) local - connection name by which the user refers to the connection in - subsequent calls. There are several things that must be remembered - about a connection. To store this information we imagine that there - is a data structure called a Transmission Control Block (TCB). One - implementation strategy would have the local connection name be a - pointer to the TCB for this connection. The OPEN call also specifies - whether the connection establishment is to be actively pursued, or to - be passively waited for. - - A passive OPEN request means that the process wants to accept incoming - connection requests rather than attempting to initiate a connection. - Often the process requesting a passive OPEN will accept a connection - request from any caller. In this case a foreign socket of all zeros - is used to denote an unspecified socket. Unspecified foreign sockets - are allowed only on passive OPENs. - - A service process that wished to provide services for unknown other - processes could issue a passive OPEN request with an unspecified - foreign socket. Then a connection could be made with any process that - requested a connection to this local socket. It would help if this - local socket were known to be associated with this service. - - Well-known sockets are a convenient mechanism for a priori associating - a socket address with a standard service. For instance, the - "Telnet-Server" process might be permanently assigned to a particular - socket, and other sockets might be reserved for File Transfer, Remote - Job Entry, Text Generator, Echoer, and Sink processes (the last three - being for test purposes). A socket address might be reserved for - access to a "Look-Up" service which would return the specific socket - at which a newly created service would be provided. The concept of a - well-known socket is part of the TCP specification, but the assignment - of sockets to services is outside this specification. - - Processes can issue passive OPENs and wait for matching calls from - other processes and be informed by the TCP when connections have been - established. Two processes which issue calls to each other at the - same time are correctly connected. This flexibility is critical for - - - - [Page 11] - - - January 1980 -Transmission Control Protocol -Philosophy - - - - the support of distributed computing in which components act - asynchronously with respect to each other. - - There are two cases for matching the sockets in the local request and - an incoming segment. In the first case, the local request has fully - specified the foreign socket. In this case, the match must be exact. - In the second case, the local request has left the foreign socket - unspecified. In this case, any foreign socket is acceptable as long - as the local sockets match. - - If there are several pending passive OPENs (recorded in TCBs) with the - same local socket, an incoming segment should be matched to a request - with the specific foreign socket in the segment, if such a request - exists, before selecting a request with an unspecified foreign socket. - - The procedures to establish and clear connections utilize synchronize - (SYN) and finis (FIN) control flags and involve an exchange of three - messages. This exchange has been termed a three-way hand shake [4]. - - A connection is initiated by the rendezvous of an arriving segment - containing a SYN and a waiting TCB entry created by a user OPEN - command. The matching of local and foreign sockets determines when a - connection has been initiated. The connection becomes "established" - when sequence numbers have been synchronized in both directions. - - The clearing of a connection also involves the exchange of segments, - in this case carrying the FIN control flag. - -2.8. Data Communication - - The data that flows on a connection may be thought of as a stream of - octets, or as a sequence of records. In TCP the records are called - letters and are of variable length. The sending user indicates in - each SEND call whether the data in that call completes a letter by the - setting of the end-of-letter parameter. - - The length of a letter may be such that it must be broken into - segments before it can be transmitted to its destination. We assume - that the segments will normally be reassembled into a letter before - being passed to the receiving process. A segment may contain all or a - part of a letter, but a segment never contains parts of more than one - letter. The end of a letter is marked by the appearance of an EOL - control flag in a segment. A sending TCP is allowed to collect data - from the sending user and to send that data in segments at its own - convenience, until the end of letter is signaled then it must send all - unsent data. When a receiving TCP has a complete letter, it must not - wait for more data from the sending TCP before passing the letter to - the receiving process. - - -[Page 12] - - -January 1980 - Transmission Control Protocol - Philosophy - - - - There is a coupling between letters as sent and the use of buffers of - data that cross the TCP/user interface. Each time an end-of-letter - (EOL) flag is associated with data placed into the receiving user's - buffer, the buffer is returned to the user for processing even if the - buffer is not filled. If a letter is longer than the user's buffer, - the letter is passed to the user in buffer size units, the last of - which may be only partly full. The receiving TCP's buffer size may be - communicated to the sending TCP when the connection is being - established. - - The TCP is responsible for regulating the flow of segments on the - connections, as a way of preventing itself from becoming saturated or - overloaded with traffic. This is done using a window flow control - mechanism. The data receiving TCP reports to the data sending TCP a - window which is the range of sequence numbers of data octets that data - receiving TCP is currently prepared to accept. - - TCP also provides a means to communicate to the receiver of data that - at some point further along in the data stream than the receiver is - currently reading there is urgent data. TCP does not attempt to - define what the user specifically does upon being notified of pending - urgent data, but the general notion is that the receiving process - should take action to read through the end urgent data quickly. - -2.9. Precedence and Security - - The TCP makes use of the internet protocol type of service field and - security option to provide precedence and security on a per connection - basis to TCP users. Not all TCP modules will necessarily function in - a multilevel secure environment, some may be limited to unclassified - use only, and others may operate at only one security level and - compartment. Consequently, some TCP implementations and services to - users may be limited to a subset of the multilevel secure case. - - TCP modules which operate in a multilevel secure environment should - properly mark outgoing segments with the security, compartment, and - precedence. Such TCP modules should also provide to their users or - higher level protocols such as Telnet or THP an interface to allow - them to specify the desired security level, compartment, and - precedence of connections. - -2.10. Robustness Principle - - TCP implementations should follow a general principle of robustness: - be conservative in what you do, be liberal in what you accept from - others. - - - - - [Page 13] - - - January 1980 -Transmission Control Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 14] - - -January 1980 - Transmission Control Protocol - - - - 3. FUNCTIONAL SPECIFICATION - -3.1. Header Format - - TCP segments are sent as internet datagrams. The Internet Protocol - header carries several information fields, including the source and - destination host addresses [2]. A TCP header follows the internet - header, supplying information specific to the TCP protocol. This - division allows for the existence of host level protocols other than - TCP. - - TCP Header Format - - - 0 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Source Port | Destination Port | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Sequence Number | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Acknowledgment Number | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Data | |U|A|E|R|S|F| | - | Offset| Reserved |R|C|O|S|Y|I| Window | - | | |G|K|L|T|N|N| | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Checksum | Urgent Pointer | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Options | Padding | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | data | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - - TCP Header Format - - Note that one tick mark represents one bit position. - - Figure 3. - - Source Port: 16 bits - - The source port number. - - Destination Port: 16 bits - - The destination port number. - - - - - [Page 15] - - - January 1980 -Transmission Control Protocol -Functional Specification - - - - Sequence Number: 32 bits - - The sequence number of the first data octet in this segment (except - when SYN is present). - - Acknowledgment Number: 32 bits - - If the ACK control bit is set this field contains the value of the - next sequence number the sender of the segment is expecting to - receive. Once a connection is established this is always sent. - - Data Offset: 4 bits - - The number of 32 bit words in the TCP Header. This indicates where - the data begins. The TCP header including options is an integral - number of 32 bits long. - - Reserved: 6 bits - - Reserved for future use. Must be zero. - - Control Bits: 8 bits (from left to right): - - URG: Urgent Pointer field significant - ACK: Acknowledgment field significant - EOL: End of Letter - RST: Reset the connection - SYN: Synchronize sequence numbers - FIN: No more data from sender - - Window: 16 bits - - The number of data octets beginning with the one indicated in the - acknowledgment field which the sender of this segment is willing to - accept. - - Checksum: 16 bits - - The checksum field is the 16 bit one's complement of the one's - complement sum of all 16 bit words in the header and text. If a - segment contains an odd number of header and text octets to be - checksummed, the last octet is padded on the right with zeros to - form a 16 bit word for checksum purposes. The pad is not - transmitted as part of the segment. While computing the checksum, - the checksum field itself is replaced with zeros. - - The checksum also covers a 96 bit pseudo header conceptually - prefixed to the TCP header. This pseudo header contains the Source - - -[Page 16] - - -January 1980 - Transmission Control Protocol - Functional Specification - - - - Address, the Destination Address, the Protocol, and TCP length. - This gives the TCP protection against misrouted segments. This - information is carried in the Internet Protocol and is transferred - across the TCP/Network interface in the arguments or results of - calls by the TCP on the IP. - - +--------------------------+ - | Source Address | - +--------------------------+ - | Destination Address | - +--------------------------+ - | zero | PTCL | TCP Length | - +--------------------------+ - - The TCP Length is the TCP header plus the data length in octets - (this is not an explicitly transmitted quantity, but is computed - from the total length, and the header length). - - Urgent Pointer: 16 bits - - This field communicates the current value of the urgent pointer as a - positive offset from the sequence number in this segment. The - urgent pointer points to the sequence number of the octet following - the urgent data. This field should only be interpreted in segments - with the URG control bit set. - - Options: variable - - Options may occupy space at the end of the TCP header and are a - multiple of 8 bits in length. All options are included in the - checksum. An option may begin on any octet boundary. There are two - cases for the format of an option: - - Case 1: A single octet of option-kind. - - Case 2: An octet of option-kind, an octet of option-length, and - the actual option-data octets. - - The option-length counts the two octets of option-kind and - option-length as well as the option-data octets. - - Note that the list of options may be shorter than the data offset - field might imply. The content of the header beyond the - End-of-Option option should be header padding (i.e., zero). - - A TCP must implement all options. - - - - - [Page 17] - - - January 1980 -Transmission Control Protocol -Functional Specification - - - - Currently defined options include (kind indicated in octal): - - Kind Length Meaning - ---- ------ ------- - 0 - End of option list. - 1 - No-Operation. - 100 - Reserved. - 105 4 Buffer Size. - - - Specific Option Definitions - - End of Option List - - +--------+ - |00000000| - +--------+ - Kind=0 - - This option code indicates the end of the option list. This - might not coincide with the end of the TCP header according to - the Data Offset field. This is used at the end of all options, - not the end of each option, and need only be used if the end of - the options would not otherwise coincide with the end of the TCP - header. - - No-Operation - - +--------+ - |00000001| - +--------+ - Kind=1 - - This option code may be used between options, for example, to - align the beginning of a subsequent option on a word boundary. - There is no guarantee that senders will use this option, so - receivers must be prepared to process options even if they do - not begin on a word boundary. - - Buffer Size - - +--------+--------+---------+--------+ - |01000101|00000100| buffer size | - +--------+--------+---------+--------+ - Kind=105 Length=4 - - - - - -[Page 18] - - -January 1980 - Transmission Control Protocol - Functional Specification - - - - Buffer Size Option Data: 16 bits - - If this option is present, then it communicates the receive - buffer size at the TCP which sends this segment. This field - should only be sent in the initial connection request (i.e., - in segments with the SYN control bit set). If this option is - not used, the default buffer size of one octet is assumed. - - Padding: variable - - The TCP header padding is used to ensure that the TCP header ends - and data begins on a 32 bit boundary. The padding is composed of - zeros. - -3.2. Terminology - - Before we can discuss very much about the operation of the TCP we need - to introduce some detailed terminology. The maintenance of a TCP - connection requires the remembering of several variables. We conceive - of these variables being stored in a connection record called a - Transmission Control Block or TCB. Among the variables stored in the - TCB are the local and remote socket numbers, the security and - precedence of the connection, pointers to the user's send and receive - buffers, pointers to the retransmit queue and to the current segment. - In addition several variables relating to the send and receive - sequence numbers are stored in the TCB. - - Send Sequence Variables - - SND.UNA - send unacknowledged - SND.NXT - send sequence - SND.WND - send window - SND.BS - send buffer size - SND.UP - send urgent pointer - SND.WL - send sequence number used for last window update - SND.LBB - send last buffer beginning - ISS - initial send sequence number - - Receive Sequence Variables - - RCV.NXT - receive sequence - RCV.WND - receive window - RCV.BS - receive buffer size - RCV.UP - receive urgent pointer - RCV.LBB - receive last buffer beginning - IRS - initial receive sequence number - - - - - [Page 19] - - - January 1980 -Transmission Control Protocol -Functional Specification - - - - The following diagrams may help to relate some of these variables to - the sequence space. - - Send Sequence Space - - 1 2 3 4 - ----------|----------|----------|---------- - SND.UNA SND.NXT SND.UNA - +SND.WND - - 1 - old sequence numbers which have been acknowledged - 2 - sequence numbers of unacknowledged data - 3 - sequence numbers allowed for new data transmission - 4 - future sequence numbers which are not yet allowed - - Send Sequence Space - - Figure 4. - - - - Receive Sequence Space - - 1 2 3 - ----------|----------|---------- - RCV.NXT RCV.NXT - +RCV.WND - - 1 - old sequence numbers which have been acknowledged - 2 - sequence numbers allowed for new reception - 3 - future sequence numbers which are not yet allowed - - Receive Sequence Space - - Figure 5. - - - - There are also some variables used frequently in the discussion that - take their values from the fields of the current segment. - - - - - - - - - - -[Page 20] - - -January 1980 - Transmission Control Protocol - Functional Specification - - - - Current Segment Variables - - SEG.SEQ - segment sequence number - SEG.ACK - segment acknowledgment number - SEG.LEN - segment length - SEG.WND - segment window - SEG.UP - segment urgent pointer - SEG.PRC - segment precedence value - - A connection progresses through a series of states during its - lifetime. The states are: LISTEN, SYN-SENT, SYN-RECEIVED, - ESTABLISHED, FIN-WAIT-1, FIN-WAIT-2, TIME-WAIT, CLOSE-WAIT, CLOSING, - and the fictional state CLOSED. CLOSED is fictional because it - represents the state when there is no TCB, and therefore, no - connection. Briefly the meanings of the states are: - - LISTEN - represents waiting for a connection request from any remote - TCP and port. - - SYN-SENT - represents waiting for a matching connection request - after having sent a connection request. - - SYN-RECEIVED - represents waiting for a confirming connection - request acknowledgment after having both received and sent a - connection request. - - ESTABLISHED - represents an open connection, ready to transmit and - receive data segments. - - FIN-WAIT-1 - represents waiting for a connection termination request - from the remote TCP, or an acknowledgment of the connection - termination request previously sent. - - FIN-WAIT-2 - represents waiting for a connection termination request - from the remote TCP. - - TIME-WAIT - represents waiting for enough time to pass to be sure - the remote TCP received the acknowledgment of its connection - termination request. - - CLOSE-WAIT - represents waiting for a connection termination request - from the local user. - - CLOSING - represents waiting for a connection termination request - acknowledgment from the remote TCP. - - CLOSED - represents no connection state at all. - - - - [Page 21] - - - January 1980 -Transmission Control Protocol -Functional Specification - - - - A TCP connection progresses from one state to another in response to - events. The events are the user calls, OPEN, SEND, RECEIVE, CLOSE, - ABORT, and STATUS; the incoming segments, particularly those - containing the SYN and FIN flags; and timeouts. - - The Glossary contains a more complete list of terms and their - definitions. - - The state diagram in figure 6 only illustrates state changes, together - with the causing events and resulting actions, but addresses neither - error conditions nor actions which are not connected with state - changes. In a later section, more detail is offered with respect to - the reaction of the TCP to events. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 22] - - -January 1980 - Transmission Control Protocol - Functional Specification - - - - - +---------+ ---------\ active OPEN - | CLOSED | \ ----------- - +---------+<---------\ \ create TCB - | ^ \ \ snd SYN - passive OPEN | | CLOSE \ \ - ------------ | | ---------- \ \ - create TCB | | delete TCB \ \ - V | \ \ - +---------+ CLOSE | \ - | LISTEN | ---------- | | - +---------+ delete TCB | | - rcv SYN | | SEND | | - ----------- | | ------- | V - +---------+ snd SYN,ACK / \ snd SYN +---------+ - | |<----------------- ------------------>| | - | SYN | rcv SYN | SYN | - | RCVD |<-----------------------------------------------| SENT | - | | snd ACK | | - | |------------------ -------------------| | - +---------+ rcv ACK of SYN \ / rcv SYN,ACK +---------+ - | -------------- | | ----------- - | x | | snd ACK - | V V - | CLOSE +---------+ - | ------- | ESTAB | - | snd FIN +---------+ - | CLOSE | | rcv FIN - V ------- | | ------- - +---------+ snd FIN / \ snd ACK +---------+ - | FIN |<----------------- ------------------>| CLOSE | - | WAIT-1 |------------------ -------------------| WAIT | - +---------+ rcv FIN \ / CLOSE +---------+ - | rcv ACK of FIN ------- | | ------- - | -------------- snd ACK | | snd FIN - V x V V - +---------+ +---------+ - |FINWAIT-2| | CLOSING | - +---------+ +---------+ - | rcv FIN | rcv ACK of FIN - | ------- Timeout=2MSL | -------------- - V snd ACK ------------ V delete TCB - +---------+ delete TCB +---------+ - |TIME WAIT|----------------->| CLOSED | - +---------+ +---------+ - - TCP Connection State Diagram - Figure 6. - - - [Page 23] - - - January 1980 -Transmission Control Protocol -Functional Specification - - - -3.3. Sequence Numbers - - A fundamental notion in the design is that every octet of data sent - over a TCP connection has a sequence number. Since every octet is - sequenced, each of them can be acknowledged. The acknowledgment - mechanism employed is cumulative so that an acknowledgment of sequence - number X indicates that all octets up to but not including X have been - received. This mechanism allows for straight-forward duplicate - detection in the presence of retransmission. Numbering of octets - within a segment is that the first data octet immediately following - the header is the lowest numbered, and the following octets are - numbered consecutively. - - It is essential to remember that the actual sequence number space is - finite, though very large. This space ranges from 0 to 2**32 - 1. - Since the space is finite, all arithmetic dealing with sequence - numbers must be performed modulo 2**32. This unsigned arithmetic - preserves the relationship of sequence numbers as they cycle from - 2**32 - 1 to 0 again. There are some subtleties to computer modulo - arithmetic, so great care should be taken in programming the - comparison of such values. The typical kinds of sequence number - comparisons which the TCP must perform include: - - (a) Determining that an acknowledgment refers to some sequence - number sent but not yet acknowledged. - - (b) Determining that all sequence numbers occupied by a segment - have been acknowledged (e.g., to remove the segment from a - retransmission queue). - - (c) Determining that an incoming segment contains sequence numbers - which are expected (i.e., that the segment "overlaps" the - receive window). - - - - - - - - - - - - - - - - - -[Page 24] - - -January 1980 - Transmission Control Protocol - Functional Specification - - - - On send connections the following comparisons are needed: - - older sequence numbers newer sequence numbers - - - SND.UNA SEG.ACK SND.NXT - | | | - ----|----XXXXXXX------XXXXXXXXXX---------XXXXXX----|---- - | | | | | | - | | | - Segment 1 Segment 2 Segment 3 - - <----- sequence space -----> - - Sending Sequence Space Information - - Figure 7. - - SND.UNA = oldest unacknowledged sequence number - - SND.NXT = next sequence number to be sent - - SEG.ACK = acknowledgment (next sequence number expected by the - acknowledging TCP) - - SEG.SEQ = first sequence number of a segment - - SEG.SEQ+SEG.LEN-1 = last sequence number of a segment - - A new acknowledgment (called an "acceptable ack"), is one for which - the inequality below holds: - - SND.UNA < SEG.ACK =< SND.NXT - - All arithmetic is modulo 2**32 and that comparisons are unsigned. - "=<" means "less than or equal". - - A segment on the retransmission queue is fully acknowledged if the sum - of its sequence number and length is less than the acknowledgment - value in the incoming segment. - - SEG.LEN is the number of octets occupied by the data in the segment. - It is important to note that SEG.LEN must be non-zero; segments which - do not occupy any sequence space (e.g., empty acknowledgment segments) - are never placed on the retransmission queue, so would not go through - this particular test. - - - - - [Page 25] - - - January 1980 -Transmission Control Protocol -Functional Specification - - - - On receive connections the following comparisons are needed: - - older sequence numbers newer sequence numbers - - - RCV.NXT RCV.NXT+RCV.WND - | | - ---------XXX|XXX------XXXXXXXXXX---------XXX|XX--------- - | | | | | - | | | - Segment 1 Segment 2 Segment 3 - - <----- sequence space -----> - - Receiving Sequence Space Information - - Figure 8. - - RCV.NXT = next sequence number expected on incoming segments - - RCV.NXT+RCV.WND = last sequence number expected on incoming - segments, plus one - - SEG.SEQ = first sequence number occupied by the incoming segment - - SEG.SEQ+SEG.LEN-1 = last sequence number occupied by the incoming - segment - - A segment is judged to occupy a portion of valid receive sequence - space if - - 0 =< (SEG.SEQ+SEG.LEN-1 - RCV.NXT) < (RCV.NXT+RCV.WND - RCV.NXT) - - SEG.SEQ+SEG.LEN-1 is the last sequence number occupied by the segment; - RCV.NXT is the next sequence number expected on an incoming segment; - and RCV.NXT+RCV.WND is the right edge of the receive window. - - Actually, it is a little more complicated than this. Due to zero - windows and zero length segments, we have four cases for the - acceptability of an incoming segment: - - - - - - - - - - -[Page 26] - - -January 1980 - Transmission Control Protocol - Functional Specification - - - - Segment Receive Test - Length Window - ------- ------- ------------------------------------------- - - 0 0 SEG.SEQ = RCV.NXT - - 0 >0 RCV.NXT =< SEG.SEQ < RCV.NXT+RCV.WND - - >0 0 not acceptable - - >0 >0 RCV.NXT < SEG.SEQ+SEG.LEN =< RCV.NXT+RCV.WND - - Note that the acceptance test for a segment, since it requires the end - of a segment to lie in the window, is somewhat more restrictive than - is absolutely necessary. If at least the first sequence number of the - segment lies in the receive window, or if some part of the segment - lies in the receive window, then the segment might be judged - acceptable. Thus, in figure 8, at least segments 1 and 2 are - acceptable by the strict rule, and segment 3 may or may not be, - depending on the strictness of interpretation of the rule. - - Note that when the receive window is zero no segments should be - acceptable except ACK segments. Thus, it should be possible for a TCP - to maintain a zero receive window while transmitting data and - receiving ACKs. - - We have taken advantage of the numbering scheme to protect certain - control information as well. This is achieved by implicitly including - some control flags in the sequence space so they can be retransmitted - and acknowledged without confusion (i.e., one and only one copy of the - control will be acted upon). Control information is not physically - carried in the segment data space. Consequently, we must adopt rules - for implicitly assigning sequence numbers to control. The SYN and FIN - are the only controls requiring this protection, and these controls - are used only at connection opening and closing. For sequence number - purposes, the SYN is considered to occur before the first actual data - octet of the segment in which it occurs, while the FIN is considered - to occur after the last actual data octet in a segment in which it - occurs. The segment length includes both data and sequence space - occupying controls. When a SYN is present then SEG.SEQ is the - sequence number of the SYN. - - Initial Sequence Number Selection - - The protocol places no restriction on a particular connection being - used over and over again. A connection is defined by a pair of - sockets. New instances of a connection will be referred to as - incarnations of the connection. The problem that arises owing to this - - - [Page 27] - - - January 1980 -Transmission Control Protocol -Functional Specification - - - - is -- "how does the TCP identify duplicate segments from previous - incarnations of the connection?" This problem becomes apparent if the - connection is being opened and closed in quick succession, or if the - connection breaks with loss of memory and is then reestablished. - - To avoid confusion we must prevent segments from one incarnation of a - connection from being used while the same sequence numbers may still - be present in the network from an earlier incarnation. We want to - assure this, even if a TCP crashes and loses all knowledge of the - sequence numbers it has been using. When new connections are created, - an initial sequence number (ISN) generator is employed which selects a - new 32 bit ISN. The generator is bound to a (possibly fictitious) 32 - bit clock whose low order bit is incremented roughly every 4 - microseconds. Thus, the ISN cycles approximately every 4.55 hours. - Since we assume that segments will stay in the network no more than - tens of seconds or minutes, at worst, we can reasonably assume that - ISN's will be unique. - - For each connection there is a send sequence number and a receive - sequence number. The initial send sequence number (ISS) is chosen by - the data sending TCP, and the initial receive sequence number (IRS) is - learned during the connection establishing procedure. - - For a connection to be established or initialized, the two TCPs must - synchronize on each other's initial sequence numbers. This is done in - an exchange of connection establishing messages carrying a control bit - called "SYN" (for synchronize) and the initial sequence numbers. As a - shorthand, messages carrying the SYN bit are also called "SYNs". - Hence, the solution requires a suitable mechanism for picking an - initial sequence number and a slightly involved handshake to exchange - the ISN's. A "three way handshake" is necessary because sequence - numbers are not tied to a global clock in the network, and TCPs may - have different mechanisms for picking the ISN's. The receiver of the - first SYN has no way of knowing whether the segment was an old delayed - one or not, unless it remembers the last sequence number used on the - connection (which is not always possible), and so it must ask the - sender to verify this SYN. - - The "three way handshake" and the advantages of a "clock-driven" - scheme are discussed in [4]. - - Knowing When to Keep Quiet - - To be sure that a TCP does not create a segment that carries a - sequence number which may be duplicated by an old segment remaining in - the network, the TCP must keep quiet for a maximum segment lifetime - (MSL) before assigning any sequence numbers upon starting up or - recovering from a crash in which memory of sequence numbers in use was - - -[Page 28] - - -January 1980 - Transmission Control Protocol - Functional Specification - - - - lost. For this specification the MSL is taken to be 2 minutes. This - is an engineering choice, and may be changed if experience indicates - it is desirable to do so. Note that if a TCP is reinitialized in some - sense, yet retains its memory of sequence numbers in use, then it need - not wait at all; it must only be sure to use sequence numbers larger - than those recently used. - - It should be noted that this strategy does not protect against - spoofing or other replay type duplicate message problems. - -3.4. Establishing a connection - - The "three-way handshake" is the procedure used to establish a - connection. This procedure normally is initiated by one TCP and - responded to by another TCP. The procedure also works if two TCP - simultaneously initiate the procedure. When simultaneous attempt - occurs, the TCP receives a "SYN" segment which carries no - acknowledgment after it has sent a "SYN". Of course, the arrival of - an old duplicate "SYN" segment can potentially make it appear, to the - recipient, that a simultaneous connection initiation is in progress. - Proper use of "reset" segments can disambiguate these cases. Several - examples of connection initiation follow. Although these examples do - not show connection synchronization using data-carrying segments, this - is perfectly legitimate, so long as the receiving TCP doesn't deliver - the data to the user until it is clear the data is valid (i.e., the - data must be buffered at the receiver until the connection reaches the - ESTABLISHED state). The three-way handshake reduces the possibility - of false connections. It is the implementation of a trade-off between - memory and messages to provide information for this checking. - - The simplest three-way handshake is shown in figure 9 below. The - figures should be interpreted in the following way. Each line is - numbered for reference purposes. Right arrows (-->) indicate - departure of a TCP segment from TCP A to TCP B, or arrival of a - segment at B from A. Left arrows (<--), indicate the reverse. - Ellipsis (...) indicates a segment which is still in the network - (delayed). An "XXX" indicates a segment which is lost or rejected. - Comments appear in parentheses. TCP states represent the state AFTER - the departure or arrival of the segment (whose contents are shown in - the center of each line). Segment contents are shown in abbreviated - form, with sequence number, control flags, and ACK field. Other - fields such as window, addresses, lengths, and text have been left out - in the interest of clarity. - - - - - - - - [Page 29] - - - January 1980 -Transmission Control Protocol -Functional Specification - - - - - - TCP A TCP B - - 1. CLOSED LISTEN - - 2. SYN-SENT --> --> SYN-RECEIVED - - 3. ESTABLISHED <-- <-- SYN-RECEIVED - - 4. ESTABLISHED --> --> ESTABLISHED - - 5. ESTABLISHED --> --> ESTABLISHED - - Basic 3-Way Handshake for Connection Synchronization - - Figure 9. - - In line 2 of figure 9, TCP A begins by sending a SYN segment - indicating that it will use sequence numbers starting with sequence - number 100. In line 3, TCP B sends a SYN and acknowledges the SYN it - received from TCP A. Note that the acknowledgment field indicates TCP - B is now expecting to hear sequence 101, acknowledging the SYN which - occupied sequence 100. - - At line 4, TCP A responds with an empty segment containing an ACK for - TCP B's SYN; and in line 5, TCP A sends some data. Note that the - sequence number of the segment in line 5 is the same as in line 4 - because the ACK does not occupy sequence number space (if it did, we - would wind up ACKing ACK's!). - - Simultaneous initiation is only slightly more complex, as is shown in - figure 10. Each TCP cycles from CLOSED to SYN-SENT to SYN-RECEIVED to - ESTABLISHED. - - The principle reason for the three-way handshake is to prevent old - duplicate connection initiations from causing confusion. To deal with - this, a special control message, reset, has been devised. If the - receiving TCP is in a non-synchronized state (i.e., SYN-SENT, - SYN-RECEIVED), it returns to LISTEN on receiving an acceptable reset. - If the TCP is in one of the synchronized states (ESTABLISHED, - FIN-WAIT-1, FIN-WAIT-2, TIME-WAIT, CLOSE-WAIT, CLOSING), it aborts the - connection and informs its user. We discuss this latter case under - "half-open" connections below. - - - - - - -[Page 30] - - -January 1980 - Transmission Control Protocol - Functional Specification - - - - - - TCP A TCP B - - 1. CLOSED CLOSED - - 2. SYN-SENT --> ... - - 3. SYN-RECEIVED <-- <-- SYN-SENT - - 4. ... --> SYN-RECEIVED - - 5. SYN-RECEIVED --> ... - - 6. ESTABLISHED <-- <-- SYN-RECEIVED - - 7. ... --> ESTABLISHED - - Simultaneous Connection Synchronization - - Figure 10. - - - - TCP A TCP B - - 1. CLOSED LISTEN - - 2. SYN-SENT --> ... - - 3. (duplicate) ... --> SYN-RECEIVED - - 4. SYN-SENT <-- <-- SYN-RECEIVED - - 5. SYN-SENT --> --> LISTEN - - - 6. ... --> SYN-RECEIVED - - 7. SYN-SENT <-- <-- SYN-RECEIVED - - 8. ESTABLISHED --> --> ESTABLISHED - - Recovery from Old Duplicate SYN - - Figure 11. - - As a simple example of recovery from old duplicates, consider - - - [Page 31] - - - January 1980 -Transmission Control Protocol -Functional Specification - - - - figure 11. At line 3, an old duplicate SYN arrives at TCP B. TCP B - cannot tell that this is an old duplicate, so it responds normally - (line 4). TCP A detects that the ACK field is incorrect and returns a - RST (reset) with its SEQ field selected to make the segment - believable. TCP B, on receiving the RST, returns to the LISTEN state. - When the original SYN (pun intended) finally arrives at line 6, the - synchronization proceeds normally. If the SYN at line 6 had arrived - before the RST, a more complex exchange might have occurred with RST's - sent in both directions. - - Half-Open Connections and Other Anomalies - - An established connection is said to be "half-open" if one of the - TCPs has closed or aborted the connection at its end without the - knowledge of the other, or if the two ends of the connection have - become desynchronized owing to a crash that resulted in loss of - memory. Such connections will automatically become reset if an - attempt is made to send data in either direction. However, half-open - connections are expected to be unusual, and the recovery procedure is - mildly involved. - - If at site A the connection no longer exists, then an attempt by the - user at site B to send any data on it will result in the site B TCP - receiving a reset control message. Such a message should indicate to - the site B TCP that something is wrong, and it is expected to abort - the connection. - - Assume that two user processes A and B are communicating with one - another when a crash occurs causing loss of memory to A's TCP. - Depending on the operating system supporting A's TCP, it is likely - that some error recovery mechanism exists. When the TCP is up again, - A is likely to start again from the beginning or from a recovery - point. As a result, A will probably try to OPEN the connection again - or try to SEND on the connection it believes open. In the latter - case, it receives the error message "connection not open" from the - local (A's) TCP. In an attempt to establish the connection, A's TCP - will send a segment containing SYN. This scenario leads to the - example shown in figure 12. After TCP A crashes, the user attempts to - re-open the connection. TCP B, in the meantime, thinks the connection - is open. - - - - - - - - - - -[Page 32] - - -January 1980 - Transmission Control Protocol - Functional Specification - - - - - - TCP A TCP B - - 1. (CRASH) (send 300,receive 100) - - 2. CLOSED ESTABLISHED - - 3. SYN-SENT --> --> (??) - - 4. (!!) <-- <-- ESTABLISHED - - 5. SYN-SENT --> --> (Abort!!) - - 6. CLOSED - - 7. SYN-SENT --> --> - - Half-Open Connection Discovery - - Figure 12. - - When the SYN arrives at line 3, TCP B, being in a synchronized state, - responds with an acknowledgment indicating what sequence it next - expects to hear (ACK 100). TCP A sees that this segment does not - acknowledge anything it sent and, being unsynchronized, sends a reset - (RST) because it has detected a half-open connection. TCP B aborts at - line 5. TCP A will continue to try to establish the connection; the - problem is now reduced to the basic 3-way handshake of figure 9. - - An interesting alternative case occurs when TCP A crashes and TCP B - tries to send data on what it thinks is a synchronized connection. - This is illustrated in figure 13. In this case, the data arriving at - TCP A from TCP B (line 2) is unacceptable because no such connection - exists, so TCP A sends a RST. The RST is acceptable so TCP B - processes it and aborts the connection. - - - - - - - - - - - - - - - [Page 33] - - - January 1980 -Transmission Control Protocol -Functional Specification - - - - - - TCP A TCP B - - 1. (CRASH) (send 300,receive 100) - - 2. (??) <-- <-- ESTABLISHED - - 3. --> --> (ABORT!!) - - Active Side Causes Half-Open Connection Discovery - - Figure 13. - - In figure 14, we find the two TCPs A and B with passive connections - waiting for SYN. An old duplicate arriving at TCP B (line 2) stirs B - into action. A SYN-ACK is returned (line 3) and causes TCP A to - generate a RST (the ACK in line 3 is not acceptable). TCP B accepts - the reset and returns to its passive LISTEN state. - - - - TCP A TCP B - - 1. LISTEN LISTEN - - 2. ... --> SYN-RECEIVED - - 3. (??) <-- <-- SYN-RECEIVED - - 4. --> --> (return to LISTEN!) - - 5. LISTEN LISTEN - - Old Duplicate SYN Initiates a Reset on two Passive Sockets - - Figure 14. - - A variety of other cases are possible, all of which are accounted for - by the following rules for RST generation and processing. - - Reset Generation - - As a general rule, reset (RST) should be sent whenever a segment - arrives which apparently is not intended for the current or a future - incarnation of the connection. A reset should not be sent if it is - not clear that this is the case. Thus, if any segment arrives for a - nonexistent connection, a reset should be sent. If a segment ACKs - - -[Page 34] - - -January 1980 - Transmission Control Protocol - Functional Specification - - - - something which has never been sent on the current connection, then - one of the following two cases applies. - - 1. If the connection is in any non-synchronized state (LISTEN, - SYN-SENT, SYN-RECEIVED) or if the connection does not exist, a reset - (RST) should be formed and sent for any segment that acknowledges - something not yet sent. The RST should take its SEQ field from the - ACK field of the offending segment (if the ACK control bit was set), - and its ACK bit should be reset (zero), except to refuse a initial - SYN. A reset is also sent if an incoming segment has a security level - or compartment which does not exactly match the level and compartment - requested for the connection. If the precedence of the incoming - segment is less than the precedence level requested a reset is sent. - - 2. If the connection is in a synchronized state (ESTABLISHED, - FIN-WAIT-1, FIN-WAIT-2, TIME-WAIT, CLOSE-WAIT, CLOSING), any - unacceptable segment should elicit only an empty acknowledgment - segment containing the current send-sequence number and an - acknowledgment indicating the next sequence number expected to be - received. - - Reset Processing - - All reset (RST) segments are validated by checking their SEQ-fields. - A reset is valid if its sequence number is in the window. In the case - of a RST received in response to an initial SYN any sequence number is - acceptable if the ACK field acknowledges the SYN. - - The receiver of a RST first validates it, then changes state. If the - receiver was in the LISTEN state, it ignores it. If the receiver was - in SYN-RECEIVED state and had previously been in the LISTEN state, - then the receiver returns to the LISTEN state, otherwise the receiver - aborts the connection and goes to the CLOSED state. If the receiver - was in any other state, it aborts the connection and advises the user - and goes to the CLOSED state. - -3.5. Closing a Connection - - CLOSE is an operation meaning "I have no more data to send." The - notion of closing a full-duplex connection is subject to ambiguous - interpretation, of course, since it may not be obvious how to treat - the receiving side of the connection. We have chosen to treat CLOSE - in a simplex fashion. The user who CLOSEs may continue to RECEIVE - until he is told that the other side has CLOSED also. Thus, a program - could initiate several SENDs followed by a CLOSE, and then continue to - RECEIVE until signaled that a RECEIVE failed because the other side - has CLOSED. We assume that the TCP will signal a user, even if no - RECEIVEs are outstanding, that the other side has closed, so the user - - - [Page 35] - - - January 1980 -Transmission Control Protocol -Functional Specification - - - - can terminate his side gracefully. A TCP will reliably deliver all - buffers SENT before the connection was CLOSED so a user who expects no - data in return need only wait to hear the connection was CLOSED - successfully to know that all his data was received at the destination - TCP. - - There are essentially three cases: - - 1) The user initiates by telling the TCP to CLOSE the connection - - 2) The remote TCP initiates by sending a FIN control signal - - 3) Both users CLOSE simultaneously - - Case 1: Local user initiates the close - - In this case, a FIN segment can be constructed and placed on the - outgoing segment queue. No further SENDs from the user will be - accepted by the TCP, and it enters the FIN-WAIT-1 state. RECEIVEs - are allowed in this state. All segments preceding and including FIN - will be retransmitted until acknowledged. When the other TCP has - both acknowledged the FIN and sent a FIN of its own, the first TCP - can ACK this FIN. It should be noted that a TCP receiving a FIN - will ACK but not send its own FIN until its user has CLOSED the - connection also. - - Case 2: TCP receives a FIN from the network - - If an unsolicited FIN arrives from the network, the receiving TCP - can ACK it and tell the user that the connection is closing. The - user should respond with a CLOSE, upon which the TCP can send a FIN - to the other TCP. The TCP then waits until its own FIN is - acknowledged whereupon it deletes the connection. If an ACK is not - forthcoming, after a timeout the connection is aborted and the user - is told. - - Case 3: both users close simultaneously - - A simultaneous CLOSE by users at both ends of a connection causes - FIN segments to be exchanged. When all segments preceding the FINs - have been processed and acknowledged, each TCP can ACK the FIN it - has received. Both will, upon receiving these ACKs, delete the - connection. - - - - - - - -[Page 36] - - -January 1980 - Transmission Control Protocol - Functional Specification - - - - - - TCP A TCP B - - 1. ESTABLISHED ESTABLISHED - - 2. (Close) - FIN-WAIT-1 --> --> CLOSE-WAIT - - 3. FIN-WAIT-2 <-- <-- CLOSE-WAIT - - 4. (Close) - TIME-WAIT <-- <-- CLOSING - - 5. TIME-WAIT --> --> CLOSED - - 6. (2 MSL) - CLOSED - - Normal Close Sequence - - Figure 15. - - - - TCP A TCP B - - 1. ESTABLISHED ESTABLISHED - - 2. (Close) (Close) - FIN-WAIT-1 --> ... FIN-WAIT-1 - <-- <-- - ... --> - - 3. CLOSING --> ... CLOSING - <-- <-- - ... --> - - 4. CLOSED CLOSED - - Simultaneous Close Sequence - - Figure 16. - - - - - - - - [Page 37] - - - January 1980 -Transmission Control Protocol -Functional Specification - - - -3.6. Precedence and Security - - The intent is that connection be allowed only between ports operating - with exactly the same security and compartment values and at the - higher of the precedence level requested by the two parts. - - The precedence levels are: - - flash override - 111 - flash - 110 - immediate - 10X - priority - 01X - routine - 00X - - The security levels are: - - top secret - 11 - secret - 10 - confidential - 01 - unclassified - 00 - - The compartments are assigned by the Defense Communications Agency. - The defaults are precedence: routine, security: unclassified, - compartment: zero. A host which does not implement precedence or - security feature should clear these fields to zero for segments it - sends. - - A connection attempt with mismatched security/compartment values or a - lower precedence value should be rejected by sending a reset. - - Note that TCP modules which operate only at the default value of - precedence will still have to check the precedence of incoming - segments and possibly raise the precedence level they use on the - connection. - -3.7. Data Communication - - Once the connection is established data is communicated by the - exchange of segments. Because segments may be lost due to errors - (checksum test failure), or network congestion, TCP uses - retransmission (after a timeout) to ensure delivery of every segment. - Duplicate segments may arrive due to network or TCP retransmission. - As discussed in the section on sequence numbers the TCP performs - certain tests on the sequence and acknowledgment numbers in the - segments to verify their acceptability. - - The sender of data keeps track of the next sequence number to use in - the variable SND.NXT. The receiver of data keeps track of the next - - -[Page 38] - - -January 1980 - Transmission Control Protocol - Functional Specification - - - - sequence number to expect in the variable RCV.NXT. The sender of data - keeps track of the oldest unacknowledged sequence number in the - variable SND.UNA. If the data flow is momentarily idle and all data - sent has been acknowledged then the three variables will be equal. - - When the sender creates a segment and transmits it the sender advances - SND.NXT. When the receiver accepts a segment it advances RCV.NXT and - sends an acknowledgment. When the data sender receives an - acknowledgment it advances SND.UNA. The extent to which the values of - these variables differ is a measure of the delay in the communication. - - Normally the amount by which the variables are advanced is the length - of the data in the segment. However, when letters are used there are - special provisions for coordination the sequence numbers, the letter - boundaries, and the receive buffer boundaries. - - End of Letter Sequence Number Adjustments - - There is provision in TCP for the receiver of data to optionally - communicate to the sender of data on a connection at the time of the - connection synchronization the receiver's buffer size. If this is - done the receiver must use this fixed size of buffers for the lifetime - of the connection. If a buffer size is communicated then there is a - coordination between receive buffers, letters, and sequence numbers. - - Each time a buffer is completed either due to being filled or due to - an end of letter, the sequence number is incremented through the end - of that buffer. - - That is, whenever an EOL is transmitted, the sender advances its send - sequence number, SND.NXT, by an amount sufficient to consume all the - unused space in the receiver's buffer. The amount of space consumed - in this fashion is subtracted from the send window just as is the - space consumed by actual data. - - And, whenever an EOL is received, the receiver advances its receive - sequence number, RCV.NXT, by an amount sufficient to consume all the - unused space in the receiver's buffer. The amount of space consumed - in this fashion is subtracted from the receive window just as is the - space consumed by actual data. - - - - - - - - - - - [Page 39] - - - January 1980 -Transmission Control Protocol -Functional Specification - - - - older sequence numbers newer sequence numbers - - | Buffer 1 | Buffer 2 - | | - ----+-------------------------------+----------------- - XXXXXXXXXXXXXXXXXXXXX+++++++++++ - | | | - |<-----SEG.LEN------>| | - | | | - | | | - SEG.SEQ A B - - XXX - data octets from segment - +++ - phantom data - - <----- sequence space -----> - - End of Letter Adjustment - - Figure 17. - - In the case illustrated above, if the segment does not carry an EOL - flag, the next value of SND.NXT or RCV.NXT will be A. If it does - carry an EOL flag, the next value will be B. - - The exchange of buffer size and sequencing information is done in - units of octets. If no buffer size is stated, then the buffer size is - assumed to be 1 octet. The receiver tells the sender the size of the - buffer in a SYN segment that contains the 16 bit buffer size data in - an option field in the TCP header. - - Each EOL advances the sequence number (SN) to the next buffer boundary - - While LBB < SEG.SEQ+SEG.LEN - Do LBB <- LBB + BS End - SN <- LBB - - where LBB is the Last Buffer Beginning, and BS is the buffer size. - - The CLOSE user call implies an end of letter, as does the FIN control - flag in an incoming segment. - - The Communication of Urgent Information - - The objective of the TCP urgent mechanism is to allow the sending user - to stimulate the receiving user to accept some urgent data and to - permit the receiving TCP to indicate to the receiving user when all - the currently known urgent data has been received by the user. - - -[Page 40] - - -January 1980 - Transmission Control Protocol - Functional Specification - - - - This mechanism permits a point in the data stream to be designated as - the end of "urgent" information. Whenever this point is in advance of - the receive sequence number (RCV.NXT) at the receiving TCP, that TCP - should tell the user to go into "urgent mode"; when the receive - sequence number catches up to the urgent pointer, the TCP should tell - user to go into "normal mode". If the urgent pointer is updated while - the user is in "read fast" mode, the update will be invisible to the - user. - - The method employs a urgent field which is carried in all segments - transmitted. The URG control flag indicates that the urgent field is - meaningful and should be added to the segment sequence number to yield - the urgent pointer. The absence of this flag indicates that the - urgent pointer has not changed. - - To send an urgent indication the user must also send at least one data - octet. If the sending user also indicates end of letter, timely - delivery of the urgent information to the destination process is - enhanced. - - Managing the Window - - The window sent in each segment indicates the range of sequence number - the sender of the window (the data receiver) is currently prepared to - accept. There is an assumption that this is related to the currently - available data buffer space available for this connection. The window - information is a guideline to be aimed at. - - Indicating a large window encourages transmissions. If more data - arrives than can be accepted, it will be discarded. This will result - in excessive retransmissions, adding unnecessarily to the load on the - network and the TCPs. Indicating a small window may restrict the - transmission of data to the point of introducing a round trip delay - between each new segment transmitted. - - The mechanisms provided allow a TCP to advertise a large window and to - subsequently advertise a much smaller window without having accepted - that much data. This, so called "shrinking the window," is strongly - discouraged. The robustness principle dictates that TCPs will not - shrink the window themselves, but will be prepared for such behavior - on the part of other TCPs. - - The sending TCP must be prepared to accept and send at least one octet - of new data even if the send window is zero. The sending TCP should - regularly retransmit to the receiving TCP even when the window is - zero. Two minutes is recommended for the retransmission interval when - the window is zero. This retransmission is essential to guarantee - - - - [Page 41] - - - January 1980 -Transmission Control Protocol -Functional Specification - - - - that when either TCP has a zero window the re-opening of the window - will be reliably reported to the other. - - The sending TCP packages the data to be transmitted into segments - which fit the current window, and may repackage segments on the - retransmission queue. Such repackaging is not required, but may be - helpful. - - Users must keep reading connections they close for sending until the - TCP says no more data. - - In a connection with a one-way data flow, the window information will - be carried in acknowledgment segments that all have the same sequence - number so there will be no way to reorder them if they arrive out of - order. This is not a serious problem, but it will allow the window - information to be on occasion temporarily based on old reports from - the data receiver. - -3.8. Interfaces - - There are of course two interfaces of concern: the user/TCP interface - and the TCP/IP interface. We have a fairly elaborate model of the - user/TCP interface, but only a sketch of the interface to the lower - level protocol module. - - User/TCP Interface - - The functional description of user commands to the TCP is, at best, - fictional, since every operating system will have different - facilities. Consequently, we must warn readers that different TCP - implementations may have different user interfaces. However, all - TCPs must provide a certain minimum set of services to guarantee - that all TCP implementations can support the same protocol - hierarchy. This section specifies the functional interfaces - required of all TCP implementations. - - TCP User Commands - - The following sections functionally characterize a USER/TCP - interface. The notation used is similar to most procedure or - function calls in high level languages, but this usage is not - meant to rule out trap type service calls (e.g., SVCs, UUOs, - EMTs). - - The user commands described below specify the basic functions the - TCP must perform to support interprocess communication. - Individual implementations should define their own exact format, - and may provide combinations or subsets of the basic functions in - - -[Page 42] - - -January 1980 - Transmission Control Protocol - Functional Specification - - - - single calls. In particular, some implementations may wish to - automatically OPEN a connection on the first SEND or RECEIVE - issued by the user for a given connection. - - In providing interprocess communication facilities, the TCP must - not only accept commands, but must also return information to the - processes it serves. The latter consists of: - - (a) general information about a connection (e.g., interrupts, - remote close, binding of unspecified foreign socket). - - (b) replies to specific user commands indicating success or - various types of failure. - - Open - - Format: OPEN (local port, foreign socket, active/passive - [, buffer size] [, timeout] [, precedence] - [, security/compartment]) -> local connection name - - We assume that the local TCP is aware of the identity of the - processes it serves and will check the authority of the process - to use the connection specified. Depending upon the - implementation of the TCP, the local network and TCP identifiers - for the source address will either be supplied by the TCP or by - the processes that serve it (e.g., the program which interfaces - the TCP network). These considerations are the result of - concern about security, to the extent that no TCP be able to - masquerade as another one, and so on. Similarly, no process can - masquerade as another without the collusion of the TCP. - - If the active/passive flag is set to passive, then this is a - call to LISTEN for an incoming connection. A passive open may - have either a fully specified foreign socket to wait for a - particular connection or an unspecified foreign socket to wait - for any call. A fully specified passive call can be made active - by the subsequent execution of a SEND. - - A full-duplex transmission control block (TCB) is created and - partially filled in with data from the OPEN command parameters. - - On an active OPEN command, the TCP will begin the procedure to - synchronize (i.e., establish) the connection at once. - - The buffer size, if present, indicates that the caller will - always receive data from the connection in that size of buffers. - This buffer size is a measure of the buffer between the user and - - - - [Page 43] - - - January 1980 -Transmission Control Protocol -Functional Specification - - - - the local TCP. The buffer size between the two TCPs may be - different. - - The timeout, if present, permits the caller to set up a timeout - for all buffers transmitted on the connection. If a buffer is - not successfully delivered to the destination within the timeout - period, the TCP will abort the connection. The present global - default is 30 seconds. The buffer retransmission rate may vary; - most likely, it will be related to the measured time for - responses from the remote TCP. - - The TCP or some component of the operating system will verify - the users authority to open a connection with the specified - precedence or security/compartment. The absence of precedence - or security/compartment specification in the OPEN call indicates - the default values should be used. - - TCP will accept incoming requests as matching only if the - security/compartment information is exactly the same and only if - the precedence is equal to or higher than the precedence - requested in the OPEN call. - - The precedence for the connection is the higher of the values - requested in the OPEN call and received from the incoming - request, and fixed at that value for the life of the connection. - - Depending on the TCP implementation, either a local connection - name will be returned to the user by the TCP, or the user will - specify this local connection name (in which case another - parameter is needed in the call). The local connection name can - then be used as a short hand term for the connection defined by - the pair. - - Send - - Format: SEND(local connection name, buffer address, byte count, - EOL flag, URGENT flag [, timeout]) - - This call causes the data contained in the indicated user buffer - to be sent on the indicated connection. If the connection has - not been opened, the SEND is considered an error. Some - implementations may allow users to SEND first; in which case, an - automatic OPEN would be done. If the calling process is not - authorized to use this connection, an error is returned. - - If the EOL flag is set, the data is the End Of a Letter, and the - EOL bit will be set in the last TCP segment created from the - - - -[Page 44] - - -January 1980 - Transmission Control Protocol - Functional Specification - - - - buffer. If the EOL flag is not set, subsequent SENDs will - appear to be part of the same letter. - - If the URGENT flag is set, segments resulting from this call - will have the urgent pointer set to indicate that some of the - data associated with this call is urgent. This facility, for - example, can be used to simulate "break" signals from terminals - or error or completion codes from I/O devices. The semantics of - this signal to the receiving process are unspecified. The - receiving TCP will signal the urgent condition to the receiving - process as long as the urgent pointer indicates that data - preceding the urgent pointer has not been consumed by the - receiving process. The purpose of urgent is to stimulate the - receiver to accept some urgent data and to indicate to the - receiver when all the currently known urgent data has been - received. - - The number of times the sending user's TCP signals urgent will - not necessarily be equal to the number of times the receiving - user will be notified of the presence of urgent data. - - If no foreign socket was specified in the OPEN, but the - connection is established (e.g., because a LISTENing connection - has become specific due to a foreign segment arriving for the - local socket), then the designated buffer is sent to the implied - foreign socket. In general, users who make use of OPEN with an - unspecified foreign socket can make use of SEND without ever - explicitly knowing the foreign socket address. - - However, if a SEND is attempted before the foreign socket - becomes specified, an error will be returned. Users can use the - STATUS call to determine the status of the connection. In some - implementations the TCP may notify the user when an unspecified - socket is bound. - - If a timeout is specified, then the current timeout for this - connection is changed to the new one. - - In the simplest implementation, SEND would not return control to - the sending process until either the transmission was complete - or the timeout had been exceeded. However, this simple method - is both subject to deadlocks (for example, both sides of the - connection might try to do SENDs before doing any RECEIVEs) and - offers poor performance, so it is not recommended. A more - sophisticated implementation would return immediately to allow - the process to run concurrently with network I/O, and, - furthermore, to allow multiple SENDs to be in progress. - - - - [Page 45] - - - January 1980 -Transmission Control Protocol -Functional Specification - - - - Multiple SENDs are served in first come, first served order, so - the TCP will queue those it cannot service immediately. - - We have implicitly assumed an asynchronous user interface in - which a SEND later elicits some kind of SIGNAL or - pseudo-interrupt from the serving TCP. An alternative is to - return a response immediately. For instance, SENDs might return - immediate local acknowledgment, even if the segment sent had not - been acknowledged by the distant TCP. We could optimistically - assume eventual success. If we are wrong, the connection will - close anyway due to the timeout. In implementations of this - kind (synchronous), there will still be some asynchronous - signals, but these will deal with the connection itself, and not - with specific segments or letters. - - NOTA BENE: In order for the process to distinguish among error - or success indications for different SENDs, it might be - appropriate for the buffer address to be returned along with the - coded response to the SEND request. TCP-to-user signals are - discussed below, indicating the information which should be - returned to the calling process. - - Receive - - Format: RECEIVE (local connection name, buffer address, byte - count) - - This command allocates a receiving buffer associated with the - specified connection. If no OPEN precedes this command or the - calling process is not authorized to use this connection, an - error is returned. - - In the simplest implementation, control would not return to the - calling program until either the buffer was filled, or some - error occurred, but this scheme is highly subject to deadlocks. - A more sophisticated implementation would permit several - RECEIVEs to be outstanding at once. These would be filled as, - segments arrive. This strategy permits increased throughput at - the cost of a more elaborate scheme (possibly asynchronous) to - notify the calling program that a letter has been received or a - buffer filled. - - If insufficient buffer space is given to reassemble a complete - letter, the EOL flag will not be set in the response to the - RECEIVE. The buffer will be filled with as much data as it can - hold. The last buffer required to hold the letter is returned - with EOL signaled. - - - -[Page 46] - - -January 1980 - Transmission Control Protocol - Functional Specification - - - - The remaining parts of a partly delivered letter will be placed - in buffers as they are made available via successive RECEIVEs. - If a number of RECEIVEs are outstanding, they may be filled with - parts of a single long letter or with at most one letter each. - The return codes associated with each RECEIVE will indicate what - is contained in the buffer. - - If a buffer size was given in the OPEN call, then all buffers - presented in RECEIVE calls must be of exactly that size, or an - error indication will be returned. - - The URGENT flag will be set only if the receiving user has - previously been informed via a TCP-to-user signal, that urgent - data is waiting. The receiving user should thus be in - "read-fast" mode. If the URGENT flag is on, additional urgent - data remains. If the URGENT flag is off, this call to RECEIVE - has returned all the urgent data, and the user may now leave - "read-fast" mode. - - To distinguish among several outstanding RECEIVEs and to take - care of the case that a letter is smaller than the buffer - supplied, the return code is accompanied by both a buffer - pointer and a byte count indicating the actual length of the - letter received. - - Alternative implementations of RECEIVE might have the TCP - allocate buffer storage, or the TCP might share a ring buffer - with the user. Variations of this kind will produce obvious - variation in user interface to the TCP. - - Close - - Format: CLOSE(local connection name) - - This command causes the connection specified to be closed. If - the connection is not open or the calling process is not - authorized to use this connection, an error is returned. - Closing connections is intended to be a graceful operation in - the sense that outstanding SENDs will be transmitted (and - retransmitted), as flow control permits, until all have been - serviced. Thus, it should be acceptable to make several SEND - calls, followed by a CLOSE, and expect all the data to be sent - to the destination. It should also be clear that users should - continue to RECEIVE on CLOSING connections, since the other side - may be trying to transmit the last of its data. Thus, CLOSE - means "I have no more to send" but does not mean "I will not - receive any more." It may happen (if the user level protocol is - not well thought out) that the closing side is unable to get rid - - - [Page 47] - - - January 1980 -Transmission Control Protocol -Functional Specification - - - - of all its data before timing out. In this event, CLOSE turns - into ABORT, and the closing TCP gives up. - - The user may CLOSE the connection at any time on his own - initiative, or in response to various prompts from the TCP - (e.g., remote close executed, transmission timeout exceeded, - destination inaccessible). - - Because closing a connection requires communication with the - foreign TCP, connections may remain in the closing state for a - short time. Attempts to reopen the connection before the TCP - replies to the CLOSE command will result in error responses. - - Close also implies end of letter. - - Status - - Format: STATUS(local connection name) - - This is an implementation dependent user command and could be - excluded without adverse effect. Information returned would - typically come from the TCB associated with the connection. - - This command returns a data block containing the following - information: - - local socket, - foreign socket, - local connection name, - receive window, - send window, - connection state, - number of buffers awaiting acknowledgment, - number of buffers pending receipt (including partial ones), - receive buffer size, - urgent state, - precedence, - security/compartment, - and default transmission timeout. - - Depending on the state of the connection, or on the - implementation itself, some of this information may not be - available or meaningful. If the calling process is not - authorized to use this connection, an error is returned. This - prevents unauthorized processes from gaining information about a - connection. - - - - -[Page 48] - - -January 1980 - Transmission Control Protocol - Functional Specification - - - - Abort - - Format: ABORT (local connection name) - - This command causes all pending SENDs and RECEIVES to be - aborted, the TCB to be removed, and a special RESET message to - be sent to the TCP on the other side of the connection. - Depending on the implementation, users may receive abort - indications for each outstanding SEND or RECEIVE, or may simply - receive an ABORT-acknowledgment. - - TCP-to-User Messages - - It is assumed that the operating system environment provides a - means for the TCP to asynchronously signal the user program. When - the TCP does signal a user program, certain information is passed - to the user. Often in the specification the information will be - an error message. In other cases there will be information - relating to the completion of processing a SEND or RECEIVE or - other user call. - - The following information is provided: - - Local Connection Name Always - Response String Always - Buffer Address Send & Receive - Byte count (counts bytes received) Receive - End-of-Letter flag Receive - End-of-Urgent flag Receive - - TCP/Network Interface - - The TCP calls on a lower level protocol module to actually send and - receive information over a network. One case is that of the ARPA - internetwork system where the lower level module is the Internet - Protocol [2]. In most cases the following simple interface would be - adequate. - - - - - - - - - - - - - - [Page 49] - - - January 1980 -Transmission Control Protocol -Functional Specification - - - - The following two calls satisfy the requirements for the TCP to - internet protocol module communication: - - SEND (dest, TOS, TTL, BufPTR, len, Id, DF, options => result) - - where: - - dest = destination address - TOS = type of service - TTL = time to live - BufPTR = buffer pointer - len = length of buffer - Id = Identifier - DF = Don't Fragment - options = internet option data - result = response - OK = datagram sent ok - Error = error in arguments or local network error - - Note that the precedence is included in the TOS and the - security/compartment is passed as an option. - - RECV (BufPTR => result, source, dest, prot, TOS, len) - - where: - - BufPTR = buffer pointer - result = response - OK = datagram received ok - Error = error in arguments - source = source address - dest = destination address - prot = protocol - TOS = type of service - options = internet option data - len = length of buffer - - Note that the precedence is in the TOS, and the - security/compartment is an option. - - When the TCP sends a segment, it executes the SEND call supplying - all the arguments. The internet protocol module, on receiving - this call, checks the arguments and prepares and sends the - message. If the arguments are good and the segment is accepted by - the local network, the call returns successfully. If either the - arguments are bad, or the segment is not accepted by the local - network, the call returns unsuccessfully. On unsuccessful - returns, a reasonable report should be made as to the cause of the - - -[Page 50] - - -January 1980 - Transmission Control Protocol - Functional Specification - - - - problem, but the details of such reports are up to individual - implementations. - - When a segment arrives at the internet protocol module from the - local network, either there is a pending RECV call from TCP or - there is not. In the first case, the pending call is satisfied by - passing the information from the segment to the TCP. In the - second case, the TCP is notified of a pending segment. - - The notification of a TCP may be via a pseudo interrupt or similar - mechanism, as appropriate in the particular operating system - environment of the implementation. - - A TCP's RECV call may then either be immediately satisfied by a - pending segment, or the call may be pending until a segment - arrives. - - We note that the Internet Protocol provides arguments for a type - of service and for a time to live. TCP uses the following - settings for these parameters: - - Type of Service = Precedence: none, Package: stream, - Reliability: higher, Preference: speed, Speed: higher; or - 00011111. - - Time to Live = one minute, or 00111100. - - Note that the assumed maximum segment lifetime is two minutes. - Here we explicitly ask that a segment be destroyed if it - cannot be delivered by the internet system within one minute. - - - - - - - - - - - - - - - - - - - - - [Page 51] - - - January 1980 -Transmission Control Protocol -Functional Specification - - - -3.9. Event Processing - - The activity of the TCP can be characterized as responding to events. - The events that occur can be cast into three categories: user calls, - arriving segments, and timeouts. This section describes the - processing the TCP does in response to each of the events. In many - cases the processing required depends on the state of the connection. - - Events that occur: - - User Calls - - OPEN - SEND - RECEIVE - CLOSE - ABORT - STATUS - - Arriving Segments - - SEGMENT ARRIVES - - Timeouts - - USER TIMEOUT - RETRANSMISSION TIMEOUT - - The model of the TCP/user interface is that user commands receive an - immediate return and possibly a delayed response via an event or - pseudo interrupt. In the following descriptions, the term "signal" - means cause a delayed response. - - Error responses are given as character strings. For example, user - commands referencing connections that do not exist receive "error: - connection not open". - - Please note in the following that all arithmetic on sequence numbers, - acknowledgment numbers, windows, et cetera, is modulo 2**32 the size - of the sequence number space. Also note that "=<" means less than or - equal to. - - A natural way to think about processing incoming segments is to - imagine that they are first tested for proper sequence number (i.e., - that their contents lie in the range of the expected "receive window" - in the sequence number space) and then that they are generally queued - and processed in sequence number order. - - - -[Page 52] - - -January 1980 - Transmission Control Protocol - Functional Specification - - - - When a segment overlaps other already received segments we reconstruct - the segment to contain just the new data, and adjust the header fields - to be consistent. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Page 53] - - - January 1980 -Transmission Control Protocol -Functional Specification - OPEN Call - - - - OPEN Call - - CLOSED STATE (i.e., TCB does not exist) - - Create a new transmission control block (TCB) to hold connection - state information. Fill in local socket identifier, foreign - socket, precedence, security/compartment, and user timeout - information. Verify the security and precedence requested are - allowed for this user, if not return "error: precedence not - allowed" or "error: security/compartment not allowed." If active - and the foreign socket is unspecified, return "error: foreign - socket unspecified"; if active and the foreign socket is - specified, issue a SYN segment. An initial send sequence number - (ISS) is selected and the TCP receive buffer size is selected (if - applicable). A SYN segment of the form is sent - (this may include the buffer size option if applicable). Set - SND.UNA to ISS, SND.NXT to ISS+1, SND.LBB to ISS+1, enter SYN-SENT - state, and return. - - If the caller does not have access to the local socket specified, - return "error: connection illegal for this process". If there is - no room to create a new connection, return "error: insufficient - resources". - - LISTEN STATE - SYN-SENT STATE - SYN-RECEIVED STATE - ESTABLISHED STATE - FIN-WAIT-1 STATE - FIN-WAIT-2 STATE - TIME-WAIT STATE - CLOSE-WAIT STATE - CLOSING STATE - - Return "error: connection already exists". - - - - - - - - - - - - - - -[Page 54] - - -January 1980 - Transmission Control Protocol - Functional Specification -SEND Call - - - - SEND Call - - CLOSED STATE (i.e., TCB does not exist) - - If the user should no have access to such a connection, then - return "error: connection illegal for this process". - - Otherwise, return "error: connection does not exist". - - LISTEN STATE - - If the foreign socket is specified, then change the connection - from passive to active, select an ISS, and select the receive - buffer size. Send a SYN segment, set SND.UNA to ISS, SND.NXT to - ISS+1 and SND.LBB to ISS+1. Enter SYN-SENT state. Data - associated with SEND may be sent with SYN segment or queued for - transmission after entering ESTABLISHED state. The urgent bit if - requested in the command should be sent with the first data - segment sent as a result of this command. If there is no room to - queue the request, respond with "error: insufficient resources". - If Foreign socket was not specified, then return "error: foreign - socket unspecified". - - SYN-SENT STATE - - Queue for processing after the connection is ESTABLISHED. - Typically, nothing can be sent yet, anyway, because the send - window has not yet been set by the other side. If no space, - return "error: insufficient resources". - - SYN-RECEIVED STATE - - Queue for later processing after entering ESTABLISHED state. If - no space to queue, respond with "error: insufficient resources". - - ESTABLISHED STATE - - Segmentize the buffer, send or queue it for output, with a - piggybacked acknowledgment (acknowledgment value = RCV.NXT) with - the data. If there is insufficient space to remember this buffer, - simply return "error: insufficient resources". - - If remote buffer size is not one octet, and, if this is the end of - a letter, do the following end-of-letter/buffer-size adjustment - processing: - - - - - [Page 55] - - - January 1980 -Transmission Control Protocol -Functional Specification - SEND Call - - - - if EOL = 0 then - - SND.NXT <- SEG.SEQ + SEG.LEN - - if EOL = 1 then - - While SND.LBB < SEG.SEQ + SEG.LEN - Do SND.LBB <- SND.LBB + SND.BS End - SND.NXT <- SND.LBB - - If the urgent flag is set, then SND.UP <- SND.NXT-1 and set the - urgent pointer in the outgoing segment. - - FIN-WAIT-1 STATE - FIN-WAIT-2 STATE - TIME-WAIT STATE - - Return "error: connection closing" and do not service request. - - CLOSE-WAIT STATE - - Segmentize any text to be sent and queue for output. If there is - insufficient space to remember the SEND, return "error: - insufficient resources" - - CLOSING STATE - - Respond with "error: connection closing" - - - - - - - - - - - - - - - - - - - - - -[Page 56] - - -January 1980 - Transmission Control Protocol - Functional Specification -RECEIVE Call - - - - RECEIVE Call - - CLOSED STATE (i.e., TCB does not exist) - - If the user should no have access to such a connection, return - "error: connection illegal for this process". - - Otherwise return "error: connection does not exist". - - LISTEN STATE - SYN-SENT STATE - SYN-RECEIVED STATE - - Queue for processing after entering ESTABLISHED state. If there - is no room to queue this request, respond with "error: - insufficient resources". - - ESTABLISHED STATE - - If insufficient incoming segments are queued to satisfy the - request, queue the request. If there is no queue space to - remember the RECEIVE, respond with "error: insufficient - resources". - - Reassemble queued incoming segments into receive buffer and return - to user. Mark "end of letter" (EOL) if this is the case. - - If RCV.UP is in advance of the data currently being passed to the - user notify the user of the presence of urgent data. - - When the TCP takes responsibility for delivering data to the user - that fact must be communicated to the sender via an - acknowledgment. The formation of such an acknowledgment is - described below in the discussion of processing an incoming - segment. - - FIN-WAIT-1 STATE - FIN-WAIT-2 STATE - - Reassemble and return a letter, or as much as will fit, in the - user buffer. Queue the request if it cannot be serviced - immediately. - - - - - - - - [Page 57] - - - January 1980 -Transmission Control Protocol -Functional Specification - RECEIVE Call - - - - TIME-WAIT STATE - CLOSE-WAIT STATE - - Since the remote side has already sent FIN, RECEIVEs must be - satisfied by text already reassembled, but not yet delivered to - the user. If no reassembled segment text is awaiting delivery, - the RECEIVE should get a "error: connection closing" response. - Otherwise, any remaining text can be used to satisfy the RECEIVE. - - CLOSING STATE - - Return "error: connection closing" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 58] - - -January 1980 - Transmission Control Protocol - Functional Specification -CLOSE Call - - - - CLOSE Call - - CLOSED STATE (i.e., TCB does not exist) - - If the user should no have access to such a connection, return - "error: connection illegal for this process". - - Otherwise, return "error: connection does not exist". - - LISTEN STATE - - Any outstanding RECEIVEs should be returned with "error: closing" - responses. Delete TCB, return "ok". - - SYN-SENT STATE - - Delete the TCB and return "error: closing" responses to any - queued SENDs, or RECEIVEs. - - SYN-RECEIVED STATE - - Queue for processing after entering ESTABLISHED state or - segmentize and send FIN segment. If the latter, enter FIN-WAIT-1 - state. - - ESTABLISHED STATE - - Queue this until all preceding SENDs have been segmentized, then - form a FIN segment and send it. In any case, enter FIN-WAIT-1 - state. - - FIN-WAIT-1 STATE - FIN-WAIT-2 STATE - - Strictly speaking, this is an error and should receive a "error: - connection closing" response. An "ok" response would be - acceptable, too, as long as a second FIN is not emitted (the first - FIN may be retransmitted though). - - - - - - - - - - - - [Page 59] - - - January 1980 -Transmission Control Protocol -Functional Specification - CLOSE Call - - - - TIME-WAIT STATE - - Strictly speaking, this is an error and should receive a "error: - connection closing" response. An "ok" response would be - acceptable, too. However, since the FIN has been sent and - acknowledged, nothing should be sent (or retransmitted). - - CLOSE-WAIT STATE - - Queue this request until all preceding SENDs have been - segmentized; then send a FIN segment, enter CLOSING state. - - CLOSING STATE - - Respond with "error: connection closing" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 60] - - -January 1980 - Transmission Control Protocol - Functional Specification -ABORT Call - - - - ABORT Call - - CLOSED STATE (i.e., TCB does not exist) - - If the user should no have access to such a connection, return - "error: connection illegal for this process". - - Otherwise return "error: connection does not exist". - - LISTEN STATE - - Any outstanding RECEIVEs should be returned with "error: - connection reset" responses. Delete TCB, return "ok". - - SYN-SENT STATE - - Delete the TCB and return "reset" responses to any queued SENDs, - or RECEIVEs. - - SYN-RECEIVED STATE - - Send a RST of the form: - - - - and return any unprocessed SENDs, or RECEIVEs with "reset" code, - delete the TCB. - - ESTABLISHED STATE - - Send a reset segment: - - - - All queued SENDs and RECEIVEs should be given "reset" responses; - all segments queued for transmission (except for the RST formed - above) or retransmission should be flushed, delete the TCB. - - - - - - - - - - - - - [Page 61] - - - January 1980 -Transmission Control Protocol -Functional Specification - ABORT Call - - - - FIN-WAIT-1 STATE - FIN-WAIT-2 STATE - - A reset segment (RST) should be formed and sent: - - - - Outstanding SENDs, RECEIVEs, CLOSEs, and/or segments queued for - retransmission, or segmentizing, should be flushed, with - "connection reset" notification to the user, delete the TCB. - - TIME-WAIT STATE - - Respond with "ok" and delete the TCB. - - CLOSE-WAIT STATE - - Flush any pending SENDs and RECEIVEs, returning "connection reset" - responses for them. Form and send a RST segment: - - - - Flush all segment queues and delete the TCB. - - CLOSING STATE - - Respond with "ok" and delete the TCB; flush any remaining segment - queues. If a CLOSE command is still pending, respond "error: - connection reset". - - - - - - - - - - - - - - - - - - - - -[Page 62] - - -January 1980 - Transmission Control Protocol - Functional Specification -STATUS Call - - - - STATUS Call - - CLOSED STATE (i.e., TCB does not exist) - - If the user should no have access to such a connection, return - "error: connection illegal for this process". - - Otherwise return "error: connection does not exist". - - LISTEN STATE - - Return "state = LISTEN", and the TCB pointer. - - SYN-SENT STATE - - Return "state = SYN-SENT", and the TCB pointer. - - SYN-RECEIVED STATE - - Return "state = SYN-RECEIVED", and the TCB pointer. - - ESTABLISHED STATE - - Return "state = ESTABLISHED", and the TCB pointer. - - FIN-WAIT-1 STATE - - Return "state = FIN-WAIT-1", and the TCB pointer. - - FIN-WAIT-2 STATE - - Return "state = FIN-WAIT-2", and the TCB pointer. - - TIME-WAIT STATE - - Return "state = TIME-WAIT and the TCB pointer. - - CLOSE-WAIT STATE - - Return "state = CLOSE-WAIT", and the TCB pointer. - - CLOSING STATE - - Return "state = CLOSING", and the TCB pointer. - - - - - - [Page 63] - - - January 1980 -Transmission Control Protocol -Functional Specification - SEGMENT ARRIVES - - - - SEGMENT ARRIVES - - If the state is CLOSED (i.e., TCB does not exist) then - - all data in the incoming segment is discarded. An incoming - segment containing a RST is discarded. An incoming segment not - containing a RST causes a RST to be sent in response. The - acknowledgment and sequence field values are selected to make the - reset sequence acceptable to the TCP that sent the offending - segment. - - If the ACK bit is off, sequence number zero is used, - - - - If the ACK bit is on, - - - - Return. - - If the state is LISTEN then - - first check for an ACK - - Any acknowledgment is bad if it arrives on a connection still in - the LISTEN state. An acceptable reset segment should be formed - for any arriving ACK-bearing segment, except another RST. The - RST should be formatted as follows: - - - - Return. - - An incoming RST should be ignored. Return. - - if there was no ACK then check for a SYN - - If the SYN bit is set, check the security. If the - security/compartment on the incoming segment does not exactly - match the security/compartment in the TCB then send a reset and - return. If the SEG.PRC is less than the TCB.PRC then send a - reset and return. If the SEG.PRC is greater than the TCB.PRC - then set TCB.PRC<-SEG.PRC. Now RCV.NXT and RCV.LBB are set to - SEG.SEQ+1, IRS is set to SEG.SEQ and any other control or text - should be queued for processing later. ISS should be selected - and a SYN segment sent of the form: - - -[Page 64] - - -January 1980 - Transmission Control Protocol - Functional Specification -SEGMENT ARRIVES - - - - - - SND.NXT and SND.LBB are set to ISS+1 and SND.UNA to ISS. The - connection state should be changed to SYN-RECEIVED. Note that - any other incoming control or data (combined with SYN) will be - processed in the SYN-RECEIVED state, but processing of SYN and - ACK should not be repeated. If the listen was not fully - specified (i.e., the foreign socket was not fully specified), - then the unspecified fields should be filled in now. - - if there was no SYN but there was other text or control - - Any other control or text-bearing segment (not containing SYN) - must have an ACK and thus would be discarded by the ACK - processing. An incoming RST segment could not be valid, since - it could not have been sent in response to anything sent by this - incarnation of the connection. So you are unlikely to get here, - but if you do, drop the segment, and return. - - If the state is SYN-SENT then - - first check for an ACK - - If SEG.ACK =< ISS, or SEG.ACK > SND.NXT, or the - security/compartment in the segment does not exactly match the - security/compartment in the TCB, or the precedence in the - segment is less than the precedence in the TCB, send a reset - - - - and discard the segment. Return. - - If SND.UNA =< SEG.ACK =< SND.NXT and the security/compartment - and precedence are acceptable then the ACK is acceptable. - SND.UNA should be advanced to equal SEG.ACK, and any segments on - the retransmission queue which are thereby acknowledged should - be removed. - - if the ACK is ok (or there is no ACK), check the RST bit - - If the RST bit is set then signal the user "error: connection - reset", enter CLOSED state, drop the segment, delete TCB, and - return. - - if the ACK is ok (or there is no ACK) and it was not a RST, check - the SYN bit - - - - [Page 65] - - - January 1980 -Transmission Control Protocol -Functional Specification - SEGMENT ARRIVES - - - - If the SYN bit is on and the security/compartment and precedence - are acceptable then, RCV.NXT and RCV.LBB are set to SEG.SEQ+1, - IRS is set to SEG.SEQ. If SND.UNA > ISS (our SYN has been - ACKed), change the connection state to ESTABLISHED, otherwise - enter SYN-RECEIVED. In any case, form an ACK segment: - - - - and send it. Data or controls which were queued for - transmission may be included. - - If SEG.PRC is greater than TCB.PRC set TCB.PRC<-SEG.PRC. - - If there are other controls or text in the segment then continue - processing at the fifth step below where the URG bit is checked, - otherwise return. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 66] - - -January 1980 - Transmission Control Protocol - Functional Specification -SEGMENT ARRIVES - - - - Otherwise, - - first check sequence number - - SYN-RECEIVED STATE - ESTABLISHED STATE - FIN-WAIT-1 STATE - FIN-WAIT-2 STATE - TIME-WAIT STATE - CLOSE-WAIT STATE - CLOSING STATE - - Segments are processed in sequence. Initial tests on arrival - are used to discard old duplicates, but further processing is - done in SEG.SEQ order. If a segment's contents straddle the - boundary between old and new, only the new parts should be - processed. - - There are four cases for the acceptability test for an incoming - segment: - - Segment Receive Test - Length Window - ------- ------- ------------------------------------------- - - 0 0 SEG.SEQ = RCV.NXT - - 0 >0 RCV.NXT =< SEG.SEQ < RCV.NXT+RCV.WND - - >0 0 not acceptable - - >0 >0 RCV.NXT < SEG.SEQ+SEG.LEN =< RCV.NXT+RCV.WND - - Note that the test above guarantees that the last sequence - number used by the segment lies in the receive-window. If the - RCV.WND is zero, no segments will be acceptable, but special - allowance should be made to accept valid ACKs, URGs and RSTs. - - If an incoming segment is not acceptable, an acknowledgment - should be sent in reply: - - - - If the incoming segment is unacceptable, drop it and return. - - - - - - [Page 67] - - - January 1980 -Transmission Control Protocol -Functional Specification - SEGMENT ARRIVES - - - - second check security and precedence - - If the security/compartment and precedence in the segment do not - exactly match the security/compartment and precedence in the TCB - then form a reset and return. - - Note this check is placed following the sequence check to prevent - a segment from an old connection between these parts with a - different security or precedence from causing an abort of the - current connection. - - third check the ACK field, - - SYN-RECEIVED STATE - - If the RST bit is off and SND.UNA < SEG.ACK =< SND.NXT then set - SND.UNA <- SEG.ACK, remove any acknowledged segments from the - retransmission queue, and enter ESTABLISHED state. - - If the segment acknowledgment is not acceptable, form a reset - segment, - - - - and send it, unless the incoming segment is an RST (or there is - no ACK), in which case, it should be discarded, then return. - - ESTABLISHED STATE - - If SND.UNA < SEG.ACK =< SND.NXT then, set SND.UNA <- SEG.ACK. - Any segments on the retransmission queue which are thereby - entirely acknowledged are removed. Users should receive - positive acknowledgments for buffers which have been SENT and - fully acknowledged (i.e., SEND buffer should be returned with - "ok" response). If the ACK is a duplicate, it can be ignored. - - If the segment passes the sequence number and acknowledgment - number tests, the send window should be updated. If - SND.WL =< SEG.SEQ, set SND.WND <- SEG.WND and set - SND.WL <- SEG.SEQ. - - If the remote buffer size is not one, then the - end-of-letter/buffer-size adjustment to sequence numbers may - have an effect on the next expected sequence number to be - acknowledged. It is possible that the remote TCP will - acknowledge with a SEG.ACK equal to a sequence number of an - - - -[Page 68] - - -January 1980 - Transmission Control Protocol - Functional Specification -SEGMENT ARRIVES - - - - octet that was skipped over at the end of a letter. This a mild - error on the remote TCPs part, but not cause for alarm. - - FIN-WAIT-1 STATE - FIN-WAIT-2 STATE - - In addition to the processing for the ESTABLISHED state, if the - retransmission queue is empty, the user's CLOSE can be - acknowledged ("ok") but do not delete the TCB. - - TIME-WAIT STATE - - The only thing that can arrive in this state is a retransmission - of the remote FIN. Acknowledge it, and restart the 2 MSL - timeout. - - CLOSE-WAIT STATE - - Do the same processing as for the ESTABLISHED state. - - CLOSING STATE - - If the ACK acknowledges our FIN then delete the TCB (enter the - CLOSED state), otherwise ignore the segment. - - fourth check the RST bit, - - SYN-RECEIVED STATE - - If the RST bit is set then, if the segment has passed sequence - and acknowledgment tests, it is valid. If this connection was - initiated with a passive OPEN (i.e., came from the LISTEN - state), then return this connection to LISTEN state. The user - need not be informed. If this connection was initiated with an - active OPEN (i.e., came from SYN-SENT state) then the connection - was refused, signal the user "connection refused". In either - case, all segments on the retransmission queue should be - removed. - - - - - - - - - - - - [Page 69] - - - January 1980 -Transmission Control Protocol -Functional Specification - SEGMENT ARRIVES - - - - ESTABLISHED - FIN-WAIT-1 - FIN-WAIT-2 - CLOSE-WAIT - CLOSING STATE - - If the RST bit is set then, any outstanding RECEIVEs and SEND - should receive "reset" responses. All segment queues should be - flushed. Users should also receive an unsolicited general - "connection reset" signal. Enter the CLOSED state, delete the - TCB, and return. - - TIME-WAIT - - Enter the CLOSED state, delete the TCB, and return. - - fifth, check the SYN bit, - - SYN-RECEIVED - ESTABLISHED STATE - - If the SYN bit is set, check the segment sequence number against - the receive window. The segment sequence number must be in the - receive window; if not, ignore the segment. If the SYN is on - and SEG.SEQ = IRS then everything is ok and no action is needed; - but if they are not equal, there is an error and a reset must be - sent. - - If a reset must be sent it is formed as follows: - - - - The connection must be aborted as if a RST had been received. - - FIN-WAIT STATE-1 - FIN-WAIT STATE-2 - TIME-WAIT STATE - CLOSE-WAIT STATE - CLOSING STATE - - This case should not occur, since a duplicate of the SYN which - started the current connection incarnation will have been - filtered in the SEG.SEQ processing. Other SYN's will have been - rejected by this test as well (see SYN processing for - ESTABLISHED state). - - - - -[Page 70] - - -January 1980 - Transmission Control Protocol - Functional Specification -SEGMENT ARRIVES - - - - sixth, check the URG bit, - - ESTABLISHED STATE - FIN-WAIT-1 STATE - FIN-WAIT-2 STATE - - If the URG bit is set, RCV.UP <- max(RCV.UP,SEG.UP), and signal - the user that the remote side has urgent data if the urgent - pointer (RCV.UP) is in advance of the data consumed. If the - user has already been signaled (or is still in the "urgent - mode") for this continuous sequence of urgent data, do not - signal the user again. - - TIME-WAIT STATE - CLOSE-WAIT STATE - CLOSING - - This should not occur, since a FIN has been received from the - remote side. Ignore the URG. - - seventh, process the segment text, - - ESTABLISHED STATE - - Once in the ESTABLISHED state, it is possible to deliver segment - text to user RECEIVE buffers. Text from segments can be moved - into buffers until either the buffer is full or the segment is - empty. If the segment empties and carries an EOL flag, then the - user is informed, when the buffer is returned, that an EOL has - been received. - - If buffer size is not one octet, then do the following - end-of-letter/buffer-size adjustment processing: - - if EOL = 0 then - - RCV.NXT <- SEG.SEQ + SEG.LEN - - if EOL = 1 then - - While RCV.LBB < SEG.SEQ+SEG.LEN - Do RCV.LBB <- RCV.LBB + RCV.BS End - RCV.NXT <- RCV.LBB - - When the TCP takes responsibility for delivering the data to the - user it must also acknowledge the receipt of the data. Send an - acknowledgment of the form: - - - [Page 71] - - - January 1980 -Transmission Control Protocol -Functional Specification - SEGMENT ARRIVES - - - - - - This acknowledgment should be piggybacked on a segment being - transmitted if possible without incurring undue delay. - - FIN-WAIT-1 STATE - FIN-WAIT-2 STATE - - If there are outstanding RECEIVEs, they should be satisfied, if - possible, with the text of this segment; remaining text should - be queued for further processing. If a RECEIVE is satisfied, - the user should be notified, with "end-of-letter" (EOL) signal, - if appropriate. - - TIME-WAIT STATE - CLOSE-WAIT STATE - - This should not occur, since a FIN has been received from the - remote side. Ignore the segment text. - - eighth, check the FIN bit, - - Send an acknowledgment for the FIN. Signal the user "connection - closing", and return any pending RECEIVEs with same message. Note - that FIN implies EOL for any segment text not yet delivered to the - user. If the current state is ESTABLISHED, enter the CLOSE-WAIT - state. If the current state is FIN-WAIT-1, enter the CLOSING - state. If the current state is FIN-WAIT-2, enter the TIME-WAIT - state. - - and return. - - - - - - - - - - - - - - - - - - -[Page 72] - - -January 1980 - Transmission Control Protocol - Functional Specification -USER TIMEOUT - - - - USER TIMEOUT - - For any state if the user timeout expires, flush all queues, signal - the user "error: connection aborted due to user timeout" in general - and for any outstanding calls, delete the TCB, and return. - - RETRANSMISSION TIMEOUT - - For any state if the retransmission timeout expires on a segment in - the retransmission queue, send the segment at the front of the - retransmission queue again, reinitialize the retransmission timer, - and return. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Page 73] - - - January 1980 -Transmission Control Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 74] - - -January 1980 - Transmission Control Protocol - - - - GLOSSARY - - - -1822 - BBN Report 1822, "The Specification of the Interconnection of - a Host and an IMP". The specification of interface between a - host and the ARPANET. - -ACK - A control bit (acknowledge) occupying no sequence space, which - indicates that the acknowledgment field of this segment - specifies the next sequence number the sender of this segment - is expecting to receive, hence acknowledging receipt of all - previous sequence numbers. - -ARPANET message - The unit of transmission between a host and an IMP in the - ARPANET. The maximum size is about 1012 octets (8096 bits). - -ARPANET packet - A unit of transmission used internally in the ARPANET between - IMPs. The maximum size is about 126 octets (1008 bits). - -buffer size - An option (buffer size) used to state the receive data buffer - size of the sender of this option. May only be sent in a - segment that also carries a SYN. - -connection - A logical communication path identified by a pair of sockets. - -datagram - A message sent in a packet switched computer communications - network. - -Destination Address - The destination address, usually the network and host - identifiers. - -EOL - A control bit (End of Letter) occupying no sequence space, - indicating that this segment ends a logical letter with the - last data octet in the segment. If this end of letter causes - a less than full buffer to be released to the user and the - connection buffer size is not one octet then the - end-of-letter/buffer-size adjustment to the receive sequence - number must be made. - - - - [Page 75] - - - January 1980 -Transmission Control Protocol -Glossary - - - -FIN - A control bit (finis) occupying one sequence number, which - indicates that the sender will send no more data or control - occupying sequence space. - -fragment - A portion of a logical unit of data, in particular an internet - fragment is a portion of an internet datagram. - -FTP - A file transfer protocol. - -header - Control information at the beginning of a message, segment, - fragment, packet or block of data. - -host - A computer. In particular a source or destination of messages - from the point of view of the communication network. - -Identification - An Internet Protocol field. This identifying value assigned - by the sender aids in assembling the fragments of a datagram. - -IMP - The Interface Message Processor, the packet switch of the - ARPANET. - -internet address - A source or destination address specific to the host level. - -internet datagram - The unit of data exchanged between an internet module and the - higher level protocol together with the internet header. - -internet fragment - A portion of the data of an internet datagram with an internet - header. - -IP - Internet Protocol. - -IRS - The Initial Receive Sequence number. The first sequence - number used by the sender on a connection. - - - - - -[Page 76] - - -January 1980 - Transmission Control Protocol - Glossary - - - -ISN - The Initial Sequence Number. The first sequence number used - on a connection, (either ISS or IRS). Selected on a clock - based procedure. - -ISS - The Initial Send Sequence number. The first sequence number - used by the sender on a connection. - -leader - Control information at the beginning of a message or block of - data. In particular, in the ARPANET, the control information - on an ARPANET message at the host-IMP interface. - -left sequence - This is the next sequence number to be acknowledged by the - data receiving TCP (or the lowest currently unacknowledged - sequence number) and is sometimes referred to as the left edge - of the send window. - -letter - A logical unit of data, in particular the logical unit of data - transmitted between processes via TCP. - -local packet - The unit of transmission within a local network. - -module - An implementation, usually in software, of a protocol or other - procedure. - -MSL - Maximum Segment Lifetime, the time a TCP segment can exist in - the internetwork system. Arbitrarily defined to be 2 minutes. - -octet - An eight bit byte. - -Options - An Option field may contain several options, and each option - may be several octets in length. The options are used - primarily in testing situations; for example, to carry - timestamps. Both the Internet Protocol and TCP provide for - options fields. - -packet - A package of data with a header which may or may not be - - - - [Page 77] - - - January 1980 -Transmission Control Protocol -Glossary - - - - logically complete. More often a physical packaging than a - logical packaging of data. - -port - The portion of a socket that specifies which logical input or - output channel of a process is associated with the data. - -process - A program in execution. A source or destination of data from - the point of view of the TCP or other host-to-host protocol. - -PSN - A Packet Switched Network. For example, the ARPANET. - -RCV.BS - receive buffer size, the remote buffer size - -RCV.LBB - receive last buffer beginning - -RCV.NXT - receive next sequence number - -RCV.UP - receive urgent pointer - -RCV.WND - receive window - -receive last buffer beginning - This is the sequence number of the first octet of the most - recent buffer. This value is use in calculating the next - sequence number when a segment contains an end of letter - indication. - -receive next sequence number - This is the next sequence number the local TCP is expecting to - receive. - -receive window - This represents the sequence numbers the local (receiving) TCP - is willing to receive. Thus, the local TCP considers that - segments overlapping the range RCV.NXT to - RCV.NXT + RCV.WND - 1 carry acceptable data or control. - Segments containing sequence numbers entirely outside of this - range are considered duplicates and discarded. - - - - -[Page 78] - - -January 1980 - Transmission Control Protocol - Glossary - - - -RST - A control bit (reset), occupying no sequence space, indicating - that the receiver should delete the connection without further - interaction. The receiver can determine, based on the - sequence number and acknowledgment fields of the incoming - segment, whether it should honor the reset command or ignore - it. In no case does receipt of a segment containing RST give - rise to a RST in response. - -RTP - Real Time Protocol: A host-to-host protocol for communication - of time critical information. - -Rubber EOL - An end of letter (EOL) requiring a sequence number adjustment - to align the beginning of the next letter on a buffer - boundary. - -SEG.ACK - segment acknowledgment - -SEG.LEN - segment length - -SEG.PRC - segment precedence value - -SEG.SEQ - segment sequence - -SEG.UP - segment urgent pointer field - -SEG.WND - segment window field - -segment - A logical unit of data, in particular a TCP segment is the - unit of data transfered between a pair of TCP modules. - -segment acknowledgment - The sequence number in the acknowledgment field of the - arriving segment. - -segment length - The amount of sequence number space occupied by a segment, - including any controls which occupy sequence space. - - - - [Page 79] - - - January 1980 -Transmission Control Protocol -Glossary - - - -segment sequence - The number in the sequence field of the arriving segment. - -send last buffer beginning - This is the sequence number of the first octet of the most - recent buffer. This value is used in calculating the next - sequence number when a segment contains an end of letter - indication. - -send sequence - This is the next sequence number the local (sending) TCP will - use on the connection. It is initially selected from an - initial sequence number curve (ISN) and is incremented for - each octet of data or sequenced control transmitted. - -send window - This represents the sequence numbers which the remote - (receiving) TCP is willing to receive. It is the value of the - window field specified in segments from the remote (data - receiving) TCP. The range of sequence numbers which may be - emitted by a TCP lies between SND.NXT and - SND.UNA + SND.WND - 1. - -SND.BS - send buffer size, the local buffer size - -SND.LBB - send last buffer beginning - -SND.NXT - send sequence - -SND.UNA - left sequence - -SND.UP - send urgent pointer - -SND.WL - send sequence number at last window update - -SND.WND - send window - -socket - An address which specifically includes a port identifier, that - is, the concatenation of an Internet Address with a TCP port. - - - -[Page 80] - - -January 1980 - Transmission Control Protocol - Glossary - - - -Source Address - The source address, usually the network and host identifiers. - -SYN - A control bit in the incoming segment, occupying one sequence - number, used at the initiation of a connection, to indicate - where the sequence numbering will start. - -TCB - Transmission control block, the data structure that records - the state of a connection. - -TCB.PRC - The precedence of the connection. - -TCP - Transmission Control Protocol: A host-to-host protocol for - reliable communication in internetwork environments. - -TOS - Type of Service, an Internet Protocol field. - -Type of Service - An Internet Protocol field which indicates the type of service - for this internet fragment. - -URG - A control bit (urgent), occupying no sequence space, used to - indicate that the receiving user should be notified to do - urgent processing as long as there is data to be consumed with - sequence numbers less than the value indicated in the urgent - pointer. - -urgent pointer - A control field meaningful only when the URG bit is on. This - field communicates the value of the urgent pointer which - indicates the data octet associated with the sending user's - urgent call. - - - - - - - - - - - - - [Page 81] - - - January 1980 -Transmission Control Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 82] - - -January 1980 - Transmission Control Protocol - - - - REFERENCES - - - -[1] Cerf, V., and R. Kahn, "A Protocol for Packet Network - Intercommunication," IEEE Transactions on Communications, - Vol. COM-22, No. 5, pp 637-648, May 1974. - -[2] Postel, J. (ed.), "DOD Standard Internet Protocol," Defense - Advanced Research Projects Agency, Information Processing - Techniques Office, RFC 760, IEN 128, January 1980. - -[3] Feinler, E. and J. Postel, ARPANET Protocol Handbook, Network - Information Center, SRI International, Menlo Park, CA, - January 1978. - -[4] Dalal, Y. and C. Sunshine, "Connection Management in Transport - Protocols," Computer Networks, Vol. 2, No. 6, pp. 454-473, - December 1978. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Page 83] - - - January 1980 -Transmission Control Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 84] - diff --git a/text/ien/ien131.txt b/text/ien/ien131.txt deleted file mode 100644 index 1d549736..00000000 --- a/text/ien/ien131.txt +++ /dev/null @@ -1,573 +0,0 @@ - - - - - - - - Gateway Monitoring Protocol - - - IEN 131 - - - 1 February 1980 - - - - - - - - - - - David Flood Page - - - - - - - - - - - Bolt, Beranek and Newman Inc. - 50 Moulton Street - Cambridge, Massachusetts 02238 - - - (617) 491-1850 - - - - - GATEWAY MONITORING PROTOCOL - - - - - 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2 - - - 2. Communication Mechanism . . . . . . . . . . . . . . . . . . 2 - - 2.1 Negotiation . . . . . . . . . . . . . . . . . . . . . . . 2 - - 2.2 Requesting Reports . . . . . . . . . . . . . . . . . . . 3 - - 2.3 Requesting Traps . . . . . . . . . . . . . . . . . . . . 4 - - - 3. Data Formats . . . . . . . . . . . . . . . . . . . . . . . . 4 - - 3.1 Report Formats . . . . . . . . . . . . . . . . . . . . . 7 - - 3.1.1 Gateway description - type 0 . . . . . . . . . . . . 7 - - 3.1.2 Echo - type 1 . . . . . . . . . . . . . . . . . . . . 7 - - 3.1.3 Throughput matrix - type 2 . . . . . . . . . . . . . 7 - - 3.1.4 Status of all interfaces - type 3 . . . . . . . . . . 7 - - 3.1.5 Queue activity - type 4 . . . . . . . . . . . . . . . 8 - - 3.1.6 End to end statistics - type 5 . . . . . . . . . . . 8 - - 3.1.7 Individual interface status - type 6 . . . . . . . . 8 - - 3.1.8 Routing tables - type 7 . . . . . . . . . . . . . . . 9 - - 3.2 Trap Formats . . . . . . . . . . . . . . . . . . . . . . 9 - - 3.2.1 Interface up/down - type 1 . . . . . . . . . . . . . 9 - - 3.2.2 Neighbor gateway up/down - type 2 . . . . . . . . . . 9 - - 3.2.3 Queue full - type 3 . . . . . . . . . . . . . . . . . 9 - - - - - - - - - - - - 1 - - - IEN 131 Gateway Monitoring Protocol - - - 1. Introduction - - This document details the protocol for the gateway monitoring - functions described in IEN 105, 'ARPA Catenet Monitoring and - Control'. It does not deal with the control functions or fault - isolation; these will be covered in a separate document. - - The protocol described here contains a number of report - types. We realize that to implement them all may impose an - unacceptable load on a gateway; therefore the system is designed - to cater to gateways not implementing the complete protocol. - - - The protocol is described in two parts: - - - Communication mechanism - - Data formats - - - 2. Communication Mechanism - - 2.1 Negotiation - - Because a gateway may not implement the complete protocol, - the Catenet Monitoring and Control Center (CMCC) is able to - discover, each time it makes a request of a gateway, whether the - gateway can satisfy that request. The method used is similar to - the DO - DONT - WILL - WONT mechanism in the Telnet protocol. - Briefly, this works as follows: - - When the CMCC wants to obtain information from a gateway, it - sends a DO message to the gateway. If the gateway is able to make - the required response, it returns a WILL message accompanied by - the data requested. If it cannot do this, it sends back a WONT - message detailing why it could not satisfy the request. If the - gateway does not even implement this negotiation mechanism, or if - the message is lost in transit, then the CMCC will receive no - reply. In this case it will try up to two more times at 30 second - intervals. If it still gets no reply, then it acts as if a WONT - message had been received. - - If the CMCC wants to stop the gateway from sending - information, then it sends a DONT message. The gateway then - responds with a WONT reply. The CMCC will try up to three times, - at 30 second intervals, to get this acknowledgement. - - A gateway will need to implement this negotiation mechanism - in order to participate in the Monitoring and control system. - This is true regardless of how many of the report types are - implemented in the gateway. - - - - - - 2 - - - IEN 131 Gateway Monitoring Protocol - - - 2.2 Requesting Reports - - Gateways may be requested to send out a series of reports at - regular intervals, as well as just sending back a single response. - So a DO REPORT request contains, in addition to the report type, - the number of reports required and the interval between reports. - The number of reports may be a special value (65535) meaning - 'until further notice'. When the CMCC wants to turn off this kind - of report then it sends a DONT message to the gateway. The - gateway will then cease reporting and send back a WONT message. - The CMCC will send up to 3 DONT messages until it gets the WONT - response. If it still receives no answer then it gives up. - - If a gateway is sending out regular reports, and it receives - a new request from the same source as the original request to send - the same report, then the new request is considered to supercede - the old one unless the new request is for a single report. In - this case the gateway should make the single response, but - continue sending the regular reports. If the new request is for - more than one report, then the gateway should reset the sequence - number (see below) and forget about the original request. The - question of dealing with requests from different sources is in - part an authorization question, and is not dealt with in this - document; however, gateways should in general be prepared to - satisfy requests for single reports from any source at any time. - - A gateway may be unable to send out more than one report in - response to a single enquiry; i.e. it may insist on being polled. - If such a gateway receives a request for multiple reports, it - sends back a WONT REPORT reply, indicating that the number of - reports in the request was unacceptable. The CMCC will then send - a single report request, and will continue sending these requests - at appropriate intervals. - - Each request sent out from the CMCC contains a report - identification number. This number is returned by the gateway in - the WILL REPORT or WONT REPORT message. When a request results in - more than one report message, those after the first have a - sequence number instead of the report id. Gateways will reset the - sequence number when they receive a DO REPORT, except in the case - of a single report request as described above. When a regular - report is requested, the WILL REPORT reply may or may not contain - the first report message. If it does not, then it should consist - only of the WILL REPORT header, with no extra data. - - - The following is a list of the report types. - - - - - - - - - 3 - - - IEN 131 Gateway Monitoring Protocol - - - Type - - 0 - Gateway description. - 1 - Echo. - 2 - Throughput transit matrix. - 3 - Interface up/down status for all interfaces. - 4 - Queue activity. - 5 - End to end traffic statistics. - 6 - Individual interface status. - 7 - Routing table. - - - 2.3 Requesting Traps - - Besides the reports, a gateway may issue traps, which are - messages announcing some event in the gateway. A gateway may be - directed to start or stop sending the various kinds of traps, - using DO - DONT - WILL - WONT TRAP messages in the same way as - REPORT messages are used, except that normally the WILL TRAP - message will not be accompanied by data. - - The following is a list of the trap types: - - Type - - 1 - Interface up/down. - 2 - Neighbor gateway up/down. - 3 - Queue full. - - Here, up/down on an interface refers to the ready line. For - a neighbor gateway it is determined according to the - gateway-gateway protocol in force. - - 3. Data Formats - - Bits within a field are numbered starting at 0 and ordered - left to right, so that an octet with bit 0 set on has the numeric - value 128. Octets within numeric fields of more than 8 bits are - ordered so that the most significant octet comes first. For - example, a 32 bit numeric field with a value of 65536 would be - expressed as 0,1,0,0 in octets. For other fields of more than 8 - bits, the first octet contains bits 0-7, the second 8-15, and so - on. - - - - - - - - - - - - - 4 - - - IEN 131 Gateway Monitoring Protocol - - - Monitoring Packets have the following format: - - +--------------------+ - ! Local Header ! - +--------------------+ - ! Internet Header ! - +--------------------+ - ! Monitoring Header ! - +--------------------+ - ! Data ! - +--------------------+ - - The data may be absent. - - The monitoring header has the following format: - - Bits Contents - - 0 0 - Report or trap - 1 - Negotiation message. - - 1 0 - Report - 1 - Trap - - 2-3 For a negotiation message: - 0 - DO - 1 - DONT - 2 - WILL - 3 - WONT - For a report or trap: zero. - - 4-7 Reserved for future use. - - 8-15 Report or trap type. - - 16-31 For a negotiation message: Report Id. - For a report: Sequence number. - For a trap: data depending on trap type. - - A DO REPORT message has the header: - - 0 1 2 3 4 5 6 7 8 15 16 31 - +-------------------------------------------------------------+ - ! 1 ! 0 ! 0 0 ! 0 0 0 0 ! report type ! report id ! - +-------------------------------------------------------------+ - - - and the corresponding WILL REPORT message has: - - - - - - - - 5 - - - IEN 131 Gateway Monitoring Protocol - - - 0 1 2 3 4 5 6 7 8 15 16 31 - +-------------------------------------------------------------+ - ! 1 ! 0 ! 1 0 ! 0 0 0 0 ! report type ! report id ! - +-------------------------------------------------------------+ - - where the report id is the same as in the DO REPORT. A DONT - REPORT will begin with: - - 0 1 2 3 4 5 6 7 8 15 16 31 - +-------------------------------------------------------------+ - ! 1 ! 0 ! 0 1 ! 0 0 0 0 ! report type ! report id ! - +-------------------------------------------------------------+ - - and a WONT REPORT begins with: - - 0 1 2 3 4 5 6 7 8 15 16 31 - +-------------------------------------------------------------+ - ! 1 ! 0 ! 1 1 ! 0 0 0 0 ! report type ! report id ! - +-------------------------------------------------------------+ - - Headers for trap negotiation messages are similar except that - bit 1 is 1 instead of 0. - - Trap messages have a header of only 2 octets: - - 0 1 2 3 4 5 6 7 8 15 - +-----------------------------------------------+ - ! 0 ! 1 ! 0 0 ! 0 0 0 0 ! trap type ! - +-----------------------------------------------+ - - DONT messages have no data. The WONT header is followed by a - single octet which indicates which field(s) in the request the - gateway objected to. Bits are set on according to the offending - field, as follows: - - Bit Field - 0 report or trap (i.e the gateway has not implemented - any reports, or traps) - 1 report/trap type - 2 number of reports (i.e. a gateway insists on being - polled) - 3 reporting interval - - DO REPORT messages have two 16-bit numbers which are the - number of reports required and the reporting interval in seconds, - in that order. A request for 65535 reports means 'until further - notice'. In addition, a type 6 report request has one extra octet - at the end containing the interface number. - - The first response in any set of reports may also be the WILL - REPORT negotiation message and if so, the first 4 bits of the - monitoring header will have the value 1010 (negotiation, report, - - - - 6 - - - IEN 131 Gateway Monitoring Protocol - - - WILL). Subsequent reports arising from the same request have a - header beginning with 0000 (report/trap, report, zero). If the - first response is the WILL REPORT without any data, then its - length must be 4 bytes, i.e. it consists only of the monitoring - header. - - Trap messages may or may not have any data, depending on the - trap type. - - 3.1 Report Formats - - 3.1.1 Gateway description - type 0 - - The first item is the gateway name as four 8-bit ASCII - characters. The next item consists of two octets containing the - number of interfaces in the gateway, and the number of neighbors - the gateway has, in that order. This is then followed by two sets - of 32 bit numbers, whose size is given by the above octets. The - first set lists the addresses of each interface in the gateway, - and the second set lists the addresses of the gateway's neighbors. - - 3.1.2 Echo - type 1 - - There is no data in this message type. The gateway simply - returns the message to the place that sent it. - - 3.1.3 Throughput matrix - type 2 - - The report is a conceptual matrix with rows corresponding to - output interfaces and columns to input interfaces. The interfaces - are numbered from 0 to N-1 and there is an extra column for - packets dropped at the interface. - - The matrix is expressed as N * (N+1) 32-bit counts, where N - is the number of interfaces. Each packet entering the gateway via - interface IN and leaving via interface OUT causes the count at - position (OUT * N) + IN to be incremented. - - 3.1.4 Status of all interfaces - type 3 - - The header is followed by a bit array in which the bit in - position i is 1 if interface i is up, 0 if it is down. Interfaces - are numbered starting at zero, as in the throughput matrix. The - ordering of the interfaces is defined in the Gateway Description - message, 3.1.1. - - - - - - - - - - - 7 - - - IEN 131 Gateway Monitoring Protocol - - - 3.1.5 Queue activity - type 4 - - The header is followed by a set of reports, one for each - interface number. Each report in the set is 16 bits long and has - the following format: - - Bits Contents - - 0-7 Length of input queue for this interface. - 8-15 Length of output queue. - - Interface numbering is as in the interface status message. - - 3.1.6 End to end statistics - type 5 - - The report has a set of counts, one for each - source/destination combination. The format of each entry is: - - Bits Contents - - 0-7 Source network number. - 8-15 Destination network number. - 16-47 Count of packets source-destination. - - The counts are cumulative and so is the list of - source/destination combinations, i.e. the report will contain - counts for every source/destination pair that has been recorded - since the gateway started up. - - 3.1.7 Individual interface status - type 6 - - A distinction here is made between error free and error - handling interfaces. The first four octets are the same in each - case, except for a code indicating the interface type. For an - error free interface, these four octets are the whole report. For - a VDH error handling interface there are another three 32-bit - counts of : - - packet framing errors - packets received with bad checksum - packets retransmitted - - The format of the first four octets is: - - Bits Contents - - 0-7 Interface number - 8-11 Status: 0 (down), 1 (up) - 12-15 Interface type: 0 - error free, 1 - VDH. - 16-31 Number of times this interface has gone down. - - - - - - 8 - - - IEN 131 Gateway Monitoring Protocol - - - The down count is only reset at gateway startup time. - - 3.1.8 Routing tables - type 7 - - This is a table of variable length entries each containing a - network number, the minimum distance to that network from the - gateway, and the addresses of each neighbor on the minimum - distance path. The format of each entry is as follows: - - 8 bits number of neighbors - 8 bits network number - 8 bits distance to network - 8 bits unused (allows 32-bit alignment of addresses) - 32 bits first neighbor address - 32 bits second neighbor address - (as many more neighbor addresses as necessary). - - 3.2 Trap Formats - - Traps all have a 16-bit header starting with 0100 - (report/trap, trap, zero). Data for the traps is as follows. - - 3.2.1 Interface up/down - type 1 - - Bits Contents - - 0-7 up (1) or down (0). - 8-15 interface number. - - 3.2.2 Neighbor gateway up/down - type 2 - - Bits Contents - - 0-3 up (1) or down (0). - 4-7 old gateway (zero) or new gateway (1). - 8-15 unused (for 32-bit alignment of next field) - 16-47 Neighbor gateway internet address. - - A new gateway is one not previously heard from, which will - therefore cause an addition to the gateway's routing tables. - - 3.2.3 Queue full - type 3 - - Bits Contents - - 0-7 Interface number for queue. - 8-15 Input (zero) or output (1) queue. - - - - - - - - - 9 - - diff --git a/text/ien/ien132.txt b/text/ien/ien132.txt deleted file mode 100644 index 0e28e459..00000000 --- a/text/ien/ien132.txt +++ /dev/null @@ -1,808 +0,0 @@ - - - - - - - - The CMCC Terminal Process - - - IEN 132 - - - 1 February 1980 - - - - - - - - - - - David Flood Page - - - - - - - - - - - Bolt, Beranek and Newman Inc. - 50 Moulton Street - Cambridge, Massachusetts 02238 - - - (617) 491-1850 - - IEN 132 The ARPA CMCC Terminal Process - - - - - 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 3 - - - 2. Commands . . . . . . . . . . . . . . . . . . . . . . . . . . 4 - - 2.1 Control commands . . . . . . . . . . . . . . . . . . . . 5 - - 2.1.1 Gain access control . . . . . . . . . . . . . . . . . 5 - - 2.1.2 Start or stop reports or traps . . . . . . . . . . . 6 - - 2.1.3 Relinquish control of a gateway . . . . . . . . . . . 7 - - 2.2 Output Commands . . . . . . . . . . . . . . . . . . . . . 7 - - 2.2.1 Find out reports/traps being collected/output . . . . 8 - - 2.2.2 Output selected reports/traps . . . . . . . . . . . . 8 - - 2.2.3 Close the Log File . . . . . . . . . . . . . . . . . 8 - - 2.3 Database query commands . . . . . . . . . . . . . . . . . 8 - - 2.3.1 Give current Catenet description . . . . . . . . . . 9 - - 2.4 Other commands . . . . . . . . . . . . . . . . . . . . . 9 - - 2.4.1 Leave the terminal process . . . . . . . . . . . . . 9 - - - 3. Output Formats . . . . . . . . . . . . . . . . . . . . . . . 9 - - 3.1 Report Outputs . . . . . . . . . . . . . . . . . . . . . 9 - - 3.1.1 Gateway description . . . . . . . . . . . . . . . . 10 - - 3.1.2 Throughput transit matrix . . . . . . . . . . . . . 10 - - 3.1.3 Echo . . . . . . . . . . . . . . . . . . . . . . . 10 - - 3.1.4 Status of all interfaces . . . . . . . . . . . . . 11 - - 3.1.5 Routing data . . . . . . . . . . . . . . . . . . . 11 - - 3.2 Trap Outputs . . . . . . . . . . . . . . . . . . . . . 11 - - 3.2.1 Interface up/down . . . . . . . . . . . . . . . . . 11 - - - - - - - 1 - - - IEN 132 The ARPA CMCC Terminal Process - - - 3.2.2 Neighbor gateway up/down . . . . . . . . . . . . . 12 - - 3.3 Messages generated by the control process . . . . . . . 12 - - 3.3.1 Gateway reports time out . . . . . . . . . . . . . 12 - - 3.3.2 Gateway restarts reporting . . . . . . . . . . . . 12 - - 3.4 Other displays . . . . . . . . . . . . . . . . . . . . 12 - - 3.4.1 List reports/traps collected/enabled and output . . 12 - - 3.4.2 Catenet description . . . . . . . . . . . . . . . . 13 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - IEN 132 The ARPA CMCC Terminal Process - - - 1. Introduction - - The Catenet Monitoring and Control Center (CMCC) produces a - basic information gathering system for the catenet and in - particular the catenet gateways. Among the features included are: - - - multiple user access to information - - selective display of throughput and status reports from - gateways - - capability of sending specific inquiries to gateways - - limited status display of the catenet - - The information gathered consists of throughput statistics, - routing information, gateway description and the up/down status of - each gateway and its interfaces. - - The system consists of a control process and a number of user - terminal processes. The control process communicates directly - with the gateways, while the terminal processes communicate with - the control process. Each terminal process sends requests to the - control process to obtain information from the gateways and - displays this information when it is received and can also put the - information into a log file. In addition, the terminal processes - can be used to display information stored by the control process. - - Users can make requests for gateways to start or stop sending - regular reports; to enable or disable the sending of event - messages, known as traps; and to answer single inquiries. The - regular reports consist of packet throughput statistics, routing - tables and the up/down status of all interfaces in the gateway. - Trap types include interface up or down and neighbor gateway up or - down. To avoid conflicts, the CMCC prevents more than one user at - a time from manipulating reports or traps in a gateway. - - Using the report and trap information, the CMCC will maintain - a representation of the up/down status of all the gateways and - their interfaces. This representation can be displayed by a - terminal process. In addition, the CMCC will generate a terminal - alarm whenever it detects that a gateway or interface goes down or - comes back up. - - The CMCC is also designed to cope with gateways that do not - implement all possible monitoring facilities. In these cases the - user will be informed that the gateway could not satisfy the - information request. - - The document describes the use of the Monitoring terminal - process as it is currently implemented. It is currently a basic - information gathering and displaying process, and by and large the - information gathered is only that which the Satnet gateways will - provide. New features will be added, and the user interface made - more sophisticated, as time goes on. At the moment there is no - - - - 3 - - - IEN 132 The ARPA CMCC Terminal Process - - - on-line 'help' facility, so you will need this document with you - when you start to use the terminal process. - - Background information can be found in IEN 105, "ARPA Catenet - Monitoring and Control", and IEN 131, "Gateway Monitoring - Protocol", describes the message formats used for communicating - with the gateways. - - 2. Commands - - Commands fall into four categories: - - - Commands to send messages to the gateways (control commands). - - Commands to control the output of messages received from the - gateways (output commands). - - Commands to interrogate the CMCC's internal database - (database commands). - - Other commands (miscellaneous). - - Information sent by the gateways is considered to be either a - report or a trap. A report gives the current value of some data, - such as throughput counts, in the gateway; a trap is a message - announcing some event in the gateway, such as a network interface - going down. - - The report types available are: - - - Gateway description - - Echo - - Throughput counts - - Status of all interfaces - - Routing table - - and the trap types are: - - - Interface up/down - - Neighbor gateway up/down - - These are explained more fully in IEN 131. - - In the following command format descriptions, square brackets - denote an optional entry, and curly brackets indicate a list from - which at least one item must be chosen. Commands may be - abbreviated as long as they are still unique; however, spelling - errors are not allowed, even if the command has already been - uniquely specified before the error was made. The minimum - abbreviations are in capitals. A word or phrase enclosed in - angle brackets indicates a variable whose name is to be supplied, - for example . Words not contained in angle brackets - and having no capitals are noise words and may be omitted. - - - - - - 4 - - - IEN 132 The ARPA CMCC Terminal Process - - - Command input is terminated by a carriage return. Delete and - control-A will delete a single character and control-U will delete - an entire command. Errors in command input cause self-explanatory - error messages to appear, for example BAD GATEWAY NAME. After an - error message, all characters (including editing characters) up to - the next carriage return are ignored. - - 2.1 Control commands - - These are the commands concerned with obtaining reports and - traps from the gateways. In order to start and stop regular - reports, or enable or disable traps, a terminal process must have - access control of the gateways affected. This access control is - an internal software lock and is not anything that the gateways - know about. A terminal process may directly request a single - report from a gateway whether it has access control of that - gateway or not. These requests go through the control process, - and it is the control process which actually sends the request to - the gateway. - - 2.1.1 Gain access control - - The command - - Gain - - attempts to gain access control of a gateway. If no other - terminal process has control of the gateway, then the reply - - - OK - - is given. If another terminal process does have control, then the - reply - - ALREADY CONTROLLED BY - - will appear. - - Examples: - - BBN - OK - - and - - UCL ALREADY CONTROLLED BY UKSAT - - - - - - - - - - - 5 - - - IEN 132 The ARPA CMCC Terminal Process - - - 2.1.2 Start or stop reports or traps - - The general form of a control command is: - - [NO] {REPort} from{ALL } [{ }][At ] - type {} {Indefinite} - name - - [NO] {Trap } from{ALL } - type {} - name - - The NO option turns off a report, or disables a trap. - - is one of: - - Description (type 0) - ECho (1) - Thruput (2) - Allints (3) - Routing (7) - - and is a selection from: - - Interface (type 1) - Neighbor (2) - - Report types 4-6 and trap type 3, which are mentioned in the - Gateway Monitoring Protocol document, are not implemented yet. - - The "from{ALL }" - {} - - option defines the gateways affected. A gateway name is an - identifier of up to 15 characters. Gateway names may be - abbreviated. - - - Indefinite - - defines the number of times the gateway is to produce the report. - The default is 1. Indefinite means until further notice, i.e. - until a NO REPort command is issued. - - At - - defines the reporting interval. The default is 60 seconds. - - Example: - - REPort Thruput from UCL 25 At 60 - - - - - 6 - - - IEN 132 The ARPA CMCC Terminal Process - - - turns on a regular report, and - - NO Trap Interface from BBN - - disables a trap. - - If the terminal process does not have access control of a - gateway, then a commands starting with NO, or containing - parameters specifying a number of reports or reporting interval, - will cause the message - - NOT CONTROLLED - - to be output, and the command will be ignored. - - The terminal process reports any format errors in the - commands by self-explanatory error messages, for example BAD TRAP - TYPE. It also reports on the results of the requests by messages - of the form: - - {WILL} - {WONT} [ - TIMED OUT] - - "TIMED OUT" will appear if no response at all was obtained - from the gateway. The control process tries to obtain a response - up to three times at 30 second intervals before causing this - message to appear. - - 2.1.3 Relinquish control of a gateway - - To relinquish control of gateways, the command - - RELease {} - {ALL } - - is entered. The monitor responds with - - - RELEASED - - This is to allow other users to have access control of the - gateway. The Quit command (see below) also releases all gateways - currently controlled by the terminal process. - - 2.2 Output Commands - - The output commands are concerned with the information that - appears on a terminal, or is output to the log file. The commands - available are as follows: - - - Find out which reports/traps are collected/enabled. - - Find out which reports/traps are being output. - - Output selected reports/traps for selected gateways. - - - - 7 - - - IEN 132 The ARPA CMCC Terminal Process - - - The display outputs corresponding to the commands are given in - section 3. - - 2.2.1 Find out reports/traps being collected/output - - Which {Reports} {Collected} - {Traps } {Displayed} - {Logged } - - The response to this command is described in section 3.4.1. - - 2.2.2 Output selected reports/traps - - [NO]{Display}{}[from{ALL }] - {Log }{} {} - - where and are named as in the REPort - command, above and the - - "from {ALL }" - {} - - option indicates the relevant gateways, as in the REPort command. - If there is no log file open, then a Log command opens a file - called 'CMCC_LOG.', where is of the form 22-MAR-80. - A NO Log comand leaves the log file open, even if the result of - the command is that nothing is being logged; closing of the log - file is done by a separate command (see below). - - Examples: - - Display Thruput from ALL - NO Log INTerface from UCL - - 2.2.3 Close the Log File - - A "NO Log" command turns off logging for the specified report - type/gateway combination, but leaves the log file open. The - command - - UNLog - - turns off all logging and closes the log file. - - 2.3 Database query commands - - Currently there is only one of these. - - - - - - - - - 8 - - - IEN 132 The ARPA CMCC Terminal Process - - - 2.3.1 Give current Catenet description - - The command is - - Catenet - - and it gives a display of the gateway connections to each network, - and the status of those connections. See display 3.4.2. - - 2.4 Other commands - - Currently there is only one of these, too. - - 2.4.1 Leave the terminal process - - The command is - - Quit - - and it releases any controlled gateways before displaying - - STOPPING... - - and halting the process. Terminating the process with a control-C - will not release controlled gateways and is therefore inadvisable. - There is a separate command to release gateways without halting; - see section 2.1.3. - - 3. Output Formats - - There are the following output types: - - - Outputs for reports and traps. - - Outputs for messages generated by the control process. - - Database query displays. - - Each output is preceded by the time expressed as four digits - (hhmm). Any output except the database displays may appear either - in the log file or on the terminal or both, depending on the - output commands that have been entered. The information is - presented in the same format in both cases. - - 3.1 Report Outputs - - In the following descriptions, is the four - bytes of an internet address, expressed in decimal, and separated - by commas. A may be a character identifier - followed by a slash and a network number, for example "BBN/4", or - an . - - Each report has a field of the form # 50. - For regular reports this is the sequence number of the report; - - - - 9 - - - IEN 132 The ARPA CMCC Terminal Process - - - for a single report it is the report identification number - assigned to the request by the control process. - - 3.1.1 Gateway description - - GATEWAY DESCRIPTION: - INTERFACES: - ,... - NEIGHBORS: - ,... - - where the "interfaces" list gives the internet address of each of - the gateway's interfaces. These are ordered in the same way as in - the reports. - - Example: - - RSRE # 0 GATEWAY DESCRIPTION: - INTERFACES: - 11,3,2,42; 25,6,0,0; - NEIGHBORS: - UCL/11 - - 3.1.2 Throughput transit matrix - - THROUGHPUT COUNTS: - TO \ FROM DROPPED - - - - The counts are cumulative counts. - - Example: - - BBN # 50 THROUGHPUT COUNTS: - TO \ FROM SATNET ARPANET DROPPED - SATNET 1 123 5 - ARPANET 13 4 1 - - 3.1.3 Echo - - The report is - - ECHO HEARD - - Example: - - NDRE # 4 ECHO HEARD - - - - - - - - 10 - - - IEN 132 The ARPA CMCC Terminal Process - - - 3.1.4 Status of all interfaces - - INTERFACE TO {UP },.. - {DOWN}, - - for as many network interfaces as necessary. - - Example: - - COMSAT # 26 INTERFACE TO SATNET UP, COMSAT-NET DOWN - - 3.1.5 Routing data - - ROUTING TABLE: - - NETWORK DISTANCE GATEWAYS - NUMBER - , ,... - - This gives, for the gateway, the minimum distance to each - network plus a list of the neighbor gateway(s) on the minimum - distance path(s). If the gateway is known to the CMCC, then the - will be the name, otherwise it will be expressed as - an . - - Example: - - BBN # 50 ROUTING TABLE: - NETWORK DISTANCE GATEWAYS - NUMBER - - 1 2 10,0,0,38; - 4 0 - 11 1 UCL/4 - - 3.2 Trap Outputs - - There is one output type for each trap type. There is - nothing in a trap message corresponding to the - in a report. - - 3.2.1 Interface up/down - - TRAP MESSAGE: INTERFACE TO {UP } - {DOWN} - Example: - - BBN TRAP MESSAGE: INTERFACE TO SATNET DOWN - - - - - - - 11 - - - IEN 132 The ARPA CMCC Terminal Process - - - 3.2.2 Neighbor gateway up/down - - TRAP MESSAGE: {UP } - {DOWN} - - Example: - - NDRE TRAP MESSAGE: 10,0,0,38; DOWN - - - 3.3 Messages generated by the control process - - These messages are to do with gateway reports timing out, and - coming back up again. - - 3.3.1 Gateway reports time out - - NOT REPORTING. - - This will be issued if the gateway reports have not been - received for three minutes. - - 3.3.2 Gateway restarts reporting - - REPORTING AGAIN. - - This is issued as soon as a message is received from a - gateway that has timed out. - - - 3.4 Other displays - - These are the displays which show information stored at the - monitoring center. - - 3.4.1 List reports/traps collected/enabled and output - - from - from - - These are produced in response to a "Which"... command, as - appropriate. See section 2.2.1. - - Examples: - - THRUPUT, ALLINTS FROM BBN - - - - - - - - - - 12 - - - IEN 132 The ARPA CMCC Terminal Process - - - 3.4.2 Catenet description - - The display is a matrix showing for each gateway the status - or existence of its connections to each network. If a gateway is - connected to a network then the matrix entry consists of two - counts, being the number of interfaces to the network which are - up, and down. If there is no connection to a network then the - entry is a period. - - - - { UP } . . - {DOWN} - - GATEWAY DOWN - - - and so on for all gateways. The "- GATEWAY DOWN -" display means - that no regular report has been received from the gateway within - the last three minutes. - - Example: - - ARPANET SATNET UCLNET - UCL . UP DOWN - BBN UP UP . - NDRE - GATEWAY DOWN - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 13 - - \ No newline at end of file diff --git a/text/ien/ien133.txt b/text/ien/ien133.txt deleted file mode 100644 index d7873dfd..00000000 --- a/text/ien/ien133.txt +++ /dev/null @@ -1,740 +0,0 @@ -IEN 133 - - - - - - The TFTP Protocol - - January 29, 1980 - - - - Karen R. Sollins - - - - - - - - -Summary - - - TFTP is a very simple protocol used to transfer files. It is from -this that its name comes, Trivial File Transfer Protocol or TFTP. Each -nonterminal packet is acknowledged separately. This document describes -the protocol and its types of packets. The document also explains the -reasons behind some of the design decisions. - - - - - - - - - - - -Acknowledgements - - - The protocol was originally designed by Noel Chiappa, and was - -redesigned by him, Bob Baldwin and Dave Clark, with comments from Steve - -Szymanski. The original version of this document was written by Bob - -Baldwin. The current version of the document includes modifications - -suggested by Noel Chiappa, Dave Clark, Liza Martin and the author. The - -acknowledgement and retransmission scheme was inspired by TCP, and the - -error mechanism was suggested by PARC's EFTP abort message. - - - -1: Purpose - - TFTP is a simple protocol to transfer files, and therefore was - -named the Trivial File Transfer Protocol or TFTP. It is built on top of - -the Internet User Datagram protocol (UDP or Datagram) [2] so it may be - -used to move files between machines on different networks. It is - -designed to be small and easy to implement. Therefore, it lacks most of - -the features of a regular FTP. The only thing it can do is read and - -write files (or mail) from/to a remote server. It cannot list - -directories, and currently has no provisions for user authentication. - -In common with other Internet protocols, it passes 8 bit bytes of data. - - Three modes of transfer are currently supported: netascii (1); - -binary, raw 8 bit bytes; mail, netascii characters sent to a user rather - -than a file. Additional modes can be defined by pairs of cooperating - -hosts. - - - - -2: Overview of the Protocol - - Any transfer begins with a request to read or write a file, which - -also serves to request a connection. If the server grants the request, - -the connection is opened and the file is sent in fixed length blocks of - -512 bytes. Each data packet contains one block of data, and must be - -_______________ -(1) This is ascii as defined in "USA Standard Code for Information -Interchange" [1] with the modifications specified in "Telnet Protocol -Specification" [3]. Note that it is 8 bit ascii. The term "netascii" -will be used throughout this document to mean this particular version of -ascii. - - - 2 - - - - -acknowledged by an acknowledgment packet before the next packet can be - -sent. A packet of less than 512 bytes signals termination of a - -transfer. If a packet gets lost in the network, the intended recipient - -will timeout and may retransmit his last packet (which may be data or an - -acknowledgment), thus causing the sender of the lost packet to - -retransmit that lost packet. The sender has to keep just one packet on - -hand for retransmission, since the lock step acknowledgment guarantees - -that all older packets have been received. Notice that both machines - -involved in a transfer are considered senders and receivers. One sends - -data and receives acknowledgments, the other sends acknowledgments and - -receives data. - - Most errors cause termination of the connection. An error is - -signalled by sending an error packet. This packet is not acknowledged, - -and not retransmitted (i.e., a TFTP server or user may terminate after - -sending an error message), so the other end of the connection may not - -get it. Therefore timeouts are used to detect such a termination when - -the error packet has been lost. Errors are caused by three types of - -events: not being able to satisfy the request (e.g., file not found, or - -access violation), receiving a packet which cannot be explained by a - -delay or duplication in the network (e.g. an incorrectly formed packet), - -and losing access to a necessary resource (e.g., disc full, or source - -file truncated during transfer). - - TFTP recognizes only one type of error that does not cause - -termination, the source port of a received packet being incorrect. In - - - 3 - - - - -this case an error packet is sent to the originating host. See the - -section on the Initial Connection Protocol for more details. - - This protocol is very restrictive, but that makes it easier to - -implement. For example, the fixed length blocks make allocation - -straight forward, and the lock step acknowledgement provides flow - -control and eliminates the need to reassemble files. - - - - -3: Relation to other Protocols - - As mentioned TFTP is designed to be implemented on top of the - -Datagram protocol. Since Datagram is implemented on the Internet - -protocol, packets will have an Internet header, a Datagram header, and a - -TFTP header. Additionally, the packets may have a header (LNI, ARPA - -header, etc.) to allow them through the local transport medium. As - -shown in Figure 1, the order of the contents of a packet will be local - -medium header, if used, Internet header, Datagram header, TFTP header, - -followed by the remainder of the TFTP packet. (This may or may not be - -data depending on the type of packet as specified in the TFTP header.) - -TFTP does not specify any of the values in the Internet header. - - The source and destination port fields of the Datagram header (its - -format is given in the appendix) are used by TFTP and the length field - -reflects the size of the TFTP packet. The transfer identifiers (TID's) - -used by TFTP are passed to the Datagram layer to be used as ports. - -Therefore for they must be between 0 and 65,535. The initialization of - -TID's is discussed in the section on initial connection protocol. - - - 4 - - - - - The TFTP header consists of a 2 byte opcode field which indicates - -the packet's type (e.g., DATA, ERROR, etc.) These opcodes and the - -formats of the various types of packets are discussed further in the - -section on TFTP packets. - - -Figure 1. Order of Headers - - --------------------------------------------------- -| Local Medium | Internet | Datagram | TFTP | - --------------------------------------------------- - - - - - -4: Initial Connection Protocol - - A transfer is established by sending a request (WRQ to write onto a - -foreign file system, or RRQ to read from it), and receiving a positive - -reply, an acknowledgment packet for write, or the first data packet for - -read. In general an acknowledgment packet will contain the block number - -of the data packet being acknowledged. Each data packet has associated - -with it a block number; block numbers are consecutive and begin with - -one. Since the positive response to a write request is an - -acknowledgment packet, in this special case the block number will be - -zero. (Normally, since an acknowledgment packet is acknowledging a data - -packet, the acknowledgment packet will contain the block number of the - -data packet being acknowledged.) If the reply is an error packet, then - -the request is denied for the reason stated in the error packet. - - In order to create a connection, TID's to be used for the duration - -of the connection are chosen by the two ends of that connection. The - -TID's chosen for a connection should be randomly chosen, so that the - - - 5 - - - - -probability that the same number is chosen twice in immediate succession - -is very low. Every packet has associated with it two TID's, the source - -TID and the destination TID. A requesting host chooses its source TID - -as described above, and sends its initial request to the known TID 69 - -(105 octal) on the serving host. The response to the request, under - -normal operation, uses a TID chosen by the server as its source TID and - -the TID chosen for the previous message by the requestor as its - -destination TID. The two chosen TID's are then used for the remainder - -of the transfer. - - As an example, the following shows the steps used to establish a - -connection to write a file. Note that WRQ, ACK, and DATA are the names - -of the write request, acknowledgment, and data types of packets - -respectively. The Appendix contains a similar example for reading a - -file. - - -1. Host A sends a "WRQ" to host B with - - source= A's TID, destination= 69. - -2. Host B sends a "ACK" (with block number= 0) to host A with - - source= B's TID, destination= A's TID. - -3. Host A sends a "DATA" (with block number= 1) to host B with - - source= A's TID, destination= B's TID. - -4. Host B sends a "ACK" (with block number= 1) to host A with - - source= B's TID, destination= A's TID. - - - In step three, and in all succeeding steps, the hosts should make - -sure that the source TID matches the value that was agreed on in step 2. - - - 6 - - - - -If it doesn't match, an error packet should be sent to the originator, - -but the connection should not be aborted. The following example - -demonstates the problem this and the randomly chosen TID's are trying to - -solve. - - Host A sends a request to host B. Somewhere in the network, the - -request packet is duplicated, and as a result two acknowledgments are - -returned to host A, with different TID's chosen on host B in repsonse to - -the two requests. When the first response arrives, host A continues the - -connection. When the second response to the request arrives, it should - -be rejected, but there is no reason to terminate the first connection. - -Therefore, if different TID's are chosen on host B and host A checks the - -source TID's of the messages it receives, the first connection can be - -maintained while the second is rejected. - - - - -5: TFTP Packets - - TFTP supports five types of packets, all of which have been - -mentioned above: - - - opcode operation - - 1 Read request (RRQ) - - 2 Write request (WRQ) - - 3 Acknowledgment (ACK) - - 4 Data (DATA) - - 5 Error (ERROR) - - - 7 - - - - -The TFTP header of a packet contains the opcode associated with that - -packet. - - -Figure 2. RRQ/WRQ - - 2 bytes string 1 byte string 1 byte - ------------------------------------------------ -| Opcode | Filename | 0 | Mode | 0 | - ------------------------------------------------ - - - RRQ and WRQ packets (opcodes 1 and 2 respectively) have the format - -shown in Figure 2. The file name is a sequence of bytes in netascii - -terminated by a zero byte. The mode field contains the string - -"netascii", "binary", or "mail" in netascii indicating the three modes - -defined in the protocol. A host which receives netascii mode data must - -translate the data to its own format. Presumably, every host will - -translate its character set to and from netascii. Binary mode allows - -the two communicating hosts to impose their own interpretation on the - -data being transmitted; between similar machines binary mode can be - -used to avoid the conversion overhead. If a host receives a binary file - -and then returns it, the returned file must be identical to the file it - -received. Mail mode uses the name of a mail recipient in place of a - -file and must begin with a WRQ. Otherwise it is identical to netascii - -mode. - - -Figure 3. DATA - - 2 bytes 2 bytes n bytes - ---------------------------------- -| Opcode | Block # | Data | - ---------------------------------- - - - 8 - - - - -Data is actually transferred in DATA packets depicted in Figure 3. DATA - -packets (opcode = 4) have a block number and data field. The block - -numbers on data packets begin with one and increase by one for each new - -block of data. This restriction allows the program to use a single - -number to discriminate between new packets and duplicates. The data - -field is from zero to 512 bytes long. If it is 512 bytes long, the - -block is not the last block of data; if it is from zero to 511 bytes - -long, it signals the last data packet. (See the section on Normal - -Termination for details.) - - -Figure 4. ACK packet - - 2 bytes 2 bytes - --------------------- -| Opcode | Block # | - --------------------- - - - All packets other than those used for termination are acknowledged - -individually. Sending a DATA packet is an acknowledgment for the ACK - -packet of the previous DATA packet. The WRQ and DATA packets are - -acknowledged by ACK or ERROR packets, while RRQ and ACK packets are - -acknowledged by DATA or ERROR packets. Figure 4 depicts an ACK packet; - -the opcode is 3. The block number in an ACK echoes the block number of - -the DATA packet being acknowledged. A WRQ is acknowledged with an ACK - -packet having a block number of zero. - - - 9 - - - - -Figure 5. ERROR packet - - 2 bytes 2 bytes string 1 byte - ----------------------------------------- -| Opcode | ErrorCode | ErrMsg | 0 | - ----------------------------------------- - - - An ERROR packet (opcode 5) takes the form depicted in Figure 5. An - -ERROR packet can be the acknowledgment of any other type of packet. The - -error code is a small integer indicating the nature of the error. A - -table of its values and meanings is given in the appendix. The error - -message is intended for human consumption, and should be in netascii. - -Like all other strings, it is terminated with a zero byte. - - - - -6: Normal Termination - - The end of a transfer is marked by a DATA packet that contains - -between 0 and 511 bytes of data (i.e. Datagram length < 516). This - -packet is acknowledged by an ACK packet like all other DATA packets. - -The final ACK packet is never retransmitted; the host acknowledging the - -final DATA packet may terminate its side of the connection on sending - -the final ACK. On the other hand, the host sending the last DATA must - -retransmit it until the packet is acknowledged or the sending host times - -out. If the response is an ACK, the transmission was completed - -successfully. If it is an ERROR (unknown transfer ID), or the sender of - -the data times out and is not prepared to retransmit any more, the - -transfer may still have been completed successfully, after which the - -acknowledger may have experienced a problem. It is also possible in - - - 10 - - - - -this case that the transfer was unsuccessful. In any case, the - -connection has been closed. - - - - -7: Premature Termination - - If a request can not be granted, or some error occurs during the - -transfer, then an ERROR packet (opcode 5) is sent. This is only a - -courtesy since it will not be retransmitted or acknowledged, so it may - -never be received. Timeouts must also be used to detect errors. - - - 11 - - - - -APPENDIX - - - - -Order of Headers - - - 2 bytes - ---------------------------------------------------------- -| Local Medium | Internet | Datagram | TFTP Opcode | - ---------------------------------------------------------- - - - -TFTP Formats - - -Type Op # Format without header -____________________________________ - - - 2 bytes string 1 byte string 1 byte - ----------------------------------------------- -RRQ/ | 01/02 | Filename | 0 | Mode | 0 | -WRQ ----------------------------------------------- - - - - 2 bytes 2 bytes n bytes - --------------------------------- -DATA | 03 | Block # | Data | - --------------------------------- - - - 2 bytes 2 bytes - ------------------- -ACK | 04 | Block # | - -------------------- - - - 2 bytes 2 bytes string 1 byte - ---------------------------------------- -ERROR | 05 | ErrorCode | ErrMsg | 0 | - ---------------------------------------- - - - 12 - - - - -Initial Connection Protocol for reading a file - - -1. Host A sends a "RRQ" to host B with - - source= A's TID, destination= 69. - -2. Host B sends a "DATA" (with block number= 1) to host A with - - source= B's TID, destination= A's TID. - -3. Host A sends an "ACK" (with block number= 1) to host B with - - source= A's TID, destination= B's TID. - - - 13 - - - - -Error Codes - - - -Value Meaning - -_______________ - - -0 Not defined, see error message (if any). - -1 File not found. - -2 Access violation. - -3 Disc full or allocation exceeded. - -4 Illegal TFTP operation. - -5 Unknown transfer ID. - - - 14 - - - - -Internet User Datagram Header - - - -Format - - - - - - 0 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -| Source Port | Destination Port | -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -| Length | Checksum | -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - - - - -Values of Fields - - -Source Port Picked by originator of packet. -Dest. Port Picked by destination machine (69 for RRQ or WRQ). -Length Number of bytes in packet after Datagram header. -Checksum Reference 2 describes rules for computing checksum. - Field contains zero if unused. - - -Note: TFTP passes transfer identifiers (TID's) to the Internet User -Datagram protocol to be used as the source and destination ports. - - - 15 - - - - - - - -References - - -1. USA Standard Code for Information Interchange, - USASI X3.4-1968. - -2. Postel, Jon., "User Datagram Protocol," IEN 88, May 2, - 1979. - -3. "Telnet Protocol Specification," RFC552, NIC 18639, - August, 1973. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/text/ien/ien134.txt b/text/ien/ien134.txt deleted file mode 100644 index e5808e67..00000000 --- a/text/ien/ien134.txt +++ /dev/null @@ -1,825 +0,0 @@ - - - J. Postel -IEN 134 ISI - 29 February 1980 - - - - Internet Meeting Notes - 4, 5, & 6 February 1980 - - - - -I. INTRODUCTION - Kunzelman, Shoch - - This meeting was held at SRI on Monday and Wednesday and at XEROX - PARC on Tuesday. Ron Kunzelman was the coordinator at SRI, and John - Shoch was the coordinator at XEROX. - -II. OVERVIEW AND OBJECTIVES - Cerf - - Vint briefly restated the current issues of concern in the internet - program. The principal issue is now performance. The Fort Bragg - users and the european users depend on the internet for access to - their host computers. - -III. STATUS REPORTS - - A. DARPA - Cerf - - Vint reported that ARPA as a whole had been reorganized to better - balance the various offices. IPTO itself had not been affected. - Vint noted that in the last few years IPTO had put more emphasis - on test beds and demonstration projects to promote technology - transfer, and that this had hurt basic research. Vint thinks that - there will be an increase in support for research. - - Vint reported that the protocol standardization effort in DOD is - moving forward, and that IP and TCP as documented in IENs 128 and - 129 form the basis for the standards. - - Vint repeated his desire for each contractor to identify - milestones and to make monthly progress reports. Jon Postel will - coordinate these reports. - - B. BBN - Plummer, Strazisar, Haverty, Wingfield, McNeill, Brescia, - Flood Page, Nelson - - Bill reported that TCP and IP on TOPS 20 are working and that he - is begining work on the Tenex versions. For this he is using a - new host at BBNG. The XNET program has been converted. FTP on - TCP is in the queue but not top priority. - - - - -Postel [Page 1] - - - IEN 134 -Internet Meeting Notes - - - - Ginny reported that all gateways but one have been converted to - MOS based systems, and that conversion of the bootstraps and - loaders to use IP is in progress. The gateways do participate - with the CMCC by sending the monitoring reports. A port expander - has arrived at BBN. - - Jack reported on the development of XNET programs in the UNIX - environment. The Unix debugger has been extended to allow - debugging of processes on another machine via XNET. Two XNET - servers have been created, one for debugging at the system level, - and another for debugging at the process level. - - Jack also discussed the problems with connecting things via 1822 - style interfaces. The problems arise because the available - specification is for a host side interface, and the host side is - allowed to be sloppy about its signals while the IMP side is not. - Plugging two host side interfaces together sometimes doesn't work - due to differences in signal levels allowed by the host side - specification. If these interfaces were built to the more - stringent (and undocumented) IMP side specification these problems - could be avoided. ACTION: Vint will investigate provision of - 1822 interfaces that meet IMP side specification. - - Jack noted that BBN is implementing IP and TCP for an HP3000 data - management system for ARPA. - - Mike Wingfield reported that the "C" version of the unix IP and - TCP will be used for both the ARPA Internet and AUTODIN II - environments, and the macro version will be phased out. MOS2 has - been rewritten in "C." The TCP has been studied for performance - bottlenecks, with the current suspicion falling on the - interprocess communication facility. Fragmentation and reassembly - are being added to TCP. The AUTODIN II FTP is being implemented. - - Dale reported that SATNET is working well except for a 5 day - period where there were hardware problems at Goonhilly. SATNET - continues to support ARPANET traffic to/from Europe via "line 77." - Performance between the channel protocol modules has been - measured. A gateway between MATNET (a secure shipboard SATNET) - and a secure subset of the ARPANET will come into existence. - - Mike Brescia discussed gateway operation and monitoring - operations. An NCC style gateway monitoring center is being - setup. A gateway is being developed for connecting the ARPANET - and an X.25 net. The X.25 side is still under development. - - David briefly mentioned the status of the Catenet monitoring - programs. These are discussed in another session of the meeting. - - - -Postel [Page 2] - - - IEN 134 -Internet Meeting Notes - - - - Ruth reported on the development of a local net for the ACCAT - testbed at NOSC. There will be a gateway to the secure subset of - the ARPANET. An MBB Unix will be used. This work is in the - design stage. IP and TCP will be used in the local network, which - uses an 8 megabit base band cable with collision detection. This - is based on the MIT CHAOS net experience. - - C. DCA - Cain - - Ed reported that the local net which has operated for several - years based on an old version of the ARPANET IMPs will now have to - be brought up to date to use 96 bit leaders so this net can - participate in experiments with BCRs. - - D. COMSAT - Mills - - Dave reported that work continues on the PSP and NET, however the - main effort in recent months has been the demonstration for the - NTC. The "demo" system has been configured to run on a variety of - PDP-11 models. In the process of preparing for the demo some - performance problems were detected, and since the demo some study - has been done to isolate them (more on this in a later session). - These performance issues also prompted some tuning of parameters - and strategy in the MOS TCP. On another front Dave found a way to - decode compressed FAX files. Dave has several written reports - giving more detail on the work of COMSAT. - - E. DOD - McFarland - - Ray reported that Ken Shotting is attempting a formal - specification of IP in SPECIAL, and may be ready to give a report - at the next meeting. - - F. ISI - Postel - - Jon noted that ISI is working in three task areas: (1) Protocol - Development, which includes the work on IP and TCP specifications; - (2) Internet Mail, which includes development of mechanisms for - delivery of mail in an internet and provision for multi-media data - in the mail; and (3) protocol verification, which aims at the - analysis of IP and TCP for correct operation. - - G. Linkabit - Hoversten - - Estil noted Linkabit's involvement in SATNET and the WBC - experiment, and his participation in the development of the ST - protocol. Estil claimed to be the advocate of wild ideas. [Danny - - - - -Postel [Page 3] - - - IEN 134 -Internet Meeting Notes - - - - Cohen immediately claimed to be the advocate of tame ideas.] - Linkabit is also considering a set of local networks. - - H. LL - Forgie - - Jim reported on efforts to make the SATNET voice conferencing more - robust. Dale McNeill helped by fine tuning the SATNET but there - were still problems in the overall path. It seems that the ELF - based gateway introduces too much delay into the system. The idea - of a film on SATNET conferencing has been canceled due to the poor - performance of the system. There appears to be no further need - for the ELF gateway in SATNET. - - Jim also briefly mentioned the status of the ST protocol, which - will be reviewed in a later session. Jim did discuss the WBC - experiment and indicated the goals of having the LL, ISI, and SRI - sites up for point-to-point packet voice by September 1980, and - multiplexing of cells through a Voice Funnel by September 1981. - - I. MIT - Clark - - Dave noted that version 1 of the LCSNET is in operation with a PDP - 11 Unix system and a VAX connected, and the MIT-XX TOPS 20 to be - connected in April. Version 2 of the LCSNET is being debugged. - Version 2 operates the cable at 8 megabits (version 1 operates at - 1 megabit). - - Dave described the development of a personal terminal to be built - for LCS by Zenith. The prototype was built by Steve Ward at MIT. - LCS expects to have 10 of these by the end of May, 40 by the end - of 1980 and 150 by the end of 1981. These personal computers will - interface directly to the LCSNET. - - Dave also reported continuing problems with the port expander and - ARPANET hosts. A testing session will be set up at BBN involving - people from BBN and SRI. ACTION: Ron Kunzelman and Bill Plummer - will test port expander with BBNF. - - Dave also noted that MIT received a gift of 20 Altos and an - ethernet from XEROX, and that some effort will be needed to - integrate them into the environment. A common Trivial FTP is in - progress, the plan is to develop IP, TCP, and Telnet for the - Altos. - - There will be an improved Telnet server on Multics soon, and a - mail queuer for local net users. IP reassembly code will be - added. - - - - -Postel [Page 4] - - - IEN 134 -Internet Meeting Notes - - - - Dave did not prepare a memo for this meeting on congestion - control, but expects to have a presentation on the topic for the - next meeting. - - J. NDRE - Lundh - - Yngvar reported that the plans of NDRE are quite behind schedule - due to lack of staff. The problems with the VDH connection have - been solved and TCP is working. NDRE is developing a local net - involving NORD-10 and NORD-100 computers. - - K. RSRE - Davies - - Brian reported on the development of the RSRE gateway and the - experiences with the gateway-gateway protocol and CMCC monitoring - protocol. Things seem to work well except for a few special - cases. For example, when a "tail" gateway crashes it takes many - gateway routing update steps to get the hop count up to - "infinity." The temporary fix is to use a smaller value for - "infinity" (today "infinity" = 5). - - Another problem is that the host routing in TOPS 20s does not - switch to the NDRE gateway when the BBN gateway is down. ACTION: - Bill Plummer to change TOPS 20 host routing procedures, Vint Cerf - to get the priority for this task. - - RSRE has also experienced problems using TCP between RSRE and - ISIE. There may be a data stream capture problem. Even when all - is going well there are many duplicates, seemingly due to the - round trip time being longer than the TOPS 20 TCP retransmission - timeout. Brian estimates the delay at six (6) seconds. - - RSRE will be working on a connection to PSS and a new X.25-TCP - interconnection. - - L. SRI - Kunzelman, Cone, Nelson, Frankel - - Ron discussed the status of the TIU, and reported that it is now - fully converted to IP and TCP. The PRNET at SRI has been - converted to the CAP5 protocol. A PDP-11/44 will be installed as - a PRNET measurement facility. - - Don reported that six port expanders have been delivered and that - five more are in the works. - - Holly discussed the state of the port expander software. - - Mike discussed the Ft. Bragg PRNET status. Six radio units are - - - -Postel [Page 5] - - - IEN 134 -Internet Meeting Notes - - - - installed. There are problems of response delays to the users - from Ft. Bragg to ISIE. There may be a data stream capture - problem. The gateway seems to be a thruput bottleneck. - - Raphi reported on a local network development at SRI. This will - be based on XEROX Ethernet PDP-11 interface boards. These come - from XEROX with a unibus interface, SRI will convert them to Qbus - interface to be able to use LSI-11s to front end the host systems. - The hosts will be the TOPS20, Unix, B6700 systems now at SRI. The - first service will be computer mail based on the Deleware MMDF and - the SRI Deafnet. Telex and TWX will also be connected into the - online mail system. - - M. UCL - Jones - - Ron discussed the UCL involvement in the NTC demonstrations, and - in the RSRE interconnection to the internet. Several tasks were - delayed due to the development machine being out of service for 6 - weeks. An ARPANET/PSS gateway is under development. This will be - a protocol translation gateway converting between X.25 and TCP and - eventually up to the Telnet protocol level. Experiments are - beginning with a connection to IPSS. An NCP/TCP gateway was - demonstrated on ISIE. The NIFTP now runs on both ISIE and UCL - Unix. UCL has also been active with the development of a FAX - protocol. The UCL local net (a cambridge ring) now has 5 - stations. It is planned to use TCP as the protocol above the ring - driver. - - N. MITRE - Skelton - - Anita reported that the local net (a cable bus) is up and running. - There is work to upgrade the BIUs to allow larger packets and - higher data rates on the net. A second net is to be installed at - DCEC. There is also work to create an X.25 BIU interface. - - O. UCLA - Braden - - Bob reported that the machine at UCLA-CCN is now a 3033 running - OS/MVT. IP and TCP are up, and a server telnet is in place. - - - - - - - - - - - - -Postel [Page 6] - - - IEN 134 -Internet Meeting Notes - - - -IV. DOCUMENT STATUS - Postel - - Jon reported that the following documents were issued since the last - meeting: - - IEN 120 by Radia Perlman on "Internet Routing and the Network Portion - Problem." - - This memo discusses ways in which gateway routing data could be - used to overcome the problems of partitioned networks. - - IEN 121 by Postel on "Internet Meeting Notes - 10, 11, 12, 13 - September 1979." - - This is simply the notes of the last meeting. - - IEN 122 by Cohen on "Addressing and Related Issues (or Fuel for a - Discussion)." - - A suggestion that not all local networks need to be registered as - full networks in the internet and some ways of addressing the - hosts on such unregistered networks. - - IEN 123 and 124 were the December versions of the IP and TCP - specifications. These were the first try at the DOD Standard - versions. - - IEN 125 by Cerf on "Pre-emption." - - This is a note detailing how pre-emption can be handled at the - application level. - - IEN 126 by Cohen on a "Summary of the ARPA/ETHERNET Community - Meeting." - - This describes a plan for the co-existence of the PUP internet and - the ARPA internet protocols. - - IEN 127 by Postel on "Assigned Numbers." - - This is the latest edition of the list of network, protocols, - ports socket, and links. - - IEN 128 and 129 by Postel on IP and TCP. - - These are the second try at the DOD Standard versions of the IP - and TCP specifications. These are also the current specifications - for our own (ARPA internet) use. - - - -Postel [Page 7] - - - IEN 134 -Internet Meeting Notes - - - - In addition to these, four more IENs were received since the Thursday - before the meeting: - - IEN 130 is a "Comparison of X.25 and TCP as Cable Bus Network - Protocols" by International Computing. - - IEN 131 and IEN 132 by David Flood Page on "Gateway Monitoring - Protocol" and "The CMCC Terminal Process." - - IEN 133 by Karen Sollins on "The TFTP Protocol." - - Two IENs which were desired but not produced were: - - "How to Build a Host IP" by Bill Plummer - - and - - "Congestion Control" by Dave Clark. - -V. FAX STATUS - Cerf - - Vint reported that Duane Adams of ARPA/IPTO is starting a program on - graceful interaction and the test application will be multi-media - computer mail. Since some of the internet project participants have - FAX equipment there was a small meeting on how to cooperate to - exchange FAX data. The internet program has interest in seeing that - the exchange of multi-media data is possible in the internet and that - the representation of such data is compatible between these programs. - -VI. INTERNET MAIL - Postel - - Jon presented the current status of the internet mail system. The - system replaces the traditional "Mailer-FTPSRV" processes with new - processes called MPM's. The MPM exchange messages which are list - structured data of various types (not just text). The MPMs use TCP - to transmit these messages. Some other programs have been modified - or created to create test messages in this new format. No user - interface to this new system exists yet. - -VII. BBN - FAX - MAIL - Myer - - Ted described BBN's work on a user interface program to manipulate - messages composed of mixtures of text and FAX data. The focus is on - the creation of such messages and on their presentation. The RAPICOM - 450 will be used experimentally, and the files will be kept in a - format very close to that used by Postel's MPMs. - - - - - -Postel [Page 8] - - - IEN 134 -Internet Meeting Notes - - - -VIII. GATEWAY MONITORING - Flood Page - - David reviewed the operation of the Catenet monitoring center and the - terminal process, indicating the types of information available. - Please see IENs 131 and 132 for more details. - -IX. DEMOS - - A. David Flood Page gave a demo of the CMCC by using a terminal - process to examine the statistics sent in by various gateways. - - B. Greg Finn gave a demo of the Internet Mail system by running - instrumented versions of the MPMs such that the progress of - message processing could be followed. - -X. PUP - Shoch, Taft, Boggs, Stewart - - John presented a review of the PARC developed ETHERNET and PUP - protocol environment. This was a very thorough presentation. Rather - than try to capture it here the reader is referred to "PUP - An - Internetwork Architecture", a paper to appear in the IEEE - Transactions on Communication in April, and available as a Xerox - report from John. - - John demonstrated some simple programs which use the PUP protocols - and some monitoring programs. Ed demonstrated the Laural Mail - Program, Dave demonstrated a cross network debugger, and Larry - demonstrated the PRNET/ETHERNET interconnection and some digital - audio transmission on the ETHERNET. - -XI. PUP-IP COEXISTENCE - Cohen - - Danny presented the scheme described in IEN 126 for the "mutual - encapsulation" (credit Bob Metcalfe for the term) of PUP in IPs and - IPs in PUPs. - -XII. DELTA-T PROTOCOL - Watson - - Dick made a presentation highlighting the critical assumptions about - time in both the Delta-T protocol and TCP. The claim is that for - either of these protocols to operate correctly these critical time - factors must exceed specific minimum values based on the Maximum - Packet Lifetime, the retransmission time, and the Ack holding time. - - - - - - - - -Postel [Page 9] - - - IEN 134 -Internet Meeting Notes - - - -XIII. LIMITING PACKET LIFETIMES - Sloan - - Lansing presented a scheme for measuring the time a packet spends on - a link. This would enable a network to age packets and if necessary - kill them off if they get older than an established maximum packet - lifetime. This method will be reported in a paper to appear in - Computer Networks. - -XIV. ST - Forgie - - Jim reviewed the discussion and evolution of ST since last meeting. - IEN 119 remains a reasonable reference to the intention and general - mechanisms of ST, though some details may now differ. A revised - version is to be issued soon. Plans are moving ahead for - implementations of a host and a gateway ST at LL and a host ST at - ISI. - -XV. PORT EXPANDER - Lieb - - Jim presented a very detailed explanation of the Port Expander. This - simple concept of multiplexing the IMP port for a set of host becomes - fairly tricky when all the IMP emulation tasks are identified. - -XVI. SERVICES IN AN INTERNET ENVIRONMENT - Rom - - Raphi proposed that some gateways may wish to offer services to - higher level protocols by having application-dependent modules that - could be invoked to process messages of that application. These - modules could be called "functional agents." - -XVII. NBS STANDARDIZATION - Wingfield - - Mike reported that BBN is under contract to NBS to prepare a - host-to-host protocol specification to be a Federal Information - Processing Standard. This is part of a larger effort by NBS which - includes the following contractors and protocols: - - BBN - Host, FTP, IP, Interprocess. - - SDC - Telnet, Remote Job Entry, Common Command Language. - - SEI - Computer Mail. - - NAC - Cost/Benefit of Standards. - - - - - - - -Postel [Page 10] - - - IEN 134 -Internet Meeting Notes - - - -XVIII. INTERNET PERFORMANCE - Davies - - Brian discussed some measurements of TCP conducted by RSRE to various - other places in the internet. The performance is regular for round - trips from RSRE to various points at UCL, and is consistent with the - physical facilities. Once the round trip path includes the SATNET, - however, the performance becomes irregular, with a few messages - subject to very high delay. Also some unnecessary retransmissions - are detected in the tests form RSRE to ISIE and back, these may be - due to a too low retransmission threshold. - - This prompted some discussion of the source of the variability in the - delay. Jim Forgie presented some data from the SATNET speech testing - that seemed to confirm Brian's data. Dale McNeill showed some data - on the SATNET channel delays which show performance at that level to - be very regular. Suspicion seems to be cast on the SIMPs or the - Gateways or their interface. - -XIX. CONGESTION CONTROL - Mills - - Dave described some measurements of TCP traffic between the COMSAT - DEMO Terminal and ISIE. There is evidence of lost and delayed - packets. - - It seems clear from this and the preceeding discussion that a - definite effort is needed to isolate and correct these performance - problems. - -XX. MISCELLANEOUS - Cerf - - Vint noted the following loose ends that need to be tied up: - - 1. 96 bit leader changes to all ARPANET hosts, and carried - through system and application software. - - 2. TCP implementations brought up to the JAN 80 specifications. - - 3. IP implementations brought up to the JAN 80 specifications, - and modified to including reassembly/fragmentation, gateway - routing advice, alternate gateway selection, and source quenching. - - 4. Gateway addresses needed in all host IP tables. - - Vint also noted that work on a TCP TIP has been started. That an - ARPANET/TELENET gateway is in progress, and that an ARPANET AUTODIN - II gateway is expected in first quarter of 1981. - - - - - -Postel [Page 11] - - - IEN 134 -Internet Meeting Notes - - - -XXI. NEXT MEETING - Cerf - - The next meeting is scheduled for 14 & 15 May at MIT. The contact is - Dave Clark (Clark@MIT-Multics). - -XXII. DOCUMENTS DISTRIBUTED - - IEN Author Title - --- ------ ----- - 127 Postel Assigned Numbers - 128 Postel IP Spec - 129 Postel TCP Spec - 130 Comparison of TCP & X.25 - Watson Comparison of TCP & Delta-T - Lieb Port Expander - Mills COMSAT Reports - Postel Internet Host and Gateways - Postel IEN Index - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 12] - - - IEN 134 -Internet Meeting Notes - - - -XXIII. ATTENDEES - - Vint Cerf ARPA Cerf@ISIA - Mike Brescia BBN Brescia@BBNE - Jack Haverty BBN JHAVERTY@BBND - Dale McNeill BBN DMCNEILL@BBNE - David Flood Page BBN DFLOODPAGE@BBNE - Ted Myer BBN Myer@BBNA - Ruth Nelson BBN RNelson@BBND - William Plummer BBN Plummer@BBNA - Bob Resnick BBN Resnick@BBNA - Virginia Strazisar BBN STRAZISAR@BBNA - Mike Wingfield BBN Wingfield@BBND - Hoi Y. Chong COMSAT Chong@ISIE - David Mills COMSAT Mills@ISIE - Chris Elliott CTEC c/o Chips@BBNC - Ed Cain DCEC DCEC-R850@BBNB - Ray McFarland DoD McFARLAND@ISIA - Danny Cohen ISI Cohen@ISIB - Greg Finn ISI Finn@ISIE - Jon Postel ISI Postel@ISIE - Carl Sunshine ISI Sunshine@ISIE - Lansing Sloan LLL DWatson@BBNB - Dick Watson LLL DWatson@BBNB - Estil Hoversten Linkabit Hoversten@ISIA - Jim Forgie Lincoln Lab FORGIE@BBN - David Clark MIT Clark@MIT-Multics - Anita Skelton MITRE Anita@MITRE - Frank Deckelman NAVELEX DECKELMAN@ISIA - Yngvar Lundh NDRE Yngvar@SRI-KA - Paal Spilling NDRE/SRI Spilling@SRI-KL - Merle Neer NOSC Neer@ISIA - Brian Davies RSRE RSRE-T4@ISIA - John Laws RSRE RSRE-T4@ISIA - David Kaufman SDC Kaufman@ISIE - Don Cone SRI Cone@SRI-KL - William Croft SRI Croft@SRI-KL - Elizabeth Feinler SRI Feinler@SRI-KL - Mike Frankel SRI Frankel@SRI-KL - Michael Heathman SRI Heathman@SRI-KL - Ron Kunzelman SRI Kunzelman@SRI-KL - Jim Mathis SRI Mathis@SRI-KL - Stevan Milunovic SRI Milunovic@SRI-KL - Holly Nelson SRI HNelson@SRI-KL - Ed Perry SRI Perry@SRI-KL - John Pickens SRI Pickens@SRI-KL - Raphael Rom SRI Rom@SRI-KL - Ron Jones UCL UKSAT@ISIE - - - -Postel [Page 13] - - - IEN 134 -Internet Meeting Notes - - - - Peter Kirstein UCL Kirstein@ISIA - Steve Treadwell UCL UKSAT@ISIE - Bob Braden UCLA OAC Braden@UCLA-CCN - David Boggs Xerox Boggs@PARC - Steve Butterfield Xerox Butterfield@PARC - Dave Redell Xerox Redell@PARC - John Shoch Xerox Shoch@PARC - Larry Stewart Xerox LStewart@PARC - Ed Taft Xerox Taft@PARC - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 14] - \ No newline at end of file diff --git a/text/ien/ien135.txt b/text/ien/ien135.txt deleted file mode 100644 index 1bb0a622..00000000 --- a/text/ien/ien135.txt +++ /dev/null @@ -1,347 +0,0 @@ - - -IEN 135 C. Sunshine - J. Postel - USC-ISI - March 1980 - - ADDRESSING MOBILE HOSTS IN THE ARPA INTERNET ENVIRONMENT - -INTRODUCTION - -The packet radio network system has been designed from the start with -the idea that hosts could be mobile within a packet radio network. This -is accomplished by allowing a dynamic binding of host names to the -packet radios that are supporting them, and a dynamic construction of -routes to packet radios as the topology of the network changes. Hosts -in other types of networks may also be mobile to the extent supported by -those local nets, since the local net portion of an internet address is -left to each local net to interpret as it wishes. (Hosts on the -original ARPANET are not movable in the sense we mean here because the -net interprets the local net address as a physical IMP interface.) - -We would also like to allow hosts to move between networks in the -internet system without perturbing protocols above the internet layer. -The particular application we have in mind is a flying packet radio -moving among different packet radio nets, but other types of mobile -hosts may be imagined. - -With the current understanding of internet addressing, allowing hosts to -move between nets appears to be a more difficult problem than allowing -mobile hosts within one net. In particular, the network portion of an -internet address is interpreted as specifying the "real" network in -which the host must be found. Hence a host moving to a new network -would have to take on a new internet address, causing problems for -higher level protocols (e.g. TCP) that use the internet address for -identifying what conversation or connection a message belongs to. - -To solve this problem, we may try to change the higher level protocols | -(for example by introducing some "reconnection" or multi-addressing | -functions), or we may try to change the use of the network identifier at | -the internet level. This note presents one useful looking possibility | -in the second area. The problem of supporting mobile hosts is also | -related to the problems of multi-homed hosts and network partitioning | -which we shall return to at the end of this note. | - -PROPOSED SOLUTION - -Our solution is based on 1) extending the interpretation of network -addresses to include "virtual" nets, and 2) use of source routing. - -We propose to reserve a set of network identifiers in the internet | -address space for "virtual" networks which do not correspond to any | -physical network, but rather to a "community of interest" in which | - - - -Sunshine & Postel [Page 1] - - - -IEN 135 March 1980 -Addressing Mobile Hosts - - - -"local" names can be uniquely assigned. In particular, there would be | -one network identifier for airborne packet radios (e.g. ABPR). The | -local portion of the internet address for each airborne packet radio | -would be a unique (for airborne packet radios) 24-bit number. | - -Rather than interpreting the network address in the usual fashion for | -internet routing, delivery of messages to airborne hosts would require | -the use of a two-part source route in the following way. The first part | -would be a normal internet address of a "forwarder," hopefully within | -the net that the airborne host is currently attached to. When the | -message reached this forwarder, it would see the airborne virtual net | -address in the final part of the source route. This would cause it to | -look up in a dynamically maintained table of attached mobile hosts what | -the proper local address and/or route was to the specified mobile host, | -and to forward the message accordingly. Gateways would NOT include | -virtual nets in the normal internet routing tables, or be able to route | -packets to such nets directly (unless they were also forwarders). | - -The first feature to note about this scheme is that the ultimate -destination address is a new virtual type internet address that remains -unchanged no matter what net the host is attached to. This allows -higher level protocols to remain unchanged in their mapping of addresses -to connections. - -The second feature to note is that this freedom for higher level -protocols has its price at the internet level. We now require 1) the -use of source routing, 2) the maintenance of local address mappings by -forwarders, and 3) the determination of an appropriate forwarder for a -given mobile host. The second item is exactly the sort of work -currently done by the station in a packet radio net, and we expect this -could be extended to deal with internet format addresses rather easily. -If not the station itself, then the gateway to a packet radio net might -perform this function. - -The third item seems to require some form of dynamic global data base -that maintains the location of mobile hosts. When queried with a mobile -host name, it returns the internet address of an appropriate forwarder -to use in constructing a source route to the mobile host. Of course -this information must be updated as hosts move. This database may be -centralized, or include several backup servers, or even be distributed -(e.g. among the gateways and/or forwarders which comprise a single -virtual server much like the PSATs in the WBC net). - -When a host enters a new net (or comes up), it must notify the forwarder | -in that net of its existence (PRs now make a similar notification when | -the come up in a PR net). Either the forwarder or the host must also | - - - -Sunshine & Postel [Page 2] - - - -IEN 135 March 1980 -Addressing Mobile Hosts - - - -notify the global database. For greater efficiency, the source of any | -existing connections and the forwarder in the old net could also be | -notified. Without these extra notifications, the old forwarder could | -only notify the source that the host was no longer accessible through | -his local net, and the source would in turn have to query the global | -database for the new forwarder address. This scheme should also work if | -hosts on both sides of a conversation are mobile and move | -simultaneously, although their change notices to each other may not get | -delivered, forcing them both to requery the database. | - -ROUTING MESSAGES - -This proposal requires a new kind of routing message carrying the name -of a mobile host and the current forwarder (or forwarders) to use to -reach it. Such a message could serve either as a query (empty route -portion); as an update to the global database, forwarders, and internet -hosts; as a response to explicit queries to the database; or as an ACK -to a current update (by repeating it). - -Such a message fits conveniently within the current "gateway-gateway" -protocol defined in IEN 109 [1]. There is already a similar type -message in this protocol called "Redirect Message." We propose adding a -new message type called "Mobile Routing" as follows: - - Type: 11 (decimal) for Mobile Routing - - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Gateway Type | Operation | Route Count | unused | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Mobile Internet Address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Forwarder Internet Address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - / / - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Forwarder Internet Address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Internet Header + 64 bits of Original Data Packet | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - - Gateway Type: 11 - - Operation: 0 = Query - 1 = Update - 2 = Route Change Advisory - - - -Sunshine & Postel [Page 3] - - - -IEN 135 March 1980 -Addressing Mobile Hosts - - - - 3 = Acknowledge - 4 = Query Response - - Route Count: number of forwarder internet addresses included - - Mobile Internet Address: 32 bit internet address, typically - ABPR.xyz - - Forwarder Internet Address: 32 bit internet address - - Reference: present only for Op = 2 (route change advisory). - Internet Header plus 64 bits of data from - datagram causing this reply. - - Query messages will have a zero route count. - - Updates are used to update the global database or forwarder tables - when a host moves to a new net. - - Route Change Advisories are sent by a forwarder (or a mobile - destination) in response to the arrival of an internet datagram - that cannot (or soon will not be able to) be routed that way - anymore. They include 64 bits of what is assumed to be the port - information from the higher level protocol in case the source - needs this to lookup the correct connection. - - Acknowledge datagrams are the responses to Updates so that the - sender of the Update knows it has been correctly received. They - should repeat all the information in the original Update, simply - changing the OP from 1 to 3. - - Query Response is the answer to the Query datagram. - -It is quite possible that a simple generalization of this message type -could support general source route lookup from a routing database, but -it is not our intention to pursue this avenue at this time. - -The procedures for handling mobile hosts may also make use of the -existing "Host Unreachable" message type. Packets reaching an incorrect -forwarder that cannot supply a new route to a mobile host (using the -Route Change Advisory above) must return a simple Host Unreachable -message, causing the source to query the global database. If the reply -to this query is the same forwarder, then the mobile host is truly -unreachable. The source may wish to wait a short time and requery the -database on the hope that the mobile host is in process of moving to a -new net. - - - -Sunshine & Postel [Page 4] - - - -IEN 135 March 1980 -Addressing Mobile Hosts - - - -RELATION TO OTHER PROBLEMS - -As stated in the introduction, there is some relation between the | -problems of mobile hosts and of dual-homed (on two networks) hosts. In | -particular, one could consider dual-homed hosts as mobile, and go | -through the same route lookup and source routing procedures in | -communicating with them. The dual-homed host itself could act as a | -degenerate sort of forwarder, receiving messages on either of its | -interface addresses, and "forwarding" them internally to its virtual net | -address. Presumably updates to the routing database would be made only | -when an interface went down or up. Dual-homed hosts would enjoy the | -same benefits of no changes to higher level protocols while messages | -could arrive over either interface. However, the extra cost of route | -lookup, source routing, and assignment of a nework number, may not be | -justified for normal operation, and higher level procedures should still | -be considered in this area. | - -There is also some relation to the network partition problem as follows. -When a network partitions, we can treat the partitions as subnetworks, -and the original host addresses as virtual network addresses where we -don't know what (sub)network the host is located in. Some dynamic -mapping of host address to correct subnet must be performed, as in the -mobile host case. However, this situation requires the dynamic creation -and deletion of new (sub)networks in the routing database, and hence -goes beyond what we have proposed for mobile hosts. We do not believe -it is desirable to try and extend our proposal to cover this situation -as well. - -A simpler solution to the partitioning problem follows the spirit of -querying a database when things go wrong. Suppose there were another -database listing networks and all the gateways attached to each net -(whether up or down). This database would change slowly only as new -equipment was added to the internet system. Further suppose that the -gateways and internet routing are totally unaware of network partitions, -except that gateways to partitioned nets find out when they cannot reach -some host on their own net. In this case, the gateway would return a -Host Unreachable (through me) advisory message to the source. The -source could then query the global database to get a list of all -gateways to the destination net, and construct explicit source routes to -the destination going through each of these gateways, trying each one in -turn until it succeeded. The only difficulty in this scheme is that -gateways should distinguish between hosts completely unreachable (so no -rerouting will work) and those in a different partition. - -This scheme assumes that there are few gateways to most nets (e.g. 2-4) -and that partitions are a relatively rare event so that simple-minded - - - -Sunshine & Postel [Page 5] - - - -IEN 135 March 1980 -Addressing Mobile Hosts - - - -polling is an adequate mechanism. Compared to the approach suggested in -IEN 120 [2], it requires some simple additional work at the source ONLY -when partitions occur, but frees the gateways of all concern about -partitions. Given that partitions are a rare event, we think that a -high level of effort by the gateways to make partitions "invisible" to -the sources (even when no partitions exist) is not justified. Both the -scheme proposed here and the one in IEN 120 operate solely within the -internet routing level and have no effect on higher level protocols. - -SUMMARY - -We have proposed a mechanism for allowing hosts to move between networks -in the ARPA internet system without requiring any changes to protocols -above the internet level. The mechanism involves - 1) the definition of a "virtual" net for mobile hosts, - 2) the use of "forwarders" in each local net that can support - mobile hosts (much like the stations in packet radio nets), and - 3) the use and maintenance of a global database giving the current - network location of mobile hosts. - -We believe these three items are feasible with a modest amount of work -because - 1) is essentially an administrative matter, - 2) is essentially already performed by stations on packet radio - nets, and - 3) is similar to the name server function already implemented - experimentally. - -We have also proposed a simple scheme for handling network partitioning -based on trying explicit source routes to each gateway to the -destination net when normal internet routing fails. - -This proposal should be considered simply as outlining a promising -approach. Before elaborating further details, we would like your help -in evaluating the overall ideas. Comments to the authors are highly -desired. - -REFERENCES - -[1] Strazisar, V., "How To Build a Gateway", IEN 109, Bolt Beranek and - Newman Inc., August 1979. - -[2] Perlman, R., "Internet Routing and the Network Partition Problem", - IEN 120, Bolt Beranek and Newman Inc., October 1979. - - - - - -Sunshine & Postel [Page 6] diff --git a/text/ien/ien136.txt b/text/ien/ien136.txt deleted file mode 100644 index 2b556342..00000000 --- a/text/ien/ien136.txt +++ /dev/null @@ -1,3658 +0,0 @@ - - - - - Memory Management Extensions - to the SRI Micro Operating System - for PDP-11/23/34/35/40 - - - - - - - - - - - IEN 136 - - 1st MAY 1980 - - - - - - - - - - S.R. Wiseman - B.H. Davies - - - - - - - - - - - - - - - - - - - - - - - - ROYAL SIGNALS & RADAR ESTABLISHMENT - North Site, Leigh Sinton Rd., Malvern, Worcs., UK. - - 1 - - - - CONTENTS - ________ - -0. Introduction - - PART 1 - SYSTEM DESIGN - -1. Requirement - -1.2 Overview of solution - -1.3 Use of Memory Management Facility - - - PART 2 - TARGET MACHINE ASPECTS - -2.1 Alterations to MOS - 2.1.1 The Process Control Table - 2.1.2 The Scheduler - 2.1.3 The $CREAP Macro - 2.1.4 Input and Output Routines - 2.1.5 Memory Sizing - 2.1.6 Protection Routines - 2.1.7 System Configuration - -2.2 The EMMOS Debugger - MUD - 2.2.1 A Summary of MUD Commands - 2.2.2 MUD Command Syntax - 2.2.3 The Relocation Mechanism - 2.2.4 Addressing Modes - 2.2.5 Command Specifications - 2.2.6 Using MUD - -2.3 Linker and Loader Functions - 2.3.1 The Linker - 2.3.2 The Loader - - - - - - - - - - - - - - - - - - - - 2 - - PART 3 - HOST MACHINE ASPECTS - -3.1 Linking Using the RSX-11M Task Builder - 3.1.1 Use of the Task Builder's Task Image File - 3.1.2 The Format of the Task Image File - 3.1.3 The Overlay Description Language - 3.1.4 The EMMOS ODL File - 3.1.5 Installation of the Debugger - 3.1.6 Creating the Task Image File - -3.2 The EMMOS RSX Task Image Loader - 3.2.1 Inputs and Outputs - 3.2.2 The Console Load Map - 3.2.3 The Configuration Table - 3.2.4 The Overlay Description Table - 3.2.5 The Process Description Table - 3.2.6 The Load Map - 3.2.7 The Physical Memory Allocation Algorithm - 3.2.8 The Logical Operation of the Loader - 3.2.9 Error Messages - 3.2.10 Tracing - 3.2.11 Changing the System - -3.3 Process Creation - - - - - -Appendix A: Pitfalls and How to Avoid Them - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - -0. Introduction -____________________ - - This document describes the requirement, design and implementation -of memory management extensions to the Stanford Research Insitute's -Micro Operating System (MOS) for PDP-11 minicomputers. The document is -divided into three parts. Part 1 covers the rationale behind the way in -which the memory management facility of the PDP-11 is used. The results -of the work fall naturally into Parts 2 and 3. Part 2 describes the -modifications to MOS itself and the debugger which are independent of -the operating system of the host machine on which the target system is -generated. Part 3 describes the Linking and Loading modules which are -dependent on the operating system of the host machine. The host machines -used at RSRE are PDP -11/34 and 40s running RSX-11M v3.2. Also we have -provision in our standard MOS for writing processes in a high level -language, CORAL 66, which requires the use of an auxiliary stack pointed -to by R0. This facility may be excluded from the extended MOS by the use -of a configuration switch. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4 - - - - - - - - - - - - - - PART ONE - ________ - - SYSTEM DESIGN - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - -1.1 Requirement -___________________ - - For a number of planned real-time software projects the 28k words -of code and data space accessible without memory management in the -PDP-11 is inadequate. Therefore the question arises is it possible to -use the memory management registers to provide more code and/or data -space up to 124k words, with minimal overheads in the form of context -switching and with no modifications to presently written processes? - - -1.2 Overview of Solution -____________________________ - - - The reason for the provision of a two state memory management -system in the PDP-11s is not only to allow access to memory above 28k -words but also, by the use of kernel and user modes, to provide -protection between processes and the core resident part of the operating -system. This usually means that the I/O page is non-resident when a user -process is running and that I/O is handled in kernel mode. Thus in a -real-time system there may be unacceptable overheads due to the -considerable amount of context switching involved in this protection -mechanism. However if one is willing to dispense with interprocess and -operating system protection a simple and elegant solution which produces -no detectable overheads is possible. - - The basic concept of the solution is that while a process is -running there is no need to have in scope any other process so that a -snapshot of the 32k virtual memory at any one time will look like an -ordinary MOS system configured for one process. The only extra -executable code involved is in the scheduler for paging out the process -that has just finished running and paging in the process that is about -to be run. The I/O page, operating system, handlers and common buffer -area are always resident otherwise access to these entities would have -to be mediated by the operating system so that they could be paged in -with consequent increase in overheads. A typical MOS process runs for -something like 1 millisecond and the additional paging overhead is 4 MOV -instructions taking about 20 micro seconds, a 2% overhead. A major -change in the MOS layout occurs in the positioning of the stacks. -Because we want the permanently resident part of MOS to be as small as -possible and never greater than 8k words the stacks have been removed -from the Process Control Tables and are paged in and out with their -processes. - - -1.3 Use of the Memory Mangement Facility -____________________________________________ - - At any one time only the running process will reside in virtual -memory, the others will be suspended and so have no need to be -accessible. Permanently resident in virtual memory will be the vector -area, global buffer area, operating system including all handlers, and -the I/O page. Because the maximum size of a page is 4K words and it's -position is fixed in virtual memory, the allocation of these pages is -somewhat restricted. However a trade-off between global buffer space, - - 6 - -operating system size and process space is possible to some extent, and -the following configurable options are catered for:- - - -Options where code and stack space of any process does not exceed 4k words:- - - - Option 1 - ________ - - 20k words of buffer space - <4k of operating system and handlers - - - |-----------------------| 32k - 7 | I/O | - |-----------------------| 28k - 6 |Running process & stack| - |-----------------------| 24k - 5 | Operating System EMMOS| - |-----------------------| 20k - 4 | Global Buffers | - |- -| 16k - 3 | | - |- -| 12k - 2 | | - |- -| 8k - 1 | | - |- -| 4k - 0 | | - page |-----------------------| 0k - - Option 2 - ________ - - 16k words of buffers - <8k operating system and handlers - |-----------------------| 32k - 7 | I/O | - |-----------------------| 28k - 6 |Running process & stack| - |-----------------------| 24k - 5 | Operating System EMMOS| - |- -| 20k - 4 | | - |-----------------------| 16k - 3 | Global buffers | - |- -| 12k - 2 | | - |- -| 8k - 1 | | - |- -| 4k - 0 | | - page |-----------------------| 0k - - - - 7 - - -Options where code and stack space of any process does not exceed 8K words:- - - Option 3 - ________ - - 16k words of buffer space - < 4k words of operating system and handlers - - |-----------------------| 32k - 7 | I/O | - |-----------------------| 28k - 6 |Running process & stack| - |- -| 24k - 5 | | - |-----------------------| 20k - 4 | Operating System EMMOS| - |-----------------------| 16k - 3 | Global Buffers | - |- -| 12k - 2 | | - |- -| 8k - 1 | | - |- -| 4k - 0 | | - page |-----------------------| 0k - - Option 4 - ________ - - 12k words of buffers - <8k words for operating system and handlers - - |-----------------------| 32k - 7 | I/O | - |-----------------------| 28k - 6 |Running process & stack| - |- -| 24k - 5 | | - |-----------------------| 20k - 4 | Operating System EMMOS| - |- -| 16k - 3 | | - |-----------------------| 12k - 2 | Global Buffers | - |- -| 8k - 1 | | - |- -| 4k - 0 | | - page |-----------------------| 0k - - - - - - - - 8 - - Only kernel mode is used by EMMOS, even user processes run in -kernel mode because no attempt has been made to produce a secure system. -However with options 3 and 4 the process space and stack space are -allocated separate pages wherever possible. Thus the debugger or a -procedure call may be used to write-protect the code space if desired. -Holes appear in virtual memory from the end of the code or stack to the -end of the 4k boundary ensuring that a system stack cannot underflow and -the running process cannot access another process' code or stack . -However, a process can damage another process indirectly by, for -example, supplying a pointer to data on its stack to another process. - - Because the debugger is bigger than 4k, options 1 and 2 do not -allow use of the debugger. This is not a serious drawback as it is -envisaged that debugging could take place with options 3 or 4 and that -options 1 or 2 could then be used to give another 4k words of buffer -space. - - Using EMMOS requires a stricter discipline when writing processes -than was required with MOS. Strictly speaking the code of a process -should not contain any private data space. If a process wants private -data space it should use its stack. Any data space shich is shared by -two or more processes should be obtained , via MOSMEM calls, from the -global buffer area. Exceptionally a single incarnation of an assembler -process could reserve space after its code for local tables but any -attempt by another process to access this area will result in disaster! -All high level language processes should be written as closed procedures -with private data area on their stacks. - - Shared Library procedures must either be replicated so that they -are paged in with each process that requires to use them or they must be -linked with the EMMOS operating system so that they are permanently -resident - - - - - - - - - - - - - - - - - - - - - - - - - - 9 - - A typical example of real and virtual memory allocations for -an EMMOS system are shown below:- - 128k |-----------------------| - | I/O addresses | - 124k |-----------------------| - - | | - - | | - | | - |-----------------------| - | stack (proc3) | - |-----------------------| - | stack (proc2) | - |-----------------------| 32k |_______________________| - 7 | I/O | | Codebody2 (proc 2&3) | - |-----------------------| 28k |_______________________| - 6 |Running process & stack| | stack (proc1) | - |- -| 24k |_______________________| - 5 | | | Codebody1 (proc1) | - |-----------------------| 20k |-----------------------| - 4 | Operating System EMMOS| | Operating System EMMOS| - |- -| 16k |- -| - 3 | | | | - |-----------------------| 12k |-----------------------| - 2 | Global Buffers | | GLOBAL buffers | - |- -| 8k |- -| - 1 | | | | - |- -| 4k |- -| - 0 | | | | - |-----------------------| 0k |-----------------------| -Page Virtual Memory Physical Memory - - - - - The linker/loader system used with EMMOS should be reasonably -intelligent! It is it's job to reserve physical memory in accordance -with the stack size requested for each process. In particular it must -evaluate the total memory requirements of a process that has more than -one incarnation and determine whether or not some or all of the code has -to be replicated.This may arise when the stacks of all the incarnations -of a process plus the code will not fit into the paging window. The -linker/loader is also responsible for outputting error messages when the -process and stack requirements cannot be satisfied by that particular -configuration of EMMOS. - - - - - - - - - - - - 10 - - - - - - - - - - - PART TWO - ________ - - TARGET MACHINE ASPECTS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 11 - - 2.1 Alterations to MOS - ___________________________ - - Perhaps the most vital alteration is that made to the scheduler. A -context swap now involves saving the suspended process' window and -restoring the new process' window. This however, only involves about -four move instructions extra, for a typical configuration ( 8K processes -). - - The major alteration is, however, to the Process Control Tables ( -PCTs ) and consequently to the PCT initializer. In particular the stacks -for a process no longer reside here, hence a process' PCT is relatively -small. Extra fields in the PCTs give the memory management window -necessary to 'page-in' the process and the ends of the system and CORAL -stacks. The PCT initializer now has to cope with setting up these -fields, which it does by consulting the load map, supplied by the -linker/loader. - - Additions have also been made to the $CREAP macro. The sizes of the -system and CORAL stacks are given to the $CREAP which in turn passes the -information to the linker/loader ( depending on the method used ). - - It has also been necessary to offer modified synchronous I/O -routines 'SOUT' and 'SIN'. The original versions can be used if the I/O -is performed on buffers from the permanently resident buffer pool, -however they will not work if the I/O buffer is taken from the local -code or data space. This is because the local area may be paged-out when -the interrupt routine tries to get the next character, causing it to -pick up rubbish or trap out. The new versions will copy the local I/O -buffer into a global buffer before initiating the I/O, thus ensuring -that it is always paged-in. This is likely to be the main overhead of -the system. - - Finally, the memory sizing performed in MOSMEM is no longer -required. This is because the position of the global buffer pool is -fixed by the page allocation scheme. - - - - - - - - - - - - - - - - - - - - - - 12 - - 2.1.1 The Process Control Table - -The following fields have been added to the PCT: - - pct_mmr : ARRAY [ first_page..last_page ] OF window_type; - pct_r0e, pct_r6e : virtual_byte_addresses; -where - TYPE window_type = RECORD par, pdr : INTEGER END; - TYPE virtual_byte_addresses = 0..#177777; - -The following field has been removed from the PCT: - - pct_stk : ARRAY [ 1..stk_len ] OF BYTES - - pct_mmr is an array containing the window required to 'page-in' the -process. The bounds are not 0..7 because it is known that most pages -remain constant, only pages first_page to last_page are changed since -this is the amount of virtual memory allocated to a process. Each -element of the array is four bytes long and contains the page address -register ( par ) and page descriptor register ( pdr ) values for that -page. - - pct_r0e and pct_r6e contain the virtual byte addresses of the ends -( smallest numbered address ) of the R0 ( CORAL ) and R6 ( system ) -stacks. These values are used to detect stack overflow. - - Since the stacks no longer reside in the PCT the field pct_stk has -been removed. - - The new fields in the PCT are set up directly from the Load Map -produced by the linker/loader. - - - - - - - - - - - - - - - - - - - - - - - - - - - 13 - - 2.1.2 The Scheduler - - A context swap now involves saving and restoring the memory -mapping, as well as the general register values. We can actually avoid -saving the mapping when a process is suspended because normally it -remains constant. The protection on a page is the only thing likely to -change and if this is done using the supplied routines then we can still -avoid doing the saving. - - When the process is made runnable it is first 'paged-in' by -restoring it's memory mapping. To ensure that the stack pointer and it's -stack are restored together, interrupts are disabled earlier than in the -old version. If an interrupt is allowed to occur between 'paging-in' the -stack and restoring the stack pointer then disaster will obviously -follow. - - Stack overflow, on both the R0 ( CORAL ) and R6 ( system ) stacks, -is checked for when the process is suspended. The ends of the stacks are -marked with overflow detect words, the address of which is held in the -PCT. It is a simple matter to check if these words are still intact. If -the system has no CORAL processes or library routines then the checks -made on the R0 stack can be omitted by setting a switch in the EMMOS -configuration file. - - 2.1.3 The $CREAP Macro - - This macro initializes parts of the PCT, the rest is done at run -time. Two extra parameters are now required, which specify the size, in -words, of the R0 ( CORAL ) and R6 ( system ) stacks. To avoid confusion -the parameters should be called by name, the default size is zero words: - -eg: $CREAP G802,,,DV.IMP+0,DV.IMP+1,R0SIZE=200,R6SIZE=20 - $CREAP G802,,,DV.IMP+2,DV.IMP+3,R6SIZE=30,R0SIZE=350 - - The macro converts the size into memory blocks ( 40 octal words ) -and places the information, along with the process id and name, in the -.PSECT LDRCON. This information is used by the linker/loader in a way -that depends on the methods being used. Note that different incarnations -of the same process can have different sizes of stacks. In the above -example ( all numbers are octal ) the first process would have - - ceiling( 200/40 ) = 4 memory blocks = 200 words for R0 - ceiling( 20/40 ) = 1 memory block = 40 words for R6 -and the second process would have - ceiling( 350/40 ) = 10 memory blocks = 400 words for R0 - ceiling( 30/40 ) = 1 memory block = 40 words for R6 - - Note: "ceiling( r )" is a function that rounds up real numbers to -the next largest integer. - - - - - - - - - 14 - - 2.1.4 Input and Output Routines - - The synchronous I/O routines, SIN and SOUT, have to be modified for -use with EMMOS. The user interface is unchanged, but the method of -operation is slightly different. SOUT now grabs a global buffer, copies -the string into it from the user's buffer and then performs the SIO on -the global buffer, to output the characters. SIN grabs a global buffer, -calls SIO to fill it and then copies the string into the user's buffer. - - This is necessary because if the string to be output is in the -process' local area, it will be 'paged-out' with the process. SIO uses a -pointer to the string ( a virtual address ) to get the characters, so if -it does this when the initiating process is 'paged-out', it will either -pick up rubbish or cause a memory management error. Similarly for SIN. - - The copying would not be required for a string already in a global -buffer, because the buffer will always be 'paged-in', regardless of -which process is running. In this case the MOS versions could be renamed -and used to avoid a loss of efficiency. - - The same problems apply to the asynchronous I/O routine, SIO. -However, any copying from local data space to a global buffer that is -needed, is left up to the user. Checks have been included in the code -that ensure both the IORB and the data area are in the global buffer -pool or the resident EMMOS code. These checks can be omitted for a -program known to work by setting a switch in the EMMOS configuration -file. - - 2.1.5 Memory Sizing - - This is now not carried out. The limits of the global buffer area -are assumed to be the ends of the pages allocated to buffers ( less -space for the vectors if this includes page 0 ). It is assumed that the -hardware has been configured in a sensible manner. - - - - - - - - - - - - - - - - - - - - - - - - 15 - - 2.1.6 Protection Routines - - Two routines are supplied, one to inspect the access control field -( ACF ) of a page, the other to change the ACF. Under the memory -management system each page can be either - - 1. non-resident -all attempts at access will cause - a trap - 2. read-only -attempts to write into a location - in the page will cause a trap - 3. (unused) -same as non-resident - 4. read/write -neither reads nor writes are trapped - - The two routines will only work for one of the process pages. They -both return an integer result. This equals 'true' if the page specified -is a process page, else it equals 'false' and the ACF is not changed or -inspected. The pre-defined constants, 'non resident', 'read only', 'un -used' and 'read write', should be used to specify and compare the ACFs. - -INTEGER PROCEDURE change page protection ( VALUE INTEGER page, access ); - - If the page specified is a process page then the ACF of that page -is changed to the given access. The copy of the memory management -registers held in the PCT table for this process, is also updated. - -INTEGER PROCEDURE current protection ( VALUE INTEGER page; - LOCATION INTEGER pct, pdr ); - - If the page specified is a process page then pct and pdr are set to -the values of the ACF field of the memory management registers for that -page, taken from the PCT window area and active page registers -respectively. The two different versions are supplied in case one of -them has been corrupted. Both should always be the same. - - - CORAL Constant Values - - true 1 - false 0 - non resident 0 - read only 2 - un used 4 - read write 6 - - - - - - - - - - - - - - - 16 - -cont. - - The assembler versions of these routines are completly re-entrant -and run to completion, so it is possible to have one copy of the code in -the resident part of the system which is shared between all processes. -The routine to change the page protection is called $CHAPP and the -routine to inspect the current protection is called $CURPP, they have -the same effect as the CORAL versions but are called as follows: - - - -Change Page Protection : - called by JSR PC,$CHAPP - with R2 = number of the page to be changed - R3 = the new access of that page - returns with - R1 = TRUE or FALSE - R0 and R2...R6 unchanged - -Inspect Current Page Protection : - called by JSR PC,$CURPP - with R2 = number of page to be examined - returns with - R1 = TRUE or FALSE - R3 = value from PCT - R4 = value from active PDR - R0, R5 and R6 unchanged - - -Assembler Constant Values - - TRUE 1 - FALSE 0 - NONRES 0 - READON 2 - UNUSED 4 - RWRITE 6 - - - - - - - - - - - - - - - - - - - - - 17 - - 2.1.7 System Configuration - - The page allocation scheme, operating system options and various -buffer addresses, are specified in the configuration file, EMMSYS.SML . - - 2.1.7i The Page Allocation Scheme - - The virtual memory is divided up into 8 pages of 4K words, numbered -0..7. Page 7 is always allocated for the I/O page, the remaining seven -are split between the global buffers, the operating system and the -running process ( including it's stacks ). The order is critical, -buffers should be at the low numbered end, then the system, then the -process and finally the I/O page. The exact split is given by specifying -the first and last page used by each part. - -eg buffers 0 - 3 emmos 4 - 5 process 6 - 6 -or buffers 0 - 2 emmos 3 - 4 process 5 - 6 - - When decreasing the space allocated to the global buffers, be sure -that the workspace buffers ( see 2.1.7iii ) are still located before -EMMOS, otherwise EMMOS may be loaded on top of one of them before it's -finished with. Note: different linking/loading schemes may lend -themselves to a different ordering of buffers, system and process, in -which case minor alterations to the PCT initializer may be necessary. -The I/O page must always be page 7. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 18 - - 2.1.7ii Operating System Options - - -EMMOS: EMMOS/MOS selection switch - = 0 for EMMOS - = 1 for MOS ( SAVMAP and SET250 have no meaning ) - -SAVMAP: save mapping when process suspended switch - = 0 when a process is suspended the window is saved as part - of the process' volatile environment. This allows a - process to change the window dynamically ( eg the - protection ). Note, only that part of the window for the - pages allocated to processes is saved and restored, so - changing other pages will affect all processes. - = 1 the window is not saved each time the process is - suspended. The original value is reloaded when the - process is run again, erasing any changes made. - - It is recommended that SAVMAP = 1 and the supplied protection - routines are used to change the page allocation, with the other - fields left well alone. - -SET250: memory management error trap initialization on/off - = 0 when the system is initialized the trap is set to a local - handler. - = 1 the trap is left untouched, this option should only be - used when the debugger is used ( MUD will set up it's - own handler ). - -COPYIO: sin/sout version selection switch - = 0 ( OR EMMOS = 0 ) - use the versions of sin and sout that copy to/from a - global buffer before initiating the I/O. - = 1 ( AND EMMOS = 1 ) - the MOS versions will be used - -NOCORL: CORAL process indicator - = 0 no processes are written in CORAL, or use CORAL libraries, - so the R0 stack is not checked for overflow each time a - process is suspended. The stack is still set up as - usual. The R6 stack is still checked. - = 1 There is a process using CORAL, so the R0 stack will - be used. Both stacks are checked for overflow each - time the process is suspended. - -CHKSIO: SIO buffer address checking on/off - =0 Each time SIO is called the IORB and the data addresses - are checked to ensure that they are in the global buffer - pool or the resident EMMOS code. An attempt to use a - local iorb or data area will cause a BUGHLT. - =1 No checks are performed. The use of a local IORB or data - area is likely to cause the system to crash. - - - - - - 19 - - 2.1.7iii Workspace Buffer Addresses - - The linker/loader and system initializer must agree on the postion -of the load map. It's address is given by MAPADD in the system -configuration file. The linker/loader is given this information in some -implementation dependant way. - - Note that in the RSX linker/loader system, the area specified by -MAPADD is also used by the loader for other workspace buffers during -load time, because of this MAPADD must specify an area of store, lying -between the end of the loader and the beginning of where EMMOS will be -loaded, of about - - 25 * max_number_of_processes ( decimal ) words long - - The loader ends around 032000, without removing redundant -libraries, so even for a max number of 30 processes ( 25 * 30 decimal is -about 1400 octal ), giving MAPADD = 32000 would mean the tables would -end way below 040000. This allows us to load a system with only 8K of -buffers. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 20 - - 2.2 The EMMOS Debuggger - MUD - __________________________________ - - MUD (Marvellous Universal Debugger) is split into two parts, RESMUD -and MUD proper. RESMUD is a small program written in MACRO-11 that is -permanently resident in virtual memory. It acts as the interface between -the operating system and the debugger, MUD, which is only brought into -virtual memory when it is needed. - - MUD is loaded by the loader in the same way as any other overlay. -Normally , however, overlays that are not $CREAPed do not have entries -in the load map, but the loader creates a special entry for the -debugger. RESMUD uses this entry to find out where MUD has been loaded, -and transfers control to it. For this reason RESMUD must be the first -module loaded, even before MOSPM, if the debugger is to be used. - - If RESMUD is not included in the system, then MUD will be ignored -if it is itself included, and the debugger cannot be used. EMMOS will -ignore MUD, unless a process is foolishly creaped with the name MUDSYS! - - The debugger is able to reference the whole of the 18 bit physical -store without the user knowingly changing the memory management -registers. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 21 - - 2.2.1 A Summary of MUD Commands - - The name of a command is one or two letters long, in upper or lower -case, as follows: - -Print Commands: - - pb print breakpoint locations - ( see breakpoint commands ) - pr print the value of a relocation register - ( see relocation commands ) - -Spy Commands: - - s spy on store - sr spy on the registers - sw spy on the memory management window - -Breakpoint Commands: - - b set a breakpoint - k kill a breakpoint - pb print breakpoint locations - ( see print commands ) - -Enter User Program Commands: - - g go to a specific address - gs go to a specific address single stepping - c continue from a breakpoint - cs continue from a breakpoint single stepping - -Relocation Commands: - - r set a relocation register - pr print the value of a relocation register - ( see print commands ) - -Exit Command - - x leaves MUD and halts - -Special Commands - - i change I/O channel - e evaluate an arithmetic expression - f find a memory location containing a given value - - - - - - - - - - - 22 - - 2.2.2 MUD Command Syntax - - The syntax is fairly simple and is quite free with spaces. A -command consists of the command name, one or two letters( upper or lower -case ), optionally followed by one or two operands. - - - - - - The two operands and the name may be seperated by commas or spaces. -The operands specify 18 bit addresses or numbers in octal. Their syntax -is: - - ::= - or= - - ::= * - - ::= <18 bit octal number> - or= null - - ::= . - or= null - - ::= - or= null - - ::= V - or= P - or= null - - If the octal digit is ommitted, it is assumed to be zero. If the -relocation dot is not present, then the operand is assumed to be an -absolute physical address. If the octal digit is missed out, then -relocation register one is assumed. Hence the following examples all -mean the same: - - s100.,150. - s100.1 150. - s 100. , 150.1 - s 100.1 150.1 - - - - - - - - - - - - - - - - 23 - - 2.2.3 The Relocation Mechanism - - There are seven relocation registers supplied ( r1..7 ) which can -be used to modify an address in a command. Values are put into these -registers by the 'r' command (qv). To specify that an address is to be -relocated it is followed by a dot and perhaps a digit. The digit is the -name of the relocation register to be used and is one by default. When -relocation is specified, the contents of the relocation register are -added to the address giving the actual address used. For example: - - r2,100 - sets relocation register 2 to 100 - s20.2 - spys on location 20+100=120 - r350 - sets relocation register 1 to 350 - s30. - spys on location 30+350=400 - - Many commands allow an asterisk to be used as an operand, this -usually means 'all' in some way, for example: - - k100 - kill the breakpoint at location 100 - k * - kill all breakpoints - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 24 - - 2.2.4 Addressing Modes - - An operand can refer to a virtual location by following the -relocation indicator by a 'V' ( the default mode is 'P', so normally -addresses are physical ). The corresponding physcial location will be -computed using the user's window. Page lengths are ignored. - - For example, if the base address of page 5 ( virtual addresses -120000-137777 ) is 120100 and relocation register 2 contains 120000, -then the following are equivalent: - - s120110 - physical address by default - s120110p - physical address specified - s120010v - pa = 010 + base(5) = 120110 - s110.2 - pa = 110 + 120000 = 120110 - s110.2p - . . . . physical specified - s10.2v - va = 10 + 120000 = 120010 - - pa = 010 + base(5) = 120110 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 25 - - 2.2.5 Command Specification - - -pb print breakpoint locations - - pb prints out a list of all the breakpoints - that are set, showing their location as an - absolute address and as an offset + - relocation. - -pr print relocation registers - - pr print out the value of relocation register 1 - pr 'd' print out the value of relocation register 'd' - pr * print out the value of all the relocation - registers. - -r set a relocation register - - r 'n' set relocation register 1 to 'n' - r 'd' 'n' set relocation register 'd' to 'n' - r * 'n' set all relocation registers to 'n' - r * note that 'n' is zero by default so that - r* will set all relocation registers to - zero. Initially all are zero anyway. - -x exit - - x leaves MUD and halts. This instruction would only - be used when running under a monitor operating system. - - - - - - - - - - - - - - - - - - - - - - - - - - - - 26 - -cont. - - -s spy on store - - s 'l' spy on the store starting at location 'l'. - The address is displayed followed by the - contents. The contents can be changed by - typing a number followed by , in - which case the new value will be displayed. - To advance to the next location just type - space, to retreat to the previous location - type tab. To finish the spy type . - Note that typing with no number - does not change the value in store. - - eg - mud> r100 - mud> s20. - 000120> 123456 23 - 000120> 000023 000122> 077177 - mud> - - this leaves location 122 unchanged, but puts - 23 into location 120. - - s 'l1' 'l2' - spys on locations 'l1' to 'l2', but does - not allow you to change any values. - Effectively this is just a display or dump - command. 'l1' should be less than or equal - to 'l2' or nothing will happen. To stop - the printing hit . This is handy if - you specify an enormous amount of printing - by mistake. - -sr spy on registers - - sr spys starting at register 0 - sr 'd' spys starting at register 'd' - This is similar to spy on store, but you can - only progress forward one register at a - time, by typing . After reaching - register 7, the program counter, you get to - look at the psw. The only way to spy on the - psw is to first spy on register 7. If you - space forward from the psw you get back to - register 0, to get out of the spy type - . - - - - - - - - - 27 - -cont. - - -sw spy on the window - - sw spy on the memory management registers. At present - you are restricted to looking at the registers for - the pages allocated to processes, which under EMMOS - should be the only ones to change. - The registers are automatically split into their - composite fields for displaying - and changing. To go forward to the next field, type - , to go to the next page, type and to - exit type . Numeric fields are changed by - typing a number followed by , other fields - are changed by typing one character. - the expansion direction, ed> is either up=u or down=d - the access control is either non resident = n - read only = r - or read/write = w - an access control of 'unused' indicated an error - in the memory management registers. The written into - bit cannot be examined or changed. - -b set a breakpoint - - b 'l' puts a breakpoint at location 'l'. Note - that you are not allowed to place a breakpoint - on top of another breakpoint. It - is possible to set breakpoints on top of emt - instructions, but, once they have been - reached, it is not possible to - continue or single step from them. - -k kill a breakpoint - - k 'l' kills the breakpoint at location 'l'. If - the program is halted at the breakpoint, it - is not possible to continue from there, use - 'go' instead. - k * kills all breakpoints. If the program had - halted at a breakpoint it will not be - possible to continue, use 'go' instead. - - - - - - - - - - - - - - - 28 - -cont. - - -g go to command - - g 'l' jumps to location 'l' and starts - executing. 'l' must be a virtual address, - mapped according to the window. The - registers are loaded as set. - gs 'l' as above, but single stepping. Only one - instruction is executed before control is - returned to MUD. When single stepping all - breakpoints are temporarily removed, so no - breakpoints as such will be hit. - -c continue command - - c continue from the breakpoint last reached or at the - next instruction if previously single stepping. - cs as for continue but single stepping - ( see 'gs' above ) - - Note that it is not possible to continue from a - breakpoint that has just been killed, but you can - use 'g' instead with 'l' as the contents of the program - counter, R7. - -i change I/O command - - This command has a special syntax, because it is - used to redirect the input and output of MUD from one - terminal to another. - - i change I/O to the console - iv 'n' change I/O to vdu 'n' - is sink the output. All output will be thrown away, - including echoing. Input remains on the same channel. - -f find a value - - f 'v' searches the physical memory, stating at - location zero, for a word containing the value - 'v'. Every so often a message will say - "still looking" if one has'nt been found - yet. To stop the search early hit - to break in. - f 'v' 'l' - As above but the search starts at 'l' - instead of zero. - - - - - - - - - 29 - -cont. - - -e evaluate an expression - - This command evaluates an 18 bit expession, using octal - or decimal numbers or the contents of a relocation register. There - is one accumulator, acc, which holds an 18 bit number. The operations - that can be performed on it are: - - ^ val Load the acc with 'val' - + val Add 'val' into the acc - - val Subtract 'val' from the acc - P Convert the least significant 16 bits of acc into an - 18 bit virtual address - V Treat the value in acc as an 18 bit physical address and - convert it into a 16 bit virtual address. - - The values are given by: - - # octal number - an 18 bit octal number, the # can be omitted - $ decimal number- a 15 bit decimal number, ie positive only - R num - the 18 bit value of relocation register 'num', - num is 1 by default - - Several commands can appear on one line, seperated by commas - or spaces if it is necessary to avoid ambiguity. The value in acc is - displayed when the end of the line is reached. - - The value in acc is zero the first time the 'e' command is - used. Subsequently the value is that left in it after the last use - of 'e'. - - - - - - - - - - - - - - - - - - - - - - - - - - 30 - - 2.2.6 Using MUD - - If RESMUD is linked in before EMMPM and MUD is present as an -overlay, then the debugger will be entered once the system has been -loaded. If not the debugger cannot be used. - - When control is passed from MUD to the user program, by using the -go or continue commands, the system error traps are set so that any -error will be handled by MUD. This remains so until the user program -changes them. Note that while MUD is running the traps are set to -different handlers which detect whether the debugger itself is in error. -If so check that RESMUD has been assembled with the current page -configuration. - - We can return to the debugger at any time via the console emulator. -Find the address of the global symbol $MUDIN, it is part of RESMUD and -so is permanently resident, it's virtual and physical address is -therefore the same. Use the console emulator to jump to this location -and MUD will restart. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 31 - - 2.3 Linker and Loader Functions - ___________________________________ - - In general a system's linker and loader perform two logically -distinct functions, though in practice the border between these -functions may be less clear. In a virtual memory system it is usually -the operating system that allocates physical memory, but in a monitor -system this may be done by the linker. There are a number of functions -that the linker and loader are required to perform on an EMMOS system. -Some of these functions require a degree of intelligence that is not -usually found in either linkers or loaders. These intelligent functions -may be incorporated in either the linker or the loader, or distributed -between them. When presenting these functions we will describe them all -as being part of the linker, for ease of understanding. The loader then, -just copies an output image file from the linker, word for word into the -128K physical memory. However, linkers are complex pieces of system -software, that are difficult to write or modify. Therefore, in practice, -one usually takes the best of the functions that the linker has to offer -and writes a loader program which incorporates those remaining.The -functions that the linker/loader must perform are listed below: - - 1. Resolve all global references and relocate the - object code. - 2. Allocate physical memory for the system, buffers, - process code and stacks. This takes into account - the page configuration scheme. - 3. Construct a Load Map which specifies where processes - are in physical memory and where the ends of their - stacks are in virtual memory. This is passed on to the - loaded system. - - 2.3.1 The Linker - - We can consider the input to the linker to be a set of Relocatable -Binary ( RLB ) modules, with some system of reference resolving that -need not concern us. A process' body is made up of one or more RLB -modules, with sharing allowed. EMMOS is similarly composed. To specify -how the system and process bodies are constructed we supply the linker -with a Link Control File, which specifies which modules make up the -system and process bodies, and the order in which they are to be linked -to form the body. We also need a way of uniquely identifying a process -body, so that when we create a process we can specify which code body to -use. - - Here we give an example of what this file could look like. The line -headed 'SYSTEM' would define the construction of the resident operating -system part of EMMOS and lines headed 'BODY' would each describe a -process body, it's name given in brackets: - - SYSTEM: EMMPM-EMMTTY-..........-EMMMEM; - BODY(X25): X25CODE; - BODY(PRINTR): IOCODE-IOLIB; - END: - - - - - 32 - -cont. - - The EMMOS linker must also allocate physical memory for the process -code bodies and stacks. In order to do this it needs to know which code -bodies will be incarnated as which processes and how much stack to give -those processes.T This information could go in the Link Control File. As -an example of how it could be represented, we consider the example body -description given above, and create some processes with those bodies: - - PROC(X25-A): "X25" ,SYSTEM=200 - PROC(X25-B): "X25" ,SYSTEM=200 - PROC(PRINTR): "PRINTR",SYSTEM=100,CORAL=400 - END: - - Here we describe three processes, called X25-A, X25-B and PRINTR. -The first two are both incarnations of the body "X25" and both have 200 -words for their system stack and no CORAL stack. It's not necessary for -them to have the same size stacks, though some implementations could -impose this as a restriction with no great hardship. The third process, -"PRINTR", is the one and only incarnation of the body "PRINTR". It has -100 words for it's system stack and 400 words for it's CORAL stack. - - The linker still requires information on the page configuration -before it can allocate physical memory. This information is not strictly -necessary. We could allocate the code and stacks for each process as one -lump of physical store and if it is too large for the configuration, -then the system will fail at run time. By knowing the page allocation -scheme however, the linker can be quite subtle and avoid unnecessary -duplication of code and could even arrange for the code and stacks to be -on separate pages if the sizes are right. ( For more details see 3.2.7/8 -). To complete our example we shall give an idea of how the -configuration could be specified in the Link Control File: - - PROCS 5..6, BUFFERS 0..2, EMMOS 3..4; - - Note that page 7 must always be allocated for the I/O page and that -the section using page 0 will lose the first 1000 octal bytes for the -vector area. - - In our example, if the body "X25" was less than 4K words then it -would fit on one memory page. Since the stacks for "X25-A" and "X25-B" -are quite small, they too fit on one page. The linker should then only -put one copy of the body into physical memory and arrange the mapping of -both the processes such that page 5 maps onto it. Page 6 would map onto -the processes stack areas, which would of course be different physical -memory locations. - - Once the linker has finished allocating physical memory it needs to -be able to tell the EMMOS initializer what the memory management window -for each process is and where it's stacks are. It does this by including -a table with this information in, in the Load Image File. This table -must be loaded at a place in memory where the initializer can find it, -say somewhere in the global buffer pool. - - - - - 33 - - 2.3.2 The Loader - - The Loader takes the Load Image file as input. This file is -produced by the linker and contains absolute binary data with an -indication of where in physical memory to load it. The loader need not -know anything about the processes or the system it is loading. However -there needs to be some way of telling where the system's entry point is. -Note that since the entry point will be a virtual address it is -necessary to include an initial memory mapping as part of it's -definition. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 34 - - - - - - - - - - - - - - - PART THREE - __________ - - HOST MACHINE ASPECTS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 35 - - 3.1 Linking Using the RSX Task Builder - ___________________________________________ - - The RSX task builder( TKB ) is used as the linker. It is because -not all the functions we require are supplied by this linker, that our -loader is more complicated then usual. The Task Builder is used to -perform the relocating and global reference resolving parts of the -required actions. The physical memory allocation, process incarnation -and the production of the Load Map are all actions that are performed by -our loader. This does mean that the loader is complicated, but less -overall effort is required to write it than to completely re-write the -linker. - - 3.1.1 Use of the Task Builder - - The task builder is able to handle overlays in several ways. It can -produce disk resident overlays, in which "paged-out" segments reside on -disk, or memory resident overlays, in which all segments reside in -physical memory but not all are "paged-in" into virtual memory. TKB will -also allow your task to be some combination of the two. Overlays are -paged in and out by special calls to RSX which TKB automatically inserts -into the object code. It is possible to instruct TKB to leave out this -code, allowing the user to handle his own paging. Overlays are -characterized by being relocated at the same place in memory. it is this -feature that EMMOS exploits to get all the process' bodies relocated at -the same base address. We do however require that the linker does not -put any auto loading code in for the overlays. - - Amongst the various tables hidden in the task image, is the window -description table, this does not appear for disk resident overlays, so -we chose to use memory resident overlays throughout. Also, when using -memory resident overlays, each layer of the overlay tree is relocated on -a page boundary, which is another requirement for EMMOS. There is an -option, when running a task under RSX, of allowing it to be swapped in -and out of physical memory ( checkpointed ). A checkpointable task has a -large space in it's task image file, so as EMMOS has no need of it, the -task must be built not checkpointable ( /-CP switch ). We will assume -then that the task is not checkpointable, with manually loaded ( though -we shall not include the calls to do it ) memory resident overlays. - - - - - - - - - - - - - - - - - - - 36 - - The first snag is met when we try to get information about the size -of the overlays and their position within the task image. The tables -that contain this information follow on directly after the code of the -root segment, but there is no indication as to how long the root is, -except in these tables. Normally their position is known because the -overlay loading mechanism references them, but we've done away with -this. Ideally the root segment would be the EMMOS system, but there is -no clean way of finding out how long it is, so we chose to not allocate -page 0 to the system. Instead the root segment does not contain any -code, only some tables of known length used by the loader. -Unfortunately, because TKB will relocate the next overlay layer on page -1, we have used up 4K of virtual space just for the interrupt vectors -etc. To avoid this we allocate the global buffer pool space to pages -0,1.... because no code is loaded for it. The problem remains to -persuade TKB to relocate EMMOS at the end of the buffers. We could do -this by extending the root segment to occupy all these pages and then -just ignore it all when loading, but this would mean the task image file -would be enormous. Instead we use dummy overlay layers. Although each -layer contains only one word, it is sufficient to persuade TKB to -relocate the next layer at the next page boundary. - - It is because of such devious means of getting the overlay -relocated to the desired base, that all the calculations performed by -TKB to produce physical memory load addresses are useless. Instead of -wasting large areas of physical memory the loader does the calculations -again. This also means that we can handle the process' stacks nicely. - - Finally there is the problem of uniquely identifying each overlay, -so a process can specify which is to be it's code body. TKB gives each -overlay a name, which is the first six characters of the first object -file's name in the overlay, however this may not be unique. We have then -two options; use the name given by TKB or use a position numbering -scheme. Despite it's drawbacks of non-uniqueness, the former was chosen. -Names are easier to understand then numbers, and the possible inclusion -of the debugger may well upset the numbering, though it is a special -case. The use of six character names for the overlays led us to adopt -the field of the $CREAP macro to specify which code body to use. -Other schemes may require another field in the macro call. - - - - - - - - - - - - - - - - - - - - 37 - - 3.1.2 The Format of the Task Image File - - The information required to complete the Overlay Description Table -is scattered across the first few blocks of the task image file. The -format is dependant on various switches and the form of the ODL file. -There follows a brief description of the parts relevant to the loader, -assuming it was built in the required manner. - - -BLOCK 0: - - Contains no useful information, except perhaps the creation - date of the task image. - -BLOCK 1: - - No useful information. - -BLOCK 2: - - This is the start of the task header. The word at byte - offset 72 octal is the "header guard word pointer". This - contains the byte offset, within the next block, of the "guard - word", this immediatly preceeds the code of the root segment and - is how the loader finds the root. - -BLOCK 3: - - This contains the start of the root segment. The first word - of the root follows the "guard word". The root segment is used - to transmit configuration details and the process description - table to the loader. Immediatly following these tables is 29 - words of rubbish ( code used to load the overlays under RSX ), - the segment descriptor table, one word of rubbish and then the - window descriptor table. These two tables are used by RSX to - define the positions of the memory resident overlays in physical - memory, EMMOS uses them to construct the Overlay Description - Table, as follows: - - segment descriptor table - - each entry is 9 words long, there is one entry for each overlay and - the root - word offset 1 the virtual base address - word offset 6&7 the segment's name in radix 50 format. - - window descriptor table - - each entry is 10 words long, there is one entry for each overlay - word offset 2 overlay's size in memory blocks (64bytes) - - -NEXT BLOCK BOUNDARY: - - The code of the first overlay begins at the first word of - the next disk block. Subsequent overlays start on block - boundaries following on in order. - - - 38 - - 3.1.3 The Overlay Description Language - - The Task Builder takes a series of object files and links them -together to produce a Task Image. This is the exact image of what is to -be loaded at run time ( under RSX ). EMMOS exploits the memory resident -overlay capabilities of the Task Builder in order to relocate the system -kernel and processes' bodies in the desired place. The arrangement of -the overlays is described in the Overlay Description Language ( ODL ) -file, the structure of which is as follows: - - module1 - module2 - ............ - moduleN - - specifies that the N modules are to be concatenated in the given -order - - ( module1, module2, ............ , moduleN ) - - specifies that the N modules will overlay each other in virtual -memory. The modules not paged-in will be resident on disk or, if they -are memory resident overlays ( indicated by a ! before the open bracket -), in physical memory. - - These concatenation and overlay operations are combined to describe -the overlay tree structure, eg: - - A - B - !( C - D - !( E , F ) , G - !( H - !( I , J ) , K ) , L ) -this specifies the following tree - E F I J - |___| |___| - D H K - | |_____| - C G L - |___________|__________| - B - | - A - - At any one time during runtime, the memory will contain those -modules lying on one of the paths from the root to a leaf. - - For ease of writing, it is possible to give parts of the overlay -tree a name, using the factor command ( .FCTR ). so a complete ODL file -for the above example could be: - - .ROOT A - B - !( OV1 , OV2 , L ) - OV1: .FCTR C - D - OV11 - OV2: .FCTR G - !( OV22 , K ) - OV11: .FCTR !( E , F ) - OV22: .FCTR H - !( I , J ) - .END - - - - - - - - 39 - - 3.1.4 The EMMOS ODL File - - - .ROOT ROOT - !( OV1 - !( OV2 - !( EMMOS - !( PROCS ) ) ) ) - EMMOS: .FCTR EMMPM - FIRST - ...................... - PROCS: .FCTR BODY1 , BODY2 , ..............., BODYn - - The factor EMMOS describes all the system modules, which are all -concatenated. The factor PROCS describes each of the different code -bodies for the processes. Normally only one code body is required at a -time so the modules overlay each other, but it is possible to -concatenate processes which are to access common routines. - - For example, suppose we have four code bodies BODY1, ... , BODY4 -which are each $CREAPed only once to give processes PROC1, ... , PROC4. -If these processes are completely independant then we write: - - PROCS: .FCTR BODY1 , BODY2 , BODY3 , BODY4 - - Suppose we have a library module, LIB, that is shared by PROC1 and -PROC2, then we could write: - - PROCS: .FCTR BODY1 - LIB , BODY2 - LIB , BODY3 , BODY4 - - This would cause two copies of LIB to be in physical memory. We -could however write: - - PROCS: .FCTR BODY1 - BODY2 - LIB , BODY3 , BODY4 - - which would cause one copy of LIB to be put in the task image, but -PROC1 and PROC2 would now be paged in and out of virtual memory -together, which may not be desirable. - - Note that if the total size of BODY1, BODY2, LIB and the stacks for -PROC1 and PROC2 exceeds the space allocated to processes, then the -loader will duplicate some or all of the code in an attempt to fit it -in. It may be then, that more physical memory would be used in trying to -share LIB than if we specified duplication in the first place. - - - - - - - - - - - - - - - - - - - - 40 - -cont. - - The modules ROOT, OV1, OV2, ..... OVn are required by the system to -ensure that the operating system and the process bodies are relocated in -the correct place. ROOT also transmits information from the $CREAP macro -calls to the loader. The Task Builder relocates the first "layer" of the -overlay tree ( the root ) at location zero. Successsive layers are -relocated at the start of the next page boundary ( a page is 4K words -long ). So, because each of these modules is quite small, ROOT is -relocated at 0, OV1 at 20000, OV2 at 40000 etc. If we require the -operating system to be relocated at 60000, we put it in the next layer ( -as in the above example ). Suppose we want EMMOS to start on page 4 ( -location 100000 ), and it is over one page long so the processes will be -on page 6 ( location 140000 ), we would need to pack out pages 0..3 thus - -.ROOT ROOT - !( OV1 - !( OV2 - !( OV3 - !( EMMOS - !( PROCS ) ) ) ) ) - - For technical reasons it was not possible to have the operating -system at the low numbered end of memory, so that is where the buffers -have been put. Dummy overlays are used to pad out the buffer area -because they cause the task image to be much smaller than if we had a -.BLKW . The latter would cause it to contain about 12K of zeroes! - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 41 - - 3.1.5 Installation of the Debugger - - The EMMOS debugger, MUD, is in two parts, a resident part RESMUD -and an overlay part MUD. To be able to use the debugger both parts must -be included in the ODL file. RESMUD must appear before EMMOS but MUD can -be put anywhere amongst the PROCS, eg: - -.ROOT ROOT - !( OV1 - !( OV2 - !( RESMUD - EMMOS - !( PROCS , MUD ) ) ) ) - - 3.1.6 Creating the Task Image File - - Once the form of the ODL file has been worked out the task builder -is run under RSX-11 by: - - TKB EMMOS , EMMOS /NOSP = EMMOS /MP - - The first output file is for the Task Image ( .TSK ) file, the -second is the task map ( .MAP ) file, which is spooled by default. The -MP switch specifies that the input file is an .ODL file. - - The .MAP shows the structure of the task image and gives the -virtual addresses of the modules, global symbols and .PSECTs. This link -map should be used in conjunction with the loader's load map, which -specifies physical addresses of code and stacks, when debugging. The -.TSK file now needs to be copied to the RT-11 format disk which contains -the loader using FLX. The system is now ready for loading and running. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 42 - - 3.2 The EMMOS RSX Task Image Loader - _______________________________________ - - This section describes the operation of the loader for the Extended -Memory MOS system. The loader itself is loaded from a floppy disk in -RT-11 format, using a fairly standard bootstrap loader. The EMMOS loader -then loads the system from an RSX-11 Task Builder Image file ( stored in -RT-11 format ) on the same floppy disk. Control is then passed to the -operating system or to the EMMOS debugger, MUD, if it is loaded. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 43 - - 3.2.1 Inputs and Outputs - - The input to the loader is an RSX-11 Task Builder Image file stored -on a floppy disk in RT-11 format. This file contains: - - 1. The Configuration Table ( see 3.2.3 ) - 2. The Overlay Description Table ( see 3.2.4 ) - 3. The Process Description Table ( see 3.2.5 ) - 4. Absolute binary code for the operating system - and processes. - - The loader produces a table, the load map, which it places in -memory and displays on the console, that describes the positioning of -all the processes in physical memory. - - The address of the entry point to the loaded system must be stored -in the first word of the system. This is set by MOSPM or, if the -debugger is included, RESMUD. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 44 - - 3.2.2 The Console Load Map - - This is a human readable form of the LOAD MAP that is supplied to -the loaded system. There is one line for each process describing the -position of it's code and stacks. - - The first column gives the process id ( pid ), the next two the -limits of the code and the fourth the limits of the two stacks combined. - - If none of the pages containing code, contain any stack then the -third column will read "unshared", that is, there is no page that -contains both stack and code. However, if there is only one page for -processes then this must contain all the code and all the stack, in this -case the third column will read "page is shared". - - If the code is longer than one page, and it is necessary to have a -page containing both stack and code, then the third column will be the -limits of the piece of code that is sharing with the stacks. This may be -a copied piece of code. - - The limits are given in terms of physical memory blocks, so a limit -of - - 001200 - 001250 - - for the code would mean that the code starts at physical memory -location 120000 and ends somewhere between 125000 and 125077. - - If the task image does not contain an overlay for a process' body, -then the load map entry for that process will be of the form: - - pid - ABCDEF has'nt got a body - - If one or more processes lack bodies then the load will be -abandoned, once the load map has been printed, with the message: - - "process requires body" (see ERRORS) - - Note: the printing of the Load Map can be abandoned by hitting -. - - - - - - - - - - - - - - - - - - 45 - - 3.2.3 The Configuration Table - - This table resides in the root segment of the task image, -immediately before the Process Description Table. It is used to tell the -loader the page allocation scheme and the maximum number of processes. -The information is passed to it at run time so that the loader need not -be re-compiled for every change in the configuration. - - The format is: - - VAR config_table :RECORD - max_number_of_processes, - load_map_address, - first_mos_page, last_mos_page, - first_process_page, last_process_page - : INTEGER - END; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 46 - - 3.2.4 The Overlay Description Table - - This table is constructed by the loader from the task image's -window and segment descriptor tables, that follow the root segment. Each -overlay named by the task image ( except the dummy ones and MOS ) has an -entry of the form: - - TYPE overlay_description = RECORD - name : ascii; - size : mem_blocks; - disk_address : INTEGER - END; - - TYPE ascii = ARRAY[ 1:6 ] OF CHAR; - - TYPE mem_blocks = 0..number_of_process_pages * #200 -1; - -The table is given by - - odt : ARRAY[ 1..number_of_overlays ] OF overlay_description; - - -odt[ ov ].size contains the size of the overlay segment ( that is of -the code ) in 32 word memory blocks. -odt[ ov ].name is the overlay's name, taken from the overlay description -language file at build time. -odt[ ov ].disk_address is the number of the disk block where the overlay starts. - - Note that the disk address field is not used in the current version -of the loader. It remains as a left-over from a version that would not -support down line loading. - - - - - - - - - - - - - - - - - - - - - - - - - - - 47 - - 3.2.5 The Process Description Table - - This table resides in the root segment of the task image, following -the Configuration Table. It is produced by the $CREAPs used to create -the processes. It is used to tell the loader which processes are -required, which overlay will supply the code and the size of their -stacks. There is one entry in the table per process, each of the form: - - TYPE process_description = RECORD - pid : INTEGER; - name : ascii; - r0_size, r6_size : mem_blocks - END; - - TYPE ascii = ARRAY [ 1..6 ] OF CHAR; - - TYPE mem_blocks = 0..number_of_process_pages * #200 - 1; - -The table is given by - - VAR pdt : ARRAY [ 1..number_of_processes ] OF process_description; - - -pdt[ i ] is the entry for the ith process, -so pdt[ i ].pid = i for all i IN 1..number_of_processes. -The name field contains the six character name of the overlay which is the -code for the process. This is taken from the second parameter of the $CREAP -macro call. -pdt[ i ].r0_size and pdt[ i ].r6_size contain the required sizes, in 32 -word memory blocks, of the stacks. -Note that the macro converts the sizes from words to memory blocks before -placing the values in the table, using - size_in_blocks := ceiling( size_in_words / 32 ). - - - - - - - - - - - - - - - - - - - - - - - - - 48 - - 3.2.6 The Load Map - - The load map describes the loaded system to the initializer. It is -placed in memory by the loader at an agreed address before it gives -control to the system. There is one entry in the table for each process, -and a special one for the debugger if it is included in the task image. -The form of a table entry is: - - TYPE load_description = RECORD - pid, - r0_low, r0_hi, - r6_low, r6_hi : INTEGER; - window : ARRAY - [ first_page..last_page ] - OF window_type - END; - - TYPE window_type = RECORD par, pdr : INTEGER END; - -The map is given by: - - map : ARRAY [ 1..number_of_processes + 1 ] OF load_description - - - map[i] is the entry for the ith process, so map[i].pid = i, for all -i IN 1..number_of_processes. map[i].pid = -1 for the debugger entry. Any -unused entries have pid = 0. - - r0_low and r0_hi contain the virtual byte addresses of the lowest -and highest numbered words in the R0 ( CORAL ) stack for the process. -Similarly for r6_low, r6_hi. - - window describes the mapping from virtual memory onto this process. -There are two words for each page allocated to a process, the page -address register and the page descriptor register. - - - - - - - - - - - - - - - - - - - - - - - 49 - - 3.2.7 The Physical Memory Allocation Algorithm - - The loader should attempt to arrange the loading of the Load Image -into physical memory in a way that will reduce the amount of physical -memory required. The total amount of virtual memory allocated to a -process for it's code body and stacks will be fixed ( = num_pp memory -pages ), but for each process the sizes of it's code and the total size -of it's two stacks will vary. - - If at all possible the loader will arrange for the stacks and the -code to be on different pages in virtual memory, allowing the process to -put read-only protection on it's code. This is only possible if: - - pages( code_size ) + pages( stack_size ) <= num_pp - - where pages( i ) = the size i rounded up into a whole number of -memory pages. Of course if pages( code_size + stack_size ) > num_pp then -not enough virtual memory is availiable for this process. However if we -have: - - pages( code_size + stack_size ) = num_pp - - then some of the code and some of the stack space must share one of -the pages. The shared page cannot then have read-only protection placed -on it. If a process has already been created with this code body then -physical memory following the code body will have been allocated as a -stack. We cannot then have the stack for the next process following -directly on from the code, so it may be necessary to copy part of the -code body and arrange that the memory mapping maps the two parts of the -code onto consecutive virtual memory locations. - - - - - - - - - - - - - - - - - - - - - - - - - - - - 50 - -E.G. - - Suppose we have two pages for a process, num_pp = 2, and we have a -code body which is $CREAPed twice, as PROC1 with stacks S1 and as PROC2 -with stacks S2. If the code body is larger than one page then the second -page must be shared between the stacks and some of the code. - - First the loader copies the code body into physical memory, then it -allocates the stacks for PROC1, the window for PROC1 will be -(a..b,b..d). - - --a---------------b----c------d----f--------------- - : code size : S1 : ....physical memory - --------------------------------------------------- - |<- 4K words -->|<-- 4K words -->| - - Now for PROC2. If pages( code size + S1 + S2 ) <= num_pp, then the -loader can allocate the stack following on directly from S1, thus the -window for PROC2 will be (a..b,b..e). - - ---a--------------b----c------d--e-f--------------- - : code size : S1 :S2: - --------------------------------------------------- - - Note that PROC2's window allows it to ( illegally ) access the -stack of S1. If however pages( code size + S1 + S2 ) > num_pp then the -loader must take a copy of the piece of code that overlaps the second -page, (copy from b..c to d..g), thus the window for PROC2 will be ( -a..b,d..h ), and the copy will be mapped into the same virtual locations -as the original. - - ---a--------------b----c------d--e-fg--h------------ - : code size : S1 :copy :S2: - ---------------------------------------------------- - - Now PROC1's stack is not in the window of PROC2 so neither process -can use the other's stack. - - The loader will try and fit as many stacks as possible into the -page without copying a piece of code, but it wont try to optimize the -ordering. If the code size is smaller than a page and the stacks are -bigger then the whole of the code will be copied. - - - - - - - - - - - - - - - - 51 - - 3.2.8 The Logical Operation of the Loader - - - get process description table from task image; - construct overlay description table; - load EMMOS; - FOR each overlay - DO - load the code; - FOR each process - DO - IF name of process = name of overlay - THEN - IF size of code in pages + size of stacks in pages - <= number of pages for processes - THEN - code and stacks are on completely different pages; - set up the window for the process; - leave room for the stacks in physical memory - - ELSF (size of code + stacks) in pages - = number of pages for processes - THEN - one page contains stack and code; - IF stack will fit on the end of the last - incarnation's window - THEN - leave room for the stacks after last stack; - set up the process' window - ELSE - make a copy of the piece of code that must - share a page with some stack; - leave room for the stacks after the copied code; - set up the window for the process - FI - ELSE - process is too large - FI - FI - OD - OD - - - - - - - - - - - - - - - - - 52 - - 3.2.9 Error Messages - - i. System Traps - - These indicate something has gone drastically wrong with - the loader, hopefully they will only occur after modifications - have been made and not thoroughly tested. They may also occur if - the loaded system goes wrong before it has set the trap - locations to its own trap handlers. - -cpu error: pc = nnnnnn ps = mmmmmm -reserved instruction: pc = nnnnnn ps = mmmmmm - - These messages occur when a trap to #004 and #010 occur. - The contents of the program counter and processor staus word, as - placed on the stack by the trap, are displayed. - - -memory management trap 250 -nnnnnn at mmmmmm - - This message occurs when something goes wrong with the - memory management. The contents of the two status registers are - displayed. nnnnnn = SR0 which is further expanded in full - following the error message , and mmmmmm = SR2, the virtual - address associated with the error. Following the written - expansion of SR0, the contents of the kernel mode memory - management registers are displayed. - - -power failed, start again - - the power to the processor failed, re-boot the system. NB - this has not been tested!!!! - - - - - - - - - - - - - - - - - - - - - - - - 53 - - ii. Loader Errors and Messages - - -test: eof - - The end of the task builder image file has been reached prematurely. - -test: get has failed - - An error occurred in the transfer of data from the floppy disk. Try - again. - -test: rewind - - The loader requires the input task image file to be rewound. This - is only an error if the file is not on a rewindable device, eg down - line loading. It is caused by an error in the loader. - -cant find 'task file name' - - The file is not on the floppy disk, check the file name specified - in the loader is the same as you copied to the disk, and the disk - is in the correct drive ( drive 0 ). Remember that the name specified - in the loader must include any blanks necessary to pack the name to - 10 chars, in the form ABCDEF.EXT - -too short! - - The file is less than 4 blocks long, so cannot possibly be the - correct task image. - -first dummy overlay not found - - the dummy overlay that is used to pack out the buffer area is not - present in the task image. Check the file is a task image and that - the ODL file correctly specifies the dummy overlays. - -mos is larger than nn pages long - - the resident part of EMMOS is too large, more than the nn pages - specified in the configuration file. Make sure that the processes - have been put in as overlays and not in the resident part. - -window and segment descriptors of unequal size - - The loader has lost it's place in the task image, or the ODL file - does not specify the overlays in the correct format. - -ABCDEF is too large - - The named overlay is too large for the configuration, even without - stacks. Check that the overlay names are seperated by commas in the ODL - file. - - - - - 54 - - Errors and Messages - cont. - - - -process nn too large - - The process with pid = nn has stack and code too large for the - configuration. Check that stack sizes have been given in words in - the $CREAP macro call. - -ABCDEF has'nt been made a process - - The named overlay does'nt appear in any of the $CREAPs. The overlay - is loaded but otherwise ignored, this is not a fatal error. - -process nn: code duplicated - - The loader was forced to make a copy of some of the process' code - because the code had already been $CREAPed and the stack and code - needs to share a page. This is not an error. - -debugger has been loaded nnnnnn - mmmmmm - - The overlay part of the debugger has been loaded, starting at - memory block nnnnnn and finishing in block mmmmmm. This is not an - error. - -ABCDEF has incorrect base address = nnnnnn - - The named overlay has been relocated at nnnnnn by the Task Builder. - This does not agree with the virtual page allocation scheme given. - Check that the ODL file is correct, that the right number of dummy - packing overlays are present and that all overlays are not too - large for the configuration. - -debugger is too large - - The debugger takes up more space than is allowed for processes. it - is still loaded into physical memory, but only those pages normally - allowed for processes will be paged into virtual memory, this will - almost certainly cause MUD to crash. Use the console emulator to - enter the system instead of MUD. Alternatively, remove the debugger - or allow more pages for processes. This is not a fatal error. - - - - - - - - - - - - - - - 55 - - Errors and Messages - cont. - - - - -the debugger cannot be used - - Either the resident part or the overlay part of the debugger are - missing and hence the debugger cannot be used. If the debugger is - needed then include the missing name in the ODL file. This is not a - fatal error. - -non-unique overlay ABCDEF - - The ODL file describes a configuration such that two overlays have - the same name. The loader requires all overlays to have unique - names so it can unambiguously select the code body for a process. - Try re-ordering the overlay description in the ODL file. If the - effending overlay is a common library, put it's name after the code - body, otherwise the file may need to be copied to one of a - different name. - -process requires body - - at least one process has specified a body name that does not - appear in the Task Image as an overlay. An indication of which - process is causing the problem can be found from the Console Load - Map (qv). Make sure the name specified in the $CREAP macro call - is that of one of the object files, check in the task map for - the names actually used. If the debugger is included, make sure - it, and all other overlays, are separated by commas in the ODL - file. - - - - - - - - - - - - - - - - - - - - - - - - - - 56 - - 3.2.10 Tracing - - The loader and it's libraries are liberally scattered with code to -produce vast amounts of output, that describes in detail what is being -processed. These pieces of code are normally excluded by surrounding -them in comment brackets. The start of a piece of trace code is -indicated by {trace and the end is followed by ecart}. To include the -trace statements change {trace to {trace} and ecart} to {ecart}. This -will make it easy to restore them later. - - The output produced should be self explanatory, except for -PROCEDURE waiting; which displays the message 'waiting' and waits until -any character is typed in at the keyboard. All this does is slow down -the output, since and are not implemented. - - 3.2.11 Changing The System - - The loader need not be re-compiled every time the system -configuration is changed. This is because the configuration information -is placed in the root segment of the task image file at link time. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 57 - - 3.3 Process Creation - ________________________ - - Processes are created at compile time by calling the $CREAP macro -in the system configuration module. The $CREAP macro defines the -attributes of a process; it's entry point, the name of the overlay that -contains it's code body, the devices associated with it and the size of -the CORAL and System stacks. - - Note, the name given is the name of the overlay in which the code ( -and therefore the entry point ) is found. This name is that of the first -module given in the overlay subtree. E.g. If we have a library module -LIB and a process body module BODY1, then in the ODL file we could -write: - - PROCS: .FCTR BODY1 - LIB , ......... -in which case the $CREAP call would be - $CREAP $ENTRY , , ............ - -or alternatively - PROCS .FCTR LIB - BODY1 , ......... -in which case the $CREAP call would need to be - $CREAP $ENTRY , , ........... - - For this reason all the overlay names must be unique, othewise the -loader would not know which code body to give a process. Now suppose we -have another process body module, BODY2, which also uses LIB. We could -not write: - - PROCS: .FCTR LIB - BODY1 , LIB - BODY2 , ......... -since both overlays would be called LIB. Instead write either - - PROCS: .FCTR BODY1 - LIB , BODY2 - LIB , ......... -with - $CREAP $ENT1 , , ...... - $CREAP $ENT2 , , ...... - -or - PROCS: .FCTR LIB - BODY1 - BODY2 , ...... -with - $CREAP $ENT1 , , ...... - $CREAP $ENT2 , , ...... -or some other combination. - - Remember that the name must be of exactly six characters. Pad out -with blanks if necessary. - - The stack sizes are specified using named parameters, these are the -only extra parameters of $CREAP due to the EMMOS extensions. The sizes -are given in words, but are automatically rounded up into memory blocks -( 32 words ). A zero length R0 stack is acceptable for a non-CORAL -process, but the R6 stack should always have some space. If the size is -not specified it is set to 32 words by default. Note the stack sizes are -given seperately for each process, not for each code body, so two -incarnations of the same body could have different stack sizes, though -it would be a bit odd. - - 58 - - - - - - - - - - - - - - - APPENDICES - __________ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 59 - - APPENDIX A Pitfalls. - - - - -A.1 Summary - - Processes must ensure that all communication is performed via the -global buffer pool. - - Shared overlaid library procedures must not use the CORAL global -vector for their entry. - - CORAL code bodies incarnated more than once should not preset -variables. - - All local variables must be taken from the stack, in code bodies -incarnated more than once. - - All IORBs and their data buffers must be located in permanently -resident memory (ref 2.1.4). - - A.2.1 Use of local space for inter-process communication - - Obviously processes with different code bodies cannot use their -local static space ( ie not the stack ) for communication, but at first -sight it would appear that different incarnations of the same body could -communicate using variables in the body. Although sometimes possible, -this is extremely configuration ( and even loader ) dependant. The -problem arises when there is not enough room to fit all the code body ( -which includes local static data ) onto process pages of it's own. The -loader may need to take a copy of some of the code, which may include -local data. In this case there would be more than one copy of the local -data, so if two processes use it for communicating, they would actually -be using two different locations. - - Therefore, processes must ensure that all communication is -performed via the global buffer pool. - - - - - - - - - - - - - - - - - - - - 60 - -A.2.2 Use of shared, overlaid CORAL libraries. - - All CORAL procedures, common variables etc., must use unique -indices to the global vector, to define themselves ( unless some trick -is being performed ). This remains true even if the procedure is defined -in an overlay, because there is only one global vector. If a library -module containing some CORAL procedures only appears in one overlay, -then the global vector will contain the virtual addresses of the entry -points. However, the procedures will only be in virtual memory when a -process which is an incarnation of that overlay is running, so only -these processes can use the procedures. - - This is ok, the problem arises when two or more overlays use the -library module. If the overlays are such that when relocated, the entry -points of the procedures are at different virtual locations, the global -vector mechanism wont work. The entry point recorded will probably be -that for the last overlay processes by the linker, so the first overlay -will crash when it tries to call the procedure. - - To prevent this all copies of the library module must be relocated -at the same virtual locations, either by placing it on permanently -resident EMMOS pages or putting it first in the overlay, though this may -cause problems with the overlay naming convention. A more satisfactory -solution in many ways, would be to not use the global vector for the -procedure entry. The offending procedures would use genuine names for -their entry points, not vector indices. This is achieved in CORAL by -using a large index, outside the bounds of the global vector. - -A.2.3 Use of static variables - - Any data space allocated in a code body, which is incarnated more -than once, will be used by more than one incarnation, unless the loader -causes a copy to be made. The processes cannot then use this space for -private local variables, because another may use the same physical -memory for it's private local variables. Neither can it be used for -shared variables, because the loader may have copied them ( see 'use of -local space for inter process communication' ). Constants are ok since -all incarnations will require them to remain constant. Beware of string -constants though, although they really should remain constant, some -unhealthy procedures actually change some parts of them. Such practices -should be banned. - - In particular, note that the local variables can be created in -devious ways, in CORAL a preset variable becomes an OWN variable by -being allocated not on the stack, but in the local static space. -Presetting and variables in the outermost block must be avoided for -multi-incarnate processes. - -Always take local variables from the stack. - - - - - - - - - 61 - - - - - - - - - - - - - - - Don't Panic ! - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 62 - diff --git a/text/ien/ien137.txt b/text/ien/ien137.txt deleted file mode 100644 index 45ed75e9..00000000 --- a/text/ien/ien137.txt +++ /dev/null @@ -1,816 +0,0 @@ - -IEN 137 Danny Cohen - U S C/I S I - 1 April 1980 - - - ON HOLY WARS AND A PLEA FOR PEACE - - - - INTRODUCTION - - -This is an attempt to stop a war. I hope it is not too late and that -somehow, magically perhaps, peace will prevail again. - -The latecomers into the arena believe that the issue is: "What is the -proper byte order in messages?". - -The root of the conflict lies much deeper than that. It is the question -of which bit should travel first, the bit from the little end of the -word, or the bit from the big end of the word? The followers of the -former approach are called the Little-Endians, and the followers of the -latter are called the Big-Endians. The details of the holy war between -the Little-Endians and the Big-Endians are documented in [6] and -described, in brief, in the Appendix. I recommend that you read it at -this point. - -The above question arises from the serialization process which is -performed on messages in order to send them through communication media. -If the communication unit is a message - these problems have no meaning. -If the units are computer "words" then one may ask in which order these -words are sent, what is their size, but not in which order the elements -of these words are sent, since they are sent virtually "at-once". If -the unit of transmission is an 8-bit byte, similar questions about bytes -are meaningful, but not the order of the elementary particles which -constitute these bytes. - -If the units of communication are bits, the "atoms" ("quarks"?) of -computation, then the only meaningful question is the order in which -bits are sent. - -Obviously, this is actually the case for serial transmission. Most -modern communication is based on a single stream of information -("bit-stream"). Hence, bits, rather than bytes or words, are the units -of information which are actually transmitted over the communication -channels such as wires and satellite connections. - -Even though a great deal of effort, in both hardware and software, is -dedicated to giving the appearance of byte or word communication, the -basic fact remains: bits are communicated. - -Computer memory may be viewed as a linear sequence of bits, divided into -bytes, words, pages and so on. Each unit is a subunit of the next -level. This is, obviously, a hierarchical organization. - 2 - -If the order is consistent, then such a sequence may be communicated -successfully while both parties maintain their freedom to treat the bits -as a set of groups of any arbitrary size. One party may treat a message -as a "page", another as so many "words", or so many "bytes" or so many -bits. If a consistent bit order is used, the "chunk-size" is of no -consequence. - -If an inconsistent bit order is used, the chunk size must be understood -and agreed upon by all parties. We will demonstrate some popular but -inconsistent orders later. - -In a consistent order, the bit-order, the byte-order, the word-order, -the page-order, and all the other higher level orders are all the same. -Hence, when considering a serial bit-stream, along a communication line -for example, the "chunk" size which the originator of that stream has in -mind is not important. - -There are two possible consistent orders. One is starting with the -narrow end of each word (aka "LSB") as the Little-Endians do, or -starting with the wide end (aka "MSB") as their rivals, the Big-Endians, -do. - -In this note we usually use the following sample numbers: a "word" is a -32-bit quantity and is designated by a "W", and a "byte" is an 8-bit -quantity which is designated by a "C" (for "Character", not to be -confused with "B" for "Bit)". - - - - - MEMORY ORDER - -The first word in memory is designated as W0, by both regimes. -Unfortunately, the harmony goes no further. - -The Little-Endians assign B0 to the LSB of the words and B31 is the MSB. -The Big-Endians do just the opposite, B0 is the MSB and B31 is the LSB. - -By the way, if mathematicians had their way, every sequence would be -numbered from ZERO up, not from ONE, as is traditionally done. If so, -the first item would be called the "zeroth".... - -Since most computers are not built by mathematicians, it is no wonder -that some computers designate bits from B1 to B32, in either the -Little-Endians' or the Big-Endians' order. These people probably would -like to number their words from W1 up, just to be consistent. - -Back to the main theme. We would like to illustrate the hierarchically -consistent order graphically, but first we have to decide about the -order in which computer words are written on paper. Do they go from -left to right, or from right to left? - 3 - -The English language, like most modern languages, suggests that we lay -these computer words on paper from left to right, like this: - - |---word0---|---word1---|---word2---|.... - -In order to be consistent, B0 should be to the left of B31. If the -bytes in a word are designated as C0 through C3 then C0 is also to the -left of C3. Hence we get: - - |---word0---|---word1---|---word2---|.... - |C0,C1,C2,C3|C0,C1,C2,C3|C0,C1,C2,C3|..... - |B0......B31|B0......B31|B0......B31|...... - -If we also use the traditional convention, as introduced by our -numbering system, the wide-end is on the left and the narrow-end is on -the right. - -Hence, the above is a perfectly consistent view of the world as depicted -by the Big-Endians. Significance consistency decreases as the item -numbers (address) increases. - -Many computers share with the Big-Endians this view about order. In -many of their diagrams the registers are connected such that when the -word W(n) is shifted right, its LSB moves into the MSB of word W(n+1). - -English text strings are stored in the same order, with the first -character in C0 of W0, the next in C1 of W0, and so on. - -This order is very consistent with itself and with the English language. - -On the other hand, the Little-Endians have their view, which is -different but also self-consistent. - -They believe that one should start with the narrow end of every word, -and that low addresses are of lower order than high addresses. -Therefore they put their words on paper as if they were written in -Hebrew, like this: - - ...|---word2---|---word1---|---word0---| - -When they add the bit order and the byte order they get: - - ...|---word2---|---word1---|---word0---| - ....|C3,C2,C1,C0|C3,C2,C1,C0|C3,C2,C1,C0| - .....|B31......B0|B31......B0|B31......B0| - -In this regime, when word W(n) is shifted right, its LSB moves into the -MSB of word W(n-1). - 4 - -English text strings are stored in the same order, with the first -character in C0 of W0, the next in C1 of W0, and so on. - -This order is very consistent with itself, with the Hebrew language, and -(more importantly) with mathematics, because significance increases with -increasing item numbers (address). - -It has the disadvantage that English character streams appear to be -written backwards; this is only an aesthetic problem but, admittedly, it -looks funny, especially to speakers of English. - -In order to avoid receiving strange comments about this orders the -Little-Endians pretend that they are Chinese, and write the bytes, not -right-to-left but top-to-bottom, like: - - C0: "J" - C1: "O" - C2: "H" - C3: "N" - ..etc.. - -Note that there is absolutely no specific significance whatsoever to the -notion of "left" and "right" in bit order in a computer memory. One -could think about it as "up" and "down" for example, or mirror it by -systematically interchanging all the "left"s and "right"s. However, -this notion stems from the concept that computer words represent -numbers, and from the old mathematical tradition that the wide-end of a -number (aka the MSB) is called "left" and the narrow-end of a number is -called "right". - -This mathematical convention is the point of reference for the notion of -"left" and "right". - -It is easy to determine whether any given computer system was designed -by Little-Endians or by Big-Endians. This is done by watching the way -the registers are connected for the "COMBINED-SHIFT" operation and for -multiple-precision arithmetic like integer products; also by watching -how these quantities are stored in memory; and obviously also by the -order in which bytes are stored within words. Don't let the B0-to-B31 -direction fool you!! Most computers were designed by Big-Endians, who -under the threat of criminal prosecution pretended to be Little-Endians, -rather than seeking exile in Blefuscu. They did it by using the -B0-to-B31 convention of the Little-Endians, while keeping the -Big-Endians' conventions for bytes and words. - -The PDP10 and the 360, for example, were designed by Big-Endians: their -bit order, byte-order, word-order and page-order are the same. The same -order also applies to long (multi-word) character strings and to -multiple precision numbers. - - 5 - -Next, let's consider the new M68000 microprocessor. Its way of storing -a 32-bit number, xy, a 16-bit number, z, and the string "JOHN" in its -16-bit words is shown below (S = sign bit, M = MSB, L = LSB): - - SMxxxxxxx yyyyyyyyL SMzzzzzzL "J" "O" "H" "N" - |--word0--|--word1--|--word2--|--word3--|--word4--|.... - |-C0-|-C1-|-C0-|-C1-|-C0-|-C1-|-C0-|-C1-|-C0-|-C1-|..... - |B15....B0|B15....B0|B15....B0|B15....B0|B15....B0|...... - -The M68000 always has on the left (i.e., LOWER byte- or word-address) -the wide-end of numbers in any of the various sizes which it may use: 4 -(BCD), 8, 16 or 32 bits. - -Hence, the M68000 is a consistent Big-Endian, except for its bit -designation, which is used to camouflage its true identity. Remember: -the Big-Endians were the outlaws. - -Let's look next at the PDP11 order, since this is the first computer to -claim to be a Little-Endian. Let's again look at the way data is stored -in memory: - - "N" "H" "O" "J" SMzzzzzzL SMyyyyyyL SMxxxxxxL - ....|--word4--|--word3--|--word2--|--word1--|--word0--| - .....|-C1-|-C0-|-C1-|-C0-|-C1-|-C0-|-C1-|-C0-|-C1-|-C0-| - ......|B15....B0|B15....B0|B15....B0|B15....B0|B15....B0| - -The PDP11 does not have an instruction to move 32-bit numbers. Its -multiplication products are 32-bit quantities created only in the -registers, and may be stored in memory in any way. Therefore, the -32-bit quantity, xy, was not shown in the above diagram. - -Hence, the above order is a Little-Endians' consistent order. The PDP11 -always stores on the left (i.e., HIGHER bit- or byte-address) the -wide-end of numbers of any of the sizes which it may use: 8 or 16 bits. - -However, due to some infiltration from the other camp, the registers of -this Little-Endian's marvel are treated in the Big-Endians' way: a -double length operand (32-bit) is placed with its MSB in the lower -address register and the LSB in the higher address register. Hence, -when depicted on paper, the registers have to be put from left to right, -with the wide end of numbers in the LOWER-address register. This -affects the integer multiplication and division, the combined-shifts and -more. Admittedly, Blefuscu scores on this one. - -Later, floating-point hardware was introduced for the PDP11/45. - -Floating-point numbers are represented by either 32- or 64-bit -quantities, which are 2 or 4 PDP11 words. The wide end is the one with -the sign bit(s), the exponent and the MSB of the fraction. The narrow -end is the one with the LSB of the fraction. On paper these formats are -clearly shown with the wide end on the left and the narrow on the right, -according to the centuries old mathematical conventions. On page 12-3 - 6 - -of the PDP11/45 processor handbook, [3], there is a cute graphical -demonstration of this order, with the word "FRACTION" split over all the -2 or the 4 words which are used to store it. - -However, due to some oversights in the security screening process, the -Blefuscuians took over, again. They assigned, as they always do, the -wide end to the LOWer addresses in memory, and the narrow to the HIGHer -addresses. - -Let "xy" and "abcd" be 32- and 64-bit floating-point numbers, -respectively. Let's look how these numbers are stored in memory: - - ddddddddL ccccccccc bbbbbbbbb SMaaaaaaa yyyyyyyyL SMxxxxxxx - ....|--word5--|--word4--|--word3--|--word2--|--word1--|--word0--| - .....|-C1-|-C0-|-C1-|-C0-|-C1-|-C0-|-C1-|-C0-|-C1-|-C0-|-C1-|-C0-| - ......|B15....B0|B15....B0|B15....B0|B15....B0|B15....B0|B15....B0| - -Well, Blefuscu scores many points for this. The above reference in [3] -does not even try to camouflage it by any Chinese notation. - -Encouraged by this success, as minor as it is, the Blefuscuians tried to -pull another fast one. This time it was on the VAX, the sacred machine -which all the Little-Endians worship. - -Let's look at the VAX order. Again, we look at the way the above data -(with xy being a 32-bit integer) is stored in memory: - - "N" "H" "O" "J" SMzzzzzzL SMxxxxxxx yyyyyyyyL - ...ng2-------|-------long1-------|-------long0-------| - ....|--word4--|--word3--|--word2--|--word1--|--word0--| - .....|-C1-|-C0-|-C1-|-C0-|-C1-|-C0-|-C1-|-C0-|-C1-|-C0-| - ......|B15....B0|B15....B0|B15....B0|B15....B0|B15....B0| - -What a beautifully consistent Little-Endians' order this is !!! - -So, what about the infiltrators? Did they completely fail in carrying -out their mission? Since the integer arithmetic was closely guarded -they attacked the floating point and the double-floating which were -already known to be easy prey. - 7 - -Let's look, again, at the way the above data is stored, except that now -the 32-bit quantity xy is a floating point number: now this data is -organized in memory in the following Blefuscuian way: - - "N" "H" "O" "J" SMzzzzzzL yyyyyyyyL SMxxxxxxx - ...ng2-------|-------long1-------|-------long0-------| - ....|--word4--|--word3--|--word2--|--word1--|--word0--| - .....|-C1-|-C0-|-C1-|-C0-|-C1-|-C0-|-C1-|-C0-|-C1-|-C0-| - ......|B15....B0|B15....B0|B15....B0|B15....B0|B15....B0| - -Blefuscu scores again. The VAX is found guilty, however with the -explanation that it tries to be compatible with the PDP11. - -Having found themselves there, the VAXians found a way around this -unaesthetic appearance: the VAX literature (e.g., p. 10 of [4]) -describes this order by using the Chinese top-to-bottom notation, rather -than an embarrassing left-to-right or right-to-left one. This page is a -marvel. One has to admire the skillful way in which some quantities are -shown in columns 8-bit wide, some in 16 and other in 32, all in order to -avoid the egg-on-the-face problem..... - -By the way, some engineering-type people complain about the "Chinese" -(vertical) notation because usually the top (aka "up") of the diagrams -corresponds to "low"-memory (low addresses). However, anyone who was -brought up by computer scientists, rather than by botanists, knows that -trees grow downward, having their roots at the top of the page and their -leaves down below. Computer scientists seldom remember which way "up" -really is (see 2.3 of [5], pp. 305-309). - -Having scored so easily in the floating point department, the -Blefuscuians moved to new territories: Packed-Decimal. The VAX is also -capable of using 4-bit-chunk decimal arithmetic, which is similar to the -well known BCD format. - -The Big-Endians struck again, and without any resistance got their way. -The decimal number 12345678 is stored in the VAX memory in this order: - - 7 8 5 6 3 4 1 2 - ...|-------long0-------| - ....|--word1--|--word0--| - .....|-C1-|-C0-|-C1-|-C0-| - ......|B15....B0|B15....B0| - -This ugliness cannot be hidden even by the standard Chinese trick. - 8 - - - - - - SUMMARY (of the Memory-Order section) - - -To the best of my knowledge only the Big-Endians of Blefuscu have built -systems with a consistent order which works across chunk-boundaries, -registers, instructions and memories. I failed to find a -Little-Endians' system which is totally consistent. - - - - - TRANSMISSION ORDER - - -In either of the consistent orders the first bit (B0) of the first byte -(C0) of the first word (W0) is sent first, then the rest of the bits of -this byte, then (in the same order) the rest of the bytes of this word, -and so on. - -Such a sequence of 8 32-bit words, for example, may be viewed as either -4 long-words, 8 words, 32 bytes or 256 bits. - -For example, some people treat the ARPA-internet-datagrams as a sequence -of 16-bit words whereas others treat them as either 8-bit byte streams -or sequences of 32-bit words. This has never been a source of -confusion, because the Big-Endians' consistent order has been assumed. - -There are many ways to devise inconsistent orders. The two most popular -ones are the following and its mirror image. Under this order the first -bit to be sent is the LEAST significant bit (B0) of the MOST significant -byte (C0) of the first word, followed by the rest of the bits of this -byte, then the same right-to-left bit order inside the left-to-right -byte order. - -Figure 1 shows the transmission order for the 4 orders which were -discussed above, the 2 consistent and the 2 inconsistent ones. - -Those who use such an inconsistent order (or any other), and only those, -have to be concerned with the famous byte-order problem. If they can -pretend that their communication medium is really a byte-oriented link -then this inconsistency can be safely hidden under the rug. - -A few years ago 8-bit microprocessors appeared and changed drastically -the way we do business. A few years later a wide variety of 8-bit -communication hardware (e.g., Z80-SIO and 2652) followed, all of which -operate in the Little-Endians' order. - 9 - -Now a wave of 16-bit microprocessors has arrived. It is not -inconceivable that 16-bit communication hardware will become a reality -relatively soon. - -Since the 16-bit communication gear will be provided by the same folks -who brought us the 8-bit communication gear, it is safe to expect these -two modes to be compatible with each other. - -The only way to achieve this is by using the consistent Little-Endians -order, since all the existing gear is already in Little-Endians order. - -We have already observed that the Little-Endians do not have consistent -memory orders for intra-computer organization. - -IF the 16-bit communication link could be made to operate in any order, -consistent or not, which would give it the appearance of being a byte- -oriented link, THEN the Big-Endians could push (ask? hope? pray?) for an -order which transmits the bytes in left-to-right (i.e., wide-end first) -and use that as a basis for transmitting all quantities (except BCD) in -the more convenient Big-Endians format, with the most significant -portions leading the least significant, maintaining compatibility -between 16- and 32-bit communication, and more. - -However, this is a big "IF". - -Wouldn't it be nice if we could encapsulate the byte-communication and -forget all about the idiosyncrasies of the past, introduced by RS232 and -TELEX, of sending the narrow-end first? - -I believe that it would be nice, but nice things do not necessarily -occur, especially if there is so much silicon against them. - -Hence, our choice now is between (1) Big-Endians' computer-convenience -and (2) future compatibility between communication gear of different -chunk size. - -I believe that this is the question, and we should address it as such. - -Short term convenience considerations are in favor of the former, and -the long term ones are in favor of the latter. - -Since the war between the Little-Endians and the Big-Endians is -imminent, let's count who is in whose camp. - -The founders of the Little-Endians party are RS232 and TELEX, who stated -that the narrow-end is sent first. So do the HDLC and the SDLC -protocols, the Z80-SIO, Signetics-2652, Intel-8251, Motorola-6850 and -all the rest of the existing communication devices. In addition to -these protocols and chips the PDP11s and the VAXes have already pledged -their allegiance to this camp, and deserve to be on this roster. - 10 - -The HDLC protocol is a full fledged member of this camp because it sends -all of its fields with the narrow end first, as is specifically defined -in Table 1/X.25 (Frame formats) in section 2.2.1 of Recommendation X.25 -(see [2]). A close examination of this table reveals that the bit order -of transmission is always 1-to-8. Always, except the FCS (checksum) -field, which is the only 16-bit quantity in the byte-oriented protocol. - -The FCS is sent in the 16-to-1 order. How did the Blefuscuians manage -to pull off such a fiasco?! The answer is beyond me. Anyway, anyone -who designates bits as 1-to-8 (instead of 0-to-7) must be gullible to -such tricks. - -The Big-Endians have the PDP10's, 370's, ALTO's and Dorado's... - -An interesting creature is the ARPANet-IMP. The documentation of its -standard host interface (aka "LH/DH") states that "The high order bit of -each word is transmitted first" (p. 4-4 of [1]), hence, it is a -Big-Endian. This is very convenient, and causes no confusion between -diagrams which are either 32- (e.g., on p. 3-25) and 16-bit wide (e.g., -on p. 5-14). - -However, the IMP's Very Distant Host (VDH) interface is a Little-Endian. - -The same document ([1], again, p. F-18), states that the data "must -consist of an even number of 8-bit bytes. Further, considering each pair -of bytes as a 16-bit word, the less significant (right) byte is sent -first". - -In order to make this even more clear, p. F-23 states "All bytes (data -bytes too) are transmitted least significant (rightmost) bit first". - -Hence, both camps may claim to have this schizophrenic double-agent in -their camp. - -Note that the Lilliputians' camp includes all the who's-who of the -communication world, unlike the Blefuscuians' camp which is very much -oriented toward the computing world. - -Both camps have already adopted the slogan "We'd rather fight than -switch!". - -I believe they mean it. - 11 - - - - - - SUMMARY (of the Transmission-Order section) - - -There are two camps each with its own language. These languages are as -compatible with each other as any Semitic and Latin languages are. - -All Big-Endians can talk to each other with relative ease. - -So can all the Little-Endians, even though there are some differences -among the dialects used by different tribes. - -There is no middle ground. Only one end can go first. - - - - - CONCLUSION - - -Each camp tries to convert the other. Like all the religious wars of -the past, logic is not the decisive tool. Power is. This holy war is -not the first one, and probably will not be the last one either. - -The "Be reasonable, do it my way" approach does not work. Neither does -the Esperanto approach of "let's all switch to yet a new language". - -Our communication world may split according to the language used. A -certain book (which is NOT mentioned in the references list) has an -interesting story about a similar phenomenon, the Tower of Babel. - -Little-Endians are Little-Endians and Big-Endians are Big-Endians and -never the twain shall meet. - -We would like to see some Gulliver standing up between the two islands, -forcing a unified communication regime on all of us. I do hope that my -way will be chosen, but I believe that, after all, which way is chosen -does not make too much difference. It is more important to agree upon -an order than which order is agreed upon. - -How about tossing a coin ??? - 12 - - - time time - | | - \ | | / - \ | | / - \ | | / - \ | | / - \ | | / - \ | | / - \ | | / - \ | | / - \ | | / - \ | | / - \ | | / - \ | | / - \ | | / - \ | | / - \ | | / - \ | | / - <-MSB---------------LSB- -MSB---------------LSB-> - order (1) | | order (2) - - - time time - | | - / | | \ - / | | \ - / | | \ - / | | \ - / | | \ - / | | \ - / | | \ - / | | \ - / | | \ - / | | \ - / | | \ - / | | \ - / | | \ - / | | \ - / | | \ - / | | \ - <-MSB---------------LSB- -MSB---------------LSB-> - order (3) | | order (4) - - - - - Figure 1: Possible orders, consistent: (1)+(2), inconsistent: (3)+(4). - - 13 - - A P P E N D I X - - - -Some notes on Swift's Gulliver's Travels: - - -Gulliver finds out that there is a law, proclaimed by the grandfather of -the present ruler, requiring all citizens of Lilliput to break their -eggs only at the little ends. Of course, all those citizens who broke -their eggs at the big ends were angered by the proclamation. Civil war -broke out between the Little-Endians and the Big-Endians, resulting in -the Big-Endians taking refuge on a nearby island, the kingdom of -Blefuscu. - -Using Gulliver's unquestioning point of view, Swift satirizes religious -wars. For 11,000 Lilliputian rebels to die over a controversy as -trivial as at which end eggs have to be broken seems not only cruel but -also absurd, since Gulliver is sufficiently gullible to believe in the -significance of the egg question. The controversy is important -ethically and politically for the Lilliputians. The reader may think -the issue is silly, but he should consider what Swift is making fun of -the actual causes of religious- or holy-wars. - -In political terms, Lilliput represents England and Blefuscu France. -The religious controversy over egg-breaking parallels the struggle -between the Protestant Church of England and the Catholic Church of -France, possibly referring to some differences about what the Sacraments -really mean. More specifically, the quarrel about egg-breaking may -allude to the different ways that the Anglican and Catholic Churches -distribute communion, bread and wine for the Anglican, but bread alone -for the Catholic. The French and English struggled over more mundane -questions as well, but in this part of Gulliver's Travels, Swift points -up the symbolic difference between the churches to ridicule any -religious war. - - - For ease of reference please note that Lilliput and Little-Endians - both start with an "L", and that both Blefuscu and Big-Endians start - with a "B". This is handy while reading this note. - 14 - - R E F E R E N C E S - - - -[1] Bolt Beranek & Newman. - Report No. 1822: Interface Message Processor. - Technical Report, BB&N, May, 1978. - -[2] CCITT. - Orange Book. Volume VIII.2: Public Data Networks. - International Telecommunication Union, Geneva, 1977. - -[3] DEC. - PDP11 04/05/10/35/40/45 processor handbook. - Digital Equipment Corp., 1975. - -[4] DEC. - VAX11 - Architecture Handbook. - Digital Equipment Corp., 1979. - -[5] Knuth, D. E. - The Art of Computer Programming. Volume I: Fundamental - Algorithms. - Addison-Wesley, 1968. - -[6] Swift, Jonathan. - Gulliver's Travel. - Unknown publisher, 1726. - 15 - - OTHER SLIGHTLY RELATED TOPICS (IF AT ALL) - - - not necessarily for inclusion in this note - - - - - -Who's on first? Zero or One ?? - -People start counting from the number ONE. The very word FIRST is -abbreviated into the symbol "1st" which indicates ONE, but this is a -very modern notation. The older notions do not necessarily support this -relationship. - -In English and French - the word "first" is not derived from the word -"one" but from an old word for "prince" (which means "foremost"). -Similarly, the English word "second" is not derived from the number -"two" but from an old word which means "to follow". Obviously there is -an close relation between "third" and "three", "fourth" and "four" and -so on. - -Similarly, in Hebrew, for example, the word "first" is derived from the -word "head", meaning "the foremost", but not specifically No. 1. The -Hebrew word for "second" is specifically derived from the word "two". -The same for three, four and all the other numbers. - -However, people have,for a very long time, counted from the number One, -not from Zero. As a matter of fact, the inclusion of Zero as a -full-fledged member of the set of all numbers is a relatively modern -concept. - -Zero is one of the most important numbers mathematically. It has many -important properties, such as being a multiple of any integer. - -A nice mathematical theorem states that for any basis, b, the first b^N -(b to the Nth power) positive integers are represented by exactly N -digits (leading zeros included). This is true if and only if the count -starts with Zero (hence, 0 through b^N-1), not with One (for 1 through -b^N). - -This theorem is the basis of computer memory addressing. Typically, 2^N -cells are addressed by an N-bit addressing scheme. Starting the count -from One, rather than Zero, would cause either the loss of one memory -cell, or an additional address line. Since either price is too -expensive, computer engineers agree to use the mathematical notation of -starting with Zero. Good for them! - -The designers of the 1401 were probably ashamed to have address-0 and -hid it from the users, pretending that the memory started at address-1. - 16 - -This is probably the reason that all memories start at address-0, even -those of systems which count bits from B1 up. - -Communication engineers, like most "normal" people, start counting from -the number One. They never suffer by having to lose a memory cell, for -example. Therefore, they are happily counting 1-to-8, and not 0-to-7 as -computer people learn to do. - - - -ORDER OF NUMBERS. - -In English, we write numbers in Big-Endians' left-to-right order. I -believe that this is because we SAY numbers in the Big-Endians' order, -and because we WRITE English in Left-to-right order. - -Mathematically there is a lot to be said for the Little-Endians' order. - -Serial comparators and dividers prefer the former. Serial adders and -multipliers prefer the latter order. - -When was the common Big-Endians order adopted by most modern languages? - -In the Bible, numbers are described in words (like "seven") not by -digits (like "7") which were "invented" nearly a thousand years after -the Bible was written. In the old Hebrew Bible many numbers are -expressed in the Little-Endians order (like "Seven and Twenty and -Hundred") but many are in the Big-Endians order as well. - -Whenever the Bible is translated into English the contemporary English -order is used. For example, the above number appears in that order in -the Hebrew source of The Book of Esther (1:1). In the King James -Version it is (in English) "Hundred and Seven and Twenty". In the -modern Revised American Standard Version of the Bible this number is -simply "One Hundred and Twenty-Seven". - - - -INTEGERS vs. FRACTIONS - -Computer designers treat fix-point multiplication in one of two ways, as -an integer-multiplication or as a fractional-multiplication. - -The reason is that when two 16-bit numbers, for example, are multiplied, -the result is a 31-bit number in a 32-bit field. Integers are right -justified; fractions are left justified. The entire difference is only -a single 1-bit shift. As small as it is, this is an important -difference. - -Hence, computers are wired differently for these kinds of -multiplications. The addition/subtraction operation is the same for -either integer/fraction operation. - 17 - -If the LSB is B0 then the value of a number is SIGMA, -for i=0,15, in the above example. This is, obviously, an integer. - -If the MSB is B0 then the value of a number is SIGMA, -for i=0,15. This is, obviously, a fraction. - -Hence, after multiplication the Integerites would typically keep B0-B15, -the LSH (Least Significant Half), and discard the MSH, after verifying -that there is no overflow into it. The Fractionites would also keep -B0-B15, which is the MSH, and discard the LSH. - -One could expect Integerites to be Little-Endians, and Fractionites to -be Big-Endians. I do not believe that the world is that consistent. - - - -SWIFT's POINT - -It may be interesting to notice that the point which Jonathan Swift -tried to convey in Gulliver's Travels in exactly the opposite of the -point of this note. - -Swift's point is that the difference between breaking the egg at the -little-end and breaking it at the big-end is trivial. Therefore, he -suggests, that everyone does it in his own preferred way. - -We agree that the difference between sending eggs with the little- or -the big-end first is trivial, but we insist that everyone must do it in -the same way, to avoid anarchy. Since the difference is trivial we may -choose either way, but a decision must be made. - - - - - - - - - diff --git a/text/ien/ien139.txt b/text/ien/ien139.txt deleted file mode 100644 index 6f7e6774..00000000 --- a/text/ien/ien139.txt +++ /dev/null @@ -1,471 +0,0 @@ - - - - -IEN: 139 J. Haverty - BBN - April 1980 - - - - HOSTs as IMPs - - Jack Haverty - - Bolt Beranek and Newman Inc. - - - - - - - - The following discussion is an extract from a report for one of the - -ARPA projects at BBN. The relevant details of the system configuration - -include the following: - - - o a PDP-11 with IMP11A interface is used to communicate with - - an LSI-11 using a Collins "1822 interface" - - - - o the electrical connection uses the "distant-host" - - configuration - - - - - This report was originally issued in October 1979. It is being - -reissued now as an IEN after some recent inquiries which indicate the - -problem may be more widespread than was previously thought. - - - - - - - - - 1 - - - - - - - - - -Hosts as Imps April 1980 - - - -HISTORY - - - We've been having an enormous amount of trouble (more than usual) - -since early summer getting the LSI-11 and PDP-11 to talk reliably on - -the 1822 lines. When the problems were investigated, the IMPTST - -program also reported errors on the 1822 connections. This has happened - -in the past, and often the problem would disappear after - -swapping some cables, or maybe waiting a few hours. However, this - -time the problem was persistent, which at least gave us the - -opportunity to figure out what was happening. - - - A collection of people have been working on the problem, and we've - -come up with an analysis of the situation. - - - The immediate cause of the strange behavior was tracked down to - -large noise spikes induced in the cables. We have noise spikes - -every half-cycle on the building power cables. These are coupled into - -the 1822 cables by RF coupling. We have seen as much as 20 volts - -peak-to-peak spikes on the differential signal lines. This appears to - -the receivers as common-mode noise. - - - Differential receivers in the various host interfaces have - -receivers which are spec'ed for good common-mode rejection up to some - -maximum input signal level. For the LSI-11s, the chips are good up to - - - - - 2 - - - - - - - - - -Hosts as Imps April 1980 - - - -+-15 volts. IMP11As use chips which are spec'd at +-3 volts. - - - For the various "IMP" interfaces, the PTIP interface is good for a - -range similar to that of the BCRs good for a similar range. The - -316/516 IMPs provide optical isolation, so they are good up to some - -very high value dependent on the breakdown of the insulation. - - - The 1822 spec says that host's receivers should expect a 1 volt - -peak-to-peak signal, centered around the host's ground. Host - -receivers also must be able to tolerate at least 2.5 volts of common- - -mode noise. Note that, for the IMP11As, DEC picked chips which - -exactly met the spec, i.e., 2.5 volts noise plus 0.5 volts signal in - -either the plus or minus direction requires an input range of +- - -3.0 volts. The chips in that design have a maximum legal input range - -of +-3 volts with respect to the PDP-11 ground. Thus the DEC design is - -a legal host interface according to 1822. - - - By judicious grounding and other magic, we have gotten the noise - -down to less than a volt. The source was traced to our building UPS - -system, which has some bad filter capacitors. These will be replaced, - -and that is likely to remove the noise source. However, 1 volt of - -induced noise is not unreasonable, and is also probably fairly common - -in computer areas. The UPS problem only makes the noise occur every - - - - - - 3 - - - - - - - - - -Hosts as Imps April 1980 - - - -8 milliseconds, whereas more traditional noise might occur at - -intervals of seconds or minutes. - - - As of April 1980, the filter capacitors have been replaced. This - -has reduced the noise somewhat. We have learned however that UPS - -systems can generate significant noise in normal operation. This noise - -appears on the input side fo the UPS system; the output side is - -generally well filtered. Computer equipment powered from the UPS output - -will not see any significant noise on its power; equipment powered from - -non-UPS power will have the noise present, but the equipment itself - -typically filters the power enough so that the logic power is noise - -free. - - - The problem we have been investigating appears to result from - -coupling between "1822" cables and power cables carrying non-UPS power - -which also carries the noise spikes generated by the UPS system. - - - -HOSTS AND IMPS - - - With the 1 volt noise, the PDP-11 and LSI-11 communication still - -doesn't work properly. IMPTST reveals occasional errors. - - - In tracking these problems down, we delved pretty deeply into - -all the pieces of the system, even down to the circuits used within the - - - - - 4 - - - - - - - - - -Hosts as Imps April 1980 - - - -driver/receiver chips. In the IMP11A receiver, it appears that if - -the signal level exceeds 3 volts, the logic will get "confused", and - -produce an inverted output. However, with 1 volt of noise, and 0.5 - -volts of signal, the input should not exceed about 1.5 volts. - - - Further tracking along, we looked at the drivers in the LSI- - -11. These are single-ended drivers, i.e., using a single +5 power - -supply. They produce signals which swing between +0.2 and +2.6 volts. - -The upper limit will depend on the actual value of "+5", resistor - -tolerances, etc. The measured "differential" signal produced by a - -pair of these drivers keeps one signal line at +0.2, and the other at - -+2.4 all the time. Thus the signal is a 2.2 volt peak-to-peak signal, - -with a built-in common-mode noise level of 1.2 volts. - - - When an LSI-11 is connected to an IMP11A, the IMP11A - -receivers see a signal which swings to +2.6 volts. Given 0.4 volts - -of noise, this drives the receivers beyond their - -specifications. - - - We believe that this is the reason behind the current - -problems we are having with the link. With the ambient 1 volt noise, - -the IMP11As receivers are being driven out of spec all the time, which - -causes random errors depending on how the signals add, other noise, - - - - - - 5 - - - - - - - - - -Hosts as Imps April 1980 - - - -etc. - - - We have also experienced in the last few years a continuous - -problem of random incompatibilities between the LSI-11s and the IMP11A. - -For example, one day a particular LSI-11 might work well to the PDP- - -11, and the following day it might not. It seems conceivable that - -this is partially caused by the situation I just outlined. The real - -voltage level on any day might depend on the building power voltage, - -temperature, noise produced by other equipment in the vicinity, etc. - -Since the IMP11A is being driven at the very edge of its working range, - -all the random "noise" factors will determine how well the link - -works at any time. We have observed also that the the system - -occasionally "hangs" for no apparent reason, possibly after running - -for hours, which may also be related to the aperiodic noise which might - -occur as air conditioners switch, elevators, etc. A similar - -installation has also reported problems of this nature, with - -unreliable LSI-11/PDP-11 communications using distant-host connections. - - - -CONCLUSION - - - The consensus of opinion here is that the problem lies with the - -LSI-11 1822 interface characteristics. The "1822 spec" dictates - -how to build HOST interfaces, but does not specify how to build IMP - - - - - 6 - - - - - - - - - -Hosts as Imps April 1980 - - - -interfaces. It alludes to the fact that the IMP provides for - -things like ground isolation, deskewing, and other features not required - -of hosts. - - - The 1822 interface is however asymmetric -- it is NOT true that - -all host 1822 interfaces should be able to talk to all other hosts' - -interfaces. The host spec defines an interface which will allow any - -host to talk to an IMP; the IMP interface, which has to talk to ALL - -POSSIBLE host interfaces, performs more functions than a host - -interface is required to do. In particular, it is required to provide - -ground isolation, and to generate true differential signals, - -centered on the host interface's ground which is carried by the - -ground-wire in the cable. - - - The LSI-11 1822 design seems to adequately follow the 1822 spec, - -in that it provides a host interface. The IMP11A also adequately - -follows the 1822 spec, as a host interface. - - - However, the LSI-11 must act as an IMP -- i.e., it must be - -designed to communicate with any "1822 interface" which meets the host - -specs. The current LSI-11 1822 design does not meet this criterion. - - - The root of the problem is probably that most people think of the - -1822 specification as a symmetric one, i.e., such that any 1822 - - - - - 7 - - - - - - - - - -Hosts as Imps April 1980 - - - -interface can talk to any other 1822 interface. For most - -interface implementations and environments, this is probably - -true, which reinforces the mistake. - - - -SOLUTION(s)? - - - We are looking at various short-term solutions to see which is the - -least painful way to make the system function reliably. In the - -long run, we believe that the LSI-11 1822 has to be changed to - -behave as an IMP. At the very least, the drivers must generate a +-0.5 - -volt signal, centered around ground, and provide for ground - -isolation. There may be other constraints, such as timing issues, - -as well, which an IMP designer could help with. We have not - -looked into the LSI-11 1822 design in these areas. - - - It is also worth noting that other projects which use - -"pseudo-IMPs" should be examined, to see if the same situation - -exists. In the LSI-11-IMP11A case, the fact that the system is on - -the edge of the working range means that it works most of the time, and - -is just annoyingly flaky. Other people may have the same situation. - - - - - - - - - - - 8 - - - - diff --git a/text/ien/ien141.txt b/text/ien/ien141.txt deleted file mode 100644 index 6c453662..00000000 --- a/text/ien/ien141.txt +++ /dev/null @@ -1,827 +0,0 @@ - IEN 141 - INDRA Note 897 - 11th April 1980 - - - - - - - - - - - Message System Issues - - - - C. J. Bennett - - - - - - ABSTRACT: This INDRA Note discusses the - design choices for the message server system - to be built at UCL. Particular issues - considered include: the nature of the UK user - community; the nature of the message service - to be offered on the server; the message - formats and transfer protocols to be used; - addressing; interworking with the ARPANET - community; and the design of the message - management system on the message server. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Table of Contents - - - - - 1. Introduction...........................................1 - - - 2. The User Community.....................................1 - - - 3. Message Movement.......................................2 - - 3.1 Message Format.....................................2 - 3.1.1 Message Format Staging........................3 - 3.2 Message Protocol...................................3 - 3.3 Message Transport..................................4 - 3.3.1 FTP Staging...................................5 - 3.4 Addressing.........................................5 - 3.5 Status Reporting...................................8 - - 4. Message Server Design..................................8 - - 4.1 User Interface.....................................8 - 4.2 Message Management.................................10 - - 5. Conclusions............................................12 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1. Introduction - - Electronic message services have historically been - one of the most successful services to have developed - from the use of packet switched computer networks. - However, these facilities have not been available to - users of United Kingdom research data networks in the - past, and UK users who wished to send mail to remote - sites were required to obtain mailboxes on remote - machines in the United States, accessible via ARPANET. - With the development of public networks, in particular - IPSS and PSS, and in view of the UKPO's policy of - requiring users to move to these networks, it is no - longer economically feasible to continue this mode of - usage. - - For these reasons it is proposed that University - College London will develop a message server system - based on a PDP-11/35 running UNIX and accessible - initially to users through the DARPA Catenet, and later - through PSS. This server would allow users to exchange - messages with other users on the same site, users of - ARPANET mail systems, and eventually users of other UK - and US message servers. The aim of this INDRA note is - to identify the design constraints on this system and - to suggest approaches that may be taken to meet them. - - - 2. The User Community - - Five major groups of users can be identified who can - be expected to interact with such a service in the - short term. These are: - - (i) Current users of the ARPANET mail system, - especially UK users who have (until recently) - had dialin access through the TIP. The message - server would become the prime mail server for - this group. US users of ARPANET systems must be - able to send messages to this site. This group - will require messages formatted according to - the rules specified in RFC 733 (as modified by - actual practice). - - (ii) Users of the DARPA Catenet, who will be using - at least three formats for intersite mail: - those of RFC 733; those of the Internet Mail - Protocol as defined in IEN 85; and the private - formats being developed by RSRE. - - (iii) Users who wish to exchange messages between the - UCL server and other servers which may become - available through PSS. This group will - initially require only PSS access to the server - -Bennett [Page 1] - -INDRA Note 897, IEN 141 Message System Issues - - - - - and will exchanges messages locally, but in the - longer term it can be anticipated that other - mail servers will emerge on PSS. - - (iv) Users who wish to exchange messages with US - message servers available through Telenet and - IPSS. In particular, such traffic may arise - through the US EDUNET project. - - (v) UCL users who will exchange messages through - the UCL ring, and who will wish to exchange - messages with users in one or more of the other - three categories. - - - - 3. Message Movement - - This section is concerned with the questions which - affect the movement of messages between the message - server and other message sites. Four major questions - must be considered: choice of message format; choice of - transport mechanism; mail protocol; and addressing. - - - 3.1 Message Format - - The message format may be based on one of the - following choices: - - (i) ARPANET Format (RFC 733) - - (ii) Internet Mail Format - - (iii) RSRE Mail Format - - (iv) Other format not currently in use amongst the - user community, such as those that may arise - through the work of IFIP TC6.5, or through - Telenet and EDUNET. - - - Of these choices, only the first is feasible at - present. It is that which is most widely used at the - moment, as it provides the current ARPANET mail - service, and the internal UCL Unix mail service, and it - is intended that it shall be used for initial DARPA - Catenet mail. The DARPA Internet Mail format is very - experimental, and although it is expected to remain - stable for the time being no experience has been gained - with it. Much the same comment applies to the RSRE - -Bennett [Page 2] - -INDRA Note 897, IEN 141 Message System Issues - - - - - system. The fourth choice involves either obtaining an - existing commercial system such as COMET, or devising a - new format from scratch. Both these possibilities would - result in considerable delay, and a UCL home-brewed - format would be unlikely to be any more satisfactory, - and would be much less acceptable to the users, than - other alternatives. - - As it may be anticipated that the server will have to - interwork eventually with other formats, notably that - of RSRE and whatever emerges amongst the EDUNET group, - the development of other formats should be closely - tracked. It is expected that conversion will eventually - take place through the use of a common Internet Format - such as that being developed in the DARPA Internet - scheme. - - - 3.1.1 Message Format Staging - - One result of this is that users who will eventually - require a different format for messages for their own - server - initially, RSRE in particular - will require a - conversion between the two. It is expected that this - will take place at the UCL message server. As noted - above, it is to be hoped that conversions will take - place through a common intermediary format. - - An important longterm question in this regard is how - widely the UCL message server system will be - distributed in the UK. If other message servers are - built along the same lines, then the format chosen will - become a __ _____ UK standard, at least among the UK - research community. - - - 3.2 Message Protocol - - The current ARPANET message protocol is essentially a - trivial extension to the ARPANET file transfer, - obtained through the MAIL option. This causes each - message to be sent as a separate file to be appended to - the message file of an individual user at that site. - Given future use of IPSS and PSS this is an uneconomic - option. There are two reasons for this. - - (i) Demultiplexing for a message which is to be - copied to several users at the same site occurs - at the sender, not the receiver. Thus a - message for N users at site X is transferred N - times, even though it is identical. If mailers - -Bennett [Page 3] - -INDRA Note 897, IEN 141 Message System Issues - - - - - were capable of parsing the message headers - properly, the message need only be sent once. - - (ii) For each message transferred a separate data - connection is set up. Thus a queue of N - messages for M sites (M < N) will require N + M - calls to be made. If the messages were - mailbagged by site, only 2M calls need be made. - (Note that if FTP control and data were mixed - on the same call, as in the NIFTP (see below), - these figures reduce to N and M respectively). - - - Both these changes have some impact on message - format. The first requires, as a minimum, that all - recipients of a message at a given site be visible in - the To: and Cc: fields - that is, it is not possible if - the mailing list facility is used in its current form. - In such cases, the sender must provide the list, and - the receiver must recognise that this list should be - suppressed or separated from the users' copies. It is - to be hoped that the Internet group will accept this - proposal as a minimum change to be made for use in the - Catenet, and that similar procedures will be set up by - other groups. - - Mailbagging requires that different messages in a - file transferred must be clearly delimited. This - requires a mailbag structure to be defined - at the - very least, by defining a standard message separator. - However, it does not require restructuring of - individual messages. This is a much more important - change than the first, and as the saving is likely to - be less, it is proposed here that it should await the - results of experiments with the Internet Mail Protocol. - - - 3.3 Message Transport - - There are two major choices to be made for the - message transport service, namely the TCP FTP, derived - from the ARPANET FTP, and the NI FTP. It is expected - that the first will be used for mail within the - Catenet, using the same MAIL option as used within the - ARPANET. As has been seen above, however, this protocol - is unsuited to our needs because it is uneconomic. It - may be retained initially, as it gives direct - compatibility with other Catenet sites. - - - - -Bennett [Page 4] - -INDRA Note 897, IEN 141 Message System Issues - - - - - In the slightly longer term, the NI FTP is the more - attractive option. The reasons for this are its - independence of specific transport services and the - fact that it will be widely adopted in the UK. UCL - already has implementations on its research Unix and at - ISIE (though these will have to be changed to reflect - the final specification); an implementation at RSRE is - planned; and future mail servers in the UK will prefer - to use it. The fact that many of these will run above - X25 networks while Catenet sites will use TCP is - immaterial; the necessary transport-level conversion - will be handled by the UCL Protocol Convertor. The - existing ARPANET FTP is demonstrably NCP-specific, and - the TCP version of this will at the minimum be - Catenet-specific in its use of Telnet. - - - 3.3.1 FTP Staging - - An important consequence of this is that FTP staging - will be required, for three reasons. - - (i) It will be necessary to stage messages into and - out of the ARPANET. This applies regardless of - the FTP used, as ARPANET mail is restricted to - use of the ARPANET FTP. - - (ii) It will be necessary to stage messages between - mailers in the Catenet using the TCP FTP and - those using the NI FTP. If UCL does decide to - use the TCP FTP, this decision is merely - postponed until a UK community emerges based on - the NI FTP. - - (iii) It may eventually be necessary to stage - messages between UCL and Telenet/Tymnet - servers, even if they adopt a common format, if - a different transport mechanism is used. - - It is proposed here that experiments with the first two - stagings be performed at ISIE, or some other TOPS20 on - the ARPANET which has all three systems. In its final - form, the staging system would consist of a daemon - which would process the mail file at a special account - and forward messages to the appropriate sites. The - structure of such a system is shown in Figure 1. - - - 3.4 Addressing - - Only four message sites in the UK are initially - -Bennett [Page 5] - -INDRA Note 897, IEN 141 Message System Issues - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Figure 1: Staging Daemon System - - - - expected to be heavily involved in the system. - Initially, development will be in the UCL message - server itself (UCL-MUnix), while at a later stage the - UCL teaching and research machines (UCL-TUnix and UCL- - RUnix), and at least one machine at RSRE will become - involved. While other message servers may emerge at a - later date, it is not expected that this will happen - rapidly. Staging to Catenet and ARPANET sites will be - through ISIE; the problem of staging to Telenet/Tymnet - -Bennett [Page 6] - -INDRA Note 897, IEN 141 Message System Issues - - - - - sites must be considered if and when it arises. - - The UK sites should be able to exchange mail directly - through the use of addresses of the form 'user@site' - (e.g. Ruth@UCL-TUnix). This format could be used - throughout the mailing address space, although it - involves the message sites not under UCL control to - make special modifications to their mailers. Thus an - ARPANET mailer presented with a return address - 'Ruth@UCL-TUnix' would have to recognise that this - should be sent to ISIE; the ISIE mailer would have to - recognise that the message should be added to the UCL - daemon's mailbox and the UCL daemon would then forward - the message to UCL-TUnix. - - Two other alternatives are source routing and - hierarchical addressing. A source routed form of the - address might be identical in appearance to the ARPANET - (by making 'UCL' a synonym for ISIE, in much the same - way the 'UDel-EE' is a synonym for 'Rand-Unix'), - although for parsing purposes it would be preferable to - rearrange it: (Ruth-(TUnix@(UCL))). Local messages - would then appear as: Ruth-TUnix. An ARPANET address - would appear to a message server user in a form such - as: Kirstein-ISI@ISIE. Staging message servers would be - required to parse the address into intermediate forms. - Further, the terminal staging server for the catenet - and for ARPANET would be required to suppress - intermediate fields. Thus the UCL daemon at ISIE would - have to transform all addresses of the form: Kirstein- - ISI@ISIE to Kirstein@ISI and back again for traffic in - the reverse direction. Source routing is the favoured - solution of the University of Delaware's MMDF group. - - Hierarchical addressing is actually the official - ARPANET standard as described in RFC 733, although it - is not implemented. It is also the solution favoured in - Postel's Internet system. Under this scheme UCL would - refer to a widely-known addressing domain, and - addresses would take the form: Kirstein-ISI@ARPA and - Ruth-TUnix@UCL. In practice, since only two hops and - only one staging point are involved the two forms are - virtually synonymous - which is a good argument for - postponing a real decision until we see an addressing - hierarchy actually emerging! The differences will be - seen when an RSRE server becomes active. In this case, - an ARPANET site has the choice of the following forms: - - Bryan@NSide (global) - Bryan-NSide@PPSN (hierarchical) - Bryan-NSide-MUnix@ISIE (source routing) - -Bennett [Page 7] - -INDRA Note 897, IEN 141 Message System Issues - - - - - Note that in any form changes of the type above are - required to ARPANET mailers. With global and - hierarchical addressing, ARPANET tables must be - modified to recognise mail servers (global address) or - mail address spaces (hierarchical address). This is - not required with source routing. The mailer at the - staging site must additionally recognise that account - names taking a certain format should automatically be - accepted and routed to the UCL mail daemon at that - site. Both solutions therefore require some structuring - of the address. In the examples above, a hyphen ('-') - has been used as a component separator. In fact, this - is probably a bad choice. Two possibilities are: - - (i) Use of some other separator, such as %. - - (ii) Use of the comment fields allowed by the mail - protocol. - - The second choice has the convenient side effect that - the account checking procedure need not be changed at - the staging site, as addresses may then look like: - UCLfor a source-routed - format). However not all message preparation facilities - will include comment fields (e.g. 'answer' under MSG). - - Since this note was first drafted my attention has - been drawn to RFC754 (Out-of-Net Host Addresses for - Mail by J. Postel). This note considers four - solutions: three are variants on the global solution, - and the fourth involves name structuring. Postel's note - favours a structured name solution. This is compatible - with either a source routed or hierarchically - structured solution. - - - 3.5 Status Reporting - - Finally in this section there is the issue of status - reporting. Currently, most ARPA-type message systems - give an immediate report, with possibly a mailer- - generated message if there is some subsequent failure. - For staged or mailbagged messages an immediate report - of success can only imply success at the first stage. - Thus it is important that staging daemons which cannot - successfully deliver a message must be prepared to - generate messages indicating why failure occurred. This - can be done simply through the use of the current - message generation mechanism. - - - -Bennett [Page 8] - -INDRA Note 897, IEN 141 Message System Issues - - - - - 4. Message Server Design - - 4.1 User Interface - - The primary service which must be provided is a - reliable, efficient and cheap method of sending and - processing text messages exchanged amongst the user - community. It is not intended to provide a multimedia - service, although this is an important research goal of - the program. Within this constraint, a user of the - message server must be able to: - - (i) Prepare messages. - - (ii) Send messages to remote users. - - (iii) Receive messages from remote users. - - (iv) Read messages. - - (v) Be assured that messages are safely stored and - are recoverable in the event of system failure. - - (vi) Be able to obtain adequate online help on the - use of the server. - - In addition it is desirable that the user be able to: - - (i) Prepare message files which may not be sent - immediately. - - (ii) Archive and dearchive messages. - - (iii) Manipulate messages in file structures of his - own creation. - - (iv) Answer and forward messages. - - (v) Obtain hardcopy listings. - - (vi) Maintain mailing lists. - - (vii) Annotate messages. - - - This list is clearly not exhaustive, and the aims of - the user interface should be continually reevaluated in - the light of user experience, development experience, - and the recommendations of other message groups, such - as IFIP TC6.5. Nor does it imply any evaluation of the - difficulty of implementation: answering and forwarding - -Bennett [Page 9] - -INDRA Note 897, IEN 141 Message System Issues - - - - - messages should be comparatively trivial; while a - satisfactory remote hardcopy listing service is a major - problem. - - Following the general approach taken in this note, it - is proposed that MSG be used at least initially as the - basis of the user interface in the message server. The - user would enter MSG automatically as his login shell. - It is expected that the repertoire of commands will be - changed and extended in order to provide the full range - of services listed above (e.g. for the maintenance of - mailing lists). This may require the single-letter - command interface to be modified. It is also expected - that the character-at-a-time interface and the use of - TV editors would have to be altered to fit the needs of - users accessing the system via XXX terminals, which - favour line-oriented commands and editors. These issues - will be reexamined in the light of experience gained. - - - 4.2 Message Management - - An important issue is the internal design of the - message server. The current system of personal mailbox - files each containing a copy of all messages is complex - and wasteful in a Unix system solely devoted to message - handling. It is proposed here that database structures - be examined in which only one copy of a message is kept - in a central directory, and that the user's current - mail file, and any other mail files he keeps, consist - solely of descriptors pointing to the message and to - other cross-referencing descriptors which may be - needed. The structure of the system is shown in Figure - 2. - - The details of the descriptor structure are not - considered in this note. However, a number of important - issues arise. The fundamental question is: should all - messages be kept in a single file, or each message in a - separate file? The answer chosen has important - implications for the limits on the size of the system, - the method of updating the system, methods of accessing - messages, and many other issues. - - In the second method, messages may be found rapidly - by filename, and garbage collection is considerably - simplified through the use of Unix file management - facilities, but on average 256 bytes (half a disc - block) will be wasted per message. Further, at most an - entire file system of 64K blocks can be allocated to - message service, although this is not a serious - -Bennett [Page 10] - -INDRA Note 897, IEN 141 Message System Issues - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Figure 2: Message Management Structure - - - - restriction. Assuming that most messages will be small, - of the order of 2K characters, the file system would - allow something less than 16K messages, wasting some 4K - bytes of space. Thus a more serious limitation is the - number of inodes (file descriptors) allocated to the - system, which is currently about 2^13 - allowing 8K - files. Increasing this to 2^14 is not difficult and - will allow 16K files, of which a significant proportion - would be for user descriptor information. - -Bennett [Page 11] - -INDRA Note 897, IEN 141 Message System Issues - - - - - The first method allows more efficient use of space - and places a much looser restriction on the number of - messages that may be retained, but requires building - searching and garbage collection facilities parallel to - Unix's. In order to use these, moreover, either a - complex file structure must be defined, or a master - descriptor file retained. - - Pending further investigation, the second choice is - favoured at this stage. The fact that only one copy of - a message need be kept should help to minimise the - effects of the restrictions. Ensuring this may be a - problem, especially if multiple copies of a message are - received. Hence an important aspect of the system may - be to examine incoming messages and attempt to detect - duplicates of existing messages. - - - 5. Conclusions - - The message system discussed here is centred around - text messages based largely on ARPANET-style formats, - at least initially. Nevertheless there are several - important issues which must be resolved in order to - bring up a workable system. These issues include: - - (i) Economic use of transfer and storage resources. - - (ii) The structure of UCL-style mail daemons at - staging site(s). - - (iii) The modification of other mail servers to - handle UCL mail. - - (iv) Basic addressing style. - - (v) Detailed user interface. - - (vi) Message management issues. - - This note has indicated some lines of approach to these - problems. They will be examined in more detail in - future notes, prior to the commencement of actual work - on the system later this year. It is clear that - satisfactory progress requires cooperation and - discussion with other parties, notably the DARPA - Catenet group and groups using various public carrier - services. While the projects of the former are more - advanced at this point, it is expected that the latter - groups will become increasingly important in the long - term. - -Bennett [Page 12] - diff --git a/text/ien/ien142.txt b/text/ien/ien142.txt deleted file mode 100644 index e01bbee4..00000000 --- a/text/ien/ien142.txt +++ /dev/null @@ -1,119 +0,0 @@ - - -IEN 142 K. Harrenstien - SRI - J. Postel - ISI - April 1980 - - - - Time Server - - - - -This note describes the Time Server protocol. This protocol provides a -site-independent, machine readable date and time. - -One motivation arises from the fact that not all systems have a -date/time clock, and all are subject to occasional human or machine -error. The use of time-servers makes it possible to quickly confirm or -correct a system's idea of the time, by making a brief poll of several -independent sites on the network. - -This protocol may be used either above the Transmission Control Protocol -(TCP) [1] or above the User Datagram Protocol (UDP) [2]. - -When used via TCP the time service works as follows: - - S: Listen on port 37 (45 octal). - - U: Connect to port 37. - - S: Send the time as a 32 bit binary number. - - U: Receive the time. - - U: Close the connection. - - S: Close the connection. - - The server listens for a connection on port 37. When the connection - is established, the server returns a 32-bit time value and closes the - connection. If the server is unable to determine the time at its - site, it should either refuse the connection or close it without - sending anything. - - - - - - - - - - - - - - - [Page 1] - - -IEN 142 April 1980 -Time Server - - - -When used via UDP the time service works as follows: - - S: Listen on port 37 (45 octal). - - U: Send an empty datagram to port 37. - - S: Receive the empty datagram. - - S: Send a datagram containing the time as a 32 bit binary number. - - U: Receive the time datagram. - - The server listens for a datagram on port 37. When a datagram - arrives, the server returns a datagram containing the 32-bit time - value. If the server is unable to determine the time at its site, it - should discard the arriving datagram and make no reply. - -The time is the number of seconds since 0000 (midnight) 1 January 1900 -GMT, such that the time 1 is 12:00:01 am on 1 January 1900 GMT; this -base will serve until the year 2036. For example, the time -2,398,291,200 corresponds to 0000 1 Jan 1976 GMT. - -REFERENCES - - [1] Postel, J., "DOD Standard Transmission Control Protocol", - IEN 129, USC/Information Sciences Institute, January 1980. - - [2] Postel, J., "Used Datagram Protocol", IEN 88, USC/Information - Sciences Institute, May 1979. - - - - - - - - - - - - - - - - - - - - - - - [Page 2] - \ No newline at end of file diff --git a/text/ien/ien143.txt b/text/ien/ien143.txt deleted file mode 100644 index 096fe622..00000000 --- a/text/ien/ien143.txt +++ /dev/null @@ -1,334 +0,0 @@ -M.I.T. Laboratory for Computer Science IEN 143 - March 11, 1980 - - -Environment Considerations for Campus-Wide Networks - -by Jerome H. Saltzer - - -"The Campus Environment" is a name proposed here to identify a - -particular set of physical properties, geographical extents, data - -communication requirements, administrative relationships, and needs for - -flexibility that characterize our university campus. With only minor - -exceptions they equally apply to a corporate site, a government complex, - -or another university. This note discusses seven characteristic - -properties of this campus environment. These seven properties provide a - -basis for design decisions for a data communication network to span a - -campus. As will be seen, the properties of this environment are quite - -different from those of a single building, or of a nation-wide, - -common-carrier-based network. - - -Seven Properties of the Campus Environment - - -1) It has a geographical extent beyond a single building, but within a - - single political and administrative boundary that permits - - transmission media to be installed without resort to a common - - carrier. - - -This first property is essential, so as to allow exploitation of - -low-cost, high-bandwidth communication technology. With current - -technololgy and prices the difference in costs between communicating - -over privately installed equipment and using common carrier facilities - -can be a factor between 10 and 100. - - -2) Within this geographical area, a large number of nodes--that is, - - 2 - - - computers, data sources, and data sinks--require interconnection. - - Today the number of such nodes may be in the range of ten to one - - hundred. Looking ahead to the advent of desktop computers, one may - - be faced with from a few hundred to several thousand nodes by the - - end of the next decade. - - -The combination of the previous two properties seems to make it - -inevitable that local interconnect technologies such as the ETHERNET, - -CHAOSNET, L.C.S. Ring net, HYPERCHANNEL, or MITRENET cannot by - -themselves completely accomplish the required interconnection, since all - -such technologies that have so far been demonstrated have limitations on - -distance on the order of a thousand meters and limitations on node count - -on the order of a hundred nodes. Thus one would expect to use those - -technologies to attach clusters of nodes into subnetworks, for example - -all the nodes in a single building, and then install interconnections - -(gateways) among these subnetworks. For our own campus, one might - -envision by 1990 as many as 100 subnetworks each comprising an average - -of, say, 100 nodes. Subnetworks and gateways introduce the problem of - -how to route a message from a source node through a series of - -subnetworks and gateways, so that it ends up at a desired target node. - - -3) Administratively, there exist forces both for commonality and for - - diversity of network attachment strategies. The primary force for - - commonality is a desire to be able easily to set up communications - - between any pair of nodes on the campus. The primary force for - - diversity is that the choice of a computer, data source, or data - - sink typically pre-determines the technology of the network to - - which it must be attached, because off-the-shelf network hardware - - 3 - - - for that node may be available in only one technology. Further, - - some applications may have special requirements for some - - connections (e.g., high bandwidth) that can be met only with a - - particular network supplier's equipment, yet still need occasional - - "ordinary" connections to nodes elsewhere. Thus the emerging - - diversity of local networks will continue, and probably increase, - - rather than decrease, with time. - - -4) The worldwide academic, commercial, and regulatory community has - - not yet reached anything resembling a consensus on how functions - - should be divided. Arguments range over issues ranging from obscure - - matters of taste, through fundamental technical disagreements about - - which requirements should have priority in design, to alternative - - opinions of the directions that communication technology is moving. - - Many different and competing standards have been proposed, and one - - can find in the literature a good technical case against any one of - - them. One must anticipate that these arguments will be reflected - - internally in the campus environment, in the form of a diversity of - - protocols and standards, and particularly in the requirement that - - any mutually consenting set of nodes be able to carry on - - communication with one another using a protocol that no one else - - has ever heard of, much less agreed to. [Imagery borrowed from a - - Chaosnet working paper by David Moon.] - - -This fourth requirement suggests strongly that any network - -interconnection strategy that must be implemented today should have a - -campus-wide lowest layer of protocol that accomplishes datagram passing - -between any two nodes while making an absolute minimum number of - - 4 - - -assumptions about the nature of the higher-level communications that are - -taking place or the policy of network administration. Some typical - -assumptions that should be avoided unless an unusual opportunity is - -obvious are: what level of reliability/delay tradeoff is appropriate; - -how routing should be optimized; fragmentation/reassembly strategy; flow - -control requirements; addressing plan; and particular network topology. - - -5) Because a data communication network is a campus-wide service, - - there will be no single user or user group with a wide-enough - - interest to administer the entire network. This means that network - - administration will either be done by a haphazard confederation of - - special interest groups or else by a chronically underfunded - - central service organization modeled on the one whose role is to - - minimize telephone costs. - - -In either case, this property places a requirement on the network - -interconnection technology that it be robust and self-surviving to every - -extent imaginable. Trouble isolation must be easy to accomplish and easy - -for individual users to participate in if they are so inclined, because - -trouble isolation and repair may involve multiple administrations. - -Simplicity of operation of gateways is important, so that operation can - -be completely unattended for long stretches of time. A network design - -approach that requires close monitoring is undesirable. - - -6) The topology of subnetwork interconnection will be administered - - partly with central planning and partly without. This property - - arises from two needs: First, a "dependable" set of gateways that - - one can expect to exhibit predictable and stable properties is an - - essential backbone to a useful service. A centrally planned and - - 5 - - - administered set of gateways would provide this dependability. - - Second, whenever a node finds that for some reason it is attached - - to two subnetworks, it may find that it is useful in some of its - - applications to serve also as a gateway between the subnetworks; - - yet it may not want to take on the official responsibility of being - - a publicly available gateway. Another example of a gateway that is - - not centrally administered may arise if some particular application - - needs, and has purchased the gateway equipment to support, a path - - through the network with special properties of delay, reliability, - - bandwidth, or privacy. The person or organization that has - - purchased the special gateway equipment may not be prepared or - - willing to allow public use of it. Alternatively, a user may wish - - to avoid use of a sometimes troublesome gateway that is claimed by - - its owner to be perfectly operating. - - -7) External networks such as TELENET, the ARPANET, TYMNET< XTEN, SBS, - - or A.C.S., may be attached to some nodes, and some of those nodes - - will serve as gateways between the campus network and the external - - networks. In some cases, the external network will be used simply - - as a "long link" in the campus net. In other cases, facilities - - within the campus net will set up communication paths to services - - having no other connection with or knowledge of the campus net. - - Both kinds of cases require careful consideration of the - - interactions between internal and external network properties. - - -Note that the campus environment has all these properties only if we - -assume the technological opportunity mentioned in point one: that - -low-cost hardware and media can provide communication paths in the range - - 6 - - -from 1 to 10 Mbits/sec. between any two points within the campus. - -Availability of interconnect media and subnetworks with this bandwidth - -has been demonstrated in several forms. Gateways that operate with such - -bandwidths may be harder to construct, and that concern is one of the - -considerations involved in developing a campus-wide net. Individual - -nodes that can sustain these data rates for very long are likely to be - -rare; software often limits the rate at which a mode can act as either a - -data source or data sink. Instead, the high bandwidth technology is to - -be exploited in two ways: - - - 1) to provide enough capacity to handle the aggregate demand of - - many lower-bandwidth sources and sinks of data. - - - 2) non-optimal strategies that are relatively simple to implement - - or administer can be considered; it is not a requirement that - - every bit of the available band- width be optimally utilized. - - -The availability of high bandwidth, together with lack of a requirement - -to use that bandwidth efficiently, is probably the most fundamental - -technical difference between the "campus-wide network" and the - -commercial long-haul data communication network, a difference that can - -lead to significantly different design decisions. Future notes in this - -series will explore some of these specific technical design - -consequences. - diff --git a/text/ien/ien144.txt b/text/ien/ien144.txt deleted file mode 100644 index d3b4b9bf..00000000 --- a/text/ien/ien144.txt +++ /dev/null @@ -1,1230 +0,0 @@ -M.I.T. Laboratory for Computer Science IEN 144 - March 11, 1980 - - -Source Routing for Campus-Wide Internet Transport - -by Jerome H. Saltzer - - -This note proposes that for the internet addressing layer of a - -campus-wide local area network, the source routing mechanism suggested - -by Farber and Vittal [1] and discussed by Sunshine[2] may have several - -advantages over hop-by-hop routing schemes based on universal or - -hierarchical addresses. The campus environment, as defined and - -discussed in local network note 21, requires many subnetworks connected - -by gateways, and it has a variety of other special properties of - -administration. The primary advantage of source routing in this - -environment is simplicity of implementation of the gateways that - -interconnect subnetworks with consequent improvement in cost, - -maintenance effort, recovery time, ease of trouble location, and overall - -management effort. Secondary advantages of source routing when applied - -to the campus environment include: 1) a clearer separation of physical - -addressing from logical naming mechanisms in protocol design, 2) - -elimination of stability, oscillation, and packet looping - -considerations, 3) ability for a source to control precisely a route so - -as to optimize a particular service goal (e.g., response time, - -reliability, bandwidth, usage policy, or privacy), 4) deferment to a - -higher protocol level of the detailed design of the - -fragmentation/reassembly strategy required to pass through intermediate - -networks with small maximum packet sizes, and finally, 5) the ability to - -accommodate both official and unofficial gateways between subnetworks. - - -Two disadvantages of source routing are: 1) that the route used will - -tend to be relatively static and therefore cannot optimize use of - - 2 - - -communication facilities as well as the potentially more dynamic - -hop-by-hop route selection system, and 2) route selection must be - -accomplished somehow, and sine the mechanism to do this selection is not - -specified by this protocol level, some additional mechanism must be - -designed to provide this function. The argument made here is that the - -first disadvantage is not serious in an environment such as a campus, in - -which the los cost of high bandwidth communication can make optimization - -less important. The second disadvantage may be less serious than it - -appears when one considers that a higher-level name resolution service - -is required in any case, and that service cal also provide route - -selection service. In fact, it may be possible to turn this need into - -an advantage, since there can be more than one such route selection - -service, one of which is based on simple global or hierarchical network - -names, while another, perhaps experimental or research service, provides - -an elaborate interactive directory search facility or a private route - -pattern. - - -How Source Routing Works - - -Source routing among a collection of subnetworks is a mechanism that - -comes into play at the next-to-bottom layer of protocol, sometimes - -called the "internet" layer. Figure one illustrates this two-layer - -arrangement. The bottom layer, which we may call the "local transport" - -layer, is a protocol for delivery of a packet within a local subnetwork - -such as a single ETHERNET, CHAOSNET, of L.C.S. Ringnet. Routing within - -the local transport protocol is usually accomplished by physically - -broadcasting the packet to all nodes on one subnetwork; any node that - - 3 - - -recognizes its own local transport address at the front of the packet - -will receive it. - - - local transport internet transport - protocol protocol - - +---------+ --- - | | \ - +---------+ | - | local | | local - |transport| > transport - | address | | packet - +---------+ | header - | | / - +---------+ --- -------> +---------+ --- - | | \ | | \ - | | | +---------+ | - | | | | internet| | internet - | | | |transport| > transport - | | | | address | | packet - | | | local +---------+ | header - | | > transport | | / - | | | packet +---------+ --- - | | | contents | | \ - | | | | | | internet - | | | | | > transport - | | | | | | packet - | | / | | / contents - +---------+ --- -------> +---------+ --- - - -The higher level protocols carried in the internet transport pactet -contents take care of reliability control, FIFO byte streams, -source/sink flow control, file transfer, remote login, etc. - - - Relationship between local transport protocol, - internet transport protocol, - and other communication protocols. - - - Figure 1. - - -The next-to-bottom, internet layer is a protocol for delivery of a - -packet between any pair of nodes on the campus. One starts a packet on - -its way by placing the address of a gateway in the local transport - -address field, and what may be called the "internet name" of the target - - 4 - - -node in the internet name field. The local transport medium carries the - -packet to the gateway, which examines the internet name field to - -determine what local transport address to use to get to the next - -gateway. In turn, the internet name field is again interpreted by - -successive network gateways to determine which local transport address - -should be used for the next step of this packet's journey. - - -There have been suggested several alternatives for the interpretation of - -internet names. Three of these are: - - -1) Unstructured unique identifier. Every node on the campus-wide net - - has as its internet name a permanent unique identifier. Each - - gateway has a set of tables or other rules that allow it to - - determine the appropriate next step in the route to every possible - - named node. (Thus this approach is sometimes called "step-by-step" - - or "hop-by-hop" routing.) In its most general form, the unique - - identifier may be interpreted either as the name of the node or as - - the name of the point on the network to which the node is attached, - - depending on the network's convention on what happens to the name - - if a node is disconnected and reattached to a different place. - - -2) Hierarchical identifier. In this alternate form of hop-by-hop - - routing, the internet name of each node is a multi-part field. For - - example, a two-part hierarchical identifier might consist of an - - identifier of the subnetwork to which the node is attached and a - - node number (usually the local transport address) of the node on - - that subnet. For this kind of internet name, each gateway has a - - set of tables or rules that allow it to determine the appropriate - - next step in the route to every possible named subnetwork. Since - - 5 - - - there are many fewer subnetworks than nodes, these tables should be - - much smaller than in the case of the unstructured unique - - identifier. Reduction in table size is the chief attraction of the - - hierarchical identifier, and the argument can be extended to - - identifiers of more than two parts, network groups, and still - - smaller tables. Because the hierarchical identifier contains - - components that are names of parts of the network, this kind of - - network name is almost always thought of as naming the network - - attachment point, rather the node that is attached to it. - - -3) Source route. The internet transport layer contains, instead of a - - network name, a variable-length string of local transport - - addresses, with the property that each gateway merely takes the - - next local transport address from the string, moves the address to - - the local transport protocol address field, and sends the packet on - - its way. With this approach, a gateway needs no knowledge of - - network topology, so the tables required for hop-by-hop routing - - vanish. A source route unquestionably identifies a network - - attachment point, quite independently of what node is attached to - - that point. Any attempt to make an interpretation that a source - - route identifies a node rather than an attachment point would be - - strained at best. - - -Note that if the network is arranged as a two-level hierarchy, with a - -single "supernet" acting as the only communication path among all the - -remaining subnetworks, then the two-part hierarchical identifier taken - -together with the local address of the nearest gateway to the supernet - -is an example of a source route and the gateways can become very simple. - - 6 - - -However, the hierarchical identifier can be used even if the network - -topology is not hierarchical, by providing an appropriate routing - -algorithm in the gateways. In that case, only the final part of the - -route; even it might actually be interpreted or mapped by the final - -gateway. - - -Note also, that it is common for a single node to have several - -activities underway at once. For example, a time-sharing system may - -have many logged-in users, several of which are using the network for - -communication between their terminal and the time-sharing system. The - -receiving network software in the time-sharing system then finds that it - -is acting as a kind of gateway, between the campus network on the one - -hand and the array of activities inside the node on the other. As a - -result it is commonly proposed that the internet name not identify a - -node but rather a particular activity within that node. This proposal - -usually takes the form of an additional field in a hierarchical internet - -name, known as a "socket number" or "link". There is a controversy over - -what level of protocol should recognize this socket number, and how big - -it should be. For our purpose, it is sufficient to observe that the - -socket number is a kind of route for use by the receiving node. - - -The mechanics of operation of a source-routing gateway as a packet - -passes through are quite simple; this simplicity is the chief attraction - -of source routing. There are several alternative detailed approaches; - -to permit explicit discussion one implementation will be described here. - -[This implementation is only a slight variation of the one proposed by - -Farber and Vittal.] This implementation dynamically constructs a - -reverse route. It works as follows: - - 7 - - -1) The internet source route field is structured as shown in figure - - two, with two one-byte numerical fields and a variable (but - - constant for the lifetime of the packet) number of bytes of route. - - Each local transport address uses an integral number of bytes, - - typically one or two. The first count remains constant for the - - lifetime of the packet; the second is updated at each gateway. - - -2) A gateway receives a packet using the local transport protocol of - - one network (call it network A) and wants to sent it out on a - - second network (call it network B). For the moment, assume that a - - gateway interconnects exactly two nets; generalization for a - - multinet gateway involves a simple conceptual extension described - - later. - - -3) The gateway parses the internet source route field using the "start - - of next local address" count to obtain the next step of the route. - - (We presume that the gateway is endowed with the knowledge of how - - many bytes of route are required by network B.) It extracts the - - appropriate bytes and places them in the local transport address - - field for network B. Then it replaces those bytes of the internet - - source route with its own local transport address on network B, - - thus contributing its part of the reverse route. Finally, it - - increments the "start of next address" field by the number of bytes - - it extracted from the route, and it invokes the local transport - - level to send the packet out on network B. (Note that this reverse - - route construction strategy assumes that all paths are - - bi-directional and that all local transport addresses on any single - - network are of the same size.) - - 8 - - - +------------------+ - | | - | route byte count | - | | - +------------------+ - | start of | - | next local | - | address | - +------------------+ - | | - | local address 1 | - | | - | - - - - - - - - | - | | - | local address 2 | - | | - | - - - - - - - - | - | | - | local address 3 | - | | - | - - - - - - - - | - | | - | | - | | - | | - | | - |-----------/ | - / | - |-------/ /--------| - | / - | /------------| - | | - | | - | - - - - - - - - | - | | - | local address n | - | | - +------------------+ - - - Possible implementation of an internet source route - - - Figure 2. - - -4) If a gateway interconnects three or more subnetworks, it simply - - behaves as though it is itself a subnetwork with three or more - - gateways to other subnetworks. The next byte of route is - - 9 - - - interpreted as a local address on this hypothetical subnetwork. - - The reverse route is constructed as usual. - - -The operation described above is repeated at every gateway, and may also - -be repeated one or more times inside the target node to dispatch the - -packet to the correct activity within that node. Similarly, when a - -packet originates, it may go through one or more route selection steps - -before it actually is placed on the first subnetwork. [From a viewpoint - -of telephone terminology, a source route system is a kind of - -electronically implemented step-by-step switch, with each subnetwork, - -multi- mailed gateway, as multi-activity host acting as a multi-position - -switch. However, because it is electronically implemented and thus not - -restricted to ten-position mechanical switches, this step-by-step switch - -does not have the limitations of the corresponding telephone - -technology.] - - -Where Routes Come From - - -For source routing to work, the source of a message must somehow know - -what route to place in the internet header of a packet before it - -launches the packet into the internet environment. Thus requirement - -superficially implies that every source of packets be very - -knowledgeable, which sounds like a terrible burden to small nodes--every - -node on the network would have to be able to create or deduce suitable - -routes. In fact, that implication is unwarranted--all that is really - -required is that every source of messages know of a place in the network - -to ask to obtain routes. Once a source has learned of a suitable route - -to a particular target, it can encache that fact and reuse it as often - - 10 - - -and as long as it wants--until the route fails to work or there is a - -reason for it to believe that a better route exists. - - -The most general form of route selection would come by providing one (or - -more, for reliability, quick response, or administrative convenience) - -routing server in the network. A routing server is a specialized node - -whose function is to maintain an internal representation of the topology - -of network interconnection (along with any useful class-of-service - -information about various subnetworks and gateways) and also to act as a - -name resolver. The desired target must, of course, have some name, - -perhaps the unstructured unique identifier or hierarchical identifier - -earlier suggested as an alternative internet name. The routing server - -then implements a map from internet names to routes. - - -There are two independent dimensions along which this routing server may - -be more or less sophisticated: in its name-resolution abilities, and in - -its route-choosing abilities. To begin with, let us assume a particular - -fixed, fairly simple name resolution scheme--say a hierarchical - -identifier--with the understanding that this choice has little or no - -bearing on routing sophistication. The routing choice mechanism, then, - -can range from a simple fixed table of routes from all possible sources - -to all possible targets (perhaps cleverly compressed with knowledge of - -the actual net topology) to a dynamic mechanism based on frequent - -exchanges of traffic statistics with gateways and other routing servers - -throughout the network. - - -Thus, to get started, a node that wants to originate messages needs to - -know one route: a route that can be used to send a request to a routing - -server to obtain other routes. It would be possible, though poor - - 11 - - -practice, to embed this "route to the nearest routing server" in the - -software of every node; a more general and flexible approach would be - -for a newly-arrived node to use either a broadcast or a breath-of-life - -strategy to discover this one route. In the broadcast strategy, a node - -broadcasts on its local transport network a request for the "route to - -the nearest routing server". For this particular broadcast route - -request, at least one gateway on every subnetwork is prepared to act as - -a rudimentary routing server. In the breath-of-life strategy each - -gateway periodically (say once every ten seconds) broadcasts over its - -local subnetwork a packet containing the route to the nearest routing - -server. A newly-operating node waits for the next breath-of-life packet - -before it can request its first route. - - -Having found a route to a target node, if that node carries on more than - -one activity it may be necessary to hold a further negotiation with the - -target to learn how the target wants the source to identify the - -particular activity in which it is interested at the target. This - -negotiation probably takes place by sending a rendezvous packet to the - -host and receiving in return a packet that contains some extra routing - -steps to be appended to the route originally obtained from the routing - -server. (Note that this protocol step is just the source-routing - -variation on a negotiation that takes place in every such protocol; it - -is not an extra step introduced by source routing.) - - -Separation of Routing and Naming - - -The main difference between source routing and its alternatives is that - -the responsibilities both of route choice and of name resolution are - -moved from the internet gateways to some other agent. In turn, this - - 12 - - -responsibility change allows the internet transport protocol to be - -defined and the gateways to be implemented without freezing a particular - -form of network-wide naming. A commitment to a particular form of - -network-wide name is made in the design of the name resolution part of a - -routing server, and since it doesn't matter to a gateway where a route - -comes from (the gateway cares only that the next step works,) there can - -be more than one kind of name resolution going on at the same time, - -perhaps implemented by different routing servers. Practically, one - -would expect that there might be one centrally administered and - -widely-used naming method implemented by standard routing servers, and - -in addition some experimental or special-purpose routing servers - -developed for special applications or to experiment, for example, with - -interactive resolution of catalogued servicer names, or multi-casting - -protocols. These latter ideas, while likely interest for the future, - -seem inappropriate to embed now in the internet transport protocol layer - -on grounds of inexperience. But they can be tried in the environment of - -a source-routing internet transport strategy without disruption and - -without change to the gateways. It is even possible for one routing - -server to have a different view of the extent of the network from - -others. Overlapping virtual networks are thus implementable with this - -strategy. This feature might be used, for example, to segregate "local" - -communication paths from "long-distance" paths that involve routes - -through external trifled networks. - - -At the same time, the source route field format places little constraint - -on the format of the local transport addresses for any particular - -subnetwork--only that there be an integral number of bytes whose number - -is known by the gateway that moves the packet to the subnetwork. This - - 13 - - -flexibility means that paths can go almost anywhere: in particular they - -can transverse "outside" networks no matter what their addressing or - -internal routing strategy, so long as at the far end of the outside - -network is a gateway that understands how to continue the packet on its - -journey. - - -Separation of the mechanics of routing from the functions implemented by - -a naming or addressing system has the advantage or clarifying some - -frequent protocol design arguments that boil down to how much naming - -function should be embedded in the lowest protocol layers. For example, - -it is usually proposed that an extra field, for use within the target - -node, be carried along as a part of the internet address. This field is - -known as a "link" field in the ARPANET, the "channel" in X.25, and the - -"socket" in ARPA's Internet for TCP and in the internet layer of the - -Xerox PUP. The argument develops over how big this field should - -be--just large enough to distinguish among the activities or connections - -a host carries on at one time, or generously large enough to distinguish - -among all activities or connections the host will ever carry on. The - -former choice takes the view that the field in question is merely the - -last step in a route, the latter choice makes the socket number a unique - -identifier, which is handling a naming function for the host, perhaps - -allowing it to distinguish old connections from current ones. - - -The source routing strategy finesses this argument in that it allows the - -design of the packet format at the level of the internet transport layer - -address to be frozen without forcing a decision about socket number - -size. As many bytes of route as the target host needs to distinguish - -among its current connections can be included as part of the source - - 14 - - -route and learned as part of the initial negotiation with the target - -host using a well-known route to its negotiator. A unique identifier - -for a connection can be returned as part of that negotiation, and it can - -be included in a connection identifier field of the next higher level of - -protocol, to insure that packets arriving over a route are part of a - -current connection. - - -Gateway Simplicity and Network Maintenance - - -With the source routing scheme just described, a gateway makes no - -decisions (possibly it should check to insure that the route byte count - -hasn't been exceeded) and it remembers nothing after the packet goes by. - -This simplicity of operation and lack of memory means that one can in - -principle implement such a gateway with a small amount of random logic - -and a pair of packet buffers interconnecting two local network hardware - -interfaces. Such an implementation, since it does not involve a stored - -program, has an exceptionally simple recovery strategy: a hardware - -reset to a standard starting state will always suffice. In practice, at - -least a microprocessor would probably be used to collect statistics and - -respond to trouble diagnosis requests, but the basic principle that - -recovery is trivial remains intact. - - -There is one way in which a source-routing gateway is more complex than - -its hop-by-hop counterpart. Every packet that arrives may have a - -different source route size and different next step offset, so a small - -amount of lookup is needed to perform the forwarding operation. A - -related consequence is that higher-level protocols find that their - -headers don't always start in the same position within the packet. - - 15 - - -To create a gateway that can sustain a through transmission rate - -comparable to that of the subnetworks involved requires careful - -budgeting of the machine cycles involved. For example, a bandwidth of 8 - -Mbits/sec. requires being able to pass 1000 1000-byte packets/second, - -leaving a time budget of 1 ms. per packet. If a 0.5 MIPS processor is - -used for the gateway, there must be fewer than 500 instructions executed - -for each packet, with the implication that whatever routing scheme is - -used, it must be extremely simple. The source routing approach makes - -meeting this budget a realistic possibility. - - -Maintenance is directly aided by having such a simple gateway mechanism. - -With little to go wrong, failures should be relatively rare and - -diagnosis and repair should be straightforward. Even in the case where - -a gateway is actually implemented by software in a node attached to two - -local transport networks, the simplicity of action required of a gateway - -are few, and that therefore the program is not only likely to be - -trouble-free but also it is acceptable to embed it in the innermost part - -of the supervisor, where it is less likely to fail because of - -interference by other programs in the same node. Perhaps even more - -important in the case of a software gateway, the simplicity of the - -source-routing approach means that the software required can be quick to - -implement. - - -Route Control - - -One of the more interesting opportunities that arises when source - -routing is used is that the node that is the source of a message can, if - -appropriate, control precisely the route through the internet that - - 16 - - -outgoing packets follow. This control can be applied to solve several - -problems, as follows: - - -a) Trouble location. If trouble develops in a network gateway, it - - will be noticed first as failure of packets routed through that - - gateway to arrive at their destination. Starting at any node that - - notices such a problem, one can route a test packet "out and back", - - through some set of gateways and back to the originating node. A - - series of such tests, tracing successive steps in the route that - - failed, should quickly locate the troublesome gateway. One can - - also imagine extending this idea to route a message into a target - - node and back out again, as a check on the operation of the lower - - levels of that node's operating system. An interesting aspect of - - this approach to trouble location is that any user, if sufficiently - - desperate, can undertake network diagnosis; trouble location is not - - restricted to a network maintenance center that has some particular - - address or special hardware. - - -b) Policy implementation: Some local networks may be paid for by a - - supporting organization that wants to have a say in their usage - - policy. (For example, use of the ARPA network is supposed to be - - restricted to government-sponsored business.) If such a network - - has gateways to two other networks, it could be used as an - - intermediate transport link on some packets flowing between those - - networks. If source routing is used, the node that originates a - - packet can control whether the packet is routed through the network - - in question or, alternatively, avoids that network. (Obviously, - - 17 - - - sophisticated help from routing servers is needed to actually - - implement such a policy, but the opportunity is there.) - - -c) Class-of-Service Implementation. There are a variety of properties - - that an internet connection can have, and that may be different on - - different routes: error rate, transport delay, probability of - - wiretapping, bandwidth. Again, assuming considerable knowledge on - - the part of a routing server, with source routing one can choose a - - route that has class-of-service properties that are tailored to the - - application. - - -d) FIFO Streams. Assuming that all gateways along a given route relay - - packets in the same order that they are received, if the same - - source route is used on several packets, those packets will arrive - - at their target in the same order that they left the source, - - eliminating any need for the target to restore order in what is - - intended to be a FIFO stream. In a hop-by-hop dynamic routing - - system, FIFO delivery cannot be easily insured, so the source and - - target must work harder if that is the function they require. - - -Finally, in an inter-network environment that includes both public and - -private gateways, the precise route control provided by source routing - -seems to be a key to effective use; private gateways can be used by - -their owners while being ignored by everyone else; flaky gateways can be - -bypassed by wary users no matter what administration is responsible for - -them. - - 18 - - -Other Observations - - -There are a variety of other observations that one can make about source - -routes. These are, in no particular order: - - -1) Source routing avoids several problems that can accompany more - - dynamic, highly optimal routing schemes. There is no danger of - - packets circulating in a loop forever, so techniques such as hop - - counts are not needed. There is little concern for startup - - transients, stability, or oscillation in the dynamics of route - - selection. Extra traffic to exchange traffic statistics among - - gateways is not involved, and one does not have to worry about the - - interaction between the reliability of that traffic and the - - stability of the network. There is no requirement that each - - gateway maintain a table that has a number of entries proportional - - to the size of the network. - - -2) Development of network software for a new node can take an - - important shortcut by assembling hand-constructed routes at first. - - As long as the network topology does not change faster than the - - software gets debugged, this technique can be used to get a - - primitive connection operational without the need to program a - - routing server protocol. For quick debugging of a new - - microprocessor this ease of programming the first network - - connection would be quite useful. - - -3) For certain very simple applications (e.g., trouble logging, of - - data collection) one could imagine leaving them permanently in - - place with a fixed, hand-selected route to their target. (Such an - - 19 - - - approach would have to be weighed carefully against the disruption - - that a change in network topology might cause. The point is that - - this opportunity to exploit source routing for simple applications - - does exist.) - - -4) Source is consistent with at least two proposed - - fragmentation/reassembly strategies. Fragmentation can be done by - - a gateway on entry to a subnetwork that has a small maximum packet - - reassembly can be accomplished either at the gateway leaving that - - subnetwork or by the target node. Fragmentation can also be done - - by a fragmentation server, which might be a node whose address - - appears "in the middle" of a route unbeknownst to the source, - - target, or intervening gateways. If it receives a packet that it - - believes is too large to get through some intermediate subnetwork, - - it can fragment that packet and also reroute the fragments through - - a reassembly server on the other side of the bottleneck. Finally, - - one might successfully finesse fragmentation completely by sending - - big packets over a longer or less desirable route that allows big - - packets, while sending small ones the short, desirable way. - - -5) In a manner similar to the fragmentation/reassembly servers just - - described, one can place other specialized servers along a route to - - act as filters, translators, etc. The idea has not been explored, - - but it seems to represent an interesting kind of opportunity. - - -6) Attachment of multi-tailed hosts (the "multi-homing problem") is - - simplified. In a complex internet installation, one might expect - - to find some hosts that have attachments to two or more different - - subnetworks of the internet, perhaps for added reliability or for - - 20 - - - assured bandwidth to services found on different subnetworks. If - - the several attachment points are functionally equivalent, then - - when another node tries to send a message to such a host, there is - - a question of to which one of the several attachment points the - - message should go. A hop-by-hop routing scheme in which gateways - - interpret internet names would require that either the different - - attachment points be assigned different internet names (so the - - originator has the burden of choosing which internet name to use) - - or else a single internet name is used for all the attachment - - points of the multi-tailed host and the gateways add this - - topological fact to their storehouse of routing knowledge and make - - the choice on the fly. With source routing, the burden of choice - - can move to the routing server, where the topological information - - is available to choose a route from the originator to the nearest - - attachment point of the multi-tailed host. Neither the originator - - nor the internet gateways need realize that the target has several - - attachment points. - - -In this last case, as in some others, one can argue that some of the - -apparent simplifications or advantages obtained by using source routing - -are actually one shifts of the underlying problem over to the routing - -server. This argument has some validity, but it overlooks two points: - - -1) Separation of two tangled problem areas, naming and routing, into - - two distinct and largely independent mechanisms simplifies and - - clarifies design, algorithms, and code. - - -2) When one implements routing ad a service supplied by a server, it - - becomes possible to introduce variations on the service by changing - - 21 - - - just the server, or providing an alternate server. When the - - function of routing is distributed among the gateways, changes in - - the service require changing all of the gateways, an undertaking - - that is more difficult and hazardous. - - -Conclusions - - -The premise of this note is that source routing is particularly - -well-suited to the campus environment. The argument goes as follows: in - -the campus environment, one can install high bandwidth lines at low - -cost, since reliance on common-carrier offerings is not required and - -physical facilities are under common control. This high bandwidth - -permits using strategies, such as source routing, that may waste some - -part of the communications capacity by not being optimal. The campus - -administrative environment calls for diversity in protocol, for which - -source routing caters by providing a lowest campus-wide transport - -protocol with a minimum amount of predetermined function that might - -constrain higher level protocol choices. The campus administrative - -environment also calls for diversity in administration, for which source - -routing caters by permitting precise control of complete routes for - -particular messages, and multiple strategies for resolving service names - -or network addresses, as required. It also permits messages to flow - -through an internetwork arrangement despite some of its topology not - -being centrally planned. Source routing allows particularly easy - -trouble location and source routing gateways are exceptionally simple, - -two properties that are important when one assumes a central - -administration that must be cost-conscious or even under-funded. Thus, - -from these arguments one can conclude that, at least for the campus-wide - - 22 - - -internetwork case, source routing is an attractive scheme well worth - -considering. - - -Acknowledgements - - -This note records a series of intensive discussions with David Reed, - -David Clark, Kenneth Pogran, and Noel Chiappa. It also borrows ideas - -and terminology from working papers of the ARPA internet project by Dan - -Cohen, Jon Postel, David Clark, and John Shoch and from working papers - -of the M.I.T. AI Laboratory Chaosnet project by David Moon. Welcome - -comments on early drafts were made by Dan Cohen and John Shoch. - - -References - - -[1] Farber, D.J., and Vittal, J.J., "Extendability Considerations in - - the Design of the Distributed Computer System (DCS)," Proc. Nat. - - Telecomm. Conf., (November, 1973), Atlanta, Georgia, pp. 15E-1 to - - 15E-6. - - -[2] Sunshine, Carl A., "Source Routing in Computer Networks," Computer - - Communication Review 1;, 7, (January, 1977) pp. 29-33. - diff --git a/text/ien/ien145.txt b/text/ien/ien145.txt deleted file mode 100644 index 3f7c6102..00000000 --- a/text/ien/ien145.txt +++ /dev/null @@ -1,870 +0,0 @@ - - - - J. Postel -IEN 145 ISI - 29 May 1980 - - - - Internet Meeting Notes - 14 & 15 May 1980 - - - - -I. INTRODUCTION - - The meeting was held at the Laboratory for Computer Science (LCS) at - MIT. Dave Clark was the host. - -II. OVERVIEW AND OBJECTIVES - - Vint Cerf put forward the problem of internet computer mail as a - topic that must be addressed in the next few months. This would be - an interim system not expected to support multimedia mail but to - operate on TCP and to provide some mechanism for interworking NCP - supported mail with TCP supported mail. - - Another issue is gateway-host interaction, especially for congestion - control. - - A third topic is routing in a large packet radio environment with - optional use of backbone point-to-point links. - -III. STATUS REPORTS - - A. ARPA - - Vint Cerf reported that the IP and TCP specifications (IENs 128 - and 129) are now stamped as DOD standards. DCEC will serve as the - focus for coordinating this within DOD. A seminar for DOD people - is planned for July at NBS to explain TCP. - - The monthly reports are very useful, but still needed are some - milestone schedules, for planning and cross project coordination. - - B. BBN - - Dale McNeill reviewed the work on the VAN gateway, noted the - arrival of the FAX equipment, described the installation of the - PSP terminal at TANUM, and noted that improvements have been made - to the CMCC software. - - Mike Brescia described the VAN gateway in more detail. The - operation of the gateway is still some way off. Current activity - - -Postel [Page 1] - - - IEN 145 -Internet Meeting Notes - - - - focuses on the X.25 interfaces. At this point there was an - extended discussion of low level interface options. - - Jack Haverty described the work on the Unix IP and TCP. Most - recently a version using shared memory for user/TCP communication - has been tested and is 2 to 3 times faster than the older "pipes" - version. Work is just beginning on an IP and TCP for VAX Unix. - This version will be in the kernel and will include the - fragmentation and reassembly features. Also in progress are a TCP - for a HP 3000, and a TCP-TIP in a 316. There was also some - discussion of which versions of Unix are involved: The VAX Unix - is version 7, the current 11/70 Unix is version 6. Jack also - mentioned some performance measurements using a traffic generator. - This will be documented in a forthcoming IEN. - - Ruth Nelson briefly discussed a local net project at BBN which is - building a net based on the CHAOS net design. There is now a - system with two interfaces which is tested by linking two - terminals. - - Bill Plummer reported on the TENEX/TOPS20 IP and TCP status. A - number of improvements have been made to the debugging version at - BBNF and these should soon be distributed and installed at other - sites. Among the improvements are: a resolution of the "data - stream capture problem," an update to the internet user queues, an - improvement to the gateway functions - especially updating the - gateway table. Bill has also prepared an "Installation Guide for - Wizards." - - Ginny Strazisar reported that the last ELF based gateway has been - converted to MOS, and that the first gateway running in an LSI-11 - has been delivered to SRI. Also a three port gateway is working. - - C. COMSAT - - Hoi Chong reported that there are currently a few problems with - the COMSAT gateway which seem to be related to a power supply. - Also it was noted that the line to NSRDC will be removed at the - end of May. The IP and TCP used in the COMSAT hosts has been - improved and these programs now support the timestamp option. The - FAX machine and protocols are in place and ready to be used, what - is needed is a common FTP to move the bits to other sites. COMSAT - was particularly active in the "Bakeoff" as reported in several - messages. Within COMSAT there is an investigation of a local net - to link some PDP-11 and IBM computers. Hoi also distributed a - memo on COMSATs internet activities and milestones. - - - - -Postel [Page 2] - - - IEN 145 -Internet Meeting Notes - - - - D. DCA - - Ed Cain reported that the DCEC gateway had been considerably - improved with help from Bill Plummer, Dave Mills and others. Ed - also reported that DCEC role in the DOD protocol standards will - have three aspects: (1) Executive Agent, (2) Review Panel, (3) - Laboratory. This Laboratory will be based on the EDN. - - E. DOD - - Ray McFarland reported that a group in his office building a TCP - 2.5 for a PDP 11/34 with Unix (v.6). This group needs software - for Telnet and Echo processes. Ray also discussed his role as an - information coordinator in DOD. He receives many requests for - information from within DOD. He needs help in fielding these - questions. In particular more data on performance would be very - helpful. - - F. ISI - - Jon Postel reported that multi-media mail system is being - redesigned, and that a new draft of the MPM specification is - available. Also good progress has been made in the investigation - of program verification tools for protocol analysis - especially - AFFIRM. ISI has ordered 4 computer readable clocks which maintain - their time by listening to WWVB. Jon also described the recent - movement of users between the various machines at ISI. - - G. Linkabit - - Estil Hoversten reported that Linkabit is not much involved in the - internet activities directly, but rather in the details of SATNET - and the WBC project. Estil and Danny Cohen are working on an - overview paper. - - H. LL - - Jim Forgie noted that one goal of his project is to demonstrate - point-to-point speech via the WBCNET in FY 80. This may be hard - to do due to the slippage in the schedule for some of the key - pieces. Lincoln is going ahead with the development of the voice - terminals and their access path -- the LEXNET. In cooperation - with ISI programs are being written to support NVP2, ST, and IP. - Lincoln is using the ISI developed EPOS system for this project. - - - - - - -Postel [Page 3] - - - IEN 145 -Internet Meeting Notes - - - - I. MIT - - Dave Clark reported on the various systems at MIT and their - interconnections. Things are getting quite complex. (1) Unix: - MIT has a copy of the IP/TCP from BBN, which MIT modified to have - a user accessible IP interface. A TFTP was installed in this - host. (2) Multics has had only small changes since last time, - there is now a Name Server. (3) The ALTOs now have IP, UDP and - TFTP in BCPL running; IP, TCP and Telnet (with SUPDUP) in MESA are - being programmed. - - Dave noted that the lack of implementation of fragmentation and - reassembly is causing problems. - - Dave gave some performance measures of the local network at MIT - (LCSNET v1) which indicate very high reliability and very low - average load. However there is some trouble interfacing MIT-XX (a - TOPS20) to this local net. - - Dave noted that version 2 of this network is in hardware testing - and that the Nu Machine (a personal computer being developed at - MIT) will interface to the version 2 LCSNET. - - J. MITRE - - Anita Skelton reported that starting with a half completed Z8000 C - cross-compiler obtained from MIT, the compiler was finished, an - assembler and loader was written. Then starting with BBN's C - version of SRI's MOS, the interprocess communication was modified, - the terminal handler was rewritten, and device drivers were added; - MOS is running in the Z8000. MITRE is now converting the MOS-TCP - to C, rewriting large portions and following the DOD spec. - - There are two Z8000 development boards interfaced to the MITRE - cable, with the cable contention algorithms coded, and packets - have been exchanged on the cable. MITRE hopes to have TCP running - in the Z8000s soon. - - The next step is to implement Telnet and interface the 11/70 to - the Z8000. The intention is to have a high speed DMA interface to - the 11/70 via the UMC-Z80 and also a parallel interface via the - DR11-C, so that comparable measurements with TCP running over the - cable can be made. (These measurements for the older interface - unit have been made). - - In addition, a cable bus test bed will be installed at DCA in - Reston. The interface units will be Z8000 based and built by - Reaction Instruments; the interface units will sell for about - - -Postel [Page 4] - - - IEN 145 -Internet Meeting Notes - - - - $4000 with a parallel host port and two terminal ports - (asynchronous and synchronous). The cable will sit between the - IMP and the NFE, with terminals attached to the cable, and one - Z8000 unit will act as a gateway. - - K. NDRE - - Yngvar Lund reported that NDRE is investigating a local network - with HDLC interfaces to the connected computers. The connected - computers will be built up of modules based on Z80 processors and - programmed to support voice protocol, HDLC, TCP, etc. - - L. RSRE - - Andy Bates noted the work on Extended Memory MOS was reported in - IEN 136. IP was recoded in CORAL66 for EMOS and a recoding of TCP - is planned. Modems to upgrade the RSRE-UCL line are on order. - Work is in progress on a gateway between PPSN and PSS. - - M. SRI - - Ron Kunzelman gave an overview of SRI's activities and a brief - rundown on hardware available. Ron discussed some instrumentation - efforts underway at SRI. A PDP 11/44 is on order to aid in this - work. - - Ed Perry discussed some of the problems with the Ft. Bragg - installation of the Packet Radio net. The gateway (or attached - nets) seem to have a low packet/second throughput limit. This is - causing the higher level protocols to be modified to use fewer - packets (e.g., a "half duplex" user mode). - - There was some discussion at this point of XNET and again the - problem of "big" datagrams. It really is important to have - fragmentation and reassembly implemented everywhere. - - Holly Nelson reported on the port expander. New versions were - delivered to Ft. Bragg and UCL. - - A new directory has been set up for the current version of TIU - software. It is on SRI-KL. News of interest to - TIU programmer or others concerned with MOS software should be - sent to the MOS-Users-List run by Noel Chiappa. - - N. UCL - - Rob Cole related the recent activities at University College. - There are many pieces of equipment at UCL connected in complicated - - -Postel [Page 5] - - - IEN 145 -Internet Meeting Notes - - - - ways. The current focus is a local "Cambridge Ring" network. The - NIFTP now works on ISIE and an LSI-11 host. There is a revised - specification of NIFTP forthcoming. UCL has a grant to provide a - computer mail service between UK and US university users. There - is a major concern about cost of transmission via IPSS, so current - focus is on multi-destination mail in single transmission. - - The PDP-9s which serve as a gateway between the ARPANET and EPSS - will die if either EPSS changes or the 32-bit leaders in the - ARPANET go away. The PIXIE device is no longer is use. - - O. UCLA - - Bob Braden reported on the IP and TCP in the IBM 3033 at UCLA. - The operating system is VM with OS-MVT. The IP and TCP are - running and the 96-bit leader (24 bit address) support is - installed. Further work is needed in the area of "gateway" - functions in the IP. In TCP some work is needed in the ACK policy - area. One can poke this system via telnet. Try "NETSTAT" and - "HELP-TCP". - - P. XEROX - - Vint Cerf read the following report sent in by John Shoch: - - 1. We have contributed our efforts to measure the effectiveness - of the Packet Radio Network when used as part of the Pup - environment. IEN 138 describes some of the (disappointing) - results obtained with the new IPRs; we are in the process of - moving one of the radios, however, and plan to replicate the tests - in the near future. - - 2. IEN 140 is a paper prepared with Danny Cohen and Ed Taft, - outlining the use of "mutual encapsulation" as a means to support - the coexistence of the Pup protocols and the IP protocols. - - 3. On Tuesday, May 13, Xerox joined with DEC and Intel to - announce the results of an effort to establish a common - specification for a local network, based upon the Ethernet - technology. - - - - - - - - - - -Postel [Page 6] - - - IEN 145 -Internet Meeting Notes - - - -IV. MEASUREMENTS - - Andy Bates reported that RSRE conducted further measurements (since - the last meeting). Their findings again indicate a large spread in - the delay through the concatinated ARPANET and SATNET. Some - speculated that the ARPANET introduces this spread. The RSRE group - suggest that it would be appropriate to introduce a provision for a - negotiated retransmission option. Also a larger window would help. - - Rob Cole presented the results of some recent measurements made by - UCL of the gateway and SATNET. The gateway at UCL was able to echo - packets at 34 packets/second. When the path was extended to the BBN - gateway, the UCL gateway accepted 14 packets/second, but very few - echo replies were received from the BBN gateway. A port expander in - the path did not pose a limit on either measurement. - -V. GATEWAY PROTOCOLS AND HOSTS - - Jim Mathis presented his procedure for routing. The main points are - first pick any gateway, second refine the chance to the best gateway - and third detect the failure of that gateway should it occur. - - o Pick a Prime gateway - o Poll it at a slow rate - o Send to the Prime gateway - o Accept and act on a Redirect message - o Ping gateway in use if higher level protocol complains - o Periodically change the Prime gateway - - Does this procedure get unstable in high load? - - IENs 109 and 131 should be reviewed by host IP implementors. - -VI. TELNET AND FTP FOR TCP - - Jon Postel reported on draft specifications for Telnet and FTP for - TCP. For Telnet the key changes are that ICP is eliminated and the - single full duplex connection is between ports U and L. Another - change is that the Telnet SYNCH becomes DM + Urgent, but one can't - count Urgents in the way one used to count Interrupts. - - For FTP, again ICP is eliminated for the control connection, which is - now the full duplex connection between ports U and L. The major - change here is the elimination of the BYTE command and all that - implies. Other changes affect the defaults for the data connection - and the "third party" transfers. The MAIL and MLFL commands are - included in the specification, and the new reply codes are used. - - - -Postel [Page 7] - - - IEN 145 -Internet Meeting Notes - - - -VII. NEW IMPS - - Vint Cerf reported that BBN has formed a separate BBN Computer - Company. This company sells a C-30 machine (formerly known as an - MBB). The current C-30 emulates an H316. - - Some things on the queue for IMP improvements are: - - 1. extend the memory capacity of the C-30 IMP program - 2. make software changes to support more than 4 hosts - 3. provide HDLC interfaces for hosts - 4. investigate the non blocking interface - 5. provide logical addressing for hosts - - Note also that a TCP-TIP is being developed with the TCP/Telnet code - in a H316 and the IMP part in a C-30. - -VIII. THE CMCC - - David Flood Page gave a brief review and a demonstration of the CMCC - functions. Basically the CMCC programs collect data from cooperating - gateways and display the results on a terminal. The programs reside - at ISIE in directory . The key program is CMCC-DISPLAY. Some - files in this directory give helpful information about the program. - These are: HELP.TXT, NEWS.TXT, and SESSION.TXT. Further information - can be obtained from David via sndmsg to DFloodPage@BBNE. Please see - also IEN 131 and 132. The demo went very well and these programs - should be useful to any gateway builder. - -IX. INTERNET PROTOCOL SPECIFICATIONS - - Ken Shotting presented some results of studying the IP specification - for a formal description. The key result is the identification of - ambiguous areas in the specification. In particular, the interaction - of the fragmentation procedure and the return route option is one - cause for concern. Another issue is the use of the identification - field. - -X. EGG BREAKING - - Danny Cohen led a discussion of the problems arising from assumptions - about which end of a word/page/..., bytes are transmitted from. This - is a holy war between the big-endians and the little-endians (see IEN - 137). Noel Chiappa and Danny were appointed as a small group to - argue about it. - - - - - -Postel [Page 8] - - - IEN 145 -Internet Meeting Notes - - - -XI. FLYING PACKET RADIOS - - Radia Perlman presented some ideas on how to handle mobile host - (e.g., flying packet radios) based on having the gateways do most of - the work. This approach is based on the gateway using a "link-state" - routing procedure and a method of handling partitioned nets as if - each partition were a separate net. The method presented is related - to but not identical with that presented in IEN 120. A revision of - IEN 120 will be forthcoming. - - Carl Sunshine presented an alternate strategy for dealing with mobile - hosts which makes the hosts do most of the work. This scheme uses - the existing IP source routing option and a new GCP message. It - calls for a new host (or special functions in an existing host or - gateway) to support (1) forwarding and (2) a global name server. New - messages are needed in the gateway protocol (IEN 109) to relay - information about a mobile host's current location to the name server - and the "connected" hosts. This procedure is described in IEN 135. - This procedure may also be workable for multihomed hosts and as a - least effort solution to the partition problem. - - Clearly a decision must be made as to whether these problems are to - be solved within the gateways or not. - - Vint Cerf described another routing problem. This problem arises - when a destination can be reached either within a network or via - another network which is connected to the first network in two (or - more) places. For example, the ARPANET and the WBCNET will be - connected in four places. It may be better for messages from Boston - to Los Angeles to go one hop in the ARPANET then via WBCNET then one - hop in the ARPANET, than cross country via many hops in the ARPANET. - Another example, is a large Packet Radio environment surrounding a - small ARPANET style network. Messages from one packet radio to - another packet radio on the opposite side of the environment might - best be forwarded through the ARPANET style net rather than via many - PRNET repeaters. This out-of-net crossnet routing is a difficult - decision to make by current procedures. (The latter example was - described as a "cloud of packet radios." First we had a flying PR, - now we have a whole cloud! I hope it doesn't rain!!!) - -XII. SOURCE ROUTING IN A CAMPUS ENVIRONMENT - - Jerry Saltzer presented his ideas on routing in a collection of local - network in a campus environment. Much of the strategy is based on - the lack of central control over the environment. - - A Name Server will be provided that will supply route information to - be used in the source route. Source routing permits gateways to be - - -Postel [Page 9] - - - IEN 145 -Internet Meeting Notes - - - - very simple, and allows the end user some control over the route. - The latter is good for trouble shooting, and performance control. - - These ideas are described in IENs 143 and 144 which were distributed - at the meeting. - -XIII. CONGESTION CONTROL - - Dave Clark discussed some studies about what to do when a Source - Quench message arrives. A simulation program was used to try various - methods. All were bad. The delay in the feedback loop is quite - large and some information needs to be supplied about how far away - (in time) the bottleneck is. - -XIV. LOGICAL HOST SUPPORT - - Jon Postel and Bill Plummer discussed some of the issues in logical - host support. The problem came up with a desire to run the testing - gateway at the same time as the regular IP. This is not possible but - points out the need for the IP layer to support the multiple logical - host concept. - -XV. BAKEOFF - - The "distributed bakeoff" was too distributed in space and time to be - as effective as one would like. Some good things did come from it. - (E.g. see Dave Mills messages). It was felt that the next time it - should be scheduled for one day and with the participants in two or - three locations. - - - - - - - - - - - - - - - - - - - - - -Postel [Page 10] - - - IEN 145 -Internet Meeting Notes - - - -XVI. NEXT MEETING - - The next meeting will be held at RSRE in Malvern, England, on 7,8, - and 9 October 1980. Attendance will be restricted so if you plan to - attend please clear that with Vint Cerf and notify Linda. John Laws - will be the host and information about the local arrangements will be - distributed at an early date. Malvern is about two and one half - hours by train from London. - - AGENDA ITEMS - - 1. Resolution of the Partitioned Net Problem - Cerf - - 2. Proposal for Controlled Routing - Cohen - - 3. Experience with VAN Gateways - Brescia, Kirstein - - 4. Demonstration of Interim Internet Mail - Postel - - 5. Performance Evaluation Parameters - SRI - - 6. Name Server Demonstration - SRI - - 7. New ST Document and Explanation - Cohen, Forgie, Hoversten - - 8. Tiny Pipe Nets vs. the Catenet - Mills - - 9. Congestion Control - Clark - - ACTION ITEMS: - - 1. XNET Specification - Haverty, Strazisar, Mathis, Tomlinson - - 2. Tenex running TCP4 - Plummer - - - - - - - - - - - - - - - - -Postel [Page 11] - - - IEN 145 -Internet Meeting Notes - - - -APPENDICES: Small Group Discussions - -A. FTP and Mail - - Need to extend current style of computer mail to work in the - internet. The extension of "Mailbox@Host" to "Mailbox@Host@Net" may - not be acceptable because too many programs must be changed. Rather - something like "Mailbox@Place" is suggested. This gives all hosts at - least one global name for mail purposes. (Will there be a name - czar?) "Place" is going to have to map to a 32-bit internet address. - The mailer will have to try to send the mail via TCP if both source - and destination know that or via NCP if both know that or if one is - TCP only host and other is a NCP only host via a forwarding host that - knows both and provides a special forwarding function. - - Postel will produce an IEN on this topic. - -B. FTP - - Brief discussion of FTP and default data ports. The data ports - should be U and L-1 so that port pairs are not required in the users - portspace. Also it seems OK to use the new reply codes. - -C. Measurements - - Tools are needed for measurements, for example, echo servers, and - time stamps. Echo servers can be TCP based, UDP based, or use the - GGP; but more are needed. Timestamp needs and desirable properties - will be described in a memo by Rob Cole and Andy Bates. Jack - Haverty's forthcoming IEN on a traffic generator should help too. Ed - Cain has a report on a TCP Tester. Also note the CMCC facilities. - -D. Fault Isolation - - This discussion was subtitled "What to do when things go wrong." The - conclusion was "try another gateway." - -E. Transport Layer Specification - - Richard Tenney is working on a task at BBN (under contract from NBS) - to specify a Transport Protocol. He is developing a specification - methodology along the way. Richard had some questions about the TCP - specification and the actual behavior of real TCPs. The main - questions had to do with out-of-order data, resets, and closing - cleanly. - - - - - -Postel [Page 12] - - - IEN 145 -Internet Meeting Notes - - - - Richard noted that we all should look at some NBS reports: - - "Draft Features Analysis of Transport Protocols" - - "Draft Service Specifications of Transport Protocols" - - obtainable from John Heafner of NBS (Heafner@NBS-10). - -F. Fragmentation and Reassembly - - Fragmentation and Reassembly must be implemented so that datagrams of - up to 576 octets (including header) may traverse the catenet. It is - proposed to hold a special bakeoff to test this capability in early - September. - -G. Gateway-Gateway Protocol - - Discussion of how much of this must be known by the hosts. The - messages: Source Quench, Destination (Host/Net) Unreachable, - Redirect, Echo/Echo Reply. Much discussion of error reporting should - it be in GGP or IP? (The current IP error option seems useless). - Postel will write a memo on error reporting (including who processes - which errors). - -H. IP Option Overflow - - The problem is that some IP header option fields (e.g., return route, - timestamp) may expand, causing the maximum header size to be - exceeded. Ways to handle this might be: (1) discard the packet, (2) - expandable options should have an "overflowed" flag which gets set - when they can't grow any more and the packet is forwarded without - expanding the option, (3) expandable option should be sent with - filler so header is "right" or max length to start with. On header - overflow both source and destination hosts should be told out about - the error. The issue was not resolved. But the problem should be - discussed in an "Implementers Guide." - - An additional problem concerns making full length fragments when - variable length options are present making it likely that the first - fragment will overflow the next maximum packet size and have to be - further fragmented later. One suggestion is to leave the first - fragment not quite full in such a case. - -I. Name Server - - SRI will implement a name server. It will be an extension of the one - specified in IEN 116. - - - -Postel [Page 13] - - - IEN 145 -Internet Meeting Notes - - - -J. Acknowledgement Algorithms - Adaptive Timeouts - - There seems to be a lot of ACK traffic so maybe ACKs should be sent - on a periodic basis rather than on an event basis. The - retransmission strategy also needs to be smarter. Could it be - negotiated? Type of service should be a consideration in these - algorithms. Bill Plummer and Andy Bates will conduct an experiment. - Idea: set retransmission time according to the Network at the other - end of the connection. - -K. ARPANET Problems - - The "8 messages outstanding at a time" problem was discussed. It - turns out that the maximum messages in transit can often be less than - 8 due to heavy loads at the destination IMP. It seems that the only - solution to this is to provide more buffers and message blocks in the - busy IMPs. - -RECENT DOCUMENTS - - IEN Author Title - --- ------ ----- - 131 Flood Page Gateway Monitoring Protocol - 132 Flood Page The CMCC Terminal Process - 133 Sollins The TFTP Protocol - 134 Postel Internet Meeting Notes-4,5, & 6 February 1980 - 135 Sunshine Addressing Mobile Hosts in the ARPA Internet - Environment - 136 Wiseman Memory Management Extensions to the Micro - Operation System for PDP-11/23/34/35/40 - 137 Cohen On Holy Wars and a Plea for Peace - 138 Shoch Initial Comparison of EPRs and IPR in the Pup - Internet Environment - 139 Haverty HOSTs as IMPs - 140 Shoch Mutual Encapsulation of Internetwork - Protocols - 141 Bennett Message System Issues - 142 Postel Time Server - -DOCUMENTS DISTRIBUTED - - IEN Author Title - --- ------ ----- - 143 Saltzer Environment Considerations for Campus-Wide - Networks - 144 Saltzer Source Routing for Campus-Wide Internet - Transport - - - -Postel [Page 14] - - - IEN 145 -Internet Meeting Notes - - - -ATTENDEES - Vint Cerf ARPA Cerf@ISIA - Mike Brescia BBN Brescia@BBNE - Ross Callon BBN RCALLON@BBND - Len Evenchik BBN EVENCHIK@BBNE - Gil Falk BBN - Jack Haverty BBN JHAVERTY@BBND - Dale McNeill BBN DMCNEILL@BBNE - David Flood Page BBN DFLOODPAGE@BBNE - Ruth Nelson BBN RNelson@BBND - Radia Perlman BBN PERLMAN@BBN - William Plummer BBN Plummer@BBNA - Virginia Strazisar BBN STRAZISAR@BBNA - Hoi Y. Chong COMSAT Chong@ISIE - Chris Elliott CTEC CTEC@BBNC - Ed Cain DCEC Cain@EDN-UNIX - Jim Showalter DCEC gamma@EDN-UNIX - Michael Begun DEC BEGUN@DEC-MARLBORO - Ray McFarland DoD McFARLAND@ISIA - Ken Shotting DoD Shotting@SRI-KL - Danny Cohen ISI Cohen@ISIB - Jon Postel ISI Postel@ISIF - Carl Sunshine ISI Sunshine@ISIF - Estil Hoversten Linkabit Hoversten@ISIA - Jim Forgie Lincoln Lab FORGIE@BBN - Noel Chiappa MIT JNC@MIT-XX - David Clark MIT Clark@MIT-Multics - Steve Kent MIT STK@MIT-XX - Jerry Saltzer MIT Saltzer@MIT-Multics - Karen Sollins MIT Sollins@MIT-XX - Anita Skelton MITRE Anita@MITRE - Frank Deckelman NAVELEX DECKELMAN@ISIA - Yngvar Lundh NDRE Yngvar@SRI-KA - Oyvind Hvinden NDRE Oyvind@SRI-KA - Glen Allgaier NOSC ALLGAIER@ISIC - Merle Neer NOSC Neer@ISIA - Andrew Bates RSRE RSRE-T4@ISIE - John Laws RSRE RSRE-T4@ISIE - Ron Kunzelman SRI Kunzelman@SRI-KL - Jim Mathis SRI Mathis@SRI-KL - Holly Nelson SRI HNelson@SRI-KL - Ed Perry SRI Perry@SRI-KL - Robert Cole UCL UKSAT@ISIE - Peter Kirstein UCL PKIRSTEIN@ISIA - Bob Braden UCLA OAC Braden@UCLA-CCN - - - - - -Postel [Page 15] - \ No newline at end of file diff --git a/text/ien/ien146.txt b/text/ien/ien146.txt deleted file mode 100644 index 26dcf348..00000000 --- a/text/ien/ien146.txt +++ /dev/null @@ -1,649 +0,0 @@ - - - FLYING PACKET RADIOS AND NETWORK PARTITIONS - IEN #146 - PRTN #292 - Radia Perlman - Bolt Beranek and Newman, Inc. - June 1980 - - -I. INTRODUCTION - -As described in IEN 110, "Internet Addressing and Naming in a -Tactical Environment", a network can become partitioned into two -or more pieces. Assuming some of these pieces are still -connected to the catenet, we would like the catenet to be able to -efficiently deliver packets to a host in any such piece. Such a -capability in the catenet could additionally be utilized by a -scheme for delivering intranet traffic across partitions in a -partitioned network. - -Another problem is known as the flying packet radio problem, in -which there are two ground PR nets and an airborne PR, -potentially in radio contact with either or both ground nets. -The problem is to route internet packets to that airborne PR. - -In IEN #120 I presented a design for network partitioning and for -the flying packet radio problem. This paper differs from IEN -#120 in several ways: - -1) In this paper there is a simpler solution proposed for finding -the host/partition correspondence. - -2) In this paper an argument is made for doing the link state -routing algorithm in a straight per gateway (rather than per net) -computation. This is more costly, since there are more gateways -than nets, but it is more straightforward to implement, and is -more flexible. - -3) A different solution is proposed for the flying packet radio -problem. The solution in IEN #120 was an easily implementable -one that could be immediately implemented. The solution in this -paper depends on the rest of the design being implemented, but is -a less costly solution. - -4) In IEN #135, Carl Sunshine and Jon Postel present an -alternative approach to the flying packet radio problem. A -comparison of the two approaches is made in this paper. - -The currently implemented gateway routing algorithm is based on -the original ARPANET algorithm. To efficiently provide for -routing to network partitions, routing must be based on a link -state routing scheme. The necessity for a link state routing -scheme was demonstrated in IEN #120. In this paper I will merely -present the design. - - - - 1 - - - - -II. LINK STATE ROUTING - -A "link state" routing scheme is one in which the nodes computing -the routing have complete knowledge of the state of all the links -in the network. All nodes monitor the state of their links to -their neighbors, and report this information to the nodes that -compute routing. In a totally distributed algorithm, all nodes -compute routing, so that means that all nodes must broadcast the -state of their links to every other node. - -A link state scheme is currently in operation in the ARPANET. An -alternative to a link state scheme is the algorithm that used to -be in operation in the ARPANET, and is currently implemented in -the gateways. In the old-style ARPANET routing algorithm, nodes -give to their neighbors a vector of their distance to all -destinations, and a node compiles its own distance vector by -taking the minimum distance of its distance to a given neighbor, -plus that neighbor's distance to the destination. The advantage -of a link state scheme over the old-style ARPANET scheme is that -a link state scheme is more flexible, since nodes have more -information. - -The most straightforward link state scheme would be one where -each gateway computes routes from itself to all other gateways. -This design was specified in IEN #24 (also known as PRTN #242). -Let us call that scheme the per-gateway scheme. - -In IEN #120 (PRTN #279) I proposed a modification to the -per-gateway design, wherein gateways computed routes to -destination networks rather than destination gateways. Let us -call that scheme the per-network scheme. The per-network scheme -is computationally less costly for the gateways, since there are -more gateways than nets. However, there is a problem with the -per-net scheme. The problem is that in the per-net scheme, -different costs cannot be assigned to different pairs of gateways -on the same network. And in networks like the packet radio net, -or the ARPANET, the delay between very distant gateways on the -same net can be very different from the delay between close -gateways on that net. Currently there is no mechanism for -measuring delays between neighbor gateways, and the cost function -is the simplest possible -- number of hops. However, at some -point in the future we might want to use a more sophisticated -cost function. Thus I recommend abandoning the per-network -approach and going to the straightforward per-gateway approach. - -Currently there are few enough gateways so the per-gateway -approach would not be a problem. If in the future there are too -many gateways to make this approach feasible (more than 100), -there are other approaches that can be taken. For example, -instead of a totally distributed algorithm, there can be a few -"routing centers" distributed around the catenet. These routing -centers would be large enough machines so that they would not -have space problems with computations involving hundreds of - - - - 2 - - - - -nodes, and do not have to be gateways, so the time involved in -computing routes would not degrade gateway forwarding -performance. This would make the link state scheme less costly, -since gateways would only have to report the state of their links -to the routing centers, not to all gateways. - -If the number of gateways was truly huge (more than a few -hundred), it would not be practical even for a large routing -center to compute routes for a network that large. In that case -a heirarchical approach, of breaking the net into subnetworks and -treating the network of subnetworks as an approximation to the -entire network should be used. This approach has been taken in -the multistation packet radio design, which is a design to -accomodate a very large network of PRs. - -If it is decided that the capability of assigning different costs -to different pairs of gateway links is not essential, the -per-network scheme might be adopted, so I will include the -description here. - - -III. TERMINOLOGY - -1) neighbor gateways--two gateways attached to the same network - -2) functioning neighbor gateways--neighbor gateways able to -communicate with each other over their common network - -3) attached network--a network physically attached to a gateway, -and with which the gateway can communicate directly (not through -another gateway) - -4) neighbor network of gateway G--an attached network of a -functioning neighbor gateway of G, excluding attached networks of -G - - -IV. TABLES TO BE MAINTAINED BY EACH GATEWAY - -1) a list of attached networks--This list is relatively constant -and is updated by a gateway when it notices a network interface -is down or for some other reason the gateway is incapable of -communicating with an attached network. Keeping this table -updated is solely the responsibility of each gateway, and does -not require intergateway communication. - -2) a table of all gateways and their attached networks--This -table is maintained by intergateway communication -- gateways -give copies of their table 1 to all other gateways. The table of -all gateways never shrinks (a down gateway is assumed to exist -but be unreachable). - - - - - - 3 - - - - -3) a table of link states to neighbor gateways--This table in -gateway G specifies, for each neighbor gateway G1, over which -common networks G and G1 can communicate. This table is updated -by G periodically bouncing packets off each neighbor gateway from -which it has not recently received traffic. Note that I refer to -two gateways as neighbor gateways even if they cannot -(temporarily, hopefully) communicate with each other. - -4) a list of neighbor networks--This list is derived from the -table of link states to neighbor gateways and the list of -gateways with attached networks (tables 3 and 2). - -5) total link state--This is a table of all gateways and the -state of their links to their neighbor gateways. This table is -compiled from intergateway communication. When a gateway notices -that its table of attached networks, or its table of link states -to neighbor gateways (tables 2 and 3) changes, that gateway -efficiently broadcasts this information to all other gateways in -the catenet. To minimize numbers of reports when a link is -flaky, a link on an attached network must be up continuously for -some amount of time before its state is considered to change from -down to up and trigger a link state report. - -6) shortest distance matrix--This is a data structure from which -routing decisions can be made directly. It is computed from the -other tables. It is described more fully in part V. - - -V. ROUTING COMPUTATION - -5.1 Per-Network Scheme - -A gateway, using the tables described above, constructs a -connectivity matrix whose rows and columns represent networks, -and whose entries are 1 if any gateways claim to be attached to -both networks, and infinity otherwise. Then the gateway *'s that -matrix to construct a shortest distance matrix. (The operation -"*" consists of "multiplying" a matrix by itself, using the -operations min and plus instead of plus and times, until the -result stabilizes. This is a well-known algorithm.) The gateway -then looks in the shortest distance matrix for the neighbor -network (or set of such) closest to the destination network, and -chooses a functioning neighbor gateway (or set of such) attached -to that neighbor network, for forwarding packets to that -destination network. - -If the cost function assigns different costs to different -networks, then instead of merely putting a "1" in the -connectivity matrix where there is connectivity, the gateway does -the following. If the assigned cost (a constant) of network A is -C(a) and the assigned cost of network B is C(b), then in the -connectivity matrix for the entry [A,B], deposit C[a]. In the -entry [B,A] deposit C[b]. In other words, assign the cost of the -network you are leaving. - - - 4 - - - - -When a link state report changes the state of an entry in the -connectivity matrix (remember, all gateways connecting two -networks have to go down before an entry changes to infinity), a -gateway must recompute the distance matrix. - -This design is a slight modification of the design presented in -"Gateway Routing", by Radia Perlman (PRTN #242, IEN #24). The -modification is that the indices of the matrix are networks, not -gateways. The purpose of this modification is to make the size -of the matrix smaller, an important modification given that in -the catenet there are many more gateways than networks. There -are aspects to the scheme that are irrelevant to a discussion of -how to solve the network partition problem, such as sequence -numbers for link state reports, etc. The purpose of this paper -is to direct a correct approach to the design, and not to present -an implementation specification. Thus an implementer should read -PRTN 242 to discover the details of a link state algorithm that -were not relevant for presentation here. - -Note that an alternative to *'ing the matrix is to use the scheme -that the ARPANET has switched over to, which is a link state -scheme in which a shortest path routing tree is constructed from -the connectivity information. The new ARPANET scheme is less -costly to maintain as links change state. Its disadvantages are -that it precludes load splitting, probably a very important -problem in the case of the catenet, and is probably a little -harder to implement. Since links will not change state very -often, the author favors the overhead of the matrix *'ing scheme -over the disadvantages of the ARPANET scheme. However, this -decision is separable from the rest of the design and can be -decided either way at a later time. - -5.2 Per-Gateway Scheme - -This scheme is more straightforward. The rows and columns in the -connectivity matrix represent gateways. If different costs are -assigned to different gateway links on the same network, gateways -would report the cost of their links to their neighbors in their -link state reports, and this cost would be deposited into the -entries in the connectivity matrix. - -As in the per-net scheme, the connectivity matrix could be *'ed, -or the Dijkstra algorithm could be applied. - - -VI. DETECTING THAT A NETWORK HAS PARTITIONED - -Now we look at the problem of network partitions. In the design -presented so far there is enough information for any gateway to -detect a partitioned network and to isolate groups of gateways on -each partition: A gateway G knows that network N is partitioned -if there are two sets of gateways, set Q and set R, such that all -gateways in both sets report they are attached to network N, but - - - - 5 - - - - -there are no two-way links between a member of set Q and a member -of set R via network N. This information is derived -independently by each gateway from the table of all gateways and -their attached networks, and from the table of total link state -(tables 2 and 5). - - -VII. DERIVING A NAME FOR EACH PARTITION - -It is necessary to expand the internet header to allow a field -for identifying a network partition. The reason for this is to -avoid the necessity for every gateway on a packet's route to -discover to which partition the packet should be sent. - -The partition name must give sufficient information so that every -gateway can make the proper routing decisions to send a packet to -that partition, based on its tables of total link state and -gateways/attached nets (tables 5 and 2). - -The following schemes for naming a partition are all done -independently by all gateways, as opposed to having some central -authority choose a name and inform all gateways, or having a -group of gateways decide on a name "by committee". - -One method of identifying a partition is to use the name of any -member gateway of the partition. It will not matter if two -gateways choose different names for the same partition. Since -the sets of gateways involved in the network partitions are -disjoint, any member of the set identifies the set. - -Another method is to list (either by an explicit list or a bit -table) the set of gateways that make up that partition. This is -unnecessarily descriptive, since the list of gateways is -derivable from a single member of the set. And it is a less -robust scheme, because any change to the partition (a gateway -going down, coming up, or the net partitioning into more pieces) -can confuse a gateway trying to route to that set of gateways. -In the first method, if the partition changes, the packet will be -routed unambiguously to whatever partition the named gateway is -in. Of course, if the named gateway goes down, the packet -becomes undeliverable, but that is easier to deal with than -trying to deliver a packet to a set of gateways that overlaps two -partitions. - -A third method is for each gateway to number partitions from 1 to -the number of partitions, ordered by, say, the highest numbered -gateway in each partition. This method uses fewer bits in the -packet header but is a much less robust scheme. With gateways -having slightly differing information, partition names have -different meanings. Also, partitions can switch names suddenly. -For instance, a net can be partitioned into 2 pieces, numbered 1 -and 2, and, assuming the highest numbered gateway was down, and -comes up in partition 2, partitions 1 and 2 now switch -identities. - - - 6 - - - - -Thus the recommended method of identifying a partition is the -first method. - - -VIII. FIGURING OUT WHICH PARTITION A HOST IS IN - -This is the aspect of the design for which I did not find the -design presented in IEN #120 completely satisfying. Here is a -better approach. - -Important goals are to: - -1) Shield gateways from state information such as which hosts are -in which partitions. - -2) Shield hosts from the necessity of knowing much about the -structure of the catenet. In particular, since hosts do not -receive gateway link state reports, they do not know which -gateways and links are up, do not dynamically discover new -gateways and networks, and thus cannot intelligently provide a -complete source route on a packet. And requirements for -sophistication on the part of the host means adding that -sophistication to many different implementations. - -The proposed solution is that: - -1) If a gateway receives a packet for a partitioned destination -network, with no partition name filled in in the packet header, -that gateway duplicates the packet, sending a copy of the packet -to each partition. (Subsequent gateways will not duplicate the -packet because the first gateway would have supplied partition -names on the packets it sent out.) - -2) Gateways on a partitioned network fill in their IDs in packets -leaving the partitioned network. - -3) Hosts communicating with a host on a partitioned network can -either ignore the whole network partitioning issue, or copy the -partition name from packets returning from the host on the -partitioned network. If hosts ignore the partitioning issue, the -cost is duplicated packets. If hosts choose to copy the -information, they must keep state information per host on that -partitioned network, and they must notice when that information -becomes out of date (if packets fail to reach their destination, -the host should erase its knowledge of which partition the packet -was routed to, since the other host might have moved to a -different partition). - -One advantage of this design is that gateways can be completely -sheltered from per-host state information. They already detect -partitioned networks, so the only added work is duplicating -packets and filling in partition names. Another advantage is -that hosts can either be totally oblivious of the whole issue, at - - - - 7 - - - - -the expense of duplicated packets, or they can, without much -work, obtain the information of the proper partition for a given -host. And the decision as to which course to take can be taken -independently by each host. - - - -IX. ROUTING PACKETS TO THE CORRECT PARTITION - -As stated above, a gateway G, distant from partitioned network N, -must know which gateways are involved in a partition before G can -correctly route a packet -- it might have to make a different -routing decision for one partition than for another one. - -When G detects a network has become partitioned into n pieces, G -must add n-1 rows and columns to its shortest distance matrix, -i.e., it treats each partition as a separate network. It is an -implementation detail, and not a difficult one, to ensure that -the gateway understands the meaning of each row and column. And -given that the gateway understands the meaning of each row and -column, it is easy for it to fill in the connectivity matrix from -its table of total link state. The computation is done exactly -as in the nonpartitioned case. - - -X. FLYING PACKET RADIOS - -In IEN #110, Dr. Vinton Cerf raises the following problem. An -airborne PR flies above two ground nets, A, and B. At times the -airplane PR is in radio contact of A, B, both nets, or neither -ground net. The problem is for hosts in the catenet to send -packets to the airplane PR. They cannot simply fill in "A" or -"B" as the destination network because that might be incorrect. -And if they did somehow know the proper net at the time, higher -level protocols would get confused by a changing net number, and -be unable to match packets to an existing connection. - -In IEN #120 I presented a scheme for solving this problem that -could be implemented without the rest of the network partitioning -design. That scheme involved assigning a virtual net number to -each airplane PR. Gateways on the ground nets A and B would have -half gateways associated with each virtual net, that "pinged" the -associated airplane PR occasionally to see if it was reachable. -The cost of this solution is traffic overhead in the ground nets, -from all the pinging, and extra net numbers for each airplane PR. -However, it is easy to implement. - -I will present here a solution that is much cheaper, but depends -on the rest of the design in the paper being adopted. - - - - - - - - 8 - - - - -The solution is that: - -1) A single virtual net number, P, is assigned to include all -airborne PRs. - -2) Gateways on A and B always report that they are connected to -"net P" and that their links to their "neighbors" on the other -ground net, via net P, are always down. (They could report their -link via net P to be up if some airplane PR connects the two -ground nets so that they actually can reach the other ground -gateways, but it is simpler to declare that link always down, and -it will avoid forcing the airborne PRs to forward much traffic.) -Gateways on A report their links to the other gateways on A, via -net P, to be in the same state as the actual links via net A. -The gateways on net B do likewise. - -3) Thus P will look to the rest of the catenet like a partitioned -net. Consequently, gateways receiving packets for P with a blank -partition name will duplicate the packet, sending a copy to each -"partition" of P, i.e., a copy to net A and a copy to net B. And -gateways on nets A and B receiving packets from "P", will fill in -their IDs as the "partition name" of P. - -4) Hosts talking to an airborne PR can either ingore the whole -problem and let its packets get duplicated, or copy the proper -"partition name" in packets it receives from the airplane. -However, since airplanes are liable to switch nets quickly, the -information is liable to become quickly out of date. Thus it is -probably better (assuming there are only 2 ground nets) to live -with the duplicated packets, ensuring delivery (assuming the -airplane PR is reachable via one of the ground nets). - -The cost of this approach is the implementation of all the rest -of the network partitioning design presented in this paper, plus -a single virtual net number and duplicated packets to the -airplane PRs (or hosts copying the information provided in -packets from the airplane PRs). - - -XI. COMPARISON WITH IEN 135 - - -In IEN #135, Carl Sunshine and Jon Postel present an alternative -approach to the flying packet radio problem. Their approach is: - -1) A virtual net number is assigned for all airplane PRs. - -2) Airplane PRs have the responsibility for ascertaining their -current network location, and reporting this information to a -global database. (There can be multiple global databases for -reliability.) - - - - - - 9 - - - - -3) Hosts wishing to communicate with an airplane PR request their -location from the global database, which furnishes them with a -single level source route to write into the packet header. The -source route consists of both a net number (as in ground net A or -ground net B, depending on which net the airplane in question is -currently in radio connectivity of) and a local address on that -net, called a "forwarder". The purpose of the "forwarder" is -merely to fit this into the already existing mechanism of source -routing, which requires a full internet address. It would be -most convenient to have as the ID of the "forwarder" the same ID -as the destination, so that the destination would be net P, host -XXX, and the source route would be net A (or B), host XXX. - -The authors propose this scheme over the one presented in IEN -#120 (and the one presented here) in order to save the gateways -from dealing with the problem. - -Costs of the scheme in IEN #135 are: - -1) Maintaining a global database is complex and costly. - -2) The airplane PR must ascertain its true net and report this -information to the global database. There is no mechanism -currently designed into packet radio networks to make this easy, -and certainly no mechanism for alerting the airplane PR that it -is "about to leave" a net, as suggested in IEN #135. - -3) Hosts wishing to communicate with an airplane PR must first -contact the global database. This is extra code that must be -implemented in order for the host to communicate at all with the -airplane PR. And it must be implemented in every host that might -be in contact with an airplane PR. - -4) Airplane PRs are liable to change nets so quickly that by the -time the airplane discovers it has changed nets, contacted the -global database, the host has queried the database, and the host -has received a reply from the database, the airplane PR has very -likely changed nets. - -The costs of the scheme presented in this paper are: - -1) Implementing a link state routing algorithm for gateways. A -link state algorithm requires more control traffic and more -computation than the old-style ARPANET algorithm. It requires a -recoding of the gateways, since they currently have implemented -the old-style ARPANET algorithm. However, the extra overhead of -the link state scheme is not that bad, and there are -possibilities for decreasing the overhead further (for instance, -by declaring a set of gateways all connected to the same networks -and all in contact with each other as a "group" and having a -single member of the group report status information for the -entire group). And the link state scheme gives needed -flexibility for other internet routing problems, for instance -extended routing (including access control). - - - 10 - - - - -2) The rest of the partitioning design, all of which is minor, -including: - a) having gateways detect a partition and compute routing - accordingly - b) having gateways receiving packets for a partitioned network - duplicate the packets - c) having gateways on the partitioned net fill in the - partition name on outgoing packets - d) extra packets or having hosts communicating with a host on - a partitioned net copy the partition name from incoming - packets - -3) For the flying packet radios, a single virtual net number. - - -XII. CONCLUSIONS - -A link state scheme, as originally presented in PRTN 242, -modified as presented in part IV of this paper should be the -basis of internet routing. - -The internet header should include a field long enough for a -gateway ID, for the purpose of specifying a partition name. A -partition name is the ID of any member gateway on that partition. - -The first gateway that handles a packet checks to see if it is -addressed to a partitioned network. If so, and if the partition -name field in the internet header is blank, the gateway -duplicates the packet for each partition, and sends a copy to -each partition (filling in the partition name on each copy). - -When a host receives packets with a partition name filled in, it -can copy that information in a per host table, being careful to -erase that information if packets fail to reach the destination. -Hosts that choose not to implement that will cause nothing more -serious than duplicated packets. - - - - - - - - - - - - - - - - - - - - - 11 - - diff --git a/text/ien/ien147.txt b/text/ien/ien147.txt deleted file mode 100644 index 08d9b1fd..00000000 --- a/text/ien/ien147.txt +++ /dev/null @@ -1,473 +0,0 @@ - - - UTILIZING INTERNET ROUTES AS EXPRESSWAYS THROUGH SLOW NETS - - IEN #147 - PRTN #290 - Radia Perlman - June 1980 - - -INTRODUCTION - -Some networks in the catenet are very slow relative to others. -An example is a very large packet radio network, which might be -100 PR hops from end to end. - -Distributed throughout the slow net might be several gateways to -a faster net. It would be desirable to utilize the internet to -quickly route packets through the slow net. So in the particular -example, rather than delivering a packet through 100 PR hops, it -would be desirable to deliver the packet to the nearest gateway -in the PR net, and have that gateway deliver the packet, through -the internet, to a gateway close to the destination of the -packet. - -This problem was presented by Dr. Vinton Cerf at the May 1980 -Internet meeting. This paper is an approach to solving the -problem on a specific case basis, and an argument for solving it -that way rather than as a generalized internet routing problem. - - -WHY IT IS NOT THE CATENET'S JOB - -The catenet is a network of nets. Its job is to deliver a packet -as efficiently as possible to the correct net. It should not -have to worry about the internal structure of a network to the -extent of knowing which hosts are closest to which gateways. - -It is reasonable for the catenet to know enough about nets to -take into account their properties when calculating internet -routes. For instance, according to whatever cost function -gateways are using to calculate catenet distances, one net can be -many times the cost of another. And if gateways wished to -calculate distances to their neighbor gateways, and if there were -three gateways G1, G2, and G3 on a net N, the link G1-G2 could -have a different cost from the link G1-G3. However, the catenet -should route to destination networks based solely on the most -efficient internet route to that network, and let the destination -network handle delivery to the host on the network as it sees -fit. - - - - - - - - - 1 - - - - -HOW A SPECIFIC NETWORK CAN USE A NEARBY FAST NET - -The previous section does not imply that the internet cannot be -utilized as an express route through a slow net. What it says is -that it is the job of a local net, rather than the catenet, to -utilize the capability. And it is not difficult to design this -into a net. - - net S I net F - ________________________________________ - I I - I A I - I . I - I ...N1--G1S-G1-G1F.. - I I . - I I . - I I . - I I . - I .N2--G2S-G2-G2F.. - I . I - I . I - I .B I - I I - ________________________________________ -We are assuming a slow net with a few gateways to a faster -network. Call the slow net S, and the fast net F. Assume two -gateways, both on both S and F. The addresses of the first -gateway are G1S and G1F, with G1S being G1's local address on net -S. The addresses of the second gateway are G2S and G2F. Assume -G1S is connected to node N1 on net S, and G2S is connected to -node N2 on S. (I am assuming a network like the ARPANET or the -PRnet, in which hosts are not nodes on the net, but are attached -to nodes on the net.) - -Node A on net S wishes to communicate with node B on net S. A -and B are distant in net S, and A is close to G1, and B is close -to G2. - -A can communicate with B via A's route to G1, G1's route through -net F to G2, and G2's route to B in S by prepending to the packet -an internet header with a one level source route, and sending the -packet to gateway G1. The one level source route is the address -on the fast net of the destination gateway, i.e., . The destination in the internet header is the internet -address of the destination of the packet, i.e., . When -G1S receives the packet, it will route it to internet address -F,G2F. Since that internet address is on net F, G1 will route -the packet through net F to G2. When G2 receives the packet, it -will advance the source route and forward the packet to internet -address . So the packet travels A=>G1 through S, G1=>G2 -through F, and finally G2=>B through S, as desired. - - - - - - 2 - - - - -The source route is essential because if G1 is given a packet -with an internet address on net S, it will just throw the packet -back into net S directly, because no matter how cheap its link to -G2 is through net F, it cannot be cheaper than 0, which is G1's -distance to net S, because G1 is directly connected to S. - -In most network designs, you would want most of net S to be -unburdened with knowledge of the internet, neighboring fast net, -internet headers, etc. Thus a reasonable design is that nodes on -S have some local net link-link protocol, and some routing -information about links that gets passed around. The nodes -directly attached to the gateways, N1 and N2, utilize the foreign -net as a "link" between themselves. To do this, they must -encapsulate local net packets for transmission across this -"link", within internet packets, since the "link" is actually the -internet. - -N1 adds an internet header to the packet with a one-level source -route being the internet address of the second gateway on the -fast net, and internet destination address , and passes the -packet off to the gateway. N2 strips off the internet header and -continues the packet along the local net route. The rest of the -nodes on S can be ignorant of just what mechanism is employed -when N1 and N2 communicate. All they know is that N1 and N2 -report that they can get packets to each other with some -miraculously low cost. They believe N1 and N2, and find when -they compute routes that many local routes will take advantage of -that high speed link. N1 and N2 do not have to know very much -about net F. For N1 to send a packet to N2, all it needs to do -is send its attached gateway the packet with a prepended internet -header with single-level source route and destination -internet address . N2 must be able to strip off the added -internet header and continue the packet in the local net as if -the N1-N2 link were an ordinary link in that net. (In IEN #140, -"Mutual Encapsulation of Internetwork Protocols", the authors -give another example of using one net as if it were a link in -another net -- the encapsulation of PUPs in IP datagrams.) - -There are some nets in which only hosts are addressable, not -nodes ("imps"). It is important, however, as discussed above, to -have N1 be able to put N2 as the internet destination. If N1 -merely put B (the destination host) as the internet destination, -N2 would not know to strip off the internet header. Packets -should not arrive looking different depending on what path they -take, so it is at least ineligent to have some packets arriving -at B with internet headers. Worse yet, B might not know about -internet headers -- it might be a host that only communicates -with other entities on the local net. And another problem is -that if the route through the net traversed several express hops, -several internet headers would be prepended, one after another, -onto the packet. So the answer to this problem is that N1 must -be able to have as the internet address N2. The code in N2 to -strip off internet addresses can be thought of as a virtual host - - - - 3 - - - - -attached to N2, so there should be no problem assigning it an -internet address. - - -THE MULTISTATION PACKET RADIO NET - -For those of you uninterested in the packet radio net, skip this -section. - -Briefly, the packet radio network consists of nodes called PRs, -each of which has a unique ID. Hosts, terminals, etc., are known -as devices, and can be attached to any PR, and unplugged from a -PR and moved to another PR without impact since device/PR -correspondence is dynamically bound by the network. Devices also -each have a unique ID. - -Routing is calculated by special devices known as stations. A -route consists of a sequence of IDs, currently all of which would -be PR IDs. Presumably each PR in the route is in direct radio -connectivity of the next PR along the route. - -In the current design, station-station links are assumed to be -ordinary packet radio multihop routes. Suppose that some of the -stations were directly connected to each other with some sort of -high speed, high bandwidth lines. The only modifications -necessary to the design of the net to utilize these lines are -that: - 1) a station ID can appear in a route - 2) a PR checks to see if the next ID in the route is its - directly attached station. If so, rather than broadcasting - the packet, it sends the packet to its attached station. - 3) a station attached to other station(s) via high speed lines - must be able to handle a packet by looking to see the next - ID in the route and handing the packet to the correct next - station, or to its attached PR (if the next ID was the - station's attached PR) - 4) stations would take these high speed lines into account in - calculating routing in their subnets, and in calculating - their distance to their neighbor stations in the - station-net. - - -Suppose instead that there are gateways (which are devices) to a -faster net interspersed throughout the PRnet. Assume the -gateways are not in stations. The modifications necessary to the -PRnet design to utilize them are: - 1) a device ID must be able to appear in a route - 2) a PR must check to see if the next ID in the route is its - attached device. If so, the PR must prepend an internet - header with single level source route being (where X - is the next ID in the route (and if the internet local name - doesn't fit into a PRnet unique ID, use two PRnet IDs, the - - - - 4 - - - - - next 2 hops, to calculate what to put into X in the - internet header)), and internet destination . - 3) The PR receiving the packet from its attached device should - strip off the internet header and continue the packet along - the PRnet route. - 4) Stations must know the gateway IDs so that they can - recognize them as such when they are reported - -Suppose instead that the stations themselves are gateways, in -that they are themselves connected to both nets. Then there is a -choice of how to treat the design. It can either be treated as -the standard gateway design just covered, or it can be treated as -the slightly simpler case of direct lines between the stations, -where the "direct lines" are actually routes through the fast -net. In other words the stations can use the internet as their -"direct link", or the fast net alone. - - -COMPLICATIONS? - -In this section, I will present some variants of the basic -problem, and show how they are not complications of the basic -design. - -The first variant is when there are three nets, S (Slow), M -(Medium), and F (Fast). There are a few gateways between S and -M. There are a few gateways between M and F. There are no -gateways between S and F. - -net F - ...................... - . . -__________G____________________G______________ - . . -net M . . - ..... ..... - . . -______G____________________________G_________ - . . - ..... .. - . . - A B - -net S - -Routing in net M is exactly as described above. Net M can make -use of the gateway links through net F. Routing in net S is also -exactly as described above. Net S can make use of the gateway -links through net M. S does not know anything about net F. It -routes packets through net M, and is unaware that M cleverly -makes use of net F. So a packet between two hosts A and B on S - - - - 5 - - - - -might travel to a nearby S-M gateway, through M to an S-M gateway -near B, and then to B. The path through M between the two S-M -gateways might travel through net F for some part of the way. -The important thing is that none of the nets needs to know -exactly how the other net routes packets. The strange thing is -that each time this happens a new internet header will be -prepended to the packet. So in this example, while the packet is -travelling through net F, there will be two levels of internet -header on the packet. One might prefer instead to have a -two-level source route on the packet. The reason I don't think -that would be the right design is that it requires net M to -understand that the packet travelling through its local net is an -internet packet. I am assuming that while a packet is travelling -through net M it has a local M-net header on it, and as far as -net M is concerned, the internet header, which follows the local -header, is just data. So entities on M would not be smart enough -to strip off the local header and manipulate the internet header -by adding more levels of source route. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 6 - - - - - I -net I net -F1 I F2 - .............G.................. - . I . - . I . - . I . -________G______________________________G_____________ - . . - ..... ... - . . - . . - A B - - - net S - - -The next variant consists of three nets, S (Slow), F1 (fast net -1), and F2 (fast net 2). Assume a gateway between S and F1, a -gateway between F1 and F2, and a gateway between F2 and S. -Assume these are the only gateways, and the two gateways on S are -distant from each other on S. Assume a host A on S close to the -S-F1 gateway and a host B on S close to the S-F2 gateway. S -should route packets between A and B through net F1, then net F2, -and then to B. - -S handles this case exactly as all the others. The route through -S goes first to a node attached to the S-F1 gateway, and that -node prepends an internet header with the source route being the -F2 address of the S-F2 gateway, and the internet destination -being the S node attached to the S-F2 gateway, and gives the -packet to the S-F1 gateway. The S-F1 gateway routes the packet -as desired. So net S treats the S-F1 gateway as if it really -were an S-F2 gateway in the original example. - - -AN ALTERNATIVE TO SOURCE ROUTING FOR THIS CASE - -This design does not really utilize the general capabilities of -source routing. Assuming source routing is implemented, it -provides a convenient method of implementing the catenet as an -express route through a slow net. However, it is probably -cleaner to look at the solution in a slightly different way. - -With source routing, the packet header specifies a full internet -address as an intermediate destination. In this case, the -intermediate address is always a gateway. Assuming gateways were -given unique IDs (as opposed to multiple internet addresses), it -would be cleaner to specify a gateway ID rather than a pair for a gateway. An example where it is cleaner is having -three nets, S (slow), F1 (fast net #1), and F2 (fast net #2). -Suppose two gateways, each connected to all three nets. When net - - - - 7 - - - - -S wishes to utilize the catenet as an express route between the -gateways, S does not care whether the catenet routes the packet -over F1 or F2. But with source routing, S would have to specify -one or the other. If instead S could merely give the unique -gateway ID of the desired gateway, the catenet could choose over -which path to send the packet to reach the other gateway. - -If the only utilization of source routing is to give a string of -gateway addresses, perhaps source routing should be, instead of a -string of internet addresses, a string of gateway IDs. In -addition to possible cleanliness, this would save room in the -header. - - - -CONCLUSIONS - -The catenet should be protected from knowledge of how local -networks route packets. All the catenet should know is the cost -of each gateway-gateway link, not the mechanism of packet travel -on the link. - -Local networks should be mostly protected from knowledge of the -internet. A network that was not originally designed as part of -the catenet should be able to be connected to the catenet merely -by adding a gateway to that net. - -The problem of utilizing faster neighbor nets can be solved in -each net in which the opportunity exists in a not very costly or -complicated manner, by adding sophistication only to the nodes -directly connected to gateways. The rest of the local network -can be oblivious of what is going on. - - - - - - - - - - - - - - - - - - - - - - - - - 8 - - -------- diff --git a/text/ien/ien148.txt b/text/ien/ien148.txt deleted file mode 100644 index 80f7f2af..00000000 --- a/text/ien/ien148.txt +++ /dev/null @@ -1,869 +0,0 @@ - -IEN 148 J. Postel -RFC 764 ISI - June 1980 - - TELNET PROTOCOL SPECIFICATION - - -INTRODUCTION - - The purpose of the TELNET Protocol is to provide a fairly general, - bi-directional, eight-bit byte oriented communications facility. Its - primary goal is to allow a standard method of interfacing terminal - devices and terminal-oriented processes to each other. It is - envisioned that the protocol may also be used for terminal-terminal - communication ("linking") and process-process communication - (distributed computation). - -GENERAL CONSIDERATIONS - - A TELNET connection is a Transmission Control Protocol (TCP) - connection used to transmit data with interspersed TELNET control - information. TCP and the connection establishment procedure are - documentented in the ARPA Internet Protocol Handbook. - - The TELNET Protocol is built upon three main ideas: first, the - concept of a "Network Virtual Terminal"; second, the principle of - negotiated options; and third, a symmetric view of terminals and - processes. - - 1. When a TELNET connection is first established, each end is - assumed to originate and terminate at a "Network Virtual Terminal", - or NVT. An NVT is an imaginary device which provides a standard, - network-wide, intermediate representation of a canonical terminal. - This eliminates the need for "server" and "user" Hosts* to keep - information about the characteristics of each other's terminals and - terminal handling conventions. All Hosts, both user and server, map - their local device characteristics and conventions so as to appear to - be dealing with an NVT over the network, and each can assume a - similar mapping by the other party. The NVT is intended to strike a - balance between being overly restricted (not providing Hosts a rich - enough vocabulary for mapping into their local character sets), and - being overly inclusive (penalizing users with modest terminals). - - *NOTE: The "user" Host is the Host to which the physical terminal - is normally attached, and the "server" host is the Host which is - normally providing some service. As an alternate point of view, - applicable even in terminal-to-terminal or process-to-process - communications, the "user" Host is the Host which initiated the - communication. - - - - - - -Postel [Page 1] - - -June 1980 RFC 764, IEN 148 -Telnet Protocol Specification - - - - 2. The principle of negotiated options takes cognizance of the fact - that many sites will wish to provide additional services over and - above those available within an NVT, and many users will have - sophisticated terminals and would like to have elegant, rather than - minimal, services. Independent of, but structured within, the TELNET - Protocol various "options" will be sanctioned which can be used with - the "DO, DON'T, WILL, WON'T" structure (discussed below) to allow a - user and server to agree to use a more elaborate (or perhaps just - different) set of conventions for their TELNET connection. Such - options could include changing the character set, the echo mode, the - line width, the page length, etc. - - The basic strategy for setting up the use of options is to have - either party (or both) initiate a request that some option take - effect. The other party may then either accept or reject the - request. If the request is accepted the option immediately takes - effect; if it is rejected the associated aspect of the connection - remains as specified for an NVT. Clearly, a party may always refuse - a request to enable, and must never refuse a request to disable, some - option since all parties must be prepared to support the NVT. - - The syntax of option negotiation has been set up so that if both - parties request an option simultaneously, each will see the other's - request as the positive acknowledgment of its own. - - 3. The symmetry of the negotiation syntax can potentially lead to - nonterminating acknowledgment loops -- each party seeing the incoming - commands not as acknowledgments but as new requests which must be - acknowledged. To prevent such loops, the following rules prevail: - - a. Parties may only request a change in option status; i.e., a - party may not send out a "request" merely to announce what - mode it is in. - - b. If a party receives what appears to be a request to enter some - mode it is already in, the request should not be acknowledged. - - c. Whenever one party sends an option command to a second party, - whether as a request or an acknowledgment, and use of the - option will have any effect on the processing of the data - being sent from the first party to the second, then the - command must be inserted in the data stream at the point where - it is desired that it take effect. (It should be noted that - some time will elapse between the transmission of a request - and the receipt of an acknowledgment, which may be negative. - Thus, a site may wish to buffer data, after requesting an - - - - -[Page 2] Postel - - -RFC 764, IEN 148 June 1980 - Telnet Protocol Specification - - - - option, until it learns whether the request is accepted or - rejected, in order to hide the "uncertainty period" from the - user.) - - Option requests are likely to flurry back and forth when a TELNET - connection is first established, as each party attempts to get the - best possible service from the other party. Beyond that, however, - options can be used to dynamically modify the characteristics of the - connection to suit changing local conditions. For example, the NVT, - as will be explained later, uses a transmission discipline well - suited to the many "line at a time" applications such as BASIC, but - poorly suited to the many "character at a time" applications such as - NLS. A server might elect to devote the extra processor overhead - required for a "character at a time" discipline when it was suitable - for the local process and would negotiate an appropriate option. - However, rather than then being permanently burdened with the extra - processing overhead, it could switch (i.e., negotiate) back to NVT - when the more "taut" control was no longer necessary. - - It is possible for requests initiated by processes to stimulate a - nonterminating request loop if the process responds to a rejection by - merely re-requesting the option. To prevent such loops from - occurring, rejected requests should not be repeated until something - changes. Operationally, this can mean the process is running a - different program, or the user has given another command, or whatever - makes sense in the context of the given process and the given option. - A good rule of thumb is that a re-request should only occur as a - result of subsequent information from the other end of the connection - or when demanded by local human intervention. - - Option designers should not feel constrained by the somewhat limited - syntax available for option negotiation. The intent of the simple - syntax is to make it easy to have options--since it is - correspondingly easy to profess ignorance about them. If some - particular option requires a richer negotiation structure than - possible within "DO, DON'T, WILL, WON'T", the proper tack is to use - "DO, DON'T, WILL, WON'T" to establish that both parties understand - the option, and once this is accomplished a more exotic syntax can be - used freely. For example, a party might send a request to alter - (establish) line length. If it is accepted, then a different syntax - can be used for actually negotiating the line length--such a - "sub-negotiation" perhaps including fields for minimum allowable, - maximum allowable and desired line lengths. The important concept is - that such expanded negotiations should never begin until some prior - (standard) negotiation has established that both parties are capable - of parsing the expanded syntax. - - - - -Postel [Page 3] - - -June 1980 RFC 764, IEN 148 -Telnet Protocol Specification - - - - In summary, WILL XXX is sent, by either party, to indicate that - party's desire (offer) to begin performing option XXX, DO XXX and - DON'T XXX being its positive and negative acknowledgments; similarly, - DO XXX is sent to indicate a desire (request) that the other party - (i.e., the recipient of the DO) begin performing option XXX, WILL XXX - and WON'T XXX being the positive and negative acknowledgments. Since - the NVT is what is left when no options are enabled, the DON'T and - WON'T responses are guaranteed to leave the connection in a state - which both ends can handle. Thus, all Hosts may implement their - TELNET processes to be totally unaware of options that are not - supported, simply returning a rejection to (i.e., refusing) any - option request that cannot be understood. - - As much as possible, the TELNET protocol has been made server-user - symmetrical so that it easily and naturally covers the user-user - (linking) and server-server (cooperating processes) cases. It is - hoped, but not absolutely required, that options will further this - intent. In any case, it is explicitly acknowledged that symmetry is - an operating principle rather than an ironclad rule. - - A companion document, "TELNET Option Specifications," should be - consulted for information about the procedure for establishing new - options. That document, as well as descriptions of all currently - defined options, is contained in the TELNET section of the ARPA - Internet Protocol Handbook. - -THE NETWORK VIRTUAL TERMINAL - - The Network Virtual Terminal (NVT) is a bi-directional character - device. The NVT has a printer and a keyboard. The printer responds - to incoming data and the keyboard produces outgoing data which is - sent over the TELNET connection and, if "echoes" are desired, to the - NVT's printer as well. "Echoes" will not be expected to traverse the - network (although options exist to enable a "remote" echoing mode of - operation, no Host is required to implement this option). The code - set is seven-bit USASCII in an eight-bit field, except as modified - herein. Any code conversion and timing considerations are local - problems and do not affect the NVT. - - TRANSMISSION OF DATA - - Although a TELNET connection through the network is intrinsically - full duplex, the NVT is to be viewed as a half-duplex device - operating in a line-buffered mode. That is, unless and until - - - - - - -[Page 4] Postel - - -RFC 764, IEN 148 June 1980 - Telnet Protocol Specification - - - - options are negotiated to the contrary, the following default - conditions pertain to the transmission of data over the TELNET - connection: - - 1) Insofar as the availability of local buffer space permits, - data should be accumulated in the Host where it is generated - until a complete line of data is ready for transmission, or - until some locally-defined explicit signal to transmit occurs. - This signal could be generated either by a process or by a - human user. - - The motivation for this rule is the high cost, to some Hosts, - of processing network input interrupts, coupled with the - default NVT specification that "echoes" do not traverse the - network. Thus, it is reasonable to buffer some amount of data - at its source. Many systems take some processing action at the - end of each input line (even line printers or card punches - frequently tend to work this way), so the transmission should - be triggered at the end of a line. On the other hand, a user - or process may sometimes find it necessary or desirable to - provide data which does not terminate at the end of a line; - therefore implementers are cautioned to provide methods of - locally signaling that all buffered data should be transmitted - immediately. - - 2) When a process has completed sending data to an NVT printer - and has no queued input from the NVT keyboard for further - processing (i.e., when a process at one end of a TELNET - connection cannot proceed without input from the other end), - the process must transmit the TELNET Go Ahead (GA) command. - - This rule is not intended to require that the TELNET GA command - be sent from a terminal at the end of each line, since server - Hosts do not normally require a special signal (in addition to - end-of-line or other locally-defined characters) in order to - commence processing. Rather, the TELNET GA is designed to help - a user's local Host operate a physically half duplex terminal - which has a "lockable" keyboard such as the IBM 2741. A - description of this type of terminal may help to explain the - proper use of the GA command. - - The terminal-computer connection is always under control of - either the user or the computer. Neither can unilaterally - seize control from the other; rather the controlling end must - relinguish its control explicitly. At the terminal end, the - hardware is constructed so as to relinquish control each time - - - - -Postel [Page 5] - - -June 1980 RFC 764, IEN 148 -Telnet Protocol Specification - - - - that a "line" is terminated (i.e., when the "New Line" key is - typed by the user). When this occurs, the attached (local) - computer processes the input data, decides if output should be - generated, and if not returns control to the terminal. If - output should be generated, control is retained by the computer - until all output has been transmitted. - - The difficulties of using this type of terminal through the - network should be obvious. The "local" computer is no longer - able to decide whether to retain control after seeing an - end-of-line signal or not; this decision can only be made by - the "remote" computer which is processing the data. Therefore, - the TELNET GA command provides a mechanism whereby the "remote" - (server) computer can signal the "local" (user) computer that - it is time to pass control to the user of the terminal. It - should be transmitted at those times, and only at those times, - when the user should be given control of the terminal. Note - that premature transmission of the GA command may result in the - blocking of output, since the user is likely to assume that the - transmitting system has paused, and therefore he will fail to - turn the line around manually. - - The foregoing, of course, does not apply to the user-to-server - direction of communication. In this direction, GAs may be sent at - any time, but need not ever be sent. Also, if the TELNET - connection is being used for process-to-process communication, GAs - need not be sent in either direction. Finally, for - terminal-to-terminal communication, GAs may be required in - neither, one, or both directions. If a Host plans to support - terminal-to-terminal communication it is suggested that the Host - provide the user with a means of manually signaling that it is - time for a GA to be sent over the TELNET connection; this, - however, is not a requirement on the implementer of a TELNET - process. - - STANDARD REPRESENTATION OF CONTROL FUNCTIONS - - As stated in the Introduction to this document, the primary goal - of the TELNET protocol is the provision of a standard interfacing - of terminal devices and terminal-oriented processes through the - network. Early experiences with this type of interconnection have - shown that certain functions are implemented by most servers, but - that the methods of invoking these functions differ widely. For a - human user who interacts with several server systems, these - differences are highly frustrating. TELNET, therefore, defines a - standard representation for five of these functions, as described - - - - -[Page 6] Postel - - -RFC 764, IEN 148 June 1980 - Telnet Protocol Specification - - - - below. These standard representations have standard, but not - required, meanings (with the exception that the IP function may be - required by other protocols which use TELNET); that is, a system - which does not provide the function to local users need not - provide it to network users and may treat the standard - representation for the function as a No-operation. On the other - hand, a system which does provide the function to local is obliged - to provide the same function as a network user who transmits the - standard representation for the function. - - Interrupt Process (IP) - - Many systems provide a function which suspends, interrupts, - aborts, or terminates the operation of a user process. This - function is frequently used when a user believes his process is - in an unending loop, or when an unwanted process has been - inadvertently activated. IP is the standard representation for - invoking this function. It should be noted by implementers - that IP may be required by other protocols which use TELNET, - and therefore should be implemented if these other protocols - are to be supported. - - Abort Output (AO) - - Many systems provide a function which allows a process, which - is generating output, to run to completion (or to reach the - same stopping point it would reach if running to completion) - but without sending the output to the user's terminal. - Further, this function typically clears any output already - produced but not yet actually printed (or displayed) on the - user's terminal. AO is the standard representation for - invoking this function. For example, some subsystem might - normally accept a user's command, send a long text string to - the user's terminal in response, and finally signal readiness - to accept the next command by sending a "prompt" character - (preceded by ) to the user's terminal. If the AO were - received during the transmission of the text string, a - reasonable implementation would be to suppress the remainder of - the text string, but transmit the prompt character and the - preceding . (This is possibly in distinction to the - action which might be taken if an IP were received; the IP - might cause suppression of the text string and an exit from the - subsystem.) - - It should be noted, by systems which provide this function, - that there may be buffers external to the system (in the - - - - -Postel [Page 7] - - -June 1980 RFC 764, IEN 148 -Telnet Protocol Specification - - - - network and the user's "local" Host) which should be cleared; - the appropriate way to do this is to transmit the "Synch" - signal described below. - - Are You There (AYT) - - Many systems provide a function which provides the user with - some visible (e.g., printable) evidence that the system is - still up and running. This function may be invoked by the user - when the system is unexpectedly "silent" for a long time, - because of the unanticipated (by the user) length of a - computation, an unusually heavy system load, etc. AYT is the - standard representation for invoking this function. - - Erase Character (EC) - - Many systems provide a function which deletes the last - preceding undeleted character or "print position"* from the - stream of data being supplied by the user. This function is - typically used to edit keyboard input when typing mistakes are - made. EC is the standard representation for invoking this - function. - - *NOTE: A "print position" may contain several characters - which are the result of overstrikes, or of sequences such as - BS ... - - Erase Line (EL) - - Many systems provide a function which deletes all the data in - the current "line" of input. This function is typically used - to edit keyboard input. EL is the standard representation for - invoking this function. - - THE TELNET "SYNCH" SIGNAL - - Most time-sharing systems provide mechanisms which allow a - terminal user to regain control of a "runaway" process; the IP and - AO functions described above are examples of these mechanisms. - Such systems, when used locally, have access to all of the signals - supplied by the user, whether these are normal characters or - special "out of band" signals such as those supplied by the - teletype "BREAK" key or the IBM 2741 "ATTN" key. This is not - necessarily true when terminals are connected to the system - - - - - - -[Page 8] Postel - - -RFC 764, IEN 148 June 1980 - Telnet Protocol Specification - - - - through the network; the network's flow control mechanisms may - cause such a signal to be buffered elsewhere, for example in the - user's Host. - - To counter this problem, the TELNET "Synch" mechanism is - introduced. A Synch signal consists of a TCP Urgent notification, - coupled with the TELNET command DATA MARK. The Urgent - notification, which is not subject to the flow control pertaining - to the TELNET connection, is used to invoke special handling of - the data stream by the process which receives it. In this mode, - the data stream is immediately scanned for "interesting" signals - as defined below, discarding intervening data. The TELNET command - DATA MARK (DM) is the synchronizing mark in the data stream which - indicates that any special signal has already occurred and the - recipient can return to normal processing of the data stream. - - The Synch is sent via the TCP send operation with the Urgent - flag set and the DM as the last (or only) data octet. - - When several Synchs are sent in rapid succession, the Urgent - notifications may be merged. It is not possible to count Urgents - since the number received will be less than or equal the number - sent. When in normal mode a DM is a no operation, when in urgent - mode it signals the end of the urgent processing (this should - correspond with the end of Urgent pointer indicated by TCP). - - If TCP indicates the end of Urgent data before the DM is found, - TELNET should continue the special handling of the data stream - until the DM is found. - - "Interesting" signals are defined to be: the TELNET standard - representations of IP, AO, and AYT (but not EC or EL); the local - analogs of these standard representations (if any); all other - TELNET commands; other site-defined signals which can be acted on - without delaying the scan of the data stream. - - Since one effect of the SYNCH mechanism is the discarding of - essentially all characters (except TELNET commands) between the - sender of the Synch and its recipient, this mechanism is specified - as the standard way to clear the data path when that is desired. - For example, if a user at a terminal causes an AO to be - transmitted, the server which receives the AO (if it provides that - function at all) should return a Synch to the user. - - Finally, just as the TCP Urgent notification is needed at the - - - - - -Postel [Page 9] - - -June 1980 RFC 764, IEN 148 -Telnet Protocol Specification - - - - TELNET level as an out-of-band signal, so other protocols which - make use of TELNET may require a TELNET command which can be - viewed as an out-of-band signal at a different level. - - By convention the sequence [IP, Synch] is to be used as such a - signal. For example, suppose that some other protocol, which uses - TELNET, defines the character string STOP analogously to the - TELNET command AO. Imagine that a user of this protocol wishes a - server to process the STOP string, but the connection is blocked - because the server is processing other commands. The user should - instruct his system to: - - 1. Send the TELNET IP character; - - 2. Send the TELNET SYNC sequence, that is: - - Send the Data Mark (DM) as the only character - in a TCP urgent mode send operation. - - 3. Send the character string STOP; and - - 4. Send the other protocol's analog of the TELNET DM, if any. - - The user (or process acting on his behalf) must transmit the - TELNET SYNCH sequence of step 2 above to ensure that the TELNET IP - gets through to the server's TELNET interpreter. - - The Urgent should wake up the TELNET process, the IP should - wake up the next higher level process. - - THE NVT PRINTER AND KEYBOARD - - The NVT printer has an unspecified carriage width and page length - and can produce representations of all 95 USASCII graphics (codes - 32 through 126). Of the 33 USASCII control codes (0 through 31 - and 127), and the 128 uncovered codes (128 through 255), the - following have specified meaning to the NVT printer: - - NAME CODE MEANING - - NULL (NUL) 0 A no operation - Line Feed (LF) 10 Moves the printer to the - next print line, keeping the - same horizontal position - Carriage Return (CR) 13 Moves the printer to the left - margin of the current line. - - - - -[Page 10] Postel - - -RFC 764, IEN 148 June 1980 - Telnet Protocol Specification - - - - In addition, the following codes shall have defined, but not - required, effects on the NVT printer. Neither end of a TELNET - connection may assume that the other party will take, or will - have taken, any particular action upon receipt or transmission - of these: - - BELL (BEL) 7 Produces an audible or - visible signal (which does - NOT move the print head) - Back Space (BS) 8 Moves the print head one - character position towards - the left margin. - Horizontal Tab (HT) 9 Moves the printer to the - next horizontal tab stop. - It remains unspecified how - either party determines or - establishes where such tab - stops are located. - Vertical Tab (VT) 11 Moves the printer to the - next horizontal tab stop.It - remains unspecified how - either party determines or - establishes where such tab - stops are located. - Form Feed (FF) 12 Moves the printer to the top - of the next page, keeping - the same horizontal position - - All remaining codes do not cause the NVT printer to take any - action. - - The sequence "CR LF", as defined, will cause the NVT to be - positioned at the left margin of the next print line (as would, - for example, the sequence "LF CR"). However, many systems and - terminals do not treat CR and LF independently, and will have to - go to some effort to simulate their effect. (For example, some - terminals do not have a CR independent of the LF, but on such - terminals it may be possible to simulate a CR by backspacing.) - Therefore, the sequence "CR LF" must be treated as a single "new - line" character and used whenever their combined action is - intended; the sequence "CR NUL" must be used where a carriage - return alone is actually desired; and the CR character must be - avoided in other contexts. This rule gives assurance to systems - which must decide whether to perform a "new line" function or a - multiple-backspace that the TELNET stream contains a character - following a CR that will allow a rational decision. - - - - -Postel [Page 11] - - -June 1980 RFC 764, IEN 148 -Telnet Protocol Specification - - - - Note that "CR LF" or "CR NUL" is required in both directions - (in the default ASCII mode), to preserve the symmetry of the - NVT model. Even though it may be known in some situations - (e.g., with remote echo and suppress go ahead options in - effect) that characters are not being sent to an actual - printer, none the less, for the sake of consistency, the - protocol requires that a NUL be inserted following a CR not - followed by a LF in the data stream. The converse of this is - that a NUL received in the data stream after a CR (in the - absence of options negotiations which explicitly specify - otherwise) should be stripped out prior to applying the NVT to - local character set mapping. - - The NVT keyboard has keys, or key combinations, or key sequences, - for generating all 128 USASCII codes. Note that although many - have no effect on the NVT printer, the NVT keyboard is capable of - generating them. - - In addition to these codes, the NVT keyboard shall be capable of - generating the following additional codes which, except as noted, - have defined, but not reguired, meanings. The actual code - assignments for these "characters" are in the TELNET Command - section, because they are viewed as being, in some sense, generic - and should be available even when the data stream is interpreted - as being some other character set. - - Synch - - This key allows the user to clear his data path to the other - party. The activation of this key causes a DM (see command - section) to be sent in the data stream and a TCP Urgent - notification is associated with it. The pair DM-Urgent is to - have required meaning as defined previously. - - Break (BRK) - - This code is provided because it is a signal outside the - USASCII set which is currently given local meaning within many - systems. It is intended to indicate that the Break Key or the - Attention Key was hit. Note, however, that this is intended to - provide a 129th code for systems which require it, not as a - synonym for the IP standard representation. - - - - - - - - -[Page 12] Postel - - -RFC 764, IEN 148 June 1980 - Telnet Protocol Specification - - - - Interrupt Process (IP) - - Suspend, interrupt, abort or terminate the process to which the - NVT is connected. Also, part of the out-of-band signal for - other protocols which use TELNET. - - Abort Output (AO) - - Allow the current process to (appear to) run to completion, but - do not send its output to the user. Also, send a Synch to the - user. - - Are You There (AYT) - - Send back to the NVT some visible (i.e., printable) evidence - that the AYT was received. - - Erase Character (EC) - - The recipient should delete the last preceding undeleted - character or "print position" from the data stream. - - Erase Line (EL) - - The recipient should delete characters from the data stream - back to, but not including, the last "CR LF" sequence sent over - the TELNET connection. - - The spirit of these "extra" keys, and also the printer format - effectors, is that they should represent a natural extension of - the mapping that already must be done from "NVT" into "local". - Just as the NVT data byte 104 should be mapped into whatever the - local code for "uppercase D" is, so the EC character should be - mapped into whatever the local "Erase Character" function is. - Further, just as the mapping for 174 is somewhat arbitrary in an - environment that has no "vertical bar" character, the EL character - may have a somewhat arbitrary mapping (or none at all) if there is - no local "Erase Line" facility. Similarly for format effectors: - if the terminal actually does have a "Vertical tab", then the - mapping for VT is obvious, and only when the terminal does not - have a vertical tab should the effect of VT be unpredictable. - - - - - - - - - -Postel [Page 13] - - -June 1980 RFC 764, IEN 148 -Telnet Protocol Specification - - - -TELNET COMMAND STRUCTURE - - All TELNET commands consist of at least a two byte sequence: the - "Interpret as Command" (IAC) escape character followed by the code - for the command. The commands dealing with option negotiation are - three byte sequences, the third byte being the code for the option - referenced. This format was chosen so that as more comprehensive use - of the "data space" is made -- by negotiations from the basic NVT, of - course -- collisions of data bytes with reserved command values will - be minimized, all such collisions requiring the inconvenience, and - inefficiency, of "escaping" the data bytes into the stream. With the - current set-up, only the IAC need be doubled to be sent as data, and - the other 255 codes may be passed transparently. - - The following are the defined TELNET commands. Note that these codes - and code sequences have the indicated meaning only when immediately - preceded by an IAC. - - NAME CODE MEANING - - SE 240 End of subnegotiation parameters - NOP 241 No operation - Data Mark 242 The data stream portion of a Synch - This should always be accompanied - by a TCP Urgent notification. - Break 243 NVT character BRK - Interrupt Process 244 The function IP - Abort output 245 The function AO - Are You There 246 The function AYT - Erase character 247 The function EC - Erase Line 248 The function EL - Go ahead 249 The GA signal - SB 250 Indicates that what follows is - subnegotiation of the indicated - option - WILL (option code) 251 Indicates the desire to begin - performing, or confirmation that - you are now performing, the - indicated option - WON't (option code) 252 Indicates the refusal to perform, - or continue performing, the - indicated option. - DO (option code) 253 Indicates the request that the - other party perform, or - confirmation that you are expecting - the other party to perform, the - - - - -[Page 14] Postel - - -RFC 764, IEN 148 June 1980 - Telnet Protocol Specification - - - - indicated option. - DON'T (option code) 254 Indicates the demand that the - other party stop performing, - or confirmation that you are no - longer expecting the other party - to perform, the indicated option. - IAC 255 Data Byte 255. - -CONNECTION ESTABLISHMENT - - The TELNET TCP connection is established between the user's port U - and the server's port L. The server listens on its well known port L - for such connections. Since a TCP connection is full duplex and - identified by the pair of ports, the server can engage in many - simultaneous connections involving it's port L and different user - ports U. - - Port Assignment - - When used for remote user access to service hosts (i.e., remote - terminal access) this protocol is assigned server port 23 (27 - octal). That is L=23. - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 15] diff --git a/text/ien/ien149.txt b/text/ien/ien149.txt deleted file mode 100644 index b5c3fbb7..00000000 --- a/text/ien/ien149.txt +++ /dev/null @@ -1,4131 +0,0 @@ - - - -IEN 149 J. Postel -RFC 765 ISI - June 1980 - - FILE TRANSFER PROTOCOL - - -INTRODUCTION - - The objectives of FTP are 1) to promote sharing of files (computer - programs and/or data), 2) to encourage indirect or implicit (via - programs) use of remote computers, 3) to shield a user from - variations in file storage systems among Hosts, and 4) to transfer - data reliably and efficiently. FTP, though usable directly by a user - at a terminal, is designed mainly for use by programs. - - The attempt in this specification is to satisfy the diverse needs of - users of maxi-Hosts, mini-Hosts, and TIPs, with a simple, and easily - implemented protocol design. - - This paper assumes knowledge of the following protocols described in - the ARPA Internet Protocol Handbook. - - The Transmission Control Protocol - - The TELNET Protocol - -DISCUSSION - - In this section, the terminology and the FTP model are discussed. - The terms defined in this section are only those that have special - significance in FTP. Some of the terminology is very specific to the - FTP model; some readers may wish to turn to the section on the FTP - model while reviewing the terminology. - - TERMINOLOGY - - ASCII - - The ASCII character set as defined in the ARPA Internet - Protocol Handbook. In FTP, ASCII characters are defined to be - the lower half of an eight-bit code set (i.e., the most - significant bit is zero). - - access controls - - Access controls define users' access privileges to the use of a - system, and to the files in that system. Access controls are - necessary to prevent unauthorized or accidental use of files. - It is the prerogative of a server-FTP process to invoke access - controls. - - - - - 1 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - - byte size - - There are two byte sizes of interest in FTP: the logical byte - size of the file, and the transfer byte size used for the - transmission of the data. The transfer byte size is always 8 - bits. The transfer byte size is not necessarily the byte size - in which data is to be stored in a system, nor the logical byte - size for interpretation of the structure of the data. - - data connection - - A simplex connection over which data is transferred, in a - specified mode and type. The data transferred may be a part of - a file, an entire file or a number of files. The path may be - between a server-DTP and a user-DTP, or between two - server-DTPs. - - data port - - The passive data transfer process "listens" on the data port - for a connection from the active transfer process in order to - open the data connection. - - EOF - - The end-of-file condition that defines the end of a file being - transferred. - - EOR - - The end-of-record condition that defines the end of a record - being transferred. - - error recovery - - A procedure that allows a user to recover from certain errors - such as failure of either Host system or transfer process. In - FTP, error recovery may involve restarting a file transfer at a - given checkpoint. - - FTP commands - - A set of commands that comprise the control information flowing - from the user-FTP to the server-FTP process. - - - - - - - 2 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - - file - - An ordered set of computer data (including programs), of - arbitrary length, uniquely identified by a pathname. - - mode - - The mode in which data is to be transferred via the data - connection. The mode defines the data format during transfer - including EOR and EOF. The transfer modes defined in FTP are - described in the Section on Transmission Modes. - - NVT - - The Network Virtual Terminal as defined in the TELNET Protocol. - - NVFS - - The Network Virtual File System. A concept which defines a - standard network file system with standard commands and - pathname conventions. FTP only partially implements the NVFS - concept at this time. - - page - - A file may be structured as a set of independent parts called - pages. FTP supports the transmission of discontinuous files as - independent indexed pages. - - pathname - - Pathname is defined to be the character string which must be - input to a file system by a user in order to identify a file. - Pathname normally contains device and/or directory names, and - file name specification. FTP does not yet specify a standard - pathname convention. Each user must follow the file naming - conventions of the file systems involved in the transfer. - - record - - A sequential file may be structured as a number of contiguous - parts called records. Record structures are supported by FTP - but a file need not have record structure. - - - - - - - - 3 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - - reply - - A reply is an acknowledgment (positive or negative) sent from - server to user via the TELNET connections in response to FTP - commands. The general form of a reply is a completion code - (including error codes) followed by a text string. The codes - are for use by programs and the text is usually intended for - human users. - - server-DTP - - The data transfer process, in its normal "active" state, - establishes the data connection with the "listening" data port, - sets up parameters for transfer and storage, and transfers data - on command from its PI. The DTP can be placed in a "passive" - state to listen for, rather than initiate a, connection on the - data port. - - server-FTP process - - A process or set of processes which perform the function of - file transfer in cooperation with a user-FTP process and, - possibly, another server. The functions consist of a protocol - interpreter (PI) and a data transfer process (DTP). - - server-PI - - The protocol interpreter "listens" on Port L for a connection - from a user-PI and establishes a TELNET communication - connection. It receives standard FTP commands from the - user-PI, sends replies, and governs the server-DTP. - - TELNET connections - - The full-duplex communication path between a user-PI and a - server-PI, operating according to the TELNET Protocol. - - type - - The data representation type used for data transfer and - storage. Type implies certain transformations between the time - of data storage and data transfer. The representation types - defined in FTP are described in the Section on Establishing - Data Connections. - - - - - - - 4 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - - user - - A human being or a process on behalf of a human being wishing - to obtain file transfer service. The human user may interact - directly with a server-FTP process, but use of a user-FTP - process is preferred since the protocol design is weighted - towards automata. - - user-DTP - - The data transfer process "listens" on the data port for a - connection from a server-FTP process. If two servers are - transferring data between them, the user-DTP is inactive. - - user-FTP process - - A set of functions including a protocol interpreter, a data - transfer process and a user interface which together perform - the function of file transfer in cooperation with one or more - server-FTP processes. The user interface allows a local - language to be used in the command-reply dialogue with the - user. - - user-PI - - The protocol interpreter initiates the TELNET connection from - its port U to the server-FTP process, initiates FTP commands, - and governs the user-DTP if that process is part of the file - transfer. - - - - - - - - - - - - - - - - - - - - - - 5 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - - THE FTP MODEL - - With the above definitions in mind, the following model (shown in - Figure 1) may be diagrammed for an FTP service. - - ------------- - |/---------\| - || User || -------- - ||Interface|<--->| User | - |\----:----/| -------- - ---------- | V | - |/------\| FTP Commands |/---------\| - ||Server|<---------------->| User || - || PI || FTP Replies || PI || - |\--:---/| |\----:----/| - | V | | V | - -------- |/------\| Data |/---------\| -------- - | File |<--->|Server|<---------------->| User |<--->| File | - |System| || DTP || Connection || DTP || |System| - -------- |\------/| |\---------/| -------- - ---------- ------------- - - Server-FTP User-FTP - - NOTES: 1. The data connection may be used in either direction. - 2. The data connection need not exist all of the time. - - Figure 1 Model for FTP Use - - In the model described in Figure 1, the user-protocol interpreter - initiates the TELNET connection. At the initiation of the user, - standard FTP commands are generated by the user-PI and transmitted - to the server process via the TELNET connection. (The user may - establish a direct TELNET connection to the server-FTP, from a TIP - terminal for example, and generate standard FTP commands himself, - bypassing the user-FTP process.) Standard replies are sent from - the server-PI to the user-PI over the TELNET connection in - response to the commands. - - The FTP commands specify the parameters for the data connection - (data port, transfer mode, representation type, and structure) and - the nature of file system operation (store, retrieve, append, - delete, etc.). The user-DTP or its designate should "listen" on - the specified data port, and the server initiate the data - connection and data transfer in accordance with the specified - parameters. It should be noted that the data port need not be in - - - - - 6 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - - the same Host that initiates the FTP commands via the TELNET - connection, but the user or his user-FTP process must ensure a - "listen" on the specified data port. It should also be noted that - the data connection may be used for simultaneous sending and - receiving. - - In another situation a user might wish to transfer files between - two Hosts, neither of which is his local Host. He sets up TELNET - connections to the two servers and then arranges for a data - connection between them. In this manner control information is - passed to the user-PI but data is transferred between the server - data transfer processes. Following is a model of this - server-server interaction. - - - TELNET ------------ TELNET - ---------->| User-FTP |<----------- - | | User-PI | | - | | "C" | | - V ------------ V - -------------- -------------- - | Server-FTP | Data Connection | Server-FTP | - | "A" |<---------------------->| "B" | - -------------- Port (A) Port (B) -------------- - - - Figure 2 - - The protocol requires that the TELNET connections be open while - data transfer is in progress. It is the responsibility of the - user to request the closing of the TELNET connections when - finished using the FTP service, while it is the server who takes - the action. The server may abort data transfer if the TELNET - connections are closed without command. - -DATA TRANSFER FUNCTIONS - - Files are transferred only via the data connection. The TELNET - connection is used for the transfer of commands, which describe the - functions to be performed, and the replies to these commands (see the - Section on FTP Replies). Several commands are concerned with the - transfer of data between Hosts. These data transfer commands include - the MODE command which specify how the bits of the data are to be - transmitted, and the STRUcture and TYPE commands, which are used to - define the way in which the data are to be represented. The - transmission and representation are basically independent but - - - - - 7 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - - "Stream" transmission mode is dependent on the file structure - attribute and if "Compressed" transmission mode is used the nature of - the filler byte depends on the representation type. - - DATA REPRESENTATION AND STORAGE - - Data is transferred from a storage device in the sending Host to a - storage device in the receiving Host. Often it is necessary to - perform certain transformations on the data because data storage - representations in the two systems are different. For example, - NVT-ASCII has different data storage representations in different - systems. PDP-10's generally store NVT-ASCII as five 7-bit ASCII - characters, left-justified in a 36-bit word. 360's store NVT-ASCII - as 8-bit EBCDIC codes. Multics stores NVT-ASCII as four 9-bit - characters in a 36-bit word. It may be desirable to convert - characters into the standard NVT-ASCII representation when - transmitting text between dissimilar systems. The sending and - receiving sites would have to perform the necessary - transformations between the standard representation and their - internal representations. - - A different problem in representation arises when transmitting - binary data (not character codes) between Host systems with - different word lengths. It is not always clear how the sender - should send data, and the receiver store it. For example, when - transmitting 32-bit bytes from a 32-bit word-length system to a - 36-bit word-length system, it may be desirable (for reasons of - efficiency and usefulness) to store the 32-bit bytes - right-justified in a 36-bit word in the latter system. In any - case, the user should have the option of specifying data - representation and transformation functions. It should be noted - that FTP provides for very limited data type representations. - Transformations desired beyond this limited capability should be - performed by the user directly. - - Data representations are handled in FTP by a user specifying a - representation type. This type may implicitly (as in ASCII or - EBCDIC) or explicitly (as in Local byte) define a byte size for - interpretation which is referred to as the "logical byte size." - This has nothing to do with the byte size used for transmission - over the data connection, called the "transfer byte size", and the - two should not be confused. For example, NVT-ASCII has a logical - byte size of 8 bits. If the type is Local byte, then the TYPE - command has an obligatory second parameter specifying the logical - byte size. The transfer byte size is always 8 bits. - - - - - - 8 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - - The types ASCII and EBCDIC also take a second (optional) - parameter; this is to indicate what kind of vertical format - control, if any, is associated with a file. The following data - representation types are defined in FTP: - - ASCII Format - - This is the default type and must be accepted by all FTP - implementations. It is intended primarily for the transfer - of text files, except when both Hosts would find the EBCDIC - type more convenient. - - The sender converts the data from his internal character - representation to the standard 8-bit NVT-ASCII - representation (see the TELNET specification). The receiver - will convert the data from the standard form to his own - internal form. - - In accordance with the NVT standard, the sequence - should be used, where necessary, to denote the end of a line - of text. (See the discussion of file structure at the end - of the Section on Data Representation and Storage). - - Using the standard NVT-ASCII representation means that data - must be interpreted as 8-bit bytes. - - The Format parameter for ASCII and EBCDIC types is discussed - below. - - EBCDIC Format - - This type is intended for efficient transfer between Hosts - which use EBCDIC for their internal character - representation. - - For transmission the data are represented as 8-bit EBCDIC - characters. The character code is the only difference - between the functional specifications of EBCDIC and ASCII - types. - - End-of-line (as opposed to end-of-record--see the discussion - of structure) will probably be rarely used with EBCDIC type - for purposes of denoting structure, but where it is - necessary the character should be used. - - - - - - - 9 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - - A character file may be transferred to a Host for one of three - purposes: for printing, for storage and later retrieval, or for - processing. If a file is sent for printing, the receiving Host - must know how the vertical format control is represented. In the - second case, it must be possible to store a file at a Host and - then retrieve it later in exactly the same form. Finally, it - ought to be possible to move a file from one Host to another and - process the file at the second Host without undue trouble. A - single ASCII or EBCDIC format does not satisfy all these - conditions and so these types have a second parameter specifying - one of the following three formats: - - Non-print - - This is the default format to be used if the second (format) - parameter is omitted. Non-print format must be accepted by - all FTP implementations. - - The file need contain no vertical format information. If it - is passed to a printer process, this process may assume - standard values for spacing and margins. - - Normally, this format will be used with files destined for - processing or just storage. - - TELNET Format Controls - - The file contains ASCII/EBCDIC vertical format controls - (i.e., , , , , ) which the printer - process will interpret appropriately. , in exactly - this sequence, also denotes end-of-line. - - Carriage Control (ASA) - - The file contains ASA (FORTRAN) vertical format control - characters. (See RFC 740 Appendix C and Communications of - the ACM, Vol. 7, No. 10, 606 (Oct. 1964)). In a line or a - record, formatted according to the ASA Standard, the first - character is not to be printed. Instead it should be used - to determine the vertical movement of the paper which should - take place before the rest of the record is printed. - - - - - - - - - - 10 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - - The ASA Standard specifies the following control characters: - - Character Vertical Spacing - - blank Move paper up one line - 0 Move paper up two lines - 1 Move paper to top of next page - + No movement, i.e., overprint - - Clearly there must be some way for a printer process to - distinguish the end of the structural entity. If a file has - record structure (see below) this is no problem; records - will be explicitly marked during transfer and storage. If - the file has no record structure, the end-of-line - sequence is used to separate printing lines, but these - format effectors are overridden by the ASA controls. - - Image - - The data are sent as contiguous bits which, for transfer, - are packed into the 8-bit transfer bytes. The receiving - site must store the data as contiguous bits. The structure - of the storage system might necessitate the padding of the - file (or of each record, for a record-structured file) to - some convenient boundary (byte, word or block). This - padding, which must be all zeros, may occur only at the end - of the file (or at the end of each record) and there must be - a way of identifying the padding bits so that they may be - stripped off if the file is retrieved. The padding - transformation should be well publicized to enable a user to - process a file at the storage site. - - Image type is intended for the efficient storage and - retrieval of files and for the transfer of binary data. It - is recommended that this type be accepted by all FTP - implementations. - - Local byte Byte size - - The data is transferred in logical bytes of the size - specified by the obligatory second parameter, Byte size. - The value of Byte size must be a decimal integer; there is - no default value. The logical byte size is not necessarily - the same as the transfer byte size. If there is a - - - - - - - 11 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - - difference in byte sizes, then the logical bytes should be - packed contiguously, disregarding transfer byte boundaries - and with any necessary padding at the end. - - When the data reaches the receiving Host it will be - transformed in a manner dependent on the logical byte size - and the particular Host. This transformation must be - invertible (that is an identical file can be retrieved if - the same parameters are used) and should be well publicized - by the FTP implementors. - - For example, a user sending 36-bit floating-point numbers to - a Host with a 32-bit word could send his data as Local byte - with a logical byte size of 36. The receiving Host would - then be expected to store the logical bytes so that they - could be easily manipulated; in this example putting the - 36-bit logical bytes into 64-bit double words should - suffice. - - Another example, a pair of hosts with a 36-bit word size may - send data to one another in words by using TYPE L 36. The - data would be sent in the 8-bit transmission bytes packed so - that 9 transmission bytes carried two host words. - - A note of caution about parameters: a file must be stored and - retrieved with the same parameters if the retrieved version is to - be identical to the version originally transmitted. Conversely, - FTP implementations must return a file identical to the original - if the parameters used to store and retrieve a file are the same. - - In addition to different representation types, FTP allows the - structure of a file to be specified. Three file structures are - defined in FTP: - - file-structure, where there is no internal structure and the - file is considered to be a continuous - sequence of data bytes, - - record-structure, where the file is made up of sequential - records, - - and page-structure, where the file is made up of independent - indexed pages. - - File-structure is the default, to be assumed if the STRUcture - command has not been used but both file and record structures must - - - - - 12 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - - be accepted for "text" files (i.e., files with TYPE ASCII or - EBCDIC) by all FTP implementations. The structure of a file will - affect both the transfer mode of a file (see the Section on - Transmission Modes) and the interpretation and storage of the - file. - - The "natural" structure of a file will depend on which Host stores - the file. A source-code file will usually be stored on an IBM 360 - in fixed length records but on a PDP-10 as a stream of characters - partitioned into lines, for example by . If the transfer of - files between such disparate sites is to be useful, there must be - some way for one site to recognize the other's assumptions about - the file. - - With some sites being naturally file-oriented and others naturally - record-oriented there may be problems if a file with one structure - is sent to a Host oriented to the other. If a text file is sent - with record-structure to a Host which is file oriented, then that - Host should apply an internal transformation to the file based on - the record structure. Obviously this transformation should be - useful but it must also be invertible so that an identical file - may be retrieved using record structure. - - In the case of a file being sent with file-structure to a - record-oriented Host, there exists the question of what criteria - the Host should use to divide the file into records which can be - processed locally. If this division is necessary the FTP - implementation should use the end-of-line sequence, for - ASCII, or for EBCDIC text files, as the delimiter. If an FTP - implementation adopts this technique, it must be prepared to - reverse the transformation if the file is retrieved with - file-structure. - - Page Structure - - To transmit files that are discontinuous FTP defines a page - structure. Files of this type are sometimes know as "random - access files" or even as "holey files". In these files there - is sometimes other information associated with the file as a - whole (e.g., a file descriptor), or with a section of the file - (e.g., page access controls), or both. In FTP, the sections of - the file are called pages. - - To provide for various page sizes and associated information - each page is sent with a page header. The page header has the - following defined fields: - - - - - 13 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - - Header Length - - The number of logical bytes in the page header including - this byte. The minimum header length is 4. - - Page Index - - The logical page number of this section of the file. - This is not the transmission sequence number of this - page, but the index used to identify this page of the - file. - - Data Length - - The number of logical bytes in the page data. The - minimum data length is 0. - - Page Type - - The type of page this is. The following page types are - defined: - - 0 = Last Page - - This is used to indicate the end of a paged - structured transmission. The header length must be - 4, and the data length must be 0. - - 1 = Simple Page - - This is the normal type for simple paged files with - no page level associated control information. The - header length must be 4. - - 2 = Descriptor Page - - This type is used to transmit the descriptive - information for the file as a whole. - - 3 = Access Controled Page - - This is type includes an additional header field - for paged files with page level access control - information. The header length must be 5. - - - - - - - 14 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - - Optional Fields - - Further header fields may be used to supply per page - control information, for example, per page access - control. - - All fields are one logical byte in length. The logical byte - size is specified by the TYPE command. - - ESTABLISHING DATA CONNECTIONS - - The mechanics of transferring data consists of setting up the data - connection to the appropriate ports and choosing the parameters - for transfer. Both the user and the server-DTPs have a default - data port. The user-process default data port is the same as the - control connection port, i.e., U. The server-process default data - port is the port adjacent to the control connection port, i.e., - L-1. - - The transfer byte size is 8-bit bytes. This byte size is relevant - only for the actual transfer of the data; it has no bearing on - representation of the data within a Host's file system. - - The passive data transfer process (this may be a user-DTP or a - second server-DTP) shall "listen" on the data port prior to - sending a transfer request command. The FTP request command - determines the direction of the data transfer. The server, upon - receiving the transfer request, will initiate the data connection - to the port. When the connection is established, the data - transfer begins between DTP's, and the server-PI sends a - confirming reply to the user-PI. - - It is possible for the user to specify an alternate data port by - use of the PORT command. He might want a file dumped on a TIP - line printer or retrieved from a third party Host. In the latter - case the user-PI sets up TELNET connections with both server-PI's. - One server is then told (by an FTP command) to "listen" for a - connection which the other will initiate. The user-PI sends one - server-PI a PORT command indicating the data port of the other. - Finally both are sent the appropriate transfer commands. The - exact sequence of commands and replies sent between the - user-controller and the servers is defined in the Section on FTP - Replies. - - In general it is the server's responsibility to maintain the data - connection--to initiate it and to close it. The exception to this - - - - - 15 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - - is when the user-DTP is sending the data in a transfer mode that - requires the connection to be closed to indicate EOF. The server - MUST close the data connection under the following conditions: - - 1. The server has completed sending data in a transfer mode - that requires a close to indicate EOF. - - 2. The server receives an ABORT command from the user. - - 3. The port specification is changed by a command from the - user. - - 4. The TELNET connection is closed legally or otherwise. - - 5. An irrecoverable error condition occurs. - - Otherwise the close is a server option, the exercise of which he - must indicate to the user-process by an appropriate reply. - - TRANSMISSION MODES - - The next consideration in transferring data is choosing the - appropriate transmission mode. There are three modes: one which - formats the data and allows for restart procedures; one which also - compresses the data for efficient transfer; and one which passes - the data with little or no processing. In this last case the mode - interacts with the structure attribute to determine the type of - processing. In the compressed mode the representation type - determines the filler byte. - - All data transfers must be completed with an end-of-file (EOF) - which may be explicitly stated or implied by the closing of the - data connection. For files with record structure, all the - end-of-record markers (EOR) are explicit, including the final one. - For files transmitted in page structure a "last-page" page type is - used. - - NOTE: In the rest of this section, byte means "transfer byte" - except where explicitly stated otherwise. - - For the purpose of standardized transfer, the sending Host will - translate his internal end of line or end of record denotation - into the representation prescribed by the transfer mode and file - structure, and the receiving Host will perform the inverse - translation to his internal denotation. An IBM 360 record count - field may not be recognized at another Host, so the end of record - - - - - 16 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - - information may be transferred as a two byte control code in - Stream mode or as a flagged bit in a Block or Compressed mode - descriptor. End of line in an ASCII or EBCDIC file with no record - structure should be indicated by or , respectively. - Since these transformations imply extra work for some systems, - identical systems transferring non-record structured text files - might wish to use a binary representation and stream mode for the - transfer. - - The following transmission modes are defined in FTP: - - STREAM - - The data is transmitted as a stream of bytes. There is no - restriction on the representation type used; record - structures are allowed. - - In a record structured file EOR and EOF will each be - indicated by a two-byte control code. The first byte of the - control code will be all ones, the escape character. The - second byte will have the low order bit on and zeros - elsewhere for EOR and the second low order bit on for EOF; - that is, the byte will have value 1 for EOR and value 2 for - EOF. EOR and EOF may be indicated together on the last byte - transmitted by turning both low order bits on, i.e., the - value 3. If a byte of all ones was intended to be sent as - data, it should be repeated in the second byte of the - control code. - - If the structure is file structure, the EOF is indicated by - the sending Host closing the data connection and all bytes - are data bytes. - - BLOCK - - The file is transmitted as a series of data blocks preceded - by one or more header bytes. The header bytes contain a - count field, and descriptor code. The count field indicates - the total length of the data block in bytes, thus marking - the beginning of the next data block (there are no filler - bits). The descriptor code defines: last block in the file - (EOF) last block in the record (EOR), restart marker (see - the Section on Error Recovery and Restart) or suspect data - (i.e., the data being transferred is suspected of errors and - is not reliable). This last code is NOT intended for error - control within FTP. It is motivated by the desire of sites - - - - - 17 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - - exchanging certain types of data (e.g., seismic or weather - data) to send and receive all the data despite local errors - (such as "magnetic tape read errors"), but to indicate in - the transmission that certain portions are suspect). Record - structures are allowed in this mode, and any representation - type may be used. - - The header consists of the three bytes. Of the 24 bits of - header information, the 16 low order bits shall represent - byte count, and the 8 high order bits shall represent - descriptor codes as shown below. - - Block Header - - +----------------+----------------+----------------+ - | Descriptor | Byte Count | - | 8 bits | 16 bits | - +----------------+----------------+----------------+ - - - The descriptor codes are indicated by bit flags in the - descriptor byte. Four codes have been assigned, where each - code number is the decimal value of the corresponding bit in - the byte. - - Code Meaning - - 128 End of data block is EOR - 64 End of data block is EOF - 32 Suspected errors in data block - 16 Data block is a restart marker - - - - With this encoding more than one descriptor coded condition - may exist for a particular block. As many bits as necessary - may be flagged. - - The restart marker is embedded in the data stream as an - integral number of 8-bit bytes representing printable - characters in the language being used over the TELNET - connection (e.g., default--NVT-ASCII). (Space, in the - appropriate language) must not be used WITHIN a restart - marker. - - - - - - - 18 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - - For example, to transmit a six-character marker, the - following would be sent: - - +--------+--------+--------+ - |Descrptr| Byte count | - |code= 16| = 6 | - +--------+--------+--------+ - - +--------+--------+--------+ - | Marker | Marker | Marker | - | 8 bits | 8 bits | 8 bits | - +--------+--------+--------+ - - +--------+--------+--------+ - | Marker | Marker | Marker | - | 8 bits | 8 bits | 8 bits | - +--------+--------+--------+ - - - COMPRESSED - - There are three kinds of information to be sent: regular - data, sent in a byte string; compressed data, consisting of - replications or filler; and control information, sent in a - two-byte escape sequence. If n>0 bytes (up to 127) of - regular data are sent, these n bytes are preceded by a byte - with the left-most bit set to 0 and the right-most 7 bits - containing the number n. - - Byte string: - - 1 7 8 8 - +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ - |0| n | | d(1) | ... | d(n) | - +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ - ^ ^ - |---n bytes---| - of data - - String of n data bytes d(1),..., d(n) - Count n must be positive. - - To compress a string of n replications of the data byte d, - the following 2 bytes are sent: - - - - - - - 19 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - - Replicated Byte: - - 2 6 8 - +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ - |1 0| n | | d | - +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ - - A string of n filler bytes can be compressed into a single - byte, where the filler byte varies with the representation - type. If the type is ASCII or EBCDIC the filler byte is - (Space, ASCII code 32., EBCDIC code 64). If the type - is Image or Local byte the filler is a zero byte. - - Filler String: - - 2 6 - +-+-+-+-+-+-+-+-+ - |1 1| n | - +-+-+-+-+-+-+-+-+ - - The escape sequence is a double byte, the first of which is - the escape byte (all zeros) and the second of which contains - descriptor codes as defined in Block mode. The descriptor - codes have the same meaning as in Block mode and apply to - the succeeding string of bytes. - - Compressed mode is useful for obtaining increased bandwidth - on very large network transmissions at a little extra CPU - cost. It can be most effectively used to reduce the size of - printer files such as those generated by RJE Hosts. - - ERROR RECOVERY AND RESTART - - There is no provision for detecting bits lost or scrambled in data - transfer; this level of error control is handled by the TCP. - However, a restart procedure is provided to protect users from - gross system failures (including failures of a Host, an - FTP-process, or the underlying network). - - The restart procedure is defined only for the block and compressed - modes of data transfer. It requires the sender of data to insert - a special marker code in the data stream with some marker - information. The marker information has meaning only to the - sender, but must consist of printable characters in the default or - negotiated language of the TELNET connection (ASCII or EBCDIC). - The marker could represent a bit-count, a record-count, or any - - - - - 20 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - - other information by which a system may identify a data - checkpoint. The receiver of data, if it implements the restart - procedure, would then mark the corresponding position of this - marker in the receiving system, and return this information to the - user. - - In the event of a system failure, the user can restart the data - transfer by identifying the marker point with the FTP restart - procedure. The following example illustrates the use of the - restart procedure. - - The sender of the data inserts an appropriate marker block in the - data stream at a convenient point. The receiving Host marks the - corresponding data point in its file system and conveys the last - known sender and receiver marker information to the user, either - directly or over the TELNET connection in a 110 reply (depending - on who is the sender). In the event of a system failure, the user - or controller process restarts the server at the last server - marker by sending a restart command with server's marker code as - its argument. The restart command is transmitted over the TELNET - connection and is immediately followed by the command (such as - RETR, STOR or LIST) which was being executed when the system - failure occurred. - -FILE TRANSFER FUNCTIONS - - The communication channel from the user-PI to the server-PI is - established by a TCP connection from the user to a standard server - port. The user protocol interpreter is responsible for sending FTP - commands and interpreting the replies received; the server-PI - interprets commands, sends replies and directs its DTP to set up the - data connection and transfer the data. If the second party to the - data transfer (the passive transfer process) is the user-DTP then it - is governed through the internal protocol of the user-FTP Host; if it - is a second server-DTP then it is governed by its PI on command from - the user-PI. The FTP replies are discussed in the next section. In - the description of a few of the commands in this section it is - helpful to be explicit about the possible replies. - - FTP COMMANDS - - ACCESS CONTROL COMMANDS - - The following commands specify access control identifiers - (command codes are shown in parentheses). - - - - - - 21 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - - USER NAME (USER) - - The argument field is a TELNET string identifying the user. - The user identification is that which is required by the - server for access to its file system. This command will - normally be the first command transmitted by the user after - the TELNET connections are made (some servers may require - this). Additional identification information in the form of - a password and/or an account command may also be required by - some servers. Servers may allow a new USER command to be - entered at any point in order to change the access control - and/or accounting information. This has the effect of - flushing any user, password, and account information already - supplied and beginning the login sequence again. All - transfer parameters are unchanged and any file transfer in - progress is completed under the old account. - - PASSWORD (PASS) - - The argument field is a TELNET string identifying the user's - password. This command must be immediately preceded by the - user name command, and, for some sites, completes the user's - identification for access control. Since password - information is quite sensitive, it is desirable in general - to "mask" it or suppress typeout. It appears that the - server has no foolproof way to achieve this. It is - therefore the responsibility of the user-FTP process to hide - the sensitive password information. - - ACCOUNT (ACCT) - - The argument field is a TELNET string identifying the user's - account. The command is not necessarily related to the USER - command, as some sites may require an account for login and - others only for specific access, such as storing files. In - the latter case the command may arrive at any time. - - There are reply codes to differentiate these cases for the - automaton: when account information is required for login, - the response to a successful PASSword command is reply code - 332. On the other hand, if account information is NOT - required for login, the reply to a successful PASSword - command is 230; and if the account information is needed for - a command issued later in the dialogue, the server should - - - - - - - 22 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - - return a 332 or 532 reply depending on whether he stores - (pending receipt of the ACCounT command) or discards the - command, respectively. - - REINITIALIZE (REIN) - - This command terminates a USER, flushing all I/O and account - information, except to allow any transfer in progress to be - completed. All parameters are reset to the default settings - and the TELNET connection is left open. This is identical - to the state in which a user finds himself immediately after - the TELNET connection is opened. A USER command may be - expected to follow. - - LOGOUT (QUIT) - - This command terminates a USER and if file transfer is not - in progress, the server closes the TELNET connection. If - file transfer is in progress, the connection will remain - open for result response and the server will then close it. - If the user-process is transferring files for several USERs - but does not wish to close and then reopen connections for - each, then the REIN command should be used instead of QUIT. - - An unexpected close on the TELNET connection will cause the - server to take the effective action of an abort (ABOR) and a - logout (QUIT). - - TRANSFER PARAMETER COMMANDS - - All data transfer parameters have default values, and the - commands specifying data transfer parameters are required only - if the default parameter values are to be changed. The default - value is the last specified value, or if no value has been - specified, the standard default value as stated here. This - implies that the server must "remember" the applicable default - values. The commands may be in any order except that they must - precede the FTP service request. The following commands - specify data transfer parameters. - - DATA PORT (PORT) - - The argument is a HOST-PORT specification for the data port - to be used in data connection. There defaults for both the - user and server data ports, and under normal circumstances - this command and its reply are not needed. If this command - - - - - 23 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - - is used the argument is the concatenation of a 32-bit - internet host address and a 16-bit TCP port address. This - address information is broken into 8-bit fields and the - value of each field is transmitted as a decimal number (in - character string representation). The fields are separated - by commas. A port command would be: - - PORT h1,h2,h3,h4,p1,p2 - - where, h1 is the high order 8 bits of the internet host - address. - - PASSIVE (PASV) - - This command requests the server-DTP to "listen" on a data - port (which is not its default data port) and to wait for a - connection rather than initiate one upon receipt of a - transfer command. The response to this command includes the - host and port address this server is listening on. - - REPRESENTATION TYPE (TYPE) - - The argument specifies the representation type as described - in the Section on Data Representation and Storage. Several - types take a second parameter. The first parameter is - denoted by a single TELNET character, as is the second - Format parameter for ASCII and EBCDIC; the second parameter - for local byte is a decimal integer to indicate Bytesize. - The parameters are separated by a (Space, ASCII code - 32.). - - The following codes are assigned for type: - - \ / - A - ASCII | | N - Non-print - |-><-| T - TELNET format effectors - E - EBCDIC| | C - Carriage Control (ASA) - / \ - I - Image - - L - Local byte Byte size - - The default representation type is ASCII Non-print. If the - Format parameter is changed, and later just the first - argument is changed, Format then returns to the Non-print - default. - - - - - 24 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - - FILE STRUCTURE (STRU) - - The argument is a single TELNET character code specifying - file structure described in the Section on Data - Representation and Storage. - - The following codes are assigned for structure: - - F - File (no record structure) - R - Record structure - P - Page structure - - The default structure is File. - - TRANSFER MODE (MODE) - - The argument is a single TELNET character code specifying - the data transfer modes described in the Section on - Transmission Modes. - - The following codes are assigned for transfer modes: - - S - Stream - B - Block - C - Compressed - - The default transfer mode is Stream. - - FTP SERVICE COMMANDS - - The FTP service commands define the file transfer or the file - system function requested by the user. The argument of an FTP - service command will normally be a pathname. The syntax of - pathnames must conform to server site conventions (with - standard defaults applicable), and the language conventions of - the TELNET connection. The suggested default handling is to - use the last specified device, directory or file name, or the - standard default defined for local users. The commands may be - in any order except that a "rename from" command must be - followed by a "rename to" command and the restart command must - be followed by the interrupted service command. The data, when - transferred in response to FTP service commands, shall always - be sent over the data connection, except for certain - informative replies. The following commands specify FTP - service requests: - - - - - - 25 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - - RETRIEVE (RETR) - - This command causes the server-DTP to transfer a copy of the - file, specified in the pathname, to the server- or user-DTP - at the other end of the data connection. The status and - contents of the file at the server site shall be unaffected. - - STORE (STOR) - - This command causes the server-DTP to accept the data - transferred via the data connection and to store the data as - a file at the server site. If the file specified in the - pathname exists at the server site then its contents shall - be replaced by the data being transferred. A new file is - created at the server site if the file specified in the - pathname does not already exist. - - APPEND (with create) (APPE) - - This command causes the server-DTP to accept the data - transferred via the data connection and to store the data in - a file at the server site. If the file specified in the - pathname exists at the server site, then the data shall be - appended to that file; otherwise the file specified in the - pathname shall be created at the server site. - - MAIL FILE (MLFL) - - The intent of this command is to enable a user at the user - site to mail data (in form of a file) to another user at the - server site. It should be noted that the files to be mailed - are transmitted via the data connection in ASCII or EBCDIC - type. (It is the user's responsibility to ensure that the - type is correct.) These files should be inserted into the - destination user's mailbox by the server in accordance with - serving Host mail conventions. The mail may be marked as - sent from the particular user HOST and the user specified by - the 'USER' command. The argument field may contain a Host - system ident, or it may be empty. If the argument field is - empty or blank (one or more spaces), then the mail is - destined for a printer or other designated place for general - delivery site mail. - - - - - - - - - 26 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - - MAIL (MAIL) - - This command allows a user to send mail that is NOT in a - file over the TELNET connection. The argument field may - contain system ident, or it may be empty. The ident is - defined as above for the MLFL command. After the 'MAIL' - command is received, the server is to treat the following - lines as text of the mail sent by the user. The mail text - is to be terminated by a line containing only a single - period, that is, the character sequence "CRLF.CRLF". It is - suggested that a modest volume of mail service should be - free; i.e., it may be entered before a USER command. - - MAIL SEND TO TERMINAL (MSND) - - This command is like the MAIL command, except that the data - is displayed on the addressed user's terminal, if such - access is currently allowed, otherwise an error is returned. - - MAIL SEND TO TERMINAL OR MAILBOX (MSOM) - - This command is like the MAIL command, except that the data - is displayed on the addressed user's terminal, if such - access is currently allowed, otherwise the data is placed in - the user's mailbox. - - MAIL SEND TO TERMINAL AND MAILBOX (MSAM) - - This command is like the MAIL command, except that the data - is displayed on the addressed user's terminal, if such - access is currently allowed, and, in any case, the data is - placed in the user's mailbox. - - MAIL RECIPIENT SCHEME QUESTION (MRSQ) - - This FTP command is used to select a scheme for the - transmission of mail to several users at the same host. The - schemes are to list the recipients first, or to send the - mail first. - - MAIL RECIPIENT (MRCP) - - This command is used to identify the individual recipients - of the mail in the transmission of mail for multiple users - at one host. - - - - - - 27 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - - ALLOCATE (ALLO) - - This command may be required by some servers to reserve - sufficient storage to accommodate the new file to be - transferred. The argument shall be a decimal integer - representing the number of bytes (using the logical byte - size) of storage to be reserved for the file. For files - sent with record or page structure a maximum record or page - size (in logical bytes) might also be necessary; this is - indicated by a decimal integer in a second argument field of - the command. This second argument is optional, but when - present should be separated from the first by the three - TELNET characters R . This command shall be - followed by a STORe or APPEnd command. The ALLO command - should be treated as a NOOP (no operation) by those servers - which do not require that the maximum size of the file be - declared beforehand, and those servers interested in only - the maximum record or page size should accept a dummy value - in the first argument and ignore it. - - RESTART (REST) - - The argument field represents the server marker at which - file transfer is to be restarted. This command does not - cause file transfer but "spaces" over the file to the - specified data checkpoint. This command shall be - immediately followed by the appropriate FTP service command - which shall cause file transfer to resume. - - RENAME FROM (RNFR) - - This command specifies the file which is to be renamed. - This command must be immediately followed by a "rename to" - command specifying the new file pathname. - - RENAME TO (RNTO) - - This command specifies the new pathname of the file - specified in the immediately preceding "rename from" - command. Together the two commands cause a file to be - renamed. - - ABORT (ABOR) - - This command tells the server to abort the previous FTP - service command and any associated transfer of data. The - - - - - 28 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - - abort command may require "special action", as discussed in - the Section on FTP Commands, to force recognition by the - server. No action is to be taken if the previous command - has been completed (including data transfer). The TELNET - connection is not to be closed by the server, but the data - connection must be closed. - - There are two cases for the server upon receipt of this - command: (1) the FTP service command was already completed, - or (2) the FTP service command is still in progress. - - In the first case, the server closes the data connection - (if it is open) and responds with a 226 reply, indicating - that the abort command was successfully processed. - - In the second case, the server aborts the FTP service in - progress and closes the data connection, returning a 426 - reply to indicate that the service request terminated in - abnormally. The server then sends a 226 reply, - indicating that the abort command was successfully - processed. - - DELETE (DELE) - - This command causes the file specified in the pathname to be - deleted at the server site. If an extra level of protection - is desired (such as the query, "DO you really wish to - delete?"), it should be provided by the user-FTP process. - - CHANGE WORKING DIRECTORY (CWD) - - This command allows the user to work with a different - directory or dataset for file storage or retrieval without - altering his login or accounting information. Transfer - parameters are similarly unchanged. The argument is a - pathname specifying a directory or other system dependent - file group designator. - - LIST (LIST) - - This command causes a list to be sent from the server to the - passive DTP. If the pathname specifies a directory, the - server should transfer a list of files in the specified - directory. If the pathname specifies a file then the server - should send current information on the file. A null - argument implies the user's current working or default - - - - - 29 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - - directory. The data transfer is over the data connection in - type ASCII or type EBCDIC. (The user must ensure that the - TYPE is appropriately ASCII or EBCDIC). - - NAME-LIST (NLST) - - This command causes a directory listing to be sent from - server to user site. The pathname should specify a - directory or other system-specific file group descriptor; a - null argument implies the current directory. The server - will return a stream of names of files and no other - information. The data will be transferred in ASCII or - EBCDIC type over the data connection as valid pathname - strings separated by or . (Again the user must - ensure that the TYPE is correct.) - - SITE PARAMETERS (SITE) - - This command is used by the server to provide services - specific to his system that are essential to file transfer - but not sufficiently universal to be included as commands in - the protocol. The nature of these services and the - specification of their syntax can be stated in a reply to - the HELP SITE command. - - STATUS (STAT) - - This command shall cause a status response to be sent over - the TELNET connection in the form of a reply. The command - may be sent during a file transfer (along with the TELNET IP - and Synch signals--see the Section on FTP Commands) in which - case the server will respond with the status of the - operation in progress, or it may be sent between file - transfers. In the latter case the command may have an - argument field. If the argument is a pathname, the command - is analogous to the "list" command except that data shall be - transferred over the TELNET connection. If a partial - pathname is given, the server may respond with a list of - file names or attributes associated with that specification. - If no argument is given, the server should return general - status information about the server FTP process. This - should include current values of all transfer parameters and - the status of connections. - - - - - - - - 30 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - - HELP (HELP) - - This command shall cause the server to send helpful - information regarding its implementation status over the - TELNET connection to the user. The command may take an - argument (e.g., any command name) and return more specific - information as a response. The reply is type 211 or 214. - It is suggested that HELP be allowed before entering a USER - command. The server may use this reply to specify - site-dependent parameters, e.g., in response to HELP SITE. - - NOOP (NOOP) - - This command does not affect any parameters or previously - entered commands. It specifies no action other than that the - server send an OK reply. - - The File Transfer Protocol follows the specifications of the - TELNET protocol for all communications over the TELNET connection. - Since, the language used for TELNET communication may be a - negotiated option, all references in the next two sections will be - to the "TELNET language" and the corresponding "TELNET end of line - code". Currently one may take these to mean NVT-ASCII and . - No other specifications of the TELNET protocol will be cited. - - FTP commands are "TELNET strings" terminated by the "TELNET end of - line code". The command codes themselves are alphabetic - characters terminated by the character (Space) if parameters - follow and TELNET-EOL otherwise. The command codes and the - semantics of commands are described in this section; the detailed - syntax of commands is specified in the Section on Commands, the - reply sequences are discussed in the Section on Sequencing of - Commands and Replies, and scenarios illustrating the use of - commands are provided in the Section on Typical FTP Scenarios. - - FTP commands may be partitioned as those specifying access-control - identifiers, data transfer parameters, or FTP service requests. - Certain commands (such as ABOR, STAT, QUIT) may be sent over the - TELNET connection while a data transfer is in progress. Some - servers may not be able to monitor the TELNET and data connections - simultaneously, in which case some special action will be - necessary to get the server's attention. The exact form of the - "special action" is undefined; but the following ordered format is - tentatively recommended: - - - - - - - 31 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - - 1. User system inserts the TELNET "Interrupt Process" (IP) - signal in the TELNET stream. - - 2. User system sends the TELNET "Synch" signal - - 3. User system inserts the command (e.g., ABOR) in the TELNET - stream. - - 4. Server PI,, after receiving "IP", scans the TELNET stream - for EXACTLY ONE FTP command. - - (For other servers this may not be necessary but the actions - listed above should have no unusual effect.) - - FTP REPLIES - - Replies to File Transfer Protocol commands are devised to ensure - the synchronization of requests and actions in the process of file - transfer, and to guarantee that the user process always knows the - state of the Server. Every command must generate at least one - reply, although there may be more than one; in the latter case, - the multiple replies must be easily distinguished. In addition, - some commands occur in sequential groups, such as USER, PASS and - ACCT, or RNFR and RNTO. The replies show the existence of an - intermediate state if all preceding commands have been successful. - A failure at any point in the sequence necessitates the repetition - of the entire sequence from the beginning. - - The details of the command-reply sequence are made explicit in - a set of state diagrams below. - - An FTP reply consists of a three digit number (transmitted as - three alphanumeric characters) followed by some text. The number - is intended for use by automata to determine what state to enter - next; the text is intended for the human user. It is intended - that the three digits contain enough encoded information that the - user-process (the User-PI) will not need to examine the text and - may either discard it or pass it on to the user, as appropriate. - In particular, the text may be server-dependent, so there are - likely to be varying texts for each reply code. - - Formally, a reply is defined to contain the 3-digit code, followed - by Space , followed by one line of text (where some maximum - line length has been specified), and terminated by the TELNET - end-of-line code. There will be cases, however, where the text is - longer than a single line. In these cases the complete text must - - - - - 32 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - - be bracketed so the User-process knows when it may stop reading - the reply (i.e. stop processing input on the TELNET connection) - and go do other things. This requires a special format on the - first line to indicate that more than one line is coming, and - another on the last line to designate it as the last. At least - one of these must contain the appropriate reply code to indicate - the state of the transaction. To satisfy all factions it was - decided that both the first and last line codes should be the - same. - - Thus the format for multi-line replies is that the first line - will begin with the exact required reply code, followed - immediately by a Hyphen, "-" (also known as Minus), followed by - text. The last line will begin with the same code, followed - immediately by Space , optionally some text, and the TELNET - end-of-line code. - - For example: - 123-First line - Second line - 234 A line beginning with numbers - 123 The last line - - The user-process then simply needs to search for the second - occurrence of the same reply code, followed by (Space), at - the beginning of a line, and ignore all intermediary lines. If - an intermediary line begins with a 3-digit number, the Server - must pad the front to avoid confusion. - - This scheme allows standard system routines to be used for - reply information (such as for the STAT reply), with - "artificial" first and last lines tacked on. In the rare - cases where these routines are able to generate three digits - and a Space at the beginning of any line, the beginning of - each text line should be offset by some neutral text, like - Space. - - This scheme assumes that multi-line replies may not be nested. - We have found that, in general, nesting of replies will not - occur, except for random system messages (also called - spontaneous replies) which may interrupt another reply. System - messages (i.e. those not processed by the FTP server) will NOT - carry reply codes and may occur anywhere in the command-reply - sequence. They may be ignored by the User-process as they are - only information for the human user. - - - - - - 33 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - - The three digits of the reply each have a special significance. - This is intended to allow a range of very simple to very - sophisticated response by the user-process. The first digit - denotes whether the response is good, bad or incomplete. - (Referring to the state diagram) an unsophisticated user-process - will be able to determine its next action (proceed as planned, - redo, retrench, etc.) by simply examining this first digit. A - user-process that wants to know approximately what kind of error - occurred (e.g. file system error, command syntax error) may - examine the second digit, reserving the third digit for the finest - gradation of information (e.g. RNTO command without a preceding - RNFR.) - - There are five values for the first digit of the reply code: - - 1yz Positive Preliminary reply - - The requested action is being initiated; expect another - reply before proceeding with a new command. (The - user-process sending another command before the - completion reply would be in violation of protocol; but - server-FTP processes should queue any commands that - arrive while a preceding command is in progress.) This - type of reply can be used to indicate that the command - was accepted and the user-process may now pay attention - to the data connections, for implementations where - simultaneous monitoring is difficult. - - 2yz Positive Completion reply - - The requested action has been successfully completed. A - new request may be initiated. - - 3yz Positive Intermediate reply - - The command has been accepted, but the requested action - is being held in abeyance, pending receipt of further - information. The user should send another command - specifying this information. This reply is used in - command sequence groups. - - 4yz Transient Negative Completion reply - - The command was not accepted and the requested action did - not take place, but the error condition is temporary and - the action may be requested again. The user should - - - - - 34 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - - return to the beginning of the command sequence, if any. - It is difficult to assign a meaning to "transient", - particularly when two distinct sites (Server and - User-processes) have to agree on the interpretation. - Each reply in the 4yz category might have a slightly - different time value, but the intent is that the - user-process is encouraged to try again. A rule of thumb - in determining if a reply fits into the 4yz or the 5yz - (Permanent Negative) category is that replies are 4yz if - the commands can be repeated without any change in - command form or in properties of the User or Server (e.g. - the command is spelled the same with the same arguments - used; the user does not change his file access or user - name; the server does not put up a new implementation.) - - 5yz Permanent Negative Completion reply - - The command was not accepted and the requested action did - not take place. The User-process is discouraged from - repeating the exact request (in the same sequence). Even - some "permanent" error conditions can be corrected, so - the human user may want to direct his User-process to - reinitiate the command sequence by direct action at some - point in the future (e.g. after the spelling has been - changed, or the user has altered his directory status.) - - The following function groupings are encoded in the second - digit: - - x0z Syntax - These replies refer to syntax errors, - syntactically correct commands that don't fit any - functional category, unimplemented or superfluous - commands. - - x1z Information - These are replies to requests for - information, such as status or help. - - x2z Connections - Replies referring to the TELNET and data - connections. - - x3z Authentication and accounting - Replies for the login - process and accounting procedures. - - x4z Unspecified as yet - - - - - - - 35 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - - x5z File system - These replies indicate the status of the - Server file system vis-a-vis the requested transfer or - other file system action. - - The third digit gives a finer gradation of meaning in each of - the function categories, specified by the second digit. The - list of replies below will illustrate this. Note that the text - associated with each reply is recommended, rather than - mandatory, and may even change according to the command with - which it is associated. The reply codes, on the other hand, - must strictly follow the specifications in the last section; - that is, Server implementations should not invent new codes for - situations that are only slightly different from the ones - described here, but rather should adapt codes already defined. - - A command such as TYPE or ALLO whose successful execution - does not offer the user-process any new information will - cause a 200 reply to be returned. If the command is not - implemented by a particular Server-FTP process because it - has no relevance to that computer system, for example ALLO - at a TOPS20 site, a Positive Completion reply is still - desired so that the simple User-process knows it can proceed - with its course of action. A 202 reply is used in this case - with, for example, the reply text: "No storage allocation - necessary." If, on the other hand, the command requests a - non-site-specific action and is unimplemented, the response - is 502. A refinement of that is the 504 reply for a command - that IS implemented, but that requests an unimplemented - parameter. - - Reply Codes by Function Groups - - 200 Command okay - 500 Syntax error, command unrecognized - [This may include errors such as command line too long.] - 501 Syntax error in parameters or arguments - 202 Command not implemented, superfluous at this site. - 502 Command not implemented - 503 Bad sequence of commands - 504 Command not implemented for that parameter - - 110 Restart marker reply. - - - - - - - - - 36 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - - In this case the text is exact and not left to the - particular implementation; it must read: - MARK yyyy = mmmm - where yyyy is User-process data stream marker, and mmmm - server's equivalent marker. (note the spaces between - markers and "=".) - 119 Terminal not available, will try mailbox. - 211 System status, or system help reply - 212 Directory status - 213 File status - 214 Help message - (on how to use the server or the meaning of a particular - non-standard command. This reply is useful only to the - human user.) - 215 is the preferred scheme. - - 120 Service ready in nnn minutes - 220 Service ready for new user - 221 Service closing TELNET connection - (logged out if appropriate) - 421 Service not available, closing TELNET connection. - This may be a reply to any command if the service knows it - must shut down.] - 125 Data connection already open; transfer starting - 225 Data connection open; no transfer in progress - 425 Can't open data connection - 226 Closing data connection; - requested file action successful (for example, file transfer - or file abort.) - 426 Connection closed; transfer aborted. - 227 Entering Passive Mode. h1,h2,h3,h4,p1,p2 - - 230 User logged in, proceed - 530 Not logged in - 331 User name okay, need password - 332 Need account for login - 532 Need account for storing files - - 150 File status okay; about to open data connection. - 151 User not local; Will forward to @. - 152 User Unknown; Mail will be forwarded by the operator. - 250 Requested file action okay, completed. - 350 Requested file action pending further information - 450 Requested file action not taken: - file unavailable (e.g. file busy) - 550 Requested action not taken: - - - - - 37 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - - file unavailable (e.g. file not found, no access) - 451 Requested action aborted: local error in processing - 551 Requested action aborted: page type unknown - 452 Requested action not taken: - insufficient storage space in system - 552 Requested file action aborted: - exceeded storage allocation (for current directory or - dataset) - 553 Requested action not taken: - file name not allowed - 354 Start mail input; end with . - - - Numeric Order List of Reply Codes - - 110 Restart marker reply. - In this case the text is exact and not left to the - particular implementation; it must read: - MARK yyyy = mmmm - where yyyy is User-process data stream marker, and mmmm - server's equivalent marker. (note the spaces between - markers and "=".) - 119 Terminal not available, will try mailbox. - 120 Service ready in nnn minutes - 125 Data connection already open; transfer starting - 150 File status okay; about to open data connection. - 151 User not local; Will forward to @. - 152 User Unknown; Mail will be forwarded by the operator. - 200 Command okay - 202 Command not implemented, superfluous at this site. - 211 System status, or system help reply - 212 Directory status - 213 File status - 214 Help message - (on how to use the server or the meaning of a particular - non-standard command. This reply is useful only to the - human user.) - 215 is the preferred scheme. - 220 Service ready for new user - 221 Service closing TELNET connection - (logged out if appropriate) - 225 Data connection open; no transfer in progress - 226 Closing data connection; - requested file action successful (for example, file transfer - or file abort.) - 227 Entering Passive Mode. h1,h2,h3,h4,p1,p2 - - - - - 38 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - - 230 User logged in, proceed - 250 Requested file action okay, completed. - 331 User name okay, need password - 332 Need account for login - 350 Requested file action pending further information - 354 Start mail input; end with . - 421 Service not available, closing TELNET connection. - This may be a reply to any command if the service knows it - must shut down.] - 425 Can't open data connection - 426 Connection closed; transfer aborted. - 450 Requested file action not taken: - file unavailable (e.g. file busy) - 451 Requested action aborted: local error in processing - 452 Requested action not taken: - insufficient storage space in system - 500 Syntax error, command unrecognized - [This may include errors such as command line too long.] - 501 Syntax error in parameters or arguments - 502 Command not implemented - 503 Bad sequence of commands - 504 Command not implemented for that parameter - 530 Not logged in - 532 Need account for storing files - 550 Requested action not taken: - file unavailable (e.g. file not found, no access) - 551 Requested action aborted: page type unknown - 552 Requested file action aborted: - exceeded storage allocation (for current directory or - dataset) - 553 Requested action not taken: - file name not allowed - - - - - - - - - - - - - - - - - - - 39 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - -DECLARATIVE SPECIFICATIONS - - MINIMUM IMPLEMENTATION - - In order to make FTP workable without needless error messages, the - following minimum implementation is required for all servers: - - TYPE - ASCII Non-print - MODE - Stream - STRUCTURE - File, Record - COMMANDS - USER, QUIT, PORT, - TYPE, MODE, STRU, - for the default values - RETR, STOR, - NOOP. - - The default values for transfer parameters are: - - - TYPE - ASCII Non-print - MODE - Stream - STRU - File - - All Hosts must accept the above as the standard defaults. - - CONNECTIONS - - The server protocol interpreter shall "listen" on Port L. The - user or user protocol interpreter shall initiate the full-duplex - TELNET connection. Server- and user- processes should follow the - conventions of the TELNET protocol as specified in the ARPA - Internet Protocol Handbook. Servers are under no obligation to - provide for editing of command lines and may specify that it be - done in the user Host. The TELNET connection shall be closed by - the server at the user's request after all transfers and replies - are completed. - - The user-DTP must "listen" on the specified data port; this may be - the default user port (U) or a port specified in the PORT command. - The server shall initiate the data connection from his own default - data port (L-1) using the specified user data port. The direction - of the transfer and the port used will be determined by the FTP - service command. - - - - - - - - 40 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - - When data is to be transferred between two servers, A and B (refer - to Figure 2), the user-PI, C, sets up TELNET connections with both - server-PI's. One of the servers, say A, is then sent a PASV - command telling him to "listen" on his data port rather than - initiate a connection when he receives a transfer service command. - When the user-PI receives an acknowledgment to the PASV command, - which includes the identity of the host and port being listened - on, the user-PI then sends A's port, a, to B in a PORT command; a - reply is returned. The user-PI may then send the corresponding - service commands to A and B. Server B initiates the connection - and the transfer proceeds. The command-reply sequence is listed - below where the messages are vertically synchronous but - horizontally asynchronous: - - User-PI - Server A User-PI - Server B - ------------------ ------------------ - - C->A : Connect C->B : Connect - C->A : PASV - A->C : 227 Entering Passive Mode. A1,A2,A3,A4,a1,a2 - C->B : PORT A1,A2,A3,A4,a1,a2 - B->C : 200 Okay - C->A : STOR C->B : RETR - B->A : Connect to HOST-A, PORT-a - - The data connection shall be closed by the server under the - conditions described in the Section on Establishing Data - Connections. If the server wishes to close the connection after a - transfer where it is not required, he should do so immediately - after the file transfer is completed. He should not wait until - after a new transfer command is received because the user-process - will have already tested the data connection to see if it needs to - do a "listen"; (recall that the user must "listen" on a closed - data port BEFORE sending the transfer request). To prevent a race - condition here, the server sends a reply (226) after closing the - data connection (or if the connection is left open, a "file - transfer completed" reply (250) and the user-PI should wait for - one of these replies before issuing a new transfer command. - - - - - - - - - - - - - 41 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - - COMMANDS - - The commands are TELNET character string transmitted over the - TELNET connections as described in the Section on FTP Commands. - The command functions and semantics are described in the Section - on Access Control Commands, Transfer Parameter Commands, FTP - Service Commands, and Miscellaneous Commands. The command syntax - is specified here. - - The commands begin with a command code followed by an argument - field. The command codes are four or fewer alphabetic characters. - Upper and lower case alphabetic characters are to be treated - identically. Thus any of the following may represent the retrieve - command: - - RETR Retr retr ReTr rETr - - This also applies to any symbols representing parameter values, - such as A or a for ASCII TYPE. The command codes and the argument - fields are separated by one or more spaces. - - The argument field consists of a variable length character string - ending with the character sequence (Carriage Return, - Linefeed) for NVT-ASCII representation; for other negotiated - languages a different end of line character might be used. It - should be noted that the server is to take NO action until the end - of line code is received. - - The syntax is specified below in NVT-ASCII. All characters in the - argument field are ASCII characters including any ASCII - represented decimal integers. Square brackets denote an optional - argument field. If the option is not taken, the appropriate - default is implied. - - - - - - - - - - - - - - - - - - 42 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - - The following are the FTP commands: - - USER - PASS - ACCT - REIN - QUIT - PORT - PASV - TYPE - STRU - MODE - RETR - STOR - APPE - MLFL [ ] - MAIL [ ] - MSND [ ] - MSOM [ ] - MSAM [ ] - MRSQ [ ] - MRCP - ALLO - [ R ] - REST - RNFR - RNTO - ABOR - DELE - CWD - LIST [ ] - NLST [ ] - SITE - STAT [ ] - HELP [ ] - NOOP - - - - - - - - - - - - - - - 43 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - - The syntax of the above argument fields (using BNF notation where - applicable ) is: - - ::= - ::= - ::= - ::= | - ::= any of the 128 ASCII characters except and - ::= - ::= | - ::= printable characters, any - ASCII code 33 through 126 - ::= any decimal integer 1 through 255 - ::= , - ::= ,,, - ::= , - ::= any decimal integer 0 through 255 - ::= - ::= R | T | ? -

::= N | T | C - ::= A [ ] - | E [ ] - | I - | L - ::= F | R | P - ::= S | B | C - ::= - - - - - - - - - - - - - - - - - - - - - - - - 44 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - - SEQUENCING OF COMMANDS AND REPLIES - - The communication between the user and server is intended to be an - alternating dialogue. As such, the user issues an FTP command and - the server responds with a prompt primary reply. The user should - wait for this initial primary success or failure response before - sending further commands. - - Certain commands require a second reply for which the user should - also wait. These replies may, for example, report on the progress - or completion of file transfer or the closing of the data - connection. They are secondary replies to file transfer commands. - - One important group of informational replies is the connection - greetings. Under normal circumstances, a server will send a 220 - reply, "awaiting input", when the connection is completed. The - user should wait for this greeting message before sending any - commands. If the server is unable to accept input right away, he - should send a 120 "expected delay" reply immediately and a 220 - reply when ready. The user will then know not to hang up if there - is a delay. - - The table below lists alternative success and failure replies for - each command. These must be strictly adhered to; a server may - substitute text in the replies, but the meaning and action implied - by the code numbers and by the specific command reply sequence - cannot be altered. - - Command-Reply Sequences - - In this section, the command-reply sequence is presented. Each - command is listed with its possible replies; command groups are - listed together. Preliminary replies are listed first (with - their succeeding replies indented and under them), then - positive and negative completion, and finally intermediary - replies with the remaining commands from the sequence - following. This listing forms the basis for the state - diagrams, which will be presented separately. - - Connection Establishment - 120 - 220 - 220 - 421 - - - - - - - 45 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - - Login - USER - 230 - 530 - 500, 501, 421 - 331, 332 - PASS - 230 - 202 - 530 - 500, 501, 503, 421 - 332 - ACCT - 230 - 202 - 530 - 500, 501, 503, 421 - Logout - QUIT - 221 - 500 - REIN - 120 - 220 - 220 - 421 - 500, 502 - Transfer parameters - PORT - 200 - 500, 501, 421, 530 - PASV - 227 - 500, 501, 502, 421, 530 - MODE, TYPE, STRU - 200 - 500, 501, 504, 421, 530 - File action commands - ALLO - 200 - 202 - 500, 501, 504, 421, 530 - REST - 500, 501, 502, 421, 530 - 350 - - - - - - 46 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - - STOR - 125, 150 - (110) - 226, 250 - 425, 426, 451, 551, 552 - 532, 450, 452, 553 - 500, 501, 421, 530 - RETR - 125, 150 - (110) - 226, 250 - 425, 426, 451 - 450, 550 - 500, 501, 421, 530 - LIST, NLST - 125, 150 - 226, 250 - 425, 426, 451 - 450 - 500, 501, 502, 421, 530 - APPE - 125, 150 - (110) - 226, 250 - 425, 426, 451, 551, 552 - 532, 450, 550, 452, 553 - 500, 501, 502, 421, 530 - MLFL - 125, 150, 151, 152 - 226, 250 - 425, 426, 451, 552 - 532, 450, 550, 452, 553 - 500, 501, 502, 421, 530 - RNFR - 450, 550 - 500, 501, 502, 421, 530 - 350 - RNTO - 250 - 532, 553 - 500, 501, 502, 503, 421, 530 - DELE, CWD - 250 - 450, 550 - 500, 501, 502, 421, 530 - - - - - - 47 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - - ABOR - 225, 226 - 500, 501, 502, 421 - MAIL, MSND - 151, 152 - 354 - 250 - 451, 552 - 354 - 250 - 451, 552 - 450, 550, 452, 553 - 500, 501, 502, 421, 530 - MSOM, MSAM - 119, 151, 152 - 354 - 250 - 451, 552 - 354 - 250 - 451, 552 - 450, 550, 452, 553 - 500, 501, 502, 421, 530 - MRSQ - 200, 215 - 500, 501, 502, 421, 530 - MRCP - 151, 152 - 200 - 200 - 450, 550, 452, 553 - 500, 501, 502, 503, 421 - Informational commands - STAT - 211, 212, 213 - 450 - 500, 501, 502, 421, 530 - HELP - 211, 214 - 500, 501, 502, 421 - Miscellaneous commands - SITE - 200 - 202 - 500, 501, 530 - - - - - - 48 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - - NOOP - 200 - 500 421 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 49 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - -STATE DIAGRAMS - - Here we present state diagrams for a very simple minded FTP - implementation. Only the first digit of the reply codes is used. - There is one state diagram for each group of FTP commands or command - sequences. - - The command groupings were determined by constructing a model for - each command then collecting together the commands with structurally - identical models. - - For each command or command sequence there are three possible - outcomes: success (S), failure (F), and error (E). In the state - diagrams below we use the symbol B for "begin", and the symbol W for - "wait for reply". - - We first present the diagram that represents the largest group of FTP - commands: - - - 1,3 +---+ - ----------->| E | - | +---+ - | - +---+ cmd +---+ 2 +---+ - | B |---------->| W |---------->| S | - +---+ +---+ +---+ - | - | 4,5 +---+ - ----------->| F | - +---+ - - - This diagram models the commands: - - ABOR, ALLO, DELE, CWD, HELP, MODE, MRCP, MRSQ, NOOP, PASV, - QUIT, SITE, PORT, STAT, STRU, TYPE. - - - - - - - - - - - - - - 50 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - - The other large group of commands is represented by a very similar - diagram: - - - 3 +---+ - ----------->| E | - | +---+ - | - +---+ cmd +---+ 2 +---+ - | B |---------->| W |---------->| S | - +---+ --->+---+ +---+ - | | | - | | | 4,5 +---+ - | 1 | ----------->| F | - ----- +---+ - - - This diagram models the commands: - - APPE, LIST, MLFL, NLST, REIN, RETR, STOR. - - Note that this second model could also be used to represent the first - group of commands, the only difference being that in the first group - the 100 series replies are unexpected and therefore treated as error, - while the second group expects (some may require) 100 series replies. - - The remaining diagrams model command sequences, perhaps the simplest - of these is the rename sequence: - - - +---+ RNFR +---+ 1,2 +---+ - | B |---------->| W |---------->| E | - +---+ +---+ -->+---+ - | | | - 3 | | 4,5 | - -------------- ------ | - | | | +---+ - | ------------->| S | - | | 1,3 | | +---+ - | 2| -------- - | | | | - V | | | - +---+ RNTO +---+ 4,5 ----->+---+ - | |---------->| W |---------->| F | - +---+ +---+ +---+ - - - - - - 51 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - - A very similar diagram models the Mail and Send commands: - - - ---- 1 - | | - +---+ cmd -->+---+ 2 +---+ - | B |---------->| W |---------->| E | - +---+ +---+ -->+---+ - | | | - 3 | | 4,5 | - -------------- ------ | - | | | +---+ - | ------------->| S | - | | 1,3 | | +---+ - | 2| -------- - | | | | - V | | | - +---+ text +---+ 4,5 ----->+---+ - | |---------->| W |---------->| F | - +---+ +---+ +---+ - - - This diagram models the commands: - - MAIL, MSND, MSOM, MSAM. - - Note that the "text" here is a series of lines sent from the user - to the server with no response expected until the last line is - sent, recall that the last line must consist only of a single - period. - - - - - - - - - - - - - - - - - - - - - 52 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - - The next diagram is a simple model of the Restart command: - - - +---+ REST +---+ 1,2 +---+ - | B |---------->| W |---------->| E | - +---+ +---+ -->+---+ - | | | - 3 | | 4,5 | - -------------- ------ | - | | | +---+ - | ------------->| S | - | | 3 | | +---+ - | 2| -------- - | | | | - V | | | - +---+ cmd +---+ 4,5 ----->+---+ - | |---------->| W |---------->| F | - +---+ -->+---+ +---+ - | | - | 1 | - ------ - - - Where "cmd" is APPE, STOR, RETR, or MLFL. - - We note that the above three models are similar, in fact the Mail - diagram and the Rename diagram are structurally identical. The - Restart differs from the other two only in the treatment of 100 - series replies at the second stage. - - - - - - - - - - - - - - - - - - - - - - 53 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - - The most complicated diagram is for the Login sequence: - - - 1 - +---+ USER +---+------------->+---+ - | B |---------->| W | 2 ---->| E | - +---+ +---+------ | -->+---+ - | | | | | - 3 | | 4,5 | | | - -------------- ----- | | | - | | | | | - | | | | | - | --------- | - | 1| | | | - V | | | | - +---+ PASS +---+ 2 | ------>+---+ - | |---------->| W |------------->| S | - +---+ +---+ ---------->+---+ - | | | | | - 3 | |4,5| | | - -------------- -------- | - | | | | | - | | | | | - | ----------- - | 1,3| | | | - V | 2| | | - +---+ ACCT +---+-- | ----->+---+ - | |---------->| W | 4,5 -------->| F | - +---+ +---+------------->+---+ - - - - - - - - - - - - - - - - - - - - - - 54 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - - Finally we present a generalized diagram that could be used to model - the command and reply interchange: - - - ------------------------------------ - | | - Begin | | - | V | - | +---+ cmd +---+ 2 +---+ | - -->| |------->| |---------->| | | - | | | W | | S |-----| - -->| | -->| |----- | | | - | +---+ | +---+ 4,5 | +---+ | - | | | | | | | - | | | 1| |3 | +---+ | - | | | | | | | | | - | | ---- | ---->| F |----- - | | | | | - | | | +---+ - ------------------- - | - | - V - End - - - - - - - - - - - - - - - - - - - - - - - - - - - 55 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - -TYPICAL FTP SCENARIO - - User at Host U wanting to transfer files to/from Host S: - - In general the user will communicate to the server via a mediating - user-FTP process. The following may be a typical scenario. The - user-FTP prompts are shown in parentheses, '---->' represents - commands from Host U to Host S, and '<----' represents replies from - Host S to Host U. - - LOCAL COMMANDS BY USER ACTION INVOLVED - - ftp (host) multics Connect to Host S, port L, - establishing TELNET connections - <---- 220 Service ready - username Doe USER Doe----> - <---- 331 User name ok, - need password - password mumble PASS mumble----> - <---- 230 User logged in. - retrieve (local type) ASCII - (local pathname) test 1 User-FTP opens local file in ASCII. - (for.pathname) test.pl1 RETR test.pl1 ----> - <---- 150 File status okay; - about to open data connection - Server makes data connection - to port U - - <---- 226 Closing data connection, - file transfer successful - type Image TYPE I ----> - <---- 200 Command OK - store (local type) image - (local pathname) file dump User-FTP opens local file in Image. - (for.pathname) >udd>cn>fd STOR >udd>cn>fd ----> - <---- 450 Access denied - terminate QUIT ----> - Server closes all - connections. - - - - - - - - - - - - 56 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - -CONNECTION ESTABLISHMENT - - The FTP control connection is established via TCP between the user - process port U and the server process port L. This protocol is - assigned the service port 21 (25 octal), that is L=21. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 57 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - -APPENDIX ON MAIL - - The basic commands transmitting mail are the MAIL and the MLFL - commands. These commands cause the transmitted data to be entered - into the recipients mailbox. - - MAIL - - If accepted, returns 354 reply and considers all succeeding - lines to be the message text, terminated by a line containing - only a period, upon which a 250 completion reply is returned. - Various errors are possible. - - MLFL - - If accepted, acts like a STOR command, except that the data is - considered to be the message text. Various errors are - possible. - - There are two possible preliminary replies that a server may use to - indicate that it is accepting mail for a user whose mailbox is not at - that server. - - 151 User not local; Will forward to @. - - This reply indicates that the server knows the user's mailbox - is on another host and will take responsibility for forwarding - the mail to that host. For example, at BBN (or ISI) there are - several host which each have a list of many of the users on - several of the host. These hosts then can accept mail for any - user on their list and forward it to the correct host. - - 152 User Unknown; Mail will be forwarded by the operator. - - This reply indicates that the host does not recognize the user - name, but that it will accept the mail and have the operator - attempt to deliver it. This is useful if the user name is - misspelled, but may be a disservice if the mail is really - undeliverable. - - Three FTP commands provide for "sending" a message to a logged-in - user's terminal, as well as variants for mailing it normally whether - the user is logged in or not. - - - - - - - - 58 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - - MSND -- SeND to terminal. - - Returns 450 failure reply if the addressee is refusing or not - logged in. - - MSOM -- Send to terminal Or Mailbox. - - Returns 119 notification reply if terminal is not accessible. - - MSAM -- Send to terminal And Mailbox. - - Returns 119 notification reply if terminal is not accessible. - - Note that for MSOM and MSAM, it is the mailing which determines - success, not the sending, although MSOM as implemented uses a 119 - reply (in addition to the normal success/failure code) to indicate - that because the SEND failed, an attempt is being made to mail the - message instead. There are no corresponding variants for MLFL, since - messages transmitted in this way are generally short. - - There are two FTP commands which allow one to mail the text of a - message to several recipients simultaneously; such message - transmission is far more efficient than the practice of sending the - text again and again for each additional recipient at a site. - - There are two basic ways of sending a single text to several - recipients. In one, all recipients are specified first, and then the - text is sent; in the other, the order is reversed and the text is - sent first, followed by the recipients. Both schemes are necessary - because neither by itself is optimal for all systems, as will be - explained later. To select a particular scheme, the MRSQ command is - used; to specify recipients after a scheme is chosen, MRCP commands - are given; and to furnish text, the MAIL or MLFL commands are used. - - Scheme Selection: MRSQ - - MRSQ is the means by which a user program can test for - implementation of MRSQ/MRCP, select a particular scheme, reset its - state thereof, and even do some rudimentary negotiation. Its - format is like that of the TYPE command, as follows: - - - - - - - - - - - 59 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - - MRSQ [ ] - - = a single character. The following are defined: - R Recipients first. If not implemented, T must be. - T Text first. If this is not implemented, R must be. - ? Request for preference. Must always be implemented. - - No argument means a "selection" of none of the schemes (the - default). - - Replies: - 200 OK, we'll use specified scheme. - 215 This is the scheme I prefer. - 501 I understand MRSQ but can't use that scheme. - 5xx Command unrecognized or unimplemented. - - Three aspects of MRSQ need to be pointed out here. The first is - that an MRSQ with no argument must always return a 200 reply and - restore the default state of having no scheme selected. Any other - reply implies that MRSQ and hence MRCP are not understood or - cannot be performed correctly. - - The second is that the use of "?" as a asks the FTP - server to return a 215 reply in which the server specifies a - "preferred" scheme. The format of this reply is simple: - - 215 [ ] - - Any other reply (e.g. 4xx or 5xx) implies that MRSQ and MRCP - are not implemented, because "?" must always be implemented if - MRSQ is. - - The third important thing about MRSQ is that it always has the - side effect of resetting all schemes to their initial state. This - reset must be done no matter what the reply will be - 200, 215, or - 501. The actions necessary for a reset will be explained when - discussing how each scheme actually works. - - Message Text Specification: MAIL/MLFL - - Regardless of which scheme (if any) has been selected, a MAIL or - MLFL with a non-null argument will behave exactly as before; the - MRSQ/MRCP commands have no effect on them. However, such normal - MAIL/MLFL commands do have the same side effect as MRSQ; they - "reset" the current scheme to its initial state. - - - - - - 60 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - - It is only when the argument is null (e.g. MAIL or - MLFL) that the particular scheme being used is important, - because rather than producing an error (as most servers currently - do), the server will accept message text for this "null" - specification; what it does with it depends on which scheme is in - effect, and will be described in "Scheme Mechanics". - - Recipient specification: MRCP - - In order to specify recipient names (i.e., idents) and receive - some acknowledgment (or refusal) for each name, the following - command is used: - - MRCP - - Reply for no scheme: - 503 No scheme specified yet; use MRSQ. - Replies for scheme T are identical to those for MAIL/MLFL. - Replies for scheme R (recipients first): - 200 OK, name stored. - 452 Recipient table full, this name not stored. - 553 Recipient name rejected. - 4xx Temporary error, try this name again later. - 5xx Permanent error, report to sender. - - Note that use of this command is an error if no scheme has been - selected yet; an MRSQ must have been given if MRCP is to - be used. - - Scheme mechanics: MRSQ R (Recipients first) - - In the recipients-first scheme, MRCP is used to specify names - which the FTP server stores in a list or table. Normally the - reply for each MRCP will be either a 200 for acceptance, or a - 4xx/5xx code for rejection; all 5xx codes are permanent rejections - (e.g. user not known) which should be reported to the human - sender, whereas 4xx codes in general connote some temporary error - that may be rectified later. None of the 4xx/5xx replies impinge - on previous or succeeding MRCP commands, except for 452 which - indicates that no further MRCP's will succeed unless a message is - sent to the already stored recipients or a reset is done. - - Sending message text to stored recipients is done by giving a MAIL - or MLFL command with no argument; that is, just MAIL or - MLFL. Transmission of the message text is exactly the same - as for normal MAIL/MLFL; however, a positive acknowledgment at the - - - - - 61 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - - end of transmission means that the message has been sent to ALL - recipients that were remembered with MRCP, and a failure code - means that it should be considered to have failed for ALL of these - specified recipients. This applies regardless of the actual error - code; and whether the reply signifies success or failure, all - stored recipient names are flushed and forgotten - in other words, - things are reset to their initial state. This purging of the - recipient name list must also be done as the "reset" side effect - of any use of MRSQ. - - A 452 reply to an MRCP can thus be handled by using a MAIL/MLFL to - specify the message for currently stored recipients, and then - sending more MRCP's and another MAIL/MLFL, as many times as - necessary; for example, if a server only had room for 10 names - this would result in a 50-recipient message being sent 5 times, to - 10 different recipients each time. - - If a user attempts to specify message text (MAIL/MLFL with no - argument) before any successful MRCP's have been given, this - should be treated exactly as a "normal" MAIL/MLFL with a null - recipient would be; some servers will return an error of some - type, such as "550 Null recipient". - - See Example 1 for an example using MRSQ R. - - Scheme mechanics: MRSQ T (Text first) - - In the text-first scheme, MAIL/MLFL with no argument is used to - specify message text, which the server stores away. Succeeding - MRCP's are then treated as if they were MAIL/MLFL commands, except - that none of the text transfer manipulations are done; the stored - message text is sent to the specified recipient, and a reply code - is returned identical to that which an actual MAIL/MLFL would - invoke. (Note ANY 2xx code indicates success.) - - The stored message text is not forgotten until the next MAIL/MLFL - or MRSQ, which will either replace it with new text or flush it - entirely. Any use of MRSQ will reset this scheme by flushing - stored text, as will any use of MAIL/MLFL with a non-null - argument. - - If an MRCP is seen before any message text has been stored, the - user in effect is trying to send a null message; some servers - might allow this, others would return an error code. - - See Example 2 for an example using MRSQ T. - - - - - 62 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - - Why two schemes anyway? - - Because neither by itself is optimal for all systems. MRSQ R - allows more of a "bulk" mailing, because everything is saved up - and then mailed simultaneously; this is very useful for systems - such as ITS where the FTP server does not itself write mail - directly, but hands it on to a central mailer demon of great - power; the more information (e.g. recipients) associated with a - single "hand-off", the more efficiently mail can be delivered. - - By contrast, MRSQ T is geared to FTP servers which want to deliver - mail directly, in one-by-one incremental fashion. This way they - can return an individual success/failure reply code for each - recipient given which may depend on variable file system factors - such as exceeding disk allocation, mailbox access conflicts, and - so forth; if they tried to emulate MRSQ R's bulk mailing, they - would have to ensure that a success reply to the MAIL/MLFL indeed - meant that it had been delivered to ALL recipients specified - not - just some. - - Notes: - - * Because these commands are not required in the minimum - implementation of FTP, one must be prepared to deal with sites - which don't recognize either MRSQ or MRCP. "MRSQ" and "MRSQ ?" - are explicitly designed as tests to see whether either scheme is - implemented; MRCP is not, and a failure return of the - "unimplemented" variety could be confused with "No scheme - selected yet", or even with "Recipient unknown". Be safe, be - sure, use MRSQ! - - * There is no way to indicate in a positive response to "MRSQ ?" - that the preferred "scheme" for a server is that of the default - state; i.e. none of the multi-recipient schemes. The rationale - is that in this case, it would be pointless to implement - MRSQ/MRCP at all, and the response would therefore be negative. - - * One reason that the use of MAIL/MLFL is restricted to null - arguments with this multi-recipient extension is the ambiguity - that would result if a non-null argument were allowed; for - example, if MRSQ R was in effect and some MRCP's had been given, - and a MAIL FOO was done, there would be no way to - distinguish a failure reply for mailbox "FOO" from a global - failure for all recipients specified. A similar situation - exists for MRSQ T; it would not be clear whether the text was - stored and the mailbox failed, or vice versa, or both. - - - - - 63 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - - * "Resets" are done by all MRSQ's and "normal" MAIL/MLFL's to - avoid confusion and overly complicated implementation. The MRSQ - command implies a change or uncertainty of status, and the - latter commands would otherwise have to use some independent - mechanisms to avoid clobbering the data bases (e.g., message - text storage area) used by the T/R schemes. However, once a - scheme is selected, it remains "in effect" just as a "TYPE A" - remains selected. The recommended way for doing a reset, - without changing the current selection, is with "MRSQ ?". - Remember that "MRSQ" alone reverts to the no-scheme state. - - * It is permissible to intersperse other FTP commands among the - MRSQ/MRCP/MAIL sequences. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 64 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - - Example 1 - - Example of MRSQ R (Recipients first) - - This is an example of how MRSQ R is used; first the user must - establish that the server in fact implements MRSQ: - - U: MRSQ - S: 200 OK, no scheme selected. - - An MRSQ with a null argument always returns a 200 if implemented, - selecting the "scheme" of null, i.e. none of them. If MRSQ were - not implemented, a code of 4xx or 5xx would be returned. - - U: MRSQ R - S: 200 OK, using that scheme - - All's well; now the recipients can be specified. - - U: MRCP Foo - S: 200 OK - - U: MRCP Raboof - S: 553 Who's that? No such user here. - - U: MRCP bar - S: 200 OK - - Well, two out of three ain't bad. Note that the demise of - "Raboof" has no effect on the storage of "Foo" or "bar". Now to - furnish the message text, by giving a MAIL or MLFL with no - argument: - - U: MAIL - S: 354 Type mail, ended by . - U: Blah blah blah blah....etc etc etc - U: . - S: 250 Mail sent. - - The text has now been sent to both "Foo" and "bar". - - - - - - - - - - - 65 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - - Example 2 - - Example of MRSQ T (Text first) - - Using the same message as the previous example: - - U: MRSQ ? - S: 215 T Text first, please. - - MRSQ is indeed implemented, and the server says that it prefers - "T", but that needn't stop the user from trying something else: - - U: MRSQ R - S: 501 Sorry, I really can't do that. - - It's possible that it could have understood "R" also, but in - general it's best to use the "preferred" scheme, since the server - knows which is most efficient for its particular site. Anyway: - - U: MRSQ T - S: 200 OK, using that scheme. - - Scheme "T" is now selected, and the text must be sent: - - U: MAIL - S: 354 Type mail, ended by . - U: Blah blah blah blah....etc etc etc - U: . - S: 250 Mail stored. - - Now recipients can be specified: - - U: MRCP Foo - S: 250 Stored mail sent. - - U: MRCP Raboof - S: 553 Who's that? No such user here. - - U: MRCP bar - S: 250 Stored mail sent. - - - - - - - - - - - 66 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - - Again, the text has now been sent to both "Foo" and "bar", and - still remains stored. A new message can be sent with another - MAIL/MRCP... sequence, but the fastidious or paranoid could chose - to do: - - U: MRSQ ? - S: 215 T Text first, please. - - Which resets things without altering the scheme in effect. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 67 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - -APPENDIX ON PAGE STRUCTURE - - The need for FTP to support page structure derives principally from - the need to support efficient transmission of files between TOPS20 - systems, particularly the files used by NLS. - - The file system of TOPS20 is based on the concept of pages. The - system level is most efficient at manipulating files as pages. - System level programs provide an interface to the file system so that - many applications view files as sequential streams of characters. - However, a few applications use the underlying page structures - directly, and some of these create holey files. - - A TOPS20 file is just a bunch of words pointed to by a page table. - If those words contain CRLF's, fine -- but that doesn't mean "record" - to TOPS20. - - A TOPS20 disk file consists of four things: a pathname, a page table, - a (possibly empty) set of pages, and a set of attributes. - - The pathname is specified in the RETR or STOR command. It includes - the directory name, file name, file name extension, and version - number. - - The page table contains up to 2**18 entries. Each entry may be - EMPTY, or may point to a page. If it is not empty, there are also - some page-specific access bits; not all pages of a file need have the - same access protection. - - A page is a contiguous set of 512 words of 36 bits each. - - The attributes of the file, in the File Descriptor Block (FDB), - contain such things as creation time, write time, read time, writer's - byte-size, end of file pointer, count of reads and writes, backup - system tape numbers, etc. - - Note that there is NO requirement that pages in the page table be - contiguous. There may be empty page table slots between occupied - ones. Also, the end of file pointer is simply a number. There is no - requirement that it in fact point at the "last" datum in the file. - Ordinary sequential I/O calls in TOPS20 will cause the end of file - pointer to be left after the last datum written, but other operations - may cause it not to be so, if a particular programming system so - requires. - - - - - - - 68 - - - -IEN 149 June 1980 -RFC 765 File Transfer Protocol - - - - In fact both of these special cases, "holey" files and - end-of-file pointers not at the end of the file, occur with NLS data - files. - - The TOPS20 paged files can be sent with the FTP transfer parameters: - TYPE L 36, STRU P, and MODE S (in fact any mode could be used). - - Each page of information has a header. Each header field, which is a - logical byte, is a TOPS20 word, since the TYPE is L 36. - - The header fields are: - - Word 0: Header Length. - - The header length is 5. - - Word 1: Page Index. - - If the data is a disk file page, this is the number of that - page in the file's page map. Empty pages (holes) in the file - are simply not sent. Note that a hole is NOT the same as a - page of zeros. - - Word 2: Data Length. - - The number of data words in this page, following the header. - Thus the total length of the transmission unit is the Header - Length plus the Data Length. - - Word 3: Page Type. - - A code for what type of chunk this is. A data page is type 3, - the FDB page is type 2. - - Word 4: Page Access Control. - - The access bits associated with the page in the file's page - map. (This full word quantity is put into AC2 of an SPACS by - the program reading from net to disk.) - - After the header are Data Length data words. Data Length is - currently either 512 for a data page or 21 for an FDB. Trailing - zeros in a disk file page may be discarded, making Data Length less - than 512 in that case. - - - - - - - 69 - - - -June 1980 IEN 149 -File Transfer Protocol RFC 765 - - - - Data transfers are implemented like the layers of an onion: some - characters are packaged into a line. Some lines are packaged into a - file. The file is broken into other manageable units for - transmission. Those units have compression applied to them. The - units may be flagged by restart markers. On the other end, the - process is reversed. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 70 - \ No newline at end of file diff --git a/text/ien/ien150.txt b/text/ien/ien150.txt deleted file mode 100644 index 31e8f7a0..00000000 --- a/text/ien/ien150.txt +++ /dev/null @@ -1,696 +0,0 @@ - - -IEN 150 W. Plummer BBN - J. Postel ISI - June 1980 - - TCP JSYS CALLING SEQUENCES - -This memo describes the TENEX and TOPS20 JSYSs for using TCP. There are -a number of parameters that are common to this set of JSYSs and these -are described first. - -These JSYSs use a Job Connection Number or "JCN" for connections in much -the same way file manipulating JSYSs use a Job File Number or "JFN" for -files. - - Typically a small number, the JCN is a handle on a connection, and is - assigned by the OPEN JSYS. - -These JSYSs also use a Connection Block , either directly or implicitly -by reference to an associated JCN. The Connection Block is a 3-word -block: - - Word-0: 16-bit Local Port. - Word-1: 8-bit Foreign Network and 24-bit Foreign Host. - Word-2: 16-bit Foreign Port. - - These values are right justified in the 36-bit word. - -These JSYSs take flags in the left half of AC 1. -Not all of these JSYSs look at all of the flags. The flag bits are: - - Bit-0: RH has JCN rather than pointer to connection block. - Bit-1: Wait for the JSYS to complete. - Bit-5: ForceSync -- cause SYN to be sent when OPEN executed. - Bit-6: Persist -- keep resending SYN packet. - Bit-7: Return statistics (STAT call only). - - - - - - - - - - - - - - - - - - - -Plummer & Postel [page 1] - - - -June 1980 TCP JSYS Calling Sequences - - - -The SEND and RECV JSYSs use data buffers which have control blocks and -which may be chained together to form a ring of buffers. These control -blocks are called Data Buffer Ring Elements. The Data Buffer Ring -Element Format is: - - Word-0: Flags,,unused by TCP (typically a pointer to next buffer - header) - Word-1: 0,,Address of data buffer - Word-2: Word/Byte count for this buffer - - Flags: - - Done: - Cleared when TCP receives this buffer. Set when TCP has - finished with it. - - Error: - Buffer has an error associated with it. - - EOL: - Send an end-of-letter with this buffer. Or, end-of-letter - received with this buffer. - - WordMode: - Buffer is formatted as 36-bit bytes. Off if buffer has four - 8-bit bytes per word. (Not Implemented Yet, 36-bit mode not - supported.) - - Flag Bit Assignments: - - Bit 0: Error - Bit 1: Local - Bit 2: Permanent - Bits 3-7: Error Number - Bits 8-11: Unused - Bit 12: Done - Bits 13-15: Unused - Bit 16: EOL - Bit 17: Word Mode - - The error numbers are listed under "Error Returns". - - - - - - - - - -[page 2] Plummer & Postel - - - -TCP JSYS Calling Sequences June 1980 - - - -The OPEN ans SEND JSYSs take a "Retransmission Parameters" word. This -is controls the retransmission function. - - The right half is the initial retransmission Interval which is to be - used. If the right half is 0, the initial Interval will be computed - based on the measured round trip time. The left half of the - parameters word has two 9-bit quantities, called the Numerator and - the Denominator. In computing the next retransmission Interval from - the previous one, the TCP multiplies the Interval by the Numerator - and then divides by the Denominator. - - Interval = Interval * ( Numerator / Denominator ) - - Common retransmission functions are: - - SRI PR demo: Numerator=1, Denominator=1, Initial Interval=3. - - 3 seconds constant retransmission interval with no backoff. - - BBN (vanilla): Numerator=3, Denominator=2, Initial interval=0. - - Used in "average" conditions involving congested gateways and few - dropped packets. 150% backoff from best guess initial interval. - - BBN (old): Numerator=4, Denominator=2, Initial interval=0. - - Same as above but 200% backoff. Quickly hits the 1 minute maximum - interval and turns into slow, constant period retransmission. - - - - - - - - - - - - - - - - - - - - - - -Plummer & Postel [page 3] - - - -June 1980 TCP JSYS Calling Sequences - - - -Error Returns - - When a JSYS does an error return (returns +1 instead of +2), AC 1 - contains an error code. This code is an 8-bit number (right - justified in the 36-bit word) composed as follows: - - Bit Assignments: - - Bit 28: Error - Bit 29: Local - Bit 30: Permanent - Bits 31-35: Error Number - - The error numbers are: - - 0 Unknown Error - 1 Argument Error in JSYS (no access, bad JCN, etc.) - 3 Connection Not Open - 4 Temporarily Out of Resources - 6 Connection Already Exists - 7 Connection Error or Rejected (No such TCB either here or - there.) - 9 Transmission Timeout - 12 Connection Closed or Closing (Closed remotely.) - 15 Bad Buffer Argument - 17 Bad Argument to CHANL - 20 Funny pointer to STAT (wraps around memory, etc) - 21 Bad Transfer Size to STAT - 29 Cannot change security level (SCSLV) - 31 TCP Not Available - - The Error bit indicates if an error occured, for example error number - 12 might not have the Error bit set in response to a CLOSE call. The - Local bit indicates if the situation is local to this host or is due - to the remote host. The Permanent Bit indicates if the situation is - permanent, or temporary. - - - - - - - - - - - - - - -[page 4] Plummer & Postel - - - -TCP JSYS Calling Sequences June 1980 - - - -OPEN (JSYS 742) - - 1/ Flags,,Pointer-to-Connection-Block - 2/ Persistence in seconds - 3/ Retransmission parameters - - OPEN - - R+1: failure, code in AC 1 - R+2: OK, JCN (Job Connection Number) in AC 1 - - Flags: - - ForceSync: - - On to force synchronization without any data having been sent. - - Wait: - - Don't return until connection is opened. - - Persistent: - - Keep trying by sending SYN packets periodically. - - - - - - - - - - - - - - - - - - - - - - - - - - -Plummer & Postel [page 5] - - - -June 1980 TCP JSYS Calling Sequences - - - -CLOSE (JSYS 743) - - 1/ Flags,,JCN-or-Pointer - - CLOSE - - R+1: failure, code in AC 1 - R+2: OK, connection fully closed - - Flags: - - JCNSupplied: - - On if RH of AC 1 has a JCN. Off if RH has Pointer-to-Connection - Blk. - - Wait: - - Wait for close to happen in both directions. - - Note that if the wait bit is not set, the JCN will remain valid, - allowing more RECVs to be done. ABORT may be used to release the - handle when it has been discovered that the connection has - terminated. - - - - - - - - - - - - - - - - - - - - - - - - - - -[page 6] Plummer & Postel - - - -TCP JSYS Calling Sequences June 1980 - - - -SEND (JSYS 740) - - 1/ Flags,,JCN or Pointer-to-Connection-Block - 2/ 0,,Pointer-to-Data-Ring - 3/ Timeout in Seconds (0 for infinite) - 4/ Retransmission parameters - - SEND - - R+1: failure, error code in AC 1 - R+2: OK, JCN in AC 1 - - Flags: - - JCNSupplied: - - On if RH of AC 1 has a JCN. Off if RH has Pointer-to-Connection - Blk. - - Wait: - - Wait for close to happen in both directions. - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Plummer & Postel [page 7] - - - -June 1980 TCP JSYS Calling Sequences - - - -RECV (JSYS 741) - - 1/ Flags,,JCN or Pointer-to-Connection-Block - 2/ 0,,Pointer-to-Data-Ring - - RECV - - R+1: failure, error code in AC 1 - R+2: OK, JCN in AC 1 - - Flags: - - JCNSupplied: - - On if RH of AC 1 has a JCN. Off if RH has Pointer-to-Connection - Blk. - - Wait: - - Wait for close to happen in both directions. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[page 8] Plummer & Postel - - - -TCP JSYS Calling Sequences June 1980 - - - -STAT (JSYS 745) - - 1/ Flags,,JCN or Pointer-to-Connection-Block - 2/ -N,,Offset into TCB - 3/ -M,,Address in user's space - - STAT - - R+1: failure, error code in AC 1 - R+2: OK. - - Flags: - - JCNSupplied: - - On if RH of AC 1 has a JCN. Off if RH has Pointer-to-Connection - Blk. - - Returns statistics: - - This flag causes the TCP to dump words from the statistics area - rather than a specific TCB. Thus, the JCN is irrelevant. The - Source and Destination ACs are updated as if a TCB were being - dumped. - - If successful min(M, N) words have been transferred from the TCB to - the caller's space. The TCB offset identifies where the transfer - starts and the Address in user space identifies the start of the - destination area. - - - - - - - - - - - - - - - - - - - - - -Plummer & Postel [page 9] - - - -June 1980 TCP JSYS Calling Sequences - - - -CHANL (JSYS 746) - - 1/ Flags,,JCN or Pointer-to-Connection-Block - 2/ Six 6-bit bytes (channel numbers) - - CHANL - - R+1: failure, error code in AC 1 - R+2: OK. This fork will receive TCP PSIs - - Flags: - - JCNSupplied - - On if RH of AC 1 has a JCN. Off if RH has Pointer-to-Connection - Blk. - - Each of the 6-bit bytes may be 77 (octal) if no PSIs are desired for - the corresponding event. - - Bits 0- 5: INTRP channel - Bits 6-11: RECV buffer done - Bits 12-17: SEND buffer done - Bits 18-23: Error - Bits 24-29: State change (open or close) - Bits 30-35: EOL acknowledged (Not implemented) - - PSIs for the above may be dropped or be VERY tardy on heavily loaded - systems. Some defensive programming is required to guard against - these problems. See TCPTST.MAC which checks the buffer rings both - when a "done" interrupt occurs and periodically. - - - - - - - - - - - - - - - - - - - -[page 10] Plummer & Postel - - - -TCP JSYS Calling Sequences June 1980 - - - -ABORT (JSYS 747) - - 1/ Flags,,JCN or Pointer-to-Connection-Block - - ABORT - - R+1: error, code in AC 1 - R+2: OK, connection deleted - - Flags: - - JCNSupplied: - - On if RH of AC 1 has a JCN. Off if RH has Pointer-to-Connection - Blk. - - The local end of the connection is forgotten. An attempt to notify - the remote end is made by sending a RST packet. Should this not be - delivered, the other end will discover its half open connection the - next time it attempts to use it. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Plummer & Postel [page 11] - - - -June 1980 TCP JSYS Calling Sequences - - - -SCSLV (JSYS 744) - - 1/ Flags,,JCN or Pointer-to-Connection-Block - 2/ 36 bit security value - - SCSLV - - R+1: failure, error code in AC 1 - R+2: OK. The security value has been associated with the connection - - Flags: - - JCNSupplied - - On if RH of AC 1 has a JCN. Off if RH has Pointer-to-Connection - Blk. - - The security value is not interpreted by the TCP (except to see that - it matches). The number of bits of the security value actually used - varries depending on the actual security procedure being in use. In - all cases the rightmost bits of the word are used. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[page 12] Plummer & Postel - \ No newline at end of file diff --git a/text/ien/ien151.txt b/text/ien/ien151.txt deleted file mode 100644 index e7bb3eb4..00000000 --- a/text/ien/ien151.txt +++ /dev/null @@ -1,405 +0,0 @@ - -IEN 151 Vint Cerf - DARPA/IPTO - 1 April 80 - - FINAL REPORT OF THE STANFORD - UNIVERSITY TCP PROJECT - - Vinton G. Cerf - 1 April 1980 - -ABSTRACT: - -This report provides a brief historical and technical summary of the -Stanford University internet, host-to-host Transmission Control Protocol -(TCP) project. Developed from 1973-1976 at Stanford, Bolt Beranek and -Newman and University College London, the effort then continued at other -research and development centers during 1977-1980. Originally designed -as a monolithic internet protocol, the internet aspects were separated -into a distinct protocol layer in early 1979 with the publication of -version 4 of TCP. The resulting pair of protocols, TCP4 and Internet -Protocol (IP) are now undergoing procedures for standardization within -the DoD and Intelligence Community. The four most valuable results of -the Stanford effort were the assessment of which functions could or -should be implemented in the protocol and which should not, the -implementation of an efficient, assembly-language version of TCP for an -LSI-11 computer, the development of a "micro" operating system (MOS) for -the same computer, and the specification of the TCP protocol. - -1. Introduction: - -The Stanford TCP project was supported by the Defense Advanced Research -Projects Agency (DARPA) under contract No. DAHC 15-73-C-0363 and -MDA903-76-C-0206, ARPA Order No. 2494 during the period 1 July 1973 to -30 September 1976. During the time that the project was at Stanford, -two versions of TCP were developed, one in December 1974 [1] and another -which was published in March 1977 [2], by DARPA. Since that time, two -other versions of TCP were developed, one n December 1974 [1] and -another which was published in March 1977 [2], by DARPA. Since that -time, two other versions have been published, versions 3 and 4 [3,4] in -January 1978 and February 1979, respectively. Editing of these latter -versions was the responsibility of J. Postel, Information Sciences -Institute, University of Southern California. Intermediate versions were -published in July 1976 [5], July 1978 [6], and August 1979 [7]. The -July 76 version was developed for the Defense Communication Agency by J. -Postel, L. Garlic, and R. Ram of Stanford Research Institute for the -Defense Communication Agency in connection with the AUTODIN II project. -The final versions of TCP and Internet Protocol were published in -January, 1980 [14,15] by DARPA on behalf of the Defense Communication -Agency. - -During the course of the DARPA Interneting program, which supported the - - - -Cerf [Page 1] - - - 1 April 1980 -IEN 151 - - -TCP development, a great many people and groups were involved in or -influenced the development of the TCP. - -The initial impetus for the effort resulted from work by R. Kahn and V. -Cerf, which was published in May 1974 [8], but whose basic roots were -already known in September 1973 [9]. - -An initial design for TCP was worked out during 1973-74 at Stanford -among V. Cerf, Y. Dalal, C. Sunshine and R. Karp, with the participation -of R. Tomlinson [Bolt Beranek and Newman], W. Plummer [BBN], R. Metcalfe -[Xerox PARC] and D. Boggs [Xerox PARC]. Implementation, testing and -further development were carried out jointly at Stanford with J. Mathis -and J. Estrin, Bolt Beranek and Newman, and University College London -[F. Deignan, C. J. Bennett, A. J. Hinchley and M. Galland.] Visiting at -Stanford during this initial development period were G. LeLann -[University of Rennes, France] and D. Belsnes [University of Oslo] who -provided additional philosophical leavening which influenced the design -of the protocol. - -By 1976, implementations had been written for the Tenex/PDP-10 -[Tomlinson, Plummer - in BCPL], ELF/PDP-11 [Tomlinson, Plummer - in -BCPL; Karp, Dalal, Cerf - BCPL], LSI-11 [Mathis - assembly language], -PDP-9 [Deignan - BABBAGE] and some performance experience obtained [10]. - -Since then, implementations have been for UNIX [M. Wingfield - "c"; J. -Haverty - assembly language], MOS 360 [B. Braden - assembly language], -Multics [D. Clark - PL/1], TOPS-20 [W. Plummer - assembly language], and -NORD-10 [A. Stensby]. - -2. TECHNICAL ISSUES - -The initial concept behind TCP was very simple. Two processes wishing -to communicate had only to know the other's "address". Data would be -accounted for in 8-bit octets, and sequence numbers would be used to -re-order the received data at the destination, if necessary. The first -packet would have a special synchronization flag ["SYN"] which would -alert the receiver that the sender's sequence numbers would start with -the one associated with data sequence numbers so that end to end -acknowledgments for data could also be used to acknowledge control. If -resynchronization were needed, the sender could simply send another -"SYN" packet. There would be no use for a "connection set-up" in the -conventional sense. Finally, packet formats would permit internet -gateways to fragment packets into identically formatted, smaller packets -if necessary, to get through a net with a smaller packet size. -Reassembly of fragments would be done by the destination. - -An initial implementation of the protocol by Tomlinson and Plummer was -used to control a line printer which was supposed to spool output from a -host computer onto paper. The first obvious problem which cropped up - - -Cerf [Page 2] - - - 1 April 1980 -IEN 151 - - -was an inability to distinguish an old duplicate SYN packet (created by -retransmissions in the absence of an acknowledgments) from a new SYN -packet which is trying to start a new sequence. - -This problem was documented in [11-13] and the solution proposed was -called the "three-way" handshake" by its inventor, Ray S. Tomlinson. -This addition to the original proposed protocol [8] was probably the -most major change to its philosophy, since it introduced an explicit -connection "set-up" exchange at the beginning to allow both ends to -validate the connection sequence numbers. Basically, each end selects a -starting sequence number, and receives both an acknowledgments and an -indication of the start of the other end's sequence space. This -validating exchange is intended to help each end distinguish old, -duplicate SYNs from recent ones. For this to work correctly, some -maximum throughput, so as to be able to select a suitably-sized sequence -number space. In the end, a 32 bit sequence space was selected which -would not wrap around for about 4 hours at 2 megabits/second. - -An alternative to the three-way handshake was examined in 1978 by D. -Reed at MIT [16], in which the initiator of a "connection" employs a -unique, non-reusable "socket identifier" as a way of distinguishing new -from old connection requests. These identifiers are needed in TCP also, -to distinguish among multiple connections, but the socket numbers are -allowed to be reused, leading to the need to use sequence numbers and -the three-way handshake to distinguish old from new connection requests. -The strategy proposed by Reed required some non-volatile supply of new -socket identifiers which would either never recur, or recur at such long -cycles (days, weeks...) that there would never be any confusion or -duplication of use. Obvious, if the socket identifiers cycled too -quickly, a particular identifier might present itself for use anew while -it was still in use on some connection. This idea was considered for -TCP in 1978, but was not pursued as it created problems of "dangling, -half-open server connections" when things went wrong. - -The second major issue had to do with the resynchronization of a -connection after host failure. A variety of techniques were exploded -and designed in detail. In the final TCP design, a simple strategy for -recovering from "half-open" connections was developed. - -A hazard was found, however, based on violation of the assumption that -sequence numbers would be consumed at no more than some maximum rate. -If a connect stayed idle for a long enough period, the basic "initial -sequence number" selection strategy outlined in [11-13] would encounter -a hazard if the host failed just as the "next sequence number" to use -fell into the so-called initial sequence number "forbidden zone". A -complex set of tests were defined to catch this case, but required -action on each packet transmitted to determine whether the hazardous -"forbidden" zone had been entered. If so, the sequence numbers on the -connection would be re-synchronized to skip around the danger area. The - - -Cerf [Page 3] - - - 1 April 1980 -IEN 151 - - -probability of the hazard actually occurring was judged to be quite -small, and finally these tests were eliminated, vastly simplifying the -TCP definition and implementation. - -The third critical issue had to do with the treatment of packets which -required fragmentation to pass through a network. Gateways between nets -were postulated which could detect that an incoming packet was too large -to fit encapsulated in the packet format of the next network. - -A fragmentation strategy was developed which permitted an internet -packet to be fragmented into smaller packets and marked in such a way -that the resulting fragments could be routed independently of one -another and could still be reassembled at the final destination. - -A major change to the TCP philosophy occurred when the basic interneting -func tions (addressing, fragmentation and type of service selection) -were separated from the end to end functions of TCP (sequencing, -retransmission, duplicate detection, flow control and port -multiplexing). At this point, the fragmentation problem was -substantially simplified since it applied only to the internet packets -and limited knowledge of protocols to the IP layer in the gateway. - -At the same time, this permitted other higher level protocols, adjacent -to the TCP layer, to rely on the special services, including -fragmentation and reassembly, of the IP protocol layer. - -Network Security - -The TCP concepts were applied to the ARPA network security program and -an architecture was developed which accommodated the use of TCP as an -end to end protocol, below which, end to end encryption could take -place. This architecture became even simpler when the TCP was split -from the internet protocol functions since security was provided at the -IP level, allowing many different transport protocols, in addition to -TCP, to be secured by the same basic system. - -Implementation and Experimentation - -Two TCPs were developed during this project: - - 1. BCPL for PDP-11 under ELF operating system. - - 2. Assembly Language for LSI-11 under MOS operating system. - -The former was useful for high-level description of the TCP -functionality but was never very efficient. Extensive performance tests -and timing analyses revealed that 75-80% of the overhead for the BCPL -TCP running under ELF was attributable to either the slow interprocess - - - -Cerf [Page 4] - - - 1 April 1980 -IEN 151 - - -communication system in ELF or the inefficient "Reliable Transmission -Protocol" for the Very Distant Host interface to ARPANET. - -The RTP introduced a minimum round-trip time to the IMP and back of some -50 ms, limiting packet rates to about 20 packets/second. - -Performance tests conducted with a Babbage implementation at University -College London [10] were even less satisfactory due to buffer -limitations in the London PDP-9 computer and the very lengthy cross-net -delays imposed by a 9.6 kb/s satellite circuit connecting London to the -U.S. by way of Norway. The best packet rate we could sustain was about -2-3 packets/second. - -We found a significant improvement in performance to be possible upon -using ARPANET "type 3" packets which are not limited to 8 outstanding -messages as is normal ARPANET traffic. However, this mode of operation, -if stressed, caused serious network congestion problems. - -To determine whether the limited performance of TCP was a design flaw, -we implemented an assembly language version in about 1200 words of -LSI-11 memory running under a small, 800 word micro-operating system. -This version, while compatible with our 12,000 word BCPL version on ELF, -was one tenth the size and achieved 37 kb/s on the LSI-11 and 50 kb/s on -the PDP-11/20. - -The LSI-11 version was subsequently integrated in to the packet radio -network at SRI as part of a Terminal Interface Unit. - -Conclusions - -This project successfully developed, implemented, documented and tested -a reliable, internet work, host-to-host protocol, capable of operating -in extremely hostile environments and able to recover from catastrophic -failures in a graceful fashion. - -The adoption of the protocol for DoD use in packet networking is an -indication of the far-reaching impact of this research. - - - - - - - - - - - - - - -Cerf [Page 5] - - - 1 April 1980 -IEN 151 - - -REFERENCES - -1. Cerf V., Y. K. Dalal, C. A. Sunshine, "Specification of Internet - Transmission Control Program", INWG General Note 72, IFIP Working - Group 6.1, December 1974. - -2. Cerf. V., "Specification of Internet Transmission Control Program - - TCP (Version 2)", March - -3. Cerf. V., J. Postel (eds), "Specification of Internetwork - Transmission Control Program - TCP (Version 3)", January 1978. - -4. J. Postel (ed), 'Transmission Control Protocol - TCP (Version 4)", - February 1979. - -5. J. B. Postel, L. L. Garlic, R. Rom, "Transmission Control Protocol - Specification", Augmentation Research Center, Stanford Research - Institute, Menlo Park, CA 15 July 1976 [for the U.S. Defense - Communications Agency in connection with AUTODIN II]. - -6. "Specification of Internetwork Transmission Control Program - TCP - (Version 3.1)", July 1978. - -7. DARPA, "Transmission Control Protocol, Version 4", August 1979 - [edited by J. Postel]. - -8. Cerf, V. G. and R. E. Kahn, "A Protocol for Network - Intercommunication", IEEE Transactions on Communications, Vol. - Com-22, No. 5, May 1974. - -9. Cerf, V. and R.E. Kahn, "Proposed Protocol for Internet - Host-to-Host Communication", INWG Note No. 39, September 1973. - -10. Bennett, C. J. and A. J. Hinchley, "Quantitative Measurements of - the Transmission Control Protocol", Proceedings of the Int'l - Conference on Protocols, Andre Danthine [ed]. - -11. Tomlinson, R.S., "Selecting Sequence Numbers", INWG Protocol Note - No. 2, August 1974; Proceedings of the ACM SIGCOMM/SIGOPS - Interprocess Communication Workshop, (Santa Monica, CA, March - 24-25, 1975) and ACM Operating Systems Review, Vol. 9, No. 3, July - 1975, Association for Computing Machinery, New York, 1975. - -12. Dalal, Yoden, K., "More on Selecting Sequence Numbers", INWG - Protocol Note, No. 4 IFIP Working Group 6.1, August 1974; also, in - Proceeding of the ACM SIGCOMM/SIGOPS Interprocess Communications - Workshop, (Santa Monica, CA, March 24-25, 1975) and ACM Operating - Systems Review, Vol. 9, No. 3, July 1975, Association for Computing - Machinery, New York, 1975. - - -Cerf [Page 6] - - - 1 April 1980 -IEN 151 - - -13. Dalal, Yogen K., "Establishing a Connection", INWG Protocol Note - 14, IFIP Working Group 6.1, March 1975. - -14. DARPA, "DoD Standard Transmission Control Protocol", (J. Postel, - ed.) January 1980. - -15. DARPA, "DoD Standard Internet Protocol", (J. Postel, ed.), January - 1980. - -16. Reed, David P., "Naming and Synchronization in a Decentralized - Computer System", MIT Report LCS/TR-205, September, 1978. - -17. Sunshine, C., "Interprocess Communication Protocols for Computer - Networks", Ph.D. Dissertation, Stanford University, December 1975. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Cerf [Page 7] - diff --git a/text/ien/ien152.txt b/text/ien/ien152.txt deleted file mode 100644 index b9050920..00000000 --- a/text/ien/ien152.txt +++ /dev/null @@ -1,489 +0,0 @@ - - -IEN 152 Vint Cerf - DARPA/IPTO - 1 July 80 - - - - - - DoD Protocol Standardization - - - -The attached memoranda from the Principal Deputy Undersecretary of -Defense for Research and Engineering and from the Assistant Secretary of -Defense (Communications, Command, Control and Intelligence) describe the -DoD plans for standardizing internet protocols. The first two are the -Internet Protocol and the Transmnission Control Protocol. - -The DARPA Internet project will continue to provide technical support -for the DoD standardization effort, including the test and evaluation of -selected proposed standards. - - - - - THE UNDER SECRETARY OF DEFENSE - WASHINGTON, D.C. 20301 - - - 23 Dec 78 - - - -MEMORANDUM FOR SECRETARY OF THE ARMY - SECRETARY OF THE NAVY - SECRETARY OF THE AIR FORCE - CHAIRMAN, JOINT CHIEFS OF STAFF - DIRECTOR, DEFENSE ADVANCED RESEARCH PROJECTS AGENCY - DIRECTOR, DEFENSE COMMUNICATIONS AGENCY - DIRECTOR, DEFENSE INTELLIGENCE AGENCY - DIRECTOR, DEFENSE LOGISTICS AGENCY - DIRECTOR, NATIONAL SECURITY AGENCY - -SUBJECT: Host-to-Host Protocols for Data Communications Networks - - -A number of data communications networks are operating or under -development within DoD, without adequate provisions for -interoperability. AUTODIN II is expected to become operational during -FY 1980, to provide common-user data communications service for DoD -computer systems and permit a reduction in the number of specialized -data networks. Plans are under way to incorporate within AUTODIN II -networks such as the WWMCCS Intercomputer Network (WIN), Intelligence -Data Handling System Communications (IDHSC) and the SAC Digital Network -(SACDIN), among others. Local networks such as the Community On-Line -Intelligence Network System (COINS) and certain tactical networks must -have effective AUTODIN II interfaces. - -AUTODIN II will provide connectivity for a wide range of systems, but -the potential for information exchange beyond narrowly defined -communities will be limited without appropriate standards for internet, -host-to-host, terminal-to-host and other protocols. As the need to -exchange information across network boundaries increases, lack of common -protocols standards will become a formidable barrier to -interoperability. Techniques in which the protocols of one network are -translated into the protocols of another will become increasingly -unworkable as the number of protocols and networks requiring -interoperation increases. - -To insure interoperability of future data networking, I am directing the -adoption of a set of DoD standard host-to-host protocols based on the -Transmission Control and Internet Protocols (TCP/IP version 4) developed -in the DARPA/DCA internetwork community. DoD requirements for -precedence, security, and community of interest controls will be -incorporated within the standard protocol set. Use of these protocols -will be mandatory for all packet-oriented data networks where there is a -potential for host-to-host connectivity across network or subnetwork -boundaries. Case-by-case exceptions will be granted only for networks -that can be shown to have no future requirements for interoperability. -Because the host-to-host protocol being developed for AUTODIN II evolved - - - -from an early version of TCP and is unsuitable for internetwork -operation, the AUTODIN II TCP will have to be upgraded to the standard -protocol set. Recognizing that there may be cost and schedule impacts -on the AUTODIN II program, the Defense Communications Agency should -perform a cost tradeoff analysis to determine the optimum time for this -transition. DCA should provide the results of this analysis by April -1979. - -To address these and future protocol issues and promulgate appropriate -standards, I am forming an OSD Protocol Standards Working Group chaired -by the Director, Information Systems. I ask each addressee to nominate -a representative. Names should be provided by 8 January 1979 to LTC -Wilcox (695-3287). The first task of this group will be to finalize -details of the standard host-to-host protocol set. Draft specifications -for these protocols will be available in January 1979. Final -specifications should be distributed by April 1979 following review by -the working group and testing by DCA and DARPA. At that time, I expect -to promulgate these standards and set dates for their adoption. - -The Defense Communications Agency is designated as DoD Executive Agent -for computer communications protocols and will manage the implementation -and development and evolution of standard host-to-host protocols, as -designated by the Protocol Standards Working Group. The DCA will -forward to this office within 120 days a management plan for carrying -out this role. - - - - - - Gerald P. Dinneen - Principal Deputy - - - - ASSISTANT SECRETARY OF DEFENSE - - - Washington, D.C. 20301 - - - - - 3 Apr 80 - - - - - -MEMORANDUM FOR SECRETARY OF THE ARMY - SECRETARY OF THE NAVY - SECRETARY OF THE AIR FORCE - CHAIRMAN, JOINT CHEIFS OF STAFF - DIRECTOR, DEFENSE ADVANCED RESEARCH PROJECTS AGENCY - DIRECTOR, DEFENSE COMMUNICATIONS AGENCY - DIRECTOR, DEFENSE INTELLIGENCE AGENCY - DIRECTOR, DEFENSE LOGISTICS AGENCY - DIRECTOR, NATIONAL SECURITY AGENCY - -SUBJECT: Host-to-Host Data Communications Protocols - - -The revised Management Plan for Standardizatioan of Host-to-Host Data -Communications Protocols (enclosure 1) is approved. The plan has been -modified to emphasize DCA's direct responsibilities as Executive Agent. - -The DoD Standard Transmission Control Protocol and Internet Protocol -Specifications (enclosure 2) are hereby ratified. Use of these -protocols is mandatory for all packet-oriented data networks where there -is a potential for host-to-host connectivity across network or -subnetwork boundaries. In order to facilitate rapid implementation of -these protocols on DoD networks, the Defense Communications Agency, as -part of its Executive Agent role, will prepare a series of -workshop/seminars and implementation support documents to assist the DoD -activities in implementing these protocols. The AUTODIN II -implementation of these protocol standards will take place as soon after -AUTODIN II IOC as possible. - -I would like to thank all those who participated in the OSD Protocol -Standards Working Group during the past year. That Working Group is -hereby disestablished and its responsibilities are transferred to the -various DCA panels as defined in the Executive Agent Charter. - - - - Gerald P. Dinneen - - - -Enclosures 2 - - - - MANAGEMENT PLAN - - For - - EXECUTIVE AGENT FOR STANDARDIZATION OF HOST-TO-HOST - - DATA COMMUNICATIONS PROTOCOLS IN THE DOD - - - - 1. Reference. USDRE Memo, Host-to-Host Protocols for Data -Communications Newtworks, 23 Dec 78. - - 2. Introduction. This paper constitutes the Executive Agent -Management Plan for Standardization of Data Communications Protocols in -the DoD. This Plan identifies the major functions, the organization and -responsibilities of the Director, Defense Communications Agency as the -Executive Agent and the responsibilities of the Military Departments and -DoD Agencies for supporting the Executive Agent. - - 3. Authority. The authority for establishing the Director, -Defense Communications Agency (DCA) as the Executive Agent for -Standardization of Host-to-Host Data Communications Protocols in the DoD -is contained in the reference. A more permanent authority will be -provided by a DoD Directivce which will be drafted by DCA for the -signature of the Principal Deputy Under Secretary of Defense, Research -and Engineering, upon approval of this Plan. - - 4. Background. Protocols are the rules of performance for data -communications networks; and these rules pervade all levels of -performance, from electrical interfaces to the interactions among user -processes within host computers. Hence, the standardization of -protocols is of interest and concern to a number of organizational -elements, including operators, program managers, systems engineers, -standards groups and users. Judicious management of protocol standards -can do much to enhance the value of DoD data communications services. -Conversely, lax management of standards on the one hand, or overly -zealous insistence on unnecessary conformity on the other, can cause -user dissatisfaction and spawn proposals for special-purpose networks. - - Within DCA, the Deputy Directors for Systems Engineering, Command -and Control Systems, Command and Control Technical Support, Plans and -Programs, and Operations and Readiness have clear and vital interests in -this important area, and their full and active participation is -essential to the success of the Executive Agent's protocol -standardization efforts. Moreover, it is important to have the -participation of user representatives from the Services, Defense -Agencies OJCS and JINTACCS to ensure responsiveness of the Executive -Agent to user operational requirements. Likewise, the participation of -the National Communications System is essential so that the Executive -Agent can benefit from NCS federal and international standards -experience. The participation of non-DoD government organizations who -are concerned with protocol standardization, such as the Intelligence -Community Staff and the National Bureau of Standards, is useful and will -therefore be invited. - - - - 5. Functions of the Executive Agent. The Director, DCA, as -Executive Agent, will manage the development, implementation and -evolution of standard host-to-host and higher level data communications -protocols. Specifically, the Executive Agent will perform the following -functions: - - a. Provide a forum for discussion with Services and Defense -Agencies on requirements for new standards. - - b. Based on identified requirements, cause new proposals for -standardization or for enhancements and modifications to existing -standards to be specified. - - c. Prepare, distribute and maintain documentation of the -standards and their specifications. - - d. Maintain configuration control of the standards and their -specifications. - - e. Evaluate and approve or disapprove proposed standards and -specifications for use by the DoD. - - f. Evaluate and approve or disapprove requests for waivers -received from the Services and Defense Agencies. - - g. Test proposed standards and specifications. - - h. Coordinate a DoD RDTE effort to develop new protocols and -identify items having standardization potential. - - i. Provide a forum for exchange of technical information on -host-to-host and higher level data communications protocols. - - j. Monitor federal, national and international standards -developments to ensure that DoD requirements have appropriate influence -in standardization forums. - - k. Ensure that DoD standards are developed with due -consideration of emerging federal, national and international standards -as appropriate. - - 6. Organization. DCA will use resources from its headquarters -directorates and field offices to carry out the functions of the -Executive Agent delineated in paragraph 5 above. The principal -responsibilities will be assumed by the Systems Engineering Directorate -(DCA Code 1000) for technical functions, and by the Operations and -Readiness Directorate (DCA Code 500) for configuration control -functions. To provide for the full participation of the Military -Departments, Defense Agencies and other DoD components, two panels, a -Protocol Configuration Control Board (PCCB) and a Protocol Standards -Technical Panel (PSTP), will be established to advise and assist DCA in -performing the Executive Agent functions. A Protocol Standards Steering -Group (PSSG), also comprised of representatives of all interested DoD -components, will provide overall direction to the effort and will advise -the Director, DCA, on policy matters. - - - - The relationship among the several organizational elements assigned -functions in support of the Excecutive Agent are portrayed in Figure 1, -and their responsibilities and membership are defined as follows: - - a. Protocol Standards Steering Group (PSSG). The PSSG will -recommend DoD standards policy decisions to the Director, DCA, and will -provide on his behalf a focal point for overseeing the performance of -the Executive Agent functions. Because host-to-host and higher level -protocol technology is currently a subject of R&D, the PSSG will be -chaired initially by a representative of the DCA Deputy Director for -Systems Engineering. At an appropriate later time to be designated by -the Director, DCA, when protocol specification, development and -validation technology has matured, the chairmanship will pass to a -representative of the DCA Directorate for Operations and Readiness. The -members of the PSSG will be the chairpersons of the Protocol -Configuration Control Board and the Protocol Standards Technical Panel, -the Chief of the DCA Office of Interoperability and Standards, and -designated representatives from the Command and Control Technical -Center, the DCA Plans and Programs Directorate, the Command and Control -Systems Directorate, the Services, JINTACCS, TRI-TAC, the OJCS, and -Defense agencies. Ex-officio members will be provided by the Office of -the Chief Scientist, DCA, and the National Communications System (NCS). - - b. Systems Engineering Directorate. The DCA Deputy Director -for Systems Engineering (DCA Code 1000) is responsible for the technical -review, evaluation and testing of proposed standards and specifications. -The Systems Engineering Directorate will provide standards quidance and -systems engineering expertise on the technical aspects of protocols. -This Directorate will evaluate and monitor federal, national and -international standards developments to ensure compatibility between -external standards developments and evolving DoD protocol standards. -This Directorate will oversee a total DoD RDTE program in protocol -standardization, will define and manage a DCA RDTE effort in support of -Executive Agent funcitons and will provide appropriate test bed -facilities to support testing activities. - - c. Operations and Readiness Directorate. The DCA Deputy -Director for Operations and Readiness (DCA Code 5000 is responsible for -preparing standard protocol specifications in proper documentation -format, distributing these specifications, maintaining them, and -ensuring compliance with them through appropriate configuration -management control procedures. The Operations and Readiness directorate -will provide guidance on impacts of proposed new standards and changes -to existing standards on operational DCS elements. This Directorate -will also maintain a catalog of validated user programs implemented in -acordance with standard protocol specifications. This Directorate will -also provide network facilities to support testing efforts and manage -O&M contracts that provide support to the Executive Agent. - - d. Protocol Configuration Control Board (PCCB). The PCCB will -advise and assist the Operations and Readiness Directorate in -configuration control of standard DoD data network protocols, and will -serve as a forum for identifying and evaluating requirements for new -protocol standards or capabilities. The PCCB will be chaired by a -representative from the Operations and Readiness Directorate. - - - -Membership will include representatives of the Services, Defense -Agencies, TRI-TAC Office, JINTACCS and the following DCA components: -the Systems Engineering Directorate, the Plans and Programs Directorate, -the Command and Control Systems Directorate and the Command and Control -Technical Center. - - e. Protocol Standards Technical Panel (PSTP). The PSTP will -assist the DCA Systems Engineering Directorate in accomplishing the -technical functions of the Executive Agent. The panel will be chaired -by a representative of the Systems Engineering Directorate. Membership -will consist of representatives from the DCA Office of Interoperability -and Standards, the Operations and Readiness Directorate, the Plans and -programs Directorate, the Command and Control Systems Directoraite, the -Command and Control Technical Center, and technical experts selected by -the Services, JINTACCS, TRI-TAC and Defense Agencies. Ex-officio -members will be provided by the Office of the Chief Scientist and the -National Communications System (NCS), and will be invited from the -Intelligence Community (IC) Staff and from the National Bureau of -Standards (NBS). - - f. DCA Interoperability and Standards Office. The functions of -the DCA Interoperability and Standards Office stem from the DCA -charter, DoD Directive 5105.19, which directs DCA to develop standards -for the DCS. The functions are further elaborated in a 23 January 1969 -OASD memorandum which assigns DCA the responsibility for development of -long-haul communications standards for the DoD, and in DoD Directives -4120.3 and 4120.3M which prescribe policies and procedures for the -Defense Standardization and Specification Program (DSSP). In accordance -with these responsiblities, the DCA Office of Interoperability and -Standards, Code R110, will have the responsibility for reviewing -proposed protocol standards for DoD long-haul communications. These -processes will be accomplished in accordance with the procedures -established under the Defense Standardization and Specification Program -(DSSP) and will be based upon a clear delineation of valid requirements. -This office will closely monitor and evaluate the development of federal -and nongovernment standards in order to adopt such standards where -appropriate and to minimize the differences between such standards and -DoD standards to the greatest possible extent. - - g. Air Force Directorate of Computer Resources. A 17 December -1965 OASD memorandum assigned USAF the responsibility for developing -computer standards for the Department of Defense. In accordance with -these responsibilities, the Air Force Directorate of Computer Resources -(AF/ACDX) will have the responsibility for coordinating with the -Department of Defense computer standards community those draft data -computer equipment. This coordination will be accomplished in -accordance with the provisions of the Memorandum of Understanding -between HQ USAF/ACDX,the DCA (Code R110), and the US Army -(Communications, Research and Development Command), of 5 April 1974. - - 7. Required Resources. The DCA, as the Executive Agent, will -apply available facility resources to support the above functions but -will require additional dollars and personal resources. - - - - a. Facilities. - - (1) Test bed facilities required to support the above -functions are available within the Hybrid Simulation Facility (HSF) at -the Defense Communications Engineering Center -- e.g., the Experimental -Data Network (EDN). Enhancements which may be required to support the -functions of the Executive Agent will be handled under normal HSF -upgrade procedures. - - (2) Network facilities required to support the above -functions are available within ARPANET. - - b. Dollars. - - (1) RDTE funds required to support the above RDTE functions -can be made available within the DCS RDTE appropriation. Some -augmentation of funds in the out years may be necessary. - - (2) O&M funds which will be required for facilities and -contractor support will be identified and justified under normal -budgetary procedures. - - c. Personnel. - - (1) Personnel needed to staff the Steering Group, the PSTP -and the PCCB will be made available from the DCA, the Services and other -Defense Agencies on a part-time basis. - - (2) Additional personnel which will be required to perform -the detailed management and technical support within the DCA Systems -Engineering and Operations and Readiness Directorates remain to be -identified. - - - - - - EXECUTIVE AGENT FOR - STANDARDIZATION OF HOST-TO-HOST - DATA COMMUNICATIONS PROTOCOLS - - - +---------------+ - |EXECUTIVE AGENT| - | | - | DIRECTOR, DCA| - +---------------+ - | - | - | - | +====================+ - | |PROTOCOL STANDARDS | - |----------|STEERING GROUP | - | +====================+ - | - ------------------------------------------ - | | - +-------------------------+ +-------------------------+ - |NEW PROTOCOL STANDARDS | |PROTOCOL | - |REVIEW AND EVALUATION | |CONFIGURATION CONTROL | - | | | | - | DCA SYSTEM ENGINEERING| | DCA OPERATIONS AND | - | DIRECTORATE | | READINESS DIRECTORATE | - +-------------------------+ +-------------------------+ - | | - | | - | +=====================+ | +======================+ - | | PROTOCOL STANDARDS| | |PROTOCOL CONFIGURATION| - |---| TECHNICAL PANEL | |---|CONTROL BOARD | - +=====================+ +======================+ - -+--+ -| | DIRECT DCA RESPONSIBILITIES -+--+ - -+==+ -| | COORDINATION/REVIEW PANELS -+==+ - - FIGURE 1. - diff --git a/text/ien/ien153.txt b/text/ien/ien153.txt deleted file mode 100644 index 1b83a848..00000000 --- a/text/ien/ien153.txt +++ /dev/null @@ -1,766 +0,0 @@ - - - - - INDRA - Working - Paper - - - - - - INDRA Note 959 - TSIG 4.0 - IEN 153 - 29th July 1980 - - - - - - - - - - - Realization of the Yellow Book Transport Service Above TCP - - C. J. Bennett - - - - - - ABSTRACT: This note defines an - enhancement of the service provided - by the US DoD Standard Transmission - Control Protocol (TCP) sufficient - to meet the requirements of the UK - Network Independent Transport - Service (the Yellow Book). - - - - - - - - - - - - - - - - - - - - 1. Introduction - - This document defines a means of providing the Yellow - Book Transport Service [1] above the DARPA Internet - facilities, in particular TCP [2], so that this can - then be used to support other services such as endpoint - file transfer without requiring UK hosts to implement - the Internet family of protocols. It assumes - familiarity with both TCP and the Yellow Book. - - The basic approach taken is to enhance the TCP - service along the lines suggested for enhancing X25 in - Annex I of the Yellow Book, taking into account the - different services provided by TCP. In addition, the - note discusses how to integrate Yellow Book TCP so that - it can run alongside ordinary TCP - an issue the Yellow - Book ignores for Yellow Book X25. - - - 2. Deficiencies of TCP - - A comparison of the services provided by TCP and - those provided by the Yellow Book reveals that TCP is - unable to support directly, either in whole or in part, - the following Yellow Book features: - - (i) The RESET and ADDRESS primitives. - - (ii) The Yellow Book multiple-domain addressing - structure. The TCP address space constitutes a - single naming domain in Yellow Book terms. - Consequently, features involving addressing - - notably ACCEPT - are inadequately supported by - TCP. - - (iii) Much of the subsidiary information provided - with Yellow Book primitives. The fact that the - source address provided with certain actions - such as DISCONNECT is not provided is again a - limitation of the global TCP naming domain. The - Yellow Book 'Explanatory Text' parameters have - no corresponding feature in TCP. - - (iv) The closest equivalent to Yellow Book EXPEDITED - data - theoretically requiring a priority data - channel - is TCP URGENT data. However, TCP - URGENT data remains in sequence, and the URGENT - pointer only marks the end of the data. Its - beginning is not delimited. - - (v) The Yellow Book DISCONNECT is a full-duplex - close, whereas the TCP CLOSE is only half- - duplex. The TCP RESET is a unilateral close, - used in error conditions. Connection closure - - -Bennett 1 INDRA 959 - - - - - - provides particularly subtle problems. - - Hence in order to provide a Yellow Book service above - TCP an enhancement of TCP is necessary. The remainder - of this document discusses such an enhancement. - - - 3. Principles of the Enhancement - - The basic principles of the enhancement are as - follows: - - (i) Where a TCP function corresponds directly to a - Yellow Book function that TCP function is used - directly. - - (ii) Where the Yellow Book function requires more - information or action, the TCP function is - associated with a TCP Control Message in a - defined way. This message is a TCP letter of - defined format containing the information - required. - - (iii) Where there is no TCP function even remotely - corresponding to the required Yellow Book - function, a control message is defined which - may be used by the source and destination - processes if possible, and may be forwarded - into other transport domains more capable of - taking the appropriate action. - - - - 4. The Yellow Book TCP Enhancement - - 4.1 Distinguishing the Yellow Book TCP - - There are several ways a TCP connection providing a - Yellow Book service could be distinguished from a - normal TCP connection. These are as follows: - - (i) A single TCP port could be reserved for Yellow - Book service. Additional multiplexing could - then be provided using the lines proposed in - Annex III of the Yellow Book. - - (ii) A number of TCP ports could be reserved for the - different higher level services required, each - one of which would be defined as including the - enhancement defined within this document. - - - -Bennett 2 INDRA 959 - - Yellow Book above TCP - - - - (iii) A TCP option could be defined which when - associated with a SYN would denote the - 'enhanced TCP service' option - i.e. the data - stream would be governed by this document. - - The first of these possibilities leads to unnecessary - duplication of multiplexing facilities - perfectly - adequate multiplexing is already done within the TCP. - The second is potentially restrictive in that it limits - the growth of future services, and would probably - eventually lead to the informal adoption of the first - solution. This notes supports the third course, subject - to approval by the DARPA Internet Group. Proposed text - defining the TCP option, using the format of the TCP - specification, is as follows: - - Enhanced TCP Service - - +--------+ - |00000010| - +--------+ - Kind = 2 - - This option specifies that the TCP connection - is providing the data formats and command - messages necessary to support the enhanced - services offered by the UK standard Network - Independent Transport Service. This option - may only be specified in the header of a - packet which has the SYN bit set to 1. If - the receiving process is unable to support - this option, the connection should be aborted - via a RESET. - - The adoption of this option does not imply that a TCP - itself is required to understand the structures of this - document. It does allow such TCPs to be built. For TCPs - which do not support these structures directly, the - option is effectively a null option, whose presence - should be indicated to the receiving process. - - Failing the adoption of this facility, the first - choice (of a single reserved port) is supported here. - - - 4.2 Identification of TCP Command Messages - - Once the connection is identified as providing a - Yellow Book TCP service, the next problem is how to - identify TCP Command Messages within the data stream. - The X25 enhancement made use of the X25 Q-bit for this - - -Bennett 3 INDRA 959 - - Yellow Book above TCP - - - - purpose, but there is no corresponding function within - TCP. The choices are as follows: - - (i) Provision of a TCP Q-bit facility. This is - unlikely to occur, not least because the - example of XXX shows that it is liable to - misuse. - - (ii) Further definition of the 'Enhanced Service' - option, so that the occurrence of this option - with a letter specifies that the letter is a - Command Message. - - (iii) Structuring the data stream itself. - - Despite the marginally greater data efficiency of the - second choice, the last choice is supported here, as it - requires no modification of the TCP user interface. It - does, however, require the transmission of a data octet - which will require a fairly clever user interface if - extensive buffer copying is to be avoided. - - The structure proposed is as illustrated in Figure 1. - Each TCP letter is prefaced by a single octet, known as - the TYPE octet. This takes a value of 0 for data - letters and a value of 1 for command messages. All - other values are undefined. - - - - +------+----- - - - - - ------+ - | TYPE | LETTER BODY | - +------+----- - - - - - ------+ - | - | / - | | 0 = DATA - |-------< - | 1 = COMMAND - \ - - Figure 1: Letter Structure in Yellow Book TCP - - - - 4.3 Structure of TCP Command Messages - - A TCP Command Message is a Yellow Book TCP Letter of - TYPE 1. - - - - - -Bennett 4 INDRA 959 - - Yellow Book above TCP - - - - The first octet of the message defines the COMMAND - CODE of the message. These codes are defined in - subsequent sections, and have been chosen to correspond - to the command codes of the X25 Command Messages. - - Following the command code is a number of PARAMETERS. - The significance of these parameters is defined by - their position in the parameter sequence for each - command; thus no intermediate parameter may be omitted, - though it may have a null value. Parameters, however, - may be omitted if they and all succeeding parameters - have null values. - - Most parameters have a free field format. For this - reason each parameter is constructed of a number of - FRAGMENTS. These fragments consist of a header byte - and the body of the fragment, which may have a maximum - length of 127 octets. - - The fragment header is a single octet. The high-order - bit of this octet, if set to 1, declares that the - current fragment is the last fragment of the current - parameter. The remaining seven bits define the length - in octets of the current fragment. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Bennett 5 INDRA 959 - - Yellow Book above TCP - - - - This structure is summarised in Figure 2. - - +-------- - - - - - - - - --------+ - | COMMAND MESSAGE | - +-------- - - - - - - - - --------+ - / \ - / \ - / \ - +------+-------- - - + - - - - - + - - -------+ - | CODE | PARAM 1 | ....... | PARAM N | Command - +------+-------- - - + - - - - - + - - -------+ Structure - / \ - / \ - / \ - / \ - +-------- - - + - - - - - + - - --------+ - | FRAG 1 | ....... | FRAG K | Parameter - +-------- - - + - - - - - + - - --------+ Structure - | \ - | \ - | \ - | \ - +--------+------ - - - - - -------+ - | HEADER | BODY | Fragment Structure - +--------+------ - - - - - -------+ - | \ - | \ - | \ - +-+-+-+-+-+-+-+-+ - | | C O U N T | Header Structure - +-+-+-+-+-+-+-+-+ - | - |--- EOP Bit - - Figure 2: TCP Command Message Structure - - A parameter with a null value is represented by a - fragment header whose EOP bit is set to 1 and whose - count field is set to 0. The rules governing the syntax - of free-field parameters are the same as those defined - in section 2.7 of the Yellow Book, based on the use of - the IA5 character set. - - The sole difference between this structure and the - X25 Command Message structure is that the count field - in the fragment header is extended by one bit - this - bit is used for a specific purpose in X25 CONNECT - messages which does not arise with the TCP. This - doubles the maximum fragment size. Because of the - similarity of structure the same terminology has been - used, though the term 'fragment' is somewhat - - -Bennett 6 INDRA 959 - - Yellow Book above TCP - - - - unfortunate in the DARPA context through its specific - association with the Internet Datagram Protocol. - - - 4.4 Yellow Book Commands and TCP - - The following general remarks apply to the following - specification: - - (i) All codes are specified as decimal integers. - - (ii) All address fields include the appropriate TCP - address components, specified as - /++/, where - the bracketed fields are the character strings - of the octal representations of those TCP - fields, except where otherwise noted. Thus, - the NIFTP port (octal 10651) at ISIE (net 12, - host 1, logical host 0, IMP 64) will be denoted - by the string: - - /12+200064+10651/ - - - - 4.4.1 CONNECT - - The CONNECT command message is defined by the - following code and parameters: - - Code = 16 - Parameter 1: Called Address - Parameter 2: Calling Address - Parameter 3: Quality of Service - Parameter 4: Explanatory Text - - This message will be preceded by the usual TCP - three-way handshake. Where possible or appropriate, the - quality of service parameter will be used to select TCP - quality of service from the options defined in the TCP - specification. - - The CONNECT message will be the first message sent by - the calling party. It will be possible for the calling - party to initiate the transfer of data before the - arrival of an ACCEPT message. - - - 4.4.2 ACCEPT - - The ACCEPT command message is defined by the - - -Bennett 7 INDRA 959 - - Yellow Book above TCP - - - - following code and parameters: - - Code = 17 - Parameter 1: Recall Address - Parameter 2: Quality of Service - Parameter 3: Explanatory Text - - This message will be the first message sent by the - called party after the three-way handshake, unless the - call request was rejected (see DISCONNECT, below). If - the recall address and the quality of service do not - differ from those specified in the CONNECT, the ACCEPT - will normally consist of the code octet only. - - - 4.4.3 DISCONNECT - - The DISCONNECT command message is defined by the - following code and parameters: - - Code = 18 - Parameter 1: Reason - Parameter 2: Address of DISCONNECT Initiator - Parameter 3: Explanatory Text - - The reason parameter is a single octet giving a - machine-oriented encoding of the reason the DISCONNECT - was initiated. The defined reasons are listed in - Appendix B of the body of the Yellow Book. Parameter 2 - is included to cover the case where the DISCONNECT was - initiated by some intermediate gateway (where 'gateway' - is used in the Yellow Book sense). - - DISCONNECT will always cause the TCP to issue an - URGENT call. On receipt of a DISCONNECT message, no - further data may be sent and all data currently queued - for transmission should be flushed if possible. No - data will be passed across to the user after a - DISCONNECT has been issued. - - Beyond this, the exact DISCONNECT sequence used - varies depending on the state of the connection, as - follows: - - (i) If the DISCONNECT is being used to reject a - CONNECT request, the DISCONNECT message will be - followed by a TCP RESET. This will abort the - TCP connection, flushing all outstanding data. - No response is expected. The URGENT pointer - points to the TCP RESET. - - - -Bennett 8 INDRA 959 - - Yellow Book above TCP - - - - (ii) In the normal case of closing an open - connection, the DISCONNECT issued by the - initiator will be followed by a TCP FIN. The - remote party will respond with an optional - DISCONNECT message accompanied by a FINACK and - a FIN. The URGENT pointer points to the TCP - FIN. - - (iii) For error terminations, a DISCONNECT message - should be answered with a TCP RESET. The issuer - of the DISCONNECT will also issue a TCP RESET - after a timeout period, if a RESET has not - already been received. The URGENT pointer - points to the end of the DISCONNECT message. - - - - 4.4.4 DATA - - DATA is sent as a sequence of Yellow Book TCP data - letters, as defined above. - - - 4.4.5 PUSH - - The PUSH function is conveyed by use of the TCP EOL - function, pointing to the data octet at which the PUSH - was issued. - - - 4.4.6 EXPEDITED - - The EXPEDITED command message is defined by the - following code and parameter: - - Code = 21 - Parameter 1: EXPEDITED data - - EXPEDITED data is accompanied by a TCP URGENT pointer - pointing to the end of the letter. - - It should be noted that this will cause the receiver - of the URGENT to process all data up to the URGENT - pointer in 'fast' mode, whether EXPEDITED or not. As - noted above, TCP has no direct equivalent of a priority - data channel, but the mechanism described allows the - preservation of EXPEDITED data so that it may be passed - as such in subsequent networks. - - - - - -Bennett 9 INDRA 959 - - Yellow Book above TCP - - - - 4.4.7 RESET - - The RESET command message is defined by the following - code and parameters: - - Code = 19 - Parameter 1: Reason - Parameter 2: Address of RESET Initiator - Parameter 3: Explanatory Text - - TCP has no equivalent of the RESET function (a TCP - RESET is something else entirely). Thus the only TCP - action taken with a RESET message is to accompany it - with an URGENT pointer pointing to the end of the RESET - message. - - As with DISCONNECT, the defined RESET reasons are - those listed in Appendix B of the main portion of the - Yellow Book. The address parameter is again included to - cater for the case where a RESET was initiated in some - intermediate network. - - A RESET may only be issued if the connection is fully - open and there are no RESETs already outstanding. A - RESET message must always be replied to with another - RESET message, leaving the connection open, or with an - error DISCONNECT message followed by a TCP RESET, which - will abort the connection. All data and control - messages, with the exception of DISCONNECT, received - after a RESET has been issued and before a RESET reply - has been received, will be discarded without informing - the user. In the case of DISCONNECT, the connection - will be considered as having closed in an abnormal - state. If a DISCONNECT has been issued, a received - RESET will be ignored. - - Where possible the issue of a RESET should cause the - sender to flush its transmission buffers. - - - 4.4.8 ADDRESS - - The ADDRESS command message is defined by the - following code and parameters: - - Code = 20 - Parameter 1: Address - Parameter 2: Address Qualifier - - - - - -Bennett 10 INDRA 959 - - Yellow Book above TCP - - - - The ADDRESS qualifier is a single octet parameter - taking one of the values defined in the Yellow Book: - - 0: The message is passing towards the addressed - object. - - 1: The message is passing away from the addressed - object. - - 2: An addressing error has been detected. - - There is no associated TCP action taken with an - ADDRESS message. - - The receiver of an ADDRESS message will perform the - appropriate ADDRESS transformation as defined in the - Yellow Book. - - It is recommended that the ADDRESS function should - not be used. - - - 5. Conclusions - - One of the difficulties of writing a note such as - this is that it is addressed to several audiences with - different interests and not necessarily a great deal of - overlap either in aim or in background. - - The immediate audience is the team at University - College London who are involved in implementing a - 'Protocol Convertor' to make possible direct access - between hosts in Britain using the CCITT and UK - national standards and the hosts in the US based on the - DARPA Internet standards. For this audience, the - document hopefully defines an answer to what will soon - be a practical need, though it is a matter for - continuing debate to what extent the full enhancement - defined here will be implemented. - - Within Britain, the wider audience aimed at is - centred on the Transport Service Implementors' Group. - For this group, the aim of the document will be well - understood - it is defining a service enhancement - similar to the one that is already defined for X25 and - the ones they are defining for their local campus - networks. The aim is to provide a common transport - service for all these systems. They will be unfamiliar - with the detailed nature of the TCP itself, but this is - not particularly important. The major interest of the - document lies in the fact that the system being - - -Bennett 11 INDRA 959 - - Yellow Book above TCP - - - - enhanced is not an ordinary local network, but an - entire family of networks, and the resultant - enhancement will make possible direct authorised access - between UK and US hosts. I would also like to point out - the issue of separating Yellow Book enhancements from - ordinary uses of a network service. This issue is not - addressed by the X25 enhancement specification. - - The US Internetwork Group is likewise unfamiliar with - the concepts and details of the Yellow Book Transport - Service. For them, the document will be of interest in - that it shows how to coordinate two very different - approaches to internetworking. The Catenet, based on - TCP, can be described as a strongly connected - internetwork system, with common transport protocols - and a common address space. The UK Transport Service - takes an approach based on providing a common service - interface, which leads to a weakly connected system - with common service protocols and no common address - space. Within this approach, the entire Internet - system appears as a single component network, as - delimited by the TCP and its address space. - - Beyond this the document proposes a new TCP option. - For most existing TCPs this option will effectively be - a null option which must be signalled to the user at - call setup time. However, there is no reason why a TCP - could not be built which contained the features of this - note as optional enhancements selectable by choosing - the option. - - - 6. References - - [1] - PSS User Forum Study Group Three: "A Network - Independent Transport Service" SG3/CP(80)2. - February 1980. - - [2] - Information Sciences Institute: "Transmission - Control Protocol" IEN 112. August 1979. - - - - - - - - - - - - - -Bennett 12 INDRA 959 diff --git a/text/ien/ien154.txt b/text/ien/ien154.txt deleted file mode 100644 index 6d13ac1a..00000000 --- a/text/ien/ien154.txt +++ /dev/null @@ -1,765 +0,0 @@ - - - - INDRA - Working - Paper - - - - - - INDRA Note 965 - TSIG 4.1 - IEN 154 - 7th August 1980 - - - - - - - - - - - Realization of the Yellow Book Transport Service Above TCP - - C. J. Bennett - - - - - - ABSTRACT: This note defines an - enhancement of the service provided - by the US DoD Standard Transmission - Control Protocol (TCP) sufficient - to meet the requirements of the UK - Network Independent Transport - Service (the Yellow Book). This - note supersedes an earlier version - (INDRA Note 959, TSIG 4.0 and IEN - 153). - - - - - - Department of Computer Science - - University College London - - - - - - - - - - 1. Introduction - - This document defines a means of providing the Yellow - Book Transport Service [1] above the DARPA Internet - facilities, in particular TCP [2], so that this can - then be used to support other services such as endpoint - file transfer without requiring UK hosts to implement - the Internet family of protocols. It assumes - familiarity with both TCP and the Yellow Book. - - The basic approach taken is to enhance the TCP - service along the lines suggested for enhancing X25 in - Annex I of the Yellow Book, taking into account the - different services provided by TCP. In addition, the - note discusses how to integrate Yellow Book TCP so that - it can run alongside ordinary TCP - an issue the Yellow - Book ignores for Yellow Book X25. - - - 2. Deficiencies of TCP - - A comparison of the services provided by TCP and - those provided by the Yellow Book reveals that TCP is - unable to support directly, either in whole or in part, - the following Yellow Book features: - - (i) The RESET and ADDRESS primitives. - - (ii) The Yellow Book multiple-domain addressing - structure. The TCP address space constitutes a - single naming domain in Yellow Book terms. - Consequently, features involving addressing - - notably ACCEPT - are inadequately supported by - TCP. - - (iii) Much of the subsidiary information provided - with Yellow Book primitives. The fact that the - source address provided with certain actions - such as DISCONNECT is not provided is again a - limitation of the global TCP naming domain. The - Yellow Book 'Explanatory Text' parameters have - no corresponding feature in TCP. - - (iv) The closest equivalent to Yellow Book EXPEDITED - data - theoretically requiring a priority data - channel - is TCP URGENT data. However, TCP - URGENT data remains in sequence, and the URGENT - pointer only marks the end of the data. Its - beginning is not delimited. - - (v) The Yellow Book DISCONNECT is a full-duplex - close, whereas the TCP CLOSE is only half- - duplex. The TCP RESET is a unilateral close, - used in error conditions. Connection closure - - -Bennett 1 INDRA 965 - - Yellow Book above TCP - - - - provides particularly subtle problems. - - Hence in order to provide a Yellow Book service above - TCP an enhancement of TCP is necessary. The remainder - of this document discusses such an enhancement. - - - 3. Principles of the Enhancement - - The basic principles of the enhancement are as - follows: - - (i) Where a TCP function corresponds directly to a - Yellow Book function that TCP function is used - directly. - - (ii) Where the Yellow Book function requires more - information or action, the TCP function is - associated with a TCP Control Message in a - defined way. This message is a record of - defined format containing the information - required. - - (iii) Where there is no TCP function even remotely - corresponding to the required Yellow Book - function, a control message is defined which - may be used by the source and destination - processes if possible, and may be forwarded - into other transport domains more capable of - taking the appropriate action. - - - - 4. The Yellow Book TCP Enhancement - - 4.1 Distinguishing the Yellow Book TCP - - The services using the Yellow Book enhancement to the - TCP will be identifiable through the TCP socket number - used. These will be allocated for standard services as - required. - - - 4.2 Identification of Yellow Book TCP Messages - - The data stream is structured into records, which in - turn are substructured depending on the record type. - These records are independent of TCP letter indications - as the latter are purely push delimiters. - - - - -Bennett 2 INDRA 965 - - Yellow Book above TCP - - - - The record structure proposed is as illustrated in - Figure 1. Each record is prefaced by a single octet, - known as the TYPE octet. This takes a value of 0 for - data records and a value of 1 for command messages. All - other values are undefined. - - - - +------+----- - - - - - ------+ - | TYPE | RECORD BODY | - +------+----- - - - - - ------+ - | - | / - | | 0 = DATA - |-------< - | 1 = COMMAND - \ - - Figure 1: Letter Structure in Yellow Book TCP - - - - 4.3 Structure of TCP Data Messages - - A TCP Data Message is a Yellow Book TCP record of - TYPE 0. - - Each record consists of a number of SUBRECORDS. Each - subrecord consists of a header octet and a number of - data octets, up to a limit of 127 octets. - - The subrecord header is a single octet. The high- - order bit of this octet, if set to 1, declares that the - current subrecord is the last subrecord of the current - record. The remaining seven bits define the length in - octets of the current record. - - - - - - - - - - - - - - - - - -Bennett 3 INDRA 965 - - Yellow Book above TCP - - - - This structure is illustrated in Figure 2. - - +-------- - - - - - - - - --------+ - | DATA MESSAGE | - +-------- - - - - - - - - --------+ - / \ - / \ - / \ - / \ - +-------- - - + - - - - - - - + - - --------+ - | SUBRECORD 1 | ........... | SUBRECORD K | Data Record - +-------- - - + - - - - - - - + - - --------+ Structure - | \ - | \ - | \ - | \ - +--------+------ - - - - - -------+ - | HEADER | BODY | Subrecord Structure - +--------+------ - - - - - -------+ - | \ - | \ - | \ - +-+-+-+-+-+-+-+-+ - | | C O U N T | Header Structure - +-+-+-+-+-+-+-+-+ - | - |--- EOR Bit - - Figure 2: TCP Data Message Structure - - - 4.4 Structure of TCP Command Messages - - A TCP Command Message is a Yellow Book TCP record of - TYPE 1. - - The first octet of the message defines the COMMAND - CODE of the message. These codes are defined in - subsequent sections, and have been chosen to correspond - to the command codes of the X25 Command Messages. - - Following the command code is a number of PARAMETERS. - The significance of these parameters is defined by - their position in the parameter sequence for each - command, and the command message is completed only when - all parameters have been specified; thus no parameter - may be omitted, though it may have a null value. - - - - - - -Bennett 4 INDRA 965 - - Yellow Book above TCP - - - - Most parameters have a free field format. For this - reason each parameter is constructed of a number of - FRAGMENTS. These fragments consist of a header byte - and the body of the fragment, which may have a maximum - length of 127 octets. - - The fragment header is a single octet. The high-order - bit of this octet, if set to 1, declares that the - current fragment is the last fragment of the current - parameter. The remaining seven bits define the length - in octets of the current fragment. - - This structure is summarised in Figure 3. - - +-------- - - - - - - - - --------+ - | COMMAND MESSAGE | - +-------- - - - - - - - - --------+ - / \ - / \ - / \ - +------+-------- - - + - - - - - + - - -------+ - | CODE | PARAM 1 | ....... | PARAM N | Command - +------+-------- - - + - - - - - + - - -------+ Structure - / \ - / \ - / \ - / \ - +-------- - - + - - - - - + - - --------+ - | FRAG 1 | ....... | FRAG K | Parameter - +-------- - - + - - - - - + - - --------+ Structure - | \ - | \ - | \ - | \ - +--------+------ - - - - - -------+ - | HEADER | BODY | Fragment Structure - +--------+------ - - - - - -------+ - | \ - | \ - | \ - +-+-+-+-+-+-+-+-+ - | | C O U N T | Header Structure - +-+-+-+-+-+-+-+-+ - | - |--- EOP Bit - - Figure 2: TCP Command Message Structure - - - - - - -Bennett 5 INDRA 965 - - Yellow Book above TCP - - - - A parameter with a null value is represented by a - fragment header whose EOP bit is set to 1 and whose - count field is set to 0. The rules governing the syntax - of free-field parameters are the same as those defined - in section 2.7 of the Yellow Book, based on the use of - the IA5 character set, except where otherwise noted. - - The sole difference between this structure and the - X25 Command Message structure is that the count field - in the fragment header is extended by one bit - this - bit is used for a specific purpose in X25 CONNECT - messages which does not arise with the TCP. This - doubles the maximum fragment size. Because of the - similarity of structure the same terminology has been - used, though the term 'fragment' is somewhat - unfortunate in the DARPA context through its specific - association with the Internet Datagram Protocol. - - - 4.5 Yellow Book Commands and TCP - - The following general remarks apply to the following - specification: - - (i) All codes are specified as decimal integers. - - (ii) All address fields include the appropriate TCP - address components, specified as - /++/, where - the bracketed fields are the character strings - of the octal representations of those TCP - fields. Where a field consists of more than 8 - bits, it is further subdivided into eight bit - units separated by commas for representational - purposes. Thus, the NIFTP port (octal 10651) - at ISIE (net 12, host 1, logical host 0, IMP - 64) will be denoted by the string: - - /12+1,0,64+21,251/ - - (iii) All command messages must be accompanied by a - TCP end of letter at the end of the last - fragment of the last parameter. - - - - 4.5.1 CONNECT - - The CONNECT command message is defined by the - following code and parameters: - - - -Bennett 6 INDRA 965 - - Yellow Book above TCP - - - - Code = 16 - Parameter 1: Called Address - Parameter 2: Calling Address - Parameter 3: Quality of Service - Parameter 4: Explanatory Text - - This message will be preceded by the usual TCP - three-way handshake. Where possible or appropriate, the - quality of service parameter will be used to select TCP - quality of service from the options defined in the TCP - specification. - - The CONNECT message will be the first message sent by - the calling party. It will be possible for the calling - party to initiate the transfer of data before the - arrival of an ACCEPT message. - - - 4.5.2 ACCEPT - - The ACCEPT command message is defined by the - following code and parameters: - - Code = 17 - Parameter 1: Recall Address - Parameter 2: Quality of Service - Parameter 3: Explanatory Text - - This message will be the first message sent by the - called party after the three-way handshake, unless the - call request was rejected (see DISCONNECT, below). - - - 4.5.3 DISCONNECT - - The DISCONNECT command message is defined by the - following code and parameters: - - Code = 18 - Parameter 1: Reason - Parameter 2: Address of DISCONNECT Initiator - Parameter 3: Explanatory Text - - The reason parameter is a single octet giving a - machine-oriented encoding of the reason the DISCONNECT - was initiated. The defined reasons are listed in - Appendix B of the body of the Yellow Book. Parameter 2 - is included to cover the case where the DISCONNECT was - initiated by some intermediate gateway (where 'gateway' - is used in the Yellow Book sense). - - - -Bennett 7 INDRA 965 - - Yellow Book above TCP - - - - DISCONNECT will always cause the TCP to issue an - URGENT call. On receipt of a DISCONNECT message, no - further data may be sent and all data currently queued - for transmission should be flushed if possible. No - data will be passed across to the user after a - DISCONNECT has been issued. - - Beyond this, the exact DISCONNECT sequence used - varies depending on the state of the connection, as - follows: - - (i) If the DISCONNECT is being used to reject a - CONNECT request, the DISCONNECT message will be - followed by a TCP RESET. This will abort the - TCP connection, flushing all outstanding data. - No response is expected. The URGENT pointer - points to the TCP RESET. - - (ii) In the normal case of closing an open - connection, the DISCONNECT issued by the - initiator will be followed by a TCP FIN. The - remote party will respond with an optional - DISCONNECT message accompanied by a FINACK and - a FIN. The URGENT pointer points to the TCP - FIN. - - (iii) For error terminations, a DISCONNECT message - should be answered with a TCP RESET. The issuer - of the DISCONNECT will also issue a TCP RESET - after a timeout period, if a RESET has not - already been received. The URGENT pointer - points to the end of the DISCONNECT message. - - - - 4.5.4 DATA - - DATA is sent as a sequence of Yellow Book TCP data - messages, as defined above. - - - 4.5.5 PUSH - - The PUSH function is conveyed by use of the TCP EOL - function, pointing to the data octet at which the PUSH - was issued. - - Note that it is possible to collapse EOL indications, - effectively combining PUSHes. Strictly speaking, the - Yellow Book requires that a PUSH remains in sequence, - but this is not necessary to obtain the required - - -Bennett 8 INDRA 965 - - Yellow Book above TCP - - - - effect. In order to propagate the PUSH, it is necessary - that the TCP delivers EOL indications to the user - process. The circumstances under which this occurs are - currently unclear. It may be necessary in the future to - define a PUSH command message. - - - 4.5.6 EXPEDITED - - The EXPEDITED command message is defined by the - following code and parameter: - - Code = 21 - Parameter 1: EXPEDITED data - - EXPEDITED data is accompanied by a TCP URGENT pointer - pointing to the end of the message. There are no - restrictions on the encoding of EXPEDITED data messages - beyond the normal fragment structuring rules. - - It should be noted that this will cause the receiver - of the URGENT to process all data up to the URGENT - pointer in 'fast' mode, whether EXPEDITED or not. It - may or may not be possible to deliver the EXPEDITED - data to the user ahead of sequence. As noted above, TCP - has no direct equivalent of a priority data channel, - but the mechanism described at least allows the - preservation of EXPEDITED data so that it may be passed - as such in subsequent networks. - - - 4.5.7 RESET - - The RESET command message is defined by the following - code and parameters: - - Code = 19 - Parameter 1: Reason - Parameter 2: Address of RESET Initiator - Parameter 3: Explanatory Text - - TCP has no equivalent of the RESET function (a TCP - RESET is something else entirely). Thus the only TCP - action taken with a RESET message is to accompany it - with an URGENT pointer pointing to the end of the RESET - message. - - As with DISCONNECT, the defined RESET reasons are - those listed in Appendix B of the main portion of the - Yellow Book. The address parameter is again included to - cater for the case where a RESET was initiated in some - - -Bennett 9 INDRA 965 - - Yellow Book above TCP - - - - intermediate network. - - A RESET may only be issued if the connection is fully - open and there are no RESETs already outstanding. A - RESET message must always be replied to with another - RESET message, leaving the connection open, or with an - error DISCONNECT message followed by a TCP RESET, which - will abort the connection. All data and control - messages, with the exception of DISCONNECT, received - after a RESET has been issued and before a RESET reply - has been received, will be discarded without informing - the user. In the case of DISCONNECT, the connection - will be considered as having closed in an abnormal - state. If a DISCONNECT has been issued, a received - RESET will be ignored. - - Where possible the issue of a RESET should cause the - sender to flush its transmission buffers. - - - 4.5.8 ADDRESS - - The ADDRESS command message is defined by the - following code and parameters: - - Code = 20 - Parameter 1: Address - Parameter 2: Address Qualifier - - The ADDRESS qualifier is a single octet parameter - taking one of the values defined in the Yellow Book: - - 0: The message is passing towards the addressed - object. - - 1: The message is passing away from the addressed - object. - - 2: An addressing error has been detected. - - There is no associated TCP action taken with an - ADDRESS message. - - The receiver of an ADDRESS message will perform the - appropriate ADDRESS transformation as defined in the - Yellow Book. - - It is recommended that the ADDRESS function should - not be used. - - -Bennett 10 INDRA 965 - - Yellow Book above TCP - - - - 5. Conclusions - - One of the difficulties of writing a note such as - this is that it is addressed to several audiences with - different interests and not necessarily a great deal of - overlap either in aim or in background. - - The immediate audience is the team at University - College London who are involved in implementing a - 'Protocol Convertor' to make possible direct access - between hosts in Britain using the CCITT and UK - national standards and the hosts in the US based on the - DARPA Internet standards. For this audience, the - document hopefully defines an answer to what will soon - be a practical need, though it is a matter for - continuing debate to what extent the full enhancement - defined here will be implemented. - - Within Britain, the wider audience aimed at is - centred on the Transport Service Implementors' Group. - For this group, the aim of the document will be well - understood - it is defining a service enhancement - similar to the one that is already defined for X25 and - the ones they are defining for their local campus - networks. The aim is to provide a common transport - service for all these systems. They will be unfamiliar - with the detailed nature of the TCP itself, but this is - not particularly important. The major interest of the - document lies in the fact that the system being - enhanced is not an ordinary local network, but an - entire family of networks, and the resultant - enhancement will make possible direct authorised access - between UK and US hosts. I would also like to point out - the issue of separating Yellow Book enhancements from - ordinary uses of a network service. This issue is not - addressed by the X25 enhancement specification. - - Much of the US Internetwork Group is likewise - unfamiliar with the concepts and details of the Yellow - Book Transport Service. A summary of these concepts - will be made available in a later IEN. For them, the - document will be of interest in that it shows how to - coordinate two very different approaches to - internetworking. The Catenet, based on TCP, can be - described as a strongly connected internetwork system, - with common transport protocols and a common address - space. The UK Transport Service takes an approach based - on providing a common service interface, which leads to - a weakly connected system with common service protocols - and no common address space. Within this approach, the - entire Internet system appears as a single component - - -Bennett 11 INDRA 965 - - Yellow Book above TCP - - - - network, as delimited by the TCP and its address space. - - - 6. References - - [1] - PSS User Forum Study Group Three: "A Network - Independent Transport Service" SG3/CP(80)2. - February 1980. - - [2] - Information Sciences Institute: "Transmission - Control Protocol" IEN 129.January 1980. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Bennett 12 INDRA 965 diff --git a/text/ien/ien155.txt b/text/ien/ien155.txt deleted file mode 100644 index f90cbdd0..00000000 --- a/text/ien/ien155.txt +++ /dev/null @@ -1,531 +0,0 @@ - INDRA - Working - Paper - - - - - - INDRA Note 967 - IEN 155 - 12th August 1980 - - - - - - - - - - - The Yellow Book Transport Service: Principles and Status - - C. J. Bennett - - - - - - ABSTRACT: This note is a brief - summary of the principles of the - Yellow Book Transport Service. This - service is likely to be adopted as - the UK Standard for transport - service, and is being widely - promoted amongst international - standardisation bodies. - - - - - - Department of Computer Science - - University College London - - - - - - - - - - - - - - - - 1. Introduction - - A recent INDRA Note [1], also issued as an IEN, - defined an enhancement of TCP [2] to support the Yellow - Book transport service [3]. This note caused a - considerable furore in certain sections of the DARPA - Internet group, largely because there was very little - awareness of what the Yellow Book was, what its aims - were, what standing it had, and what relevance it had - to the DARPA Internet. The aim of this IEN is to remedy - this situation, by providing a brief summary of the - Yellow Book, and relating it to other international - standards activity. - - - 2. Status of the Yellow Book - - The term 'Yellow Book' is the popular name, derived - from the colour of the cover of 'A Network Independent - Transport Service'. This is one of a series of - documents defining a set of protocols and services - being defined within Britain by Study Group Three of - the UK Post Office PSS Users Forum and closely related - bodies such as the Department of Industry's Data - Communications Protocol Unit. The intent of these - documents is to define interim UK national standards - prior to the adoption of international standards by - bodies such as ISO and CCITT later in the 1980s, and by - so doing to influence the direction of these - international standards. - - The other documents in the series are [4-6]: the Blue - Book (defining a Network Independent File Transfer - Protocol), the Green Book (defining a Character - Terminal service), and the Red Book (defining a Network - Independent Job Transfer and Manipulation Protocol). - The remaining colours - orange indigo and violet - are - reserved. Although the protocols are clearly related, - they are, with the exception of the Green Book, - intended to be self contained. Thus it is quite - possible to implement the Blue Book FTP without - requiring the Yellow Book transport service, and such - an implementation has in fact been available on the - ARPANET above both NCP and TCP since mid 1979. - - The Yellow Book is in principle accepted as a UK - standard. It was first proposed in 1979, and the - current definition, of February 1980, is still a draft - text. However it is expected that something very - similar to the current Yellow Book will be adopted by - the PSS Users Forum later in 1980, and a Transport - Service Implementors group, consisting of - representatives from UK universities, manufacturers and - users, are currently bringing up implementations. - - -Bennett 1 INDRA 967 - - The Yellow Book - - - On the international front, the Yellow Book has been - circulated amongst groups concerned with transport - protocol standardisation within CCITT, ISO - (International Standards Organisation) and ECMA (the - European Computer Manufacturers' Association). It is - not the only proposal - ECMA in particular are evolving - one of their own [7] - and some of the concepts are not - totally in accord with the ideas of these - organisations. For instance, the major stumbling block - to its adoption as the transport layer within the ISO 7 - layer architecture [8] is its addressing concept, as - the ISO model assumes all addressing and routing - problems have been resolved by this stage (in my view a - weakness of the ISO model). It is however the most - completely specified proposal being circulated within - these forums, and should heavily influence the - international standards which are finally adopted. - - - 3. The Yellow Book - - 3.1 Aim of Yellow Book - - The purpose of the Yellow Book is defined by its - title - it aims to define a transport service, for - point to point synchronised sequenced fullduplex - communication, independently of the structure of - underlying communication media. In particular it aims - to provide endpoint communication across multiple - independent networks. - - The Yellow Book concept has three major aspects. - These are: the notion of multiple-domain addressing, - the notion of a network independent service, and the - notion of network dependent enhancements to support it. - In addition the document defines optional multiplexing - and simple data structuring facilities which will not - be discussed further here. - - - 3.2 Yellow Book Addressing - - The central picture of the internet world that the - Yellow Book propounds is that there exists a number of - mutually independent and noninteracting name spaces, or - domains, each one of which has some system for naming - all addressable objects in some fashion which is global - to that naming domain [9]. The finer structure of these - naming domains is not visible to the Yellow Book, and - for the purposes of discussion, a naming domain may be - thought of as a component network. - - - -Bennett 2 INDRA 967 - - The Yellow Book - - - - Two examples of such domains are the international - public data network system, whose naming domain is - defined by CCITT recommendation X121 [10], and the - DARPA Catenet [11], which is a multinetwork structure - with a superimposed global naming mechanism. Other may - be based on large commercial networks such as the SWIFT - or SITA systems. One of the main points of controversy - centres on whether this picture is realistic, or - whether instead some single system (people usually - think of X121) will eventually be used for all data - networks in the world. - - A gateway visible within the Yellow Book is a system - which sits between two or more such naming domains, and - understands the naming systems in all domains to which - it is connected. An object in one naming domain - addresses an object in another domain by specifying a - concatenation of addresses, each component being an - address within some domain. This effectively defines a - route to the destination through a series of - intermediate gateways. Thus if the Catenet is connected - to the international public system by some common host, - the TCP process could specify the address of a machine - in the international public system by a name of the - form: - - /// - - This address has two components, only one of which is - in active use at any given point. The gateway specified - within such a component can obtain the address of the - source within that naming domain, and on this basis a - reverse path can be built. Thus the TCP/X121 gateway - will construct the component - - // - - to which the destination will prepend the X121 address - of the gateway to complete the reverse path: - - /// - - The destination may optionally attach a local process - ID, to create what is known as a RECALL address, if a - function such as a logger is required. - - Technically the most controversial aspect of this - addressing procedure is its use for transferring third - party references. Clearly, two parties A and B will in - general have different routes to, and hence different - addresses for, a third party C. If A needs to pass B a - - -Bennett 3 INDRA 967 - - The Yellow Book - - - - reference to C, he could pass his address for C and B - could then use the path A.C to reach C. However, this - requires A to act as a gateway on the route to C, and - the route so obtained may cause data to pass through - intermediate gateways twice. Hence a procedure has been - defined whereby a third party reference is declared to - a gateway, which may then attempt to parse it. If it - can it modifies the reference accordingly, so that a - more optimal address is actually given to B. - - Although in principle this addressing procedure could - be used with every internet packet for an internet - datagram system, this would be prohibitively expensive - in terms of processing time. It is therefore envisaged - that the internet path is a set of concatenated virtual - calls. - - - 3.3 Yellow Book Service - - The Yellow Book defines a number of primitive - functions which the transport service supplies to the - user at the transport service interface, and cause the - generation of transport service messages. The service - definition provides the Yellow Book's network - independence, as it is possible to 'enhance' any - particular network interface to reach the level of - service of the interface. - - The basic primitives are as follows: - - (i) CONNECT: This initiates an endpoint virtual - circuit. The traversal of the CONNECT request - triggers the construction of the address of the - reverse path in the fashion described above. - - (ii) ACCEPT: This signals the successful setting up - of the source to destination path. Each - component network may have its own method for - setting up a call across it, but the - CONNECT/ACCEPT exchange verifies that the path - has been set up from end to end. - - (iii) DATA: Data messages are sent from end to end in - sequence without loss or duplication in the - normal virtual circuit fashion. - - (iv) EXPEDITED: Expedited data messages are priority - messages which jump ahead of the normal data - sequence where possible. - - - -Bennett 4 INDRA 967 - - The Yellow Book - - - - (v) PUSH: A push forces the transmission and - delivery of data currently buffered at - intermediate gateways or at the source or - destination. It corresponds to a TCP EOL. - - (vi) ADDRESS: This is a data message marked for - address parsing, so that it may be used for - transferring third party references as - described above. - - (vii) RESET: This flushes messages currently buffered - in the pipe, and must be answered by a RESET in - the reverse direction. It does not cause the - connection to break. - - (viii) DISCONNECT: The breaks the connection. Like - RESET, it causes buffered messages to be - flushed, and must be answered with a matching - DISCONNECT. - - - With each primitive there are associated a number of - qualifying attributes. Details of these may be found in - the Yellow Book. - - The relationships and permitted exchanges of the - various messages are defined in some detail in terms of - state diagrams for the two endpoints. These diagrams - give the semantics of the endpoint protocol for the - virtual connection. - - - 3.4 Network Enhancement - - The syntax of the Yellow Book messages, as distinct - from the semantics as defined above, is dependent on - the underlying network services available from each - component network. It may be possible to use network - services directly to achieve a Yellow Book function; - there may be services which can be used in association - with Yellow Book messages; there may be local - advantages to particular encodings. - - Thus to complete the definition of the Yellow Book - service definition, a syntax must defined for each - component network. The Yellow Book itself contains - annexes defining such enhancements for X25 and X21 - networks. An enhancements for ring networks using the - BSP protocol has been defined, and IEN 154 contains a - proposed definition of a TCP enhancement which could be - used to support the Yellow Book. In general, provided - - -Bennett 5 INDRA 967 - - The Yellow Book - - - - these enhancements support the Yellow Book semantics, - their specification is a matter local to the network - concerned. The gateway is expected to map the formats - of the messages as appropriate, and to trigger any - local supporting action which takes place. - - The network enhancements will normally be based on a - virtual call interface such as TCP or X25. This - considerably simplifies their definition. In cases - where such an interface is not available, the - enhancement will be considerably more complex to ensure - the proper sequencing and completeness of the data - transferred. - - - 3.5 Summary - - Compared to the DARPA Catenet an Internet based upon - the Yellow Book is a much more loosely coupled system. - There is no global address space imposed on the - Internet, and it is assumed that it will be possible to - make use of local network facilities. Thus local - network independence is retained to a far greater - degree than the Catenet achieves. The agreement that is - required is to implement a gateway between two - networks, but this is essentially a bilateral agreement - between the network administrations concerned and does - not require any global agreement as to gateway - structure. - - There is of course a price to be paid for this - independence. The system is essentially a virtual call - system, and therefore has none of the advantages (or - disadvantages!) to be obtained from the dynamic routing - and flexible recovery mechanisms possible within a - datagram system such as the Catenet. While the - addressing scheme is extremely flexible in terms of - responsiveness to topology changes and growth, it - throws the burden of knowledge of the internet topology - onto the higher level processes, and the third party - problem points out that it is easy to use it to - disadvantage. - - Although the Yellow Book proposals can be regarded as - fairly firm, the details of the service provided are - still subject to debate. Clearly it has been influenced - to some extent by X25 - particularly as to the RESET - and DISCONNECT functions (the CONNECT/ACCEPT is a - consequence of the addressing scheme). The major - technical debate centres on the ADDRESS primitives and - on whether multiplexing should be embodied as an - - -Bennett 6 INDRA 967 - - The Yellow Book - - - - essential Yellow Book service. - - Yellow Book and TCP are both attempting to provide a - transport service, but they are doing so in very - different environments. The difference is such that - there is no fundamental conflict in the two approaches. - Within the Yellow Book environment the DARPA Catenet is - a single subsystem. The TCP enhancement needed to - support a full Yellow Book may appear to be just - another user protocol to TCP. Higher level protocols - may have their transport service interfaces defined - semantically in such a way that they can be installed - above TCP, for 'local' Catenet operation, or above - Yellow Book, for more general operation, with equal - ease. - - - 4. References - - - [1] - C. J. Bennett. Realization of the Yellow Book - Transport Service Above TCP. IEN 153, July 1980. - (Revised and reissued as IEN 154 in August 1980) - - [2] - Information Sciences Institute: "Transmission - Control Protocol" IEN 129. January 1980. - - [3] - PSS User Forum Study Group Three: "A Network - Independent Transport Service" SG3/CP(80)2. - February 1980. - - [4] - High Level Protocol Group: "A Network Independent - File Transfer Protocol" HLP/CP(78)1. December - 1977. (Revision expected October 1980) - - [5] - PSS User Forum Study Group Three: "Character - Terminal Protocols on PSS." BIG/CP(79)11. October - 1979 (Under revision). - - [6] - Data Communication Protocol Unit Working Group: - "A Network Independent Job Transfer and - Manipulation Protocol." DCPU/JTMP(80)1. April - 1980. - - [7] - ECMA: "Standard ECMA Transport Protocol: Third - Draft." ECMA/TC24/80/17. January 1980. - - [8] - ISO/TC97/SC16: "Open Systems Interconnection". - ISO/TC97/SC16/N227 September 1979. - - [9] - P. F. Linington, V. Hathway: "The Addressing - - -Bennett 7 INDRA 967 - - The Yellow Book - - - - Requirements of a Transport Service." in - "Kommunikation in verteilten Systemen", - Springer-Verlag Press, Berlin, December 1979. - - [10] - CCITT: "International Numbering Plan for Public - Data Networks." Recommendation X121. Geneva 1978. - - [11] - Information Sciences Institute. "Internetwork - Datagram Protocol" IEN 128 January 1980. - - - Copies of references 3-6 may be obtained from: - - Dr P. F. Linington - Data Communication Protocols Unit - 8 Corn Exchange St - Cambridge - UNITED KINGDOM - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Bennett 8 INDRA 967 diff --git a/text/ien/ien156.txt b/text/ien/ien156.txt deleted file mode 100644 index e44e3a8b..00000000 --- a/text/ien/ien156.txt +++ /dev/null @@ -1,192 +0,0 @@ - - -IEN-156 Danny Cohen - U S C / I S I - September 7, 1980 - - - CONTROLLED ROUTING IN THE CATENET ENVIRONMENT - - - - - This note suggests the use of Strict Source Routing, - SSR, for gaining more control over the routes which - are used for messages to traverse the catenet. - - -One of the cornerstones of the IN-philosophy is that users are -completely separated from the low level transport issues such as -routing. - -While this is generally so, there are some real world situations where -it is desired that users be given a way to influence the routing. - -The ARPA Internet Protocol, IP, (see IEN-128), allows users to affect -the routing decisions by using the source routing (SR) mechanism. - -There are several reasons for users to influence the routing, rather -than trusting the catenet to figure out the best route. - -Some of these reasons are: - - [A] Help the catenet find a destination otherwise unknown. - - [B] Promoting the use of certain nets for reasons such as favorite - tariff. - - [C] Avoiding certain networks for reasons such as various - sensativities. - - -The current source routing option of IP, as described in IEN-128 -addresses mainly the first reason, [A], only. - -In order to provide help to the catenet in figuring a route it allows -the user to provide a sequence of addresses such that each of them is -locally unique (hence unambiguous and known) where it is supposed to be -interpreted. Obviously, this sequence must be continuous in the sense -that at each address the next address in the sequence, must be known. -The choice of route from each address to the next is left to the catenet -to determine. - 2 - -IP "assume"s that the given source route is a sequence of IP-addresses, -each in the 32-bit format of 8/24 for the "NET-ID" followed by the -"REST" which is typically a host address, including gateways. - -However, this does not necessarily have to be so. If the NET-ID filed -may include ESCAPE-CODES, as advocated in IEN-122, a much more powerful -scheme may evolve. - -The above scheme may be used in some clever way also for [B], the -promotion of the use of certain nets. However, it does not provide an -acceptable solution for [C], the avoidance of certain networks. - -We argue that [C] is not a well formed requirement, and a tighter -definition is required. - -The reason for introducing the requirement to avoid certain networks is -based on the classification of nets into friends and foes. If one knows -about all networks, one could classify them all. But if some are -unknown, they lack classification. In a controlled environment, where -foes should be avoided, the unclassified nets must be avoided, too. - -Hence, it is not enough to insist on avoiding the set of all known foe -nets. One must insist, instead, on using only nets which are positively -classified as friends. - -Therefore, [C] should be changed from "avoiding known foes" into "using -only well established friends". - -Since the source routing technique which was described above does not -tell the catenet how to route messages between the given addresses, it -is possible for messages to be routed through foes while traversing a -sequence of friendly addresses. - -Hence, the above source routing technique is not adequate at all for -[C], avoiding all foes. - -In order to address this problem to following solution is proposed: -Define a new variant of source routing, similar to the one described -above, with the additional requirements that messages cross network -boundaries only at the gateways specified in the source route. - -If there is no DIRECT connection, meaning through a single network -between two successive addresses in the source route, the message should -be discarded rather and no attempt is made to reach the next address via -another intermediate network (and gateways). - -If this new option of Strict Source Routing, SSR, is adopted then it is -up to the users to construct "safe" SSRs which include only networks and -gateways which are positively identified as trustworthy friends and are -known to have only gateways which are sure to handle the SSR properly. - -The source routing which is not SSR may be referred to as an LSR -(Loose SR). - 3 - -One may view the LSR as "piecewise end-to-end" routing at the IP -(gateways) level, as opposed to the SSR which is a kind of hop-by-hop -routing at the same level. - -The notion of a gateway being specified in a SSR has to be clarified. -Gateway per se do not have IP addresses, but their interfaces to local -networks do. Under SSR when the address Ni/Hj (Network/Host) is -specified for a gateway, it is required to reach it through the network -Ni even in the cases that other routes are available. - -Consider the following example: - - - +---------------------------------------------------+ - | A11 Network-Alpha A22 | - +---------------------------------------------------+ - | | - ************* ************* - * gateway-A * * gateway-B * - ************* ************* - | | -+---------------------------------------------------------------------+ -| H-1 B11 Network-Beta B22 H-2 | -+---------------------------------------------------------------------+ - | | -******* ******* -* H-1 * * H-2 * -******* ******* - - -If the SSR specifies the address (Alpha/A11) followed by the address -(Beta/B22) then the only accepatble route is to cross Gateway-A and then -to traverse the Network-Beta to B22. It is not acceptable for the -Gateway-A to recognize that (Beta/B22) is actually a gateway which is -also on Network-Alpha and therefore to route through this network to -(Alpha/A22) expecting the message to cross Gateway-B there. - -Hence, H-1 can force his message to get to H-2 through the Network-Alpha -by using the following SSR: (Beta/B11)-(Alpha/A22)-(Beta/H-2). If the -Network-Alpha breaks between A11 and A22 this SSR will result in a -communication failure, even though good routes through Network-Beta only -are avilable, and might have been automatically used if LSR was used. - - - 4 - -ON INTRANET SSR - -It is possible to carry the foes and friends classification further from -the nets (internet) level down into the hosts (intranet) level. One way -to achieve that effect is by "teaching" the half-gateways which are in -each host about SSRs. - -However, in this case the definition of DIRECT connection has to be -explicitly defined for each network. In the case of the ARPANET hosts -cannot have this notions which is at the IMPs level. In the case of -broadcast nets (such as satellite based, packets radios, Ethernet-like -or ring-like nets) no connection is "direct enough" even though it has -no intermediate agents along the way. - -It seems that SSRs are much more difficult to implement at the intranet -(host) level, and we may be on better and safer ground by implementing -SSRs at first only at the internet (nets and gateways) level. - -This obviously means that a net can be certified as a friendly net if, -and only if, all of its hosts and intermediate agents are individually -certified as such. For example, an Ethernet-like network is trustworthy -only if all of its hosts (gateways included) are. However, a network -such as the ARPANet can be trustworthy if all af its intermediate agents -(the IMPs) are, even though some of its hosts are not. - -The difficulty of implementing intranet SSR should be of no surprise -since the IN-philosophy is to hide the intranet technicalities from the -internet users. - - - - -CONCLUSION - -A Strict Source Routing could be used by a set of "certified friendly" -networks in order to avoid the transmission of certain datagrams through -all the networks which are parts of the catenet but are not as -trustworthy as others. diff --git a/text/ien/ien157.txt b/text/ien/ien157.txt deleted file mode 100644 index 937d76c2..00000000 --- a/text/ien/ien157.txt +++ /dev/null @@ -1,638 +0,0 @@ - - - - - - CMCC PERFORMANCE MEASUREMENT MESSAGE FORMATS - - - IEN 157 - - - - - - - - - - David Flood Page - - - - - - - Bolt, Beranek and Newman Inc. - - - 50 Moulton Street - - - Cambridge, Massachusetts 02238 - - - (617)491-1850 - - - - - - - - - - - - 26 September 1980 - - IEN 157 Bolt, Beranek and Newman Inc. - - - - - TABLE OF CONTENTS - - - - - Page - - - - 1. PREFACE 1 - - - - 2. INTRODUCTION 2 - - - - 3. MESSAGE FORMATS 3 - - 3.1 CPU Idle Time - report type 8 4 - 3.2 Packet delay - report type 9 4 - 3.3 Gateway to gateway delay - report type 10 5 - 3.4 Bit Throughput - report type 11 7 - 3.5 Queue occupancy - trap type 3 8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - i - - IEN 157 Bolt, Beranek and Newman Inc. - - - - - 1. PREFACE - - - This document describes the message formats for the - - performance measurement reports and traps which are to be added - - to the ARPA CMCC gateway monitoring messages. It is an addendum - - to the Gateway Monitoring Protocol described in IEN 131, which - - should be consulted first. Processing for the new reports and - - traps will be added to the CMCC, and a document describing their - - use will be issued later. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - Bolt, Beranek and Newman Inc. IEN 157 - - - - - 2. INTRODUCTION - - - The message types described here will be used in two ways: - - either experimentally, in conjunction with message generators - - used to load the Catenet until something breaks, or regularly as - - are the other report types, to show how the Catenet is behaving - - at any time. - - - In evaluating Catenet performance, message generators will - - be required to load the gateways with traffic until packets are - - dropped, the delays start to rise steeply, or the throughput - - saturates. These conditions indicate that the limit of some - - resource has been reached. These message generators, whose - - implementation is yet to be defined, can be located in either the - - gateways, the CMCC program, or in other internet hosts. When - - both the CMCC program and the gateways implement the new message - - types, and message generators are defined and implemented, the - - CMCC will be able to find out how much traffic the gateways were - - processing, where the bottlenecks lie in the Catenet, and what - - the accompanying delays were. - - - All the measures described here are cumulative from the time - - the gateway started. The CMCC will, by keeping suitable - - histories of the measures, be able to show shorter term values as - - required. - - - - - - - 2 - - IEN 157 Bolt, Beranek and Newman Inc. - - - - - 3. MESSAGE FORMATS - - - All gateway monitoring messages consist of an Internet - - header followed by a monitoring header, and then the message - - data. A monitoring header, as described in IEN 131, has the - - following format: - - - Bits Contents - 0 0 - Report or trap. - 1 - Negotiation message. - - 1 0 - Report. - 1 - Trap. - - 2-3 For a negotiation message: - 0 - DO - 1 - DONT - 2 - WILL - 3 - WONT - For a report or trap: zero. - - 4-7 Reserved. - - 8-15 Report or trap type. - - 16-31 For a negotiation message: report identifier. - For a regular report: Sequence number. - For a trap: data depending on trap type, i.e. - this field is not part of the header - for a trap message. - - - The five new message types are: - - - o CPU idle time (which gives a measure of how heavily the - gateway is loaded). - - o Packet delay across a gateway. - - o Gateway to gateway delay (round trip time). - - o Throughput (bits). - - - - - 3 - - Bolt, Beranek and Newman Inc. IEN 157 - - - - - o Queue traps (which signal when the occupancy of a queue - goes above or below a certain threshold value). - - - - 3.1 CPU Idle Time - report type 8 - - - CPU idle time gives an idea of the amount of time the - - gateway machine is not doing useful processing. The purpose of - - this is to find out when the CPU becomes saturated, which will be - - the case if the proportion of idle time becomes very small. The - - report consists of two 32-bit counts following the monitoring - - header: - - - 1. The amount of CPU idle time since the gateway started, - in milliseconds. - - 2. The time since the gateway started, in seconds. - - - - 3.2 Packet delay - report type 9 - - - Packet delay refers to the length of time a packet stays in - - the gateway. The measurement of this delay and of gateway to - - gateway delay are related: measurement of one begins where the - - other ends. The model used here assumes that gateway processing - - takes place in three parts: network I/O, queuing and routing. - - Implementation considerations will affect just where the packets - - can be timestamped on their way through the gateway, so that for - - some gateways it may be possible to stamp a packet at the network - - I/O level, while for others it may not be possible until the - - - - - 4 - - IEN 157 Bolt, Beranek and Newman Inc. - - - - - packet enters the routing processing. This specification - - therefore does not define where the boundary should lie, but it - - is important that together the measures account for all the delay - - that a packet will experience as far as the gateway is concerned. - - It is recommended that the packet delay be made to refer to as - - large a fraction as possible of the time the packet spends in the - - gateway. The report consists of two 32-bit counts and two 16-bit - - counts. All delays are in milliseconds. The format is: - - - 1. The total number of packets processed since the gateway - started (32 bits). - - 2. The total delay for all packets processed (32 bits). - - 3. The minimum delay experienced by a single packet (16 - bits). - - 4. The maximum delay experienced by a single packet (16 - bits). - - - - 3.3 Gateway to gateway delay - report type 10 - - - The measurement of this delay and of packet delay are - - related: see the first paragraph in the previous section. - - - This report could be something of an interim measure, - - provided the gateways obtain radio synchronizing equipment for - - measuring the one-way delay directly. However, currently only - - the round trip delay can be determined. The report assumes that - - gateways will use some kind of tagged echo packets to find the - - - - - - 5 - - Bolt, Beranek and Newman Inc. IEN 157 - - - - - round trip delay to each of their neighbors, the tagging being - - used to identify specific packets. - - - The report format is a table ordered by internet address - - considered as a 32-bit unsigned integer. Each table entry - - consists of an internet address followed by two 32-bit counts and - - two 16-bit counts. The internet address is the neighbor address - - for which this delay applies. Of the 32-bit counts, the first is - - the cumulative total of the echo packets returned by the neighbor - - since this gateway started, and the second is the total delay - - experienced by those returned packets, in milliseconds. The two - - 16-bit counts are the minimum and maximum delays, in - - milliseconds, for a single packet sent to the neighbor. There - - will be one table entry for each neighbor address, so that if a - - gateway is a neighbor on two networks then it will have two table - - entries. There will be an entry for each such address for each - - neighbor that replies to the echoes, whether or not that neighbor - - is a routing gateway. The table size may grow as new neighbors - - come up while a gateway is running, but it may not shrink; the - - entry for a gateway that stops replying will simply remain - - unchanged. - - - - - - - - - - - - - 6 - - IEN 157 Bolt, Beranek and Newman Inc. - - - - - The report format is therefore: - - Internet address of first neighbor, - lowest network number - Total of echo packets returned by this neighbor - (32 bits) - Total delay experienced (32 bits) - Minimum delay to this neighbor (16 bits) - Maximum delay to this neighbor (16 bits) - . - . - Internet address of last neighbor, - highest network number - Total echo packets returned (32 bits) - Total delay (32 bits) - Minimum delay for this neighbor (16 bits) - Maximum delay for this neighbor (16 bits) - - - - 3.4 Bit Throughput - report type 11 - - - In contrast with the packet throughput report type, which - - has its emphasis on the number of packets a gateway can process, - - the bit throughput report type focuses on how fast a gateway's - - network connections can accept or deliver data. The report is a - - table of pairs of 32-bit counts ordered by interface; the first - - count in each pair is the cumulative total of bits processed - - coming in at that interface, and the second is the output count. - - Interfaces are ordered as in the gateway description message, - - report type 0. There are two extra 32-bit counts at the end of - - the message: the first is the total of bits dropped, and the - - second is the time since the gateway started, in seconds. The - - counts for the interfaces include all traffic at that interface, - - including control traffic and messages originating at the - - - - - 7 - - Bolt, Beranek and Newman Inc. IEN 157 - - - - - gateway. - - - The format of the message is therefore: - - Input count for first interface - Output count for first interface - . - . - Input count for nth interface - Output count for nth interface - Dropped count - Time since gateway up - - - - 3.5 Queue occupancy - trap type 3 - - - This is a trap message which is sent by the gateway whenever - - a queue length exceeds a threshold percentage specified in the - - trap request message, or when the occupancy falls below that - - threshold after having been above it for some time. If a queue - - is loaded such that the threshold occupancy is continually being - - passed in each direction, a large number of these traps would be - - generated in a short time. To avoid this, there should be some - - minimum time interval between successive trap messages. It is - - left up to the individual gateway implementors to decide what - - this time interval should be; experience with using this trap - - type will probably suggest a reasonable value. - - - Note that this replaces the earlier Queue full trap - - described in IEN 131. I believe that a percentage occupancy trap - - is more useful because if a queue becomes full, the gateway is - - - - - - 8 - - IEN 157 Bolt, Beranek and Newman Inc. - - - - - probably already dropping packets and the message is not useful - - as an early warning. In any case, a queue full trap is just a - - 100% percentage occupancy trap. - - - The DO TRAP message for this trap type requires an extra - - piece of information: the percentage occupancy of the queue which - - is to trigger the trap. This is expressed as an integer in a - - single byte following the report id field in the DO TRAP message. - - A gateway should only use one value of this threshold at a time, - - so that a second DO TRAP message will supersede the previous one - - if the threshold value is different. - - - The DO TRAP message for this trap type has the format: - - - Bits Contents - 0 1 - 1 1 - 2-3 0 - 4-7 0 - 8-15 3 - 16-31 report identifier - 32-39 occupancy threshold - - - The trap message has the following format: - - - Bits Contents - - 0-7 Interface number of Queue. - 8-11 Input(0) or output(1) queue. - 12-15 Above(0) or below(1) the specified occupancy. - 16-23 The occupancy percentage used as a trigger. - - - - - - - - - 9 - diff --git a/text/ien/ien158.txt b/text/ien/ien158.txt deleted file mode 100644 index 8b993ced..00000000 --- a/text/ien/ien158.txt +++ /dev/null @@ -1,233 +0,0 @@ - - - - - -IEN 158 Jack Haverty - Bolt Beranek and Newman - 1 October 1980 - - - - XNET Formats for Internet Protocol Version 4 - Jack Haverty - Bolt Beranek and Newman Inc. - October 1,1980 - - - This IEN is intended to capture in print the formats used - -currently in the version 4 XNET protocol; most of the data is - -courtesy of Ray Tomlinson. - - - Version 4 XNET is identical with version 2.5 XNET with the - -exceptions listed below. The version 2.5 format is described in - -RFC 643. It should be noted that the manner in which the - -protocol is used by a user program (such as the PDP10 XNET - -program), and by the various target-machine XNET servers, is not - -defined herein. In particular there are several problems and - -heuristics in dealing with the operation of the protocol in the - -internet environment, where individual packets may be duplicated, - -lost, and reordered. - - - Changes from the version 2 formats include the following: - -1) XNET header and data is embedded in a IN V4 packet instead of - a V2.5 packet. - -2) Packet format changed to add Port, Sequence number, and - Checksum fields. - -3) Change in asynchronous reply codes. - -4) Addition of ACK bit to opcode field. - -5) Positive acknowledgement of all messages. - - - - - - -IEN 158 Jack Haverty - Bolt Beranek and Newman - 1 October 1980 - - - - - -Packet Format - -+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -! Port ! -+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -! LSB Sequence MSB ! -+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -! Checksum ! -+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -! PID !CNT!ACK! Opcode ! -+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -! LSB Argument 1 MSB ! -+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -! LSB Argument 2 MSB ! -+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -! ! -! Data ! -! ! -+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ - -The IN protocol is set to the XNET protocol number (17 octal). - -Host to target opcodes - -NOP 0 No operation. -DEBUG 1 Start debugging a process or address space. -ENDBUG 2 End debugging a process or address space. -HALT 3 Halt the process. -DPOSIT 4 Deposit in memory. -RESUME 5 Resume execution of a process. -EXAM 6 Examine memory. -DSV 7 Deposit state vector (r0-r5,sp,pc,ps). -SETBPT 10 Set breakpoint. -REMBPT 11 Remove breakpoint. -ONESTP 12 Single step process (using trace trap). -PROCD 13 Proceed from breakpoint. -CREAP 14 Create a new process (or address space). -DSTROY 15 Destroy (delete) a process or address space. -XIOREP 16 Reply to XIO output (not used anymore). -XINREP 17 Reply to XIO input. -DEFALL 20 Define and allocate memory to an address space. -SAP 21 Start all processes. -SAVDSK 22 Save on disk. -GETDSK 23 Get from disk. -ENTRST 24 Enter address space into restart table. - - - - - - -IEN 158 Jack Haverty - Bolt Beranek and Newman - 1 October 1980 - - - - -Opcodes from target to host machine. - -HALTED 77 Process halted (FREEP with arguments of 0). -TRAPPED 76 Process trapped due to error. -TTRAP 75 Trace trap. -BPT 74 Breakpoint hit. -XIOIN 73 XIO input request. -XIOOUT 72 XIO output request. - - -Checksum - - - The checksum is the same as that for the IN header; ones - -complement of ones complement sum of words in the packet from - -Port field to last data word inclusive. In case of an odd number - -of data bytes, an additional byte of zeroes is assumed for - -checksum purposes. - - -Port number - - - The port number is a unique number relative to the host - -machine which appears in every packet for a particular debugging - -session. It is suggested that this number be derived from the - -time of day so that each session will be unique over a long - -period of time. - - -Sequence number - - - The first packet of a session (first use of a particular - -port number) is numbered 0. Subsequent packets increment by 1 - -modulo 2**16. Packets initiated by the target machine (opcodes - - - - - - -IEN 158 Jack Haverty - Bolt Beranek and Newman - 1 October 1980 - - - -72-77) are also numbered starting from 0. The target machine is - -allowed to execute packets out of order but must never execute a - -packet twice unless the effect is harmless. For example, an - -examine packet should be re-executed so that the data may be - -returned to the sender. Deposit or resume should not be re- - -executed. The host machine is responsible for correct ordering - -of critical functions. For example, it must not send a RESUME - -command until all prior deposits have been acknowledged. - - -Acknowledgements - - - Each packet must be acknowledged by the receiver. An - -acknowledgement consists of the original header plus any - -requested data (e.g. EXAM) with the ACK bit set. - -Acknowledgements are not cumulative; an acknowledgement - -acknowledges only the one packet with the matching sequence - -number. If the target debugger is incapable of performing the - -requested function, it should set the CNT (can't) bit instead of - -the ACK bit. Both bits may be set meaning that the function is - -available but the data required is no longer available. This - -might be the result of a duplicate packet. - - - - - - - - diff --git a/text/ien/ien159.txt b/text/ien/ien159.txt deleted file mode 100644 index a08b56ad..00000000 --- a/text/ien/ien159.txt +++ /dev/null @@ -1,50 +0,0 @@ -Notes on the "Worm" programs -- -some early experience with a distributed computation - -by John F. Shoch and Jon A. Hupp - -SSL-80-3 and IEN 159 May 1980, revised September 1980 - -(c) Xerox Corporation 1980 - -[Note: This file, IEN-159.TXT, contains only the abstract from the -paper. For a complete version of the paper, please send a message -to Shoch@Parc, or send a note to: - SSL Publications Coordinator - Xerox Parc - 3333 Coyote Hill Road - Palo Alto, California 94304. -Alternatively, people who can print files in "Press" format may -directly retrieve [Maxc]IEN-159.press.] - - - - -Abstract: The "Worm" programs were an experiment in the -development of distributed computations -- programs that would -span machine boundaries, and also replicate themselves in idle -machines. A "worm" is composed of multiple "segments" each -running on a different machine. The underlying worm maintenance -mechanisms were responsible for maintaining the worm -- finding -free machines when needed, and replicating the program for each -additional segment. The worm control procedures require some -careful design, but this mechanism made each worm a very dynamic -and robust program. - -These techniques were then used to support several real -applications, ranging from a simple multi-machine test program to a -more sophisticated real-time animation system harnessing multiple -machines. - -The worm programs have helped to demonstrate that the tools are at -hand for experimenting with distributed computations. - -CR Categories: 3.81. - -Key words and phrases: Distributed computations, distributed -computing, multi-machine programs, Ethernet local network, Pup -internetwork architecture. - -This paper is to be presented at the Workshop on Fundamental -Issues in Distributed Computing, ACM/SIGOPS and ACM/SIGPLAN, -Pala Mesa Resort, December 1980. diff --git a/text/ien/ien16.txt b/text/ien/ien16.txt deleted file mode 100644 index 57f31498..00000000 --- a/text/ien/ien16.txt +++ /dev/null @@ -1,294 +0,0 @@ - - - - -IEN # 16 -Network Working Group Jon Postel -Request for Comments: 730 USC-ISI -NIC: 40400 20 May 1977 - -Section: 2.2.4.2 Extensible Field Addressing - - - -Introduction - -This memo discusses the need for and advantages of the expression of -addresses in a network environment as a set of fields. The suggestion -is that as the network grows the address can be extended by three -techniques: adding fields on the left, adding fields on the right, and -increasing the size of individual fields. Carl Sunshine has described -this type of addressing in a paper on source routing [1]. - -Motivation - -Change in the Host-IMP Interface - -The revised Host-IMP interface provides for a larger address space for -hosts and IMPs [2]. The old inteface allowed for a 2 bit host field and -a 6 bit IMP field. The new interface allows a 8 bit host field and a 16 -bit IMP field. In using the old interface it was common practice to -treat the two fields as a single eight bit quantity. When it was -necessary to refer to a host by number a decimal number was often used. -For example host 1 on IMP 1 was called host 65. Doug Wells has pointed -out some of problems associated with attempting to continue such useage -as the new interface comes into use [3]. If a per field notation had -been used no problems would arise. - -Some examples of old and new host numbers are: - - Host Name Host IMP old # new # - -------------------------------------- - SRI-ARC 0 2 2 2 - UCLA-CCN 1 1 65 65537 - ISIA 1 22 86 65558 - ARPA-TIP 2 28 156 131100 - BBNA 3 5 197 196613 - -Multinetwork Systems - -The prospect of interconnections of networks to form a complex -multinetwork system poses additional addressing problems. The new -Host-IMP interface specification has reserved fields in the leader to - - - - - -Postel [page 1] - -RFC 730 20 May 77 -Extensible Field Addressing - - - -carry network addresses [2]. There is experimental work in progress on -interconnecting networks [4, 5, 6]. We should be prepared for these -extensions to the address space. - -The addressing scheme should be expandable to increase in scope when -interconnections are made between complex systems. - -Multiprocessor Hosts - -There may be configurations of hardware that could be interfaced to a -network as a single host that in fact contain multiple processors. -Tasks could be associated with processors such that it is desirable to -dispatch network messages associated with certain sockets or message-ids -to certain processors. For example it might be desirable to service all -Telnet use from one processor and all FTP use from a different -processor. - -The addressing scheme should be expandable to explicitly address the -fine structure within a host when that is desirable. - -Some examples where such fine structure addressing would have been -useful in the ARPANET are: - - At ISI, we have the capability of emulating computers using the PRIM - system [7]. For many applications it is desirable to add the emulated - host to the network. Since the emulation is carried out under control - of a program operating under Tenex, we have a host within a host. - Extensible addressing of hosts would provide the necessary handle. - - SCRL once had a PDP-11 connected by VDH to an IMP at UCSB. It became - necessary to add a second PDP-11 to the network. The two PDP-11s were - already physically connected and it would have been a simple matter to - have the first serve as a multiplexor for both. However, because of - the limitations in the network addressing structure, there was no way - to identify the two hosts to other sites on the network. A new IMP - had to be installed! - - In many other cases, it is desirable to have two hosts share the same - front end to the network. With the current limitation, one IMP port - must be consumed for each host. - - - - - - - - - - - - -Postel [page 2] - -RFC 730 20 May 77 -Extensible Field Addressing - - - -Proposal - -The necessary solution to the problem posed by the change in the -Host-IMP inteface is to always represent the address by fields. This -solution provides for a natural growth into an internetwork environment, -and allows explicit addressing of the fine structure within a host if -that is desirable. - -The fields should be written in a natural way, and i believe that means -that the most general field should come first with additional fields -specifying more and more details of the address. In the current case -this would lead to the following fields: - -Network / IMP / Host / Message-Identifier - -A problem with simple field addressing is the desire to specify only the -fields that are necessary given the local context. A program -interpreting the address is then unsure what the first field represents. -Some clues are needed in the address specification for correct parsing -to be possible. Dave Crocker has described a syntax for a similar -problem in network access of data [8]. - -Specific Sugestion - -Specifically i suggest that we adopt a field based extensible address -scheme where each field is separated from its neighbors by a delimiter -character and each field has a name. When an address is specified the -name of the most general field must also be indicated. - - Definitions: - -
::= ":" - - ::= "NET" | "IMP" | "HOST" | "MESSAGE-ID" - - ::= | "/" - - ::= a decimal number - - Examples: - - NET:1/3/5/7 names message-id 7 at host 5 on imp 3 in network 1. - - HOST:6 names host 6 on whatever imp this message originates on. - - - - - - - - -Postel [page 3] - -RFC 730 20 May 77 -Extensible Field Addressing - - - -One might ask: What is all the fuss about, isn't this a non-problem?, -The answer is: Almost. There are very few places where any real -difficulties arise, but we have to change the way we think about host -addresses. The places where there is a problem are typically little -used, except one. The place where humans will see a difficulty is in -the TIP "open" command [9], and to a lesser extent the user Telnet and -user FTP "connect" commands. Other places are in the MAIL netaddress -field, the FTP "sock" command [10], the Telnet reconnection option [11], -and in the NIC maintained list of official host names [12]. - -Conclusion - -The suggestion is that we adopt field based extensible addressing to -provide for growth in three ways: - -(1) growth of the number of hosts and IMPs by allowing these fields to -grow in size independently of each other; - -(2) growth in scope by the addition of fields on the left to provide -for multinetwork systems; - -(3) growth in fine structure by addition of fields on the right for the -implementation of hosts as mininetworks. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [page 4] - -RFC 730 20 May 77 -Extensible Field Addressing - - - -References - -[1] Sunshine, C. "Source Routing and Computer Networks," Computer - Communication Review, Vol. 7, Number 1, ACM Special Interest - Group on Communications (SIGCOMM), January 1977. Also - circulated as INWG General Note number 133. - -[2] BBN, "The Interconnection of a Host and an IMP," Report 1822, - Bolt Beranek and Newman, Revised January 1976. - -[3] Wells, D., "Impact of New IMP Leaders on Higher-level - Protocols," ARPA Network Message - [MIT-Multics]1.2.BBBJGbHZPXdDjl, MIT, 19 May 1977. - -[4] Beeler, et.al. "Gateway Design for a Computer Network - Interconnection," PRTN 156, February 1976. - -[5] Cerf, V., Y. Dalal, and C. Sunshine. "Specification of an - Internet Transmission Control Program," INWG General 72, RFC - 675, Revised December 1974. - -[6] Cerf, V. "Specification of TCP version 2," March 1977. - -[7] Britt, B. et.al. "PRIM System: Overview," ISI/RR-77-58, - Information Sciences Institute, University of Southern - California, March 1977. - -[8] Crocker, D., "Network Standard Data Specification Syntax," RFC - 645, Network Information Center Catalog Number 30899, 27 June - 1974. - -[9] Malman, J., "User's Guide to the Terminal IMP," Report 2138, - Bolt Beranek and Newman, Network Information Center Catalog - Number 10916, Revised March 1976. - -[10] Neigus, N., "File Transfer Protocol," RFC 542, Network - Information Center Catalog Number 17759, 12 August 1973. - Contained in "ARPANET Protocol Handbook," Network Information - Center Catalog Number 7104, Revised 1 April 1976. - -[11] Thomas, R., "Telnet Reconnection Option," Network Information - Center Catalog Number 15391, August 1973. Contained in "ARPANET - Protocol Handbook," Network Information Center Catalog Number - 7104, Revised 1 April 1976. - -[12] [Offfice-1]HOSTS.TXT - - - - - - -Postel [page 5] \ No newline at end of file diff --git a/text/ien/ien160.txt b/text/ien/ien160.txt deleted file mode 100644 index c5ee134c..00000000 --- a/text/ien/ien160.txt +++ /dev/null @@ -1,1449 +0,0 @@ - - - J. Postel -IEN 160 ISI - 7 November 1980 - - - - Internet Meeting Notes -- 7-8-9 October 1980 - - - - -I. INTRODUCTION - - The meeting was held at the Royal Signals and Radar Establishment in - Malvern, England. John Laws was the host. Alan Fox gave a welcome - to and explanation of RSRE. John Laws described the arrangements. - -II. OBJECTIVES - - Vint Cerf described the objectives of the meeting. The main points - were to exchange information on the status of various projects, to - discuss plans, and to review performance and design issues. - -III. STATUS REPORTS - - A. ARPA - - Vint reported on some changes in the ARPA IPT office. People: - (1) Dr. R. Kahn was married, (2) Col. J. Hammett is leaving the - office for an assignment in Europe, (3) Dr. B. Leiner is joining - the office to work on the Packet Radio Program, and (4) Lt. Col. - Duane Adams is now Executive Assistant to the Director of IPTO. - Equipment: Much of the equipment on the 7th floor will be moved to - the 8th floor, the current 316 TIP will be replaced by a C30 IMP - plus 316 Terminal Access Mini-Host, the XGP will be replaced by a - Penguin, and a RAPICOM 450 facsimile machine will be installed. - - An important goal for protocol implementations is to eliminate the - use of NCP and completely switch over to TCP by January 1983. - - ARPA is providing technical support to the National Science - Foundation (NSF) in the planning for a Computer Science Network - (CSNET) to be operated by a consortium of Universities. - L. Landwebber at the University of Wisconsin is the coordinator of - the consortium. The current plan is to use a combination of - existing networks to provide the physical support for CSNET. - - ARPA intends that by the end of 1982 all existing 516 and 316 IMPs - will be replaced by C30 IMPs. The first few will go to (not in - this order) SRI, MIT, ISI, ARPA, BBN, BRAGG, and Berkeley. - - - -Postel [Page 1] - - - IEN 160 -Internet Meeting Notes - - - - B. BBN - - Dale McNeill reported on the status of SATNET. The PSP terminal - provided by COMSAT has been installed and the SPADE terminal has - been removed. The ARPANET line 41 between NORSAR and SDAC which - is supported by a satellite is now using a military circuit and - availability has been noticeably poorer. - - CATENET gateways attempt to split the load when routing - information indicates two or more paths of equal cost. This means - that traffic from the UCL gateway over the SATNET to the ARPANET - will be split between the BBN gateway and the NDRE gateway. When - it turns out that the ARPANET line 41 is down, half of the traffic - goes into a black hole. The NDRE gateway can talk to its IMP and - so reports it is connected to the ARPANET, but the ARPANET is - partitioned due to line 41 being down. Due to this problem, it - was agreed that communication between the NDRE Gateway and the UCL - Gateway be permanently broken to avoid packet loss due to gateway - load splitting when line 41 is down. - - There has also been an increase in the packets lost in SATNET due - to an increase in the bit error rate which is due to satellite - power being reduced by 1db since June 1st. - - Dale also reported that the VAN Gateway (an ARPANET-TELENET - gateway) work has progressed to testing the Frame Level protocol. - There seem to be some problems with the interface due to differing - interpretations of X.25. This gateway is implemented in LSI-11. - - Ginny Strazisar reported on the recent development for the - Gateways. The use of XNET has converted to version 4. A problem - with the Redirect Message has been fixed. The implementation of - fragmentation has not been completed. - - A problem with reinitializing the UCL gateway was discussed. It - seems as if some combination of using XNET, the robustness card - and LDSRV should be able to handle this case. UCL, SRI, and BBN - will investigate. - - Jack Haverty reported that new TCP implementations are now just - beginning for the VAX Unix (v.7), the HP 3000, and the new TIP - (mini-host attached to a the C30 IMP). Design notes on these will - be distributed as IENs. A description of the performance - measurement tools developed for DCA should be available about 1 - November. A local net based on the Ungerman-Bass NET-ONE - equipment is being tested. A design for a TIP Login system is in - progress. A gateway between the RCCNET and the ARPANET and a - - - -Postel [Page 2] - - - IEN 160 -Internet Meeting Notes - - - - local net based on C30s is being installed. IEN 158 was issued - which describes the XNET-4 protocol. - - David Flood Page reported that the CMCC log files are now - primarily event driven and summaries are produced. If you want to - receive the daily statistics, send a message to David. IEN 157 - was issued which discusses some new performance measurement CMCC - message formats. - - C. COMSAT - - Dave Mills reported on activities at COMSAT. COMSAT is working on - a revised version of INTELPOST which will use IP and TCP. Dave - described the configuration of equipment at COMSAT which consists - of a number of small hosts, mainly LSI-11s. This network uses the - logical host field of the Internet Address to identify the host. - Some bugs were found in some ARPANET hosts treatment of this - field. The local net protocol is IP. - - Dave has been particularly active in testing TCPs and IPs, and - will discuss some of these issues in another session (see - section V). COMSAT has implemented programs to send and receive - computer mail on the "playpen" host. These are written in C. - COMSAT has also used NIFTP to transmit files between their hosts - and ISIE. The NIFTP software was provided by UCL. COMSAT and ISI - have exchanged facsimile images. - - COMSAT plans to create a full CATENET gateway and to arrange a - permanent connection to the ARPANET. - - D. DCA/DCEC - - Ed Cain reported on the status of the EDN. Fragment reassembly - has not yet been implemented. The Host and IMPs have been - converted to 96 bit leaders. The gateway has implemented most of - the CMCC measurements reports. One problem is that many gateways - and hosts do not have the EDN in their tables. - - E. DOD - - Ray McFarland noted that Ken Shotting has done further work on a - formal analysis of IP and a report will be forthcoming. - - F. ISI - - Jon Postel reported on the installation of the PENGUIN laser - printer and the communication of data to it via IP, UDP, and TFTP. - The program that manages the input and output of facsimile data - - -Postel [Page 3] - - - IEN 160 -Internet Meeting Notes - - - - has been modified to use either the new or old format. Jon - reported that the work on protocol verification is progressing and - that Carl Sunshine may have a report at the next meeting. - - Jon also reviewed the IENs and RFCs produced since the last - meeting. Since the whole ARPANET is to convert to IP and TCP it - is appropriate for protocol specifications and implementation - related memos be RFCs while research and design related memos be - IENs. - - G. Linkabit - - Estil Hoversten noted that Linkabit recently merged with another - company and will be setting up a private corporate satellite - network. Linkabit is doing the final testing of the ESI and - expects send it to ISI in mid-October. The expected review of ST - protocol will not be presented. - - H. LL - - Cliff Weinstein described the structure and status of the WBCNET. - The initial four stations (LL, ISI, SRI, DCEC) all have their - antennas installed. Work is underway to bring the net into - operation in the next few months. LL is developing a local - network called LEXNET, some digital voice terminals (VTs) and - traffic emulator and traffic concentrator hosts. An 11/45 is - being programmed to be an WBCNET-LEXNET gateway. This will be a - ST gateway but not initially a full IP gateway. - - I. MIT-LCS - - Dave Clark described the complicated collection of networks and - hosts at MIT. There are several families of protocols in use and - several interconnections. Things are complicated enough that - Corbito has been designated czar of networks at MIT. Some things - in progress are: Mail Service Programs, FTP programs, an NIFTP, - X.25 interconnections for Telnet and Tymnet. The Nu machines are - coming along; an IP for the Nu is being written. Multics - implements an Echo and Echo Reply to do PING with COMSAT. MIT - still needs an additional IMP port. Interested in IP and TCP - implementations for super small machines. - - J. NAVELEX - - Frank Deckelman noted the interest of the Navy Electronics - Laboratories in the ARPA Internet. - - - - -Postel [Page 4] - - - IEN 160 -Internet Meeting Notes - - - - K. NDRE - - Yngvar Lundh reported on the local net development at NDRE which - is based on protocol processors implemented on Z80s with 65 kb of - memory. Each processor has a kernel and a specialized module such - as a speech packetizer, an LPCM, a TCP, or NVP. The - implementation language is PLZ. A highly formalized graphical - description language is being used to design the TCP. - - L. RSRE - - Brian Davies reported on the activities at RSRE. RSRE has been - very active in measuring TCP performance and will report some - results in another session. Some suggestions for changes to IP - and TCP are: (1) If the option code could indicate by a type or - class bit if the option were to be copied or not on fragmentation - things would be easier for the gateway; (2) also on fragmentation - it might be better to break the datagram into equal sized - fragments rather than a maximum sized fragment and the left over; - (3) TCP should focus more attention on the critical impact of - timeouts on performance, especially noting that different - destinations may vary in round trip times by an order of - magnitude. - - The line between RSRE and UCL was recently upgraded to 4800 baud. - RSRE particularly noticed the lost traffic due to the problems - with line 41. - - M. SRI - - Ron Kunzelman reviewed the status of the Packet Radio networks, - and discussed a problem with terminal access from Ft. Bragg TIU - users at ISID. The normal TOPS-20 character-at-a-time remote echo - seems to saturate the bandwidth available via TCP, the gateway, or - the networks. A line-at-a-time local echo mode has been developed - to reduce the traffic load. - - Ron also described some modifications to ACC controllers for the - 1822-LSI11 interfaces: - - (1) 18 bit addresses - (2) address incrementing - (3) switch to tell (?) - (4) cycle shortening - (5) last bit on gather write - (6) last input character - (7) substitution of a part - - - -Postel [Page 5] - - - IEN 160 -Internet Meeting Notes - - - - A PDP 11/44 has arrived. This will run Unix (v.7) and will be - used for a measurement host. The antenna for WBC is installed, - but some concern has been expressed about safety to passers-by. - - Jim Mathis reported that TIU's now do reassembly of datagram - fragments. - - Holly Nelson described some new software development tools for use - on UNIX. Also noted that the Port Expander has all the features - that were discussed at the last meeting. - - N. UCL - - Robert Cole described the activities at UCL. Fragmentation is - implemented for sending datagrams and reassembly for incoming - fragments. Chris Bennett is developing a Unix based mail server - based on MMDF and MH using TCP and IP for one underlying - communication medium, and X.25 for another; there is also interest - in interworking with CSNET for computer mail. Steve Treadwell has - developed some programs to decode and smooth facsimile data. - - A Cambridge Ring local network is being installed, but the - protocols have not been chosen as yet. Connections via X.25 to - IPSS and EURONET are being tested. - - UCL has also been affected by the poor availability of SATNET. - - Ron Jones presented measurements on Port Expander and 1822 - interface performance. The maximum achievable packet rate through - the PE from a source to a sink was 65 pkts/sec (with the source - and sink directly connected the rate was 255 pkts/sec). The 1822 - interface performance was found by looping packets of various - sizes through the PE. The interface bit rate for a PI interface - connected to a DMA interface was 71 kbits/sec and for two DMA - interfaces was 325 kbits/sec. The latter experiment also yielded - 5.7 ms as the time for the PE to switch a packet. - - - - - - - - - - - - - - -Postel [Page 6] - - - IEN 160 -Internet Meeting Notes - - - -IV. ACTION ITEMS - - A. Internet Name Server - - SRI is developing an internet name server consistent with the - specification in IEN 116. It was expected to be demonstrable at - this meeting. The development has not reached such a state and - this item is deferred until the next meeting. - - B. Interim Internet Mail System - - ISI is developing a prototype mail program for supporting text - mail in the internet and between NCP and TCP hosts. It was - expected to be able to demonstrate these programs at this meeting. - The design of these programs has only recently been developed (see - section XII). This item is deferred until the next meeting. - - C. FTP and MAIL Memo - - ISI has produced a memo on text mail for the Internet. It is - RFC 772. RFCs 771 and 773 offer motivation and discussion of this - approach (see section XII). - - D. IP and GGP Error Report Memo - - ISI was to produce a memo on error handling in IP and GGP. This - was not done and this item is continued to the next meeting (see - section XV). - - E. XNET Specification - - BBN has produced a memo on the XNET protocol. It is IEN 158. - -V . BAKE OFF SUMMARY - - Dave Mills reported on the sessions for testing the fragmentation and - reassembly implementation in the IP protocol modules. The results - indicate that such testing is useful in that a few problems were - found and corrected, but disappointing in that a number of hosts and - gateways don't implement fragmentation as yet. - -VI. TINY PIPE NETS - - Dave Mills discussed some performance problems with networks composed - of low speed lines (e.g., 1200-1900 baud) and small hosts with - minimal buffers. In such "tiny pipe" networks, attention must be - paid to the performance effects of TCP segmentation decisions, - acknowledgment strategy, window strategy, and retransmission timeout - - -Postel [Page 7] - - - IEN 160 -Internet Meeting Notes - - - - selection. These performance parameters must be chosen with respect - to the partner at the other end of the TCP connection. For example, - a connection between a tiny host in a tiny net and a large host in a - large net (e.g., the playpen in COMSAT net and ISIE in ARPANET) has - very different characteristics than connections between roughly equal - hosts. - -VII. INTERNET PERFORMANCE MEASUREMENT - - Zaw-Sing Su presented a detailed description of some measurement - ideas. - - The aspects of performance measurement can be identified as follows: - - Artificial Traffic Generation - Data Registration - Data Collection and Transport - Experiment Preparation and Control - Data Reduction and Presentation - User Interface - - Measurements could be made at several levels: - - TCP Performance - TCP Analysis - IP Performance - IP Analysis - Internet Component Performance - - Where performance is as perceived by the user and analysis is by - mechanism. - - The types of things studied in performance measurements are: - - Traffic Arrival and Departure Statistics - Throughput and Delay Performance - - The types of things studied in analysis measurements are the - mechanism used by the protocol. For TCP: - - Relative data efficiency - Retransmission sent and received - Out of order arrivals - Duplicates - Ack Only segments - Ack Delay - Zero Window periods - - - -Postel [Page 8] - - - IEN 160 -Internet Meeting Notes - - - - For IP: - - Fragmentation and Reassembly statistics - Use of options statistics - - For GGP: - - Routing Decisions - Congestion Statistics - - Zaw-Sing suggested an internet delay measurement capability to be - implemented as an optional header field for both TCP and IP. - - The TCP option would have source and a destination timestamps of 32 - bits each plus the option code and length octets for a total length - of 10 octets. The time would be in milliseconds. - - The IP option would have the type and length octets, a 16 bit id, and - N stamps, where each stamp is a 32 bit IN address and a 32 bit time - (in milliseconds). The maximum number of stamps would be 4 due to - the limitations on the header size. - - Questions were raised about combining this option with the - Source-Route or Return-Route options. - - The consensus seemed that rather than an option in the IP header the - timing data ought to be accumulated in the data part of the datagram - in a protocol like GGP. - -VIII. CATENET PERFORMANCE CONSIDERATIONS - - Bruce Hitson discussed the need for one-way delay measurements in the - Catenet. It was stressed that these measurements would be - particularly critical for performance measurement in an internet - environment. The very large physical distances involved and the - non-participatory (at least in performance measurement) nature of the - member networks are examples of why one-delays would be very useful. - Round trip measurements are of questionable value since the network - may change quite a bit during the course of a single round trip (up - to 10 seconds in some cases). To be able to make one-way delay - measurements, synchronized clocks are needed. - - Bruce described several clever ways of synchronizing clocks with - third party time sources. The best choice seeems to be some devices - that listen to a radio station (i.e., WWVB in the United States) and - have a computer interface (e.g., RS 232) to report the time to the - computer on request. - - - -Postel [Page 9] - - - IEN 160 -Internet Meeting Notes - - - - ISI (as noted in the notes of the last meeting) has already ordered 4 - such devices for use in WBC and CATENET measurements. Design of - experiments that will make use of these devices is being considered. - For further details, see Appendix B. - -IX. Loader Server MEASUREMENTS - - Jim Mathis reported the results of some round trip measurements made - using the LDSRV program. A round trip in the ARPANET between - DARCOM-KA and the Ft. Bragg Gateway took about 600 ms. Similar - measurements between DARCOM-KA and a host in a local PRNET took 170 - ms., and between DARCOM-KA and a host in the Ft. Bragg PRNET took 800 - ms. For further details see Appendix C. - -X. CATENET MEASUREMENTS - - Brian Davies discussed some suggestions for performance improvements - based on the experience at RSRE. - - The use of an adaptive retransmission timeout seems to be very - helpful. RSRE has experimented with one based on the following: - - 1. For each segment record the sequence number and time sent. - - 2. For each acknowledgment determine the round trip time (RTT) of - the sequence number thereby acknowledged. - - 3. Compute an Integrated Ack Time (IAT) as follows: - - IAT = ( ALPHA * IAT ) + RTT - - 4. Compute a Retransmission Time Estimate (RTE) as follows: - - RTE = Min [ BOUND, ( BETA * IAT ) ] - - Where BOUND is an upper bound on the retransmission time and - BETA is an adjustment to the IAT to account for variation in - the delay. - - RSRE currently uses ALPHA = 31/32 and BETA = 1.33. - - [Dave Clark noted that MIT-MULTICS uses the same algorithm but with - ALPHA = 4/5 and BETA = 1.5.] - - Brian presented some graphs of the actual RTTs and resulting RTE for - TCP connections between RSRE and ISIE. - - Andy Bates presented data from recent measurements of double round - - -Postel [Page 10] - - - IEN 160 -Internet Meeting Notes - - - - trip times between RSRE and UCL, BBN Gateway, and ISIE. There are - two aspects of the measurement to be explained: The absolute delay, - and the variation in delay. The absolute delay (for the least - delayed packets) seems to be in agreements with the expected delay - given the speed of the lines, the protocols used, etc. For example, - one second time for a separate reservation is required (which is the - current strategy). The variation in delay is not yet satisfactorily - explained. Some arises in SATNET, and a good deal arises in the - ARPANET. One suggestion (by Danny Cohen) is that if the packets are - far enough apart in time then new Source IMP to Destination IMP - reservations are needed for each packet, this could add a large - variable delay. - - A goal for the next meeting is to figure out the cause of the - variation in the delay. - -XI. NBS PROTOCOL STANDARDS DEVELOPMENT - - Mike Wingfield discussed the standards work on protocols sponsored by - NBS. Mike first noted that many standards groups are actively - working on standards in the communications area. The work NBS is - sponsoring at BBN is to develop service specifications, feature - analysis, formal specification, and a test implementation for a - transport protocol. - - BBN has developed a formal description language which is an extension - of a finite state machine description. The language is entirely - textual and so can be easily manipulated with computer tools. - - The basic element is a transition description which is composed of a - next state, a current state, an event, and a procedure. The - procedure is written in "C". The following tools for working with - the language have been developed: a syntax checker, a state checker, - a special editor, and a test generator. - - Additional work involves a feature analysis of X.75, IP, and PUP as - internet protocols. NBS is also interested in the ECMA proposal for - a Transport Protocol and BBN is analyzing it. - -XII. MAIL TRANSITION PLAN - - Vint Cerf described the problem arising in the exchange of computer - mail between old NCP only hosts and new TCP only hosts. The plan is - to provide relay or forwarding hosts that implement both transport - protocols and relay the mail. - - Jon Postel explained some of the details of this plan. A key - decision is to provide a new MAIL SERVER and a new mail protocol. - - -Postel [Page 11] - - - IEN 160 -Internet Meeting Notes - - - - These will be very similar to the existing protocols and servers but - will have an important new feature: the address passed in the MAIL - command will include the destination host as well as the user. - - Jon also discussed the need for hosts to add to their host tables - some indication of the status of each other host: old table NCP, new - table NCP, or TCP (all TCP hosts are to have new tables). These - three kinds of host mean there are 9 combinations of mail exchange. - These were discussed on a case by case basis. The difficult case was - the old NCP host to the TCP host. In this case a relay host could - receive the mail using the old mechanisms but would have no idea of - which host to forward it to. One proposal is to have a list of - registered users available to this relay host. - - Vint also discussed the idea that the hosts have unique indentifiers - independent of network, and even that organization names could be - used instead of host names. - - The discussion indicated some doubts about the practicality of - registered users, especially in resolving name conflicts now resolved - by host names. Also, concern was expressed about the globally unique - host names. - - RFCs 771, 772, and 773 present the plan, the mail protocol, and a - discussion of the issues. Comments are solicited. - -XIII. CONTROLLED ROUTING - - Danny Cohen discussed routing to avoid undesirable networks or to - limit a route to known networks. The existing source routing option - may be called loose source routing (LSR) since it allows the gateway - to send the datagram on any route they choose between the specified - addresses. - - Danny proposes another option called strict source routing (SSR), - which is like LSR except that a gateway may only route a datagram to - the next specified address through the network specified in the NET - part of that address. - - This is very restrictive and would highly control the route. It - would also provide a way to route things out of one network, through - a second network, and back into the first network, to get around a - partition or use special transmission capabilities. - - Vint Cerf proposed an alternative of simply a list of acceptable - networks. This would be less restrictive, but might lead to problems - in routing. - - - -Postel [Page 12] - - - IEN 160 -Internet Meeting Notes - - - - Danny's proposal is described in IEN 156. - -XIV. PROTOCOL ISSUES - - Dave Clark discussed some problems in IP and TCP implementation in - the MIT environment. - - One situation is that several hosts at MIT are on two or more - networks, and have as many internet addresses. The problem is that - while one interface is down, the host and the other interface may be - up, but datagrams sent to the down interface address will be - discarded rather than routed to the other interface address. - - Dave presented a scheme that would allow a two-connected host to - avoid this problem with the help of nearby gateways. The gateways in - the networks the hosts is connected to would have tables to map a - special form of address into one of the regular address and to choose - between regular addresses based on knowledge of which interfaces were - up. The hosts sending to the two-connected host would always send to - the special address. - - This scheme was not well received. The consensus seemed to be that - it was too specialized and involved too much special case mechanisms. - It is agreed to be an important problem, but a better solution is - needed. - - Another situation involves very small hosts and the desire to - implement TCP in them. For example, a TCP in 2K bytes of memory. - What corners can be cut? For example, no data with SYN or FIN, - simple ACK and window policies. - - One suggestion is for an option to specify a maximum receive segment - size to be sent only with a SYN. This would have different effects - than a consistently small window because it may allow many segments - to be in transit at a time even though each is small. The consensus - seemed to be that this was a good idea. - -XV. IP AND GGP ERROR REPORTS - - Jon Postel reviewed the discussion from the last meeting of error - reporting in IP and GGP. They are different in that in IP an option - is used and in GGP the data area is used to carry the error - information. They are redundant in that most of the errors mentioned - in IP are also mention in GGP. - - Jon proposed to put all these error reports into a new protocol and - use a GGP style mechanism. The consensus seemed to be that we should - continue to use GGP, and eliminate the IP error option. - - -Postel [Page 13] - - - IEN 160 -Internet Meeting Notes - - - -XVI. NEXT MEETING - - The next meeting will be hosted by ISI and will be held 28-29-30 - January 1981. Attendance will be limited so if you plan to attend - please clear that with Vint Cerf (CERF@ISIA). and notify Victor Brown - (BROWN@ISIF). Jon Postel will be the host. - - A tentative schedule for subsequent meetings is: May 81 at COMSAT, - September 81 at UCL, January 82 at SRI, May 82 at BBN, and September - 82 at IABG/DFVLR. - - AGENDA ITEMS: - - 1. Provision for source routing in the interface between TCP and - IP and in the TCP tables. How will the reverse route information - be handled? - - 2. Further discussion on internet mail transition. Focus on - alternatives to the unique name requirement which led to potential - misrouting. - - 3. More on performance observations within the Catenet, in the - Hosts. - - 4. MITRE report on their new 350 kb/s TCP that runs in a Z-8000. - - 5. Front-ending of TCP/IP. - - 6. Progress reports on FTP where ever it is being implemented. - - 7. Progress reports on the (interim internet) message system. - - 8. Progress reports on the protocol verification. ISI, BBN, SDC, - and DoD. - - 9. Discussion of "worm" programs, XEROX. - - 10. Discussion of the IIN problem, the inter-inter-net. How and - at what levels can we interoperate with other nets? - - 11. Report on On-Tym and Telemail relative to ARPANET mail and - Internet Mail. - - ACTION ITEMS: - - 1. New text for the TCP and IP specification changes. - - - - -Postel [Page 14] - - - IEN 160 -Internet Meeting Notes - - - -APPENDIX A: INTERNET DESIGN PHILOSOPHIES & THEIR IMPLICATIONS - - The third day of the Internet Meeting was a seminar on the TCP/IP and - Yellow Book approaches to internetting. The following notes are - provided by Brian Davies of RSRE. - - INTRODUCTION - John Laws (RSRE). - - John Laws started the informal Seminar by giving some background - as to its genesis: namely that with so many TCP/IP experts having - come to the UK and it being the case that the UK public network - users are promoting an apparently competing solution, then it - seemed an ideal opportunity for parties to exchange views. It was - not expected or intended that there should be any dramatic - conversions of the parties vis-a-vis datagram and virtual call - issues. However, it was hoped that areas of common approach might - be identified even though expressed in a different language. In - addition, the reasons for divergence might be mutually identified - and appreciated. - - An "impartial" Chairman, Derek Barber (Microprocessor Applications - Project, Dept. of Industry) was introduced. Many presentations of - views were scheduled and firm discipline, of both presenters and - the audience, was administered by the Chairman. A summary of - presentations and ensueing discussion follows. - - OPERATIONAL REQUIREMENTS - Sqn Ldr David Stupples (RSRE). - - The user requirement for communications in a typical air defence - scenario was presented. The data communications were provided by - a common bearer network and mobile tactical networks of the JTIDS - type. The data-bases and their functions were described to - illustrate why they were distributed. The mobility of the users - not only in a single net but across multiple tactical nets was - emphasized with particular reference to the problems of - maintaining connections to their associated databases. - - PHILOSOPHY AND ARCHITECTURE OF YELLOW BOOK TRANSPORT SERVICE (YBTS) - - Peter Linington (Data Communications Protocol Unit, Dept. of - Industry). - - To ensure that the parties to the debate were speaking a common - language a set of "basic" and "obvious" axioms for internetworking - were presented. The properties of a global transport service were - described. Compatability for internetworking would be achieved by - enhancing each underlying network to the common transport service - standard. This enhancement would be within hosts and gateways; - the enhancement being achieved by encapsulation of the specific - - -Postel [Page 15] - - - IEN 160 -Internet Meeting Notes - - - - network features within appropriate network specific protocols. - Thus only the service attributes have to be agreed globally; hosts - only have to implement their local network enhancing protocols; - gateways at worst have only to implement neighbour network - enhancing protocols. - - ADDRESS AND ROUTING IN THE YELLOW BOOK TRANSPORT SERVICE -Mike Guy - (Computing Centre, Cambridge University). - - The point was made that diverse network address naming authorities - will always exist and will always assert their techinical need to - be different. A naming and addressing mechanism appropriate for - this environment was described. This featured use of an "address" - string whose component parts are addresses, titles, generic names. - Traversal of connected networks was driven by successive - "activation", with possible address/title - expansion/transformation, of the component parts appropriate to - the current address/naming domain: in effect akin to source - routing. In particular, the use of titles/generic names allowed - the user to be unconcerned with changes in remote network - addresses or interconnection architectures. Depending on the - name/address conventions of the neighbour networks, gateways would - be required to have varying degrees of intelligence about - name/address mappings. - - TRANSPORT SERVICE ARCHITECTURE FOR THE LAYMAN - Vince Hathway - (National Physical Laboratory). - - Vince detailed his varied and long experience of implementing and - working with protocols in an internetworking environment. This - environment had gateways to both datagram and virtual call - networks. Both approaches had used hop-by-hop techniques for some - of the levels of protocols. In addition one gateway also passed - high levels of protocol transparently. Neither approach could be - declared as "better". The community of users associated with each - of the external networks had different requirements and this had - significantly determined the internetworking solutions. In - analogy, domestic cars were ideal for many transportation - requirements, but there are times when the virtues of tanks are - appreciated! - - TCP AS A BASIS FOR YELLOW BOOK TRANSPORT SERVICE REALISATION - - Chris Bennett (UCL) - - In order to incorporate an existing network into the Yellow Book - framework, a 'Yellow Book protocol' must be defined locally to - that network which builds on the existing network interface to - bring it in line with the Yellow Book service. In the Catenet, - - -Postel [Page 16] - - - IEN 160 -Internet Meeting Notes - - - - the appropriate starting point is TCP which already offers the - basic virtual call interface. The data stream is structured into - arbitrary length data and control messages. Each control message - is allied with TCP actions, where possible, to gain the - appropriate effect. The TCP-based Yellow Book protocol is not - complex and is mostly required to allow the transmission of - connection information beyond the Catenet. Details may be found - in IEN 154. - - A USER REQUIREMENT FOR STANDARDS - Ken Heard (Joint Networks Team, - Science Research Council, Rutherford Labs.). - - Background was given as to some of the functions/responsibilities - of the Joint Network Team; this being advising/aiding the - selection/implementation of an architecture and protocols for - internetworking between diverse networks sited at UK Universities - and Research Establishments. The point was made that the - productive functioning of this internetworking in the immediate - future was urgent and, that time and resources could not be wasted - on re-inventing the wheel. Hence the adoption and rapid - implementation of protocols emerging as "interim" standards for - use on the UK PTT public network. A review of - protocol/architecture standardisation activities within - national/international bodies (AFNOR, BSI, CCITT, ECMA, ISO, - NBS,...) was given. As a final comment attention was drawn to the - influence on standards of the pioneering research networks such as - ARPANET and the European Informatics Network. - - THE INTERNET ARCHITECTURE - Vint Cerf (DARPA). - - The wide range of diverse network implementations and environments - incorporated in the ARPA Catenet was described. The ARPANET - itself, packet radio networks, broadcast packet satellite - networks, and a variety of local networks all interwork using IP - as the universal protocol. Some of the experiments and - demonstrations conducted were discussed. - - INTERNET PROTOCOL DESIGN - Jon Postel (ISI). - - The architecture of the ARPA Catenet protocol family was briefly - described and the services provided by the IP and by the TCP were - described. The point that both protocols are available to the - users and can be used to build very different kinds of - applications was emphasised. - - END-TO-END VS HOP-BY-HOP - Danny Cohen (ISI). - - The difficulty of building effective communication systems by - - -Postel [Page 17] - - - IEN 160 -Internet Meeting Notes - - - - relying on plug-to-plug compatibility on a hop-by-hop basis was - discussed. - - SUMMARY OF ISSUES - Brian Davies (RSRE) - - The advantages of harmonization of transport protocols in the - civil and military fields were presented. However, the - differences in emphasis in the user requirements would probably - preclude this standardization in the foreseeable future. These - differences included availability of resources in the face of - threat, mobility of users, and the military requirement to - accommodate a dynamically changing internet topology. In - addition, the relative importance and costs of such properties as - security, precedence and survivability had to be considered. Some - of the particular architectural issues involved in the Yellow Book - and TCP/IP approaches were then presented. In particular the - implications of the addressing strategies, connection control and - economies of use were highlighted. - - DISCUSSION - - The initial discussion was used by a number of the presenters to - clarify facts or points they had made in their talks. The - following paragraphs are a selection of the varied topics - discussed: - - a) The number of "grades" of service that might be required was - discussed. In the YBTS approach it had been identified that the - one grade of reliable connection-oriented service was a - requirement overwhelming all others. In contrast, the TCP/IP - approach had identified a need fo a number of distinct "grades" of - service to be realized by specific protocols (e.g. speech, user - datagram etc.). - - b) Discussion showed that different emphasis of requirement had - significant influences on the two architectures. The more - commercial environment within which the YBTS has been formulated - places great emphasis on the economic use of resources. However, - the problems involved in maintaining connections across vulnerable - or unreliable networks was an aspect not deeply considered within - YBTS. The TCP/IP approach had given much greater attention to - this military aspect. The two approaches could be seen to be - non-competitive as they are solving different problems. - - c) The YBTS approach to addressing is based on the premise that - all networking authorities will not agree to a global addressing - strategy. The global addressing approach of the TCP/IP would seem - to be in-line with the ISO recommendation on this issue. - - -Postel [Page 18] - - - IEN 160 -Internet Meeting Notes - - - -APPENDIX B: SYNCHRONIZED CLOCKS - - ISI is evaluating an absolute time clock for network measurement use. - The clock is actually a radio receiver which is tuned to National - Bureau of Standards station WWVB, which broadcasts on a frequency of - 60kHz, and is located at Fort Collins, Colorado. WWVB provides both - time and frequency information and its coverage area is effectively - the continental United States. - - The clock is the Model 8170, made by Spectracom Corporation, 320 N. - Washington St., Rochester NY 14625. The 8170 is a rack-mountable - unit, 17" wide by 5.25" high by 13.5" deep. Line power is 115/230 - volt 50 or 60 Hz AC at 60 watts. An external antenna is required, - which is a ferrite loop antenna in a tubular plastic housing 14.8" - long and 2.7" in diameter with a threaded fitting in the center which - accepts a standard 1" threaded plumbing pipe (for mounting purposes - only). The antenna is connected to the clock receiver via 50 ohm - (RG58) coaxial cable with BNC connectors on the ends. - - For best accuracy, the antenna should be placed outside just above - rooftop level (like a TV antenna). However, an inside location near - a window facing Fort Collins may turn out to be acceptable. - - Overall accuracy is specified as plus or minus (.1 millisecond + - noise uncertainty + propagation delay setting error), where noise - uncertainty is expected to be less than plus or minus .5 millisecond - worst case. This accuracy should be more than sufficient for network - measurements. - - Time is output via a front-panel display (hours,minutes,seconds) and - an RS-232 (D-15) jack on the rear panel. Also output on the back - panel is a 1Hz, 10% duty cycle TTL signal called the "on time" pulse. - The leading edge of the on time pulse occurs at the beginning of each - second. In addition, a 1MHz standard frequency output is available - on the back panel, which is a 3.4V rectangular positive pulse - designed to drive a 93 ohm load, but which will drive a 50-ohm load - with reduced amplitude. This 1MHz output is phase-locked to the WWVB - carrier, and can be used for calibrating counters with high accuracy. - - The user requests the time by sending the clock an ASCII capital "T". - When it receives the "T", the clock waits until the start of the next - second, and sends back an ASCII string containing the time. The - rising edge of the start bit of the first character in the string - occurs within a few microseconds of the rising edge of the on time - pulse. - - - - - -Postel [Page 19] - - - IEN 160 -Internet Meeting Notes - - - - The time string is structured as: - - (CR)(LF)I DDD HH:MM:SS TZ=XX(CR)(LF) - - where: - I =space if time synch lamp is on, - ? if time synch lamp is off - DDD =Julian day of the year (000 to 366) - HH =hours - MM =minutes - SS =seconds (at the start of this typeout) - XX =time zone setting with respect to UTC - (formerly called GMT). EST is 05, PST is 08. - - The RS-232 port on the clock runs at a baud rate of 300 baud. - - The synch lamp on the front panel will be lit if the time can be - expected to be reliable within plus or minus 1 millisecond. The - clock contains an internal 1MHz oscillator which is kept synchronized - to WWVB. If the WWVB carrier is lost, the internal oscillator will - keep running, and accuracy to plus or minus 1 millisecond will be - maintained for about 10 minutes, at which time the synch lamp will be - turned off, although the oscillator keeps running. - - The back panel also contains thumb wheel switches for time zone - setting, propagation delay setting, and a leap year switch. Yes, - Virginia, a leap year switch. The purpose of the leap year switch is - to maintain the day count properly if the WWVB carrier is lost near - midnight of Dec. 30 (on a leap year) or Dec. 31 (on other years). - - Price is $2600 for the clock itself, $190 for the loop antenna, and - $35 for a rack mount kit. - -APPENDIX C: LOADER SERVER MEASUREMENTS - - The numbers were average round-trip times calculated by the LDSRV. - Each number is the average RT time seen during the load operation, - which takes about 350 or so packets. RT times are not calculated for - packets that are retransmitted. - - The average RT time to ARPANET hosts on the same IMP is around 70 - msec. There were some times somewhat less and a few a bit more. To - MIT, the usual average RT time is about 450 msec. To the Ft. Bragg - PE or gateway, the smallest average RT time is 600 msec. The largest - average RT time was 1.2 sec. - - The usual average RT time to SRI PRNET TIUs is 170 msec. The - smallest time was not less that 100 msec and the largest is 400 msec. - - -Postel [Page 20] - - - IEN 160 -Internet Meeting Notes - - - - To Ft. Bragg PRNET TIUs, the smallest average RT time is a bit more - than 600 msec. The usual RT time is around 800 msec and average RT - times as large as 2.1 sec have been recorded. Most of the loads had - average RT times less that 1.1 sec. - - In the graphs, the y-axis is the number of loads in which the average - round trip time was within the time bucket. - - ARPANET Hosts - - 20-+ - | - | - |XX XX - |XX XX XX - 10-+XX XX XX - |XX XX XX XX - |XX XX XX XX - |XX XX XX XX XX XX XX XX - |XX XX XX XX XX XX XX XX XX XX - 0 -+------------------------------------ - 0 .2 .4 .6 .8 1.0 1.2 secs - - SRI PRNET Hosts - - 20-+ - | XX - | XX - | XX - | XX - 10-+ XX - | XX XX - | XX XX - | XX XX - | XX XX XX - 0 -+------------------------------------ - 0 .2 .4 .6 .8 1.0 1.2 secs - - - - - - - - - - - - - -Postel [Page 21] - - - IEN 160 -Internet Meeting Notes - - - - Ft. Bragg PRNET Hosts - - 80-+ - | XX - | XX - | XX - | XX - 60-+ XX - | XX - | XX XX - | XX XX - | XX XX - 40-+ XX XX - | XX XX XX - | XX XX XX XX XX - | XX XX XX XX XX - | XX XX XX XX XX - 20-+ XX XX XX XX XX - | XX XX XX XX XX - | XX XX XX XX XX - | XX XX XX XX XX XX XX XX XX - | XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX - 0 -+-------------------------------------------------------------- - 0 .2 .4 .6 .8 1.0 1.2 1.4 1.6 1.8 2.0 secs - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 22] - - - IEN 160 -Internet Meeting Notes - - - -APPENDIX D: RECENT DOCUMENTS - - Author Subject Number - ------- ------ ------ - - IENs - - Postel Internet Meeting Notes - 14 & 15 May 1980 145 - Perlman Flying Packet Radios and Network Partitions 146 - Perlman Utilizing Internet Routes as Expressways 147 - Through Slow Nets - Postel Telnet Protocol Specification 148 - Postel File Transfer Protocol Specification 149 - Plummer TCP JSYS Calling Sequences 150 - Cerf Final Report of the Stanford University 151 - TCP Project - Cerf DoD Protocol Standardization 152 - Bennett Realization of the Yellow Book Transport 153 - Service Above TCP - Bennett Realization of the Yellow Book Transport 154 - Service Above TCP (supersedes IEN 153) - Bennett The Yellow Book Transport Service: 155 - Principles and Status - Cohen Controlled Routing in the 156 - Catenet Environment - Flood Page CMCC Performance Measurement - Message Formats 157 - Haverty XNET Formats for Internet Protocol 158 - Version 4 - - RFCs - - Postel Internet Protocol Handbook TOC 766 - Postel Structured format for Multimedia Mail 767 - Postel User Datagram Protocol 768 - Postel RAPICOM 450 Facsimile Format 769 - Postel Assigned Numbers 770 - Cerf Mail Transition Plan 771 - Sluizer Mail Transfer Protocol 772 - Cerf Comments on the NCP/TCP 773 - Mail Service Strategy - Postel Internet Protocol Handbook TOC 774 - - - - - - - - -Postel [Page 23] - - - IEN 160 -Internet Meeting Notes - - - -APPENDIX E: ATTENDEES - - Name Affiliation Nationality Mailbox - ---- ----------- ----------- ------- - Vint Cerf ARPA USA Cerf@ISIA - Don Allen BBN USA Allen@BBND - David Flood Page BBN British DFloodPage@BBNE - Jack Haverty BBN USA JHaverty@BBND - Bruce Hitson BBN USA BHitson@BBND - Dale McNeill BBN USA DMcNeill@BBNE - Virginia Strazisar BBN USA Strazisar@BBNA - Mike Wingfield BBN USA Wingfield@BBND - Gustav Fickenscher BWB.MoD Germany --- - Hoi Chong COMSAT Rep. China Chong@ISIE - Dave Mills COMSAT USA Mills@ISIE - Ed Cain DCEC USA Cain@BBNB - Hans Dodel DFVLR Germany --- - Helmuth Lang DFVLR Germany --- - J. Majus DFVLR Germany --- - Gerry Amey DND/CANADA Canada --- - Ray McFarland DoD USA McFarland@ISIA - Romy Fratilla ELEX USA Deckelman@ISIA - Horst Clausen IABG Austria - Clausen.IABG@MIT-Multics - Danny Cohen ISI USA Cohen@ISIB - Jon Postel ISI USA Postel@ISIF - Cliff Weinstein Lincoln Lab USA cjw@LL-11 - Estil Hoversten Linkabit USA Hoversten@ISIA - Dave Clark MIT USA Clark@MIT-Multics - Frank Deckelman NAVELEX USA Deckelman@ISIA - Oyvind Hvinden NDRE Norway Oyvind@DARCOM-KA - Yngvar Lundh NDRE Norway Yngvar@DARCOM-KA - Paal Spilling NDRE Norway Spilling@SRI-KL - Vince Hathway NPL British --- - Andrew Bates RSRE British T45@ISIE - Trevor Benjamin RSRE British T45@ISIE - Brian Davies RSRE British T45@ISIE - Roger Edwards RSRE British T45@ISIE - Alan Fox RSRE British T45@ISIE - Silvia Giles RSRE British T45@ISIE - John Laws RSRE British T45@ISIE - Paul Masterman RSRE British T45@ISIE - Jo Penley RSRE British T45@ISIE - Gill Roberts RSRE British T45@ISIE - Ron Kunzelman SRI USA Kunzelman@SRI-KL - Jim Mathis SRI USA Mathis@SRI-KL - Holly Nelson SRI USA HNelson@SRI-KL - Zaw Sing Su SRI Canada ZSu@SRI-KL - - -Postel [Page 24] - - - IEN 160 -Internet Meeting Notes - - - - Chris Bennett UCL British UKSAT@ISIE - Robert Cole UCL British UKSAT@ISIE - Ron Jones UCL British UKSAT@ISIE - Steve Treadwell UCL British UKSAT@ISIE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 25] - \ No newline at end of file diff --git a/text/ien/ien161.txt b/text/ien/ien161.txt deleted file mode 100644 index 9575ccd3..00000000 --- a/text/ien/ien161.txt +++ /dev/null @@ -1,532 +0,0 @@ - - - - - - - - - - - - - - - - - - - - A Proposal for Simple Measurement Support for Users - - - IEN 161 - - - R.G.Jones - - - - November 1980 - - - - - - - - - - - - - - - - University College London - - - - - - - - - - - - - - - Simple IEN -Measurement 161 - Support - - - - Contents - - - - - - - - 1. Introduction...........................................1 - - - 2. Motivation.............................................1 - - - 3. Measurements...........................................1 - - - 4. Current Measurement Support............................2 - - - 5. Proposed Support.......................................3 - - - 6. Summary................................................5 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Simple IEN -Measurement 161 - Support - - - 1. Introduction - - The majority of this note was originally written to - address a wider problem than measurements solely within - the ARPA catenet and the orientation of the discussion - is therefore in those terms. However, it is felt that - the proposed technique would also be appropriate for - user measurements confined to the catenet. - - The intention in distributing this note is to gather - initial reactions to the proposed technique and - therefore no attempt has been made to fill in all the - details. - - - 2. Motivation - - Increasingly users will wish to evaluate - communication performance across a concatenation of - varied networks. The purpose of this note is to propose - a minimal set of easily implemented facilities which - would support measurements of network performance at - the user level, in particular at the network and - transport levels. It is based on ideas originally - circulated in an INDRA Group Working Paper [1]. - - Given the rapid proliferation of networks and the - corresponding increase in the variety of their type and - interconnection, it is felt that the facilities should - not be tightly bound to a particular protocol but - should be supportable across as many networks as - possible. In particular, for the purposes of examples, - the environment in which the measurements would be - performed is assumed to extend beyond the ARPA catenet - system to include, for example, VANs or PTT X25-based - networks. - - The note deliberately concentrates on a subset of the - requirements for a comprehensive measurement program in - the hope of ensuring rapid implementation of this - essential subset. - - - 3. Measurements - - The performance of a packet-switched network is - typically characterized by delay as a function of - throughput and the facilities proposed are intended to - support this type of measurement. In the case of - networks with a virtual call interface, the call set-up - time is obviously an additional important parameter, - - - 1 - R.G.Jones - - Simple IEN -Measurement 161 - Support - - - - but this can be measured without requiring co-operation - from a remote site. - - Throughput and delay measurements are most easily - undertaken by employing timestamps. This technique - requires at least the provision of an echo server at a - remote site. Useful results, such as round-trip time, - can be obtained with even the simplest echo server. If - global clock sychronization can be achieved (for - example, within a satellite-based net or by the use of - broadcast time standards) then timestamping at - intermediate points is particularly valuable in - pinpointing the origins of delay and throughput - constraints. However, the insertion of timestamps by - remote sites requires an agreed format and location - within the packet for the timestamps and an agreed - triggering mechanism. In a network with adaptive - routing, it is important that the intermediate - timestamps should have some identification of their - origin associated with them. - - The minimum requirements for a measurement program - are therefore seen to be a widely available set of echo - servers with triggerable timestamping facilities. A - more thorough program of work would require, for - example, participating sites to make available traffic - generators which were remotely controllable. - - - 4. Current Measurement Support - - Within the domain of nets supporting ARPA protocols, - timestamping is an option in the internet header. - Currently, however, there is no associated - identification of the origin of the timestamp. - Furthermore, the number of timestamps is limited by the - maximum size of the internet header and this is even - more restrictive if, for example, source routing is to - be employed. In measurements beyond the ARPA catenet - the internet header may well be lost in traversing - other networks where gateways may, for example, do - protocol conversion at the transport level. - - Echo servers are available at gateways for packets - utilizing the Gateway-Gateway Protocol but since such - packets are treated differently from normal traffic - these are useless for throughput tests and provide - optimistic delay measurements. - - - - - 2 - R.G.Jones - - Simple IEN -Measurement 161 - Support - - - Other available facilities suffer from comparable - restrictions. Current support is therefore felt to be - inadequate not only in a wider context, but even within - the ARPA catenet system. - - The situation with regard to other nets, for example - PTT X25-based nets, is even worse and it is unrealistic - to suppose that PTTs will be forward in providing - facilities. Users will therefore be forced to be co- - operative if they wish to pursue a measurement program - of reasonable extent. - - - 5. Proposed Support - - The basic requirement is for a mechanism which will - allow measurements to be made across very different - nets. With regard to interworking between nets based - on different protocols, it is unreasonable to expect - groups to implement protocols specific to another - network. Central to the proposed mechanism is a - standard format for the measurement data area which is - independent of the underlying network protocol. Such a - data area can be employed as the user data of the - selected protocol. Measurement data is distinguished at - the underlying protocol level from normal traffic by - the use of a reserved protocol number or port or - whatever is appropriate to the protocol. - - The proposed format is outlined in Figure 1. - - The type field specifies, for example, whether the - data is to be echoed, is an echo, or whether it should - simply be dropped by the receiving process. - The flag field can be used to specify whether the - station address should be inserted by each timestamping - station and to specify the categories of sites which - should timestamp. For example, for measurements made at - the ARPANET internet datagram level, the flags could - specify that intermediate gateways should timestamp as - well as the destination. - The length field is used at the transport level as a - record delimiter. - The sequence number field is simply a field in which - the originating process can insert a data area sequence - number if so desired. - The offset field points to the location at which the - next timestamp (and possibly station identification) - should be inserted. This is updated by each - timestamping station to point beyond the timestamp it - has inserted. - - - 3 - R.G.Jones - - Simple IEN -Measurement 161 - Support - - - - - - +---------------+---------------+ - | type | flags | - +---------------+---------------+ - | length | - +---------------+---------------+ - | sequence number | - +---------------+---------------+ - | offset | - +-------------------------------+ - | origin of ts#1 | - | (optional) | - +-------------------------------+ - | timestamp | - | number 1 | - +-------------------------------+ - | | - - | timestamp | - | number n | - +-------------------------------+ - - - FIGURE 1: Format of Measurement Data Area - - A sequence of timestamps (possibly with associated - station identification) then follows the offset field. - For experiments with user data of varying sizes, the - measurement data area would be followed by padding to - the appropriate length. - For throughput tests with minimal size user data it - would, of course, be possible to dispense with all - fields except for length and type and flags, with the - latter set to indicate no timestamping. - - It is intended that the traffic generator would - supply a data area large enough to contain the - anticipated number of timestamps. If it were possible - for there to be a large variation in the number of - networks traversed for a given destination that might - prove difficult to initially estimate. However, a - station unable to timestamp because of lack of space - would set a flag to indicate the fact. - - Station identification in measurements across nets - with an homogeneous addressing scheme (such as the ARPA - catenet) presents no problems. However, identification - in other systems rules out a standard field size. The - PTT networks, for example, specify an international - - - 4 - R.G.Jones - - Simple IEN -Measurement 161 - Support - - - - address of up to 14 digits and local nets will have a - variety of further schemes. The use of timestamp - identification in the most general case is therefore a - matter for further consideration. In many situations - the problem will not arise since, for example, across - PTT nets timestamps will be available only from the - destination echo server. It may be desirable to add an - additional field either for each origin or each - origin/timestamp pair to indicate length and format. - - The suggested format allows servers to be exceedingly - simple with much common code between servers at - different protocol levels. - - In the ARPANET environment, echo servers for such - data should be provided above the internet datagram - level and above TCP. Thus, an internet protocol number - would be reserved for measurement packets and all such - packets processed by an internet layer in a host or - gateway would be passed to an internet datagram echo - server. It should be possible to specify timestamping - in a gateway functioning as a transit gateway rather - than the packet destination. A "well-known" TCP port - would be reserved for a server for TCP tests. - - For X25-based networks, at the virtual circuit level, - a protocol number could be reserved for the "protocol - field" of the call user data area (bytes 1 through 4). - In the absence of such a universally recognized - identification, substitutes can be found. For example, - on PSS "well-known" (to co-operating sites) sub- - address digits could specify the echo server in the - DTE. - - - 6. Summary - - Attention has been drawn to the inadequacies of - current measurement support for the network user. An - outline has been given of the minimum requirements for - a user measurement program and a method of meeting the - requirements has been proposed. The central mechanism - of the proposed support is a standardized format for - measurement data, which lends itself to easy - implementation above various network protocols - accessible by the user. This scheme means that the - measurement data is independent of the protocol level - in use and may be more easily preserved across - networks. - - - - 5 - R.G.Jones - - Simple IEN -Measurement 161 - Support - - - - The note has deliberately defined a minimal subset of - the requirements for a comprehensive measurement - program, not least because it is felt that these - facilities could be quickly provided. - - It does not attempt to provide the necessary - facilities for detailed investigation of network - behaviour, but does (quickly and easily) provide - sufficient resources for the user to be able to - identify problems for further investigation. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 6 - R.G.Jones - - Simple IEN -Measurement 161 - Support - - - - References - - - - - - - 1. Standard Timestamping - A Proposal - R.Cole and R.G.Jones, INDRA Working Paper 860, - January 1980 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 7 - R.G.Jones - diff --git a/text/ien/ien162.txt b/text/ien/ien162.txt deleted file mode 100644 index 1977889c..00000000 --- a/text/ien/ien162.txt +++ /dev/null @@ -1,1004 +0,0 @@ - W-Note-16 BBN - IEN-162 - - - - - - - - TRANSPORT, ADDRESSING, AND ROUTING IN THE WIDEBAND NET - - - Wideband Net Working Note #16 - Internet Experiment Note #162 - - - - - - - - - - - - - - John A. Pershing Jr. - - Bolt Beranek and Newman Inc. - 50 Moulton Street - Cambridge, Mass. 02238 - (617) 491-1850 - - October 1980 - - - - - - - - - - - - - - - - - - -The online version of this note does not contain 2 figures. Hardcopy -versions including the figures may be obtained from the author at the -above address, or by a request via computer mail to JPershing@BBNA. - - - 1 - - W-Note-16 BBN - IEN-162 - - - TRANSPORT, ADDRESSING, AND ROUTING IN THE WIDEBAND NET - - - This note proposes a model for addressing and routing in the - - DARPA Wideband Satellite Experiment. The purpose of the - - organization described herein is twofold: (1) to hide the - - physical structure of the Wideband Net from The Internet and its - - gateways; and (2) to unify the transport and routing functions - - performed within the Wideband Net. - - - Certain terms, defined in a glossary at the end of this memo, - - are used with specific, somewhat non-standard meanings in order - - to avoid ambiguities. - - - - 1. Current Organization - - - The Wideband Satellite Experiment involves the development of - - the PSAT satellite network, several local networks, and - - connections to several existing networks such as the ARPANET. - - Currently, no plan exists for the organization of these parts - - into a unified communication medium. So far, the Wideband Net is - - a collection of independent, sovereign networks, each with its - - own transport protocol, addressing, and routing schemes. This - - sovereignty of the constituent networks is a feature which should - - be preserved as much as possible, so that the development of - - local and satellite network technologies can proceed without - - artificial constraints. - - - - - - 2 - - W-Note-16 BBN - IEN-162 - - - Figure 1 illustrates a hypothetical organization sometime in - - the future, after the network has expanded somewhat. Each site - - has one PSAT, and perhaps a Voice Funnel and/or - - mini-concentrator; additionally, sites have a number of local - - networks with various interconnections. Hosts may be connected - - directly to a PSAT, a Voice Funnel, or to a local network; some - - hosts may have connections to two or more nets, etc. - - - A uniform plan for communication in the Wideband Net will avoid - - ad hoc schemes involving specialized interface machines which - - transform one net's local protocol and addressing into that of - - another net. Using specialized gateways in combination with - - source routing will not take full advantage of the topology and - - dynamics of the situation. (This is particularly evident if the - - link indicated by the dotted line exists, since only the Voice - - Funnel at the right side of the figure knows the status of both - - the dotted link and the satellite link, and only that Voice - - Funnel is able to choose the appropriate link.) Such ad hoc - - schemes are inflexible, inefficient in terms of manpower (since - - large amounts of special-purpose code must be implemented), and - - do not allow the Wideband Net to be readily integrated into the - - Internet. - - - A "simple" approach is to consider every component in Figure 1 - - to be a member of The Internet, assigning an Internet Network - - Number to each of the constituent nets, and relying on internet - - - - - 3 - - W-Note-16 BBN - IEN-162 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Figure 1: Current Organization of the Wideband Net - - - gateways for routing. However, even this simple diagram has - - twelve nets, not counting the ARPANET (the Voice Funnels must - - also behave as networks so that the directly attached hosts have - - well-defined internet addresses), and there are 16 cross-net - - connections requiring Internet gateways. It is probably - - - - 4 - - W-Note-16 BBN - IEN-162 - - - unreasonable for us to consume so many network numbers from the - - address space of 255; furthermore, a proliferation of Internet - - Networks places an unreasonable burden on the gateways and - - networks of the Internet, both in terms of table space and - - routing update traffic (since all gateways must track all - - networks). - - - - 2. Proposed Structure - - - This memo proposes that the networks within the Wideband - - Satellite Experiment collectively behave as one network from the - - point of view of the rest of The Internet, as illustrated in - - Figure 2. All components of the Wideband Net share one Internet - - network number. Internally, the Wideband Net looks like a - - catenet; this structure was suggested by Vint Cerf in IEN-48 [1]. - - The various subnets are interconnected by gateways; each subnet - - maintains its own autonomy, and hosts that are only involved in - - local communication can ignore the catenet (and Internet) aspects - - of the arrangement. - - - We will adopt an internal addressing and routing scheme which - - is transparent to the Internet Protocol (IP) [2], so that all - - hosts on the Wideband Net will have well-defined Internet - - addresses; we adopt IP as the Wideband Net's "catenet transport - - protocol", and superimpose a fine-structure on the 24-bit local - - address part of the (32-bit) Internet address (see Figure 3). - - - - - 5 - - W-Note-16 BBN - IEN-162 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Figure 2: Proposed Organization of the Wideband Net - - - The high-order 8 bits specify a subnet of the Wideband Net (e.g., - - a specific LexNet), and the remaining 16 bits specify the local - - address on that net. - - 6 - - W-Note-16 BBN - IEN-162 - - - - - - - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | 28. | Subnet Number | Reserved for Subnet Use | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - <-------------> <---------------------------------------------> - Internet Internet Local Address - Network Number - - - - Figure 3: Internet Address, as used in the Wideband Net - - - Since the model we are adopting is one that has been thoroughly - - explored by the Internet community, many of the problems have - - been solved and many issues have already been resolved. For - - example, the gateways between these subnets are much like the - - Internet Gateways. These gateways will pass IP packets among - - subnets of the Wideband Net, stripping the local transport - - protocol layer from incoming packets, making routing decisions, - - and wrapping outgoing packets in the protocol of the next net - - which the packet will have to traverse. - - - This scheme does not depend on the participation of all - - attached hosts -- only the gateways are critical, and, as the - - network becomes richly interconnected, individual gateways cease - - to be critical to the proper operation of the net. - - - Other catenet transport protocols could be chosen, or one could - - be devised for use within the Wideband Net. However, hosts would - - still need to implement IP in order to communicate over The - - - - - 7 - - W-Note-16 BBN - IEN-162 - - - Internet, so such a "local" catenet protocol would be essentially - - excess baggage. By adopting IP as the Wideband Net's protocol, - - there is also a good chance of being able to use existing code - - with only minor modifications. - - - The issue of what is an Internet network (with its own assigned - - Internet network number) and what is a subnet is more of a - - managerial problem than a technical one. The relevant issue is - - the partitioning of The Internet, in terms of name space and the - - burden of the routing algorithm on the gateways, as well as in - - terms of managerial responsibility. The proposed scheme for the - - Wideband Net is quite flexible in this regard. If one of the - - subnets becomes an Internet network, then the gateways will - - perform somewhat different routing with respect to that network, - - and the other hosts of the Wideband Net will be mostly - - indifferent to the change (except that the addresses of the hosts - - on the "promoted" subnet will change). Presumably, any Wideband - - Net gateways which were connected to the net will be "promoted" - - to Internet gateways. - - - While we believe that this proposed organization should be - - adopted, it has several problems. However, these problems also - - exist in The Internet and are treated more fully in various - - Internet Experiment Notes; they are only briefly mentioned here. - - - The name space is becoming crowded; using 8 bits for the subnet - - number and 16 bits for the local host address is perhaps the - - - - 8 - - W-Note-16 BBN - IEN-162 - - - wrong partition. However, this choice seems to be a good - - tradeoff between the potential size of the Wideband Net (measured - - in subnets) and the addressing requirements of any individual - - subnet. Eventually, the issue of name-space size will have to be - - addressed by the Internet community as a whole. - - - Since the fine structure of the Wideband Net is not known to - - The Internet, it is possible that Internet Gateways will make - - non-optimal routing decisions with respect to the Wideband Net. - - This is the penalty which must be paid for trying to minimize the - - number of Internet Networks. If the Internet Gateways which are - - connected to the Wideband Net are also Wideband Net gateways - - (that is, they participate in Wideband Net routing as well as - - Internet routing), then they may be able to fine-tune the routing - - of Internet packets through the use of advisory messages - - exchanged with the other Internet Gateways. - - - - 3. Transport Protocol Layers - - - For purposes of discussion, we define the notion of catenet - - adjacency. Two hosts on some catenet are adjacent if they are - - connected to the same constituent network. Conversely, two hosts - - are non-adjacent if they are connected to different constituent - - networks of some catenet. Note that hosts with interfaces on - - more than one network (such as a gateway) may be both adjacent - - and non-adjacent to a given host; in fact, such a host is - - non-adjacent to itself by this definition. - - - 9 - - W-Note-16 BBN - IEN-162 - - - The transport, addressing, and routing schemes suggested in - - this memo are intended to be used by non-adjacent hosts on the - - Wideband Net. Of course this does not prohibit adjacent hosts - - from communicating with these protocols; however, such hosts have - - the option of communicating using protocols which are local to - - the network to which they are attached (and, for efficiency - - reasons, such hosts will probably exercise this option). - - - Datagrams which are to be transmitted through the Wideband Net - - are wrapped in a layer of catenet protocol, which is common to - - the entire Wideband Net, followed by a (possibly null) layer of - - protocol which is dictated by the particular network that the - - datagram is traversing. The catenet protocol header is - - considered to be part of the datagram, and is preserved (with - - only minor changes) as the datagram traverses the various - - constituent networks. The layer of local protocol is volatile, - - and will be discarded as soon as the datagram exits the network - - defining that particular local protocol. - - - For compatibility with The Internet, the catenet protocol used - - is the DoD Standard Internet Protocol (IP) [2]. This permits - - hosts of the Wideband Net to communicate with hosts on other - - Internet Networks without resorting to yet another layer of - - protocol. Initially, no internet gateways will be provided on - - the Wideband Net, so that a restricted subset of IP may be - - implemented by the various hosts. The restrictions of the - - initial implementation follow: - - - 10 - - W-Note-16 BBN - IEN-162 - - - o Fragmentation and Reassembly: Not implemented. Total - length may not exceed 576 octets; we believe that all - participating hosts, gateways, and networks will support - Internet datagrams of this length without fragmentation. - The "Flags" field will always be set to '010' (binary) - to inhibit fragmentation; the "Fragment Offset" field - will always be zero. - - o Source/Destination Addresses: The Internet Network - Number (first 8 bits) will always be '28' (decimal). - The Source/Destination Local Address (remaining 24 bits) - is further interpreted as being 8 bits of network number - and 16 bits of local address on that network. - - o Options: Strictly optional. Any options which are - present must be accounted for by the Internet Header - Length (IHL) and Header Checksum fields; however, no - host is required to interpret any options. - - - The local protocol is dependent on the particular network(s) to - - which a host is attached -- there is potentially a different - - local protocol for every constituent network. In addition, a - - single network may have more than one link-level protocols, - - depending on the particular type of port to which the host is - - attached. Issues of local protocols are of no concern to the - - purposes of this memo; the implementor is referred to the - - (possibly nonexistent) documentation on the local protocol of the - - network(s) to which a particular host is to be interfaced. - - - - 4. Addressing - - - All hosts on the Wideband Net have at least one unique Internet - - address. Since the 8-bit Internet Network Number is already - - specified by the Internet protocols (the Wideband Net is number - - 28 decimal), this leaves a 24-bit address space for use within - - the Wideband Net. - - 11 - - W-Note-16 BBN - IEN-162 - - - Since the Wideband Net is organized as a catenet, the "network - - number / local host number" strategy employed by The Internet is - - also employed within the Wideband Net. Each distinct, - - constituent network is assigned a unique, 8-bit network number; - - and each host is assigned a unique, 16-bit local address on each - - network to which it is attached. These two numbers are - - concatenated to produce the 24-bit Wideband Net Address. - - - - 5. Routing and Gateways - - - Routing in the Wideband Net is implemented in the same manner - - as routing in The Internet [4]. The constituent networks are - - connected by gateways; these gateways implement the routing - - function. One of the primary functions of the Voice Funnels is - - to implement this gateway function for each network to which it - - is attached. If a network is to be attached to the Wideband Net - - at some place besides a Voice Funnel, then it is the - - responsibility of that network to provide a gateway. - - - The IP server in each host needs to know very little about - - routing in order to function properly. It is assumed that each - - host knows its own address (that is, its network number and its - - address on that network) and the address of at least one adjacent - - gateway. Also, the IP server must be able to produce a local - - network protocol header from a 24-bit Wideband Net address which - - specifies this local network. - - - - - 12 - - W-Note-16 BBN - IEN-162 - - - When a host's IP server is called on to deliver a datagram to - - an adjacent host it wraps the datagram first in an IP header, - - then in a local header which is addressed to that host, and sends - - the result directly to its destination. When an IP server is - - called on to deliver to a non-adjacent host, it wraps the - - datagram first in an IP header, then in a local header which is - - addressed to an adjacent gateway and delivers it. That gateway, - - in cooperation with the other gateways of the Wideband Net, will - - deliver the datagram to its destination. - - - In addition to transmitting outgoing datagrams, IP servers will - - receive datagrams from their network(s). These should be routed - - internally as appropriate; this is probably dependent on the - - "Protocol" field of the IP header (but note that a protocol of - - '3' indicates an advisory message from a gateway directed at the - - IP server itself). - - - If an IP server is to function optimally, it must keep track of - - ALL adjacent gateways which are up. Additionally, it must - - maintain a cache of those non-adjacent hosts to which it has - - recently sent datagrams, along with the gateway through which - - these datagrams were forwarded. When it is about to send a - - datagram, the IP server first checks the cache. If the addressee - - is found in the cache and if the gateway named in the cache is - - still up, then the datagram is forwarded to that same gateway. - - Otherwise, a gateway is chosen arbitrarily through which to - - forward the datagram. - - - 13 - - W-Note-16 BBN - IEN-162 - - - Occasionally, a routing advisory message will be sent to the IP - - server by a gateway. Currently, one of two advisories may be - - received: "destination unreachable", meaning that it will be - - futile to send more datagrams to some host for a while (e.g. a - - couple of minutes); and "redirect", meaning that a non-optimal - - gateway was used, and that further datagrams should be forwarded - - through the gateway specified in the redirect message. When an - - IP server receives a routing advisory, it should update its - - cache, and perhaps notify one or more processes as appropriate. - - - - 6. Unresolved Issues - - - Since the currently planned constituents of the Wideband Net - - (the PSAT Net, LexNets, and Voice Funnels) are all capable of - - supporting broadcasting, it might be worthwhile to consider some - - form of broadcasting as a basic Wideband Net service. This would - - probably take two forms: group addressing, essentially extending - - the group concept of the PSAT Net to allow broadcasting to a - - designated group of hosts of the Wideband Net; and general - - broadcasting, directed at all hosts on a particular subnet or at - - all hosts of the Wideband Net. - - - The ST protocol should also be supported directly by the - - Wideband Net's gateways. ST will allow the capacity of the - - various subnets to be more fully utilized. It should also be - - made to take advantage of the broadcast nature of the various - - subnets. - - - 14 - - W-Note-16 BBN - IEN-162 - - - 7. Glossary - - - In order to avert the ambiguities inherent in this two-level - - structure, this memo uses a two-level nomenclature, defined as - - follows: - - - network: A physical communication service in which all - attached hosts communicate with all other hosts - using a uniform, local set of link, addressing, - and transport protocols; i.e. the "usual" meaning - of the word. To quote Cerf [1], "the term - 'local' is used in a loose sense here, since it - means 'peculiar to the particular network' rather - than 'a network of limited geographical extent'. - A satellite-based network, such as the ARPA - packet satellite network, therefore has 'local' - characteristics (e.g. broadcast operation) even - though it spans many thousands of square miles - geographically speaking." A network must appear - to be homogeneous from the "outside looking in"; - however, this does not necessarily preclude an - internal structure. - - Internet Network: - A communicating system of hosts and/or networks - belonging to The Internet, and which can be - uniquely identified by an 8-bit "network number" - assigned by the number czar [3]. This may - correspond to part of a network, one network, or - a concatenation of many networks. Note that the - Wideband Net is an Internet Network. - - catenet: A collection of two or more networks, arbitrarily - interconnected by gateways, in which the - communicating hosts have agreed, a-priori, on - some canonical "catenet protocol" which is used - for datagram transport. - - The Internet: The collection of Internet Networks, along with - their Internet Gateways. Hosts on The Internet - communicate using version 4 of the DoD Standard - Internet Protocol [2]. - - gateway: A logical host which is connected to two or more - networks, and which can forward "catenet - protocol" datagrams arriving from any of these - - - - 15 - - W-Note-16 BBN - IEN-162 - - - networks to the appropriate outgoing network. - Many adjectives may be applied to "gateway" as - needed. A hidden gateway is one whose presence - is generally unknown by the hosts attached to the - networks adjacent to the gateway. A non-routing - (or static-routing) gateway makes its routing - decisions based on a-priori information; a - routing gateway exchanges information with other - routing gateways in order to be able to make - dynamic adjustments to its routing information as - the conditions of the catenet change. - - Internet Gateway: - A gateway connected to two or more Internet - Networks, which can forward internet datagrams. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 16 - - W-Note-16 BBN - IEN-162 - - - REFERENCES - - - [1] Cerf. - The Catenet Model for Internetworking. - Internet Experiment Note 48, July, 1978. - - [2] Postel, ed. - The DoD Standard Internet Protocol. - Internet Experiment Note 128, January, 1980. - - [3] Postel, ed. - Assigned Numbers. - Request for Comments 770, September, 1980. - - [4] Strasisar. - How to Build a Gateway. - Internet Experiment Note 109, August, 1979. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 17 - diff --git a/text/ien/ien163.txt b/text/ien/ien163.txt deleted file mode 100644 index e69e817e..00000000 --- a/text/ien/ien163.txt +++ /dev/null @@ -1,521 +0,0 @@ - - - - - - - - - - - - - - - - - - - Echo Delay Measurements With GGP Packets - - - IEN 163 - - - R.G.Jones - - - - November 1980 - - - - - - - - - - - - - - - - University College London - - - - - - - - - - - - - - - GGP IEN - Echo 163 -Delays - - - - 1. Introduction - - This IEN is intended to facilitate discussion of - internet delays as seen from the UK. It presents a - series of measurements of round trip times for GGP echo - packets. - - The GGP packet generator was an LSI-11 host on the - UCL Port Expander (the UCLnet/SATNET/Nullnet gateway is - another host on this Port Expander). Round-trip times - were measured by timestamping the packet on initiation - of output and again on completion of input. The time - reference was a programmable clock with 1 millisecond - resolution (based on a 10 MHz crystal). - - Echo delays were measured for the following - destinations: - - address - UCLnet/SATNET/Nullnet gateway 11 3 0 42 - RSRE PPSN/Nullnet gateway 35 6 0 0 - Goonhilly SIMP 4 0 0 63 - BBN SATNET/ARPANET gateway 4 0 0 61 - Bragg PR/ARPANET gateway 10 0 0 38 - SRI PR1/ARPANET gateway 10 3 0 51 - SRI PR2/ARPANET gateway 10 1 0 51 - - For each destination, 1000 packets were sent at 4 - second intervals. - - The results are presented in the following pages. - Each page is devoted to one destination. Two histograms - are provided for the given destination, the upper - showing the structure of the distribution of times and - the lower with a scale common to all destinations to - simplify comparisons. - - On each histogram the count is given as a percentage - of the total number of replies received. The heading - gives the total number of replies received for the 1000 - packets sent; the minimum, maximum and average times - for all the replies; and the number of replies falling - within, above and below the histogram range plotted. - The round trip times given are in milliseconds. The - date of the experiment is in the English (day/month) - format and the time is given as GMT. - - - - 1 - R.G.Jones - - - ECHO DESTINATION UCL UCL/SAT gway DATE 17/11/80 TIME 14.00-15.07 - 1000 packets minimum time 30 maximum 40 average 32 - 999 within histogram range 0 below 1 above -count | - | - 84%_| _____ - | |/////| - | |/////| - | |/////| - | |/////| - | |/////| - | |/////| - | |/////| - | |/////| - | |/////| - | |/////| - | |/////| - | |/////| - | |/////| - | |/////| - | |/////|_____ - | |/////|/////| - | |/////|/////| - |_____ _____|/////|/////|_____ _____ _____ _____ _____ _____ - 0_|________________________________________________________________ time - | | | | | | | | | | | ms - 30 31 32 33 34 35 36 37 38 39 40 - - ECHO DESTINATION UCL UCL/SAT gway DATE 17/11/80 TIME 14.00-15.07 - 1000 packets minimum time 30 maximum 40 average 32 - 1000 within histogram range 0 below 0 above -count | - | - 100%_|_ - |/| - |/| - |/| - |/| - |/| - |/| - |/| - |/| - |/| - |/| - |/| - |/| - |/| - |/| - |/| - |/| - |/| - |/|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - 0_|________________________________________________________________ time - | | | | | | | | | | | ms - 0 300 600 900 1200 1500 1800 2100 2400 2700 3000 - - - 2 - - - ECHO DESTINATION RSRE PPSN/N gway DATE 14/11/80 TIME 12.15-13.22 - 1000 packets minimum time 244 maximum 346 average 263 - 983 within histogram range 5 below 12 above -count | - | - 44%_| _ - | |/| - | |/| - | |/| - | |/| - | |/| - | |/| - | _|/| - | |/|/| - | |/|/| - | |/|/| - | |/|/|_ - | |/|/|/| - | |/|/|/| - | |/|/|/| - | |/|/|/| - | |/|/|/| - | _|/|/|/|_ - |_ _ _ _ _ _ _ _ _ _ _|/|/|/|/|/|_ _ _ _ _ _ _ _ _ _ _ _ _ _ - 0_|________________________________________________________________ time - | | | | | | | | | | | | | | | | ms - 250 252 254 256 258 260 262 264 266 268 270 272 274 276 278 280 - - ECHO DESTINATION RSRE PPSN/N gway DATE 14/11/80 TIME 12.15-13.22 - 1000 packets minimum time 244 maximum 346 average 263 - 1000 within histogram range 0 below 0 above -count | - | - 99%_| _ - | |/| - | |/| - | |/| - | |/| - | |/| - | |/| - | |/| - | |/| - | |/| - | |/| - | |/| - | |/| - | |/| - | |/| - | |/| - | |/| - | |/| - |_ _|/|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - 0_|________________________________________________________________ time - | | | | | | | | | | | ms - 0 300 600 900 1200 1500 1800 2100 2400 2700 3000 - - - 3 - - - ECHO DESTINATION Goonhilly SIMP DATE 17/11/80 TIME 10.05-11.12 - 997 packets minimum time 80 maximum 284 average 104 - 954 within histogram range 0 below 43 above -count | - | - 14%_| _ - | |/| - | |/|_ - | |/|/| - | |/|/| - | _|/|/| - | |/|/|/|_ - | |/|/|/|/| - | |/|/|/|/| - | |/|/|/|/| - | |/|/|/|/| - | |/|/|/|/| - | |/|/|/|/| - | |/|/|/|/|_ _ - | |/|/|/|/|/| |/|_ _ _ _ - | _ _ _ _|/|/|/|/|/|_ _ _ |/|/|/| |/|/| - | |/|/|/|/|/|/|/|/|/|/|/|/|_ _|/|/|/|_ _|/|/| - |_|/|/|/|/|/|/|/|/|/|/|/|/|/|_|/|/|/|/|/|/|/|/|_ _ _ _ _ _ - |/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|_ - 0_|________________________________________________________________ time - | | | | | | | | | | | | | | | | ms - 80 84 88 92 96 100 104 108 112 116 120 124 128 132 136 140 - - ECHO DESTINATION Goonhilly SIMP DATE 17/11/80 TIME 10.05-11.12 - 997 packets minimum time 80 maximum 284 average 104 - 997 within histogram range 0 below 0 above -count | - | - 61%_|_ - |/| - |/| - |/| - |/| - |/| - |/| - |/|_ - |/|/| - |/|/| - |/|/| - |/|/| - |/|/| - |/|/| - |/|/| - |/|/| - |/|/| - |/|/| - |/|/|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ - 0_|________________________________________________________________ time - | | | | | | | | | | | ms - 0 300 600 900 1200 1500 1800 2100 2400 2700 3000 - - - 4 - - - ECHO DESTINATION BBN SATNET/A gway DATE 17/11/80 TIME 8.40-9.47 - 994 packets minimum time 1443 maximum 4344 average 1929 - 983 within histogram range 0 below 11 above -count | - | - 15%_| _ - | |/| - | _|/| _ - | |/|/|_|/| - | _|/|/|/|/| - | |/|/|/|/|/| - | |/|/|/|/|/|_ - | |/|/|/|/|/|/| - | |/|/|/|/|/|/| - | _|/|/|/|/|/|/| - | |/|/|/|/|/|/|/| - | |/|/|/|/|/|/|/| - | |/|/|/|/|/|/|/| - | |/|/|/|/|/|/|/|_ - | |/|/|/|/|/|/|/|/| - | _|/|/|/|/|/|/|/|/| - | |/|/|/|/|/|/|/|/|/| - | _ _ _|/|/|/|/|/|/|/|/|/|_ _ _ _ _ _ _ - |_ _|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|_ _|/|/|_|/|_ _|/|_ _ _ _ - 0_|________________________________________________________________ time - | | | | | | | | | | | ms - 1400 1550 1700 1850 2000 2150 2300 2450 2600 2750 2900 - - ECHO DESTINATION BBN SATNET/A gway DATE 17/11/80 TIME 8.40-9.47 - 994 packets minimum time 1443 maximum 4344 average 1929 - 985 within histogram range 0 below 9 above -count | - | - 28%_| _ - | |/|_ - | |/|/| - | |/|/| - | |/|/| - | |/|/| - | _|/|/| - | |/|/|/| - | |/|/|/|_ - | |/|/|/|/| - | |/|/|/|/| - | |/|/|/|/| - | |/|/|/|/| - | |/|/|/|/| - | |/|/|/|/| - | |/|/|/|/| - | _|/|/|/|/| - | _|/|/|/|/|/|_ _ _ _ _ - |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _|/|/|/|/|/|/|/|/|_|/|/|/|_ _ _ - 0_|________________________________________________________________ time - | | | | | | | | | | | ms - 0 300 600 900 1200 1500 1800 2100 2400 2700 3000 - - - 5 - - - ECHO DESTINATION Bragg PR/A gway DATE 12/11/80 TIME 9.45-10.52 - 1000 packets minimum time 1689 maximum 8402 average 2270 - 982 within histogram range 1 below 17 above -count | - | - 13%_| _ _ - | |/| _|/| - | |/|_|/|/| - | |/|/|/|/|_ - | |/|/|/|/|/| - | |/|/|/|/|/| - | _|/|/|/|/|/| - | |/|/|/|/|/|/|_ - | |/|/|/|/|/|/|/| - | |/|/|/|/|/|/|/| - | |/|/|/|/|/|/|/| - | |/|/|/|/|/|/|/| - | _|/|/|/|/|/|/|/| - | |/|/|/|/|/|/|/|/| - | _|/|/|/|/|/|/|/|/| - | _|/|/|/|/|/|/|/|/|/|_ - | _|/|/|/|/|/|/|/|/|/|/|/| - | _ _|/|/|/|/|/|/|/|/|/|/|/|/|_ _ _ _ _ _ _ _ _ _ _ _ - |_|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|_ _ _ - 0_|________________________________________________________________ time - | | | | | | | | | | | ms - 1700 1850 2000 2150 2300 2450 2600 2750 2900 3050 3200 - - ECHO DESTINATION Bragg PR/A gway DATE 12/11/80 TIME 9.45-10.52 - 1000 packets minimum time 1689 maximum 8402 average 2270 - 975 within histogram range 0 below 25 above -count | - | - 25%_| _ _ - | |/|/| - | |/|/| - | |/|/| - | |/|/| - | |/|/|_ - | |/|/|/| - | |/|/|/| - | |/|/|/| - | _|/|/|/| - | |/|/|/|/| - | |/|/|/|/| - | |/|/|/|/| - | |/|/|/|/| - | _|/|/|/|/| - | |/|/|/|/|/| - | _|/|/|/|/|/|_ - | _|/|/|/|/|/|/|/|_ _ _ _ _ - |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|/|/|/|/|/|/|/|/|/|/|/|/|/| - 0_|________________________________________________________________ time - | | | | | | | | | | | ms - 0 300 600 900 1200 1500 1800 2100 2400 2700 3000 - - - 6 - - - ECHO DESTINATION SRI PR1/A gway DATE 14/11/80 TIME 11.00-12.07 - 998 packets minimum time 1715 maximum 5574 average 2266 - 978 within histogram range 0 below 20 above -count | - | - 13%_| _ - | |/| - | |/|_ _ - | |/|/|/|_ - | |/|/|/|/|_ - | |/|/|/|/|/| - | |/|/|/|/|/| - | _|/|/|/|/|/|_ - | |/|/|/|/|/|/|/| - | |/|/|/|/|/|/|/| - | |/|/|/|/|/|/|/| - | |/|/|/|/|/|/|/| - | _|/|/|/|/|/|/|/| - | |/|/|/|/|/|/|/|/| - | |/|/|/|/|/|/|/|/| - | _ _ _|/|/|/|/|/|/|/|/| - | _|/|/|/|/|/|/|/|/|/|/|/|_ _ _ - | _|/|/|/|/|/|/|/|/|/|/|/|/|/|_ |/|_ _ _ _ _|/|_ _ - |_|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|_|/|/|/|/|/|/|/|/|_|/|_ _ _ - 0_|________________________________________________________________ time - | | | | | | | | | | | ms - 1700 1850 2000 2150 2300 2450 2600 2750 2900 3050 3200 - - ECHO DESTINATION SRI PR1/A gway DATE 14/11/80 TIME 11.00-12.07 - 998 packets minimum time 1715 maximum 5574 average 2266 - 970 within histogram range 0 below 28 above -count | - | - 25%_| _ - | |/| - | |/|_ - | |/|/| - | |/|/| - | |/|/|_ - | |/|/|/| - | |/|/|/| - | |/|/|/| - | _|/|/|/| - | |/|/|/|/| - | |/|/|/|/| - | |/|/|/|/| - | |/|/|/|/| - | |/|/|/|/| - | _ _|/|/|/|/| - | |/|/|/|/|/|/|_ - | _|/|/|/|/|/|/|/|_ _ _ _ _ - |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|/|/|/|/|/|/|/|/|/|/|/|/|/| - 0_|________________________________________________________________ time - | | | | | | | | | | | ms - 0 300 600 900 1200 1500 1800 2100 2400 2700 3000 - - - 7 - - - ECHO DESTINATION SRI PR2/A gway DATE 14/11/80 TIME 9.50-10.57 - 999 packets minimum time 1764 maximum 5438 average 2265 - 976 within histogram range 0 below 23 above -count | - | - 14%_| _ - | _ |/| - | |/| |/| - | |/|_ _|/|_ - | |/|/|/|/|/| - | |/|/|/|/|/| - | |/|/|/|/|/| - | |/|/|/|/|/| - | _|/|/|/|/|/|_ - | |/|/|/|/|/|/|/| - | |/|/|/|/|/|/|/| - | |/|/|/|/|/|/|/| - | |/|/|/|/|/|/|/| - | _|/|/|/|/|/|/|/| - | |/|/|/|/|/|/|/|/| - | _|/|/|/|/|/|/|/|/|_ - | _ _ _|/|/|/|/|/|/|/|/|/|/| - | _|/|/|/|/|/|/|/|/|/|/|/|/|/| _ _ _ _ _ _ - |_|/|/|/|/|/|/|/|/|/|/|/|/|/|/|_ _|/|_ _ _|/|/|/|_|/|/|_ _ _ - 0_|________________________________________________________________ time - | | | | | | | | | | | ms - 1700 1850 2000 2150 2300 2450 2600 2750 2900 3050 3200 - - ECHO DESTINATION SRI PR2/A gway DATE 14/11/80 TIME 9.50-10.57 - 999 packets minimum time 1764 maximum 5438 average 2265 - 964 within histogram range 0 below 35 above -count | - | - 26%_| _ - | _|/| - | |/|/| - | |/|/| - | |/|/| - | |/|/|_ - | |/|/|/| - | |/|/|/| - | |/|/|/| - | _|/|/|/| - | |/|/|/|/| - | |/|/|/|/| - | |/|/|/|/| - | |/|/|/|/| - | |/|/|/|/| - | _|/|/|/|/| - | _|/|/|/|/|/|_ - | _|/|/|/|/|/|/|/|_ _ - |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|/|/|/|/|/|/|/|/|/|_ _|/|_ - 0_|________________________________________________________________ time - | | | | | | | | | | | ms - 0 300 600 900 1200 1500 1800 2100 2400 2700 3000 - - - 8 - diff --git a/text/ien/ien164.txt b/text/ien/ien164.txt deleted file mode 100644 index 13900fb7..00000000 --- a/text/ien/ien164.txt +++ /dev/null @@ -1,1415 +0,0 @@ - - - - - - - - - CMOS SYSTEM OVERVIEW - - - - Jerry Stern, Greg Ruth, and Jack Haverty - - - Bolt Beranek and Newman Inc. - - - January 12, 1981 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Stern, Ruth, and Haverty -1- Version 1.0 - - IEN 164 January 1981 Preliminary - - - - - Table of Contents - - - - - 1 Introduction.......................................... 2 - 2 General Design Considerations......................... 3 - 3 Process Management.................................... 5 - 4 Interprocess Communication............................ 5 - 5 Input/Output.......................................... 6 - 6 Memory Allocation..................................... 7 - 7 System Clock.......................................... 8 - 8 Software Development Tools............................ 8 - 9 Future Development.................................... 8 - 10 CMOS System Calls.................................... 9 - 11 System Generation................................... 19 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Stern, Ruth, and Haverty -i- Version 1.0 - - IEN 164 January 1981 Preliminary - - - - - 1 Introduction - - CMOS is a multiprogrammed real-time operating system for - BBN's C-machines. It is essentially a reimplementation of MOS, - (1) a PDP-11 operating system developed by SRI. Whereas MOS is - written in Macro-11 assembly language, CMOS is written in C. (2) - - Programming support for CMOS is provided by the UNIX - operating system. CMOS itself, as well as program modules - written to run as CMOS processes, are edited and compiled on the - UNIX operating system, and object modules are loaded into the - target machine. Since both the development and target machines - support C-based code, it is also feasible to do some initial - debugging in the time-shared environment. - - CMOS is a small, simple operating system that provides the - following basic features: - - - multiple processes - - - interprocess communication/coordination - - - asynchronous I/O - - - memory allocation - - - system clock management. - - - CMOS development was motivated by the desire to produce a - C-machine operating system suitable for use in communications- - oriented applications. In light of favorable experience with - MOS, it was decided to adapt a version of MOS for the C-machine. - The choice of C as a system programming language was dictated by - the specific nature of the C-machine. The C-machine is a - microprogrammed, 20-bit machine which has an architecture - explicitly designed to support the C language. The C-machine - comes in two models: the C/50, which has a 1-megabyte (1 "byte" - = 10 bits) physical address space and no memory management; and - the C/70, which has a 2-megabyte address space and memory - management. Versions of CMOS have been developed for both of - these machines, as well as for the LSI-11 and the Z8000. - - - _______________ - (1) Kunzelman, R. C., J. E. Mathis, and D. L. Retz, "Progress - Report on Packet Radio Experimental Network, Quarterly Technical - Report No. 8." - (2) Kernighan, B. W. and D. M. Ritchie, "The C Programming - Language", Prentice-Hall, Inc., 1978. - - - Stern, Ruth, and Haverty -2- Version 1.0 - - IEN 164 January 1981 Preliminary - - - - - It should be noted that, although CMOS is targeted for use - in several applications, it has not yet been used anywhere and - should be considered as still under development. - - One major motivation for the creation of CMOS was to provide - an operating system for the C machines, for use in applications - where the memory limitations make LSI-11 approaches unsuitable. - Although CMOS will run on LSI-11s, this is not an intended use. - CMOS systems may use processes which exceed the address space of - the LSI-11 architecture, and can only be run on C-machines or - other machines which support the needed memory. - - The important aspects of the CMOS design are described in - the following sections. The final sections provide a detailed - description of CMOS primitives and general system generation - information. - - - - 2 General Design Considerations - - The design and programming of CMOS have been motivated by - goals of style, clarity, and consistency rather than a desire to - achieve ultimate efficiency. This is not to say that efficiency - issues have been ignored. CMOS is quite compact and efficient by - virtue of its simplicity. Design principles and programming - practices have not been compromised, however, for the sake of - saving every possible byte or cpu cycle. - - CMOS is designed to be an "open" operating system. This - means that no distinct division exists between the operating - system and the application program. One can view the operating - system as a collection of library routines. The operating system - can be easily extended by adding new routines and can be reduced - by excluding unneeded routines. The programmer is not confined - to the outermost interface presented by the operating system. If - appropriate, the programmer can directly access lower-level - interfaces. - - Although CMOS is intended primarily for C-machines, it is - designed to be a portable operating system. The use of a high- - level language is, of course, the principal factor in CMOS - portability. Small size and simplicity are other important - factors. The design attempts to minimize the amount of machine- - dependent code and to segregate it into separate modules. The - I/O system design allows for easy replacement of device-dependent - modules. Versions of CMOS exist for the PDP-11 and the Z8000 - computers. - - - - - Stern, Ruth, and Haverty -3- Version 1.0 - - IEN 164 January 1981 Preliminary - - - - - CMOS does not support either virtual memory or virtual - address spaces. The entire system shares a single, physical - address space. This lack of sophistication is due, in large - part, to the nature of real-time systems. Programs and data must - be continuously available in main memory in order to meet - response-time requirements. Thus, virtual memory techniques such - as swapping or paging are not suitable for real-time - applications. - - The issue of virtual address spaces is more complicated. - The most common reason for providing virtual address spaces in - real-time systems is to overcome an architectural deficiency of - the computer. Many computers have small address spaces, yet can - support a much larger amount of physical memory. Therefore, - multiple address spaces are required to take advantage of larger - memory sizes. - - The C-machines do not suffer from this architectural defect. - The C/50 provides a one-megabyte address space and the C/70 twice - that. This is sufficient for all currently envisioned CMOS - applications. For this reason, the current CMOS does not need, - and does not support, virtual address spaces. For other machines - (e.g., the PDP-11), address space limitations are more severe. - On these machines, CMOS may be limited to a class of smaller - applications. - - Other applications may motivate further extensions to CMOS, - to introduce process isolation using memory mapping, dynamic - process creation, preemption, or other additions to the basic - functionality. - - The use of a single address space gives CMOS several - important advantages over multiple address space systems. First, - the single address space is a major contributing factor to the - overall simplicity of CMOS. Not only is the operating system - relieved of address space management chores, but also, - programming and debugging are generally facilitated. Second, - data sharing among processes is direct, convenient, and - efficient. In multiple address space systems, memory sharing is - often a difficult problem. Third, I/O devices have direct access - to all of memory. In multiple address space systems, I/O devices - are typically restricted to a single address space. This often - produces a need for extra data copying, especially in connection - with DMA devices. Fourth, an entire CMOS system is linked - together as one composite program. This means that non-identical - processes can still share a single copy of common subroutines. - Multiple address space systems usually cannot match this level of - code-space efficiency. The large address space provided by CMOS - obviates the need to artificially split systems into a number of - - - - Stern, Ruth, and Haverty -4- Version 1.0 - - IEN 164 January 1981 Preliminary - - - - - processes because of the address space limitations. - - - - 3 Process Management - - CMOS processes are defined at compilation time. They cannot - be dynamically created or destroyed during system operation. For - each process, a set of basic attributes is specified including a - name, an initial program entrypoint, and a stack size. - - CMOS employs a rudimentary process scheduling method. Three - process states are defined: (1) running; (2) ready to run; and - (3) waiting for an event. A running process always runs to - completion. This means that the processor is relinquished only - by explicit action of the running process. It is never taken - away by the operating system. There is no time-slicing or other - form of preemption. The next process to run is selected by a - simple round-robin algorithm. All processes have a uniform - scheduling priority. - - This non-preemptive scheduling discipline has important - implications. First, processes must be designed not to - monopolize the processor for long time periods. Otherwise, - crucial tasks may fail to be serviced in a timely fashion. - Second, critical program sections (i.e., program sections that - can be safely entered by only one process at a time) need no - explicit protection. The absence of preemption guarantees the - integrity of critical program sections. - - Interrupt handling creates a separate class of critical - sections that are not protected by the scheduling discipline. - These critical sections exist only within the operating system - and are of no concern to application programs. CMOS protects - these critical sections in the standard manner (viz., by - temporarily disabling interrupts). - - - - 4 Interprocess Communication - - CMOS processes communicate with one another by passing - messages known as "events". For this purpose, the operating - system provides primitives called "signal", "wait", and "recv". - The signal primitive permits a process to send an event to - another process. The wait primitive permits a process to wait - for an event that may or may not have arrived. The recv - primitive permits a process to receive an event that has already - arrived. - - - - Stern, Ruth, and Haverty -5- Version 1.0 - - IEN 164 January 1981 Preliminary - - - - - An event message contains the sender process ID, an event - ID, and one word of unspecified data. The event ID is used to - indicate the type of event. Both the wait and receive primitives - allow a process to select the event IDs of immediate interest. - The meaning of the data word depends on the event type. It is - quite common for the data word to contain a pointer to a larger - data structure. - - CMOS provides a facility that helps to automate event - processing activities. A process can designate a procedure to be - the event handler for a particular event type. Thereafter, the - event handler becomes active whenever a special wait primitive, - called "waith", is invoked. For each event received, waith - checks to see if an event handler has been defined. If so, the - event handler procedure is automatically dispatched. This frees - the caller of waith from the responsibility of having to deal - with events not of direct interest. Processing of these events - can be viewed as a background activity. - - - - 5 Input/Output - - CMOS provides an asynchronous I/O facility. To perform I/O, - a process creates an I/O request block (IORB). The IORB - identifies the target device, the type of operation (e.g., read, - write, abort), and information relevant to the particular - operation (e.g., buffer areas for data transfer). The IORB also - specifies an event ID. To initiate processing, the IORB is - passed to the operating system. When the request is completed, - the operating system signals an event to the requesting process. - The event message contains the event ID taken from the IORB and a - data word that contains the address of the IORB. In this way, - the requesting process can easily associate the completion event - with the original request. Status information is returned in the - IORB. - - A process can direct I/O to a specific device or to a - special "primary" device. Primary devices are defined on a per- - process basis and can be either assigned (to a specific device) - or unassigned. If a process attempts to perform I/O on an - unassigned primary device, the process is suspended until a - primary device is assigned. This permits a single device to be - moved from one process to another and thereby provides a simple - way to share a terminal among several processes. - - The core of the CMOS I/O system is a device-independent - module, "eior" (enter I/O request), that provides a centralized - interface between the application program and the various device - driver modules. As described above, this interface accepts IORBs - from the application program. The IORBs are automatically queued - - Stern, Ruth, and Haverty -6- Version 1.0 - - IEN 164 January 1981 Preliminary - - - - - on a per-device basis. If desired, requests from different - processes can be interspersed for the same device. When a device - becomes ready to accept the next request, the first IORB in the - device queue, if any, is passed to the appropriate device driver - module. - - All device driver modules provide a standardized interface - expected by the core I/O system. This interface consists of four - entrypoints: (1) a configuration entry; (2) an initialization - entry; (3) a request entry; and (4) an interrupt handler entry. - A system configuration table specifies the driver configuration - entry for each device. During system initialization, the - configuration entry is invoked to obtain the other three driver - entrypoints, and the size of any per-device data base required by - the driver. The initialization entry is invoked automatically - before the first IORB is passed to the driver. The request and - interrupt handler entries perform standard device control - functions. At present, CMOS includes driver modules for - asynchronous terminals and for 1822 network interfaces. - - - - 6 Memory Allocation - - CMOS includes routines that allocate and deallocate blocks - of memory from a free storage pool. Both the operating system - and the application program share a common pool. Three - allocation options are available to control operating system - behavior in the case of an allocation failure: (1) return an - error code; (2) wait for more memory to become available; and (3) - cease system operation. - - CMOS provides an allocation mechanism only, not an - allocation policy. The policy, of course, is the responsibility - of the application program. In practice, however, few - application programs incorporate a memory allocation policy that - eliminates the possibility of free space exhaustion. Instead, - some applications include a recovery mechanism to deal with this - problem. It is reasonable to expect that such a mechanism will - depend upon the continued functioning of the operating system. - Therefore, the operating system must not itself become - immediately disabled as a result of free space exhaustion. - - To prevent disablement, CMOS depends on "reserve storage - pools". A separate reserve storage pool is created for each type - of object needed by a crucial function. The operating system - uses two such pools, one for event messages and one for timer - queue entries. Reserve storage pools are managed by special - allocation and deallocation routines. The special allocation - routine first attempts to obtain space from the common pool. If - this fails, space is taken instead from the reserve pool and the - - Stern, Ruth, and Haverty -7- Version 1.0 - - IEN 164 January 1981 Preliminary - - - - - caller is so informed. If the reserve pool is exhausted, the - system dies. - - System primitives that use reserve storage pools return an - indication of when reserve storage has been tapped. An - application program can therefore detect free space exhaustion by - this means or by the direct failure of a simple allocation - request. At this point, the operating system will continue to - function for a period of time (or number of calls) determined by - reserve storage pool sizes. - - - - 7 System Clock - - CMOS provides a clock management facility that maintains a - time-of-day clock and permits processes to set "alarms". An - alarm is simply an event that is signalled by the clock manager - after a specified time period has elapsed. Both the event ID and - the data word of the event message are specified by the process - that sets the alarm. An alarm can be either a one-time alarm or - an interval alarm that is automatically repeated at regular - intervals. - - - - 8 Software Development Tools - - All programming support for CMOS software development is now - provided by the UNIX time-sharing system, via the UNIX C compiler - and linker. BBN has developed a Version 7 UNIX and a C - compiler/linker to run on the C-machines. - - The same hardware configuration of a C-machine can support - both the UNIX and CMOS systems, although not simultaneously, of - course. We plan to use the UNIX system development tools to - create CMOS systems, which can then be run and tested by - bootstrapping the CMOS code in place of UNIX on the same or - different hardware. - - - - 9 Future Development - - There is a variety of possible extensions to CMOS, which - take advantage of the increased flexibility provided by the - hardware base. We intend to pursue these as specific - applications arise which require additional functionality. - - - - - Stern, Ruth, and Haverty -8- Version 1.0 - - IEN 164 January 1981 Preliminary - - - - - The most interesting category of extensions involves the use - of the memory mapping hardware available for C machines. In the - standard C-machine configuration, the 20-bit address space - provides access to a physical memory of 1 Mbyte. - - Within this physical address space, processes can share any - or all of the memory, since the process address space is also 1 - Mbyte. - - The memory mapper hardware extends the machine's - capabilities in two ways. The first extension provides for - support of 2 Mbytes of physical memory. Each process is, - however, limited to 1 Mbyte of address space. The second - extension lies in the ability of the memory map to support eight - independent active process maps. This creates an environment in - which processes can share portions of their address spaces with - the system or other processes, with fast context switching - between the eight active processes. This removes two of the - basic limitations we have encountered in real-time designs based - on PDP-11 architectures, namely, the granularity of memory - sharing and the speed of context switching. - - The CMOS environment has not yet been extended to utilize - these additional facilities, although we anticipate that this - effort will begin soon. - - - - 10 CMOS System Calls - - This section describes CMOS system calls available to the - application programmer. These calls are divided into two major - groups, low-level functions and higher-level functions. The - low-level functions correspond roughly to the MOS interface, and - the higher-level functions provide certain additional - capabilities. The usage of each system call is described in - terms of the C language. Two typedefs are first defined and then - referenced by a few of the system call descriptions. - - - - - typedef struct { /* event message buffer */ - char msevent; /* event ID */ - char mssender; /* sender process ID */ - int msdata; /* user data */ - } MSG; - - - - - - Stern, Ruth, and Haverty -9- Version 1.0 - - IEN 164 January 1981 Preliminary - - - - - - typedef struct iorb { /* I/O request block */ - struct iorb *irnextp; /* ptr to next IORB on chain */ - int irdevid; /* device ID */ - char irevent; /* completion signal event */ - char irpid; /* requestor's process ID */ - char *irbufp; /* buffer ptr */ - char irport; /* port number of request */ - char iropcode; /* operation code */ - int irbufsiz; /* buffer size (in bytes) */ - int irstatus; /* status of I/O operation */ - int irnxfer; /* number of bytes transferred */ - int irpad[2]; /* mysterious padding */ - } IORB; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Stern, Ruth, and Haverty -10- Version 1.0 - - IEN 164 January 1981 Preliminary - - - - - LOW-LEVEL FUNCTIONS - - - - - Process Attributes - - - Name: getpid - Function: convert process name to process ID - Usage: pid = getpid (name) - - char name[]; /* process name to convert - null name => calling process */ - int pid; /* process ID for given name */ - - - - - Name: getpn - Function: convert process ID to process name - Usage: pn = getpn (pid, namep) - - int pid; /* process ID to convert - 0 => calling process */ - char *namep; /* place to store name */ - char *pn; /* same as namep */ - - - - - Name: getprio - Function: get primary I/O devices of specified process - Usage: getprio (pid, priop) - - int pid; /* process ID, 0 => calling process */ - struct { - int idevid; /* primary input device ID */ - int odevid; /* primary output device ID */ - } *priop; - - - - - - - - - - - - - Stern, Ruth, and Haverty -11- Version 1.0 - - IEN 164 January 1981 Preliminary - - - - - - Name: setprio - Function: set primary I/O devices of specified process - Usage: setprio (pid, idevid, odevid) - - int pid; /* process ID, 0 => calling process */ - int idevid; /* input device ID, <0 => no change */ - int odevid; /* output device ID, <0 => no change */ - - - - - Name: movprio - Function: move primary I/O devices of caller to another process - Usage: movprio (pid) - - int pid; /* target process ID */ - - - - - - Device Attributes - - - Name: getdid - Function: convert device name to device ID - Usage: devid = getdid (name) - - char name[]; /* device name to convert */ - int devid; /* device ID */ - - - - - Name: getdn - Function: convert device ID to device name - Usage: dn = getdn (devid, namep) - - int devid; /* device ID to convert */ - char *namep; /* place to store name */ - char *dn; /* same as namep */ - - - - - - - - - - - Stern, Ruth, and Haverty -12- Version 1.0 - - IEN 164 January 1981 Preliminary - - - - - - Input/Output - - - Name: eior - Function: enter an I/O request - Usage: ec = eior (iorbp) - - IORB *iorbp; /* I/O request block ptr */ - int ec; /* error code */ - - - - - - Interprocess Communication - - - Name: signal - Function: signal an event to a process - Usage: sw = signal (pid, event, data) - - char pid; /* target process ID */ - char event; /* event number */ - int data; /* data for target process */ - int sw; /* 1 if reserve pool used to queue - signal, else 0 */ - - - - - Name: wait - Function: wait for any event - Usage: wait (msgp) - - MSG *msgp; /* ptr to message buffer */ - - - - - Name: waits - Function: wait for a single specified event - Usage: waits (event, msgp) - - char event; /* desired event */ - MSG *msgp; /* message buffer ptr */ - - - - - - - Stern, Ruth, and Haverty -13- Version 1.0 - - IEN 164 January 1981 Preliminary - - - - - - Name: waitm - Function: wait for one of multiple specified events - Usage: waitm (evlist, nev, msgp); - - char *evlist; /* event list (array) */ - int nev; /* number of events in list */ - MSG *msgp; /* message buffer ptr */ - - - - - Name: recv - Function: receive any pending event - Usage: sw = recv (msgp) - - MSG *msgp; /* ptr to message buffer */ - int sw; /* 1 if event returned, else 0 */ - - - - - Name: recvs - Function: receive a single specified pending event - Usage: sw = recvs (event, msgp) - - char event; /* desired event */ - MSG *msgp; /* message buffer ptr */ - int sw; /* 1 if event returned, else 0 */ - - - - - Name: recvm - Function: receive one of multiple specified pending events - Usage: sw = recvm (evlist, nev, msgp); - - char *evlist; /* event list (array) */ - int nev; /* number of events in list */ - MSG *msgp; /* message buffer ptr */ - int sw; /* 1 if event returned, else 0 */ - - - - - - - - - - - - Stern, Ruth, and Haverty -14- Version 1.0 - - IEN 164 January 1981 Preliminary - - - - - - Memory Allocation - - - Name: alloc - Function: allocate memory block, return if not available - Usage: blkp = alloc (nbytes) - - int nbytes; /* size of block desired */ - char *blkp; /* ptr to allocated block, else null */ - - - - - Name: allocw - Function: allocate memory block, wait if not available - Usage: blkp = allocw (nbytes) - - int nbytes; /* size of block desired */ - char *blkp; /* ptr to allocated block */ - - - - - Name: allocd - Function: allocate memory block, die if not available - Usage: blkp = allocd (nbytes) - - int nbytes; /* size of block desired */ - char *blkp; /* ptr to allocated block */ - - - - - Name: free - Function: free a previously allocated block - Usage: free (blkp) - - char *blkp; /* ptr to block */ - - - - - - - - - - - - - - Stern, Ruth, and Haverty -15- Version 1.0 - - IEN 164 January 1981 Preliminary - - - - - - System Clock Management - - - Name: alarm - Function: set alarm to awaken process - Usage: sw = alarm (event, data, delay) - - char event; /* signal event */ - int data; /* signal data */ - int delay; /* timeout period in seconds/60 */ - int sw; /* 1 if reserve pool used to queue - - - - - Name: ialarm - Function: set alarm to awaken process at regular intervals - Usage: sw = ialarm (event, data, interval) - - char event; /* signal event */ - int data; /* signal data */ - int interval; /* timeout interval in seconds/60 */ - int sw; /* 1 if reserve pool used to queue - - - - - Name: kalarm - Function: kill any specified pending alarms - Usage: kalarm (event, data) - - char event; /* event of requests to kill */ - int data; /* data of requests to kill */ - - - - - Name: setod - Function: set time of day - Usage: setod (time) - - long time; /* time of day */ - - - - - - - - - - Stern, Ruth, and Haverty -16- Version 1.0 - - IEN 164 January 1981 Preliminary - - - - - - Name: getod - Function: get time of day - Usage: time = getod () - - long time; /* time of day */ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Stern, Ruth, and Haverty -17- Version 1.0 - - IEN 164 January 1981 Preliminary - - - - - HIGHER-LEVEL FUNCTIONS - - - - - Event Management - - - Name: newev - Function: generate a new event number, unique system-wide - Usage: event = newev () - - char event; /* event number */ - - - - - Name: setevh - Function: associate an event handler routine with a specified - event for this process - Usage: oldent = setevh (event, entryp) - - char event; /* event to be handled */ - int (*entryp) (); /* event handler entrypoint */ - /* if null, cancel event handler */ - int (*oldent) (); /* previous entryp, else null */ - - - - - Name: waith - Function: wait for an event; dispatch event handler if one - is defined, else return. - Usage: waith (msgp) - - MSG *msgp; /* ptr to message buffer */ - - - - - Name: waitsh - Function: wait for an event; dispatch event handler if one is - defined; else return if event is the one specified; - else ignore event; - Usage: waitsh (event, msgp) - - char event; /* desired event */ - MSG *msgp; /* message buffer ptr */ - - - - - Stern, Ruth, and Haverty -18- Version 1.0 - - IEN 164 January 1981 Preliminary - - - - - - Synchronous Input/Output - - - Name: read - Function: read from a specified device; event handlers are - active while awaiting read completion. - Usage: nbytes = read (devid, bufp, bufsiz) - - int devid; /* device ID */ - char *bufp; /* buffer ptr */ - int bufsiz; /* buffer size */ - int nbytes; /* number of bytes read */ - - - - - Name: write - Function: write to a specified device; event handlers are - NOT active while awaiting write completion. - Usage: nbytes = write (devid, bufp, bufsiz) - - int devid; /* device ID */ - char *bufp; /* buffer ptr */ - int bufsiz; /* buffer size */ - int nbytes; /* number of bytes written */ - - - - - 11 System Generation - - The following CMOS modules must be linked into any system - configuration: - - cm_init Initialization routines. - - cm_data Process control and configuration tables. - - cm_util CMOS utilities. - - cm_err Error message routines. - - cm_proc Basic process management routines. - - cm_queue Queue manipulation routines. - - cm_ipc Interprocess communication routines. - - cm_mem Memory management primitives. - - - Stern, Ruth, and Haverty -19- Version 1.0 - - IEN 164 January 1981 Preliminary - - - - - cm_io Basic I/O routines. - - In addition to the required modules, the following optional - modules may be included for specific hardware device support: - - cm_time Timer management routines. - - cm_tty Terminal driver routines (to be rewritten). - - cm_1822 1822 driver routines (to be written). - - cm_smd Disk driver routines (to be written). - - cm_mlc MLC driver routines (to be written). - - In order to include DDT the following modules must be included: - - ddt_main - - ddt_cmd - - ddt_code - - ddt_brk - - ddt_sym - - - - - - - - - - - - - - - - - - - - - - - - - - - Stern, Ruth, and Haverty -20- Version 1.0 - - IEN 164 January 1981 Preliminary - - - - - References - - - - 1. Mathis, J. and Klemba, K., "The Micro Operating System," - Chapter 6 of Terminal Interface Unit Notebook, Vol. 2, SRI - International, March 1980. - - 2. Kraley, M. et al., "Design of a User-microprogrammable - Building Block," Thirteenth Annual Workshop on Microprogramming, - Colorado Springs, Colorado, 1980. - - 3. Ritchie, D.M. and Thompson, K., "The UNIX Time-Sharing - System," Bell System Technical Journal 57(6) pp. 1905-1929 - (1978). - - 4. Kernighan, B.W. and Ritchie, D.M., The C Programming Language, - Prentice-Hall, Inc., 1978. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Stern, Ruth, and Haverty -21- Version 1.0 - - IEN 164 January 1981 Preliminary - - - - - APPENDIX - - CMOS Error Messages (C-machine version) - - - cvdevnm: Device not found - - The mate specified for a device (in the device control table - initialization data) is not the name of any existing device. - - - getdcte: Bad device ID - - The CMOS primitive (e.g. eior, getdn) was called with an - invalid device id. - - - dlvrmsg: NULL msg ptr - - Due to an internal error (blush). - - - mkroom: Memory full - - Insufficient space in the free memory pool to accommodate - device driver data and/or process stacks during system - initialization. - - - alloc: Invalid request - - The CMOS primitive "alloc" has been called with a negative - block size. - - - free: Invalid addr - - The CMOS primitive "free" has been called with a pointer - outside the free memory pool. - - - allocd: Allocation failed - - An allocation request via the CMOS primitive "allocd" has - failed. - - - plalloc: Pool empty - - The reserve memory pool has been exhausted. - - - Stern, Ruth, and Haverty -22- Version 1.0 - - IEN 164 January 1981 Preliminary - - - - - dschd: Stack overflow - - A process has overrun its stack. This may be due to an - excessive depth of nested procedure calls. The only - solution is to reassemble the system with more stack space. - - - getpcte: Bad pid - - A CMOS primitive was called with a non-existent process id. - - - mktqe: Bad delay time - - A CMOS clock management primitive was given a timeout period - of 0 by the caller. - - - - In addition, there are various fatal conditions trapped by CMOS: - - TRAP: invalid memory addr - - TRAP: illegal instruction - - TRAP: illegal micro call - - TRAP: privileged operation - - TRAP: register overflow - - TRAP: EDAC error - - TRAP: register underflow - - For every trap the following machine status values are printed - out: - - PC = program counter - - PS = program status - - SP = stack pointer - - - - - - - - - - Stern, Ruth, and Haverty -23- Version 1.0 diff --git a/text/ien/ien165.txt b/text/ien/ien165.txt deleted file mode 100644 index 0eaee79a..00000000 --- a/text/ien/ien165.txt +++ /dev/null @@ -1,195 +0,0 @@ - -USC / ISI Danny Cohen -3 January 1981 Jon Postel -W-note-23 Steve Casner -IEN-165 - - - About addressing in the WBnet - ----------------------------- - -This note is written in response to W-note-16 (aka IEN-162, by John -Pershing) about a proposed addressing scheme for the WBnet. - -We found the above note to be very well written, and it points out a -very difficult problem in internetwork addressing; however, we beg to -differ with some of the underlying assumptions, and therefore have -arrived at another proposal. - -In this note we will first review the W-16 proposal, then present ours -and compare the two approaches. - - - The W-16 approach - ----------------- - -Assumptions and objectives: - - - Whichever addressing scheme is used had better be compatible - with IP. - - - There is a rich structure interconnecting hosts at all the - sites which are connected to the WBnet. This richness is - beyond what the processing nodes of the WBnet can be expected - to process directly - hence a hierarchical structure is - proposed. - - - The richness of all the host interconnections at all sites - combined is similar to that of the catenet - hence a similar - solution should work. - - - "To hide the physical structure of the Wideband Net from the - Internet and its gateways" - quoted from W-16. - - - "To unify the transport and routing functions performed within - the Wideband Net" - quoted from W-16. - 2 - -This yields the following addressing scheme: - -Consider ALL the hosts on the ALL the local-nets which are connected to -ALL the WBnet gateways as being WBnet hosts, and assign them WBnet -addresses which reflect their connectivity to the WBnet as shown below: - - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | 28. | Subnet Number | Reserved for Subnet Use | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - 8-bits 8-bits 16-bits - - -For example, if there are 4 Lexnets and one Voice Funnel, at some site, -then each of these 5 "things" is assigned its own subnet-ID. - -We hope that the above is an accurate reflection of the proposal as put -forth in W-16. - - - The ISI approach - ---------------- - -We, too, believe that there may be a rich structure of host -interconnections at each site. However, for the time being we expect -the number of hosts at each site to be small enough that 8 bits would -suffice for intra-site addressing. - -We also believe that all of our hosts are constituents of the catenet, -not of any particular network, including the WBnet. By this we mean -that any host should be addressable via any of the catenet networks to -which it has a connection. - -We would like to reserve 8 bits of the WBnet/IP address for local -addressing so that each host can be assigned a single local address. -This local address would remain constant independent of which gateway or -directly-connected host (if any) was being used as an intermediary. - -Therefore, we propose that only 16-bit WBnet addresses be assigned to -hosts which are connected to PSATs, directly or through some transparent -"port-expanding" mechanism such as a Voice Funnel. These hosts are -either bona fide hosts or full fledged IP (and/or ST) gateways. - -At ISI, for example, we will have probably one or two such hosts, -through which all the other hosts gain access to the WBnet. - -We prefer to see IP (and/or ST) gateways, not WBnet gateways, playing -the various intra-site communication roles (like routing) regardless of -which transport mechanism was used to get to the site, either Satellite -or terrestrial lines. - 3 - -Therefore we prefer the following addressing scheme: - - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Any Network | Addressing in that net | Local address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - 8-bits 16-bits 8-bits - -This allows traffic for any host at a site to arrive through any -existing gateway. - -The details associated with the routing of intra-site traffic do not -have to be propagated outside that site. - - - Comparison of the two approaches - -------------------------------- - -We acknowledge that our approach has the severe limitation that it can -currently support only up to (about) 256 hosts per site. Please note, -this is a restriction on the number of hosts but not necessarily on the -number of voice terminals, since NVP provides another level of -addressing called "extensions". - -We propose that when this limit is reached an extended addressing scheme -(along the lines of source routing) be used. - -The W-16 proposal requires that WBnet-gateways be installed between all -the local networks in every site. It requires that any change in -connectivity of the local networks be propagated to all the WBnet -gateways, in all the other sites, and be stored in all of them. This, in -our opinion, does not really comply with spirit of hiding local details -from the global world, as stated as one of the objectives of the scheme. - -We believe that our proposal meets the objectives stated at the -beginning of this note, at least as much as the W-16 proposal. -Especially it meets the requirement that the details of intra-site -communication are no one else's business. We think that as far as the -outside world is concerned there is no difference between using hosts -for port-expanding and using local networks, or any hybrid of these -approaches. - -The W-16 scheme must know all about the intra-site communication -structure. This scheme also requires the development (and -implementation) of a Gateway/Gateway protocol, just as was done for the -catenet. - -It is not clear to us at all why all of our hosts should pledge their -allegiance to W-16 addressing scheme and to the WBC for which it stands, -one network, indivisible (enough!!). - -We would like to treat the WBnet just as another transport mechanism, -which should be used only when it is found to be the best alternative -for some communication requirements. For our communication system the -WBnet should be just another means of inter-site communication, not a -religion to which all of our internal gateways and bridges have to -subscribe. - 4 - - - Conclusion - ---------- - -We recommend that only 16-bit addresses be used within the WBnet in -order to specify its hosts; and that these hosts be either bona fide -hosts or gateways into other networks, including intra-site -communication systems. - -As long as intra-site addressing can be handled by an 8-bit field there -is an efficient and convenient way to incorporate this field within the -IP-address field in addition to the 16-bit WBnet addresses. - - - - Referee's comment - ----------------- - -Under the assumption that 8-bit addressing is enough for all intra-site -addressing, and under the assumption that all the local networks at any -site share this address space and already are capable of communicating -among themselves (and do not need help from the WBnet in order to -achieve it) - the two approaches, W-16 and ISI's, are IDENTICAL. - -The folks at BBN may treat each site as a single subnet and assign it a -single subnet-ID. On the other hand, the folks at ISI may assign unique -local addresses to each of their hosts. - -Hence, the 32-bit IP-address of the host on the WBnet will be composed -of the following 4 bytes (in Big-Endian's order, obviously): - - Byte#0 = 28., the net-ID of the WBnet, assigned by Postel. - Byte#1 = WBnet address: Site- or Subnet-ID, assigned by BBN. - Byte#2 = Reserved for future extensions - Byte#3 = Local address, assigned by each site. - -We would also like to recommend that BBN assign the subnet-ID's in -bit-reversed order in order to maintain maximal flexibility for future -expansions which may occur at either end of the addressing scheme. diff --git a/text/ien/ien166.txt b/text/ien/ien166.txt deleted file mode 100644 index 0e227c53..00000000 --- a/text/ien/ien166.txt +++ /dev/null @@ -1,1708 +0,0 @@ - - - - - - - - - - - - - - DESIGN OF TCP/IP FOR THE TAC - - - IEN-166 - - Robert Hinden - - Bolt Beranek and Newman Inc. - - January 1981 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -IEN-166 R. Hinden - Bolt Beranek and Newman Inc. - January 1981 - - - - Table of Contents - - -1 Introduction.......................................... 1 -2 Overall Data Flow..................................... 2 -2.1 Receiving Data...................................... 2 -2.1.1 1822 Module....................................... 3 -2.1.2 NCP Module........................................ 4 -2.1.3 Internet Module................................... 4 -2.1.4 TCP Module........................................ 5 -2.1.5 Telnet Module..................................... 6 -2.2 Sending Data........................................ 7 -2.2.1 Telnet Module..................................... 7 -2.2.2 TCP Module........................................ 8 -2.2.3 Internet Module................................... 9 -2.2.4 1822 Module....................................... 9 -3 Control and Priority................................. 10 -4 Data Structures...................................... 11 -4.1 Message Block...................................... 11 -4.2 Protocol Data Block................................ 13 -5 1822 Protocol........................................ 16 -6 Internet Protocol.................................... 17 -6.1 Identifier Assignment.............................. 17 -6.2 Option Support..................................... 17 -6.3 Reassembly......................................... 17 -6.4 Routing............................................ 19 -6.5 Gateway to Gateway Messages........................ 20 -6.6 Timeouts........................................... 21 -7 Transmission Control Protocol........................ 21 -7.1 Connection Opening and Closing..................... 21 -7.2 Initial Sequence Number Assignment................. 22 -7.3 Option Support..................................... 22 -7.4 Urgent Data........................................ 23 -7.5 End of Letter Handling............................. 23 -7.6 Retransmissions.................................... 24 -7.7 Acknowledgement and Window Strategy................ 24 -7.8 Sequencing......................................... 25 - - - - FIGURES - - -Data and Control Flow..................................... 3 -Message Block Format..................................... 12 -Protocol Data Block Format............................... 15 - - - - - - -i- - -IEN-166 R. Hinden - Bolt Beranek and Newman Inc. - January 1981 - - - Design of TCP/IP for the TAC - - -1. Introduction - - - This document is a working design document for the - -development of the Transmission Control Protocol (TCP) and - -Internet Protocol (IP) for the Terminal Access Controller (TAC). - -The TAC is a terminal controller that supports the TCP and NCP - -host to host protocols. It will run in an H-316 computer with a - -Multi-Line Terminal Controller (MLC) and an 1822 host interface. - -It is based in part on the existing H-316 TIP. - - - This document is meant as a guide for the implementation of - -the TAC. The intent is not to write a specification that - -describes everything in fine detail, but to describe the overall - -system and how its pieces interact with each other. Also, it - -discusses changes to parts of the existing H-316 TIP. - - - Everything in this document is subject to change. As the - -implementation and debugging proceed, new things will be learned. - -This will force a re-evaluation of the design decisions made - -here. Undoubtedly, some things will change. - - - The document is written assuming a working knowledge of the - -316 TIP, Internet Protocol, Transmission Control Protocol, and - -Network Control Protocol. All numbers in this document are in - -decimal. - - - - -1- - -IEN-166 R. Hinden - Bolt Beranek and Newman Inc. - January 1981 - - - -2. Overall Data Flow - - - A basic premise in the design of TAC is that data should not - -be moved between buffers, rather the pointers to the data should - -be passed between program modules. Thus, when a message is read - -into a buffer, pointers to it are passed between the different - -protocol modules. When a character is read from the MLC and put - -into a buffer, the protocol modules manipulate the buffer - -pointers, not the data itself. This is illustrated in Figure 1. - - - - -2.1 Receiving Data - - - To receive data from the network, a message is read from - -the 1822 host interface into a Message Block (MBLK). If the - -message will not fit in one MBLK, the remainder will be read into - -other free MBLKs until the message has been completely read in. - -All the MBLKs containing the same message will be linked - -together. A Protocol Data Block (PDB) will be created to point - -to the MBLKs. The pointers that are passed between the protocol - -modules will point to the PDBs. More details on the PDBs and - -MBLKs can be found in the section on "Data Structures". - - - - - - - - - - - -2- - -IEN-166 R. Hinden - Bolt Beranek and Newman Inc. - January 1981 - - - - - - +---------+ - + + - +--------------- + Message + <-------------------+ - |+-------------- + Buffers + <------------------+ \ - || + + \ \ - VV +---------+ \ \ - +---+ \ \ - +--- + + Tumble \ \ - |+-- + + Table +-----+ +----+ \ \ - || +---+ | | | | \ \ - || +>| TCP |<-->| IP |<-+ \ \ - VV +--------+ | | | | | | +------+ \ \ - +++++++ | | | +-----+ +----+ | | | +++++++ - | MLC |<---->| Telnet |<-+ +-->| 1822 |<-->| IMP | - +++++++ | | | +-----+ | | | +++++++ - || +--------+ | | | | +------+ /\/\ - || +>| NCP |<-----------+ / / - || +---+ | | / / - |+-->+ + Tumble +-----+ / / - +--->+ + Table / / - +---+ / / - || +----------+ / / - || + + / / - |+-----------> + Message + --------------------+ / - +------------> + Buffers + ---------------------+ - + + - +----------+ - - - Control -----> Data -----> - -----> - - Figure 1 . Data and Control Flow - - -2.1.1 1822 Module - - - The 1822 module is given a pointer to a PDB. This module - -will act directly on the message if it is an 1822 control message - -(i.e., a RFNM). It will update the appropriate data structure to - -initiate the action to be taken. If the PDB contains an 1822 - - - - - -3- - -IEN-166 R. Hinden - Bolt Beranek and Newman Inc. - January 1981 - - - -data message, it will be passed on to the next protocol module. - -Which module is passed to depends on the Link number in the 1822 - -message. The Link number is the upper 8 bits of the "Message ID" - -field in the 1822 leader. The Link number to protocol mapping is - -as follows: - - - - Link # Protocol - - 0 NCP Control - 2-71 NCP Data - 155 Internet - - - -2.1.2 NCP Module - - - The NCP module implements the ARPANET Host-Host Protocol. - -Its function is essentially identical to the H-316 TIP's NCP. - -The only difference is that it will be modified to work with the - -new PDB and MBLK data structures. This will be done with a new - -interface and hopefully will have a small impact on efficiency. - -When the NCP module is done with a message, it will pass the - -pointer to the PDB to the Telnet Module. - - - - -2.1.3 Internet Module - - - When the Internet Protocol (IP) module gets a pointer to a - -PDB it first checks the checksum in the IP header and then checks - -that the destination address is correct (it should be the address - - - -4- - - -IEN-166 R. Hinden - Bolt Beranek and Newman Inc. - January 1981 - - - -of the TAC running the code). If either of these checks fails, - -the datagram is discarded. Also, if the destination address was - -incorrect an IP error report will be sent to the source of the - -datagram. The next check is whether or not the datagram is - -fragmented. If so, then the IP module will perform reassembly. - -This is described in detail in the section on "Internet - -Protocol". When the IP module gets a complete datagram (either - -received whole or reassembled) it will pass it on to the next - -protocol module. Which module it is depends on the "Protocol" - -field in the Internet header. If a datagram is received for a - -protocol that is not supported, it will be discarded and an IP - -error report sent to the datagram source. The protocols - -supported are as follows: - - Protocol # Protocol Name - - 3 Gateway to Gateway Protocol - 6 Transmission Control Protocol - 71 Packet Core - 20 TAC Monitoring - - - -2.1.4 TCP Module - - - When the Transmission Control Protocol (TCP) receives a PDB - -it first checks the checksum of the message and the validity of - -the TCP header. If the message that passes this check is for a - -valid connection, and its sequence number is in the receiving - -window, the TCP module will set it up for the open connection. - - - - - -5- - -IEN-166 R. Hinden - Bolt Beranek and Newman Inc. - January 1981 - - - -The data will be sequenced if necessary at this point. This is - -described in detail in the section on the "Transmission Control - -Protocol". The next module is then informed that there is data - -to be processed. - - - Flow control is implemented by using the TCP Acknowledgement - -(ACK) and the Window size parameters. A fixed number of - -characters will be buffered for each connection. As characters - -are accepted they will be ACKed until the limitation is reached. - -As the ACK value is advanced, the window will be shrunk - -correspondingly. When the next module takes data from the - -message, buffer space becomes available. This causes TCP to - -advance its window, thus allowing the distant host to send more - -data. - - - Normally the new ACK and window values will be sent out with - -the next data message from that connection. If nothing is - -pending for this connection, a message with just the updated ACK - -and window values will be sent. This is described in more detail - -in the section "Transmission Control Protocol". - - - - -2.1.5 Telnet Module - - - The Telnet module is given a pointer to a PDB when there is - -data to be processed. This data may be from the NCP or TCP - - - - - -6- - -IEN-166 R. Hinden - Bolt Beranek and Newman Inc. - January 1981 - - - -protocol modules. It takes characters out of the MBLKs, looks - -for Telnet commands, and outputs them to the MLC. This output is - -done using the existing TIP's "Tumble Tables". This will work - -using "OIs", which means that every time an "OI" comes in for a - -port, Telnet will check if there is another character to output. - - - - -2.2 Sending Data - - - Data that is sent out to the network normally comes in from - -the MLC and is received in "Tumble Table" format. This is a - -block which is filled by the MLC. Its format is one word for - -each character input. The low order byte of the word is the - -character and the high order byte is the line number that the - -character came in on. - - - When the block is received it is passed to the Telnet - -module. This module takes the characters out and processes - -them. As this is happening another block is being filled by the - -MLC. - - - - -2.2.1 Telnet Module - - - When the Telnet Module gets a character for a port, it first - -checks if there is an open connection for that port. If not, it - -discards the character and outputs a bell character to the port. - - - - -7- - -IEN-166 R. Hinden - Bolt Beranek and Newman Inc. - January 1981 - - - -Next, it checks to see if there is room in the MBLK for another - -character. If not, then the character is discarded and the bell - -rung. If there is room, the character is put into the MBLK and - -the proper pointers are advanced. Telnet then indicates to the - -next protocol module that there is data to send. Depending on - -which protocol is being used for the connection, this is either - -the NCP or TCP module. - - - - -2.2.2 TCP Module - - - When the TCP module gets a signal that there is new data - -that should be sent, it first checks if there is room in the - -sending window to send more data. This done by checking if the - -last sent but unacknowledged data is at the right edge of the - -sending window. If there is no room, then nothing will be sent. - -Otherwise, the TCP module will adjust the pointers in the PDB and - -MBLKs to point to the correct data and update the TCP header. - - - Flow control in the sending direction is done by maintaining - -three pointers in the PDB. These are pointers to data in the - -MBLKs. They are pointers to the last ACKed character, the last - -sent but unACKed character, and the last not-yet-sent character - -in the MBLK. As data is ACKed, sent, or put into the MBLK, the - -appropriate pointer is advanced. - - - - - - -8- - -IEN-166 R. Hinden - Bolt Beranek and Newman Inc. - January 1981 - - - - When the TCP module is ready to send the data, it checks to - -see if the 1822 module can send the data (i.e., there are not - -more than eight outstanding messages). If the data can be sent, - -then the TCP module will compute a checksum for the message and - -pass a PDB pointer to the IP module. - - - - -2.2.3 Internet Module - - - When the IP module gets a pointer to a PDB it first checks - -to see if it knows where to send the datagram. If the - -destination is on the same network as the TAC, the Internet - -module will use that as the address. If the destination is on a - -different network, then it will send it to a gateway. The - -procedure to decide which gateway to use is discussed in more - -detail in the section "Internet Protocol". - - - The IP module will then build an IP leader in the MBLK and - -compute the checksum of the leader. It will then pass a pointer - -to the message to the 1822 module. - - - - -2.2.4 1822 Module - - - When the 1822 module gets a pointer to a PDB, it will always - -send the message it contains to the destination specified in the - -PDB. The destination host will either be a server host or a - - - - -9- - -IEN-166 R. Hinden - Bolt Beranek and Newman Inc. - January 1981 - - - -gateway. The 1822 module will keep track of the number of - -outstanding (no RFNMs received) messages sent to a host. This - -will be used by the NCP and TCP protocol modules to insure that - -the IMP will never block the TAC's host interface due to having - -more than eight outstanding messages. - - - When the 1822 module sends the message, it will build an - -1822 leader in the MBLK. It will then send the message to the - -IMP via the host interface hardware. - - - - -3. Control and Priority - - - The code in the TAC will run either at the interrupt level - -or at the background loop. The interrupt routines will support - -the host interface, MLC, and clock. In addition, high priority - -protocol routines will run at the task interrupt level. - - - The background loop will contain most of the TAC code. The - -protocol modules will run here. They will be executed in the - -following order: 1822 Input, IP Input, TCP Input, NCP Input, - -Telnet Input, Telnet Output, NCP Output, TCP Output, IP Output, - -and 1822 Output. - - - Each protocol module will have an input queue. When it - -runs, it checks for an entry on its queue. If it finds - -something, it takes it off the queue and processes it. Some of - - - - -10- - -IEN-166 R. Hinden - Bolt Beranek and Newman Inc. - January 1981 - - - -the protocol modules will be written to process all entries on - -their queue before exiting; others will process one entry and - -then exit. The NCP, TCP, and Telnet modules will process one - -entry. The 1822 and IP modules will process all entries. - - - - -4. Data Structures - - - A new system of buffers will be used in the TAC. It - -consists of two types of blocks, the Message Block (MBLK) and - -Protocol Data Block (PDB). These are used both for receiving and - -transmitting messages and for buffering characters on input and - -output. - - - The structure of these buffers is such that when a protocol - -module is passed a message it is given a pointer to a PDB. The - -PDB includes a link to the first MBLK. The main function of the - -PDB is to save frequently accessed things in the message and to - -point to the message. The MBLKs contain the actual message. - -They also have fields to facilitate reassembly and sequencing. - - - - -4.1 Message Block - - - The main function of the Message Block (MBLK) is to hold - -messages. It will be used for all protocols. If a message will - -not fit in one MBLK, then the remainder will be put into a second - - - - -11- - -IEN-166 R. Hinden - Bolt Beranek and Newman Inc. - January 1981 - - - -MBLK. The second will be linked to the first. The length of the - -MBLK will be either 30 or 60 words. The 30 word MBLK is used for - -sending data and the 60 word MBLK is used for receiving. - - - The header of the MBLK consists of 4 words. See Figure 2 - -for the format of the block. The "Link" is used to point to - -other MBLKs. The "Offset" field is used for reassembling IP - -fragments and sequencing TCP data. During these operations it - -contains the offset of where this data is relative to the data in - -the previous MBLK. Zero means that there is no missing data. - -This is discussed in detail in the section on "Reassembly". - - - 1 0 0 0 - 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 - +---------------+---------------+ - 0 | Link | Pointer to next MBLK - +---------------+---------------+ - 1 | Offset | Used in reassembly and sequencing - +---------------+---------------+ - 2 | Length | Flags | Length of Data, Bit flags - +---------------+---------------+ - 3 | Pointer to Data | Pointer to current data - +---------------+---------------+ - 4 | | Area which holds message - . | Data | - . | | - . | Area | - | | - n* | | - +---------------+---------------+ - - Figure 2 . Message Block Format - - - -_______________ -* Where "n" is either 29 or 59, depending whether the block is -used for sending or receiving. - - - - -12- - -IEN-166 R. Hinden - Bolt Beranek and Newman Inc. - January 1981 - - - - The "Length" and "Pointer to Data" fields are used to - -indicate where and how much data is in the MBLK. The meaning of - -these is always relative to the protocol module currently - -processing the message. For example: when a message is read in - -from the host interface the "Pointer to Data" will point to the - -1822 leader and the "Length" will be the length of all the data - -in this MBLK. When the 1822 module is ready to pass the data to - -the next protocol module, it adjusts these fields to refer to the - -data after the 1822 leader. In this way, a protocol module need - -not know what, if any, protocol preceded it. - - - The "Flags" is a bit field containing such things as End of - -message, I/O in progress, Read or Write, small or large block, - -etc. The "Data Area" is where the actual message is stored. The - -small size MBLK (30 words) is sized to contain an 1822, IP, and - -TCP leader, but no data. The large size (60 words) can contain - -the leaders plus up to 60 bytes of data. - - - - -4.2 Protocol Data Block - - - The Protocol Data Block is a header block for one or more - -MBLKs that make up a message. It contains pointers to the first - -MBLK, pointers to specific leaders in the MBLKs, frequently - -accessed items from the message, and a link to the next PDB. - - - - - - -13- - -IEN-166 R. Hinden - Bolt Beranek and Newman Inc. - January 1981 - - - - As previously stated, it is pointers to PDBs that are passed - -between protocol modules. When a protocol module gets a PDB, it - -expects to find one PDB, which points to one or more MBLKs. The - -data in the MBLKs is expected to be in sequence and non- - -fragmented. This requires that each protocol module insure that - -the data it passes to the next module be contiguous. This is - -best described with the following example: - - - When the Internet module gets two fragments of the same - -datagram, it needs to reassemble them before it can pass them to - -the next protocol module. What it does is to take the MBLKs - -containing the second fragment and link them into the proper - -places in the list of MBLKs of the first fragment. As it does - -this, it adjusts the fields in the MBLKs to point to the correct - -data. When it has linked in all the MBLKs from the second - -fragment, it puts the PDB, which controlled the second fragment, - -back on the free list of PDBs. - - - The TCP module performs a similar operation to sequence the - -data before it passes it to the Telnet module. The format of the - -PDB is shown in Figure 3. - - - The first field in the PDB, "Link to next PDB", is a pointer - -to another PDB. This is used for reassembly and sequencing. The - -next field in the PDB is the address field. This is either the - -source of the message if it was received or the destination if it - - - - -14- - -IEN-166 R. Hinden - Bolt Beranek and Newman Inc. - January 1981 - - - - - - 1 0 0 0 - 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 - +---------------+---------------+ - 0 | Link to next PDB | Pointer to next PDB - +---------------+---------------+ - 1 | Network | Host | Source / Destination - +---------------+---------------+ Address - 2 | | IMP | - +---------------+---------------+ - 3 | Identification | IP Identification - +---------------+---------------+ - 4 | Flags | Protocol | Bit flags, Protocol # - +---------------+---------------+ - 5 | Time Stamp | Time stamp for aging - +---------------+---------------+ - 6 | Pointer to 1st Leader | Usually 1822 - +---------------+---------------+ - 7 | Pointer to 2nd Leader | Usually IP or NCP - +---------------+---------------+ - 8 | Pointer to 3rd Leader | Usually TCP - +---------------+---------------+ - 9 | Pointer to first MBLK | Pointer to first MBLK - +---------------+---------------+ - 10 | Protocol | Variables used by each - + + protocol module - 11 | Variables | - + + - 12 | Area | - + + - 13 | | - +---------------+---------------+ - - - Figure 3 . Protocol Data Block Format - - -is to be sent. The "Identification" field is the internet - -identification which is used in assembling internet fragments. - -The "Flags" field is a bit array used for things like datagram - -complete, EOL, Urgent, Read or Write, block free, in use, hole, - -etc. The "Protocol" field is the host-to-host protocol the - - - - - -15- - -IEN-166 R. Hinden - Bolt Beranek and Newman Inc. - January 1981 - - - -message is for. The "Time Stamp" field is used for timing out - -messages. - - - The "Pointer Leader" fields are used to point to different - -leaders in the MBLKs. This is done to make it easier to find a - -particular leader in the message. They are set up by a - -particular protocol message and refer to different leaders - -depending on which protocols are in use. - - - The "Pointer to first MBLK" field is the pointer to the - -first MBLK of the message. The "Protocol Variables Area" is a - -temporary area that any protocol module can use while it is - -processing the PDB. As long as it controls the PDB, no other - -module will change these fields. - - - - -5. 1822 Protocol - - - All 1822 data messages will be passed directly to the next - -protocol module. When the 1822 module gets a control message it - -will call a routine supplied to it by the next protocol module. - -For example, the NCP module will supply a routine to be called - -when the 1822 module receives a "RFNM" on an NCP link number. - -The routines will be called with a pointer to the PDB of the - -message. When the routine returns the 1822 module will discard - -the message. - - - - - -16- - -IEN-166 R. Hinden - Bolt Beranek and Newman Inc. - January 1981 - - - -6. Internet Protocol - - -6.1 Identifier Assignment - - - When the Internet module gets a message to send, it - -generates a value for the "Identifier" (ID) field in the internet - -header. It does this by keeping a 16-bit counter called the ID - -counter. When it needs a new value it increments the counter by - -one and uses the result. The ID counter will not be initialized - -when the TAC is reloaded or restarted, to insure that the values - -are sequential. - - - - -6.2 Option Support - - - The Internet module will only actively support the "Error - -Report" IP option. None of the other currently defined options - -will require any action to be performed by the TAC. - - - - -6.3 Reassembly - - - When the Internet module gets a PDB which is a datagram - -fragment, it must reassemble it. It first looks at the fragments - -on the Internet-Reassembly queue to see if there are any other - -fragments of the same datagram. It does this by comparing the - -source address, ID, and protocol number of the two fragments. If - - - - - -17- - -IEN-166 R. Hinden - Bolt Beranek and Newman Inc. - January 1981 - - - -it does not find a match, it adds the new PDB to the queue. At - -this point, it also puts a time stamp in the PDB. This will be - -used to timeout unassembled fragments. - - - The actual reassembly process consists of adding the MBLKs - -of the new datagram to the list of MBLKs of the datagram on the - -queue. This is done using the "Offset", "Length" and the - -"Pointer to Data" fields in the MBLK. At this point in the - -processing of the fragment, the fragment consists of one or more - -MBLKs linked together. The IP header will always be in the first - -MBLK. The "Offset" fields in the MBLKs are all zero (there is no - -missing data in the new fragment itself). The "Length" fields - -contain the length of the IP data (not including the IP header) - -in each MBLK. The "Pointer to Data" fields point to the IP data - -in each MBLK. - - - The MBLKs of the new datagram are added to the datagram on - -the queue by comparing the "Fragment Offset" in the IP header of - -the new datagram to the "Fragment Offset" in the IP header of the - -datagram on the reassembly queue. This is done by taking the - -first MBLK on the list and adding the "Fragment Offset" from the - -IP header to the "Length" and "Offset" fields in the first MBLK. - -If this sum is greater than the "Fragment Offset" in the IP - -header of the new datagram, then the MBLKs of the new datagram - -should go before the first MBLK of the datagram in the original - - - - - -18- - -IEN-166 R. Hinden - Bolt Beranek and Newman Inc. - January 1981 - - - -fragment. If not, then they should be added in after. In this - -case, the comparative process is repeated with the rest of the - -MBLKs on the list. When the proper place is found, the new MBLKs - -are linked in and the fields of the new and old MBLKs are - -adjusted. If the new fragment overlaps the existing, then by - -adjusting the "Pointer to Data" and "Length" fields, the overlap - -can be skipped. This may result in one or more MBLKs being - -discarded. - - - When the datagram is completely reassembled, it can then be - -taken off the Reassembly queue and passed to the next protocol - -module. - - - - -6.4 Routing - - - The decision about where to send a datagram is twofold. If - -the destination host is on the same net as the TAC, then the - -datagram is sent directly to that host. If not, then it must be - -sent to a gateway. - - - The Internet module will maintain a table that will - -facilitate routing messages to hosts on other networks. The - -table is a list of all networks (256) and the gateways to get to - -the networks. This table, called the Network-Gateway table, will - -be initially loaded into the TAC and will be dynamically - - - - - -19- - -IEN-166 R. Hinden - Bolt Beranek and Newman Inc. - January 1981 - - - -maintained by the TAC. - - - When the Internet module needs to find an address, it looks - -in the Network-Gateway table to get the gateway address for the - -network it wants to send to. If it finds an address it uses it. - -If the entry for the network it wants is empty (i.e., no gateway - -address specified), then the Internet module will use an - -arbitrary gateway. - - - If the Internet module receives a Redirect message from a - -gateway, it will update the Network-Gateway table to indicate the - -correct gateway. This will insure that the Network-Gateway table - -contains current information. - - - If a gateway goes down during a connection the Internet - -module will clear that network's entry in the Network-Gateway - -table. It will then try an arbitrary gateway. If at a later - -time, the Internet module receives a Redirect message telling it - -to use a new gateway to get to a network, it will set that - -network's entry in Network-Gateway table to the new gateway's - -address. - - - - -6.5 Gateway to Gateway Messages - - - The Internet module will support the "Gateway to Gateway" - -protocol in a passive sense. If it receives a "Destination - - - - -20- - -IEN-166 R. Hinden - Bolt Beranek and Newman Inc. - January 1981 - - - -Unreachable Packet" or a "Redirect Packet" it will take - -appropriate action. If it receives anything else, it will - -discard the message. In particular, if the Internet module - -receives a "Source Quench Packet" it will discard the message. - -This strategy is used due to the TAC's limited amount of - -buffering. The buffers would soon fill up because of the data - -not being acknowledged (in TCP). This will effectively limit the - -transmission. - - - - -6.6 Timeouts - - - Internet fragments will be discarded if they are not - -reassembled within 60 seconds. When a new fragment is - -reassembled into an existing one, the "Timeout" field in PDB of - -the existing fragment will be updated with the current time. - -This will, in effect, reset the timer for that fragment. - - - - -7. Transmission Control Protocol - - -7.1 Connection Opening and Closing - - - The TCP module will have a finite state machine which will - -be used for establishing and closing connections. The procedure - -to open a connection is to pass the required information - -(Destination address, socket, etc.) to the TCP module. It will - - - - -21- - -IEN-166 R. Hinden - Bolt Beranek and Newman Inc. - January 1981 - - - -then run the finite state machine, which will set up the required - -data structures and open the connection. Closing the connection - -will be done in a similar way. The states of the finite state - -machine will be similar to what is described in "IEN-129, DOD - -Standard Transmission Control Protocol". - - - All TCP Port numbers assigned by the TAC will consist of the - -upper 8 bits set to the terminal number for the connection (1- - -64.) and the lower 8 bits set to 23. All connections made to or - -from the TAC will use this format. - - - - -7.2 Initial Sequence Number Assignment - - - The TCP module will maintain a 32-bit counter that will be - -used to generate Initial Sequence Numbers (ISN). The counter - -will be incremented by a constant value every time the H-316 - -clock ticks, which is every 25.6MS. The counter will be - -incremented by 64. This will then wrap around approximately - -every 4.55 hours. When the TCP module needs an ISN it reads the - -counter and gets a value. - - - - -7.3 Option Support - - - The TCP module will understand the format of all TCP - -options. It will support the "No-Operation" and "End of Option - - - - -22- - -IEN-166 R. Hinden - Bolt Beranek and Newman Inc. - January 1981 - - - -List" options. It will not support the "Buffer Size" option. If - -it receives a "Buffer Size" option with anything greater than - -size one, it will not accept the connection but will reset it. - - - - -7.4 Urgent Data - - - When the TCP module receives a message with a valid Urgent - -Pointer, it sets a bit in the "Flag" word in the PDB and saves - -the offset to the end of the urgent data. When the next protocol - -module takes data out of the MBLK it will get an indication that - -the data it is getting is urgent. - - - Likewise, when the TCP module is given data to send, the - -protocol module supplying the data can include an indication that - -the data is urgent. The TCP module will include this information - -in all messages it sends until the urgent data is sent. - - - - -7.5 End of Letter Handling - - - The TCP module will not do anything special when it receives - -a message with End of Letter (EOL) set. The TCP module always - -presents all data to the next protocol module as soon as it is - -available. Consequently, no special handling is necessary. - - - - - - - - -23- - -IEN-166 R. Hinden - Bolt Beranek and Newman Inc. - January 1981 - - - - The TCP module will accept data to be sent with an EOL - -indication. It will send this data with EOL set in the message. - -No additional data will be sent in the message. If the data is - -required to be retransmitted, it will be transmitted with EOL - -preserved. - - - - -7.6 Retransmissions - - - Data that is transmitted by the TCP module will be held - -until it has been ACKed by the remote host. If an ACK is not - -received for the data within three seconds it will be - -retransmitted. All data in the buffer that is not ACKed will be - -retransmitted (except if EOL is set; see previous section). If - -the data is still not ACKed for another seven seconds, - -retransmission will occur again. This procedure will continue - -using the series 3,7,15,15,30 . If there is still no ACK, then - -the user will be notified. The retransmissions will continue - -every 30 seconds until either the user closes the connection or - -the TCP module receives an ACK. - - - - -7.7 Acknowledgement and Window Strategy - - - The Acknowledgement (ACK) and Window parameters are used to - -control how much data the remote host can send to the TAC. The - - - - - -24- - -IEN-166 R. Hinden - Bolt Beranek and Newman Inc. - January 1981 - - - -TCP module will ACK data up to the limit it is willing to buffer - -for a connection. Data received after this limit is reached will - -be discarded. As the data is received, but before the next - -protocol module takes it out of the buffer, the window will be - -closed by the amount received. When the buffer limit is reached, - -the TCP module will not ACK any new data and will be advertising - -a zero window. When the next protocol module takes data out of - -the buffer, the window will be opened. This will allow the - -remote host to send more data. - - - When data is sent on the connection, the current ACK and - -Window values are always included in the same message. In the - -case where no data is being sent and the ACK and/or Window values - -have changed, a different strategy is used. When the ACK pointer - -is advanced, the TCP module will wait one second to see if there - -is data to send. If there has been no data sent for one second, - -then the ACK will be sent without data. A new window value will - -not be sent until the buffer is at least half empty. This - -strategy is designed to insure that the remote host sends blocks - -of data and to eliminate unnecessary retransmissions. - - - - -7.8 Sequencing - - - When the TCP module gets a data message for a connection, it - -must insure that the data is sequenced before it passes the data - - - - -25- - -IEN-166 R. Hinden - Bolt Beranek and Newman Inc. - January 1981 - - - -to the next protocol module. The sequencing is done by comparing - -the sequence number of the message to the current "Left Window - -Edge" (LWE) and manipulation of the "offset", "length", and - -"pointer to data" fields of the MBLKs that make up the message. - -For each connection a list is maintained of MBLKs that are being - -sequenced. The MBLKs are in order but there may be missing data. - - - When the TCP module is ready to sequence the data, the - -message consists of a PDB, followed by one or more MBLKs linked - -together. The "pointer to data" field points to the actual TCP - -data. The "offset" fields are all zero because the data in the - -message is sequential relative to itself. The "length" field is - -the amount of data in each MBLK. - - - The sequencing is done by linking the MBLKs of the new - -message into the sequencing list for the connection for which the - -data message is intended. This is done via the following steps: - - - 1. Subtract the LWE from the Sequence number of the - message. The result is the offset from the LWE. Then - set the "offset" field of the first MBLK to this result. - If it is zero, this means that there is no missing data. - Otherwise, the result is the amount of missing data. - - 2. Add the MBLKs to the existing list. If there are no - MBLKs on the list, then the new MBLKs become the list. - Otherwise, the insertion is done in the following steps: - - a) Find the position in which to add the new MBLK - by adding together the "offset" and "length" of - first MBLK in the list. If "offset" of new MBLK - is less than the sum, then the new MBLK goes - before the MBLK in the list. Otherwise, add - - - - -26- - -IEN-166 R. Hinden - Bolt Beranek and Newman Inc. - January 1981 - - - - "offset" and "length" of the next MBLK in the - list to the previous sum. Repeat this procedure - until a fit is found or the end of list. - - b) Link the new MBLK into the list. - - c) Subtract the ("offset" + "length") of the - previous MBLK from "offset" of the new MBLK. - - d) Subtract the ("offset" + "length") of the new - MBLK from "offset" of the next MBLK. - - -0verlapping data will be handled by adjusting the "length" field - -in the MBLKs as the new MBLKs are linked in. - - - The result of these operations is a list of MBLKs. The - -"offset" field in the MBLKs contains the number of missing data - -bytes before it. When the MBLK is at the front of the list, a - -zero "offset" means the data is sequenced and can be passed to - -the next protocol module. As data is taken by the next protocol - -module, the "length" field of the first MBLK should be - -decremented. When it is zero, the block is empty and can be - -discarded. - - - - - - - - - - - - - - - - - - - -27- diff --git a/text/ien/ien167.txt b/text/ien/ien167.txt deleted file mode 100644 index 18aa4fa4..00000000 --- a/text/ien/ien167.txt +++ /dev/null @@ -1,4540 +0,0 @@ -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - - - - - - - - - - HP3000 TCP DESIGN DOCUMENT - - Jack Sax and Winston Edmond - - Bolt Beranek and Newman Inc. - - July 1980 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - Table of Contents - - - - -1 Preface............................................... 3 -2 Introduction.......................................... 4 -3 Current HP3000 Structure.............................. 7 -3.1 Processor Features.................................. 7 -3.2 Network Interface Hardware.......................... 8 -3.3 Operating System Software........................... 8 -3.4 Input/Output....................................... 10 -3.5 Interprocess Communication......................... 12 -3.6 Existing INP Software.............................. 14 -4 Protocol Software Architecture....................... 16 -5 System Protocol Software............................. 20 -5.1 Implemented Features............................... 20 -5.2 Software Architecture Overview..................... 21 -5.3 Control Structures................................. 23 -5.3.1 Network Resources Control Block.................. 24 -5.3.2 Foreign Host Control Blocks...................... 25 -5.3.3 Connection Control Block......................... 26 -5.3.4 Network Buffer Resources List Structures......... 26 -6 User Process/TCP Interface........................... 29 -6.1 Interface Intrinsics............................... 30 -6.2 Flow Control Across the Interface.................. 36 -6.3 Interface Control Structures....................... 36 -6.4 Interface Control Algorithms....................... 37 -6.5 Windowing, Acknowledgment, and Retransmission...... 48 -7 1822 Layer/INP Driver Communication.................. 50 -8 Protocol Software Buffering Scheme................... 52 -8.1 Network Buffer Pool................................ 54 -8.1.1 Packet Compaction................................ 55 -8.1.2 Buffer Recycling................................. 56 -8.2 User Process Buffer Pool........................... 58 -9 Data Flow Through the Protocol Software.............. 60 -9.1 ARPANET to the User Level Data Flow................ 61 -9.2 User Level to the ARPANET Data Flow................ 64 - - - - - - - - - - - - -2- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -1 Preface - - - This report describes a design implementation of ARPANET - -protocols on a Hewlett Packard HP3000 Series III computer system. - -Specific protocols to be implemented include a Transmission - -Control Protocol (TCP), Internet Protocol (IP), File Transfer - -Protocol (FTP), and TELNET Protocols. The reader is assumed to - -be familiar with the purpose of these protocols. The protocol - -software will run under the HP Multiprocessing Executive (MPE) - -operating system. - - - The designs reflect our current understanding of the - -environment and the tasks ahead and may be changed as we proceed - -with implementation. - - - - - - - - - - - - - - - - - - - - - - - - - - - -3- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -2 Introduction - - - The overall purpose of this project is to modify the Hewlett - -Packard 3000/Series III computer system running the MPE operating - -system so that it converses with the ARPANET. - - - A layered protocol approach will be used in our - -implementation. Protocol layers one through four represent the - -system layers which are responsible for moving a message reliably - -from one Host to another. The next protocol layer consists of a - -number of applications protocols which determine the content and - -meaning of the messages exchanged. - - - Protocol levels one and two are X.25 LAP link access - -protocols. These protocols are implemented in microcode on the - -Intelligent Network Processor (INP) interface available from - -Hewlett Packard. Since the X.25 LAP protocols are different - -from the standard 1822 IMP Host protocols, a special X.25 IMP - -interface is used to link the HP3000 with the ARPANET. The - -interface divides standard 1822 packets into a number of X.25 - -frames and transfers each frame separately. The diagram in - -Appendix A shows the hardware configuration used to link the - -HP3000 to the ARPANET. - - - The next two protocol layers consist of the DOD standard - -Internet Protocol (IP) and the Transmission Control Protocol - - - - - -4- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -(TCP). The Internet protocol provides communication between - -Hosts on different networks via gateways between the networks. - -The Transmission Control Protocol provides reliable transmission - -between Hosts and performs some Host-to-Host flow control. - - - The initial implementation will include three application - -layer protocols. One of these is the File Transfer Protocol - -(FTP), which allows a user to move files from one computer system - -to another. The second and third application layer protocols are - -User and Server TELNET. User TELNET gives the user a remote - -terminal capability by taking the characters from the local input - -device and sending them to the foreign host, and returning - -characters from the foreign host to the local output device - -(typically a terminal). The foreign host will have a Server - -TELNET process which acts as a pseudo-Teletype, with incoming - -network messages providing TTY input, and TTY output being sent - -to the network. The operating system treats the Server TELNET - -pseudo-Teletype like an ordinary terminal. - - - Most of the protocol software is new code, the major - -exception being the INP microcode which is supplied by Hewlett - -Packard. The programs will be written in HP's Systems - -Programming Language (SPL), which resembles PASCAL and allows - -intermixing of assembly code and compiled code. In addition to - -new code, implementation will require changes to the MPE - - - - - -5- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -operating system code, which is also written in SPL. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -6- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -3 Current HP3000 Structure - - - This section describes the HP3000 system with an emphasis on - -the features that affect the network software design. The - -description includes both the processor hardware and the - -operating system. Some of the operating system features - -described are not currently released by Hewlett Packard, but are - -about to be released or are part of the planned MPE IV release - -this fall. - - - - -3.1 Processor Features - - - The HP3000 CPU is a medium speed machine which uses a stack - -architecture. It executes uncomplicated instructions in one to - -two microseconds. Code and data are separate and thus all code - -is re-entrant. There are approximately 38 hardware registers - -which make up the state of the processor, most of which are - -associated with the stack (data) and the current instruction - -address (code). - - - Memory is divided into segments. A segment is a contiguous - -block of memory of any desired length up to 32K words. - -Individual segments are swapped in and out of memory as needed. - -Memory paging, a scheme which uses fixed size memory chunks as - -the basis for memory swapping, is not used in the HP3000. A - - - - - -7- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -segment may be designated as code or data by the operating - -system. - - - - -3.2 Network Interface Hardware - - - The interface unit between the HP3000 computer and the - -ARPANET machines will be HP's Intelligent Network Processor - -(INP). This device consists of two boards located in the HP3000 - -main cabinet. It is a microprogrammed interface unit whose - -microcode is down-line loaded by HP3000 software. HP will supply - -the microcode to make the INP obey the X.25 LAP protocol and will - -supply the device driver necessary to access the INP. - - - The INP will be connected to a BBN C/30 (MBB) computer. - -This machine will convert the X.25 protocols from the INP into - -suitable ARPANET protocols. - - - - -3.3 Operating System Software - - - The operating system for the HP3000 is known as the - -Multiprogramming Executive System (MPE). It offers both batch - -and interactive job capabilities and allows multiple concurrent - -users of either type. It offers a file system which manages - -files on disk, magnetic tape and/or punched cards. Some I/O - -devices, such as the line printer, have spooler programs built in - - - - -8- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -to the system. - - - User programs are run as processes within MPE. Each process - -has associated with it a code segment and a stack (data) segment. - -In privileged mode, it may run in "split-stack mode", where it is - -allowed to have two data segments. The most common use of - -split-stack mode is to access tables in the operating system - -during system calls. - - - The design of MPE is greatly influenced by the HP3000 - -hardware architecture. MPE's organization relies heavily on - -operations which incur little processor overhead while avoiding - -operations which incur large amounts of processor overhead. The - -most striking example of this is the MPE's dependence on user - -processes for a large number of what would ordinarily be - -considered system functions. MPE avoids the use of "system" - -processes to perform these functions. - - - The design organization is a direct result of the stack - -architecture of the HP3000. The large number of status registers - -which must be saved when a new process is invoked makes process - -switching a very expensive operation. The time needed to perform - -a procedure call into a new segment of system code is typically - -less than the time to switch context from one process to another. - -Writing efficient code for this machine has thus led to - -organizing the system as relatively independent "utility" - - - - -9- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -routines callable by the user rather than as a collection of - -separate processes which manage I/O devices and system utilities. - -These operating system calls, called Intrinsics, are implemented - -as subroutine calls into system code segments. The program - -segments which implement the Intrinsics run in a privileged mode - -which allows them to directly access system tables and I/O device - -tables. - - - One notable side-effect of this design is that system - -resources such as I/O devices are assigned to only a single - -program and are not normally shared. This approach has allowed - -the system programmers to create a complex operating system - -without tackling the problems of interprocess communication and - -resource sharing. As will be discussed later, it also has a - -significant effect on protocol software design. - - - - -3.4 Input/Output - - - Input/Output operations typically consist of two steps. The - -first step is initiation of the desired operation. This involves - -checking to insure that access to the device is allowed (software - -protection), and issuing I/O instructions to the device to - -initiate the desired action. This step usually occurs as a - -result of an intrinsic call to the device handler code and thus - -is executed on the user's stack. The second step is the - - - - -10- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -operation completion handling. This may occur using either the - -Interrupt Control Stack (ICS) or the System Control Stack, - -neither of which is the user's stack. The choice of which stack - -to use depends on the specific device's function. - - - A consequence of this system design is that "system code" - -tends to be executed using the data stack of the first user - -process needing the function. If process 1 wants to do an I/O - -operation, it invokes a system procedure which knows how to - -manage that I/O device. If process 2 now wishes to invoke the - -same device, and if the device is capable of supporting more than - -one request concurrently, it invokes the same routine. To avoid - -multiprocessing hazards in issuing I/O commands, the system - -procedure first checks to see if it is the first invocation of - -itself -- if not, it queues the request and exits; if it is, it - -proceeds to issue the I/O instructions. If the request was - -queued, it is assumed that the first process will detect the - -newly queued request and process it also. The first process is - -thus performing system functions for the second, and all later, - -processes, and will be charged run time for doing their work. In - -practice, we do not expect this to be significant, but in theory, - -the first process could run indefinitely, even if its own request - -has long since completed. - - - - - - - - -11- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -3.5 Interprocess Communication - - - Interprocess communication under the current version of MPE - -is a problem. Only two techniques are currently available and - -neither of them is really satisfactory. - - - One technique that may be used is that of the logical - -device. It is chiefly used to accomplish multiplexing of - -physical devices. This facility is implemented by creating a new - -entry in the system's Device Information Table, and by creating a - -set of procedures which act as a device handler. The handler - -will be run in privileged mode. - - - Like other system device handlers, the procedures to manage - -the device are invoked directly by the user process, and the - -user's stack is used by the system code. This has the advantage - -of speed, since it avoids some process context switching. - - - There are a number of drawbacks to this technique. First, - -the Device Information Table entry must be maintained as if it - -were a real hardware device. This requires knowledge of all the - -MPE internal functions that might access this table. - -Furthermore, since these tables are system internal, they are - -subject to change with each new release of MPE. Use of the table - -requires Privileged Mode. Bugs in the code would have a greater - -chance of crashing the system. The greatest drawback is that - - - - - -12- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -logical devices are still under development at HP, and are more - -than usually likely to change over time. - - - A new operating system feature, not yet released officially, - -that has been written for MPE is an interprocess communication - -method known at HP as message files. These correspond to Unix - -ports, and allow unrelated processes to communicate with one - -another. Each message file has one or more "reader" processes - -and one or more "writer" processes. During use, these files act - -as FIFO queues. - - - Message files are implemented using the file system. Read, - -write, and query commands are all patterned after the file system - -commands. The message file code is designed so that if readers - -and writers stay more or less in synchronization, disk I/O will - -not be needed. However, if the writers get far enough ahead of - -the readers, the message file will start being spooled out onto - -disk. - - - Message files are to be introduced as user level functions - -by HP, and, as such, their use will not change with new releases - -of the operating system. Code for this feature has already been - -implemented at HP and is available with both MPE III and the - -future MPE IV. They appear to be relatively easy to use and do - -not require knowledge of the internals of the operating system. - -Their chief drawbacks are that a process context switch is - - - - -13- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -required between writer and reader, and that some file system - -overhead is incurred. - - - Timeouts, as seen in message files, are another new HP - -function that will be available. The older version of timeouts - -simply suspended the process for a fixed amount of time, but did - -not allow the process to be awakened by the completion of an I/O - -event during its sleep. The new version is equivalent to setting - -a timer whose alarm may be awaited with the same IOWAIT intrinsic - -that awaits I/O completion. It allows a process to wait for - -either some I/O device operation completion or the passage of - -some maximum amount of time, whichever occurs first. - -Alternatively, a timeout could be used to insure that waiting for - -a specific event will terminate if the expected event does occur - -soon enough. There will be both user level and system internal - -ways of accomplishing timeouts. - - - - -3.6 Existing INP Software - - - The code to drive the INP is part of the CS/3000 - -Communications Software package from HP. It contains code to - -send and receive packets via the INP and code to manipulate the - -Device Information Tables. The code also allows the user to - -down-line load microcode into the INP memory. It contains - -intrinsics to open and close the line and to read and write - - - - -14- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -packets. The microcode allows the INP to support X.25 LAP - -protocols and also allows the INP to buffer up to eight 128-byte - -packets. These packets are read by CS/3000 as soon as possible - -in order to keep the INP from losing packets due to a lack of - -buffer space in the INP. This technique allows the INP to - -function as a full duplex device, even though the MPE operating - -system offers only a half duplex control mechanism in its - -software. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -15- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -4 Protocol Software Architecture - - - The protocol software architecture is dictated by a set of - -design requirements and MPE operating system constraints. These - -requirements and constraints are summarized as follows: - - - - The new network software must be isolated from the - - existing operating system as much as possible. The - - isolation will allow any site to add or remove the network - - software with a minimum of effort. It will also make the - - network software less vulnerable to any changes HP makes - - to MPE. - - - - Efficient high speed network communications are extremely - - important because this TCP version will be used on a - - production rather than an experimental basis. - - - -_One of the problems with MPE is that, though the operating - - system performs device assignment and access control for - - its I/O devices, the user process is responsible for - - operating the I/O device. MPE does offer intrinsics to - - operate common devices, but these are very low level - - operations. This I/O arrangement makes it difficult to - - control an asynchronous network interface. The protocol - - software architecture will therefore require at least one - - process which has exclusive control of the INP interface. - - - - - -16- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - - One of the properties of these network protocols is that - - the message acknowledgments and retransmissions occur at a - - relatively high level -- in the Transmission Control - - Protocol in layer four. A moderate amount of time passes - - from the time the originating TCP queues the message for - - transmission and the receiving TCP gets the message. In - - order to prevent acknowledgment delays which in turn cause - - the foreign host to retransmit data, the software - - architecture should minimize the amount of time it takes - - for incoming data to move through the 1822, IP, and TCP - - protocols. - - - - With many network users and many connections concurrently - - in use, the network software must be able to handle the - - problems of multiplexing use of the network interface - - hardware. The interface on which the multiplexing takes - - place must support a number of simultaneous users in such - - a way that the behavior of any individual user does not - - affect data throughput of the other users. - - - In order to meet all of the design requirements and - -constraints described above, the HP3000 protocol software is - -implemented in a set of processes (see diagram in Appendix B). - -One process which will be called the system protocol process is - -responsible for maintaining the INP interface as well as - - - - - -17- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -supporting the 1822, IP and TCP protocols. The rest of the - -processes, called applications protocol processes, support the - -user interactive network functions including FTP and TELNET. - - - The use of a single system protocol process is a key element - -in the protocol design. The system protocol process provides - -control over the INP interface by providing buffers and acting as - -multiplexer and de-multiplexer of network traffic to and from the - -INP. Use of a single process minimizes inter-protocol layer - -communication delays which in turn minimize the acknowledgment - -delays for incoming data. A single system protocol process makes - -it possible to use interprocess communication primitives to - -provide a uniform network interface for the applications level - -protocol processes. - - - User TELNET and User FTP protocols are to be implemented as - -ordinary user programs. They use the same system calls as any - -other network accessing program, but are written to provide a - -higher level command language for the user. As user programs, - -they execute in the user's address space with the privileges - -normally available to the user. The User TELNET and User FTP - -programs are re-entrant, with as many processes running this code - -as users wishing the service. - - - Server TELNET is a single process created as the system - -starts up or whenever the first need for it arises. De- - - - - -18- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -multiplexing of Server TELNET inputs is accomplished via a - -pseudo-teletype driver. The driver acts as the interface between - -the Server TELNET process and the Teletype handler. - - - The interface between application protocol processes and the - -system protocol process is through a set of TCP intrinsics. The - -intrinsics are designed to form a uniform interface between the - -user and the TCP. Actual data communication between a user - -process and the system protocol process is done with a - -combination of message files and direct buffer-to-buffer - -transfers. Message files are used to pass flow control - -information while the actual data transfer is made by copying - -data between user buffers and system protocol buffers. The - -combination of message files and buffer copy is used to take - -advantage of the flexibility of message files and the data rates - -achieved by direct data copy. - - - - - - - - - - - - - - - - - - - - - - -19- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -5 System Protocol Software - - - Since this TCP implementation is to be used on a production - -rather than an experimental basis, the design effort has - -concentrated on the efficiency rather than the sophistication of - -the protocol software. This is especially true of the system - -protocol software whose initial design includes only those - -features needed to support the FTP and TELNET protocols. - - - At the same time, the software design does allow for the - -future enhancement of the protocol software. There are no - -inherent design limitations which will prevent implementation of - -the more sophisticated TCP and Internet features. - - - - -5.1 Implemented Features - - - The specific TCP and Internet features to be implemented - -include the following: - - - - - - - - - - - - - - - - - - - -20- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - - multiple connections to multiple hosts, - - - flow control at the 1822, Internet, and TCP layers, - - - error recovery, - - - fair allocation of resources among all connections, - - - handling of urgent data, - - - surviving incorrect packets, - - - datagram reassembly, - - - routing, - - - source quenching. - - - - -5.2 Software Architecture Overview - - - The system protocol software architecture reflects the need - -to avoid packet processing delays rather than a strict hierarchy - -between protocol layers. The system protocol software is - -implemented as a single process to allow the system protocol - -layers to share software resources for greater efficiency. The - -shared resources include subroutines which perform functions - -required by more than one protocol layer and a common buffer pool - -to optimize storage resources and to allow efficient - -communication between protocol layers. - - - Network traffic through the system protocol process takes - -different forms including 1822 packets, datagrams, and TCP - -segments. These various forms are generically referred to as - - - - -21- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -"packets". Packets are passed into the system protocol process - -from either an applications protocol process or the ARPANET - -interface. Packets from the ARPANET are passed into the system - -protocol process by intrinsic calls to the INP interface. User - -generated network packets are passed to the system protocol - -process by using a combination of message files and data buffers. - -Message files are used to transfer control and status information - -while data transfer is done with buffer-to-buffer copies between - -the user protocol data segment and the system protocol data - -segment. - - - All read and write commands are done without wait to allow - -the system protocol process to simultaneously multiplex I/O - -channels and process network packets. I/O multiplexing is - -implemented through the IOWAIT intrinsic. The system protocol - -process issues an IOWAIT intrinsic after it finishes processing a - -data packet. The IOWAIT intrinsic returns the file number of the - -I/O channel associated with an I/O completion wakeup. - - - When the number of free buffers falls below a prescribed - -limit, an attempt is made to free buffers through data - -compaction. The attempt begins with a search for datagram - -fragments and unacknowledged TCP segments which waste buffer - -space by using only a fraction of the available space in each - -buffer assigned to them. This lack of efficiency can be - - - - - -22- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -particularly damaging because there is no guarantee that the data - -contained in the buffers will ever be processed. Wherever - -possible, datagram fragments are combined into a single datagram - -fragment and TCP segments are combined into a single segment to - -more efficiently utilize system buffers. Any buffers freed by - -this compaction process are returned to the freelist. - - - Network packets from both the user process and the ARPANET - -are processed along one of a number of data paths in the system - -protocol process. The actual data path taken depends on the type - -of data packet and, in the case of TCP segments, the state of its - -associated network connection. Packet processing is performed by - -a series of function calls which act as processing steps along - -the data path. - - - In order to avoid processing delays which can tie up system - -resources, each arriving data packet is processed through as much - -of the protocol software as possible. Processing of a packet is - -suspended only when the lack of some resource or some external - -event prevents further processing. - - - - -5.3 Control Structures - - - All of the status information both for individual network - -connections and for the system protocol software as a whole is - - - - - -23- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -kept in a set of control blocks as well as in a number of buffer - -list structures as shown in Appendix C. The control blocks - -include a general network resources control block, a foreign host - -control block for each foreign host connected to the local host, - -and send and receive control blocks for network connection. The - -list structures include a network buffer free list, a TCP buffer - -aging list and an Internet buffer aging list. - - - - -5.3.1 Network Resources Control Block - - - The Network Resources Control Block contains the information - -needed to maintain the network buffer free lists and aging lists. - -This information includes pointers to the network buffer free - -lists and aging lists and a count of the buffers in each of the - -lists. - - - The information contained in the Network Resources Control - -Block is used by the protocol software to control the - -distribution of network buffers among the various lists. The - -information is scanned at various times to determine the - -allocation or disposition of a particular network buffer. The - -determinations occur when new buffers are allocated from the free - -list and when buffers containing TCP segments are about to be - -acknowledged. Decisions are made based on the number of free - -buffers available and the priority of the task requiring the - - - - -24- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -buffers. - - - - -5.3.2 Foreign Host Control Blocks - - - Foreign Host Control Blocks maintain flow control within the - -1822 protocol layer. The block contains a counter for the number - -of outstanding 1822 packets sent to a single host. The counter - -includes all of the packets sent to the host on all sockets. The - -counter is incremented when an 1822 packet is sent and is - -decremented when either a RFNM or an Incomplete Transmission is - -received from the host. - - - The counter is used to prevent transmission of too many 1822 - -packets to a single host. All transmission from the host is - -blocked when the counter reaches the limit of eight outstanding - -1822 packets for any foreign host. - - - The 1822 level flow control is actually implemented by the - -send side of the TCP software. The TCP checks the RFNM count in - -the connection control block before it tries to transmit a - -segment to the foreign host. - - - - - - - - - - - - - -25- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -5.3.3 Connection Control Block - - - Each TCP connection has an associated control block. The - -control block contains data associated with the Transmission - -Control Block (TCB) along with other connection related - -information. Specific information included in the control block - -is as follows: - - - a connection state variable used to maintain the - connection state, - - - the local port number of the connection, - - - the TCP interface control block number associated with - this connection, - - - the file number of the private message file associated - with this connection, - - - the TCB data associated with the receive side of this - connection, - - - the TCB data associated with the send side of this - connection, - - - A pointer to any buffers containing unacknowledged data - received on this connection. - - - -5.3.4 Network Buffer Resources List Structures - - - Three list structures are used to maintain the network - -buffer resources shared by all of the sockets. These list - -structures include the free list and the two buffer aging queues. - - - The network buffer free list contains all of the network - -buffers currently available for use by any socket. These buffers - - - - -26- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -are allocated when new data comes in from either the network or a - -user protocol process. - - - The Internet Aging Queue is a list of active buffers - -assigned to blocked datagram fragments and complete datagrams. - -These buffers are the first to be reclaimed when there are no - -free buffers available. The Queue is sorted according to - -datagram age. All buffers which belong to the same datagram are - -combined into a single list structure. The datagram list - -structures are linked into the Internet Aging Queue with the - -least recently updated datagram always at the head of the queue. - -When a new datagram fragment comes in it is moved to the end of - -the queue along with all of the other fragments which belong to - -the same datagram. - - - The TCP Aging Queue is a list of buffers which contain at - -least parts of unacknowledged TCP segments. These buffers can be - -reclaimed when there are no free buffers and no buffers on the - -Internet aging list. The Queue is sorted by socket. All buffers - -which contain data for the same socket are combined in a buffer - -list and each buffer list is linked into the queue. The queue is - -sorted by the age of the data associated with each socket. Data - -belonging to the socket which has been inactive for the longest - -period of time is placed at the head of the queue so it can be - -recycled first. When a user process reads data from a - - - - - -27- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -connection, all the network buffers still waiting to be read on - -that connection are moved to the end of the TCP aging list. This - -assures that data associated with an active TCP connection will - -not be recycled ahead of data associated with an inactive TCP - -connection. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -28- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -6 User Process/TCP Interface - - - The user process/TCP interface is designed to meet two basic - -requirements. First, the interface must allow for high speed - -data transmission across the interface; this is especially - -important since this interface involves interprocess - -communication which could be delayed by excessive system overhead - -due to context switching and process scheduling. Second, the - -interface must isolate the system protocol process from any - -buffer overhead burdens caused by processing delays in the user - -process. System protocol process buffers are too valuable a - -resource to be locked into storing TCP segments which are waiting - -for response from a user process. - - - High speed data transmission across tser process/TCP - -interface is achieved by copying data directly from buffers in - -the user process to buffers in the system protocol process. The - -direct transfer is implemented with the move-to-data-segment and - -move-from-data-segment instructions provided by the HP3000. - - - The system protocol process is isolated from delays in the - -user process by making the user process responsible for buffering - -TCP data segments. Acknowledged incoming TCP segments, and TCP - -segments waiting to be transmitted over the ARPANET, are stored - -in buffers in the user protocol process. This use of user - -buffers serves two functions: it frees system protocol buffers - - - - -29- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -from being locked into storing TCP segments, and also gives the - -user process some control of network connection throughput. - -Throughput control is accomplished by allowing each user process - -to choose the amount of buffer resources it dedicates to each - -connection. - - - - -6.1 Interface Intrinsics - - - The TCP/user interface is implemented through a set of TCP - -intrinsics. These intrinsics allow the user process to create - -and use network connections with other processes on foreign - -hosts. - - - Seven intrinsics, TCPWAIT, TCPOPEN, TCPCLOSE, TCPRECEIVE, - -TCPSEND, TCPSTAT, and TCPABORT, provide the basic control - -functions needed to transfer data through the user process/TCP - -interface. Conceptually, the intrinsics allow the user to create - -network connections with other processes on foreign hosts. Each - -connection consists of a pair of sockets as defined in the TCP - -protocol document. Connections are created with a TCPOPEN - -intrinsic whose parameters define the sockets which make up the - -connection. After a connection is created, the user process uses - -the TCPSEND and TCPRECEIVE intrinsics to send or receive data. - -The TCPSTAT intrinsic allows the user to check the status of a - -connection. - - - - -30- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - Within the user process, connections are identified through - -the combination of a connection file number and a connection - -buffer. The connection file number is returned by a successful - -TCPOPEN call. The connection buffer is an integer array - -allocated by the user process. The buffer is initialized by the - -TCPOPEN intrinsic and is then passed as the first parameter to - -all of the other TCP intrinsics. It is the responsibility of the - -user process to maintain the association between the connection - -file number and the connection buffer. - - - The TCP I/O interface is entirely asynchronous so that a - -user process can queue any number of read or write requests to a - -particular connection. The user process has three limitations in - -this regard: first, it must provide the buffers associated with - -each TCP intrinsic call; second, the user process must keep track - -of which buffers are associated with each I/O call; and third, - -the user process cannot dequeue buffers until it has permission - -to do so from the system protocol process. - - - The user process uses a combination of the IOWAIT ane - -TCPWAIT intrinsic calls to keep track of I/O completion events. - -The IOWAIT intrinsic is invoked when the user process has - -completed processing all of the current data. When the IOWAIT - -intrinsic returns with a file number associated with a TCP - -connection, the TCPWAIT intrinsic is called to handle the I/O - - - - - -31- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -completion. The TCPWAIT intrinsic uses the connection buffer to - -determine the cause of the I/O completion and then performs the - -appropriate I/O cleanup task and returns an I/O type code to the - -user process. - - - The specific calling sequences of the TCP intrinsics are - -given below: - - -TCPOPEN(TCPCBUF,FHIA,FP,A/P,LP[,BADDR]) opens a TCP connection - - - TCPCBUF - TCP Connection Buffer - This is a pointer to an - - integer array ten elements long which acts as the - - control structure for all network connections. The - - array is allocated by the user process before any - - TCP intrinsics are called. - - - FHIA - Foreign Host Internet Address - 32 bit address. - - This address may be obtained with the HOSTADDR - - intrinsic which takes the host name text string as a - - parameter and returns the 32 bit internet address. - - In the case of a passive open a zero address - - indicates a listen for any host. - - - FP - Foreign Port - a 16 bit port address for this - - connection at the foreign host. In the case of a - - passive open a 0 port indicates a listen from any - - port on a foreign host. - - - - -32- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - A/P - Active/Passive - a boolean flag used to indicate if - - this open is for a listen socket (passive) or for an - - active connection. - - - LP - Local Port - 16 bit local port id. This parameter - - is optional. If it is not specified, the TCP picks - - a free local port id from a reserved part of the - - name space. - - - BADDR - Buffer Address - an optional buffer used to give the - - foreign host a window for transmission. If the - - buffer is not provided, the connection is opened - - with a zero window size until the user process calls - - the TCPRECEIVE intrinsic. - - - returns - local connection name or error code of -1 if the - - connection failed. The local connection name is - - actually the file number of the private message file - - associated with this connection. - - -TCPCLOSE(TCPCBUF) closes a TCP connection - - - TCPCBUF - TCP Connection Buffer - same as in the TCPOPEN - - intrinsic. - - -TCPABORT(TCPBUF,BUFPTR) aborts a TCP connection - - - TCPCBUF - TCP Connection Buffer - same as in the TCPOPEN - - - - -33- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - intrinsic. - - - BUFPTR - Buffer Pointer - pointer to a list of buffers - - released by the TCPABORT call. A zero value - - indicates that no buffers were released. - - -TCPRECEIVE(TCPCBUF,BADDR,BCNT) reads data from a TCP connection - - - TCPCBUF - TCP Connection Buffer - same as in the TCPOPEN - - intrinsic. - - - BADDR - Buffer Address - address of user buffer for receiv- - - ing network data. - - - BCNT - Byte Count - number of bytes to be transferred. - - - returns - an error code of -1 if the TCPRECEIVE failed. - - -TCPSEND(TCPCBUF,BADDR,BCNT,EOL) writes data to a TCP connection - - - TCPCBUF - TCP Connection Buffer - same as in the TCPOPEN - - intrinsic. - - - BADDR - Buffer Address - address of user buffer for sending - - network data. - - - BCNT - Byte Count - number of bytes to be transferred. - - - EOL - End Of Letter - a boolean flag to indicate that this - - buffer is an end of letter. - - - - -34- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -TCPSTAT(TCPCBUF,SBADDR) gives TCP connection status - - - TCPCBUF - TCP Connection Buffer - same as in the TCPOPEN - - intrinsic. - - - SBADDR - Status Buffer Address - address of user buffer for - - receiving network data. - - -TCPWAIT(TCPCBUF,BUFPTR,DATAPTR) returns the result of a previous - -TCP intrinsic call. - - - TCPCBUF - TCP Connection Buffer - Same as in the TCPOPEN - - intrinsic. - - - BUFPTR - Buffer Pointer - used to return a pointer to a - - buffer list released by an I/O event. A zero - - pointer indicates that no buffers were released. - - - DATAPTR - Data Pointer - pointer to the first data element - - within a buffer returned by the intrinsic to a - - TCPRECEIVE intrinsic. - - - returns - a code indicating the type of I/O completed. A list - - of the I/O codes is given in Appendix D. - - - - - - - - - - - - -35- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -6.2 Flow Control Across the Interface - - - Flow control across the user process/TCP interface is - -implemented through the use of message files. The message files - -act as control channels to transmit flow control and status - -messages between the user process and the TCP. Each connection - -makes use of two message files. A general input message file is - -used to transmit control messages from user processes to the TCP. - -All user processes share the same general input message file. - -Each connection also uses a private message file to convey - -control and status information from the system protocol process - -to the user process. - - - The control messages passed between the user process and the - -system protocol process are short data buffers. These buffers - -contain the message type along with other information associated - -with the particular command. The formats for each of the message - -types is shown in Appendix D. - - - - -6.3 Interface Control Structures - - - Each network connection has an associated TCP interface - -control block. These blocks include a set of pointers and data - -segment numbers used to keep track of buffers within both the - -user process and the system protocol process. The pointers - - - - - -36- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -contain buffer addresses relative to the beginning of the stack - -data segment for each process. A diagram of the TCP interface - -control block is given in Appendix E. - - - The control blocks are maintained in a separate data segment - -shared by both the user and system protocol processes. The data - -segment is initialized by the system protocol process when it - -starts up. The initialization of the data segment divides it - -into a number of control blocks. Individual control blocks are - -initialized by the TCPOPEN intrinsic. Responsibility for - -releasing the control blocks is shared among the TCPCLOSE, - -TCPABORT, and TCPWAIT intrinsics. - - - - -6.4 Interface Control Algorithms - - - The specific functions performed by each of the network I/O - -intrinsics are as follows: - - - TCPOPEN - - - 1. The TCPOPEN intrinsic software searches for a free TCP - - connection interface control block and initializes it. - - - 2. The TCPOPEN software creates a private message file with - - a unique file name. The unique file name is formed out - - of the prefix "TCP" and the id number of the TCP - - - - - -37- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - interface control block. - - - 3. The TCPOPEN software sends an OPEN CONNECTION command - - message to the TCP via the general input message file. - - The message includes all of the TCPOPEN parameters and - - the id number of the TCP interface control block. - - - 4. The TCPOPEN software makes a read request with timeout - - on the private message file. If the read times out, the - - TCPOPEN software sends an ABORT CONNECTION command to - - the TCP, deletes the TCP interface control block, and - - returns an error code to the user process. The - - connection buffer provided as a parameter to TCPOPEN is - - used as the read buffer. - - - 5. The TCP software reads the open command from the general - - input message file and uses the information to create a - - connection control block. The TCP software also - - initiates the connection protocols specified in the - - command message. - - - 6. The TCP software sends an OPEN CONFIRM message back to - - the user process via the private message file created by - - the TCPOPEN intrinsic software. The OPEN CONFIRM - - message will fail if the user process is destroyed by a - - user abort. If this occurs, the TCP software takes - - - - - -38- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - responsibility for cleaning up the TCP interface control - - block as well the connection control blocks. - - - 7. The TCPOPEN software reads the OPEN CONFIRM message from - - the private message file. The TCPOPEN software - - initiates a read without wait on the private message - - file. The connection buffer is again used as the read - - buffer. - - - 8. If the user provides a read buffer as the last parameter - - to the TCPOPEN intrinsic, a read operation is initiated. - - The TCPOPEN software attaches the buffer to the TCP - - interface control structure and sends a RECEIVE message - - to the TCP via the general input message file. The TCP - - uses this message to set the size of the connection - - window. - - - 9. The TCPOPEN software returns the file number of the - - private message file to the user process. - - - TCPCLOSE - - - 1. The TCPCLOSE software marks the connection closed bit - - for the send side in the TCP interface control block. - - The TCPCLOSE software checks to see if there are any - - data buffers waiting to be read by the TCP. If there - - are no data buffers, the TCPCLOSE software sends a CLOSE - - - - -39- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - CONNECTION command to the TCP. If the receive side is - - marked closed and there are no buffers waiting to be - - read, the TCPCLOSE intrinsic software deletes the TCP - - interface connection control block. - - - 2. The TCPCLOSE software returns to the user process. - - - 3. When the TCP receives a connection close command from - - the user process it sends a FIN to the foreign host and - - marks the send side of the connection as FINWAIT-1. - - When the TCP receives an ACK of the close the foreign - - host, it marks the send side of the connection as - - FINWAIT-2. If the receive side of the connection is - - marked closed, the TCP deletes the connection control - - block. - - - 4. If the TCP receives a FIN from the foreign host, it - - marks the receive side of its connection as closing. - - When all data and the FIN sent by the foreign host are - - ACKED, the TCP sends a NETCLOSE command to the user - - process and marks the receive side of the connection - - closed. If the send side is also marked as closed, the - - TCP deletes the connection control block. The close - - message sent to the user process is processed by the - - TCPWAIT intrinsic. - - - - - - -40- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - TCPABORT - - - 1. The TCPABORT software sends an ABORT CONNECTION command - - to the TCP via the general input command file. The - - TCPABORT software releases the TCP interface control - - block and deletes the connection's private message file. - - - 2. The TCPABORT software returns to the user process. The - - return includes a pointer to a list of user buffers - - which were assigned to the connection. - - - 3. When the TCP receives an ABORT CONNECTION command from - - the user process it sends a reset to the foreign host, - - deletes any unacknowledged data it has for this - - connection, and deletes the connection control block. - - - 4. If the TCP receives a reset from the foreign host, it - - deletes all of the data waiting to be transmitted to the - - user process and sends a NETABORT message to the user - - process via the private message file. The NETABORT - - message is handled by the TCPWAIT intrinsic. - - - TCPRECEIVE - - - 1. The TCPRECEIVE software checks to see if the receive - - side connection closed flag is set. If the flag is set, - - the TCPRECEIVE software returns a connection closed - - - - - -41- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - indication to the user process. It is up to the user - - process to close the send side of the connection and - - clean up the connection buffer if it has not done so. - - - 2. If the connection is open, the TCPRECEIVE software - - attaches its read buffer to the TCP interface control - - block and sends a RECEIVE message to the TCP. The - - message is used to indicate to the TCP that the user has - - made a buffer available to the connection. The - - TCPRECEIVE software returns to the user process. - - - 3. When the TCP receives the user's read message, it checks - - to see if it has any unacknowledged segments waiting to - - be transferred to the user process. If it has no - - segments, it uses the RECEIVE message to increase its - - receive window size. If the TCP has segments waiting - - for transfer, it transfers as much of the data as - - possible to the user process. All transferred data is - - immediately acknowledged to the foreign host. The TCP - - sends a PENDING RECEIVE message to the user process to - - advise it of the transfer of data. This message is - - processed by the TCPWAIT intrinsic. - - - 4. If the TCP receives data from the foreign host, it - - checks to see if the user process has assigned any free - - buffers to this connection. If there are free buffers, - - - - -42- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - the TCP copies as much of the data it receives as - - possible into the user buffers and acknowledges the - - copied data to the foreign host. Any data which is not - - copied is maintained on the TCP aging list where it is - - stored until it is transferred to a user process buffer - - or discarded. The user process is informed of the data - - transfer through a PENDING RECEIVE command message via - - the private message file. This message is received by - - the TCPWAIT intrinsic. - - - TCPSEND - - - 1. The TCPSEND intrinsic checks to see if the connection is - - still open. If the connection is marked closed, the - - TCPSEND returns an error code to the user. - - - 2. If the connection is still open, the intrinsic software - - attaches the user supplied data buffer to the TCP - - interface control block. The TCPSEND software sends a - - SEND message to the TCP via the general input message - - file. The TCPSEND software now returns to the user - - process. - - - 3. The TCP software, on receiving the data SEND message, - - checks to see if it can send the data to the foreign - - host. The decision on whether to send the data is made - - - - - -43- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - by checking the following conditions: - - - - the foreign host has advertised sufficient window - space, - - - the number of outstanding RFNMs for all connections - to the foreign host is less than eight, - - - the amount of data waiting to be sent is sufficient - to warrant a data packet. This condition prevents - single byte segments from being sent out over the - ARPANET. The TCP waits until it has at least 10 - bytes of data before transmitting it out to the - ARPANET. - - - the user has specified an EOL. - - - If the TCP decides to send the data, it prepares a - - network packet and copies as much of the user data as it - - can transmit into the network packet. The data transfer - - is made directly from the list of user buffers queued by - - the TCPSEND intrinsic to the message packet buffer. All - - buffers filled by the data transfer are marked as filled - - and appended to the filled buffer list. - - - 4. After the TCP has transferred all of the data from the - - user buffers, it checks the TCP interface control block. - - If the send side of the connection is marked closed, the - - TCP sends a Fin to the foreign host. If the receive - - side is also closed, the TCP sends a NETCLOSED command - - to the user process. - - - 5. After the data is transmitted, the TCP sets a - - - - -44- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - retransmission timer. - - - 6. If the TCP receives an acknowledgment from the foreign - - host, it updates the TCP interface control block to - - reflect the acknowledgment, turns off the timer, and - - sends a DATA SENT message to the user process via a - - connection private message file. The message contains - - the number of bytes acknowledged. This message is - - processed by the TCPWAIT command. If only some of the - - data is acknowledged, the TCP resets the timer for the - - unacknowledged data. - - - 7. If the TCP does not get an acknowledgment from the - - foreign host and the connection times out, it again - - reads as much data as it can from the user buffer and - - sends it out as a network packet. - - - TCPSTATUS - - - 1. The TCPSTATUS software checks to see if the connection - - is still open. If it is closed, it returns a connection - - closed code to the user process. - - - 2. The TCPSTATUS command checks to see if there is an out- - - standing status request by the user process. If there - - is, it returns an error code to the user process. - - - - - - -45- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - 3. If there is no pending status request, the TCPSTATUS - - software attaches the status request buffer to the TCP - - interface control block and sends a STATUS message to - - the TCP via the general input message file. The - - TCPSTATUS returns to the user process. - - - 4. When the TCP receives the status request message, it - - formulates a status message and copies it into the - - user's status buffer attached to the connection buffer. - - The TCP then sends a status complete message to the user - - process via the connection private message file. The - - message from the TCP is processed by the TCPWAIT - - intrinsic. - - - TCPWAIT - - - 1. The TCPWAIT software checks the message received from - - the TCP. - - - 2. If the message is a NETCLOSE command, the TCPWAIT - - software checks if the send side of the connection is - - closed and there is no data waiting to be sent to the - - TCP. If the send side is closed and there is no pending - - TCP data, the TCPWAIT software deletes the TCP interface - - control block. If there is data waiting to be - - transmitted, the TCPWAIT software marks the receive side - - - - - -46- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - of the connection closed. In either case, TCPWAIT - - returns a connection closed code to the user process. - - It is up to the user process to decide when to close the - - send side of the connection, if it has not already done - - so. If there are any user buffers still assigned to - - this connection, they are returned to the user process - - at this time. - - - 3. If the message is a NETABORT command the TCPWAIT - - software deletes the TCP interface control block and - - returns a connection abort code to the user process. - - Any buffers associated with connection are also returned - - in a list structure through the buffer pointer - - parameter. - - - 4. If the message is a PENDING RECEIVE command, the TCPWAIT - - returns the pointer to the head of the first data - - buffer, the first data byte, and a byte count. Since - - the data may be returned in a number of linked buffers, - - it is up to the user to follow the buffer links. As the - - user process reads the data it should check each - - buffer's header. Completely filled buffers marked with - - a zero in the in use field can be reclaimed by the user - - process. - - - 5. If the message is a DATASENT message, the TCPWAIT - - - - -47- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - software checks the acknowledgment count and releases as - - many buffers as it can from the send buffer list. The - - released buffers are linked in a list and the buffer - - pointer parameter is set to point to the first buffer in - - the list. The TCPWAIT software returns a data - - acknowledgment code to the user process. - - - 6. If the message is a STATUS COMPLETE message, the TCPWAIT - - software sets the buffer pointer parameter to point to - - the status buffer and returns a status complete command - - code to the user process. - - - - -6.5 Windowing, Acknowledgment, and Retransmission - - - The receive window size and data segment acknowledgment are - -completely dependent on the number of buffers the user process - -allocates to a connection. The receive window size of a - -connection is always set to the amount of free buffer space the - -user process allocates to the receive side of a connection. - -Acknowledgments of incoming TCP segments are limited to those - -sequence numbers which fit in the receive window. - -Acknowledgments are sent as soon as data is copied from the - -system protocol buffers to the user protocol buffers. - - - - - - - - -48- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - The initial retransmission algorithm is extremely simple. - -The first retransmission of unacknowledged data occurs 3 seconds - -after the original transmission. The second retransmission - -occurs 6 seconds after the first. The third and successive - -retransmissions occur 15 seconds after the previous - -retransmissions. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -49- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -7 1822 Layer/INP Driver Communication - - - Communication between the system protocol process and the - -INP driver is implemented with four intrinsics: IOPEN, ICLOSE, - -IREAD, and IWRITE. These intrinsics are modified forms of the - -CS/3000 intrinsics. Their function is to open a connection to - -the INP network processor and to transmit data buffers to and - -from the INP. The IREAD and IWRITE intrinsics are always done - -without wait. The IOWAIT intrinsic is used to determine the - -completion of an I/O request. - - - Initialization of the INP interface begins with an IOPEN - -call which initializes the interface software. This is followed - -by four IREAD intrinsic calls to initialize buffers for incoming - -network packets. Four pending buffers should allow enough - -buffering to catch all of the incoming data without tying up too - -many network buffers. - - - The following is a summary of the commands used to - -communicate between the protocol process and the INP driver. - - - - IOPEN() - - - returns error code on failure. Possible failure modes - - include failure to find the INP microcode file, failure to - - load the microcode file in the INP, and a hardware failure - - in the INP. - - - - -50- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - This command initializes the connection between the - - protocol process and the INP. The initialization includes - - activating the INP and loading its microcode. - - - - ICLOSE() - - - This command closes the connection between the INP and the - - protocol process when the network software is brought - - down. - - - - IREAD(buffer) - - - This intrinsic passes an empty buffer to the INP driver. - - The buffer is queued to a DIT with an ATTACHIO command. - - Control then returns to the protocol process. - - - - IWRITE(buffer) - - - This intrinsic passes a full buffer to the INP DIT with - - the ATTACHIO command. Control is returned after the - - buffer is attached to the DIT. The buffer is released - - when the calling process receives an interrupt indicating - - I/O completion. - - - - - - - - - - - - - -51- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -8 Protocol Software Buffering Scheme - - - Data buffer management is the most important component of - -the network protocol software. Data buffers perform the key - -functions of data storage and data communication within the - -protocol software. These functions have complex and conflicting - -requirements which must be balanced by the buffer management - -scheme. An understanding of the buffer management scheme - -therefore begins with an understanding of its requirements. - - - First, data buffers must be considered a scarce resource - -shared by a number of competing "interests" within the protocol - -software. These "interests" include the various protocol layers - -as well as individual network connections within the TCP layer. - -The major problem is how to effectively allocate buffer resources - -among these interests. This problem becomes particularly - -difficult when there is a shortage of buffers. - - - An examination of the buffer requirements shows that they - -fall into two categories. The first category includes those - -buffers used to support general network functions. This includes - -buffers used in the 1822 and Internet protocol layers. These - -buffers are assigned to move and store data in these protocol - -layers without regard to particular network connections. The - -second category includes those buffers used by the TCP protocol - -to support specific connections. - - - - -52- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - The distinction between the two buffer categories is - -important because buffer use within each category is controlled - -by a different set of events. The use of buffers assigned to the - -general network functions can be controlled by the system - -protocol software. Buffers are processed through the Internet - -and 1822 protocol layers without regard to the behavior of user - -processes and their affect on individual connections. Buffers - -assigned to the connection specific network functions in the TCP - -and higher level protocol layers are greatly affected by events - -which occur in user processes. The rate at which data is - -accepted from or transmitted to the ARPANET by user processes is - -totally unpredictable. This unpredictability makes it difficult - -for the system protocol process to effectively assign buffer - -resources to individual network connections. - - - Two buffer pools are used to separate those buffering - -functions shared by all network connections from the connection - -specific buffering functions. A network buffer pool, maintained - -by the system protocol process, is used to support the 1822 and - -Internet and some TCP buffering functions. A user buffer pool, - -maintained by each user protocol process is used to support - -connection dependent buffering functions for the TCP and higher - -level protocols. - - - - - - - - -53- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -8.1 Network Buffer Pool - - - The network buffer pool supports the following specific - -functions. - - - - movement of network packets from the INP driver 1822 and - Internet protocol layers; - - - storage of Internet datagram fragments in the Internet - protocol layer; - - - storage of unacknowledged TCP segments which do not fall - into the current window; - - - movement of network packets from the TCP layer through the - Internet and 1822 layer to the INP driver. - - - The network buffer pool is maintained on the system protocol - -process stack where it can be accessed easily by the various - -system protocol layers. All of the buffers in the pool are the - -same size to minimize the amount of software overhead needed to - -maintain the buffers. The buffer size is matched to the maximum - -frame size (128 bytes) which may be transmitted over the X.25 - -link between the INP and the ARPANET IMP. - - - The size choice is the result of two constraints. First, - -the buffers used to catch incoming data must be large enough for - -the largest incoming network packet. The packets are transferred - -directly into memory by the INP hardware making it impossible for - -a packet to cross buffer boundaries. Second, the single size - -buffer scheme limits the amount of software overhead needed to - - - - - -54- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -maintain the buffer pool. - - - The single size buffer scheme does not waste buffer space - -because the buffer size is well matched with the data it - -processes. The 128 byte buffer size allows room for all of the - -protocol headers and a small amount of data. Messages with more - -data will use multiple buffers. The buffers are large enough to - -hold a significant amount of data yet small enough to limit the - -waste caused by partially filled buffers. - - - No attempt is made to assign network buffers to any - -particular protocol layer or task. Buffers are allocated either - -when data is read from the ARPANET or when the TCP layer sends - -data out to the ARPANET. - - - - -8.1.1 Packet Compaction - - - When the total number of network buffers in the free list - -falls below a set value, a data compaction algorithm is invoked. - -This algorithm searches for partially filled buffers used to - -store Internet datagram fragments and unacknowledged TCP segments - -waiting to be transferred to a user process. These buffers are - -chosen because processing of the data in them is indefinitely - -suspended. Compaction of the data in these buffers allows some - -of the buffers to be released to the free list. - - - - - -55- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -8.1.2 Buffer Recycling - - - A buffer recycling algorithm is invoked when the system - -protocol process runs out of free network buffers. The algorithm - -allows buffers to be reused even if they currently contain data. - -The mechanism works by identifying which data buffers can be - -reused without losing irreplaceable information. These buffers - -are sorted in a priority scheme wallows the least important - -buffers to be recycled first. The buffer recycling scheme - -prevents one socket from tying up too much of the network buffer - -resources. It also helps assure a supply of network buffers even - -under heavy load conditions. - - - The buffer algorithm scheme divides network buffers into - -three categories: free buffers, in-use buffers, and aging - -buffers. Free buffers are available for immediate use by any - -protocol layer and are maintained on a common free list. In-use - -buffers are buffers bound to messages currently being processed - -and cannot be used for any other purpose. Aging buffers are used - -in messages where processing is suspended for any number of - -reasons. These buffers are placed in one of two special lists - -arranged in order of decreasing age. That is, message buffers - -which have been blocked for the longest time are at the front of - -the queue, while the message buffers which were most recently - -blocked are at the end of the queue. - - - - - -56- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - There are two points in the protocol software where messages - -may be blocked. The first point is in the Internet Protocol - -software. Fragmented datagrams cannot be passed on to the TCP - -and can be blocked indefinitely if one or more of the fragments - -which make up the datagram is lost. A duplicate datagram may - -eventually be transmitted leaving the fragmented datagram in a - -suspended state. The second blocking point is in the TCP - -software. Unacknowledged segments sent by a foreign host remain - -suspended in the TCP until they are transferred to a user process - -buffer. Any segments which are not transferred to a user process - -will remain blocked indefinitely. - - - Buffer recycling is implemented through buffer aging lists - -which are adjuncts to the buffer free list. When an incoming - -message is blocked, its buffers are attached to the end of one of - -two aging lists. Buffers bound to datagram fragments are - -attached to one aging lists while buffers bound to TCP segments - -waiting to be read by user processes are attached to the second - -aging list. - - - The aging lists are periodically manipulated when a new - -datagram fragment comes in or when a user process receives some - -data from the TCP. Buffers associated with the particular - -datagram fragments or TCP segments are moved to the end of their - -respective aging lists. This helps assure that any data which - - - - - -57- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -has a chance of being used will not be thrown away. - - - The buffers bound to fragmented datagrams are recycled first - -because they are the most expendable. Blocked datagram buffers - -may be a part of datagrams which have been retransmitted and - -passed on to the TCP. When the blocked datagram buffers are - -exhausted the buffers bound to blocked TCP segments are used. - -These buffers contain the unacknowledged segments which have not - -been claimed by a user process. The assumptions here are that - -the user process will never claim these segments and that they - -are expendable. - - - - -User Process Buffer Pool - - - The user process is responsible for maintaining a set of - -fixed length buffers for passing the user data to the TCP. Each - -buffer must include a four byte header along with 80 bytes of - -data space. - - - The first element of the header is used as either a byte - -count or a full buffer marker. The count is used by the TCPSEND - -intrinsic to indicate the number of data bytes in the buffer. - -The TCPRECEIVE intrinsic uses the buffer full marker to identify - -buffers which may be reclaimed by the user process. - - - - - - - -58- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - The second element in the array header contains a list - -pointer. This pointer is maintained by the intrinsic software - -and should not be altered by the user process until the buffer is - -released. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -59- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -9 Data Flow Through the Protocol Software - - - Data flow through the protocol software is effected through - -a series of tests and function calls. The tests check the type - -and processing state of each packet while the function calls - -perform specific operations on each packet. These operations - -include such things as creating or checking headers and queueing - -or de-queueing packet buffers. - - - Whenever possible, network packets are processed through all - -of the system protocol layers without interruption. This helps - -increase throughput by minimizing two important parameters. - -First, the amount of buffering required to process data is - -decreased because all network buffers associated with a packet - -are released when the packet has passed through the protocol - -software. Second, the time between the receipt of a packet from - -the ARPANET and the transmission of an ACK is reduced. - - - There are a number of instances when the processing of a - -packet can be interrupted within the system protocol process. - -This can occur when the lack of some resource or event prevents - -further processing. Examples of this are as follows: - - - - Internet datagram fragments waiting for reassembly; - - - TCP segments from a foreign host waiting to be read by a - user process; - - - TCP segments from a user process waiting for window - - - - -60- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - allocation before being transmitted to the ARPANET; - - - TCP segments from a user process already sent to the - ARPANET but waiting for an acknowledgment. - - - - -9.1 ARPANET to the User Level Data Flow - - - Data packets come in from the network via a DMA interface to - -the INP network processor. Incoming data is first transferred - -into the protocol process via network buffers passed to the IREAD - -intrinsic which places a read request on the DIT queue of the - -INP. An arriving network packet is placed in the network buffer - -by the INP driver. The system protocol process is notified of - -each I/O completion through the IOWAIT intrinsic. - - - Processing of network packets begins when an IOWAIT call - -returns on completion of an IREAD intrinsic. The first - -processing step is to link the network buffers which contain the - -pieces of an 1822 packet. - - - The next processing steps are performed by the 1822 protocol - -software. If this is a normal data packet the 1822 header is - -removed and the data packet is passed as a datagram to the - -Internet Software. The transfer is done by calling a sequence of - -Internet protocol routines with the datagram as a parameter. - - - - - - - - -61- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - The Internet software checks the datagram header for - -integrity and then tries to find the proper address for this - -datagram. If the datagram is not for the local host it is routed - -to the proper ARPANET Host and the network buffers are returned - -to the free list. - - - If the datagram is a fragment of a larger datagram it is - -linked to any existing fragments waiting to be processed. If the - -new fragment does not complete the incoming datagram, the - -fragment is placed in an aging buffer queue next to the youngest - -buffer in the partially complete datagram. At this point all - -processing on the incoming datagram is suspended until the rest - -of the datagram fragments arrive. - - - A complete datagram is stripped of its Internet header and - -sent to the TCP software as a data segment. The TCP performs a - -number of functions on incoming segments: first the segment - -header is checked to see if it belongs to a known socket -- if it - -does, any acknowledgment information from the header is taken to - -update the socket status; next, the segment is checked to see if - -it falls within a window -- if it is not within the window (or a - -reasonable approximation thereof), the segment is discarded and - -its buffers are returned to the free list. - - - Accepted TCP segments are transferred into the user buffers. - -The transfer is initiated by the user process which provides a - - - - -62- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -buffer through the TCPOPEN or TCPRECEIVE intrinsic. A command - -message sent via the general input message file is used to inform - -the system protocol process that a buffer is available. The - -system protocol process transfers as much of its segment as - -possible to the user buffer. The user process is then notified - -of the data transfer via the connection's private message file. - -Only the transferred portions of the segments are acknowledged to - -the foreign host. Any portions of segments which do not fit in - -the receive window are stored in the TCP aging queue. - - - The acknowledgment may be sent in a number of ways. If the - -same network connection has an outgoing packet waiting for - -transmission, the acknowledgment information is added to the - -outgoing packet. If there is no pending outgoing packet, a check - -is made to see if there is sufficient unacknowledged data to - -warrant an acknowledgment packet. If there is enough - -information, a separate acknowledgment packet is generated and - -transmitted out to the ARPANET as if it were a normal message. - -If the number of unacknowledged segments is insufficient to - -justify an acknowledgment packet, the pending acknowledgment bit - -in the TCB is set and a timer is started. If the timer runs out, - -an acknowledgment packet is sent regardless of the number of - -unacknowledged segments. - - - - - - - - -63- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -9.2 User Level to the ARPANET Data Flow - - - Transfer of data from the user process out to the ARPANET - -begins with a NETSEND intrinsic call. The intrinsic software - -sends a message to the system protocol process to inform it that - -it has data to send. The system protocol process tests the state - -of the connection to see if data transmission is feasible. The - -following are sufficient conditions for data transmission out to - -the ARPANET: - - - - enough data has collected to justify transmitting it to - the foreign host; - - - the user process has specified an EOL in the data - transmission; - - - there are fewer than eight outstanding 1822 protocol - packets waiting for RFNMs to the foreign host; - - - the waiting data falls within the foreign host's window. - - - If the state of the connection does not allow a transmission - -to occur, a request-to-send data flag is set in the connection - -control block. When the connection state changes due to some - -external event, a check is made to see if the new state allows - -the transmission of waiting data. An example of such an event is - -the arrival of a RFNM from a foreign host; in this case all of - -the connections to the foreign host are checked for data waiting - -for transmission. The connection with data which has been - -waiting for the longest time is processed first. An attempt is - - - - - -64- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -made to combine as many of the waiting TCP segments as possible - -into one data transfer to increase the amount of data - -transmitted. - - - If there is nothing blocking transmission of the data, the - -TCP software allocates a buffer, creates the necessary TCP, - -Internet, and 1822 headers, and copies the data to be transmitted - -from the user buffer to the system's buffer. The TCP header will - -include any acknowledgment information for data received on the - -return socket associated with the connection. - - - In order to assure proper transmission of the TCP segment a - -retransmission sequence is started. A retransmission timer is - -started to wake up the protocol software when a retransmission is - -needed. If a timeout occurs, the segment is retransmitted as - -soon as the state of the connection allows it. The necessary - -conditions for a retransmission are the same as those for the - -original transmission. If the segment is partially acknowledged, - -the data left in the retransmission queue is only that data - -represented by the unacknowledged sequence numbers. - - - - - - - - - - - - - - - -65- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - APPENDIX A - HP3000 to ARPANET Link - - - - - +----------+ +----------+ - | |---+ +---| | - | | I | X.25 LAP | | | - | HP3000 | N |--------------| | C30 IMP | - | | P | | | | - | |---+ +---| | - +----------+ +----------+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -66- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - APPENDIX B - Protocol Software Organization - - +---------+ - | MBB | - +---+-+---+ - ^ | - | v - +---+-+---+ - | INP | - +---------+ - | Driver | - +---+-+---+ - ^ | - | v - ,----+-+----, - High Priority / Device / - User Mode /Information/ - Process / Table / - '----+-+----' - ^ | - ATTACHIO - | v - +-----+-+----+ - | 1822 | - | ------- | ,---------------, - | Internet |--------->/ Transmission / - | ------- |<--------/ Control Block / - | TCP | '---------------' - +-+--+---+--++ - ^ | | | - : | | | - +--------:--+ | +------------+ - | : | | - | ...:......|...............|.... - | : | : | : - v : v : v : - +---+-----+---+ +--+------+-+ +--+---+--+ - |Server Telnet| |User Telnet| |User FTP | - | Program | | Program | | Program | - +-----+--+----+ +--+-+-+-+--+ +-+-+-+-+-+ - ^ | | | | | | | | | - | v | | | | | | | | - Pseudo-TTY ,-+--+-, USERS USERS - Logical Devices / PTY / - (one each user) '-+-+--' - ^ | - | v - HP3000 - Command Interpreter - ---- Private Message Files - .... General Input Message File - - - -67- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - APPENDIX C - Control Structures - - _______________________________ - |POINTER TO BUFFER FREELIST | - |-----------------------------| - |POINTER TO END OF FREELIST | - |-----------------------------| - |FREE BUFFER COUNT | - |-----------------------------| - |POINTER TO INTERNET AGE LIST | - |-----------------------------| - |POINTER TO END OF INTERNET | - |-----------------------------| - |INTERNET AGE LIST COUNT | - |-----------------------------| - |POINTER TO TCP AGE LIST | - |-----------------------------| - |POINTER TO END OF TCP LIST | - |-----------------------------| - |TCP AGE LIST BUFFER COUNT | - |-----------------------------| - - NETWORK RESOURCE CONTROL BLOCK - - - - - - _______________________________ - |HOST NUMBER | - |-----------------------------| - |NUMBER OF OUTSTANDING 1822 | - |PACKETS WAITING FOR RFNMS | - |_____________________________| - - FOREIGN HOST CONTROL BLOCK - - - - - - - - - - - - - - - - -68- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - _____________________ - | CONNECTION STATE | - |-------------------| - | LOCAL PORT NUMBER | - |-------------------| - | TCP INTERFACE | - | CONTROL BLOCK NO. | - |-------------------| - |CONNECTION PRIVATE | - |MESSAGE FILE ID | - --------------------| - - GENERAL INFORMATION SECTION - OF THE CONNECTION CONTROL - BLOCK - - - _____________________ - |RECEIVE SEQUENCE | - |-------------------| - |RECEIVE WINDOW | - |-------------------| - |RECEIVE BUFF SIZE | - |-------------------| - |RECEIVE URGENT PTR | - |-------------------| - |RECEIVE LAST BUFF | - |-------------------| - |INITIAL RECEIVE | - |SEQUENCE NUMBER | - |-------------------| - |PTR TO UN-ACKED TCP| - | SEGMENTS | - |___________________| - - CONNECTION RECEIVE DATA - - - - - - - - - - - - - - - - -69- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - _____________________ - |SEND UN-ACKED | - |-------------------| - |SEND SEQUENCE | - |-------------------| - |SEND WINDOW | - |-------------------| - |SEND BUFFER SIZE | - |-------------------| - |SEND URGENT PTR | - |-------------------| - |SEND SEQUENCE FOR | - |LAST WINDOW UPDATE | - |-------------------| - |SEND LAST BUFFER | - |-------------------| - |INITIAL SEND | - |SEQUENCE NUMBER | - |___________________| - - CONNECTION SEND DATA - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -70- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - ________________ -FREEBUFFER QUEUE --->|NEXT BUFFER |____ - |--------------| | - | | | - |______________| | - | - ______________________| - | - | ________________ - -->|NEXT BUFFER |____ - |--------------| | - | | | - | | | - |______________| | - | - ______________________| - | - | ________________ - -->|NULL | - |--------------| - | | - | | - |______________| - - NETWORK BUFFER FREELIST - - - - - - - - - - - - - - - - - - - - - - - - - - - -71- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - OLDEST DATAGRAM SECOND OLDEST - FRAGMENT DATAGRAM FRAGMENT -INTERNET ________________ ________________ -AGING --->|NEXT DATAGRAM |-------->|NEXT DATAGRAM |--> PTR TO -LIST |--------------| |--------------| THIRD - |NEXT BUFFER |____ |NEXT BUFFER |____ OLDEST - |--------------| | |--------------| | - |______________| | |______________| | - | | - ______________________| _____________________| - | | - | ________________ | _______________ - -->|NEXT BUFFER |____ -->|NEXT BUFFER |____ - |--------------| | |-------------| | - | | | | | | - | | | | | | - |______________| | |_____________| | - | | - ______________________| ____________________| - | | - | ________________ | _______________ - -->|NULL | -->|NULL | - |--------------| |-------------| - | | | | - | | | | - |______________| |_____________| - - INTERNET AGING LIST - - - - - - - - - - - - - - - - - - - - - - - - -72- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - CONNECTION 1 CONNECTION 2 - OLDEST UN-ACKED SECOND OLDEST UN-ACKED - SEGMENT BUFFERS SEGMENT BUFFERS -TCP ________________ ________________ PTR TO -AGING --->|NEXT SEGMENT |-------->|NEXT SEGMENT |--> THIRD -LIST |--------------| |--------------| OLDEST - |NEXT BUFFER |____ |NEXT BUFFER |____ - |--------------| | |--------------| | - |______________| | |______________| | - | | - ______________________| _____________________| - | | - | ________________ | _______________ - -->|NEXT BUFFER |____ -->|NEXT BUFFER |____ - |--------------| | |-------------| | - | | | | | | - | | | | | | - |______________| | |_____________| | - | | - ______________________| ____________________| - | | - | ________________ | _______________ - -->|NULL | -->|NULL | - |--------------| |-------------| - | | | | - | | | | - |______________| |_____________| - - TCP AGING LIST - - - - - - - - - - - - - - - - - - - - - - - -73- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - APPENDIX D - Command Message Formats - - -General Message Format - - _________________________ - | Command Type (2 bytes)| - |_______________________| - | TCP Interface Control | - | Block No. (2 bytes) | - |_______________________| - | Data (10 bytes) | - |_______________________| - - -OPEN CONNECTION Data Area Format - - _________________________ - | Foreign Host Internet | - | Address (4 bytes) | - |_______________________| - | Foreign Port (2 bytes)| - |_______________________| - | Local Port (2 bytes) | - |_______________________| - | Status Flag bits | - | (2 bytes) | - |_______________________| - - -SEND Command Data Area Format - - _________________________ - | Send Byte Count | - | (2 bytes) | - |_______________________| - - - - - - - - - - - - - - - - -74- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - -Message File Command Codes - - ___________________________________________________ - |User To TCP Command | TCP to User Command | Code | - |____________________|_____________________|______| - | OPEN CONNECTION | OPENCONFIRM | 0 | - |____________________|_____________________|______| - | CLOSE CONNECTION | NETCLOSE | 1 | - |____________________|_____________________|______| - | ABORT CONNECTION | NETABORT | 2 | - |____________________|_____________________|______| - | SEND | DATASENT | 3 | - |____________________|_____________________|______| - | RECEIVE | PENDING RECEIVE | 4 | - |____________________|_____________________|______| - | STATUS | STATUS COMPLETE | 5 | - |____________________|_____________________|______| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -75- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - APPENDIX E - TCP Interface Control Block - - - GENERAL INFO SECTION OF THE - TCP INTERFACE CONNECTION BLOCK - +----------------------------+ - | TCP STATUS BUFFER PTR | - +----------------------------+ - | USER PROCESS STACK DATA | - | SEGMENT NUMBER | - +----------------------------+ - | SEND Side Open/Close flag) | - +----------------------------+ - |RECEIVE Side Open/Close flag| - +----------------------------+ - - - SEND PORTION OF THE TCP USER BUFFERS USED - INTERFACE CONNECTION BLOCK TO TRANSMIT DATA - TO THE TCP - +----------------------------+ +--------------+ - | Ptr to First Free Buffer |------------->| Data Count | - | (user buffer whose data | |(no data bytes| - | has been read by TCP | | in buffer) | - +----------------------------+ +--------------+ - | Ptr to Next Data Buffer | | Link to next | - | (user buffer whose data +-----+ +--+ Buffer | - | not been read by TCP) | | | +--------------+ - +----------------------------+ | | | DATA | - | Ptr to first UnAcked byte +---+ | | +--------------+ - +----------------------------+ | | | - | Offset in Next Data Buffer | | | | - |(offset in next data buffer +-+-+ | | - | to first unread data byte) | | | | | +--------------+ - +----------------------------+ | | +--->-+->| Data Count | - | | +--------------+ - | | +--| LINK | - | | | +--------------+ - | +-------|->| | - +-------->|->| DATA | - | +--------------+ - | - | +--------------+ - +->| Data Count | - +--------------+ - | LINK | - +--------------+ - | DATA | - +--------------+ - - - -76- - -IEN 167 Sax and Edmond - Bolt Beranek and Newman Inc. - July 1980 - - - - RECEIVE PORTION OF THE TCP USER BUFFERS USED - INTERFACE CONNECTION BLOCK FROM THE TCP - TO TRANSMIT DATA - +----------------------------+ +--------------+ - | Ptr to First Filled Buffer |------------->|Full/Filling | - | (user buffer which has been| |True indicates| - | filled by TCP) | |buffer is full| - +----------------------------+ +--------------+ - | Ptr to Next Data byte to be| +--+ Link to next | - | read by user process +-------+ | | Buffer | - +----------------------------+ | | +--------------+ - | Ptr to First Partially Full| | | | DATA | - | Buffer (buffer not yet +-----+ +->-+->| | - | filled by TCP) | | | +--------------+ - +----------------------------+ | | - | Offset in Partially Full | | | - | Buffer (next free byte for +--+ | | - | TCP) | | | | +--------------+ - +----------------------------+ | +-----+->| Full/Filling | - | +--------------+ - | +--| LINK | - | | +--------------+ - +------->+->| DATA | - | +--------------+ - | - | - | - | +--------------+ - +->| Full/Filling | - +--------------+ - | LINK | - +--------------+ - | DATA | - +--------------+ - - - - - - - - - - - - - - - - - - -77- diff --git a/text/ien/ien168.txt b/text/ien/ien168.txt deleted file mode 100644 index 0418c201..00000000 --- a/text/ien/ien168.txt +++ /dev/null @@ -1,826 +0,0 @@ - IEN: 168 - - - - - - - - - VAX-UNIX Networking Support Project - Implementation Description - - - - - - - - - - - - - - - - Robert F. Gurwitz - Computer Systems Division - Bolt Beranek and Newman, Inc. - Cambridge, MA 02138 - - - January, 1981 - - - - - - - - - - - - - - - - - - - - - - - - - - - VAX-UNIX Networking January, 1981 - Support Project IEN 168 - - - - 1 Introduction - - The purpose of this report is to describe the implementation - of network software for the VAX-11/780 * running UNIX. ** This is - being done as part of the VAX-UNIX Networking Support Project. - The overall purpose of this effort is to provide the capability - for the VAX to communicate with other computers via packet- - switching networks, such as the ARPANET. Specifically, the - project centers around an implementation of the DoD standard - host-host protocol, the Transmission Control Protocol (TCP) [4]. - TCP allows communication with ARPANET hosts, as well as hosts on - networks outside the ARPANET, by its use of the DoD standard - Internet Protocol (IP) [3]. The implementation is designed for - the VAX, running VM/UNIX, the modified version of UNIX 32/V - developed at the University of California, Berkeley [1]. This - version of UNIX includes virtual paging capabilities. - - In the following paragraphs, we will discuss some features - and design goals of the implementation, and its organization. - - - - 2 Features of the Implementation - - 2.1 Protocol Dependent Features - - 2.1.1 Separation of Protocol Layers - - The TCP software that we are developing for the VAX - incorporates several important features. First, the - implementation provides for separation of the various protocol - layers so that they can be accessed independently by various - applications. (1) Thus, there is a capability for access to the - TCP level, which will provide complete, reliable, multiplexed, - host-host communications connections. In addition, the IP level - is also accessible for applications other than TCP, which require - its internet addressing and data fragmentation/reassembly - services. Finally, the implementation also allows independent - access to the local network interface (in this case, to the - ARPANET, whose host interface is defined in BBN Report No. 1822 - _______________ - * VAX is a trademark of Digital Equipment Corporation. - ** UNIX is a trademark of Bell Laboratories. - (1) In this context, the terms application and user refer to any - software that is a user of lower level networking services. Thus, - programs such as FTP and TELNET can be considered applications - when viewed from the TCP level, and TCP itself may be viewed as - an application from the IP level. - - - - - -1- - - VAX-UNIX Networking January, 1981 - Support Project IEN 168 - - - - [2]) in a "raw" fashion, for software which wishes to - communicate with hosts on the local network and do its own higher - level protocol processing. - - - - 2.1.2 Protocol Functions - - Another feature of the implementation is to provide the full - functionality of each level of protocol (TCP and IP), as - described in their specifications [3,4]. Thus, on the TCP level, - features such as the flow control mechanism (windows), - precedence, and security levels will be supported. On the IP - level, datagram fragmentation and reassembly will be supported, - as well as IP option processing, gateway-host flow control - (source-quenching) and routing updates. However, it is - anticipated that some of these features (such as handling IP - gateway-host routing updates, and IP option processing) will be - implemented in later stages of development, after more basic - features (such as TCP flow control and IP - fragmentation/reassembly) are debugged. - - - - 2.2 Operation System Dependent Features - - 2.2.1 Kernel Resident Networking Software - - There are several features of the implementation which are - operating system dependent. The most important of these is the - fact that the networking software is being implemented in the - UNIX kernel as a permanently resident system process, rather than - a swappable user level process. - - This organization has several implications which bear on - performance. The most obvious effect is that since the - networking software is always resident, it can more efficiently - respond to network and user initiated events, as it is always - available to service such events and need not be swapped in. In - addition, residence in the kernel removes the burden of the use - of potentially inefficient interprocess communication mechanisms, - such as pipes and ports, since simpler data structures, such as - globally available queues, can be used to transmit data between - the network and user processes. Kernel provided services, (e.g., - timers and memory allocation) also become much easier and more - efficient to use. - - - - - - - -2- - - VAX-UNIX Networking January, 1981 - Support Project IEN 168 - - - - The large address space of the VAX makes this organization - practical and allows the avoidance of expedients like the NCP - split kernel/user process implementation, that have been - necessary in previous UNIX networking software on machines with - limited address space, like the PDP 11/70. It is hoped that the - kernel resident approach will contribute to the speed and - efficiency of this TCP. - - - - 2.2.2 User Interface - - Use of the "traditional" UNIX file oriented user interface - is another operating system dependent feature of this - implementation. The user will access the network software by - means of standard system file I/O calls: open, close, read, and - write. This entails modification of certain of these calls to - accommodate the extra information needed to open and maintain a - connection. In addition, the communication of exceptional - conditions to the user (such as the foreign host going down) must - also be accommodated by extension of the standard system calls. - In the case of open, for example, use of the call's mode field - will be extended to accommodate a pointer to a parameter - structure. In the case of exceptional conditions, the return - code for reads and writes will be used to signal the presence of - exceptional conditions, much like an error. An additional status - call (ioctl) will be provided for the user to determine detailed - information about the nature of the condition, and the general - status of the connection. - - In this way, the necessary additional information needed to - maintain network communications will be supported, while still - allowing the use of the functionality that the UNIX file - interface provides, such as the pipe mechanism. - - In the initial versions, this interface will be the standard - UNIX blocking I/O mechanism. Thus, outstanding reads for data - which has not been accepted from the foreign host, and writes - which exceed the buffering resources of a connection will block. - It is expected that the await/capacity mechanism, currently - available for Version 6 systems, will be added to the VM/UNIX - kernel in the near future. These non-blocking I/O modifications - will be supported by the network software, relieving the blocking - restriction. - - - - - - - - - -3- - - VAX-UNIX Networking January, 1981 - Support Project IEN 168 - - - - 3 Design Goals - - Several design goals have been formulated for this - implementation. Among these goals are efficiency and low - operating system overhead, promoted by a kernel resident network - process, which allows for reduced process and interprocess - communication overhead. - - Another goal of the implementation is to reduce the amount - of extraneous data copying in handling network traffic. To - achieve this, a buffer data structure has been adopted which has - the following characteristics: intermediate size (128 bytes); - low overhead (10 bytes of control information per buffer); and - flexibility in data handling through the use of data offset and - length fields, which reduce the amount of data copying required - for operations like IP fragment reassembly and TCP sequence space - manipulations. - - The use of queueing between the various software levels has - been limited in the implementation by processing incoming network - data to the highest level possible as soon as possible. Thus, an - unfragmented message coming from the network is passed to the IP - and TCP levels, with queueing taking place at the device driver - only until the message has been fully read from the network. - Similarly, on the output side, data transmission is only - attempted when the software is reasonably certain that the data - will be accepted by the network. - - Finally, it is planned that the inclusion of the network - software will entail relatively little modification of the basic - kernel code beyond that provided by Berkeley. The only - modifications to kernel code outside the network software will be - slight changes to the file I/O system calls to support the user - interface described above. In addition, an extension to the - virtual page map data structure in low core will be necessary to - support the memory allocation scheme, which makes use of the - kernel's page frame allocation mechanisms. - - - - 4 Organization - - 4.1 Control Flow - - - - - - - - - - -4- - - VAX-UNIX Networking January, 1981 - Support Project IEN 168 - - - - 4.1.1 Local Network Interface - - The network software can be viewed as a kernel resident - system process, much like the scheduler and page daemon of - Berkeley VM/UNIX. This process is initiated as part of network - initialization. A diagram of its control and data flow is shown - in Figure 1. - - - | |-----| |-----| |-----| |-----| | - | |LOCAL| |-----| |LOCAL| | | | | | - | | NET | |input| | NET | | IP | | TCP | | - |->|INPUT|->|queue|->|INPUT|->|INPUT|->|INPUT| | - | | I/F | |-----| | | | | | | | - N | |-----|==========>|-----| |-----| |-----| | - | ^ (wakeup) ^ \ (timer) | - E | | | \ / | U - | (input) V \ / | - T | ( int ) |-----| \ / | S - | |frag | |-----| |-----| | - W | |queue| | |=>| |->| E - | |-----| | TCP | |USER | | - O | |-----||-----| |MACH | | I/F | | R - | |unack|| snd |<---->| |<=| |<-| - R | (outpt) |queue||queue| |-----| |-----| | - | ( int ) |-----||-----| / \ / | - K | | / \ / | - | V / \ / | - | |-----| |-----| |-----| |-----| \ / | - | |LOCAL| |-----| |LOCAL| | | | | |-----| | - | | NET | |outpt| | NET | | IP | | TCP | | rcv | | - |<-|OUTPT|<-|queue|<-|OUTPT|<-|OUTPT|<-|OUTPT| |queue| | - | | I/F | |-----| | | | | | | |-----| | - | |-----|<----------|-----| |-----| |-----| | - | | - | | - |<----------TCP PROCESS------------>| - | | - - Figure 1 . Network Software Organization - - - Its main flow of control is an input loop which is activated (via - wakeup) by the network interface device driver when an incoming - message has been completely read from the network. (It can also - be awakened by TCP user or timer events, described below.) The - message is then taken from an input queue and dispatched on the - basis of local network format (e.g., 1822 leader link number). - ARPANET imp-host messages (RFNMs, incompletes, imp/host status) - - - - -5- - - VAX-UNIX Networking January, 1981 - Support Project IEN 168 - - - - are handled at this level. For other types of messages, the - local network level input handler calls higher level "message - handlers." The "standard message handler" is the IP input - routine. Handlers for other protocols at this level (such as - UNIX NCP) may be accommodated in either of two ways. First, a - "raw message" service is available which simply queues data on - specified links to/from the local network. By reading or writing - on a connection opened for this service, a user process may - handle its own higher level protocol communication. - Alternatively, for frequently used protocols, a new handler may - be defined in the kernel and called directly. - - - - 4.1.2 Internet Protocol - - At the IP level, the fragment reassembly algorithm is - executed. Unfragmented messages with valid IP leaders are passed - to the higher level protocol handler in a manner similar to the - lower level dispatch, but on the basis of IP protocol number. - The "standard handler" is TCP. Another protocol handler - interprets IP gateway-host flow control and routing update - messages. - - Fragmented messages are placed on a fragment reassembly - queue, where incoming fragments are separated by source and - destination address, protocol number, and IP identification - field. For each "connection" (as defined by these fields), a - linked list of fragments is maintained, tagged by fragment offset - start and end byte numbers. As fragments are received, the - proper list is found (or a new one is created), and the new - fragment is merged in by comparing start and end byte numbers - with those of fragments already on the list. Duplicate data is - thrown away. A timer is associated with this queue, and - incomplete messages which remain after timeout are dropped and - their storage is freed. Completed messages are passed to the - next level. - - - - 4.1.3 TCP Level - - At the TCP level, incoming datagrams are processed via calls - to a "TCP machine." This is the TCP itself, which is organized - as a finite state machine whose states are roughly the various - states of the protocol as defined in [4], and whose inputs - include incoming data from the network, user - open/close/read/write requests, and timer events. Input from the - network is handled directly, passing through the above described - - - - -6- - - VAX-UNIX Networking January, 1981 - Support Project IEN 168 - - - - levels. User requests and timer events are handled through a - work queue. - - When a user process executes a network request via system - call, the relevant data (on a read or write) is copied from user - to kernel space (or vice versa), a work entry is enqueued, and - the network process is awakened. Similarly, when timers - associated with TCP (such as the retransmission timer) go off, - timer work requests are enqueued and the network input process is - awakened. Once awakened, it checks for the presence of completed - messages from the network interface and processes them. After - these inputs are processed, the TCP machine is called to handle - any outstanding requests on the work queue. The network process - then sleeps, waiting for more network input or work requests. - Thus, the TCP machine may be called directly with network input, - or awakened indirectly to check its work queue for user and timer - requests. - - After reset processing and sequence and acknowledgement - number validation, acceptable received data is sequenced and - placed on the receive queue. This sequencing process is similar - to the IP fragment reassembly algorithm described above. Data - placed on this queue is acknowledged to the foreign host. - Received data whose sequence numbers lie outside the current - receive window are not processed, but are placed on an - unacknowledged message queue. The advertised receive window is - determined on the basis of the remaining amount of buffering - allocated to the connection (see below). When buffering becomes - available, data on the unacknowledged message queue is then - processed and placed on the receive data queue. - - On the output side, TCP requests for data transmission - result in calls to the IP level output routine. This routine - does fragmentation, if necessary, and makes calls on the local - network output routine. Outgoing messages are then placed on a - buffering queue, for transmission to the network interface by the - device driver. In data transmission, an attempt is made to - ensure that data moving from the highest level (TCP), will not be - sent unless there is reasonable certainty that the lower levels - will have the necessary resources to accept the message for - transmission to the network. - - All data to be sent is maintained on a single send queue, - where data is added on user writes, and removed when proper - acknowledgement is received. Whenever the TCP machine sends - data, a retransmission timer is set, and the sequence number of - the first data byte on the queue is saved. After initial - transmission the sequence number of the next data to send is - advanced beyond what was first sent. If the retransmission timer - - - - -7- - - VAX-UNIX Networking January, 1981 - Support Project IEN 168 - - - - goes off before that data is acknowledged, the sequence number of - the next data to send is backed up, and the contents of the send - buffer (for the length determined by the current send window) is - retransmitted, with the ACK and window fields set appropriately. - The retransmission timer is set with increasingly higher values - from 3 to 30 seconds, if the saved sequence number does not - advance. - - A persistence timer is also set when data is sent. This - allows communication to be maintained if the foreign process - advertises a zero length window. When the persistence timer goes - off, one byte of data is forced out of the TCP. - - - - 4.2 Buffering Strategy - - As mentioned earlier, all data is passed from the network to - the various protocol software layers in intermediate sized (128 - byte) buffers. The buffers have two chain pointers, a data - offset, and a data length field (see Figure 2). As data is read - from the network or copied from the user, multiple buffers are - chained together. Protocol headers are also held in these - buffers. As messages are passed between the various software - levels, the offset is modified to point at the appropriate - header. The length field gives the end of data in a particular - buffer. This offset/length pair facilitates merging of messages - in IP fragment reassembly and TCP sequencing. - - The allocation of these buffers is handled by the network - software. Buffers are obtained by "stealing" page frames from - the kernel's free memory map (CMAP). In VM/UNIX, these page - frames are 1024 bytes long, and thus have room for eight 128 byte - buffers. The advantage of using kernel paging memory as a source - of network buffers is that their allocation can be done totally - dynamically, with little effect on the operation of the overall - system. Buffers are allocated from a cache of free page frames, - maintained on a circular free list by the network memory - allocator. As the demand for buffers increases, new page frames - are stolen from the paging freelist and added to the network - buffer cache. Similarly, as the need for pages decrease, free - pages are returned to the system. To minimize fragmentation in - buffer allocation within the page frames, the free list is - sorted. When no more pages are available for allocation, data on - the IP reassembly and TCP unacknowledged data queues are dropped, - and their buffers are recycled. - - - - - - - -8- - - VAX-UNIX Networking January, 1981 - Support Project IEN 168 - - - - - - - ^ |------------------------| ^ - | | -> NEXT BUFFER | | - 10 |------------------------| | - BYTES | QUEUE LINK | | - | |-----------|------------| | - V | OFFSET | LENGTH | | - |-----------|------------| | - | | 128 - | | BYTES - | | | - | D A T A | | - | | | - | | | - | | | - | | | - |------------------------| V - - - Figure 2 . Layout of a Network Buffer - - - The number of pages that can be stolen from the system is - limited to a moderate number (in practice 64-256, depending on - network utilization in a particular system). To enforce fairness - of network resource utilization between connections, the number - of buffers that can be dedicated to a particular connection at - any time is limited. This limit can be varied to some small - degree by the user when a connection is opened. Thus, a TELNET - user may open a connection with the minimum 1K bytes of send and - receive buffering; while an FTP user, anticipating larger - transfers, might desire up to 4K of buffering. The effect of - this connection buffering allocation is to place a limit on the - amount of data that the TCP may accept from the user for sending - before blocking, and the amount of input from the network that - the TCP may acknowledge. Note that in receiving, the network - software may allocate available buffers beyond the user's - connection limit for incoming data. However, this data is - considered volatile, and may be dropped when buffer demands go - higher. Incoming data is acknowledged by TCP only until the - user's connection buffer limit is exhausted. The advertised TCP - flow control window for a connection is set on the basis of the - remaining amount of this buffering. - - Thus, the network software must insure that it has enough - buffering for 1) its own internal use in processing data on the - IP and local network levels; 2) retaining acknowledged TCP data - - - - -9- - - VAX-UNIX Networking January, 1981 - Support Project IEN 168 - - - - that have not been copied to user space; and 3) retaining data - accepted by the TCP for transmission which have not yet been - acknowledged by the foreign host TCP. Other data, such as - unacknowledged TCP input from the network and fragments on the IP - reassembly queue are vulnerable to being dropped when demand for - more buffers makes necessary the recycling of buffers on these - queues. Since there is an absolute limit on the number of page - frames that may be stolen from the paging system, and hence the - total number of buffers available, there is a resultant limit on - the total number of simultaneous connections. - - Several data structures are required for stealing page - frames from the kernel and maintaining the buffer free list. - These include enough page table entries for mapping the maximum - number of page frames which can be stolen from the system, an - allocation map for allocating these page table entries, and the - free page list itself. For a 256 page maximum, this requires 2K - bytes of page tables, 1K bytes for page frame allocation mapping, - and another 1K bytes for the network freelist. The maximum page - parameter and others, including the minimum and maximum amount of - buffering that the user may specify are modifiable constants of - the implementation. - - - - 4.3 Data Structures - - Along with the data structures needed to support the buffer - management system, there are several others used in the network - software (see Figure 3). The focus of activity is the user - connection block (UCB), and the TCP control block (TCB). The UCB - is allocated from a table on a per connection basis. It holds - non-protocol specific information to maintain a connection. This - includes a pointer the UNIX process structure of the opener of a - connection, (2) a pointer to the foreign host entry for the peer - process's host, a pointer to the protocol-specific connection - control block (for TCP, the TCB), pointers to the user's send and - receive data buffer chain, and miscellaneous flags and status - information. When a network connection is opened, an entry in - the user's open file table is allocated, which holds a pointer to - the UCB. - - For TCP connections, a TCB is allocated. All TCBs are - chained together to facilitate buffer recycling. The TCB - contains a pointer to the corresponding UCB, a block of sequence - number variables and state flags used by the TCP finite state - _______________ - (2) For details on data structures specific to UNIX, see [5]. - - - - - -10- - - VAX-UNIX Networking January, 1981 - Support Project IEN 168 - - - - - - Foreign - Host Table - |--------| - Network |------>|Host Adr| - Conn Table | |--------| - |--------| | | #RFNM | - |--->|->Proc |<--+--| |--------| - | |--------| | | | Status | - | |->Host |---| | |--------| - Per User | |--------| | - File Table | | ->TCB |---| | TCB - |--------| | |--------| | | |--------| - | Flags | | |->S Buf | |--+--->| ->next | - |--------| | |--------| | |--------| - | ->UCB |---| |->R Buf | |----| ->UCB | - |--------| |--------| |--------| - | Flags | | FSM | - | and | |Sequence| - | Status | | Vars | - |--------| |--------| - |->Snd Q | - |--------| - |->Rcv Q | - |--------| - |->UnackQ| - |--------| - | Flags | - | and | - | Status | - |--------| - - - Figure 3 . Network Data Structures - - - machine, pointers to the various TCP data queues, and flags and - state variables. Protocols other than TCP would have their own - control blocks instead of the TCB. For the "raw" local network - and IP handlers, all necessary information is kept in the UCB. - - Finally, there is a foreign host table, where entries are - allocated for each host that is part of a connection. The entry - contains the foreign host's internet address, the number of - outstanding RFNM's for 1822 level host-imp communication, and the - status of the foreign host. Entries in this table are hashed on - the foreign host address. - - - - - -11- - - VAX-UNIX Networking January, 1981 - Support Project IEN 168 - - - - 5 References - - [1] Babaoglu, O., W. Joy, and J. Porcar, "Design and - Implementation of the Berkeley Virtual Memory Extensions to - the UNIX Operating System," Computer Science Division, Dept. - of Electrical Engineering and Computer Science, University - of California, Berkeley, December, 1979. - - [2] Bolt Beranek and Newman, "Specification for the - Interconnection of a Host and an IMP," Bolt Beranek and - Newman Inc., Report No. 1822, May 1978 (Revised). - - [3] Postel, J. (ed.), "DoD Standard Internet Protocol," Defense - Advanced Research Projects Agency, Information Processing - Techniques Office, RFC 760, IEN 128, January, 1980. - - [4] Postel, J. (ed.), "DoD Standard Transmission Control - Protocol," Defense Advanced Research Projects Agency, - Information Processing Techniques Office, RFC 761, IEN 129, - January, 1980. - - [5] Thompson, K., "UNIX Implementation," The Bell System - Technical Journal, 57 (6), July-August, 1978, pp. 1931-1946. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -12- - - VAX-UNIX Networking January, 1981 - Support Project IEN 168 - - - - Table of Contents - - - - - 1 Introduction.......................................... 1 - 2 Features of the Implementation........................ 1 - 2.1 Protocol Dependent Features......................... 1 - 2.1.1 Separation of Protocol Layers..................... 1 - 2.1.2 Protocol Functions................................ 2 - 2.2 Operation System Dependent Features................. 2 - 2.2.1 Kernel Resident Networking Software............... 2 - 2.2.2 User Interface.................................... 3 - 3 Design Goals.......................................... 4 - 4 Organization.......................................... 4 - 4.1 Control Flow........................................ 4 - 4.1.1 Local Network Interface........................... 5 - 4.1.2 Internet Protocol................................. 6 - 4.1.3 TCP Level......................................... 6 - 4.2 Buffering Strategy.................................. 8 - 4.3 Data Structures.................................... 10 - 5 References........................................... 12 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -i- - diff --git a/text/ien/ien169.txt b/text/ien/ien169.txt deleted file mode 100644 index 6627a375..00000000 --- a/text/ien/ien169.txt +++ /dev/null @@ -1,1740 +0,0 @@ - - - INDRA - Working - Paper - - - - INDRA Note 1025 - IEN 169 - 23rd January 1981 - - - - - - - - - - - A Simple NIFTP-Based Mail System - - - - C. J. Bennett - - - - - - ABSTRACT: This INDRA Note proposes a draft mail - protocol for use in a wide variety of network - situations. This protocol draws heavily on existing - facilities and could be brought up very quickly - in - months rather than years. It could thus be used as - an interim solution until international standards - emerge. An experiment in the ARPA Catenet is - proposed, and the use of the system in the UK is - discussed. - - - - - - Department of Computer Science - University College London - - - - - - - - - - - - - - - - 1. Introduction - - One of the major uses of computer networks is for electronic - mail services. Now that networking technology is proliferating - rapidly, it is highly desirable that such services should be - made available with the new networks. However, despite the - recent adoption of Teletex proposals by CCITT, it may be some - time before one can expect international standards to be - finalised and widely available. Hence there is a strong need - for a simple interim scheme, which could cover the basic needs - for mail transfer across multiple networks and through - intermediate mail relays in a flexible fashion. We at UCL are - particularly concerned with this, as we see the need for a - scheme which will operate both with the facilities available - in the United States, and those rapidly becoming available in - Britain and Europe. - - This note contains a proposal for such an interim protocol, - discusses the requirements on mail relays, and also the - requirements for experimental systems based on it, both in the - US and the UK. Partly because the proposed system uses ARPA - facilities, the document has a certain bias towards - familiarity with ARPA systems and terminology. In particular, - the note assumes familiarity with RFC733 mail formats - [Crocker77], the ARPA standard. However, it is believed that - the system will also be useful in other environments, - particularly the X25 and Network Independent Transport Service - [SG3/80] environments which will be available shortly in the - UK. ARPA-oriented readers should note that familiarity is - assumed with the NIFTP [HLPG81], the interim UK file transfer - standard. - - Comments are solicited and welcomed. - - - 2. Requirements - - The basic requirements for an immediate mail service are as - follows: - - (1) Maximum use must be made of existing standards. No - radical new mail formats, transfer protocols, etc may - be imposed. Using these facilities it should be - possible to bring up an initial service within months - rather than years. - - (2) The service should be economic. In particular, only - one copy of a message should be transmitted to each - destination mail server. - - - - -Bennett [Page 1] - -INDRA Note 1025 NIFTP-Based Mail - - - - - - (3) The service should be independent of particular - networks. - - (4) Address information must be transmitted in a way which - is usable by mail relays. - - (5) Total global knowledge of mail server addresses should - not be necessary. - - (6) The service should be as flexible as possible. Where - possible it should be easy to extend it to meet new - needs as they emerge. - - The last requirement is perhaps the least important. It - implies that the service will be around for sufficiently long - that experimental technical advances in message processing can - be usefully incorporated. For instance, the minimum - requirement is that text messages must be transferable. - Requirement (vi) suggests that it should be possible to extend - the service simply to transfer mixed-media messages. When - assessing whether a given proposal meets this criterion, the - multi-media case will be used as a test. - - No existing system in wide use meets all these constraints. - Hence it is necessary to combine elements with the right - properties from a number of sources not all of which are - currently used for mail. - - It should be noted that the service defined here is not - intended to be perfect. In particular, it does not of itself - guarantee bidirectionality, endpoint reliability, or use of - address lists. These will normally be available for direct - endpoint transfer, and any problems are most likely to arise - if intermediate relays are used. It is possible to support all - these things using it, and of course they are encouraged. - However, I feel that a service adequate for ordinary use can - be achieved without defining a great deal of complicated - additional mechanism to guarantee these properties. Finally, - the problem of conversion between mail formats is not - discussed at all. - - - 3. Basic Elements - - 3.1 Mail Format - - - - - -Bennett [Page 2] - -INDRA Note 1025 NIFTP-Based Mail - - - - - - The mail format defines the standards for the appearance of - a message; it covers such things as the definition of header - fields to allow messages to be processed by a standard - program. - - The mail format most readily available is the ARPANET mail - standard commonly known as RFC733, defined in [Crocker77], - which is compatible with all except the last of the objectives - listed above. RFC733 has been widely and successfully used for - many years. In practice only a subset of the standard is - actually used - in particular, the standard allows extended - addressing by specifying destination networks, but no - implementation supports this. It is proposed that the common - subset of this standard be used. The only change suggested is - that the text code should be IA5 rather than the Telnet - version of ASCII, as IA5 is an international standard. In - practice, the two codes are virtually identical. An example - of an RFC733 message, and a summary of the RFC733 syntax, is - given in Appendix I. - - This standard is completely text-oriented, for both message - header (control) and message text (data) information. This - makes it readily compatible with most of the text-processing - software generally available on most interactive systems, such - as text editors, pro forma preparation etc. - - Other formats may be agreed to in the near future. These may - extended facilities, such as facsimile or multi-media mail. - These can be accommodated provided any mail servers needing to - process the mail body understand the format in use. Hence it - may be necessary to provide a means for labelling the format - in use. Such a label is not defined at this time. - - - 3.2 Mail Addresses - - In any mail system it is essential to provide addresses for - the mail recipient, and usually for the mail sender as well. - While mail will frequently be transferred directly between the - sender and the recipient, there will be occasions when it will - be routed, and possibly temporarily stored, through an - intermediate mail relay. - - - - - - - - -Bennett [Page 3] - -INDRA Note 1025 NIFTP-Based Mail - - - - - - Mail addresses are constrained to be compatible with the - RFC733 format as generally used, viz. @. - The field defines the host used for an initial mail - transfer, and in standard RFC733 usage, no further structuring - is defined or required. If this name is understood by all - message relays along a route, then no further structuring is - ever required. If further structuring is required, it should - be through the use of element separators in the . - The addressing structures encountered when mail relays must be - used are discussed further in section 5.1. - - - 3.3 Mail Transfer - - In addition to the appearance of the messages and the - identity of the parties, it is necessary to define a protocol - for transferring mail between the two. At first sight, it - would seem natural to take over ARPA-developed procedures here - too, so that one could use a complete, preexisting mail - package. Despite the great success which have attended these - procedures, and their undoubted appropriateness for the - environment for which they were designed, they do not fulfil - the needs of the wider message community, for reasons which - are discussed below. - - The standard ARPANET Mail Transfer procedure [Postel76] - fulfils only the first of the requirements listed in the - introduction, and is therefore not acceptable. In particular, - it has the following failings: - - (1) It is uneconomic in that it transmits one copy per - destination user. - - (2) It is specific to the ARPANET. - - (3) It transfers address information in a way which is - only usable for direct source/destination transfer. - - (4) It requires all hosts to be aware of all host names, - and hence requires a globally understood global - address space. - - (5) It can only ever handle text data. If binary data in a - mixed-media message were encoded as text symbols and a - code conversion was required between NVT-ASCII and a - local text encoding, that data would be corrupted. - - - - -Bennett [Page 4] - -INDRA Note 1025 NIFTP-Based Mail - - - - - - A recent ARPA proposal [Sluizer80] for a new Mail Transfer - Protocol (MTP) remedies in whole or in part some of these - deficiencies. In particular, it provides facilities for - economic uses of resources, and transfers addressing - information in a way compatible with objectives (iv) and (v). - However the MTP as it is currently proposed has some problems - of its own: - - (1) The MTP allows a single copy of a message to be sent - to multiple recipients, and is thus potentially more - economic than the standard ARPA protocol. However, - this is only an option which need not be implemented. - Moreover, the mail sender can only specify one path - for a given message to pass through intermediate - relays. Thus MTP does not allow a single copy to be - sent to a relay which could then decide to create - multiple copies for different destinations at the - point of a path division. - - (2) In MTP, address lists may be transferred either before - or after the message body. With the 'recipients first' - option, it is only possible to check the current - validity of the addresses - for the actual message - transfer, only total success and total failure can be - indicated. If a given recipient became inaccessible - for some reason between the two stages, the entire - transfer would fail. - - (3) The MTP is defined to operate in an environment - similar to that of the ARPA Catenet. In particular, it - relies heavily on the use of Telnet command - procedures, which are both little known and little - used outside the ARPA community - especially within - Europe. It does not define the mechanisms by which it - will operate across more than one network (just as - Telnet does not), or where Telnet procedures are not - appropriate. To this extent, it is not network- - independent. - - (4) The MTP provides no restart procedures to recover from - errors signalled by either the host or the - transmission medium. It is therefore only as reliable - as the weakest underlying network. For example, an - X25-based version could not recover from Resets. - - - - - - -Bennett [Page 5] - -INDRA Note 1025 NIFTP-Based Mail - - - - - - (5) It can only ever handle text data. If binary data in a - mixed-media message were encoded as text symbols and a - code conversion was required between NVT-ASCII and a - local text encoding, that data would be corrupted. - - - Accordingly, it is felt here that mail transfer outside the - ARPA environment should use an alternative base. It is - proposed here that mail transfer be achieved using defined - conventions with the Network Independent File Transfer - Protocol (NIFTP - [HLPG81]). This FTP is, as the name implies, - network independent, has been implemented on a number of - different existing networks, including the ARPANET and ARPA - Catenet, and has been successfully used for direct file - transfers across several intermediate networks. The revised - version will be adopted as an interim standard in Britain and - has evoked wide interest in Europe. There are numerous - implementations of the existing version, and it is expected - that the revised version will be implemented fairly rapidly - after the new specification is released, which should be - within the next two months. It thus meets the criteria of - availability, standardisation and network independence. It - remains to define a transfer procedure which meets the other - criteria. - - - 4. Point to Point Mail Transfer - - Using RFC733 mail formats and RFC733-compatible addressing, - it is necessary to define the procedure used to transfer mail - from a mail donor to a mail server with the NIFTP. This - section defines that procedure. - - - 4.1 Mail Structure - - 4.1.1 Proposal - - A letter shall be transferred as a single file from the mail - donor to the mail server. The file name used shall be - provided by the mail server. The structure of the file is as - follows: - -
- - The
is a list of full, explicit RFC733 - - - - -Bennett [Page 6] - -INDRA Note 1025 NIFTP-Based Mail - - - - - - addresses to whom the mail shall be distributed by the mail - server. - - The shall conform with RFC733 formats. - - - 4.1.2 Discussion - - 4.1.2.1 Address Lists - - This structure is designed to fulfil the requirement that - the service be economic. The passing of the
- minimises the number of copies of the message which must be - made by the donor, but allows decisions to create additional - copies to be made simply by intermediate relays. - - The
must contain explicit addresses as the - mail server is not necessarily able to access address lists, - and in any case requires additional mechanism to do so. The - addresses should be full (i.e. contain an explicit - component) as the server may be a relay using address mapping - mechanisms (see below). - - - 4.1.2.2 Possible Extensions - - There are two simple extensions which may be desirable: - - (1) To distinguish between message formats. This requires - simply the addition of an extra field in the mail - file, and the definition of text encodings. Such a - field should be inserted between the
- and the . The use of other formats will - particularly affect the design of mail relays. - - (2) Mailbagging. The file may contain several messages - separated by defined message delimiters. (A simple - one, which is widely used in message files on UNIX - systems in the ARPANET, is ^A^A. Another - alternative, preferred here, is to insert a - delimitered character count, encoded in IA5, as in - TENEX.) Mailbagging also has other implications. For - instance, if the mail donor wishes to initiate a - mailbagged transfer and it knows the name of an - existing mailbag at the server from a previous - transfer, it may append the file to the existing - - - - -Bennett [Page 7] - -INDRA Note 1025 NIFTP-Based Mail - - - - - - mailbag. The advantages of a mailbagging system are - for further study. - - - - 4.1.2.3 Alternative Structures - - Two alternative structures were considered, both involving - the explicit separation of the address list from the mail - text. - - The first was to require the donor to specify the file name, - which would be the address list. This has a number of - disadvantages: - - (1) The NIFTP allows a maximum string length of 255 - characters for string-valued attributes. This would - allow at most about 12-20 addresses. - - (2) It would be difficult to trace the progress of a - message through a series of relays. With an explicit - and known filename, it would be possible to initiate - manual or automatic tracing procedures. - - (3) It is unlikely that most mail servers or relays would - be able to use such a filename directly. The internal - filename would be created using local mappings. The - potential costs of these mappings could be very high. - - - The second alternative considered was to transfer the - address list and mail text as two separate files. This also - has disadvantages: - - (1) The two files must be linked, e.g. by requiring that - an Action Message be passed on STOP or STOPACK - containing the filename to be used for the text - portion of the transfer. - - (2) An additional level of error handling procedure must - be defined, to cover cases such as the loss of a - portion of the message text, or the arrival of two - address lists with no intermediate message text. - - - - - - - -Bennett [Page 8] - -INDRA Note 1025 NIFTP-Based Mail - - - - - - These problems are avoided by the mechanism proposed. By - sending the address list and the body as a single file, - address lists of arbitrary length can be sent; their link to - the text is assured; maximum use can be made of the NIFTP - reliability mechanisms; and the donor can be assured that the - mail has at least reached the server host. - - The new MTP proposal from the ARPA community has a fairly - similar proposal, but allows as an additional option the - possibility of transmitting the text before the addressing - data, arguing that in some cases this is more efficient for - the destination host. Although it is conceivable that this may - be true for MTP given the details of the MTP mechanisms, I - think it is most unlikely that any advantage would be gained - in the current context; moreover, in order to achieve it - additional mechanism is required to specify which option is - being used. Hence it has not been proposed. - - - 4.2 Mail Server Identification - - 4.2.1 Proposal - - The mail server will be identified by its transport service - subaddress. This subaddress will be network-specific and - possibly host-specific; for instance, on the ARPANET it will - be an NCP server socket, on the ARPA Catenet a TCP port, on - public data networks an X25 or Transport Service subaddress as - appropriate. - - If the mail donor and server are not on the same transport - service, it is the responsibility of the intermediate virtual - call gateways to perform any address transformations required, - e.g. mapping the NCP mail socket to the TCP mail port. - - - 4.2.2 Discussion - - This proposal is in line with the recommendation in the - NIFTP specification for distinguishing different services - utilising NIFTP. An alternative, which is not favoured here, - is to reserve a value for the Username attribute, such as - MAIL. - - - - - - - -Bennett [Page 9] - -INDRA Note 1025 NIFTP-Based Mail - - - - - - 4.3 Mail Server Communication - - 4.3.1 Proposal - - Synchronisation shall be achieved via the establishment of - an virtual connection between the mail donor and the mail - server. This connection may be used for one or more mail - transfers. The connection may have one or more segments, where - each segment may use a different transport protocol. - - - 4.3.2 Discussion - - This is normal NIFTP usage, and is essentially a restatement - of the network-independence criterion. - - Normally, the donor and server will use the same transport - protocol, and no additional procedures need be used. - Exceptionally, the mail donor and server may not be on the - same transport service. In this case direct NIFTP file - transfer is still possible, but an additional degree of - support is needed, through the provision of one or more - virtual call gateways. At the least, the following services - are necessary: - - (1) One-to-one connection mapping. - - (2) Addressing procedures. This could be any acceptable - procedure, e.g. source routing, creation of a - hierarchical address space, or mapping of transport - service subaddress to destination host. - - (3) Call request facility. This carries all the addressing - information necessary for establishing an end-to-end - path. - - (4) Call accept facility. This is necessary to confirm - that an end-to-end path has been established. - - (5) Data transfer. This should commence only after a call - accept has been received. - - (6) Push preservation. Data should be forwarded if any - push indication (e.g. TCP EOL, X25 No More Data) is - received. The gateway may decide to forward data in - other circumstances. - - - - -Bennett [Page 10] - -INDRA Note 1025 NIFTP-Based Mail - - - - - - (7) Closure propagation. If a connection closure is - received from one side, it shall be mapped into the - appropriate closure procedure on the other. - - (8) Reset propagation. If any network in the path is - capable of generating resets, these must be forwarded - in some fashion by the gateway. For instance, an X25 - RESET may be mapped into TCP URGENT. If resets cannot - be generated this may be ignored by the gateway. - - It should be noted that the address transformations mentioned - above need not be visible to the mail donor and server, and do - not in any circumstances require address processing of the - mail text at the virtual call gateway. For bidirectionality, - however, it is necessary that the donor and server can - recognise their respective hostnames as embedded in the mail - file. - - - 4.4 Mail Transfer - - 4.4.1 Proposal - - The transfer may be initiated by either the mail donor or - the mail server. - - The file will be transferred by the NIFTP using IA5 text - codes. If the file only contains a text message, then the Data - Type attribute will indicate text only. - - If the transfer is initiated by the mail donor, then the - Mode of Access used will be 'Replace or Make' and the Filename - attribute on the SFT will indicate 'no value available'; the - server should supply a value on the RPOS for reporting - purposes. - - If the transfer is initiated by the mail server, then the - Mode of Access used will be 'Read Only'. The donor will - nevertheless often wish to delete the file after it has been - successfully transferred. The Filename attribute on the SFT - will supply a value. - - No other constraints are imposed on the use of NIFTP - attributes. - - - - - - -Bennett [Page 11] - -INDRA Note 1025 NIFTP-Based Mail - - - - - - 4.4.2 Discussion - - This section defines the actual mail transfer procedure, and - places minimal restrictions on NIFTP use. - - Alternative structures lead to greater restrictions or - special interpretation of NIFTP attributes, or both. - - If a message format other than RFC733 is used, then mixed- - media transfers may be possible. The NIFTP procedure would - then have to be modified. If the file contains a mixed-media - message, then the Data Type attribute will indicate either - mixed file or mixed records as appropriate, and the binary - formats for the non-text portions will be negotiated. - - Mailbagging may also require extension. In this case, the - mode of access used by a mail donor initiating the transfer - could be 'Append or Make', though this is not recommended. - - Other facilities which may be useful are: data compression, - text formatting, record structuring, restart and resumption - recovery facilities, account name, various passwords etc. - - - 4.5 Reliability - - The NIFTP has several grades of recovery action, which can - be exploited to ensure that a message will be delivered to a - server despite the occurence of system or communication - errors. However, the successful delivery of a message to a - server does not guarantee it will be successfully delivered to - the recipient. If it cannot be delivered, notification should - be sent to the sender by the server forced to discard it, - where this is possible. This notice will take the form of a - message, and the sender's address will be determined from - inspection of the appropriate fields (i.e. "Reply-to:" and - "From:") in the message. A non-delivery notice should make - maximum use of the NIFTP reliability procedures to ensure that - it itself is delivered. - - - 5. Mail Relays - - For a number of reasons it may not be possible to transfer a - message direct between the sender and the receiver. In - particular, they may not use the same mail transfer procedure. - - - - -Bennett [Page 12] - -INDRA Note 1025 NIFTP-Based Mail - - - - - - In such cases, mail must be staged through an intermediate - mail server, which acts as a mail relay. - - The function of the relay is to redistribute received mail - to the destinations or to other mail relays. I do not intend - to specify a mail manipulation protocol here, but it is - necessary to discuss the functions which must be provided, and - the options which are available, in order to determine to what - extent it is possible to allow variation and still provide an - acceptable service. Since the actions of other mailing systems - cannot be specified here, these functions will be discussed, - where necessary, in relation to the NIFTP-based system - described above. - - It is important to distinguish these relays from the virtual - call gateways discussed above. Either may be used at the - interface between two transport services, but the virtual call - gateway gives the minimum facilities which must be provided at - this point, and is invisible to the endpoint mail transfer. - Mail relays must be used when different mail transfer - protocols are used by mail donor and recipient, and will be - visible to both the sender and recipient; in this case a - virtual call gateway will be totally inadequate. - - - 5.1 Address Processing - - It is not possible to prescribe an addressing format for use - by relays, except that it be RFC733-compatible. The actions - to be taken by the relay on processing addresses are dependent - on local conventions and private agreements. It is expected - that there are three major types of address processing which - may occur: - - (1) The address of the next stage may be defined by a - received component, which is understood by - the relay to map to the name of some other host. For - example, the name 'Linington@Cambridge', if received - at UCL from the US, might cause the mail to be - transferred to Cambridge, or to some intermediate - relay. - - (2) If no is received (which can only happen - from a non-NIFTP mailing system), the address of the - next stage may be defined by a received - component, which is understood by the relay to map to - - - - -Bennett [Page 13] - -INDRA Note 1025 NIFTP-Based Mail - - - - - - the name of some other relay host, or to the - and of the final user. For - example, the name 'DCPU', if received at UCL from the - US, might be understood to map to - 'Linington@Cambridge', and be forwarded. This form is - not encouraged as user names must then become widely - known. - - (3) If the is the relay itself, and the - destination is not at the relay, then either case (ii) - applies, or the username is structured in some fashion - understood by the relay. A recommended form is - through the use of % as a separator, which leads to a - source-routed form, e.g: - - Linington%Cambridge%PSS@UCL. - - On reception at UCL from the US, the - component will be discarded, the last % converted to - an @, and the structured name becomes: - Linington%Cambridge@PSS. The relay then injects the - message into the appropriate mailing system over PSS, - subject to the constraints of that system. - - Any or all of these approaches may coexist. As a general - approach, I prefer the third. All suffer from the - disadvantages that they are not global, and that address - transformation may be required. The user who uses relays must - use an address format he is sure will be understood along the - route. In practice, however, it is unlikely that more than one - or two relays will be involved in the transfer of most - messages. - - The address processing at mail relays, which may affect the - text of the message received, must be carefully distinguished - from the address processing which may be required at virtual - call gateways between the donor and server, which does not. - Two different levels of addressing are involved here - the - former is visible only in mail, the latter only within a - particular file transfer. - - - 5.2 Return Paths - - The system provides no guarantee that a message can be - replied to, although this will normally be possible. Relays - - - - -Bennett [Page 14] - -INDRA Note 1025 NIFTP-Based Mail - - - - - - can provide assistance in the following ways, both of which - involve the processing of the header content of the message: - - (1) Each relay can insert a "Via: " field in the message. - - (2) Each relay can add its name to a "Reply-to: " field, - thus building up a return source route. The name added - must be the name known to the message system into - which it is forwarding the mail. - - - The general problem is to allow replies to be sent to - recipients other than the sender. One possibility is to allow - replies to be redistributed by the original sending host, if - that host is willing to do so. Alternatively, intermediate - relays could process the names of "To: " and "Cc: " fields in - the message to provide a shorter path. This problem is exactly - analogous to the "third-party addressing" problem of the UK - Transport Service [SG3/80], and the techniques discussed in - that document could be used here. - - Although this procedure requires relays to process the - message text, programs to do such processing already exist - which could be used for this purpose. If such processing is - not done, it is necessary to insist that replies can only be - sent if the recipient knows the location of the sender, which - for full answerability amounts to a requirement for a global - address space. This contravenes one of the stated limitations - on the system. - - - 5.3 Economy - - Where the mail system protocols allow, the relay should - minimise the number of copies of a message injected into the - system. Thus a relay may receive a single copy of a message - destined for several different hosts, some of which may be - only accessible through another relay. For each host which can - be reached directly the relay will send a single copy of the - message; for the remaining hosts, a single copy will be sent - to the next relay which will redistribute it in turn. - - This minimisation may require considerable intelligence to - do properly, and may not always be practicable. If the relay - is receiving mail from a system which creates one copy per - user, and injecting it into a system similar to the NIFTP- - - - - -Bennett [Page 15] - -INDRA Note 1025 NIFTP-Based Mail - - - - - - based system described here, there is no easy option. One - possibility is to parse the header to identify, so far as - possible, how many copies of the message it may expect to - receive, detect the duplicates, and discard them. Another is - for a relay to create a mail list and instruct a recipient to - "Reply-to: @". It must then have - criteria for deciding how long to keep such lists around. No - doubt other equally inspiring schemes can be devised. - - - 5.4 Reliability - - Relays should make use of the mail system to give delivery - failure notifications, as described above. There is, however, - no guarantee that the return path can be constructed. - - - 6. The ARPA Mail Transition Plan: A Case Study - - In this section a proposal is made for using the NIFTP-based - protocol to allow mail transfer between ARPANET users who have - only NCP-based mail transfer available to them, and those who - have only TCP-based network access. - - - 6.1 Current Proposals - - The current proposals for ARPANET mail transition centre on - the implementation of the MTP discussed above, and the - definition of relay procedures between NCP-based mailing - systems and TCP-based mailing systems [Postel80]. In general, - these relays fit into the context discussed in the previous - section, and most of the comments of the current proposal on - the complexity of maintaining relays, mapping tables etc are - fully endorsed here. - - Aside from the features of the MTP, there are a two specific - points that need discussion: - - (1) As noted in the October 1980 Internet meeting, the - transition plan requires that user names be unique - throughout the ARPA Catenet (and hence a growing - portion of the ARPANET), in order to allow ARPA mail - from a standard ARPANET NCP-based mail server to be - sent to a relay for forwarding to the ARPA Catenet. - This is clearly unacceptable, and can most simply be - - - - -Bennett [Page 16] - -INDRA Note 1025 NIFTP-Based Mail - - - - - - avoided by allowing the relays to parse, and if - necessary modify the header fields in the message - text. Such solutions are preferable. - - (2) The solution is inextensible. The transition plans - assumes that transfer of mail between two MTP servers - on hosts using only NCP and TCP must be achieved - through an MTP-based mail relay at a site with access - to both. This is rather wasteful, since essentially - the same protocol is involved in both cases. A similar - relay is required if other transport services, or - network services such as X25, require mail service. - - - - 6.2 NIFTP and the Transition Plan - - The major fault of the current transition arrangements - relevant here is that a complex message relay is required even - for hosts which both talk MTP. This is not the case for the - NIFTP-based scheme outlined here. All that is necessary is a - relatively simple virtual call gateway at an NCP/TCP - transition point, along the lines discussed above. Such a - gateway has been built and its feasability demonstrated - [Bennett80]. Moreover, it has been demonstrated that the NIFTP - can be readily extended to non-Catenet networks, whereas it is - far from clear that this is true for the MTP-based scheme, - because of its reliance on Telnet. - - The advantage of an explicitly network-independent approach - is that mail transition can now be entirely divorced from - NCP/TCP transition. The development of future mail protocols - can carry on without requiring an immediate, new, solution for - the Catenet. Any host with NIFTP can do direct mail transfers - using existing formats. - - Of course, very few ARPANET hosts have access to NIFTP, - although this is easy to change. However, it is not necessary - that they should. There is indeed a staging problem to be - solved - the staging between NIFTP-based mail and current ARPA - mail. This must take place along the lines discussed above, - but once solved, it is solved, in theory, not just for NCP and - TCP but for any transport protocol. - - - - - - - -Bennett [Page 17] - -INDRA Note 1025 NIFTP-Based Mail - - - - - - 6.3 A Proposal - - It is believed that an NIFTP scheme of this sort can be - built and proliferated very quickly. The following components - already exist: - - (1) NIFTP implementations written to a transport service - interface for TOPS20 DEC20s, UNIX PDP-11s (Version 6), - and MOS LSI-11s. These need to be upgraded to conform - to the new specification of the protocol. The first is - available above TCP and NCP; the second will shortly - be accessible above TCP and X25; and the third is - available above TCP. - - (2) A simple NCP/TCP virtual call gateway, for NIFTP - support, on a TOPS20. This was built for demonstration - purposes, and needs some modification for general use. - - (3) Message relays for heterogenous mail systems, in the - form of the MMDF system developed by the University of - Delaware [Crocker79], for UNIX. Such relays must be - built in any case for the MTP scheme. - - The following components are needed: - - (1) Specification and agreement to the virtual call - extensions needed for direct NCP/TCP file transfer. If - these are done using a subset of the protocol proposed - for implementing the UK Transport Service above TCP - [Bennett80a] (and a similar protocol for NCP), then - direct mail transfers from NCP sites to sites on the - UK public network PSS could also be done. - - (2) Allocation of NIFTP-mail server sockets and ports. - Again, for extension to the UK public network, - Transport Service and/or X25 subaddresses must also be - defined. - - (3) Agreement on an addressing scheme to allow transfer - from ARPA mail to NIFTP-based sites. It is proposed - that a structured user name of the form outlined above - be used. - - (4) Implementation of an NIFTP mail channel in a form - suitable for incorporation under MMDF by UCL. - - - - - -Bennett [Page 18] - -INDRA Note 1025 NIFTP-Based Mail - - - - - - (5) At least one system in the US supporting MMDF which - can act as a relay between ARPA mail and NIFTP mail, - using the NIFTP channel supplied by UCL. - - (6) Code interfacing the transport service interface of - the UNIX NIFTP directly to UNIX TCP (and possibly NCP) - implementations, supplied by the US MMDF site. - - - This allows us to define the minimum configuration necessary - to provide NIFTP-based mail transfer between UCL systems and - systems in the CONUS ARPANET using either the current ARPANET - mail transfer protocol or the new MTP. The path would be as - follows: - - (1) UCL donor passes mail to UCL UNIX NIFTP in core. - - (2) NIFTP initiates a connection to the remote NIFTP, - which is which is driven as a mail channel by an MMDF - system (e.g. SRI-UNIX or UDEL-EE). This path will be: - through the UCL UIPP protocol to the Front End; thence - via TCP through UCLNET, SATNET and the CONUS ARPANET, - either directly to the remote system, or to a TCP/NCP - virtual call gateway resident at ISIE (which in turn - forwards the NIFTP traffic to the remote MMDF server - through NCP). - - (3) The remote MMDF injects the mail into either the - standard ARPANET mail channel or an MTP channel; at - the remote end of which it is delivered to the user's - mailbox. - - - In addition, it would be highly desirable to construct an - MMDF-like system which could act as a multi-channel mail relay - on TOPS20 systems in the ARPANET. All relevant mail channels - could be driven through it in a precisely similar manner. - However, rather more work is required to make this service - available. - - The above discussion ignores MTP-based mail altogether. This - has been done for illustrative purposes only - I have no doubt - that the current transition plans will be implemented, though - possibly not quite in their current form. In practice, the two - systems could coexist quite happily. The main impact of - allowing the two systems to proceed in parallel would be in - - - - -Bennett [Page 19] - -INDRA Note 1025 NIFTP-Based Mail - - - - - - the design of mail relays. The more mail transfer systems - exist, the more important it is that relays be designed in a - 'mail-independent' fashion. The advantages of this have - already been demonstrated for the UNIX MMDF. The same - principles should be followed in the design of relays for - other computer systems. - - - 7. NIFTP-Based Mail in the UK. - - Within Britain, the problems of building a mail system along - these lines are rather different, but on the whole less - complex. The basic communications facilities are only now - coming into widespread use, and the investment in higher level - protocols is much lower. However, the higher level protocols - which are coming into use are much friendlier to the system, - for the following reasons: - - (1) NIFTP is already available on most widely used machine - types in Britain. Implementing the mail transfer - procedure is a trivial additional exercise. - - (2) The UK transport service proposals assume the need for - network interconnection to provide a semantically - equivalent service rather than a superimposed common - protocol. Hence the need for extensibility through - virtual call gateways is widely accepted. - - (3) Because there is no heavy investment in first - generation protocols, there is no absolute requirement - for mail relays at this stage. - - - The major need is for message processing and preparation - programs, as such programs are not widely available in the UK, - except for UNIX systems. In particular, these should be based - on RFC733 procedures. For many system types these may be - available from similar systems in the US; others would have to - be developed from scratch. - - - 8. References - - - - [Bennett80] - Bennett, C. J.: The Design and Implementation of - - - - -Bennett [Page 20] - -INDRA Note 1025 NIFTP-Based Mail - - - - - - Transnetwork Systems. UCL TR 65. Available from - Univeristy College London. - - [Bennett80a] - Bennett, C. J.: Realisation of the Yellow Book - Above TCP. INDRA Note 965. Available from University - College London. - - [Crocker77] - Crocker, D. H., Vittal, J. J., Pogran, K. T., - Henderson Jr, D. A.: Standard for the Format of ARPA - Network Messages. RFC733. Available from SRI - International, Menlo Park, California. Obsoletes earlier - versions. - - [Crocker79] - Crocker, D. H., Szurkowski, E. S., Farber, D. - J.: An Internetwork Memo Distribution Capability - MMDF. - Proc. 6th Data Comm. Symp. - - [HLPG81] - HLPG/FTPIG: A Network Independent File Transfer - Protocol. Available from DCPU, National Physical - Laboratory, Teddington, UK. Obsoletes earlier versions. - - [Postel76] - Postel, J. B.: Mail Protocol. NIC 29588. - Available from SRI International, Menlo Park, California. - - [Postel80] - Postel, J. B., Cerf, V. G.: Mail Transition Plan. - RFC773. Available from SRI International, Menlo Park, - California. - - [SG3/80] - PSS/SG3: A Network Independent Transport Service. - Available from the DCPU, National Physical Laboratory, - Teddington, UK. - - [Sluizer80] - Sluizer, S., Postel, J. B.: A Mail Transfer - Protocol. RFC772. Available from SRI International, Menlo - Park, California. - - - - - - - - - - - - - - - -Bennett [Page 21] - -INDRA Note 1025 NIFTP-Based Mail - - - - - - APPENDIX I - - RFC733 Formats - - Below is an example of an RFC733 message taken from the - specification. - - Date: 26 August 1976 1430-EDT - From:George Jones - Sender:Secy at SHOST - To:Al Neuman at Mad-Host, - Sam Irving at Other-Host - Message-ID: - - This is an example of an RFC733 message. Both - simpler and more complex headers are possible. - - The entire RFC733 syntax specification is summarised in - the following listing, extracted from the original - specification: - A. ALPHABETICAL LISTING OF SYNTAX RULES - - - address = host-phrase / quoted-string - / (*phrase "<" address ">" ) - / (*phrase ":" address ";" ) - / (":" ("Include" / "Postal" / atom) ":" address) - ALPHA = - atom = 1* - - CHAR = - comment = "(" *(ctext / comment / quoted-pair) ")" - CR = - CRLF = CR LF - ctext = - CTL = - - date = 1*2DIGIT ["-"] month ["-"] (2DIGIT /4DIGIT) - date-field = "Date" ":" date-time - date-time = [ day-of-week "," ] date time - day-of-week = "Monday" / "Mon" / "Tuesday" / "Tue" - / "Wednesday" / "Wed" / "Thursday" / "Thu" - / "Friday" / "Fri" / "Saturday" / "Sat" - / "Sunday" / "Sun" - delimiters = specials / comment / linear-white-space - - - - -Bennett [Page 22] - -INDRA Note 1025 NIFTP-Based Mail - - - - - - DIGIT = - - extension-field = - - field = field-name ":" [ field-body ] CRLF - - fields = date-field originator-fields *optional-field - field-body = field-body-contents - [CRLF LWSP-char field-body] - field-body-contents = - field-name = fnatom *(LWSP-char [fnatom]) - fnatom = 1* - - host-indicator = 1*( ("at" / "@") node ) - host-phrase = phrase host-indicator - hour = 2DIGIT [":"] 2DIGIT [ [":"] 2DIGIT ] - HTAB = - - LF = - linear-white-space = 1*([CRLF] LWSP-char) - LWSP-char = SPACE / HTAB - - mach-id = "<" host-phrase ">" - mailbox = host-phrase / (phrase mach-id) - message = fields *(CRLF *text) - month = "January" / "Jan" / "February" / "Feb" - / "March" / "Mar" / "April" / "Apr" - / "May" / "June" / "Jun" - / "July" / "Jul" / "August" / "Aug" - / "September" / "Sep" / "October" / "Oct" - / "November" / "Nov" / "December" / "Dec" - - node = word / 1*DIGIT - - optional-field = - "To" ":" address - / "cc" ":" address - / "bcc" ":" address - / "Subject" ":" *text - / "Comments" ":" *text - - - - -Bennett [Page 23] - -INDRA Note 1025 NIFTP-Based Mail - - - - - - / "Message-ID:" mach-id - / "In-Reply-To"":" (phrase / mach-id) - / "References:" (phrase / mach-id) - / "Keywords" ":" phrase - / extension-field - / user-defined-field - originator-fields = - ( "From" ":" mailbox - ["Reply-To:" address] ) - / ( "From" ":" 1 address - "Sender" ":" mailbox - ["Reply-To:" address] ) - - phrase = 1*word - - quoted-pair = " - quoted-string = <"> *(qtext / quoted-pair) <"> - qtext = , CR, or LF and including - linear-white-space> - SPACE = - specials = "(" / ")" / "<" / ">" / "@"/ "," / ";" / ":" - / " - - text = - time = hour zone - - user-defined-field = - - word = atom / quoted-string - - zone = ( ("+" / "-") 4DIGIT ) - / ( ["-"] (1ALPHA - / "GMT" / "NST" / "AST" / "ADT" / "EST" / "EDT" - / "CST" / "CDT" / "MST" / "MDT" / "PST" / "PDT" - / "YST" / "YDT" / "HST" / "HDT" / "BST" / "BDT" )) - - <"> = - - - - - - - - -Bennett [Page 24] - -INDRA Note 1025 NIFTP-Based Mail - - - - - - APPENDIX II - - UCL Mail System Plans for 1981 - - The following is an extract from the UCL annual report - for the Ministry of Defence, summarising our planned - activities in 1981. - - - Plans for the message systems work in 1981 have not - been finalised, as some areas depend on decisions and - choices which have not yet been made. However, a rough - scheme is as follows: - - (1) Complete installation of MMDF in local systems - (January). Supportive tasks will be required - throughout the year, eg bugfixing as found, - transferring and reconfiguring MMDF for new systems - (eg the 11/44) as they become available. - - (2) Issue specification of proposed NIFTP-based mail - channel (January) - - (3) Either - - implement NIFTP-based mail channel over TCP under - MMDF; if possible, after upgrading UNIX NIFTP to the - 1980 specification. Optionally (but preferably) the - UNIX NIFTP should also use Yellow Book TCP commands. - - or - - implement or obtain MTP mail channel over TCP under - MMDF. If one is obtained from an outside source it - must be modified to access TCP through the UIPP, and - very probably modified so that it can be driven as a - channel through MMDF. (1st - 3rd quarter) - - (4) Depending on the choice made above, appropriate - supportive action must be taken. (2nd to 4th quarter - and beyond) - - (1) NIFTP-based channel - - - - - - - -Bennett [Page 25] - -INDRA Note 1025 NIFTP-Based Mail - - - - - - (1) This should be released to an MMDF - site in the US (either SRI or the - University of Delaware) which could - act as a relay. - - (2) Help and assistance as required to - interface NIFTP directly to TCP or NCP - in the remote system. - - (3) TCP/X25 virtual call gateway to allow - access through IPSS and PSS. This - should be in existance in any case. - - - (2) MTP channel - - (1) TCP/X25 virtual call gateway, as - above. - - (2) Possibly TCP/NCP virtual call - gateways. This depends on the progress - of MTP/ARPA mail relays at TCP/NCP - boundaries as required by the ARPA - Mail Transition Plan. - - - - (5) Replace MSG message processing system by MH, to allow - remote access to UCL mail handling. (3rd/4th quarter - and beyond). - - While the above lists the primary path to providing - mail services, there are a number of subsidiary or - optional pathways which will also be undertaken, if - necessary or desirable. These include the following: - - (6) Continue efforts to provide ARPANET mail access - through a terminal channel. (January/February). - - (7) Undertake necessary activity to incorporate - TOPS20/TENEX systems into either the NIFTP or MTP - based scheme above. The latter case should presumably - involve very little UCL activity. The former case - requires the following from us (1st to 4th quarter and - beyond): - - - - - -Bennett [Page 26] - -INDRA Note 1025 NIFTP-Based Mail - - - - - - (1) Optionally (but preferably) the upgrading of - the TOPS20 NIFTP to the 1980 specification. - - (2) Optionally (but preferably) the interfacing of - the NIFTP to a Yellow Book TCP Service. - - (3) The design and development of a mail relay - system analogous to MMDF for TOPS20. Even if - it is decided that UCL will go the NIFTP path, - such a relay may well be developed by a US - ARPA contractor for MTP support. In this case, - our task is to interface the NIFTP channel on - TOPS20 to this relay. - - - (8) There may arise interest in providing mail servers - within the UK community, eg on SRCNet or PSS. Such - services are more likely to be NIFTP-based than MTP- - based (though in the longer term Teletex is a more - favoured candidate than either). In this case the - following UCL activities would be required (2nd/3rd - quarter to 4th quarter and beyond): - - (1) NIFTP-based mail channel over Yellow Book over - X25. - - (2) The use of the UCL MMDF server as an actual - mail relay, if Catenet sites are using an MTP - channel. - - (3) A TCP/X25 virtual call convertor if they are - not. - - - (9) Additionally, UCL will continue to take an active - interest in message standardisation activity, in areas - such as Teletex, IFIP WG6.5, etc. - - - - - - - - - - - - - -Bennett [Page 27] - -INDRA Note 1025 NIFTP-Based Mail - - - - - - Table of Contents - - - - - 1. Introduction..................................................1 - - - 2. Requirements..................................................1 - - - 3. Basic Elements................................................2 - - 3.1 Mail Format...............................................2 - 3.2 Mail Addresses............................................3 - 3.3 Mail Transfer.............................................4 - - 4. Point to Point Mail Transfer..................................6 - - 4.1 Mail Structure............................................6 - 4.1.1 Proposal.............................................6 - 4.1.2 Discussion...........................................7 - 4.1.2.1 Address Lists...................................7 - 4.1.2.2 Possible Extensions.............................7 - 4.1.2.3 Alternative Structures..........................8 - 4.2 Mail Server Identification................................9 - 4.2.1 Proposal.............................................9 - 4.2.2 Discussion...........................................9 - 4.3 Mail Server Communication.................................9 - 4.3.1 Proposal.............................................9 - 4.3.2 Discussion...........................................10 - 4.4 Mail Transfer.............................................11 - 4.4.1 Proposal.............................................11 - 4.4.2 Discussion...........................................11 - 4.5 Reliability...............................................12 - - 5. Mail Relays...................................................12 - - 5.1 Address Processing........................................13 - 5.2 Return Paths..............................................14 - 5.3 Economy...................................................15 - 5.4 Reliability...............................................16 - - 6. The ARPA Mail Transition Plan: A Case Study...................16 - - 6.1 Current Proposals.........................................16 - - - - -Bennett [Page 28] - -INDRA Note 1025 NIFTP-Based Mail - - - - - - 6.2 NIFTP and the Transition Plan.............................17 - 6.3 A Proposal................................................17 - - 7. NIFTP-Based Mail in the UK....................................20 - - - 8. References....................................................20 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Bennett [Page 29] diff --git a/text/ien/ien170.txt b/text/ien/ien170.txt deleted file mode 100644 index 7bd528ab..00000000 --- a/text/ien/ien170.txt +++ /dev/null @@ -1,95 +0,0 @@ - - -IEN 170 - Danny Cohen - Jon Postel - USC / ISI - January 25th, 1980 - - - ON IP-ADDRESSING - ---------------- - -At some early point we agreed that an IP address is always a 32-bit -address, composed of 8-bit NET-ID, followed by a 24-bit "REST" field. - -This implied that: - - 1. All the networks in our universe must have an 8-bit identifier; - and - 2. All intra-net addresses must fit into a 24-bit field, somehow. - -It also implies that: - - 3. Our gateways must know about all of our (up to) 256 networks. - - -Since it became clear that these assumptions may not reflect the real -world, which is outside of our IN group, we patched the situation by -defining Source Routing (SR) which was expected to be equivalent to the -Extensible-Addressing which should have been used initially. - -However, the way our source route option is handled does not really -solve the situation. It appears as if the implementation of this -capability is optional, even though the documentation clearly states -that the implementation of the options is mandatory, only their use of -any given datagram is optional, as stated on p.29 of IEN-128. - -We do not know how many gateways actually have implemented the source -routing options, if any. We doubt if any TCP implementation is actually -capable of communicating Source Routing to the IP level below it, -request a Return-Route and know how to handle it once it arrives at the -IP. - -However, our definition of Source-Route as a sequence of IP-addresses -does not expand our addressing capabilities at all. Only IP-addresses -(which can be specified directly) may be specified by the Source-Route. -Both the direct addressing and the Source-Route are designed to specify -destinations which are under our control, in networks which agree to be -part of our addressing plan. - 2 - -This a serious deficiency. Hosts on public nets, for example, require 14 -digits of address which is beyond our 24-bits capability, likewise PUP -addresses require more than 24 bits. - -In order to overcome this deficiency IEN-122 has suggested that -ESCAPE-CODEs be defined in the space of NET-ID's. - -The idea of Escape-Codes met no objections, and was added to the (long) -list of wouldn't-it-be-nice's which were never implemented. - -The introduction of the Escape-Codes into the NET-ID space requires no -change to the definitions of either IP or TCP which are already casted -in concrete. Therefore, LET'S DO IT, NOW !!! - -The numbers-Czar would be willing, rumors say, to assign such Escape- -Code(s). - -This still leaves us with the reality of lack of Source-Routing, even -though it is on the books. - -Three approaches may be taken: - - (A) Enforce implementation of Source Route as described - in the official documents, IEN-128. - - (B) Recognize the mistake, apologize and re-do it right: - introduce Extensible- Addresses. - - (C) Do nothing. - -Obviously (B) is the toughest to implement, and (C) is the easiest. - - - -We recommend that: - - 1. The implementation of Source-Routing (SR) be "enforced". - This includes both IP code in gateways and hosts, and its - interface to the higher level protocol (e.g., TCP). - - 2. ESCAPE-CODEs be defined in the space of NET-ID's, to allow - addressing extensions beyond the IP-world (e.g., dialup - lines, PUP and public networks). - diff --git a/text/ien/ien171.txt b/text/ien/ien171.txt deleted file mode 100644 index 6b3685b8..00000000 --- a/text/ien/ien171.txt +++ /dev/null @@ -1,220 +0,0 @@ - - - -IEN 171 - - Danny Cohen - USC / ISI - 18 January 1981 - - - Addressing in the ARPAnet, another visit - ---------------------------------------- - - -As you all remember the addressing in the HOST/IMP interface for the -ARPAnet has the following format (as defined in 1822): - - 8 8 16 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - |///IP-net-ID///| H O S T | I M P | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - 9 16 41 48 49 64 - -Please allow me to take the liberty of showing it in a more "logical" -and consistent order: - - 8 16 8 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - |///IP-net-ID///| I M P | H O S T | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - -In the rest of this discussion we will use only this "logical" order. - -It is well known that for the time being the Net-ID field is not used -and that IMP numbers may be contained in a single 8-bit field. -Therefore, ARPAnet addresses are of the form: - - 8 8 8 8 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - |///IP-net-ID///| I M P | 0 | H O S T | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - 2 - -I believe that a single 8-bit field for the IMP address may be found in -a (relatively) near future to be too restrictive. Let's assign a 12-bit -field for this purpose (even though I believe that 10 are enough). -Using 12 bits for IMP-addressing the following format is suggested: - - 8 12 12 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - |///IP-net-ID///| I M P | H O S T | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - -Hence, I propose an arrangement which will allows a connection of up to -4,096 hosts to a single IMP (out of 4,096), or more hosts out of less -IMPs if the IMP-address field is chosen to be smaller than 12 bits. - -One of the best ways to connect many hosts to an IMP at any site is by -contracting BBN to provide that many IMP/HOST interfaces. Another way -is by sharing a few IMP ports by several hosts, by using multiplexers, -port-expanders or other multi-access schemes. One candidate technology -for such multiplexing is the one commonly referred to as "local -networks". - -I advocate that the details of this arrangement are of interest only of -that site, and are no one else's business. In other words, these -details do not have to be made available outside of that site. - -The word HOST in all of the above diagrams is most misleading. The IMP -has absolutely no notion of host. All it knows is which port is used. -This field is used to identify the IMP port, not the HOST. - -It is proposed here that if there are several hosts sharing the same -port, then a HOST-ID field should follow the PORT-ID field. - -How big should these two fields (the PORT-ID and the HOST-ID) be? The -answer depends on the local configuration at each site. One site may -chose to connect its 64 hosts by using 64 ports bought from BBN, another -by using a smaller number of ports each supporting several hosts through -some port expanders, and another site may connect all of its 64 host -through a single port. - -Obviously, hosts which share the same ports have to understand the -advantages and disadvantages which are associated with this sharing, -such as the flow-control which is based on port-pair, port blocking, -etc. It is not unreasonable to expect the personnel at each site to be -intelligent enough to understand these issues and to make the -appropriate decision about it, as best suits the particular situation. - -The notion which is advocated here is that the distinction between -PORT-ID and HOST-ID does not have to be known and understood to the -outside, just as on the ARPAnet the distinction between the IMP-ID and -the HOST-ID does not have to be understood even at the HOST/HOST -protocol level. - 3 - -Again, where does the proposed PORT-ID field end and the HOST-ID start? -One possible approach is to legislate the same answer for all IMPs, -regardless of the particular situation of each one. This has some -trivial simplification benefits. - -Another is to follow the IP philosophy of NOT legislating the format of -each intranet addressing, and leaving it as the "REST" which has to be -understood only at the local environment for which it is designed. - -Following this philosophy it is proposed that the PORT-ID field be -defined to be of a variable length, defined specifically for each IMP -according to the local requirements which it has to support. Let N(i) -be the length PORT-ID field at IMP(i), i.e., the IMP whose ID is i. - -Hence, once a message arrives at IMP(i) for any of its hosts, this IMP -should look at the top N(i) bits of the PORT-ID/HOST-ID field and -extract the PORT-ID for the port to be used for forwarding this message. -Neither the extra processing nor the storage requirements for supporting -this scheme seem to be excessive. - -Obviously there must be some processor on the other end of every port -which is capable of handling the required handshake with the IMP. - -The flow control which is now based on port/port pairs must be somehow -modified since the notion of remote port does not exist under this -proposal. Without getting into details here we suggest that this -problem can be solved, and the difficulties associated with this -modification are outweighed by the benefits of this scheme. - -The main advantage of such a scheme, in comparison with having some kind -of a gateway (or equivalent, such as SRI's port-expander) is that the -forwarding may take place in a very efficient way without the need to -"open each envelop", understand the protocol used, finding the full -IP-address (whose position may vary even for different versions of IP) -and decipher from it where to forward the message. The author of this -short note dares suggest that efficiency is not a sign of moral -turpitude and that we should be as efficiency oriented as possible. - -Hence, our proposed format for the ARPAnet addressing is: - - 8 12 N(i) / 12-N(i) - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - |///IP-net-ID///| I M P | P O R T / H O S T | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - -This format is "logical" and suggestive only. It is well understood that -these bits may be packed in a different order and over several -non-consecutive fields (e.g., 9-16 and 41-64). - 4 - - A problem with the current 1822 format - -------------------------------------- - -The basic notion of 1822 is that it is a IMP/HOST protocol. -Unfortunately, 1822 is the IMP/PORT (or IMP/INTERFACE) protocol. If -every PORT always supports only one host then 1822 is really an IMP/HOST -protocol. However, with today's technology where hosts range in size -(and cost) over several orders of magnitude it is not unreasonable to -expect that several hosts share a single IMP-PORT. - -This may be accomplished in a variety of ways which we better not -discuss here since this is too rich topic for this discussion. - -Most modern protocols carry both the TO: and the FROM: addresses across -the "subscriber" interface. It would be nice, and most helpful, if 1822 -would carry both the destination and the source addresses, just like IP, -TCP, PUP and Ethernet - to name a few. - - - Background (or why we, at ISI, like this scheme) - ------------------------------------------------ - -I apologize for introducing the motivation at the end of the note, -rather than at its beginning. - -At ISI any scheme which would allow a fast and efficient packet -multiplexing between many hosts and networks is a cornerstone of the -architecture of our new environment. - -We, at ISI, would like to be able to multiplex packets with minimal -processing and without the need to "open each envelop" and read the -"inside letter" and to understand the higher level protocols in order to -figure where to forward the messages. At the level where these -multiplexing techniques reside even IP is a higher level protocol, and -so are ST and PUP. - -We plan that the entire ISI environment would share a single 8-bit -address space, spanned by several local networks, Funnels and probably -some other packet-multiplexing schemes. - -This environment, which we like to refer to as a "site", would have -connections to several IP-Networks (capital N!). The preferred mode of -operation is to use some direct packet multiplexing schemes to deliver -the packets directly to their destinations, each of which is capable to -perform all the IP-processing. The exception would be to route packet -through an explicit Gateway, and even this may be used only for part of -the traffic, like for outgoing packets which require routing decisions -but not for incoming ones. - 5 - -According to our philosophy the choice for our site between using -centralized site gateway and a "distributed-gateway" is our business, -and no one else's. A distributed gateway is a scheme where each host -performs all the necessary IP-level functions. Note that even the -existence of a centralized gateway does not alleviate the need for the -distributed one, because every terminal-host must be able to understand -IP, unless it has a surrogate which performs this task for it. - -We happen to believe that other sites with a large number of hosts would -like to implement similar schemes which support high efficiency of -packet forwarding mechanisms. - - - A concluding comment - -------------------- - -The notion which is advocated in this note is by no mean new. We have -learned long ago that any level of protocol should always contain -multiplexing information for the next level. In the few instances where -this is not done - a price is paid for this error. - -For example, the good old LINKs (or Message-ID's) used to play such a -role, and so do NCP-SOCKETs and TCP-PORTs. -------- diff --git a/text/ien/ien172.txt b/text/ien/ien172.txt deleted file mode 100644 index e9117d67..00000000 --- a/text/ien/ien172.txt +++ /dev/null @@ -1,975 +0,0 @@ - - - - - - A SIMPLE MESSAGE GENERATOR - - - - - - - IEN 172 - - - - - - - - - - - - David Flood Page - - - - - - - 9 March 1981 - - - - - - - - - - - - Bolt, Beranek and Newman Inc. - - - 50 Moulton Street - - - Cambridge, Massachusetts 02238 - IEN 172 Bolt Beranek and Newman Inc. - - - - - TABLE OF CONTENTS - - - - - Page - 1 Introduction 1 - 2 Overview of TRAF and the subset described here 1 - 3 The User-Server Interaction 3 - 4 Message formats 6 - 4.1 User to Server Messages 7 - 4.2 Server to user Messages 7 - 4.3 Argument Structures 8 - 4.4 Error Messages 12 - 5 Echo/Sink Servers 14 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - i - IEN 172 Bolt Beranek and Newman Inc. - - - - - 1 Introduction - - - We want to have a controllable message generator for the - - Catenet that will be simple to implement. There currently exists - - the TRAF system which was built to do performance measures for - - another project; this document describes a subset of the TRAF - - facilities aimed at producing a simple message generator that can - - be controlled by the existing TRAF control system. A full - - specification and description of TRAF will be issued later. - - - Because we want it to be controllable by the existing TRAF - - control system, the server will have to include a TCP. This - - conflicts slightly with the idea of a minimal server, but will - - allow us to get things working faster. At some point in the - - future we will define a simpler, XNET-like protocol for control - - of the server; the message contents will be the same as those - - described here in any case. The messages will be transmitted via - - UDP. - - - - 2 Overview of TRAF and the subset described here - - - TRAF consists of two programs: a controlling program, - - called the user program, which runs on a Unix system, and a - - server program, which runs on a PDP-11 (or LSI-11) under MOS. - - One user program can control many instances of the server. The - - user program communicates with the servers via TCP connections, - - so the servers do not have to be on the same net as the user. - - - 1 - Bolt Beranek and Newman Inc. IEN 172 - - - - - The user program provides three basic services: - - - 1. It accepts and executes the user's commands, entered at - a terminal. Often these commands cause the user - program to forward commands to a server. - - 2. It displays the results of its actions, messages - received from the servers, and the status of the - message generation activity it controls. - - 3. It performs various file handling functions, such as - storing job definitions and command files. - - - The Server program provides three basic services: - - - 1. Packet echo delay or TCP connection open/close delay - jobs. These jobs generate messages. - - 2. Echo jobs. These just echo packets after a TCP - connection has been established. - - 3. Special TCP and UDP ports which act as raw echoes or - sinks (depending on the port number), without the need - to open any connections. - - - A full TRAF server will perform these functions and also - - gather data about the delays it sees. This data is then sent - - back to the user program. This specification deals with message - - generation but not with data gathering. It describes a subset of - - the message generation commands which will allow control by the - - existing user program. - - - - - - - - - - 2 - IEN 172 Bolt Beranek and Newman Inc. - - - - - 3 The User-Server Interaction - - - When the server starts up it listens on TCP port 51 - - (decimal). The user establishes a connection on this port and - - this causes the server to set up a process called the session, - - which then accepts commands from the user program, and sends - - responses back to it, over the TCP connection. - - - Servers without a TCP will listen on UDP port 51 (decimal) - - for the messages from the user program. The first message from - - the user program will be a "Set time and date" message (see - - below). - - - In addition, the user and server send echo requests, and the - - appropriate responses, to each other every 30 seconds, to check - - that the connection is still working. If either end times out an - - echo request, then it closes the connection. The timeout time is - - 2 minutes. - - - A session can be in a number of states, and state - - transitions are caused by user commands. The states used in this - - specification are: - - - o Defined - - o Started - - o Aborted - - o Ended - - o Active - - - 3 - Bolt Beranek and Newman Inc. IEN 172 - - - - - A session is active if it has active jobs running (see - - below). The following is the state transition table: - - - SESSION STATE - +---------+---------+---------+----------+ - | | | | | - | Defined | Started | Aborted | Active | - | | | | | - C +--------+---------+---------+---------+----------+ - | | | | | | - O | Start | started | error s3| started | error s3 | - | | | | | | - M +--------+---------+---------+---------+----------+ - | | | | | | - M | Abort | aborted | aborted |error s9 | aborted | - | | | | | | - A +--------+---------+---------+---------+----------+ - | | | | | | - N | End | ended | ended | ended | ended | - | | | | | | - D +--------+---------+---------+---------+----------+ - - - - Where an error is indicated, no state transition takes place. A - - session enters the Defined state when the TCP connection is - - established. A session that is ended goes away completely, so - - there are no transitions from the Ended state. - - - Details of command formats are given in section 4. If an - - active session is aborted, all jobs within that session are - - ended. (See below.) - - - A session creates processes called jobs to do the message - - generation. The full TRAF server allows multiple jobs to be - - running simultaneously within a session, but this is not - - - - - - 4 - IEN 172 Bolt Beranek and Newman Inc. - - - - - essential to the operation of the system; one only will do. - - - A job can be in one of several states. The states we will - - use are: - - - Job defined - - started - - aborted - - done - - ended. (undefined) - - - As with sessions, job state transitions are caused by user - - commands. The commands we will use are: - - - o job start - - o job abort - - o job end - - - The state transition table is given below. A job enters the - - Done state when it has run to completion, and when a job is ended - - it goes away altogether, i.e. its resources are freed; so, as - - with sessions, there are no transitions from the Ended state. - - - - - - - - - - - - - - - 5 - Bolt Beranek and Newman Inc. IEN 172 - - - - - JOB STATE - +---------+---------+---------+----------+ - | | | | | - | Defined | Started | Aborted | Done | - | | | | | - C +--------+---------+---------+---------+----------+ - | | | | | | - O | Start | started | error j9| started | started | - | | | | | | - M +--------+---------+---------+---------+----------+ - | | | | | | - M | Abort | aborted | aborted |error j16| aborted | - | | | | | | - A +--------+---------+---------+---------+----------+ - | | | | | | - N | End | ended | ended | ended | ended | - | | | | | | - D +--------+---------+---------+---------+----------+ - - - - A job is initially defined by an "assign and define job" - - command. The argument list for this command includes a job - - number, called the user job number, assigned to it by the user - - program. The server assigns its own job number to the job and - - returns that job number to the user program in its - - acknowledgement; all further references to that job in - - user-server or server-user messages use the job number assigned - - by the server. - - - - 4 Message formats - - - Bits within fields are numbered according to the PDP-11 - - convention, i.e. bit 0 is the least significant bit. - - - All communication between user and server programs takes - - - - - 6 - IEN 172 Bolt Beranek and Newman Inc. - - - - - place over a TCP connection. The server listens on port 51 - - (decimal) and the user host initiates the connection. - - - The first octet of every message is the opcode. This opcode - - defines the operation required and determines the structure of - - the rest of the message. The next two sections list the opcodes, - - their meanings, and the argument structure (if any) of the - - messages. All numbers are in decimal. - - - 4.1 User to Server Messages - - - Opcode Meaning Argument Structure - - 0 echo request octet to be echoed - 1 echo response echoed octet - 2 set time and date version number, 16 bits - Unix format time and date, - 32 bits - 5 return job state information job number, 1 octet - 6 return session state - 7 start session - 11 abort session - 12 end session - 13 assign and define job job definition block, - see below. - - 14 start job job number, 1 octet - 18 abort job job number, 1 octet - 19 end job job number, 1 octet - 20 error reset job number, 1 octet - - - - - - - - - - - - - - - 7 - Bolt Beranek and Newman Inc. IEN 172 - - - - 4.2 Server to user Messages - - Opcode Meaning Argument Structure - - 0 echo request octet to be echoed - 1 echo response echoed octet - 2 set time and date - 5 job state information job number, 1 octet - job state vector, see below. - 6 session state session state vector, see below. - 7 session started - 11 session aborted - 12 session ended - 13 job assigned server job number, 1 octet - user job number, 16 bits - 14 job started job number, 1 octet - 18 job aborted job number, 1 octet - 19 job ended job number, 1 octet - 21 job complete job number, 1 octet - 22 error job number, 1 octet - number of characters in error - string, 16 bits - error string. - - - - Note that server-user opcode 19 (job ended) is a response to - - user-server opcode 19 (end job), while opcode 21 is an - - asynchronous message indicating that the job has run to its end. - - - The response to any opcode not included here is an error - - message for that opcode with the string "Limited server only". - - See error messages, below. - - - 4.3 Argument Structures - - - These are the formats for the arguments whose format is not - - fully specified in the preceding sections. - - - - - - - - 8 - IEN 172 Bolt Beranek and Newman Inc. - - - - - 4.3.1 Job Definition Block - - - Field Name Size (Octets) See Note - - job option word 2 1 - job duration, low order 2 2 - job duration, high order 2 2 - destination net 1 - destination host 1 - destination tcp id 1 - destination logical host 1 - number of outstanding packets 2 - unused in this specification 2 - lower limit of packet size 2 - upper limit of packet size 2 - unused in this specification 10 - user job number 2 3 - job comment 80 4 - - - Notes: - - - 1. The job option word is a 16 bit field. The bit - settings relevant here are: (bit 0 is the least - significant) - - - 0 must be set. Indicates an echo delay - job. - - 1 If set, the server will send UDP - datagrams; if not, TCP datagrams. - - 2 If set, indicates that messages are to - be sent to the sink port on the - destination host; if unset, to the echo - port. - - 3 Not used in this specification. - - 4 Not used in this specification. - - - 2. Job duration is in units of 0.1 second. - - 3. The user job number is sent back with the "job - - - - - 9 - Bolt Beranek and Newman Inc. IEN 172 - - - - - assigned" message, along with the server job number; - thereafter, only the server job number is used. - - 4. The job comment is not used by this limited server. - - - 4.3.2 Job State Vector - - - Field Name Size(Octets) See Note - - Job state word 2 1 - TCP state word 2 2 - (Internal information) 26 - low order of time left to run 2 3 - high order of time left to run 2 3 - unused in this specification 2 - echo delay data queue 4 4 - unused in this specification 8 - - - - Notes: - - - 1. The job state word has the following bit settings: - - - 0 job defined - - 1 job started - - 3 job aborted - - 5 job done - - 10 job is an echo delay job - - 11 job is currently active - - 13 error sent (waiting for reset) - - 14 restart process after tcp connection - closes - - - Bits not specified are not part of this specification - subset. - - - - - 10 - IEN 172 Bolt Beranek and Newman Inc. - - - - - 2. The TCP state word has the following bit settings. - - - 0 open wait - - 1 send wait - - 2 read wait - - 3 close wait - - 4 connection open - - 5 abort connection - - 6 close connection after write - - 7 data successfully read at some time on - connection - - 8 data successfully sent at some time on - connection - - - 3. The time left to run is a 32 bit quantity in units of - 0.1 second. - - 4. Data queues consist of a pointer and an entry count. - The pointer is for internal use only and need not be - set; the entry count is just the number of items on the - queue. - - - 4.3.3 Session State Vector - - A session state vector consists of 2 16-bit fields. The - - first is the session state, with bit settings as follows: - - - Bit - 0 session is defined (tcp connection is open) - 1 session is started and idle (no active jobs) - 2 session is started and active - 3 - 4 session is aborted. - - - - - - - 11 - Bolt Beranek and Newman Inc. IEN 172 - - - - - The second field is the TCP status word, with settings as - - shown in 2. above. (Job status vector) - - - 4.4 Error Messages - - - The high order 2 bits in the server to user upcode are used - - to signal an error condition (bit 7) or message condition (bit - - 6). When either bit is set, a string is returned with the - - opcode. This string has the format: - - - number of characters in string, 1 octet - string, ASCII octets - null octet - - - If the opcode is normally followed by a job number then that - - precedes the string. The error bit is set in the asynchronous - - error message (opcode 22). - - - If this limited server receives an opcode that it does not - - understand, then it will send back a message containing the - - opcode with the error bit set on, and an error string saying - - "Limited server only". - - - 4.4.1 Session Related Errors and Messages - - s1 Server identifying message. For this limited server it - - will be "TRAF Limited Server. Version n ()". - - - This is sent when the server receives a time set command - - from the user. - - - - - 12 - IEN 172 Bolt Beranek and Newman Inc. - - - - - s3 Session already started - s4 Session active, must be aborted - s9 Session already aborted - - - Errors s3, s4, s9 are sent in response to illegal state - - transition requests. - - - s12 No new jobs currently available. - - - This is sent when the server has no new jobs with which to - - satisfy an assign request. - - - s13 Illegal job number - - - This is sent if the server receives a request containing an - - undefined job number. - - - s14 Server using a newer version of the TRAF protocol. - s15 Server using an older version of the TRAF protocol - - - The time set command contains a version number; if this - - doesn't match the server's version number, s14 or s15 is returned - - and the TCP connection is closed. - - - s16 Echo request timeout, connection closed. - - - - If the server doesn't get a response to one or its periodic - - echo requests within a 2 minutes, it sends this message and - - closes the connection. - - - - - - - 13 - Bolt Beranek and Newman Inc. IEN 172 - - - - - 4.4.2 Job Related Errors and Messages - - - j1 Connection error - j2 Dead foreign host - j3 TCP connection refused - j4 Unexpected connection close - j5 TCP/UDP buffer unavailable - j6 TCP send error - - - - These are messages relating to errors in the job's TCP - - connection, if any. - - - j9 Job already started - j15 Job was aborted - j16 Job already aborted - j19 Job done - - - - These are messages relating to job state transitions. - - - - 5 Echo/Sink Servers - - - The server will echo any TCP or UDP packets sent to port 7 - - by swapping the source and destination addresses and ports, and - - sending the packet out again. This means that, for TCP echo, no - - TCP connection is established to the server; in effect, the - - connection is made by the source of the packets to itself. - - - Port 9 is the sink port. UDP packets sent to port 9 should - - be discarded with no acknowledgement. For TCP the case is - - different, because even discarded packets must be acknowledged, - - - - - - 14 - IEN 172 Bolt Beranek and Newman Inc. - - - - - so it will be necessary to open a TCP connection to port 9 to use - - it as a sink. Servers which do not have a TCP will therefore not - - offer this facility. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 15 diff --git a/text/ien/ien173.txt b/text/ien/ien173.txt deleted file mode 100644 index c021aff6..00000000 --- a/text/ien/ien173.txt +++ /dev/null @@ -1,437 +0,0 @@ - - -IEN 173 - - - Time Synchronization in DCNET Hosts - D.L. Mills, COMSAT Laboratories - 25-Feb-81 - - -Introduction - -The difficulty in establishing an absolute time reference -for use in internet measurements and experiments has been -often lamented. While time standards calibrated to the -precision necessary for internet delay measurements (in the -order of a millisecond) are readily available, the cost to -equip each host which may participate in these experiments -is significant and the broadcast services they depend upon -may not be available where needed. This note describes an -alternative mechanism using local-net protocols to -synchronize a logical clock in each of a set of internet -hosts to a single physical clock, such as an NBS radio -clock. The mechanism has been incorporated as an integral -component of the DCNET network routing algorithm and depends -for its accuracy upon the careful control of link delays. -For this reason it may not be practically applicable as a -retrofit in the ARPANET, for example. Nevertheless, the -principles can be applied in cases where somewhat less -precision is acceptable and where the participating hosts or -gateways support the required protocol. - -The DCNET Routing Algorithm - -The DCNET includes a number of PDP11-compatible hosts -interconnected by dedicated and dial-up links of various -types, including simple synchronous and asynchronous -point-to-point links, high-speed interprocessor channels and -self-contained retransmission systems. All of these links -include inherent delays which vary with transmission rate, -message length and coding, as well as occasional -retransmissions. In addition, the host operating system can -introduce delays due to interrupt latency, interprocess -communication and process scheduling. These delays -typically include a fixed component due to propagation -phenomena, together with a relatively small variable -component due to internal queueing, coding and -retransmission mechanisms. - -The DCNET architectural design includes the notion of -virtual host, which is a process resident in a physical host -and labelled with a unique internet address. One or more of -these virtual hosts can reside in a single physical host and -can migrate about the network from time to time in arbitrary -ways. Each virtual host can support multiple internet -protocols, connections and, in addition, a virtual clock. -Each physical host contains a physical clock which can -operate at an arbitrary rate and, in addition, a 32-bit - -Time Synchronization in DCNET Hosts PAGE 2 - - - -logical clock which operates at 1000 Hz. Not all physical -hosts implement the full 32-bit precision; however, in such -cases the resolution of the logical clock may be somewhat -less. - -Routing of datagrams from a physical host to each of the -virtual hosts in the network is determined by a set of Host -Tables, one in each physical host, which are updated by -HELLO messages exhanged on the links connecting them. The -HELLO messages are exchanged frequently, but not so as to -materially degrade the throughput of the link for ordinary -data messages. They contain information necessary to -compute the roundtrip delay and logical clock offset of the -receiving physical host relative to the sending one, -together with a table of delay and offset estimates computed -between the sending physical host and each of the virtual -hosts in the network. For the purpose of these estimates -the delay and offset of each virtual host relative to the -physical host in which it resides is assumed zero. - -The Host Table is updated by HELLO messages from each -neighboring physical host and in certain other cases. The -updating algorithm is similar to that used in the ARPANET -and other places in that the roundtrip delay calculated to a -neighbor is added to each of the delay estimates given in -its HELLO message and compared with the corresponding delay -estimates in the Host Table. If a delay computed in this -way is less than the delay already in the Host Table, the -routing to the corresponding virtual host is changed -accordingly. The detailed operation of this algorithm, -which includes provisions for host up-down logic and loop -suppression, is summarized elsewhere [1]. - -Virtual Clocks - -The Host Table update procedure represents a convenient -mechanism to implement a common time reference for each -logical clock in the network. For this purpose each virtual -clock residing in a physical host is assumed to run in -synchronism with zero offset relative to the logical clock -of that host. The offsets of the other virtual hosts in the -network, relative to this logical clock, are computed along -with the delays as HELLO messages arrive from neighboring -physical hosts. A physical host, upon receiving a HELLO -message, adds one-half the difference between its logical -clock and its neighbor's logical clock contained in the -HELLO message to each of the offset values in the message -and stores the result in its own Host Table. Note that both -the delay and offset values are stored only if the neighbor -is in fact on the least-delay path to the virtual host and -that the link delay is assumed equal in both directions. -Also, note that should a virtual host move from one physical -host to another, the delays and offsets in all Host Tables - -Time Synchronization in DCNET Hosts PAGE 3 - - - -relative to that virtual host would likely change. - -Any user process in a physical host can reference its -time-of-day calculations to any virtual host in the network -by simply adding the appropriate virtual clock offset to the -current value of the logical clock. Ordinarily, all network -experiments use the same virtual host for this purpose, -although not necessarily the same one in successive -experiments. In the current implementation one of the -physical hosts contains a special virtual host connected to -an NBS radio clock. The offset stored in the Host Table -corresponding to this virtual host reflects the offset of -this clock relative to the logical clock. Using the above -mechanism, the remaining physical hosts can reference their -logical clocks to the receiver as well. One of the physical -hosts is shortly to be moved not far from an atomic clock -which is referenced to the Naval Observatory clock using a -local television station. We are now assembling interface -hardware for access to this standard and plan to use the -above mechanism to reference all clocks to it. - -Implementation Considerations - -The absolute accuracy of the available NBS radio clocks is -claimed to be of the order of a millisecond. Since this -precision compares with that of the standard internet -timestamps used for the most precise delay measurements, it -would be natural to strive for a corresponding precision -within a set of hosts using the mechanism described above. -Ordinarily, this would require a crystal oscillator, counter -and interface at each host. The oscillator stability found -in commercial equipment of this type is of the order of a -few parts per million under laboratory conditions. An -uncorrected logical clock based on this equipment could be -expected to maintain time to within a millisecond for at -least eight minutes and to within three minutes in a year. - -In the case of the mechanism described above, the -corrections take the form of offsets contained in periodic -HELLO messages. A careful analysis of the non-systematic -errors inherent in these messages reveals contributions from -a number of sources dominated by the following: - -1. The interval between the instant the local clock is read - and the departure of the first bit of the timestamp on - the link. - -2. The effect of the data coding conventions (e.g. - character stuffing or bit stuffing) used to maintain - data transparency. - -3. The effect of retransmissions, where used. - -Time Synchronization in DCNET Hosts PAGE 4 - - - -4. The interval between the arrival of the first bit of the - timestamp and the instant it is compared with the local - clock. - -The effects of the first and last of these delays has been -minimized in the DCNET implementation by careful control of -internal latencies and scheduling mechanisms and is limited -to the order of a millisecond. The effects of character and -bit stuffing can be estimated under the assumption that all -character codes are equally likely. In that case, the -effects of character stuffing would contribute a factor of -about 1/256 to the uncertainty in data rate and the effects -of bit stuffing would contribute about 1/32. Thus, for the -case of 1200-bps character-stuffing links carrying HELLO -messages of typically 800 bits, the uncertainty would be of -the order of two milliseconds. The effects of bit stuffing -in the high-speed links are negligible in comparison. -Although HELLO messages are never retransmitted by a DCNET -host, some of the DCNET links, in particular those based on -the ACC Error Control Units (ECU), contain internal -retransmission features. Since retransmissions occur so -seldom in the present configuration, their effects have been -ignored; however, a simple range-gate technique similar to -that used in radar systems could be used to filter out -retransmissions, should that become a problem. - -From the above considerations the uncertainty in delays -measured using HELLO messages can be conservatively assumed -in the order of five milliseconds. For ease of analysis in -the following, we will assume the uncertainty to be a random -variable with a zero-mean Gaussian distribution and a -standard deviation of five milliseconds. Thus, in order to -reduce the uncertainty to the order of a millisecond, -something over 25 independent samples would be required. -The maximum interval between successive HELLO messages is -thirty seconds, so that the required precision can in -principle be achieved in about twelve minutes. - -Precise determination of clock offsets requires that the -drift rates between the various logical clocks be estimable -with sufficient precision. The approach chosen in the DCNET -design has been to initialize a variable representing the -current offset of the local logical clock relative to that -of a neighbor each time a HELLO message arrives from that -neighbor which updates the Host Table entry for the selected -virtual host. Once each second the period of the logical -clock is increased by a quantity equal to 1/1024 of this -variable and the variable is decreased by the same quantity. -The effect is that of a first-order recursive filter in -smoothing the corrections and distributing them so as to -minimize the phase jitter as viewed by the user process. In -addition, if updates from the selected virtual host are lost -due to failure of some host or link, the logical clock will - -Time Synchronization in DCNET Hosts PAGE 5 - - - -continue the correction process until the last offset -received is compensated. - -In order to provide for the initial setting of the logical -clock and subsequent drift correction without disruptive -phase discontinuties, the full 32-bit clock value is stored -only if the (signed) offset exceeds 16 bits; that is, only -if the high-order 16 bits must be changed. In other cases -the low-order 16 bits are corrected by slewing the phase of -the clock according to the current offset as described -above. The high-order 16 bits correspond roughly to -minutes, while the low-order 16 bits correspond to -milliseconds. Most internet measurments will be concerned -primarily with the latter, so this behavior is appropriate. -This yields a slew rate of about one microsecond per second -for each millisecond of offset. - -The dynamics of this procedure insure a smooth transition in -apparent drift rate from a maximum of 30 parts per thousand -for the maximum offset to one part per million for the -smallest. The maximum time required to slew the phase of a -physical clock over the full (plus-minus) thirty-second -range to steady state is about two hours. During the -slewing interval the offset estimates continue to be valid, -although of somewhat degraded accuracy. - -In a multiple-host network where the logical-clock -corrections must pass through a number of physical hosts, -the robustness of this method depends on the cooperation of -all intervening hosts. In general, this requires all hosts -to track the same virtual host offset and, in addition, -introduces additional dynamics in the drift-correction -process. The effect is that of a set of coupled first-order -recursive filters, where the input of each stage is -connected to the output of the previous stage, and all have -the same time constant described previously. So long as the -drift rates are constant over at least several hours, this -is not a problem; however, in the case where some logical -clocks are derived from power-line sources, this can lead to -significant loss in accuracy. - -On Power Line Clocks - -The short-term drift rates of power-line clocks relative to -standard time have been observed to exceed several parts per -thousand, with sharp changes in sign and magnitude occuring -near periods of large load fluctuations. In experiments -with the current DCNET implementation, discrepancies of -several seconds are routinely observed between the -power-line clock and the NBS radio clock. However, it is -evident that the power systems for considerable portions of -this country are closely synchronized in phase relative to -each other. For instance, the DCNET hosts at COMSAT - -Time Synchronization in DCNET Hosts PAGE 6 - - - -Headquarters in Washington, D.C., and at Ford Scientific -Research Laboratories in Dearborn, Michigan, have never been -observed to slip a power-line cycle relative to each other. - -These observations suggest that, if logical clocks are to be -synchronized to an atomic clock or NBS radio clock, then -physical clocks based on the power mains are not feasible, -at least for accuracies of the order of milliseconds. On -the other hand, for the short-term delay measurements -required for many internet experiments and where reference -to absolute time is not essential, the use of the power -mains as a synchronization reference may be quite practical. -This holds, of course, only in those cases where the power -systems in the areas where measurements are made are in fact -synchronous and probably would not apply, for example, for -European sites. - -On Radio Clocks - -Two of the NBS radio clocks on the market include the -Spectracom 8170 WWVB Synchronized Clock and the True Time -468-DC Satellite Synchronized Clock. The former uses the -60-KHz NBS broadcast from Boulder, Colorado, while the -latter uses the NOAA GOES satellites. Both have claimed -accuracy in the order of a millisecond and both support a -service area including the continental US. A Spectracom -8170 is now in service connected to one of the DCNET hosts -and serves as a master clock for the network. A few notes -on its characteristics may be of interest, especially to -others in the internet community planning on using similar -equipment. - -The characteristics of electromagnetic wave propagation at -60 KHz combine some features of the waveguide model -applicable at frequencies below about 30 KHz and the ray -model applicable at higher frequencies [2]. Both models -explain how the E layer, an ionized region about 100 km -above the earth's surface, guides or reflects -electromagnetic waves over long distances. In the case of -60-KHz transmissions from Boulder, the models predict -greater signal attenuation at times of the most intense -ionizing radiation from the sun on the D region, which lies -just below the E region and through which the signals must -pass. Thus, one would expect that received signal levels -would be highest at nighttime in winter and lowest in -daytime in summer, with respect to the midpoint of the path -from Boulder to the receiver. This has been observed in -Washington, DC, where the receiver often drops out of phase -lock for varying periods in the late afternoon. -Measurements of the received signal level with a -communications reveiver confirm variations of 20-30 -decibels. - -Time Synchronization in DCNET Hosts PAGE 7 - - - -Atmospheric discharges (called sferics) due to lightning can -be a severe problem at these frequencies in Summer and could -be expected to disrupt the receiver during summer evenings -when propagation conditions are relatively good from active -electrical areas like the Gulf Coast. Although other -stations share the 60-KHz assigned frequency, including MSF -in Rugby, UK, co-channel interference does not seem to be a -problem. On the other hand, some household electrical -appliances, including television deflection circuits and -solid-state lamp dimmers, can generate copious harmonics -that disrupt the receiver. The ferrite antenna supplied -with the receiver does not seem to be as effective as would -ordinarily be expected in dealing with this problem. - -Even when phase lock has been lost, the receiver coasts -indefinately using the last clock update received. Although -the receiver indicates a signal loss of over ten minutes, -both by a front-panel indicator and in the time message sent -to the attached host, the indicated time should remain -accurate to within an order of one part in a million, as -suggested by tests using an accurate frequency counter. The -DCNET implementation polls the receiver every thirty seconds -and tracks the time messages as long as they are available, -but retains the last received message for later inspection, -if desired. In addition, if the time messages are lost the -system continues to follow the information in the last -message. - -Summary and Conclusions - -The above analysis indicates that logical clocks in -neighboring physical hosts can be synchronized using -ordinary local-network routing update messages, so long as -the oscillator drift rates are stable and do not differ -radically. A multiple-host network can readily be -synchronized so long as each pair of neighboring hosts can, -although this can require rather long settling times. Here, -two hosts are assumed synchronized when the offsets between -their respective logical clocks can be calculated to a -precision of the order of a millisecond. - -Delay and offset variances along internet paths are likely -to be so large as to make the technique described above -impractical, at least if millisecond accuracy is to be -preserved. The present plan of installing radio clocks in -the internet gateways appears to be the most sensible -alternative. The gateways thus form an attractive time -reference for the hosts on the attached local networks. The -gateways themselves could include the offsets between their -own clocks in Gateway-Gateway Protocol (GGP) routing update -messages, if not all of them were equipped with NBS radio -clocks, and could conveniently provide this information in -GGP echo messages to the local network hosts. In order for - -Time Synchronization in DCNET Hosts PAGE 8 - - - -this to be most effective, the timestamping mechanism used -by the gateways (and hosts, of course) should be implemented -as close to the network interface driver as possible, -preferably by the driver itself. - -A local-network host can synchronize its logical clock to a -gateway by a mechanism suggested by the DCNET routing update -procedure. The host sends a GGP echo packet timestamped -with its logical clock to a gateway. The gateway timestamps -it with its own logical clock upon arrival and again when it -is retransmitted to the host. The local host uses these -three timestamps, together with the time of arrival of the -reply packet, to compute the delay and offset as described -above. The use of three timestamps in the GGP echo packet -allows the host to compensate for the internal delay within -the gateway, if significant. - -References - -1. COMSAT Laboratories Quarterly Progress Reports. Stay - tuned. - -2. Davies, K. Ionospheric Radio Propagation. NBS - Monograph 80, National Bureau of Standards, Washington, - DC, 1966. - - - diff --git a/text/ien/ien174.txt b/text/ien/ien174.txt deleted file mode 100644 index ab7199a4..00000000 --- a/text/ien/ien174.txt +++ /dev/null @@ -1,474 +0,0 @@ - IEN 174 - -International Telegraph and Telephone Com VII-No.____________ - Consultative Committee - (CCITT) - - - Period 1981-1984 Original: English - -Question: 4/VII Date: 1981 February 12 - - - - STUDY GROUP VII - CONTRIBUTION NO. - - - -SOURCE: United States of America - -TITLE: Private Network DTE Addressing - - - -1. INTRODUCTION - - There is a need to allow interoperation between DTE's connected to a - private data network and DTE's connected to or accessed through a - public data network. The number and sizes of private data networks - are increasing, and further standardization in this area is urgently - needed. - - The scope of this activity is to propose a standard addressing scheme - to facilitate interoperation between DTE's in this environment. - - This document discusses several alternative addressing mechanisms to - identify user devices connected to private networks. The Annex - contains a specific proposal for one alternative which seems to meet - the objectives outlined below. - -2. OBJECTIVES - - The private network DTE addressing method chosen should satisfy the - following objectives: - - - Common DTE's which conform to current packet switching standards - should be able to operate between private and public data networks - without modification. - - - Impact on public data networks in countries which do not allow - private data networks should be avoided. - -IEN 174 Page 2 - - - -3. ALTERNATIVES - - 3.1 Shared Address Space. Individual public data networks may - allocate a portion of their X.121 address space to interconnected - private networks, by subscription agreement. - - 3.2 Extended X.121 Addressing. Public data network X.121 addresses - may be extended by providing additional address fields in the CALL - REQUEST packet. These fields could be contained within the - facilities field or within the call user data field. - - 3.3 Second Dial Tone. The call may be established to the interface - between a public network and the private network using a normal CALL - REQUEST packet. The call may then be extended either using a - following special CALL REQUEST packet or by call request information - contained in subsequent DATA packets. - - 3.4 Private Network Identification Code. A single private network - DNIC may be allocated in each country which allows private networks. - This DNIC would be shared among all private networks having public - network connections in that country. The remaining ten digits of the - DTE numbering space for that DNIC would consist of a Private Network - Identification Code (PNIC) followed by a network terminal number - (NTN). - -4. CONSIDERATIONS - - 4.1 Shared Address Space. This approach has no impact on countries - which do not allow private networks and has no impact on X.121 - numbering. However, it may consume large amounts of address space in - public networks, for example, if a private network supports a large - number of terminals, or if a private network is directly connected to - more than one public data network. - - 4.2 Extended X.121 Addressing. This alternative would consume - potentially limited space in the facilities field or would require - allocation of the call user data field. Both current DTE - implementations and public data networks in countries not allowing - private networks would be impacted. - - 4.3 Second Dial Tone. For this approach, the user must know how to - route all calls, and must construct a non-standard CALL REQUEST - packet or specially formatted call request data in DATA packets. - This impacts both current DTE implementations and public networks in - countries not allowing private networks. - - 4.4 Private Network Identification Code (PNIC). Using this - approach, the common private network DNIC may be used to specify the - country for interconnection, and PNIC and NTN addresses may be - -IEN 174 Page 3 - - - - consistent between multiple public network interconnections. Neither - existing DTE implementations nor public networks in countries not - permitting private networks are affected. Figures 1 and 2 illustrate - this. - - In Figure 1 an originating DTE on a private network placing a call to - a normal DTE on a destination public data network requires no - modification in either DTE, the transit public network, or the - destination public network. The called and calling DTE addresses - both conform to X.121. The calling address is composed of the shared - private DNIC of the country of the originating public network, - followed by the PNIC and the NTN. - - ORIG --> PRIVATE --> ORIG --> TRANSIT --> DEST --> DEST - DTE NETWORK PDN PDN PDN DTE - - - Figure 1 - - In Figure 2, an originating DTE on a public network places a call to - a DTE on a private network which is interconnected through another - public data network. This requires no modification to either DTE, - the transit public network, or the originating public network. The - called and calling DTE addresses both conform to X.121. The called - address is composed of the shared private DNIC of the country of the - destination public network, followed by the PNIC and the NTN. - - ORIG --> ORIG --> TRANSIT --> DEST --> PRIVATE --> DEST - DTE PDN PDN PDN NETWORK DTE - - Figure 2 - - Other combinations are possible, such as communication between DTE's, - each on a separate private network, by means of one or more public - data networks. - -5. CONCLUSIONS - - The shared address space and the private network identification code - approaches meet the basic objectives outlined above. Each has - attributes that may make it more attractive for specific situations, - taking into account characteristics such as the size of the private - network. Both approaches should be provided within the family of - CCITT Recommendations. - -IEN 174 Page 4 - - - - ANNEX - -Draft Recommendation X.12x - - - INTERNATIONAL NUMBERING PLAN FOR PRIVATE DATA NETWORKS - - -The purpose of this International Numbering Plan is to facilitate the -introduction of private data networks and provide for their interworking -on a worldwide basis. - - 1. Design considerations - - The design considerations that form the basis of this Plan are as - follows: - - 1.1 There could be a large number of private data networks in a - country*; - - 1.2 Where a number of private data networks are to be established - in a country*, it should not be mandatory to integrate the - numbering plans of the various networks; - - 1.3 The International Numbering Plan should permit the - identification of a called country* as well as a specific private - data network in that country*; - - 1.4 The number of digits comprising the code used to identify a - country* should be the same for all countries*; - - 1.5 The number of digits comprising the code used to identify a - private data network should be inversely related to the number of - data terminals to be suported on the private data network, - resulting in efficient use of the numbering space; - - 1.6 A network data number assigned to a data terminal should be - unique within a particular private network. This network data - number should form part of the international data number which - should also be unique on a worldwide basis; - - 1.7 The number of digits to be used in an international data - number should be governed by national and international - requirements but a reasonable limit on the overall number of - digits should be imposed; - - 1.8 The Numbering Plan should make provision for the interworking - of data terminals on private data networks with data terminals on - public data, telephone, and telex networks; - ----------------- - * Country or geographical area. - -IEN 174 Page 5 - - - - Note - The term "telex" employed in this Recommendation, includes - TWX networks. - - 1.9 The International Numbering Plan should provide for - substantial spare capacity to accommodate future requirements; - - 2. Characteristics and applications of the Numbering Plan - - 2.1 Number system - - 2.1.1 The 10 digit numeric character set 0-9 should be used - for numbers (or addresses) assigned to data terminals on - private data networks. This principle should apply to both - network data numbers and international data numbers. - - 2.1.2 Use of the above number system will make it possible for - data terminals on private data networks to interwork with data - terminals on public data, telephone, and telex networks. - - 2.2 Data network identification codes - - 2.2.1 A data network identification code (DNIC) should be - assigned to groups of private data networks within a country*. - - 2.2.2 All data network identification codes (DNIC) should - consist of four digits. The first three digits should always - identify a country* and could be regarded as a data country* - code (DCC). The fourth digit should identify a specific group - of private data networks within a country*. - - 2.2.3 Each country* should be assigned at least one 3-digit - data country* code (DCC) in accordance with Recommendation - X.121. The data country* code (DCC) in conjunction with a - specific fourth digit may identify a group of private data - networks. The format for data network identification codes - (DNIC) should be as indicated in Figure 1/X.12x. - -IEN 174 Page 6 - - - - +---------Data network identification code (DNIC) - | - +------------+ - | Z X X |X | - +---------+--+ - | | - | +----Private Network Group digit - | - +----------Data country code (DCC) - - X - denotes any digit from 0 through 9 - - Z - denotes any digit from 2 through 7 as indicated in 2.2.4 - - TABLE 1/X.12x - First digit of data - network identification code - - 0 - - 1 - Reserved - - 2 - - 3 - - 4 - For data network identification codes (DNIC) - 5 - - 6 - - 7 - - - 8 - For interworking with telex networks - 9 - For interworking with telephone networks - - - Note 1 - The allocation of codes for non-zoned services, such - as the marine satellite services, is for further study. The - following points could be considered: - - - select a data country code (DCC) in each zone to indicate - the location, or - - - use an escape DNIC such as 11XX. - - Note 2 - Details on the Numbering Plan aspects of interworking - between private data networks and public telephone and telex - networks will be given in another Recommendation. - -IEN 174 Page 7 - - - - 2.2.6 The assignment of data country codes (DCC) is to be - administered by the CCITT. The assignment of private network - group digits will be made nationally and the CCITT Secretariat - notified. - - Assignments by the Director of the CCITT of data country* codes - (DCC) as well as assignments by countries of the private - network group digits will be published in the Operational - Bulletin of the International Telecommunication Union. - - 2.3 Private network identification codes - - 2.3.1 A private network identification code (PNIC) should be - assigned to each private data network contained within a group - of private networks identified by a specific DNIC. - - 2.3.2 The first digit of the private network identification - code (PNIC) indicates the total number of digits comprising the - private network identification code (PNIC). In the system of - private network identification codes, the first digit of such - codes should be in accordance with Table 2/X.12x. - - TABLE 2/X.12x - Format of private network - identification code and national terminal number - - Maximum Number - First Digit of Networks - of PNIC PNIC + NTN per DNIC - ------- ---------- -------- - - 0 - 1 reserved - 2 2X + 8 digit NTN maximum 10 - 3 3XX + 7 digit NTN maximum 100 - 4 4XXX + 6 digit NTN maximum 1,000 - 5 5XXXX + 5 digit NTN maximum 10,000 - 6 6XXXXX + 4 digit NTN maximum 100,000 - 7 - 8 reserved - 9 - - NTN - denotes network terminal number - X - denotes any digit from 0 through 9 - - - 2.3.3 Should a country have more private data networks than - can be grouped under one DNIC, another DNIC may be allocated - for a new group of private data networks. - - 2.3.4 The assignment of private network identification codes - is to be administered nationally. - -IEN 174 Page 8 - - - - 2.4 International data number - - 2.4.1 A data terminal on a private data network when called - from another network should be addressed by its international - data number. Likewise, when a data terminal on a private data - network calls a data terminal on any other network, the called - data terminal should be addressed by its international data - number. The international data number for a data terminal on a - private data network should consist of the data network - identification code (DNIC) of the appropriate private network - group, followed by the private network identification code - (PNIC), followed by the network terminal number (NTN); i.e., - international data number = DNIC + PNIC + NTN. - - The network terminal number (NTN) should consist of all the - digits necessary to uniquely identify the data terminal within - the serving network and should not include any prefix (or - access code) that might be employed for such calling. - - 2.5 Maximum number of digits - - 2.5.1 International data numbers could be of different lengths - but should not consist of more than 14 digits. - - Note - The limit of 14 digits specified above applies - exclusively to the address information. Adequate register - capacity should be made available at data switching exchanges - to accommodate the above address digits as well as any - additional digits that might be introduced for signalling, or - other purposes. - - 2.6 Prefix - - 2.6.1 For outgoing calls from a private data network, a prefix - (or access code) would generally be required to access - appropriate facilities for network interworking. The - composition of this prefix is a network matter as the prefix - does not form part of the international data number. However, - the possible need to accommodate such a prefix with regard to - digit register capacity in the calling network should be noted. - - 2.7 Number analysis - calls between data networks - - 2.7.1 In the case of calls between data networks, provision - should be made in originating networks to interpret the first - three digits of the international data number. These digits - constitute the data country* code (DCC) component of the data - network identification code (DNIC) and identify the terminal - country*. This information may be required in the originating - network for routing purposes. - -IEN 174 Page 9 - - - - 2.7.2 In originating networks, it might also be necessary to - interpret the fourth digit, of a DNIC. Such interpretation may - provide the identity of a specific public data network in a - country* where several public data network are in service. - This information might be required for the selection of - specific routes to called public data networks. - - 2.7.3 In networks connected to private data networks, it is - necessary to interpret the private network identification code - (PNIC). Such interpretation provides the identity of a - specific private data network in a country* where private data - networks are in service. This information is required for the - selection of specific routes to called private data networks. - - 2.7.4 Networks receiving calls for private data networks - should receive the complete international data number including - the data network identification code (DNIC). However, where a - country* of destination indicates that it does not wish to - receive the data country* code (DCC) component of the DNIC, - arrangements should be made to suppress the DCC. - - 2.7.5 In transit countries*, the complete international data - number including the data network identification code (DNIC) - must always be received. Interpretation of the first three - digits would identify the called country*. Interpretation of - the fourth digit would identify a specific data network, a - group of private data networks, or a service in the called - country. Interpretation of the fourth digit might be required - for billing purposes or for route selection beyond the transit - country*. - - 2.7.6 Where a data call is to be routed beyond a transit - country* through a second transit country*, the complete - international data number, including the data network - identification code (DNIC) should always be sent to the second - transit country*. Where the data call is to be routed by a - transit country* to the country* of destination, the - arrangements indicated in 2.6.4 above should apply. - - 2.8 Directories and written international data number - representation - - 2.8.1 Directories for private data networks should include - information on the procedures to be followed for making - outgoing data calls. A diagram could assist the customer in - these procedures. - - 2.8.2 With regard to the publication of international data - numbers on letterheads or other written material, it is - recommended that the network terminal number (NTN) and private - network identification code (PNIC) should be easily - -IEN 174 Page 10 - - - - distinguished within the international number, i.e., that there - be a space between the 4-digit DNIC, the PNIC, and the network - terminal number (NTN). - diff --git a/text/ien/ien175.txt b/text/ien/ien175.txt deleted file mode 100644 index d9bf8a82..00000000 --- a/text/ien/ien175.txt +++ /dev/null @@ -1,1567 +0,0 @@ - - - - - J. Postel -IEN 175 ISI - 13 March 1981 - - - - Internet Meeting Notes -- 28-29-30 January 1981 - - - - -I. WELCOME - - The meeting was held at USC Information Sciences Institute. The host - was Jon Postel. Jon opened the meeting and gave the usual - explanations about the arrangements. - - Vint Cerf extended the welcome and called special attention to the - participation of representatives from CSNET, Canada, and Germany. - -II. OBJECTIVES - - Vint Cerf described the main objective of the meeting to be to put - issues on the table. Problems could be resolved by subsequent - arrangements between ARPA and the contractors. In particular, the - topics of performance, addressing, and documentation are of special - interest. - -III. STATUS REPORTS - - A. UCLA - - Charley Kline gave a report on the activities at UCLA. Bob Braden - from the UCLA Computer Center is on a one year visit to UCL. - Charley is involved in a research project in the Computer Science - Department. This report is about the work Charley is involved in. - UCLA is building a system called LOCUS. It is based on Unix and a - ring network. The ringnet hardware is the LNI developed by UCI - and modified by MIT. A UCLA developed private protocol is used on - the ring. The current work is on the distributed operating - system. The goal is for the users of the system and for remote - hosts to see the collection of hosts and the ring net as one - system. The most recent effort is on file system aspects. Very - good results have been obtained yielding essentially equal access - times for local and remote files. - - B. UCL - - Peter Kirstein gave most of the presentation with some help from - Ron Jones. Peter noted that with Bob Braden visiting at UCL use - of the UCLA 3033 from London has increased and the service is - - -Postel [Page 1] - - - IEN 175 -Internet Meeting Notes - - - - quite good. However, he has observed random outages of line 77 - lasting 5 to 15 minutes several times per week. Bob has installed - echo servers both at the TCP and IP levels at UCLA for use with - UCL measurements and tests. Peter described UCL's work on: (1) a - protocol converter for service between SATNET and SRCNET for - terminal access, SRCNET is an X.25 network; (2) a cambridge ring - at UCL where terminal access is now working via UMCZ80 interfaces; - (3) a local message system is up on the UCL Unix using the MMDF - system developed by Dave Crocker; (4) the NIFTP will be upgraded - to match the latest document; and (5) UCL has worked over the TIU - TCP and made some parameter changes and installed a dynamic - retransmission timeout procedure, also MOS was revised, and a - document is available on this. - - C. RSRE - - John Laws gave the RSRE report. - - Gateway Status: The line between the UCL gateway and the RSRE - gateway, known as net 35, was upgraded from 4.8Kb/s to 9.6Kb/s in - November 1980. The gateway machine is still an LSI-11. Local - performance measurements on the gateway were instrumented by - writing a process timer for the MOS system which showed how long - and how often individual processes ran for and the total time - spent idling in the scheduler. These measurements showed that the - gateway did handle 50Kb/s lines and would give the expected - throughput on these lines for large data packets ( >128 user data - bytes). The switching capability was 50 packets per second using - the RSRE line cards. The time taken to switch packets from one - interface to another was 4.8msecs. This includes use of hashing - tables to determine the route of the packets. Although - fragmentation has been implemented and tested as reported at the - last meeting no use has yet been made of this facility. Source - routing code awaits a final imprimatur of the doctrine to be - employed. - - Service Availability: A comparison between ARPANET availability - from the PPSN for one month periods before the last meeting and - this meeting show that although the outages total a similar total - time the ones for the Nov-Dec 80 period are mostly due to - developments in the UCL gateway rather than to SATNET as was the - case for the Aug-Sep 80 period. Two points are worth noting: (1) - Some of the longer outages were due to debuging sessions on the - UCL gateway. These are difficult because they require personnel - at RSRE, UCL and BBN to be available simultaneously. They often - require loading software at the RSRE gateway for the tests and - reloading software after the tests. (2) The large number of short - outages were traced to resetting of the Host-SIMP interface by the - - -Postel [Page 2] - - - IEN 175 -Internet Meeting Notes - - - - UCL gateway caused by shortage of buffers. Ginny alleviated this - to a large extent in January by removing code from the gateway. - However if UCL and RSRE are heavily using the gateway we can still - get up to 20 resets a day. - - Local Network Status: The PPSN (net 25) now has three network - access protocols available to users, these are datagram type (with - multi-address), virtual call (PPSN type with multi-address), and - X.25 virtual call. We have developed a flexible evaluation host - both for use on the PPSN and the British Post Office PSS network - which we hope to be connected to in February. This evaluation - host supports 2 DTEs and includes a command console for setting up - multiple calls from one terminal, traffic generators, and a - measurement package. The protocols employed are the Network - Independent Transport Service (NITS) [formerly "Yellow Book"], and - X.25 level 3 with BPO options and the RSRE X.25 level 2 line - units. - - TCP and IP: The CORAL implementation of IP with fragmentation and - reassembly is complete. The design for the CORAL TCP including - full state machine representation is complete and coding is in - progress. We have obviously gained a lot of useful experience for - this from using the Mathis TCP. Besides TCP measurements we now - have the capability to perform measurements of IP using echoers on - ISIE and EDN Unix as well as GGP echo packets. The IP - measurements package has the capability to make single round trip - measurements at a user settable protocol type, packet length, and - packet rate of 1 to 50 packets per second. - - Action Items from RSRE: - - 1. Dynamic timeouts for retransmission. - - 2. Flag bit for copied options in IP fragments. - - 3. Specification for strict source routing. - - 4. Standard addresses for Echo, Discard, and - Character Generator servers. - - 5. Techniques for preventing silly window syndrome - (name due to Dave Clark). - - 6. No changes to addressing for a while. - - - - - - -Postel [Page 3] - - - IEN 175 -Internet Meeting Notes - - - - D. SRI - - Holly Nelson reported that the TIU with fragmentation and - reassembly is in progress, that a new version of the port expander - program was delivered, that a measurement host being installed is - version 7 Unix with IP separate from TCP, and that Ron Kunzelman - will be leaving SRI in mid February. - - E. NDRE - - Yngvar Lundh reported that progress at NDRE continues to be - hampered by the lack of people. In spite of this, progress is - being made and speech now runs in the local net. Paal Spilling - has returned to NDRE after a one year visit to SRI. Paal will be - trying speech experiments with Lincoln. - - The agreement with the Norwegian Telecommunications Authority is - being renegotiated for 2-3 years. NDRE has had discussions with - the German group. - - Action Items from NDRE: - - 1. A HDLC port on the SATNET gateway is needed. - - 2. ARPANET availability must be improved. - - F. MITRE - - Anita Skelton discussed the development by MITRE of a Z8000 based - TCP. The program is written in C and cross compiled on Unix. The - system is a modified C MOS. The TCP is about 600 lines of C code. - This TCP has been tested talking to itself, but not against any - other TCP. The data rate measured is 350 Kb/sec. Later in the - meeting Steve Holmgren gave a presentation on this. - - G. MIT - - Dave Clark described developments at MIT. Planning for a computer - network architecture at MIT is being formulated in terms of a - system involving 52 buildings and 10,000 hosts. As Dave noted, he - reported again that the version 2 ring net (10 Mb/s) is almost - working. The development is a joint project with PROTEON. Some - interfaces are prototyped in multiwire. The use of IP and TFTP - based services is spreading. A Unix on the CHAOS net uses IP to - communicate with a Unix on the Ring net. Fragmentation and - Reassembly is used widely in the MIT environment. MIT did its own - reworking of MOS -- this time to make it easy to bind with - programs from other source languages. - - -Postel [Page 4] - - - IEN 175 -Internet Meeting Notes - - - - On the multics front Dave reports that IP/TCP was used over a HASP - connection on a 9.6 Kb/s line between Cambridge and Phoenix with a - round trip time of 8 seconds. Various investigations suggest - hosts should be careful about also being gateways, for example, - the gateway echo traffic could be more than the host could handle. - In one experiment a routing loop was detected and datagrams would - have looped forever except for Multics decrementing the time to - live. Multics is being connected to TYMNET and TELENET, initially - as a server for remote terminal access. A NIFTP server is being - developed, and a MTP server is up on both NCP and TCP for RFC 772 - style mail. - - The TOPS20 system, MIT-XX, still has trouble with the IP - implementation crashing the system, and the performance is poor - otherwise. - - Dave put together a minimal IP/TCP/Telnet in BCPL for an Alto. - The total package is about 3000 words of code. - - The Swallow Distributed Computing Project is basing its - communication primitives on IP/UDP. A C-30 IMP is scheduled for - delivery to MIT in early February. - - Action Items from MIT: - - 1. A maximum segment size TCP option is needed. - - H. Lincoln Laboratory - - Jim Forgie described the work Lincoln has done on the Voice - Terminal (VT) and the ST Gateway. Several VTs now exist and are - functioning on the LEXNET. Two modes of speech data are supported - 64Kb/s PCM and 2.4Kb/s LPC. A ST gateway is partially implemented - in an 11/45 running EPOS and experiments are being done via the - ARPANET with ISI. The gateway currently supports only the - point-to-point ports of the ST protocol (no conference support - yet). The measured gateway throughput is about 100 - packets/second. The next few milestones on the Lincoln schedule - are: - - 1. Move the gateway from the 11/45 to the 11/44. - - 2. Demo speech over the WBCNET. - - 3. Deliver a LEXNET and VTs to ISI. - - 4. Add source routing to ST and the gateway. - - - -Postel [Page 5] - - - IEN 175 -Internet Meeting Notes - - - - 5. Add conferencing features. - - I. Linkabit - - Estil Hoversten discussed Linkabit's role in the support for - SATNET and WBCNET. Linkabit provides clever modems to make the - most of the channel. Estil pointed out that when Germany and - Italy join the SATNET the channel will be more shared and less - capacity will be available to existing communication partners. - For the WBCNET Estil reviewed the state of installation. All the - equipment is in place at ISI and LL, but the RF and power - equipment needs tuning up. The DCEC and SRI equipment should be - fully in place before the next IN MTG. Something called "Remote - Control and Alarming" is needed to make the operation legal. The - FCC requires that an operator (FCC licensed) be able to control - the transmitter (shut it off) if something goes wrong. Western - Union is installing the remote control mechanism so their operator - in New Jersey can satisfy this requirement. - - Estil also mentioned that Linkabit has some communication between - two sites in San Diego several miles apart to support terminal - access for terminals at one site to TOPS20s at the other site. - They use dumb multiplexors and a 45 Mb/s microwave link. Also - Linkabit is part of M/A-COM which is planning to link its four - major sites via a satellite channel in the 800 Kb/s to Mb/s range. - - J. ISI - - Jon Postel reported on the activities at ISI. The Internet - Project has three areas of interest: Protocol Verification, - Protocol Design, and Protocol Applications. In the verification - area Carl Sunshine made a presentation later in the meeting. In - the design area Danny Cohen has led our efforts primarily in - discussion of addressing issues (see IEN 165). In the application - area we are developing two computer mail applications: the MPM - and the MTP. The MPM is a multimedia mail delivery system - following the specification of RFC 759. This is now working on - TOPS20, and was demonstrated at the end of the meeting. The MTP - is a text only mail server for multinetwork operation and follows - the specification of RFC 772. This is partially implemented on - TOPS20. It can now accept mail via TCP connections and leave it - for distribution via mailer and NCP connections. MTP was - demonstrated at the end of the meeting. Another program was - developed to better understand using TCP and can be used as a user - Telnet. This program is called TT. A description was distributed - at the meeting and TT was demonstrated at the end of the meeting. - - Other work at ISI included the development and installation of - - -Postel [Page 6] - - - IEN 175 -Internet Meeting Notes - - - - code in the TOPS20s to guard against sending the 9th outstanding - message to the same destination in the ARPANET and thus be blocked - by the IMP. This has been installed in the five TOPS20s at ISI. - The PDP-11 which is the front end for the Penguin printer has been - modified to also route internet datagrams to other hosts on the - ARPANET or the local Ethernet. The WBC project has participated - with Lincoln in the Speech experiments reported on by Lincoln. - Also the WBC project has interfaced a radio clock to the speech - host so that the operating system (EPOS) gets the time from the - radio clock. - - K. DoD - - Ray McFarland mentioned that questions are being raised about the - Internet Addressing and its implications for Network - Architectures, and on the relationship between Internet - Architectures and Distributed Processing Systems. Later in the - meeting Ken Shotting discussed his work on specification of IP. - - L. DCEC - - Ed Cain gave the report on DCEC activities. The hosts in the EDN - now do reassembly. There are two gateway programs. The old - gateway does fragmentation, talks GGP, and sends in CMCC reports. - The new gateway performs well. There was some confusion about GGP - routing messages. - - It seems that a type 11 message was used in the BBN-built gateways - to avoid confusing a new routing message format with the one - documented in IEN 109 (How to Build a Gateway). The DCEC gateway - used the type 11 message in order to exchange routing information - with its neighbors. However, since the agreed-upon resolution is - to modify IEN 109 to show the new format, the BBN-built gateways - have been gradually reverting back to the new-format type 1 - message. During the transition, the DCEC gateway has kept track - of which gateways use the two routing types, and serves as a - routing "bridge" between the two communities. The right type code - for routing messages is Type 1, and no Type 11 messages should be - used anymore. - - DCEC also implements the security and precedence features of IP. - A TIU for AUTODIN II is being developed by DCEC, and an - implementation of MTP is in progress. DCEC coordinated a seminar - on IP and TCP at NBS in November which 405 people attended. - - - - - - -Postel [Page 7] - - - IEN 175 -Internet Meeting Notes - - - - Action Items from DCEC: - - 1. How do we provide testing facilities to companies that - develop TCP products? - - 2. How do we control transit traffic? - - M. COMSAT - - Dave Mills gave a brief review of the configuration at COMSAT. - The most important new development is the idea of virtual hosts - which are processes with internet address and move from one real - host to another within the DCNET. Another idea being developed is - the maintenance of synchronized clocks in the hosts of the DCNET. - This is done with time stamps in routing update messages between - the hosts. Dave reported some interesting results about clocks - and time variations that came to light in this work (see IEN 173). - Also at COMSAT a MTP mail server is working. The FAX program now - handles multipage documents. NIFTP works between COMSAT and ISIE - -- 5 million bytes of RFCs and IENs were transferred. The - INTELPOST project conversion to IP/TCP continues. A copy of the - DCNET software has been installed at FORD research center at - Dearborn with a 1200 baud dial up connection between Dearborn and - Washington. - - N. BBN - - Jack Haverty reported on the development of three new TCPs: for - the TAC, the HP3000, and the VAX Unix. In the TAC, the TCP - connection opening and closing has been completed, and work - continues on the data handling code. In the HP3000 version the - TCP is done and work is in progress on Telnet while waiting for a - hardware interface. The VAX Unix (and C70) version is passing - packets but work on TCP continues. The work on the VAN gateway - (ARPANET/TELENET) continues; testing of X.25 level 3 is being done - with an Applied Data Communications Pro/Tester. The TIP Login - design is just about done; it is being designed as a special case - of resource allocation. BBN is modifying CMOS for use in the C50 - environment. The CMCC data has shown some anomalous behavior. - For example short periods (5-10 minutes) with a high percentage of - dropped datagrams and at the same time NCC data showing very busy - IMP's. Hard to track this down -- better fault isolation tools - are needed. - - Ginny Strazisar reported on the developments in the BBN-built - gateways. A new version of the gateway code was distributed to - all sites (except Ft. Bragg) which will do fragmentation (but not - with options). The gateway at UCL was modified to only use small - - -Postel [Page 8] - - - IEN 175 -Internet Meeting Notes - - - - (SATNET size) buffers and remove local operator support to improve - performance. The fragmentation routine will send on fragments as - large as the network can handle. Work is in progress to change to - a routing procedure which detects partitioned networks. - - Dale McNeill reported on SATNET. After several months of poor - performance, on November 6 there was a significant decrease in - packets received with checksum errors on the SATNET channel. - Performance is consistent with a change in the BER from about - 10**-4 to about 10**-6. No information on the potential cause has - been given by INTELSAT. In any case, SATNET channel protocol - stability and the ARPANET direct connection via SATNET performance - (ARPANET line 77 to the London TIP) are much improved. The - US-Norway ARPANET satellite circuit (ARPANET line 41 between the - SDAC IMP and the NORSAR TIP), which was changed last spring from - commercially-controlled to military-controlled, continues to - provide poor service. This line is composed of a military - satellite hop and a number of commercial circuits. Hence, NDRE - gateway to UCL gateway traffic is still disallowed in the Tanum - Satellite IMP, thereby breaking internetwork traffic between the - two gateway sites. A bug in the Host-SATNET protocol was found, - and a fix was installed in the Satellite IMPs. The same fix needs - to be inserted in the gateway to provide complete protection in - the protocol. A major milestone was passed in MATNET, the secure - shipboard copy of SATNET being built for the Department of the - Navy; namely, a Satellite IMP successfully transmitted packets - through a Navy FLTSAT satellite for the first time. The test - setup was at the plant facility of E-Systems, ECI Division, where - preliminary integration is being done between the network - controllers and the radio equipment. - - Action Items from BBN: - - 1. Rubber EOL and Buffer Size has implementation impact in - TAC. - - O. ARPA - - Vint Cerf reported that the ARPANET switched over to 96-bit - headers on January 1st. Bill Carlson is leaving ARPA to join - Western Digital and plans to build ADA machines. Vint mentioned a - project at CCNY which is encoding video using adaptive delta - modulation. ARPA plans to make a pair of these devices available - to ISI and DCEC in July 1981. ARPA plans to replace all the 316 - TIPS by TACs plus C30 IMPs. TIP Login will be used for access - control. Germany and Italy are likely to join SATNET soon, Canada - is in the discussion stage. - - - -Postel [Page 9] - - - IEN 175 -Internet Meeting Notes - - - - P. CSNET - - Dave Farber gave a brief overview of CSNET. The idea is to - provide network services to a group of university computer science - departments. It is a 5 year NSF grant. The contractors are - University of Wisconsin, University of Utah, Purdue University, - The RAND Corporation, and 9 others. There is a steering committee - (Chair Bill Kerns, NSF) and a technical committee (Chair Dave - Farber, UDEL). CSNET will use Telenet, ARPANET, and telephones to - connect the universities. The services to be provided are: - Computer Mail, File Transfer, Terminal Access, and Distributed - Processing Applications. More information is available from Dave - (FARBER@UDEL). - - Q. DTI - - Gary Grossman gave an overview of DTI's work on a front end for - the WWMCCS H6000 hosts. The INFE (interim network front end) has - been up for some time, and has had some testing. It implements - the January 80 IP and TCP and has been tested with the EDN - systems. DTI is now working on the COS/NFE which is to be - multi-level secure and will be based on DTI's HUB (TM) operating - system. The COS/NFE is to be verified by SDC. - - R. NAVELEX - - Frank Deckelman described the interests and activities of NAVELEX - Code 330. There are four areas: DBMS, Distributed Processing, - Decision Aids, and Networking. In Networking the focus is on: - Global networks (e.g., MATNET), local networks (e.g., CCN - uses - Ungerman-Bass hardware), and C2 work stations (multimedia and AI). - One current program that involves all four areas of responsibility - is the ACCAT at NOSC and the Remote Site Modules at NPS, FNOC, - CINCPACFLT, NRL, and other sites. - - S. XEROX - - John Shoch gave a brief status report on networking at XEROX. - There are between 30 and 40 networks in operation, connected with - 20 to 30 gateways. The new 10 Mb Ethernet is up. The XEROX - series 8000 products are based on the Ethernet. There is a Print - Server, a File Server, and a Communication Server (gateway), as - well as work stations. John also mentioned that a paper on - "Measured Performance of the Ethernet Local Network" appears in - the December 1980 issue of the Communications of the ACM. - - - - - -Postel [Page 10] - - - IEN 175 -Internet Meeting Notes - - - -IV. ACTION ITEMS - - A. The problem reinitializing UCL gateway was resolved. - - B. The design notes on the VAX, HP3000, and TAC TCPs were done [see - IENs 166,167,168]. - - C. The memo on IP Errors and GGP style messages was distributed in - DRAFT form. - - D. The demonstration of the SRI Name Server was postponed - indefinitely. - - E. The MTP was demonstrated at the meeting. - -V . PROTOCOL SPECIFICATION AND VERIFICATION - - A. Overview - - Carl Sunshine gave a well-received presentation on formal models - for protocol analysis. Carl presented a basic model of a protocol - and identified the aspects that need to be specified and verified. - Then he described the methods for specifying protocols and - identified particular programs or techniques that implement each - method. Finally, Carl reviewed the verification methods and again - identified particular systems which implement each method. - - The specification methods are: - - Programs - inductive assertions - State Machines - FSA - Abstract Machines - Petri Nets - Sequence Expressions - - The verification methods are: - - Program verification - State Exploration - Structural Induction - Symbolic Execution - Design Rules - - A DRAFT version of a report on "Formal Modeling of Communication - Protocols" was distributed. The final version is ISI RR-81-89. - - - -Postel [Page 11] - - - IEN 175 -Internet Meeting Notes - - - - B. Three Way Handshake - - Danny Schwabe presented an analysis of the three way handshake - made in the SPEX language. A description of a protocol in SPEX is - a "spexification." Spexifications can be translated into an - AFFIRM abstract data type. Proofs of properties of this abstract - data type can be done using AFFIRM. The analysis revealed a - possible problem in the three way handshake. As currently - described in the TCP specification (IEN 129), a connection may - become established on one side and potentially may accept data - from a previous incarnation of the connection. This is a very low - probability case and would be quickly detected, but the analysis - showed it was possible in principle. - - The problem is that the document is in error in allowing an ACK to - be accepted before a SYN has been received. - - A DRAFT report "Formal Specification and Verification of a - Connection Establishment Protocol was distributed. - - C. IP Specification - - Ken Shotting described his specification of IP using SRI's HDM and - SPECIAL. Ken broke down IP into several mini-layers to make use - of the methodology. There was some difficulty making assertions - about global behavior since several fields are changed between the - source and destination, e.g., Time-to-Live. This also causes - problems with the checksum field. The order of processing assumed - for various features has an impact on the formal specification. - Ken's evaluation of HDM for protocol analysis is that it provides - good support for developing a hierarchy of abstract functions and - for state machine transitions, but is weak in data representation, - exception handling, and concurrency. Ken's work is documented in - a University of Maryland Technical Report "On the Formal - Specification of Computer Communication Protocols," Computer - Science TR-973, December 1980. - - D. NBS Work - - Jack Haverty gave an overview of the work BBN is doing for the - NBS. The work is being done by Tom Blumer (TPB@BBN-Unix) and - Richard Tenney (RTenney@BBN-Unix). This protocol specification - system is based on a finite state machine model, augmented so that - there are variables, and arbitrary program segments may be - associated with each transition. These program segments are - written in a Pascal-like language. There is a syntax checker for - specifications, a specification editor, a FSM analyzer, a compiler - that produces C and a test generator. - - -Postel [Page 12] - - - IEN 175 -Internet Meeting Notes - - - - For further information contact Tom Blumer or see BBN Report 4581. - - E. DCA Work - - Dave Kaufman reported on the work SDC is doing for DCA. The main - emphasis is on developing complete specifications of existing - protocols based upon the original design intent and upon a set of - specification guidelines being prepared in parallel by SDC. These - guidelines include the following sections: Introduction, Service - Specification, Lower Level Service Specification, Interface - Specifications, Peer Level Mechanism Specification, and Execution - Environment. These sections correspond with the basic protocol - model presented by Sunshine. A distinction is made between the - service specification which is the global view of the service and - the interface specification which is the user/service local - interface. The execution environment section describes protocol - requirements of the operating system (or more correctly of the - protocols runtime environment) such as timers and interprocess - communication. IP is currently being specified according to these - guidelines and during this effort several areas have been - uncovered which require further definition. - - Example areas noted by SDC were: - - 1. Who supplies the "protocol" field for the IP header, IP or - the transport protocol? - - 2. What is the nature of the interaction between IP and GGP? - - 3. Is source routing loose or strict? - - Jack Haverty raised an additional related issue: - - 4. How does IP interact with the local net, on errors, on flow - control,etc.? - - F. NDRE Work - - Yngvar Lundh noted that a graphical technique had been used to - produce an augmented state machine description of TCP for use in - an NDRE implementation effort. - - - - - - - - - -Postel [Page 13] - - - IEN 175 -Internet Meeting Notes - - - -VI. FRONT ENDS - - A. Overview - - Vint Cerf introduced the subject of Front Ends for protocols and - TCP in particular. The idea seems to be that in some cases IP/TCP - etc. may be too complex to put into the existing operating system, - so the protocol modules are put into a small front end machine. - Then there must be a communication procedure between the host and - the front end. This communication procedure is called Host-Front - End protocol (HFP). The argument is that HFP is much simpler for - the host than IP/TCP would be. Note that not everyone shares this - view. - - B. WWMCCS HFP - - Gary Grossman gave a detailed presentation on the HFP developed - for the WWMCCS H6000 machines. DTI has developed a protocol for - use between the host and the front end based on the notions of - "services" and "channels." The lowest level of the HFP is the - link level which provides a single channel with flow and error - control. The function of the link level corresponds to the - functions of an HDLC connection. The middle level is the channel - level. This is the level where separate logical streams appear - and are multiplexed based on logical channel number. At the top - level are services (i.e. applications). Typical services would be - Telnet and FTP. Gary gave quite a bit of detail on the protocol - formats and control procedures. - - Gary also talked about the specification technique used to - describe the HFP. For each message type the following points are - described: function, when sent, sending state (and next state), - receiving state (and action to take), subsequent actions by sender - and receiver. For the service protocols, a specification includes - a "specification" and an "adaptation." The specification gives - the semantics of the fields used and the procedure for - communicating via the channels. The adaptation gives the format - details and any restrictions due to the particular machine - environment. - - DTI and MITRE have done a fair amount of performance testing. The - comparison of an old implementation of NCP in the H6000 versus an - NCP implementation in the Front End show the Front End about 2 to - 1 better in throughput. There are many differences in the two - configurations. Some testing recently showed that from the H6000 - through the FE and over the ARPANET to DTI a data rate of 18Kb/s - was achieved. In local tests, 64Kb/s was measured over the - H6000-->FE-->I path; and with a source and sink in the FE, 84Kb/s - - -Postel [Page 14] - - - IEN 175 -Internet Meeting Notes - - - - was measured for source-->I-->sink. Finally using a "mirror" - program in the FE instead of sending to the IMP, 125Kb/s was - measured for source-->mirror-->sink. An analysis of the CPU time - in the TCP code in the FE revealed that about 20% of the time was - spent on TCP functions and 80% on interprocess communication and - other "system" functions in the monitor. - - Gary noted that details of the HFP are described in DTI report - DTI-80043.C-INFE.18, and DTI-78012.C-INFE.14, and the measurements - are described in the papers "Control Structure Overhead in TCP," - NBS Computer Networking Symposium, May 1980, and "A Performance - Study of a Network Front End," Sixth Data Communication Symposium, - November 1979. - - C. Z8000 - - Steve Holmgren of MITRE described a Z8000 based TCP. The goal is - to provide network communication for very small hosts which might - otherwise be peripheral devices of a computer. The Z8000 actually - supports a Network Access Protocol (NAP). The NAP is a layered - protocol with an option approach. The layers are: link, - transport, service, and user. The option approach allows the - users of the protocol to select the features they need and to - ignore others. - - Steve gave some details of the protocol functions and formats. - The access to the protocol is via a system call style mechanism, - and the user is allowed to pass parameters and select options. - - D. Discussion - - John Shoch said he questioned the desirability of Front Ends, and - wondered, if aside from communication efficiency and pragmatics, - there was a good technical principle for front ends? - - It was noted that we often excuse the current work of computing - checksums by saying we will someday have a checksum instruction in - our machines. Steve Holmgren asked "Why not a TCP instruction?" - - When does a "front end" become an "instruction?" - - - - - - - - - - -Postel [Page 15] - - - IEN 175 -Internet Meeting Notes - - - -VII. PERFORMANCE - - A. Multics - - Dave Clark discussed his measurements of TCP performance in - Multics. Dave described some detailed timing studies made of the - different TCP functions. The IP implementation is 5.3 K - instructions, and the TCP implementation is 9.0 K instructions. - - Dave also discussed throughput in TCP when there is a lot of data - to send (e.g., in file transfers). A problem, previously pointed - out by Dave Mills, can arise where many small segments are sent. - This is due to the receiver reporting additional window each time - a small amount of the data has been processed, and the sender - immediately sending a segment to fit that additional window. Dave - Clark proposes to call this phenomena "Silly Window Syndrome" - (SWS). One way to prevent SWS is for the receiver not to report - new window unless the increase is a reasonable size. The receiver - can acknowledge incoming segments at any time, but limit window - updates to points when a reasonable increase can be made. It is - up to the receiver to decide what is reasonable, perhaps something - like 20% of the total buffer space for this connection. The - sender can also try to stay out of SWS by only sending big - segments and waiting until the window is large enough to allow it. - If the sending user indicates an end of letter then a smaller - segment may be sent. - - Dave suggests that sending a segment with one octet of new data - into a zero window as a probe may lead to SWS. It may be better - to send an octet of old data. - - Dave suggested that a performance measure might be the size of - bursts of segments the net, gateway, or host could handle. For - example, can a gateway handle a burst of 10 datagrams of 576 - octets at the network input speed? Could measures be devised and - feedback control be exercised in terms of bursts? Wild idea - number one: the receiver can tell the sender the maximum burst - size it should send. Wild idea number two: have gateways turn on - a bit in the IP header if they are busy, and have the receiving - hosts integrate this information for use in determining a burst - size to feedback to the source. - - B. UCL - - Ron Jones reported on measurements of datagram traffic between UCL - and ISIE. The source of the traffic was an LSI-11 host. This was - connected to a port expander. The PE was in turn connected to the - UCL Gateway. The UCL Gateway communicates via the Goonhilly SIMP, - - -Postel [Page 16] - - - IEN 175 -Internet Meeting Notes - - - - the SATNET, and the ETAM SIMP, to the BBN Gateway. The BBN - Gateway sends the datagrams through the ARPANET to ISIE. - - Ron had a number of measurements which he described, but interest - focused on the discovery that in some tests from 25% to 90% of the - datagrams were lost between the ETAM SIMP and the BBN Gateway. - Some of the tests showed a significant step in the throughput - graph at the single-packet/multi-packet threshold. - - C. BBN - - BBN believes that the problem originated because the ARPANET - IMP 40 would not accept packets from the BBN gateway fast enough. - The packet loss is manifest as multiple packet retransmissions - from the Etam SIMP to the BBN gateway, until the packet eventually - times out and is discarded in the SIMP. This behavior underscores - two inadequacies in the system. First, the BBN gateway should - discard the packet and send the appropriate message to the Etam - SIMP; the machinery is already present in Host-SATNET protocol to - accommodate this. Second, the Etam SIMP should notify the - Goonhilly SIMP which should notify the UCL gateway that problems - are arising. Unfortunately, a flow control mechanism like source - quenching was never developed within SATNET, although its need has - been known for some time; hence, when packets are dropped in - SATNET, gateways are never informed and therefore cannot generate - internet source quenching messages. - - D. RSRE - - John Laws presented some findings of measurements performed by - Andrew Bates. These are datagram measurements of a single round - trip (at earlier meetings RSRE has reported on TCP measurements of - double round trip times). The source/sink is a TIU connected to - the RSRE gateway. One set of measurements seems to show that the - round trip time to the ETAM SIMP is about 2 seconds with very - little spread, but the round trip time to the BBN Gateway is also - about 2 seconds but with about 25% of the datagrams delayed (a - bimodal Histogram). The measurements were made at different times - of day, and may be due to a difference in the load on SATNET. - - E. CMCC - - David Flood Page told of tracking down the cause of some looping - datagrams. In December the CMCC data showed that in the course of - a day one of the PRNET/ARPANET gateways had processed several - million datagrams. When the people who normally use that gateway - were asked what experiment they were conducting, they replied - "What experiment? We aren't doing anything." Several instances - - -Postel [Page 17] - - - IEN 175 -Internet Meeting Notes - - - - of this incredibly high traffic level in at least two different - PRNET/ARPANET gateways were detected over the next several weeks. - David began investigating and eventually found the cause. - - The loader server that loads the port expanders attached to the - PRNET gateways uses XNET 2.5, with Internet 2.5 headers, to do the - loading. The loader server sends the packets to logical host 15 - (decimal) on the port expanders ARPANET address, which is the - address recognized by the bootstrap (obviously). The last packet - sent by the loader server is the one that says "go" to the - bootstrap; this causes the bootstrap to send out an acknowledgment - and then start up the port expander software. One of the first - things the PE does is to flip the ready line to the IMP. Now if - the acknowledgment from the bootstrap is still in the IMP, and the - IMP sees the ready line down, it will drop the ack (and any other - outstanding packets from that host). So the loader server gets no - ack, and retransmits the "go" command. - - The "go" command arrives at the port expander addressed as before, - i.e. to logical host 15 on the PE; but the PE doesn't have a - logical host 15. It is set to hand off any packets which it - doesn't know how to route to its logical host 0, which is the - gateway; the gateway sees that it is a packet destined for - somewhere on the ARPANET that is not itself, so sends it back out - its ARPANET interface, i.e. to the PE. The PE has the same - trouble as before, so we get a loop. Because the packet is an - Internet 2.5 packet, it does not have a time to live field, so the - packet loops indefinitely until either the PE goes down, the - gateway goes down, or a flood of real packets causes enough - congestion to result in the dropping of the looping packet. - - This didn't happen every time the PE was loaded, because some of - the time, the acknowledgment got out of the IMP fast enough not to - be dropped when the ready line was flipped. It was largely a - matter of luck. - - The problem will disappear either when the new gateway version, - which drops all Internet 2.5 packets, goes into the PRNet - gateways; or when the V4 bootstrap goes into the PEs. In fact I - think the new gateway version may already be in place. Holly did - put a fix in the PE as well, but I'm not sure what it was. One - important point to note is that the port expander is on the - ARPANET side of the gateway, not the PRNet side. - - David says the lesson that should be learned from this is that - more remote access to debugging tools is needed. The key piece of - evidence in solving this problem was provided by a "packet - - - -Postel [Page 18] - - - IEN 175 -Internet Meeting Notes - - - - printer" trace program that could only be run locally at the - gateway/port expander site - which is normally unmanned. - - F. Radio Clocks - - Steve Casner described (actually showed) one of the Radio Clocks. - Since we are about to start doing coordinated measurements of one - way times we must have an agreement on what size and precision of - time stamps to carry around in datagrams and programs. The "no - thought" proposal is 32 bits of milliseconds since 1 January 1980. - Others suggested that we might want more precision later so maybe - we should have micro seconds and more bits. This was not - resolved. - -VIII. WORM PROGRAMS - - John Shoch briefly described an experiment in distributed computing. - Programs were constructed to operate in segments with each segment - allocated to a personal computer. The total program is called a - worm. The basic version of the program simply maintains its - existence. If a segment dies the remaining segments cooperate to - find a free machine, load it with the segment code, and start it - running as part of the worm. John described some of the interesting - things which can go wrong, and ways to prevent them. The experiment - is discussed in more detail in IEN 159. One comment to the internet - group is that this experiment showed the usefulness of - multidestination or group addresses. The conclusion is that with - datagram style communication, high speed local networks, and new - control procedures, the tools are in hand to begin some very - interesting multi-machine applications. - -IX. IP ERRORS - - Jon Postel distributed a draft memo on error reports in IP. The memo - is titled "What every host should know about GGP". The intention is - to use the GGP messages on routing advice and destination dead as a - base and to add a few other messages to cover the host-to-host error - conditions. The discussion focused on whether or not this should - remain part of GGP or be in a separate protocol. From an - implementation point of view there seems to be little difference, - from an administrative point of view it seems to be cleaner for it to - be separate. There were some strong difference of opinions. The - matter was not resolved. - - - - - - - -Postel [Page 19] - - - IEN 175 -Internet Meeting Notes - - - -X. ADDRESSING DISCUSSION - - A. Overview - - Vint Cerf opened the topic with a call for a very general - discussion of the issues and spent some time developing a list of - goals for the the addressing and routing procedures. The goals - were: - - 1. Keep routing simple. - - 2. Keep routing tables small. - - 3. Keep computation costs small. - - 4. Most datagrams should be delivered. - - 5. Use any available connectivity. - - 6. Multidestination delivery. - - 7. Handle mobile hosts. - - 8. Efficiently use constituent networks. - - 9. Support multi-homing. - - 10. Dumb hosts should be included. - - 11. Pantheism should be dealt with. - - 12. Degradation should be automatically fixable. - - 13. The system should scale up. - - 14. The system should be measurable. - - 15. Ability to use hierarchy. - - There was some discussion of these points and it was noted that - some are service specifications while others are "good job" - criteria. - - B. Presentation - - Noel Chiappa described the MIT complex which includes 9 networks - and three major protocol families (IP, PUP, and CHAOS). All these - networks share one "Internetworkly known" network number. Noel - - -Postel [Page 20] - - - IEN 175 -Internet Meeting Notes - - - - listed a number of problems and made some observations. One - possible long term development may be that all hosts are on local - networks and only gateways are attached to long haul networks. - The thrust of Noel's remarks seems to be that things are going to - grow in a complex, but generally hierarchical, way; and any - workable system will have to be prepared to grow, probably by - taking advantage of the structure. - - C. Discussion - - Vint Cerf led a further discussion on addressing. The main focus - was on the tradeoff between a flat address space and a - hierarchical one. In a flat address system there is no relation - between the address and the location, and routing has to be by - central knowledge or broadcast. In a hierarchical address system - the address is composed of fields which identify the location in a - routing tree. - - Vint suggests that we have both in one! Let an address be - composed of two parts: a hierarchical address (called an address) - and a flat address (called an identifier). The address can be - used as a routing guide or hint, but the identifier must match for - a message to be delivered. The identifiers are globally unique - names for hosts and do not change when hosts move. - - There are many questions to be answered in this scheme. For - example, How does source routing work? Or Multi-homing? - -XI. FILE TRANSFER IMPLEMENTATION STATUS - - Vint Cerf took a survey of the implementers present to find out the - status of FTP implementations. There are four different FTP systems - being used: ARPA FTP (RFC 765), AUTODIN II FTP (IEN 101), NIFTP (IEN - 99), and TFTP (IEN 133). The first three use TCP, and the last - (TFTP) uses UDP. - - ARPA FTP - - DCN (COMSAT) now - TOPS20 (BBN) April 81 - EDN-Unix (DCEC) June 81 - Multics (MIT) after June 81 - - AUTODIN II FTP - - BBN-Unix (BBN) now - EDN-Unix (BBN) now - - - -Postel [Page 21] - - - IEN 175 -Internet Meeting Notes - - - - NIFTP - - TOPS20 (UCL) now - DCN (COMSAT) now - Multics (MIT) June 81 - UCL-Unix (UCL) now - - TFTP - - Multics (MIT) now - TOPS20 (MIT) now - ALTO (MIT) now - Unix (MIT) now - TOPS20 (ISI) March 81 - EPOS (ISI) April 81 - -XII. COMPUTER MAIL - - A. Mail Facilities - - Peter Kirstein discussed the problems of providing mail services - between users in the UK and the US. Within the UK, computer mail - will almost certainly be based on NIFTP and will likely be as - proposed in IEN 169. One major concern for the US/UK - transmission is cost. It is quite important that a minimum number - of transmissions be made and especially that only one copy of a - message destined for multiple users be sent across the Atlantic. - - Peter raised the issue of an interface between NIFTP mail and MTP - mail, since it seems that the Internet will use the MTP mail. - - B. Mail Transfer Protocol - - Jon Postel discussed the MTP mail plan and indicated that a - revised document would be issued soon which will describe the MTP - in a network independent style. - - Jon agreed with Peter that a NIFTP-mail/MTP interface data - structure should be defined soon, and promised to do so. - - There are several working (or partly working) MTPs already: - Multics, COMSAT, DCEC, and ISI. - - C. TELEX/TWX Gateway - - Geoff Goodfellow described a system that is under development at - SRI to connect Telex and Computer mail. A user at a computer - terminal runs a program like SNDMSG or MM and simply adds some - - -Postel [Page 22] - - - IEN 175 -Internet Meeting Notes - - - - additional fields to the header of the message to give the - information needed for sending a telex. The message is routed to - a special host which checks the telex information and if it is - acceptable sends a telex. When a telex arrives at SRI it is - processed by the special host and if the required keywords and - information are found it is sent as a RFC 733 style message to the - recipients computer mail mail box. A small percentage of the - incoming telexes must be handled by a human operator because they - do not contain the required information in a computer parsable - form. - - D. Discussion - - There was some discussion of mailbox addresses and the problem of - sending (and answering) mail to (from) mailboxes in other systems - (e.g., Internet, TELEMAIL, ONTYME). - -XIII. NEXT MEETING - - The next meeting will be held 1-2-3 June 1981 at COMSAT in Washington - D.C. Dave Mills (Mills@ISIE) is the host. Please send agenda items - to Jon Postel (Postel@ISIF). If you plan to attend please register - with Linda (Linda@ISIF). Local arrangements information will be sent - only to those registering. - - The fall meeting will be held at UCL on 21-22-23 September 1981. The - winter meeting will be held at SRI in mid January 1982. - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 23] - - - IEN 175 -Internet Meeting Notes - - - -DOCUMENTS DISTRIBUTED - - Author Subject Number - ------ ------- ------ - - Cerf INFOCOM82 Call for Papers --- - Postel AGENDA --- - Postel Recent Document List --- - Postel IEN INDEX --- - Postel Assigned Numbers 776 - Farber CSNET Description --- - Postel TT --- - Chase TTLUSR --- - Postel What Every Host Should Know About GGP --- - Cohen On IP-Addressing 170 - Cohen Addressing in the ARPANET, another visit 171 - Sunshine Formal Modeling of Communication --- - Protocols (DRAFT) - Schwabe Formal Specification and Verification of --- - a Connection Establishment Protocol (DRAFT) - Bennett A Simple NIFTP-Based Mail System 169 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 24] - - - IEN 175 -Internet Meeting Notes - - - -RECENT DOCUMENTS - - Author Subject Number - ------ ------- ------ - - IENs - - Shoch Notes on the "Worm" Programs - Some Early 159 - Experience with a Distributed Computation - Postel Internet Meeting Notes - 7-8-9 October 1980 160 - Jones A Proposal for Simple Measurement Support 161 - for Users Through Slow Nets - Pershing Transport, Addressing, and Routing in the 162 - Wideband Net - Jones Echo Delay Measurements with GGP Packets 163 - Stern CMOS System Overview 164 - Cohen About Addressing in the WBnet 165 - Hinden Design of TCP/IP for the TAC 166 - Sax HP3000 TCP Design Document 167 - Gurwitz VAX-UNIX Networking Support Project 168 - Implementation Description - Bennett A Simple NIFTP-Based Mail System 169 - Cohen On IP-Addressing 170 - Cohen Addressing in the ARPAnet, Another Visit 171 - Mills Time Synchronization in DCNET Hosts 173 - - RFCs - - Postel Internet Protocol Handbook 774 - Table of Contents - Mankins Directory Oriented FTP Commands 775 - Postel Assigned Numbers 776 - - - - - - - - - - - - - - - - - - -Postel [Page 25] - - - IEN 175 -Internet Meeting Notes - - - -ATTENDEES - - Name Affiliation Nationality Mailbox - ---- ----------- ----------- ------- - Vint Cerf ARPA USA Cerf@ISIA - Robert Kahn ARPA USA Kahn@ISIA - David Flood Page BBN British DFloodPage@BBNE - Jack Haverty BBN USA JHaverty@BBND - Robert Hinden BBN USA Hinden@BBNE - Charles Lynn BBN USA CLYNN@BBNA - Dale McNeill BBN USA DMcNeill@BBNE - Paul Santos BBN USA Santos@BBNE - Virginia Strazisar BBN USA Strazisar@BBNA - Gerry Amey Canada-DND Canadian Amey@ISIA - Hoi Chong COMSAT Rep. China Chong@ISIE - David Mills COMSAT USA Mills@ISIE - Marvin Solomon CSNET USA UWVAX!Solomon@BERKELEY - Ed Cain DCEC USA Cain@EDN-UNIX - Wayne Shiveley DCEC USA Shiveley@BBNB - Hans Dodel DFVLR Germany --- - Helmuth Lang DFVLR Germany --- - Gary Grossman DTI USA grg@DTI - Horst Clausen IABG Austria Clausen.IABG@Mit-Multics - Ray McFarland DoD USA McFarland@ISIA - Ken Shotting DoD USA Shotting@SRI-kl - W. Bradbury I.P. Sharp Canadian --- - Stephen Casner ISI USA Casner@ISIB - Danny Cohen ISI USA Cohen@ISIB - Randy Cole ISI USA Cole@ISIB - Dan Lynch ISI USA Lynch@ISIB - Bill Overman ISI USA Overman@ISIF - Jon Postel ISI USA Postel@ISIF - Danny Schwabe ISI Brazil Schwabe@ISIF - Carl Sunshine ISI USA Sunshine@ISIF - Estil Hoversten Linkabit USA Hoversten@ISIA - Jim Forgie LL USA Forgie@BBNC - Noel Chiappa MIT British JNC@XX - Dave Clark MIT USA Clark@MIT-Multics - Steve Holmgren MITRE USA Steve@MITRE - Anita Skelton MITRE USA Anita@MITRE - Frank Deckelman NAVELEX USA Deckelman@ISIA - Oyvind Hvinden NDRE Norway Oyvind@DARCOM-KA - Yngvar Lundh NDRE Norway Yngvar@DARCOM-KA - Merle Neer NOSC USA Neer@ISIA - Mike Wahrman RAND USA Mike@RAND-UNIX - Derek Barnes RSRE British T45(ATTN.Barnes)@ISIE - John Laws RSRE British T45@ISIE - Dave Kaufman SDC USA Kaufman@ISIE - - -Postel [Page 26] - - - IEN 175 -Internet Meeting Notes - - - - Geoff Goodfellow SRI USA Geoff@SRI-ka - Ron Kunzelman SRI USA Kunzelman@SRI-KL - Jim Mathis SRI USA Mathis@SRI-KL - Holly Nelson SRI USA HNelson@SRI-KL - Zaw Sing Su SRI Canada ZSu@SRI-KL - Ken Biba SYTEK USA Biba@SRI-KL - Ron Jones UCL British UKSAT@ISIE - Peter Kirstein UCL British PKirstein@ISIA - Charles Kline UCLA USA CSK@UCLA-Security - Dave Farber UD/CSNET USA Farber@UDEL - John Shoch Xerox USA Shoch@PARC - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 27] - diff --git a/text/ien/ien176.txt b/text/ien/ien176.txt deleted file mode 100644 index 26d3ce66..00000000 --- a/text/ien/ien176.txt +++ /dev/null @@ -1,882 +0,0 @@ -IEN 176 - - - Dave Lyons - Digital Equipment - Corporation - March, 1981 - - - - - - The DECSYSTEM-20 TCP/IP user interface - - - - - - - - - - This document describes the USER / TCP - interface for the DECSYSTEM-20 - operating system. It also includes - information on an interface which may - be used for developmenting - experimental higher level protocols. - - - - - The information in this document is subject to change without - notice and should not be construed as a commitment by Digital - Equipment Corporation. Digital Equipment Corporation assumes no - responsibility for any errors that may appear in this document. - - The software described in this document is furnished under a - license and may be used or copied only in accordance with the - terms of such license. - - Digital Equipment Corporation assumes no responsbility for the - use or reliability of its software on equipment that is not - supplied by DIGITAL. - - - Copyright (C) 1981 by Digital Equipment Corporation - - - The following are trademarks of Digital Equipment Corporation: - - DIGITAL DECsystem-10 MASSBUS - DEC DECtape OMNIBUS - PDP DIBOL OS/8 - DECUS EDUSYSTEM PHA - UNIBUS FLIP CHIP RSTS - COMPUTER LABS FOCAL RSX - COMTEX INDAC TYPESET-8 - DDT LAB-8 TYPESET-10 - DECCOM DECSYSTEM-20 TYPESET-11 - - Page 1 - - - This document describes the formats and relations of the USER - interface and the Department of Defense Transmission Control - Protocol and Internet Protocol. - - This document is divided into four sections. The first deals - with the "Raw packet" interface to the Internet Protocol. This - interface may be used by programmer to implement higher level - protocols such as the Transmission Control Protocol, a datagram - service, or a specialized protocol such as voice transmission. - This interface is not intended to be used as a user datagram - service. It is included to allow protocols other than TCP to be - implemented and used. - - The second section is concerned with the TCP / USER interface - itself. It describes the various attributes that may be - associated with a connection, and the formats of the monitor - calls to set and read these attributes. It is assumed that the - reader is familiar with the DECSYSTEM-20 user interface for - files. - - The third section explains the interrelations of the user - interface and certain network events (such as receiving data). - This section also covers differences between "local" I/O, and - "network" I/O. - - The fourth section covers the retransmission algorithm - exponential smoothing function. - - Page 2 - - -Section 1. The INTERNET interface. - -IPOPR% JSYS (754) - I P operations - -This section covers the IPOPR JSYS and its functions. These -functions can be used to send and receive special messages directly, -or to set various system parameters related to the IP network layer. - -Restrictions: Some functions may require WHEEL or OPERATOR. In - addition, some other functions may require - NETWORK-WIZARD. - -Accepts in AC1: JFN, Special Queue number, or other designator. - AC2: Function code and optional flags. - AC3: Argument or pointer to argument block. - -Returns: +1 Always - - -A RESET% JSYS will release all special queues that have been -assigned. - - - -Code Symbol Meaning - -0 .IPASQ Assign special queue for IP packets. This function - requires NETWORK-WIZARD. AC3 points to a block of - the form: - - Word 0: .IPPPV ! 32 bits internet protocol ! 4 bits ! - ! number ! ! - Word 1: .IPFHV ! 32 bits foreign host ! 4 bits ! - ! number ! ! - Word 2: .IPLHV ! 32 bits local host number ! 4 bits ! - Word 3: .IPPTV ! 16 bits local port, ! 4 bits ! - ! 16 bits distant port ! ! - Word 4: .IPPPM ! mask for .IPPPV ! 4 bits ! - Word 5: .IPFHM ! mask for .IPFHV ! 4 bits ! - Word 6: .IPLHM ! mask for .IPLHV ! 4 bits ! - Word 7: .IPPTM ! mask for .IPPTV ! 4 bits ! - - If IP%SPP is set, word 3 distant port bits are - ignored. - - Other flag bits in AC2 are: - IP%RPI = 1B0 ;Raw Packet Interface - IP%SPP = 1B1 ;Single Port Protocol - - On a successful return, AC1 contains a Special queue - handle. - - Page 3 - - -1 .IPRSQ Release IP special queues. AC3 contians the queue - handle or -1 for all assigned queues. - - -2 .IPSSM Send Special Message. AC3 points to an argument - block of the following form. - - 1. Word 0 of the buffer must be a word count - (including word 0) - - 2. Words 1 thru 5 must be a legal Internet Header - - 3. If IP%SPP was set when the ASNSQ jsys was done, - word 6 must contain port number(s) - - The monitor will validate the local host field and - compute the header checksum. - - -3 .IPRSM Receive Special Message. AC3 points to a buffer - which receive the data. The first word of the buffer - must contain the length of the buffer in the right - half. After the call, the length is stored in the - left half. If the message is too long, a size error - is given, and the message is truncated to the length - of the buffer. - - - -Possible errors: - -NTWZX1 NETWORK-WIZARD capability required - -IPOX1 Illegal function code - -IPOX2 All Special Queues are in use - -IPOX3 Special Queue allocation conflict - -IPOX4 Invalid message size - -IPOX5 Insufficient system resources - -IPOX6 Invalid header value in this queue - -IPOX7 Queue handle out of range - -IPOX8 Queue was not assigned - -IPOX9 WHEEL, OPERATOR or NETWORK-WIZARD capability required - - Page 4 - - -Section 2. The USER / TCP interface - -It is the programmers responsibility to provide information to the -operating system about the network connection required. This -information is passed to the operating system thru a GTJFN monitor -call. Although TCP has full duplex data connections, there is a need -for two types of connections, active, and passive. The active -connection can be thought of as going out and finding someone to talk -with. This is also refered to as the Caller. The passive connection -can be thought of as waiting until someone shows up to talk with. -This is also refered to as a Listener. The format used by the TCP -network protocol is as follows. - -TCP:[LOCAL_HOST][-LOCAL_PORT[#]].[FOREIGN_HOST][-FOREIGN_PORT][;A1..] - - -The following examples show the various ways that connections may be -specified. - - - 1. TCP:.RADC-TOPS20-1;CONN:ACTIVE - - 2. TCP:1# - - 3. TCP:1#.-5000 - - 4. TCP:1#.1200200002;CONN:PASIVE - - 5. TCP:4500000254.1200200117-3;CONN:ACT - - 6. TCP:4500000254-177#.1200200117-123;CON:A;BUF:128;PER:0 - ;TI:60;TY:2;SEC:2;COM:2 - - -In case 1, the local information is not present and will be -defaulted. Port numbers are controlled as follows: - - If the number is in the range of 0 to 377 (octal), it must be - followed by a "#", and the user must have WHEEL, OPERATOR or - NETWORK-WIZARD. The "#" is redundant, but is included to - prevent mistakes. This range of numbers is reserved for - system servers. - - The numbers between 400 and 77777 are reserved for users and - are not controlled by the system. - - Numbers in the range of 100000 to 177777 are reserved by the - system, and assigned on a "need" basis. - - Note: The monitor will assign the numbers in the following - manner. The "sign" bit of the port number will always be - set, the next 9 bits will be reserved for the job number, and - the last 6 bits will the the JFN number assigned the - - Page 5 - - - connection. These assignments are subject to change without - notice. - - -As example 1 fits into the third case, it will be assigned a port -number by the system. The destination system is identified as -"RADC-TOPS20" and the port number is "1". The CONNECTION attribute -is present with the ACTIVE option, and this system will attempt the -connection. - -The name/Internet Number binding is local to only this system. It is -the responsibility of the system administrator to maintain this -binding. There are no restrictions on having many names identify the -same system, or having the same name on different systems disagree. -The later situation should be avoided, but this is not required. - - -The second case shows a passive open on port 1. The connection will -be accepted from any host and any port - - -The third case shows a passive open on port 1 that will only accept -connections from any system with a port number of 5000. - - -The fourth case shows a passive open on port 1 for any user on node -1200200002 (SRI-KL). - - -The fifth case shows an active connection from host 4500000254 (the -DECnet side of DEC-2136) with a defaulted port number. The target -side of the connection is the ARPANET side of DEC-2136. - - -The sixth example shows a connection from DEC-2136 (DECnet) to -DEC-2136 (ARPANET). This connection includes the following -attributes: - - ;CON:A show an active connection - ;BUF:128 buffer size of 128 bytes - ;PER:0 persist in opening the connection - ;TI:60 time the connection out if there is a 60 second - failure - ;TY:2 type of service is Speed vs. Reliability - ;S:2 security level of 2 - ;COM:2 compartment of 2 - - Page 6 - - -The following are valid attributes: - - -;CONNECTION:ACTIVE -;CONNECTION:PASSIVE This attribute is used to indicate if the - operating system should actively connect to the foreign - system. The default is PASSIVE. - - -;BUFFER:n This attribute indicates that record mode I/O with records - of N bytes is to be used. N may be in the range of 0 to - 2^16-1. If not given, unbuffered I/O will be used. - - -;PERSIST:n -;PERSIST:(n,m) With an argument of 0, attempt to open the connection - and keep trying until successful. If n is given, try for n - seconds, at which time an error return is given if no - connection has been established. An attempt is made every m - seconds, where m is an estimate of the round trip delay - between systems or provided by the user. If no persistence - is given, 30 seconds will be used. - - -;TIMEOUT:n The amount of time allowed to pass while waiting for a - message from the foreign system before an error is given to - the user. If not given, a default 30 seconds will be used. - If the value of n is 0, no timeout will occur. N may be in - the range of 0 to 2^18-1. - - -;TYPE-OF-SERVICE:n The type of service required by the user indicates - what tradeoffs are to be made in providing data transmission. - N may be in the range of 0 to (2^18-1). The TCP - implementation will only use the low order 8 bits. - - -;SECURITY:n The security level of the connection may range from 0 to - 3. If not specified, a value of 0 will be used. - - -;COMPARTMENT:n The compartment level of a connection is specified as - a code provided for the user by the Defense Communications - Agency. N may be in the range of 0 to 255. - - -Note that these last two fields are not used in TCP itself, but in -lower layers of the protocols. The are provided for at this level to -allow the user control over these fields. Also, the use of either of -these two fields will invoke a request to the Access Control Job, or -will fail if the Access Control is not enabled for these functions. -The TYPE-OF-SERVICE field will also invoke a call to the Access -Control Job, but will be allowed if Access Control is not enabled for - - Page 7 - - -this function. - - Page 8 - - -TCOPR% JSYS (755) - -The following are the TCOPR functions related to the TCP: device. -These functions are like the MTOPR JSYS, but are only used with the -TCP device. - -ACCEPTS AC1: JFN of device - AC2: function code (see below) - AC3: function argument or address of argument block. - See each function for details. - -RETURNS +1 always - - - -Code Symbol Meaning - -0 .TCRCS read connection status. AC3 points to a - block which at least .TCRCL words long. - - .TCLEN 0 Length of block - - .TCTFP 1 Foreign port - TC%TFP 16 bits, right justified - - .TCTFH 2 Foreign host - TC%TFH 32 bits, right justified - - .TCTLP 3 Local port - TC%TLP 16 bits, right justified - - .TCTLH 4 Local host - TC%TLH 32 bits, right justified - - .TCTRW 5 Receive window - TC%TRW 16 bits, right justified - - .TCTSW 6 Send window - TC%TSW 16 bits, right justified - - .TCTCS 7 Connection state - TC%TCS 4 bits, right justified - - .TCPCL closed - .TCPLI listen - .TCPSS syn sent - .TCPSR syn received - .TCPES established - .TCPF1 fin wait 1 - .TCPF2 fin wait 2 - .TCPTW time wait - .TCPCW close wait - .TCPCG closing - - Page 9 - - - .TCTBW 10 Buffers waiting ack - TC%TBW 8 bits, right justified - - .TCTBP 11 Buffers pending receipt - TC%TBP 8 bits, right justified - - .TCTBS 12 Buffer size - TC%TBS 16 bits, right justified - - .TCTTS 13 Type-of-service and security fields - TC%TTS 18 bits, 1st 18 bit byte - TC%TSF 2 bits, 3rd 9 bit byte - TC%TCF 8 bits, 4th 9 bit byte - - The bits used in the TCP implementation are - as follows. - - .TCTPR 3 bits Precedence - .TCTST 1 bit Stream / Datagram - .TCTRE 2 bits Reliability - .TCTSR 1 bit Speed / Reliability - .TCTSP 1 bit Speed - - .TCTTT 14 Transmission timeout - TC%TTT 9 bits, right justified - - .TCTUD 15 Urgent data information (to be - defined) - - .TCTRA 16 Retransmission parameters - Alpha - TC%TRA Alpha, a floating point number. - - .TCTRB 17 Retransmission parameters - Beta - TC%TRB Beta, a floating point number. - - See the section on message retransmission for - a description of these fields, their uses, - and limitations. - - .TCTPI 20 PSI channel assignment. See function - .TCSPC for a definition of this field. - - -1 .TCSUD Send urgent data. AC3 points to a block of - the form - - 0 Pointer to data - 1 Count of bytes or 0 - 2 Byte to terminate output on - - (note that these are the same as AC2 - AC4 of - the SOUT and SOUTR JSYS's) - - Page 10 - - - Setting TC%FEL in AC3 will force End Of - Letter to be set. - - -2 .TCSBS Set buffer size. AC3 contains a number in - the range of 0 to 2^16-1. A value of 0 - indicates non-buffered mode. - - -3 .TCSPA Set passive/active flag. TC%APF is set in - AC3 to indicate an active connection, and - cleared to indicate a passive connection. - - -4 .TCSPP Set persistence parameters. AC3 is the time - to wait for connections. - - If AC3 is 0, do not timeout the connection. - - If AC3 contains 0,,n an attempt to connect - will be made for n seconds with - retransmission time estimated by the system - - If AC3 contains m,,n an attempt to connect - will be made for n seconds with - retransmission every m seconds. M must be - less than n. - - -5 .TCSTP Set timeout parameters. AC3 contains the - time to wait before a timeout. The value - given must be in the range of 0 to 2^18-1. - - If AC3 contains a 0, no timeout will occur. - - -6 .TCSRP Set retransmission parameters. AC3 points to - an argument block which is two words long. - The first word contain a floating point - number, Alpha, and the second contains - another floating point number Beta. For a - description of these two fields see the - section on message retransmission. - - -7 .TCSTS Set Type-of-service. AC3 contains the type - of service desired. The value must be in the - range of 0 to 2^18-1. - -10 .TCSSC Set security and compartment levels. AC3 - contains the security level and the - compartment levels in the form - (security),,(compartment) - - Page 11 - - - Security may be in the range of 0 to 3. - Compartment may be in the range of 0 to - 2^8-1. - - -11 .TCSPC Set PSI channels. AC3 contains six 6 bit - fields as follows - - TC%TPU 1st byte, Urgent data channel - TC%TRI 2nd byte, Read data channel - TC%TSI 3rd byte, Send data channel - TC%TER 4th byte, Error channel - TC%TSC 5th byte, State change - TC%TXX 6th byte, unused, must be 77 (octal) - - To indicate that no interrupt is desired for - a given function, specify the value 77 - (octal) for the channel. - -12 .TCRTW Read a single entry from the TCB. AC3 - contains the word of the TCB that is desired. - On return, AC3 will contain the value of the - word in question. - - For a list of the words that may be returned, - see the function .TCRCS. - -13 .TCSIL Set the interrupt level for buffers. AC3 - contains a number between 0 and 1024 in each - half. The left half sets the number of bytes - received before an interrupt will occur. The - right half sets the number of bytes which - must be available in the output buffer before - an interrupt will occur. In both cases, a - value of 0 (the default) will be treated - exactly like a value of 1. - -14 .TCSSR Set the route to be used in transmission of - the message. AC3 points to an argument - block. The first word of that block is the - total length of the block. Each word - thereafter is the Internet Address of the - next node to route to, right justified. - -15 .TCRLB Read lower bound for retransmission. The - number of seconds is returned in AC3 as a - floating point number. - -16 .TCSLB Set lower bound for retransmission. The - number of seconds will be in AC3 as a - floating point number. Requires WHEEL, - OPERATOR or NETWORK-WIZARD. The number must - be larger than 0 and less than the current - - Page 12 - - - upper bound. - -17 .TCRUB Read upper bound for retransmission. The - number of seconds is returned in AC3 as a - floating point number. - -20 .TCSUB Set upper bound for retransmission. The - number of seconds will be in AC3 as a - floating point number. Requires WHEEL, - OPERATOR or NETWORK-WIZARD. The number must - be larger than the current lower bound and - less than 250. - - -The following functions do not require a JFN in AC1, as they are -system wide. AC1 must contain a 0. - -100 .TCRDLB Read default lower bound for retransmission. - The number of seconds is returned in AC3 as a - floating point number. - -101 .TCSDLB Set default lower bound for retransmission. - The number of seconds will be in AC3 as a - floating point number. Requires WHEEL, - OPERATOR or NETWORK-WIZARD. The number must - be larger than 0 and less than the current - upper bound. - -102 .TCRDUB Read default upper bound for retransmission. - The number of seconds is returned in AC3 as a - floating point number. - -103 .TCSDUB Set default upper bound for retransmission. - The number of seconds will be in AC3 as a - floating point number. Requires WHEEL, - OPERATOR or NETWORK-WIZARD. The number must - be larger than the current lower bound and - less than 250. - - - -Error codes: - -DESX1 Invalid source/destination designator - -DESX3 JFN is not assigned - -DESX4 Invalid use of terminal designator or string pointer - -DESX9 Invalid operation for this device - -IOX5 Device or data error - - Page 13 - - -TCOX1 Invalid function - -TCOX2 input error or not all data read - -TCOX3 invalid software interrupt channel - -TCOX4 Field conflict. Returned if two fields must be specified, - and there was an error in the relative size of the fields. - -TCOX5 Illegal function after OPENF call. The function can only be - performed before the OPENF JSYS is executed. - -TCOX6 WHEEL, OPERATOR, or NETWORK-WIZARD capability required - - Page 14 - - -Section 3. I/O interrelations. - -This section describes the relations of various monitor calls which -relate to performing I/O for a TCP device. - -First, the user may execute a TCOPR JSYS to set various fields within -the transmission control block (TCB). Some of these functions are -allowed only before the OPENF. These include - - .TCSSC Set security and compartment levels - .TCSPA Set passive/active flag (makes no sense after the - OPENF has been done) - .TCSBS Set buffer size - .TCSPP Set persistence parameters (makes no sense after the - OPENF has been done) - -If the user has enabled for PSI interrupts on state changes, an -interrupt will be given the user every time the state machine is -stepped. - -If the user has enabled interrupts for URGENT data, an interrupt will -be given to the user each time the urgent data pointer is increased, -that is, we have been notified of more urgent data than we previously -knew about. If the user has not read all of the previous urgent -data, the interrupt will still be sent. - -If the user has enabled interrupts for errors, a PSI interrupt will -be given under the following conditions: - - 1. A timeout has occured (either in communications, or in - opening the channel). - - 2. An ABORT or RST (reset) message was received. - - -These types of events also step the state machine, and will also -cause an interrupt on the state channel. - -SIN, SINR, BIN, SIBE, DIBE and input interrupts. - -If the user has enabled for input data interrupts, the program will -be interrupted when the amount of unread user data exceeds the value -provided with the .TCSIL function or non-zero if no value was -specified. At any time, a SIBE will return the number of unread -bytes available to the user, i.e. those bytes which have been -acknowledged. This is not the receive window size. To determine the -size of the receive window, the program must use a TCOPR JSYS. The -actions of the SINR JSYS are documented in the monitor calls manual, -and the TCP flag "EOL" (end of letter) will be used to determine -record blocking. - -SOUT, SOUTR, BOUT, SOBE, SOBF, DOBE, and output interrupts. - - Page 15 - - -If the user has performed a passive open, and then executes a JSYS -which will cause output to occur, the TCB is converted to an active -open, and the user will block until the connection is established and -the data specified by the JSYS is moved into the monitor, or an event -which will cause the user to be notified of an error occurs. - -If the user has enabled for output data interrupts, the program will -be interrupted when the output buffer becomes "non-full", that is, -space is available in the output buffer. If the user has indicated a -"buffer level" with the .TCSIL function of the TCOPR JSYS, the -interrupt will be signaled when the free space in the buffer exceeds -the specified level. At any time, a SOBE or SOBF will return the -number of bytes which are in the output buffer, i.e. the number of -bytes which are have not been acknowledged by the foreign host. When -a SOUTR is executed, the data message sent to the foreign system will -have the EOL bit set, and the byte numbering will be adjusted to the -next record boundry. This record size is set with the ;BUFFER -attribute to GTJFN, or with the .TCSBS function of the TCOPR JSYS. - - -Single Fork I/O. A short description. - -Some concern over how to perform I/O to multiple connections with a -single fork have been raised. The way to do this is fairly straight -forward. The following description demonstrates how this might be -accomplished. For simplicity, we will only examine the case of a -single input stream, and assume some critical background process -(like computing pi to 100,000,000 places). We will also assume that -the program is only willing to be interrupted when 100 or more bytes -are available. - - - 1. The program opens a connection to the source of the data. - - 2. The program enables interrupts for receive data, and sets - the interrupt level to 100. This is done with the TCOPR - functions .TCSPC and .TCSIL. - - 3. The program starts computing pi. - - 4. At some point in time, an interrupt occurs, and the - calculation of pi is interrupted. At this point the - programmer knows the there has been at least 100 bytes of - data available since the last interrupt. The program may - read any amount of this data. Let us look at the - implications. - - 1. The fact that an interrupt has occured implies that the - condition for the interrupt has been true at least once - since the last interrupt. This does not guaranty that - the condition is still true. The program must assure - that these conditions still exist within the interrupt - code. This is true for ALL of TOPS-20. - - Page 16 - - - 2. In light of number 1, if a program receives an interrupt - for data available, and reads data until less than 100 - bytes remain, that program will receive an interrupt for - data when more than 100 bytes are available, regardless - of when this event occurs. - - 3. Assume the program receives an interrupt for data, and - 120 bytes are available. The program then reads 60 - bytes. While the program is processing this data, - another 45 bytes of data is received. The program - checks for data, and finds that 105 bytes are available. - The program reads all the data, and will then dismiss - the interrupt. As the conditions in number 1 are true, - the program will receive another interrupt for data - being available right away, even though there is no data - available. As number 1 points out, the program must - assure that the conditions are still true. In this - case, they are not, and the program should dismiss the - interrupt. - - 4. If the program receives an interrupt, fails to read - enough data to drive the number of bytes below the - current alarm level, and dismisses the interrupt, no - more interrupts will be given for that channel. There - can be no transition over the alarm level. - - - 5. The program enters a loop to read the data. First, the - program executes a SIBE JSYS to determine he exact number of - bytes available. The program then reads this data, and - processes it. The program continues in this loop until the - SIBE JSYS indicated there is no more data to be read. - - 6. The program dismisses the interrupt, and the calculation of - pi continues. - - 7. The program completes the calculation of pi, prints the - results, closes the TCP connection, and exits. - - - -It is probably easiest to think of interrupts as a "pulse" which will -be queued for a job until that job is willing to receive it (i.e. at -a lower interrupt level, or not at interrupt level at all). The -"pulse" will remain queued even if the conditions which caused it no -longer true. Many different interrupts may be queued for a job, and -they will be processed in order of occurrence within order of level. -Again, this is true for all of TOPS-20. - - Page 17 - - -Section 4. Data retransmission - -This section describes the data retransmission parameters, Alpha and -Beta. - -The functions used provide an "elongation factor" or delay variance, -Alpha, as well as an exponential smoothing function with weighting of -Beta. Assume the following: - - RTT is the delay between the sending of an octet and the ACK for - that octet. - - SRTT is the exponentially weighted round trip delay. - - UBND is the upper bound for data retransmission. - - LBND is the lower bound for data retransmission. - - RTO is the retransmission timeout for this data set. - - -SRTT may be calculated from the following. - - SRTT = ( Beta * SRTT ) + ( ( 1 - Beta ) * RTT ) - -RTT and SRTT are initially set to an estimated delay time. The -retransmission time out, RTO, may be calculated as follows: - - RTO = max ( LBND, min ( UBND, Alpha * SRTT )) - - -By default, the lower bound, LBND, will be set to 1 second and the -upper bound, UBND will be set to 250 seconds. These values may be -changed with the .TCSLB and .TCSUB functions of the TCOPR% JSYS. -Beta must be in the range of 0.0 to 1.0. It will initially be set to -0.9. Alpha must be in the range of 0.0 to 250.0. The default value -for Alpha is 1.5. Although numbers less than 1.0 and larger than -10.0 are fairly useless, they are allowed. - - -The system administrator may set the default upper and lower bounds -on retransmission. This may be done with the .TCSDL and .TCSUL -functions of the TCOPR% JSYS. - -------- diff --git a/text/ien/ien177.txt b/text/ien/ien177.txt deleted file mode 100644 index d7f65510..00000000 --- a/text/ien/ien177.txt +++ /dev/null @@ -1,349 +0,0 @@ - - - - - J. Postel -IEN 177 ISI - 24 March 1981 - - - - Comments on Action Items from the January Meeting - - - -At the recent Internet Meeting a number of issues were raised as "action -items" [1]. Many of these can be resolved fairly simply. This note -describes the resolutions I propose. These topics may be further -discussed at future meetings or via IENs. Your comments are requested. - -Action Items from RSRE: - - 1. Dynamic timeouts for retransmission in TCP. - - Yes. The algorithm described by RSRE at the October 80 meeting - should be implemented. It will be included in the next edition of - the TCP specification. - - The current best procedure for retransmission timeout is to - measure the time elapsed between sending a data octet with a - particular sequence number and receiving an ack that covers - that sequence number (thus one does not have to match sends and - acks one for one). Using that measured elapsed time as the - round trip time (RTT), compute a smoothed round trip time SRTT - as: - - SRTT = ( ALPHA * SRTT ) + ( (1-ALPHA) * RTT ) - - And based on this, compute the retransmission timeout (RTO) as: - - RTO = min[ BOUND, BETA * SRTT ] - - Where BOUND is an upper bound on the time-out (e.g., 30 - seconds), ALPHA is the smoothing factor (e.g., .8 to .9), and - BETA is a delay variance factor (e.g., 1.3 to 1.5). - - 2. Flag bit for copied options in IP fragments. - - Yes. This makes good sense and will be done in the next edition - of the IP specification. - - The option type octet is viewed as having three fields: - - 1 bit: copied flag (0=do not copy, 1=copy) - 2 bits: option class - 5 bits: option number - - -Postel [Page 1] - - - IEN 177 -Comments on Action Items from the January Meeting - - - - The options affected are: security, source routing (loose & - strict), and stream identifier. - - 3. Specification for strict source routing. - - Yes. In the next edition of the IP specification there will be - two options: Loose Source Routing (LSR) and Strict Source Routing - (SSR). LSR will be the source routing currently specified which - allows arbitrary internet routing between the listed addresses. - SSR will have the same syntax, but will require that the next - listed address be the next internet node visited (where "internet - node" is a gateway or host), and that it be accessed via the net - in the listed address. - - 4. Standard addresses for Echo, Discard, and Character Generator - servers. - - These already exist. Assigned Numbers [2] lists ports for both - UDP and TCP servers as follows: - - PORT SERVER - ---- ------ - 7 Echo - 9 Discard - 19 Character Generator - - 5. Techniques for preventing Silly Window Syndrome (SWS). - - I am not sure we fully understand this yet, but it is clear that - very small window updates aggravate the situation. The next - edition of the TCP specification will include words of caution - about small window updates. - - Perhaps it should say "don't update the window unless the - additional space exceeds X percent of the total buffer space - for this connection". Any suggestions for the value of X? - - The sender can also try to stay out of SWS by only sending big - segments and waiting until the window is large enough to allow - it. If the sending user indicates an end of letter then the - data must be sent even if it is a small segment. - - At the same time we don't want to delay the acknowledgment, so - when a small segment arrives and is accepted, the typical - response should be to send an acknowledgement without updating - the window. - - It is also thought that the probing of a zero window with an octet - - -Postel [Page 2] - - - IEN 177 -Comments on Action Items from the January Meeting - - - - of new data may lead to SWS. Some consideration of probing with - the most recent octet of old data is in order. It is not clear - that this can be done reliably (does it matter?), or that an "old - data" probe will elicit new window information. - - 6. No changes to addressing for a while. - - I am not sure we can do this. There is clearly a need to provide - for a large number of networks in the future. Vint's proposal for - alternate ways of cuttting up the 32-bit internet address may be - included in the next edition of the IP specification. - - high order bits format - --------------- ------ - 0 7 bits of net, 24 bits of host - 10 14 bits of net, 16 bits of host - 110 21 bits of net, 8 bits of host - 111 escape to extended addressing mode - - A value of zero in the net field means this net. The extended - addressing mode is undefined as yet. - -Action Items from NDRE: - - 1. A HDLC port on the SATNET gateway is needed. - - A problem for Vint and BBN. - - 2. ARPANET availability must be improved. - - A problem for Vint and DCA and BBN. - -Action Items from MIT: - - 1. A maximum segment size TCP option is needed. - - Yes. This can be included in the next edition of the TCP - specification. The syntax will be the same as the existing Buffer - Size option. - -Action Items from DCEC: - - 1. How do we provide testing facilities to companies that develop - TCP products? - - A problem for Vint and DCA. - - - - -Postel [Page 3] - - - IEN 177 -Comments on Action Items from the January Meeting - - - - 2. How do we control transit traffic? - - This is a difficult problem, and I only promised answers to the - easy ones. Right now the only information available for an IP - gateway to base a decsion on is the stuff in the IP header (source - and destination address, protocol, tos, security). In the current - situation, my approach would be to have a gateway that cares about - restricting transit traffic to have a list of approved sources and - have it simply discard and datagram from a source not on the list. - -Action Items from BBN: - - 1. Rubber EOL and Buffer Size has implementation impact in TAC. - - My understanding of this is that implementation of TCP in the TAC - is purposely not capable of handling rubber eol. A survey of some - implementers indicates that no implementaion sends the buffer size - option. This means that rubber eol never occurs. Vint suggests - deleting the buffer size option. This implies that all the rubber - eol stuff can go away. I am prepared to delete the buffer size - option and all references to the rubber properties of eol from the - next edition of the TCP specification. What do you say? - -Questions from SDC: - - 1. Who supplies the "protocol" field for the IP header, IP or the - transport protocol? - - This is an implementation specific issue. In the simplest case - the IP just dosen't care what the protocol field says so the upper - level protocol can supply it on each call. In a more controlled - operating system environment the IP would fill in the protocol - field in the individual datagrams sent based on some initial set - up call from the upper level protocol module which supplied the - value at that time. - - 2. What is the nature of the interaction between IP and GGP? - - The nature of the interaction between IP and GGP can only be - described as friendly. Actually, at the meeting I discussed a set - of messages that combine the messages gateways send to hosts and - messages that hosts send to hosts about problems with datagrams - [3]. The plan is to establish this as a separate control protocol - for IP. The interaction between the control protocol module and - the IP module would be very intimate -- they would be the same - module. - - - - -Postel [Page 4] - - - IEN 177 -Comments on Action Items from the January Meeting - - - - 3. Is source routing loose or strict? - - Both. The current IP specification of the source routing option - is for the loose source routing. A similar option for strict - source routing will be documented. - -Question from BBN: - - 1. How does IP interact with the local net, on errors, on flow - control, etc.? - - Since IP is supposed to work with such radically different local - nets it is not clear there is an answer to this question. - Whatever information the local net hands back to the IP about - errors (e.g., non-delivery) should be communicated to the source - of the datagram. - -Question from ISI: - - 1. What is the size and precision of time stamps used in internet - measurements? What is time zero? - - One proposal is the number of milliseconds since midnight 1 - January 1980 GMT modulo 2**32, in other words the low order 32 - bits of that value (32 bits of milliseconds is approximately 49.7 - days). The IP Timestamp Option now simply says it is 32 bits of - milliseconds, failing to mention what time zero is, or indicating - in any way who did the stamping. I propose to change the option - to include the internet address of the stamper and to specify time - zero as 1 January 1980. This will make the option 10 octets long - and allow at most 4 stamps in a datagram header. There is also no - way to indicate what datagrams are to be stamped. Possibly the - "stamper addresses" should be filled in by the source to indicate - which internet modules (gateways or hosts) are supposed to fill in - times. - -Action Item for ISI: - - 1. A NIFTP-MAIL/MTP interface data structure should be defined soon. - - Actually, this is a host specific issue of defining the internal - stored format for queued mail for multiple recipients. This - format may be used by both MTP and NIFTP-MAIL as well as a number - of user interface programs. ISI is working on it for TOPS20. - - - - - - -Postel [Page 5] - - - IEN 177 -Comments on Action Items from the January Meeting - - - -Question from ARPA: - - 1. There is a open question about mailbox addresses and the problem - of sending (and answering) mail to (from) mailboxes in other systems - (e.g., Internet, TELEMAIL, ONTYME). - - The quick answer seems to depend on making another systems - structured address be one field in your own systems structured - address. Even so automatic derivation of reply addresses is hard. - Otherwise this is a tricky problem. - -References - - [1] Postel, J., "Internet Meeting Notes -- 28-29-30 January 1981", - IEN 175, USC/Information Sciences Institute, March 1981. - - [2] Postel, J., "Assigned Numbers", RFC 776, USC/Information - Sciences Institute, January 1981. - - [3] Postel, J., "What Every Host Should Know About GGP", - USC/Information Sciences Institute, January 1981. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 6] - \ No newline at end of file diff --git a/text/ien/ien178.txt b/text/ien/ien178.txt deleted file mode 100644 index f7ae444a..00000000 --- a/text/ien/ien178.txt +++ /dev/null @@ -1,1239 +0,0 @@ - IEN 178 April 1981 - - - - - - - - ADDRESSING PROBLEMS IN MULTI-NETWORK SYSTEMS - - Carl A. Sunshine - - University of Southern California - Information Sciences Institute - 4676 Admiralty Way - Marina del Rey, CA 90291 - - - - - - - - Abstract - - To allow uers in different networks to communicate with - each other, development of powerful yet practical naming, - addressing, and routing facilities is essential. Basic - procedures for multi-network systems under control of a single - organization have begun to be used, but a large set of more - sophisticated goals remain to be addressed. This paper - describes several of these more advanced problems including - extendability, multihoming, network partitioning, mobile - hosts, shared access, local site connections, gateway routing, - and overcoming differences in heterogeneous systems. - - - - - - - - - - - Note: - - There are three figures associated with this document - which may be obtained from the author by sending a message to - . - - - -1- - - - Introduction - - The interconnection of multiple computer networks makes - - it possible for ever wider communities of computer users and - - applications to interact with each other. A basic set of - - problems that must be solved in accomplishing such - - interconnections concerns providing naming, addressing, and - - routing procedures that are general and convenient yet - - practical. These problems are particularly difficult when - - networks of different designs and/or operating under different - - authorities must be interconnected. - - Current multi-network systems are fairly small (tens of - - networks maximum) and largely designed by and under control of - - a single organization. (We shall call this "homogeneous" - - internetworking.) Basic interconnection is supported by - - simple hierarchical addressing and routing procedures employed - - uniformly throughout the system [1,4,10,13]. Interconnections - - of different multi-network systems (heterogeneous - - internetworking) are just beginning to be made, largely by ad - - hoc means. - - Thus, while some of the basic problems have been solved, - - a large set of secondary problems will soon be upon us. These - - include problems of scale (current methods are impractical for - - systems with hundreds or thousands of networks); supporting - - more sophisticated functions such as multihoming, network - - - -2- - - - partitioning, mobile hosts, and shared access; and overcoming - - the different procedures in heterogeneous systems. - - This paper describes several of these interesting - - problems, and discusses potential solutions. The emphasis is - - on developing a feel for the range of problems and solutions - - rather than on detailed or formal treatment of any one - - problem. In many cases it will be clear that further research - - is needed to clarify the problems or to develop and evaluate - - better solutions. - - - Hierarchical Methods - - A basic approach to addressing and routing in large - - systems is to use hierarchical methods. These methods can be - - applied at various levels (e.g., within networks and among - - networks). We give a brief summary of the basic principles - - involved since these form the background for many of the other - - problems. - - As the number of subscribers or "hosts" in a single - - network increases, it becomes desirable to introduce a number - - of switches, each serving a subset of the hosts. These - - switches must maintain routing tables which give the best - - outgoing link (or set of links) for any destination. The - - tables are used to forward incoming packets properly toward - - their destination. In datagram networks, a routing decision - - based on final destination is made for every packet, while in - - virtual circuit nets only the initial call request packet - - - -3- - - - requires the full routing decision (subsequent packets of a - - call are forwarded over fixed routes kept in other tables). - - If every switch maintained routing information for every - - destination individually, the routing tables would become very - - large. A standard approach is to introduce hierarchical - - addressing, where each host is assigned a particular port on a - - particular switch, and hence addresses take the form . Then routing may also be done hierarchically by - - sending all packets destined to a given switch over the same - - route, ignoring the "low order" portion of the address. Hence - - each switch need only maintain routes to other switches, - - greatly reducing the number of different destinations, and - - hence entries, in the routing tables. - - Note that hierarchical routing is one major motivation - - for introducing hierarchical addresses, but these two - - techniques do not necessarily go together as we shall see - - below. Another reason for hierarchical addresses is simply to - - distribute the authority for assigning addresses within a - - large system [14]. - - The same techniques may be extended to multi-network - - systems by adding another level to the addressing hierarchy so - - that addresses take the form . With - - hierarchical routing, packets are first routed to the - - destination network, ignoring the rest of their address, and - - then routed within the final network as above. This form of - - - -4- - - - hierarchical addressing has been adopted by the public packet - - switching networks in CCITT Recommendation X.121, and it - - appears that most public networks intend to use hierarchical - - routing as well [13,19]. - - The reduction of routing table size that accompanies - - hierarchical routing has its price. The resulting routes may - - not always be optimal. If there are two ways to reach a - - remote network (as is often the case), one may be better for - - some hosts within that network and the other for other hosts. - - But there is by design no way to determine this from a local - - routing table which carries a single entry for the entire - - remote network. An even more serious consequence of strict - - hierarchical routing is discussed in the next section. - - To avoid these problems, routing decisions may based on - - more of the address where desirable [5,14]. For example, an - - internetwork routing table could be augmented with entries for - - individual switches receiving high traffic in a remote - - network, while other switches in that network were covered by - - a single network level entry. This leads to a selective - - increase in the size of routing tables, and requires the - - ability to search the tables for variable length portions of - - addresses and to update tables with varying levels of detail. - - - Network Partitions - - A network is said to be partitioned when enough links - - and/or switches fail so that two or more subsets of its hosts - - - -5- - - - are formed which cannot communicate with each other. In an - - isolated network there is no remedy for this situation until - - sufficient repairs are made to restore connectivity. But if - - the partitioned net is part of a multi-network system, there - - may be paths through other nets which could connect the - - partitions. Unfortunately, these paths are not used within - - the strictly hierarchical routing procedures described above. - - And even if a "local" packet were sent to a neighboring - - network by a switch, it would likely be routed right back into - - the same paritition by the other network. - - This last point indicates another difficulty. Traffic in - - a remote network destined for the partitioned net will be - - routed into one or the other partition without consideration - - of its within-network switch. (Remember that other networks - - see a single best route to this network considered as a - - whole.) For some destinations, this will be the wrong - - partition and the destination will be unreachable by internal - - routes, leading to failure to deliver packets routed that way - - from remote nets [14,16]. - - One solution to this problem is to configure the system - - with sufficient robustness that partitions occur very rarely, - - and to simply tolerate the above delivery problems when they - - occur. This may be satisfactory for commercial systems where - - loads and outages are fairly predictable. - - In military systems where numerous disruptions are - - - -6- - - - anticipated, some means of forcing use of any available - - connectivity is desirable [3]. One approach is to treat the - - number of networks as dynamic, and turn a partitioned network - - into two networks, each of which can be an explicit - - destination. This requires rather complex methods of updating - - each network's view of the overall topology, and promulgates - - knowledge of a partition in one network to all other networks - - [8]. Another approach might be to return a special error - - message to the neighboring router forcing it to choose another - - entry point to the failed network. This - - backup-and-try-alternate method has been implemented for call - - setup in Telenet [19]. - - - "Fast Track" Routing - - It is not only in case of catastrophic events like - - partitioning that use of external routes between two points - - within the same region may be desirable. If two networks - - cover the same geographical area, for example a - - store-and-forward ground net and a broadcast satellite net, - - performance for some types of traffic may be improved by - - exiting the ground net near the source, going through the - - satellite net, and returning to the ground net near the - - destination. File transfer traffic might obtain higher - - throughput in this fashion, for example. - - To accomplish this, it is once again necessary to violate - - hierarchical routing. Either the network level routing must - - - -7- - - - distinguish between destinations best reached directly within - - the network and those best reached by going outside, or the - - within-network level must be made to view paths through other - - networks as a special kind of internal link that is available - - [9]. But in the latter case, the network level path status - - information must be brought into the internal link status - - maintenance procedures, probably a messy business. - - - Multihoming - - A subscriber may want to have multiple connections to a - - communication system for reliability or performance reasons. - - In the simplest case, several independent physical lines may - - be managed as one logical data link to obtain greater - - reliability, higher throughput, or lower cost (due to the - - idiosyncracies of carrier tariffs). Several such multiline - - procedures have been developed, for example in Transpac, and - - in X.75. The subscriber still has a single address, and no - - further complications are involved. - - In order to protect against node failures as well as line - - failures, lines to different switches must be used. In this - - case the user has two (or more) different addresses. The - - multiple addresses may be at any level in the address - - hierarchy: (e.g. two addresses within a network, or connected - - to two different nets). Multiple lines may also provide - - better performance by connecting directly to highly used areas - - - -8- - - - of the system and thus avoiding extra hops through the - - network. - - In order to obtain these benefits, the ability to use - - both addresses and to select the optimal address must exist. - - This may be accomplished by the source explicitly selecting - - one address. But this requires the source to know that there - - are multiple addresses for a given destination, to select the - - best address for performance, and to switch to an alternate - - after a failure. These admittedly weighty burdens could be - - aided by a remote directory/routing service. - - Alternatively, the packet could carry the multiple - - addresses explicitly, allowing each switch to pick the best of - - the best routes for each address. This of course adds to - - packet length and routing processing load. - - Instead of carrying the multiple addresses, the packet - - might carry the name (or "logical address") of the destination - - [14], leaving it for the switches to lookup and select the - - best address at each point. This would reduce packet - - complexity, but increase the switch processing demands even - - further. - - Thus we have a spectrum from high source effort to high - - network effort in making use of multiple addresses. In - - datagram nets it is probably impractical to require complex - - processing of the address on every packet, so more source - - effort will probably be required. In virtual circuit nets a - - - -9- - - - greater amount of effort can be expended by the net on the - - call setup request. Some public nets are already providing - - call forwarding facilities where a call to one inoperative or - - busy address will automatically be forwarded to an alternate - - address. - - There are problems at the destination as well as the - - source. To obtain the benefits of multihoming, the - - destination must be willing to accept traffic on all - - addresses. In virtual circuit nets, all the traffic for a - - given call must flow over the same line, so a failure during - - the call cannot be recovered by using an alternate address. - - The call must be cleared with possible loss of data, and a new - - one requested. - - Even in some datagram nets, higher level protocols are - - sensitive to the addresses of the local and remote hosts [3]. - - The source address is used to demultiplex incoming packets to - - the proper "connection," and packets coming from an alternate - - address from that used to establish the connection would not - - be recognized properly. To avoid this problem, the (single) - - name of the source could be used in the connection tables, but - - this would have to be carried in the packet. Alternatively, - - the multiple remote addresses could be stored as part of the - - connection table so that a packet specifying any one as source - - would match properly. These multiple addresses would have to - - be supplied as part of the connection establishment, and might - - - -10- - - - be profitably used in sending traffic if the original address - - failed. - - - Mobile Hosts - - Mobile hosts represent a special case of the multiple - - address problem. Of course all hosts are technically mobile - - in the sense that they occasionally change their address due - - to reconfiguration and movement within the user organization, - - or modifications to the network topology. Hence directory - - information to associate the name of a host with its current - - address is available in most systems, either locally or via - - some remote server. - - However, the problem of changing addresses becomes - - qualitatively different when the host is expected to change - - its network attachment point frequently, even in the midst of - - previously established connections. Special dynamic routing - - and addressing procedures have been developed for ground based - - mobile hosts communicating via packet radio within a single - - network [6]. As distances are increased and this technology - - is transferred to airplanes, crossing network boundaries may - - also be anticipated. - - One method for "tracking" mobile hosts would be to - - maintain a specialized database of their current locations - - (perhaps replicated for reliability), as is done within - - individual packet radio nets (by the "station"). The mobile - - hosts would send updates to this database as needed, and users - - - -11- - - - wishing to establish communication could query the database - - much as any other directory service. However, they should be - - prepared to receive frequent address change notifications in - - the course of a connection, either from the mobile host - - itself, alternate relay points, or the database. Further - - details of such a scheme may be found in [18]. - - Assuming traffic reaches them, destinations must still be - - "desensitized" from the particular source address as discussed - - above, since this will change. But there is no fixed set of - - alternates to exchange at connection setup time in this case, - - so packets probably must carry a unique identifier (name) of - - the source as well as its current address. For reliability - - purposes, they should probably also carry the name of the - - destination in case it is no longer associated with the - - address they reach. - - Mobile hosts may have multiple addresses at one moment as - - well as at different times (e.g., an aircraft may be in - - contact with two radio nets). Thus it becomes apparent that - - problems can interact with each other, making solutions more - - difficult. - - - Sharing Network Access - - The opposite problem to one host having several access - - lines to the net is several hosts sharing a single access - - line. This may be desirable where the number of physiscal - - interfaces or ports to the network is limited, or to share a - - - -12- - - - long access line among nearby subscribers. Public networks - - provide multidrop interfaces for terminal traffic (X.28), but - - not for packet mode traffic (X.25). For packet level devices, - - the alternative to providing a fixed and hence inefficient - - frequency or time division multiplexor must be some sort of - - "intelligent" multiplexor functioning at the packet level of - - network access protocols. - - Broadcast networks (e.g., Ethernets and ring nets) - - inherently provide this capability since every interface hears - - all traffic. Each interface is responsible for accepting - - appropriate traffic, and can sometimes be set to intercept - - traffic for multiple addresses. - - Another approach is to use a higher level of protocol to - - provide the necessary demultiplexing. The Arpanet access - - (Host-IMP) protocol does not allow for shared interfaces, and - - the limitation of 4 host interfaces on the original IMPs has - - proved troublesome in some cases. The Internet Protocol (IP) - - is the next level above particular network access protocols in - - the ARPA hierarchy [10,11]. IP addresses are sufficiently - - long to support multiple "logical" hosts at the same physical - - host port on the Arpanet. The Host-IMP header indicates the - - same physical host address for all such packets, and the - - higher level IP module at the destination demultiplexes the - - packets to the correct logical host. An independent device to - - perform this function has been developed based on PDP-11/03 - - - -13- - - - hardware. This "port expander" effectively turns each IMP - - port into 4-8 ports for hosts that use the Internet Protocol - - [7]. - - - Networks vs. Gateways as Switches - - In most models of hierarchical routing, networks are - - assumed to function as "super-switches," just as switching - - nodes do within one network. This view would be literally - - true if there were a single internet switching node in each - - net to which all incoming traffic from other nets was routed, - - and which then forwarded the traffic to another network or to - - a local host. Figure X shows a small example of a - - multi-network system and a routing table at one - - network/switch. The routing table gives the cost in internet - - hops and the best neighbor net to use to reach each other - - network in the system. - - For efficiency, this internet switching function is - - usually distributed to processors called "gateways" serving - - each of the internet links. Instead of being sent through the - - net to some central point, the internet traffic can be routed - - immediately at its entry point to the best exit point (either - - another gateway or the destination host). Figure Y shows the - - same internet system with internet links labeled, and a - - routing table at the gateway located on one incoming link. - - Since the gateway must send packets across its net to a - - - -14- - - - particular outgoing link, the routing table now shows the name - - of this next link rather than the next net. - - Another step in this progression leads to a single - - gateway located in the "middle" of each internet link rather - - than two separate processors in each net. The gateways take - - on the identity of their internet link(s). In this - - configuration, it is more realistic to count the network hops - - as the cost fucntion rather than the internet links. Hence - - each gateway is maintaining a distance (in network hops) - - between gateways, and a best next gateway to use for each - - destination. In this model, the gateways may be more - - realistically viewed as the switching nodes, and the networks - - as the links connecting them. This is essentially the dual of - - the earlier model as shown in Figure Z. But the destinations - - in the routing table are networks, not gateways, making this a - - curious sort of hybrid scheme. Hence it is not clear how to - - apply the "link state" type of routing procedures used in - - single networks (e.g., the Arpanet) to this multi-network - - configuration with gateways as switching nodes. - - - Local Site Connections - - Many sites start with a single host connected to a - - long-haul net. As the site develops, a few more hosts are - - connected, also directly to the long-haul switch. As even - - more hosts want to join the net at that site, problems result - - from costly or inefficient use of network access procedures. - - - -15- - - - Some sort of port expander or intelligent multiplexor devices - - as discussed above become attractive. - - This addresses the network connection problem, but not - - the local traffic requirements which are also growing, and may - - easily exceed traffic to remote sites. The network switch is - - handling a lot of traffic that never goes any further through - - the net. In some cases the port expanders may be capable of - - local switching, forming a rudimentary local net. - - To handle local traffic more efficiently, an explicit - - local net may be desirable. A question then arises as to - - whether this net should be "known" to the rest of the internet - - system, and connected to it via one or more full-fledged - - gateways, or whether it should be "invisible" at the internet - - level with its hosts appearing as if they were directly - - connected to the long-haul net. In the first case, local - - hosts have internet addresses on an explicit local net, while - - in the second they have addresses on the long-haul net. - - The explicit local net approach has certain advantages - - stemming from the explicit identification of the group of - - hosts at a site as a network. If the site is connectected to - - two or more other nets, then the internet routing mechansims - - will automatically choose the best path to the local hosts, - - which have only a single address (on their local net). - - However, this participation at the internet level can - - also be a problem. As the number of sites with local nets - - - -16- - - - increases, so will the number of nets and hence the size of - - the routing tables and updates which must be propagated all - - over the internet system. If the growth continues at a site - - so that there are several local nets connected by "local" - - gateways, should all of these nets and the local topology be - - known throughout the internet system? At some point treating - - local nets on a par with long-haul or backbone nets breaks - - down. - - The invisible local net approach, on the other hand, - - avoids problems of proliferating networks at the internet - - level. Many port expander or local distribution systems can - - perform an internal switching function, relieving the - - long-haul net switch of handling local traffic. But sites - - with connections to two or more nets will have multiple - - addresses for their hosts (one for each net the hosts appear - - "directly" connected to), and this causes some difficulties as - - discussed above under Multihoming. - - The best solution to this tradeoff is not clear. Adding - - an additional level to the addressing hierarchy may be a - - temporary solution, but it, too, will become strained in time. - - This suggests allowing a variable number of levels in the - - addressing hierarchy, adding new levels as complexity - - increases in some area. But this imposes a rigid ordering of - - levels and hence routing, while in reality "higher" and - - "lower" may depend on the viewpoint of the user. Further - - - -17- - - - research is needed on how internet systems may grow and still - - maintain efficient addressing and routing procedures. - - - Multiple Domains - - Most of the previous discussion has assumed a single - - compatible "domain" in which network addressing and routing - - procedures are carried out uniformly. In the real world we - - have already seen the growth of several large domains with - - different conventions, including public, mainframe - - manufacturer, Defense Department, and local networks. It is - - unrealistic and perhaps impossible that these diverse groups - - will ever adopt a single addressing scheme, so we must live - - with the problem of multiple domains for the foreseeable - - future. - - One approach is to assume that one domain will make use - - of another merely as transport medium between its own - - homogeneous components. The used system appears merely as one - - of several types of media that the using system can employ via - - appropriate access protocols. The using system's packets will - - be "encapsulated" in the used system's protocols. Of course - - the two domains can make use of each other, achieving - - coexistence, if not complete interoperation, by "mutual - - encapsulation" [15]. - - To achieve full interoperability between heterogeneous - - systems, each system must recognize the hosts on the other. - - - -18- - - - Two basic choices are possible for crossing domain boundaries: - - mapping and source routing. - - In the mapping approach, each domain provides a set of - - otherwise unused internal addresses which it maps to - - particular addresses in other domains. Traffic addressed to - - one of these "pseudo-addresses" is routed to an interface or - - gateway to the appropriate other domain, at which point the - - pseudo-address is converted into an address in the other - - domain. In the simplest case, this requires only bilateral - - agreements between domains, but it may also be extended across - - intermediaries with further collaboration. - - A disadvantage of this approach is that the number of - - external addresses available is limited to those for which - - mappings have been previously defined and installed. - - Typically only a small fraction of remote parties are - - supported. Another disadvantage is that the same party has - - different addresses in different domains--the directory of - - names to addresses has many entries for each name, one for - - each domain supporting that party. The major advantage is - - that for those names supported, the users may address remote - - parties in exactly the same fashion as local ones, with no - - additional procedures. - - In source routing [14,17,5], the source specifies a route - - to reach the destination consisting of the addresses of - - successive inter-domain gateways, and ending with the final - - - -19- - - - destination. Each address in this list is interpreted within - - a domain where it is meaningful, and then removed so that the - - next address is available in the next domain transitted. - - Using this method, the full range of remote parties is - - accessable, and the inter-domain gateways do not have to - - maintain any predefined mappings or perform address - - conversions. The burden is shifted to the source which must - - know enough about the overall topology and address formats to - - construct a successful source route. Of course packet headers - - become bigger, and packet processing increases to accomodate - - the variable length source routes. Once again, the "address" - - of a given party varies from one domain to another, but it is - - now possible to combine this information--if the directory - - gives the source route to X from domain A, and a user in - - domain B knows a route to domain A, he can concatenate them to - - get a route to X from B (although it may not be an optimal - - route). - - It is often useful to collect a return route at the same - - time the source route is being consumed. This allows the - - destination to reply. In general the return route is not - - simply the inverse of the source route. The return addresses - - are added as the packet enters each domain, while the - - successive destination addresses are removed as the packet - - exits each domain (see [17] for a detailed example). - - The "network independent" transport protocol [2] - - - -20- - - - developed by the British PSS Users Forum is one of the first - - to explicitly deal with the problem of multiple domains. They - - suggest essentially a source routing mechanism. There are - - additional provisions for translating explicitly identified - - address information transmitted as data between end users. - - The protocol assumes a route setup procedure as part of call - - establishment so that the source route need only be carried in - - the call request packet. - - The public networks have also provided for a limited form - - of source routing in the Call User Data field of X.25 call - - request packets. This field may be used by the destination - - DTE as additional address information for subsequent steps in - - a call. This mechanism was used to allow international calls - - between Canadian and US public networks before the - - hierarchical X.121 numbering plan was put into effect [12]. - - The Call User Data field is also beginning to be used in an ad - - hoc fashion to provide addressing within various private - - and/or local nets connected to public nets. - - The Arpa Internet Protocol also supports a source routing - - option, but addresses within the route are all expected to be - - IP format addresses [11]. - - - Conclusions - - We have identified a number of problems that must be - - considered in going beyond the simple network interconection - - techniques that are in use today. The significance of these - - - -21- - - - problems is just beginning to be widely percieved. Some - - preliminary solutions have been proposed, but little practical - - experience exists. Much work remains to be done in clarifying - - the problems, and in developing and evaluating solutions. - - - Acknowledgements - - Many of the concepts presented in this paper have been - - discussed over several years as part of the ARPA Internet - - project. Much of the credit for developing and clarifying - - these ideas belongs to my colleagues at ISI and the other - - sites engaged in this project. - - - References - - Note: Several of the references listed below are Internet - Experiment Notes, unpublished memos written for the ARPA - Internet project. - - [1] D. R. Boggs, J. F. Shoch, E. A. Taft, and R. M. Metcalfe, - "Pup: An Internetwork Architecture," IEEE Trans. on - Communications 28, 4, April 1980, pp. 612-623. - - [2] British Post Office PSS User Forum, A Network Independent - Transport Service, February 1980. - - [3] V. G. Cerf, Internet Addressing and Naming in a Tactical - Environment, Internet Experiment Note 110, August 1979. - - [4] V. G. Cerf and P. T. Kirstein, "Issues in Packet-Network - Interconnection," Proc. IEEE 66, 11, November 1978, pp. - 1386-1408. - - [5] D. D. Clark and D. Cohen, A Proposal for Addressing and - Routing in the Internet, Internet Experiment Note 46, - June 1978. - - [6] R. E. Kahn, S. A. Gronemeyer, J. Burchfiel, and R. C. - Kunzelman, "Advances in Packet Radio Technology," Proc. - IEEE 66, 11, November 1978, pp. 1468-1496. - - - -22- - - - [7] H. A. Nelson, J. E. Mathis, and J. M. Lieb, The ARPANET - IMP Port Expander, SRI Report 1080-140-1, November 1980. - - [8] R. Perlman, Flying Packet Radios and Network Partitions, - Internet Experiment Note 146, June 1980. - - [9] R. Perlman, Utilizing Internet Routes as Expressways - Through Slow Nets, Internet Experiment Note 147, June - 1980. - - [10] J. B. Postel, "Internetwork Protocol Approaches," IEEE - Trans. on Communications 28, 4, April 1980, pp. 604-611. - - [11] J. B. Postel, C. A. Sunshine, and D. Cohen, "The ARPA - Internet Protocol," to appear in Computer Networks, 1981. - - [12] A. M. Rybczynski, D. F. Weir, and I. M. Cunningham, - "Datapac Internetworking for International Services," - Proc. 4th Int. Conf. on Computer Communication, September - 1978, pp. 47-56. - - [13] A. M. Rybczinski, J. D. Palframan, and A. Thomas, "Design - of the Datapac X.75 Internetworking Capability," Proc. - 5th Int. Conf. on Computer Communication, October 1980, - pp. 735-740. - - [14] J. F. Shoch, "Inter-Network Naming, Addressing, and - Routing," Proc. 17th IEEE Computer Society Int. Conf., - September 1978, pp. 72-79. - - [15] J. F. Shoch, D. Cohen, and E. A. Taft, "Mutual - Encapsulation of Internetwork Protocols," to appear in - Computer Networks, 1981. - - [16] C. A. Sunshine, "Interconnection of Computer Networks," - Computer Networks 1, 3, January 1977, pp. 175-195. - - [17] C. A. Sunshine, "Source Routing in Computer Networks," - ACM SIGCOMM Computer Communication Rev. 7, 1, January - 1977, pp. 29-33. - - [18] C. A. Sunshine and J. B. Postel, Addressing Mobile Hosts - in the ARPA Internet Environment, Internet Experiment - Note 135, March 1980. - - [19] D. F. Weir, J. B. Holmblad, and A. C. Rothberg, "An X.75 - Based Network Architecture," Proc. 5th Int. Conf. on - Computer Communication, October 1980, pp. 741-750. diff --git a/text/ien/ien179.txt b/text/ien/ien179.txt deleted file mode 100644 index 866c38e3..00000000 --- a/text/ien/ien179.txt +++ /dev/null @@ -1,207 +0,0 @@ - - -IEN-179 - March 11th, 1981 - Danny Cohen - USC / ISI - - Addressing and Routing - ---------------------- - -There are several approaches to addressing such as hierarchical and -flat, but there is only one approach to routing: Take the best (usually -the shortest) path. - -The choice of addressing scheme which is both manageable and may support -an efficient routing is the subject of this note. - -Hierarchical addressing is probably the easiest to manage. The universe -is divided into some small number of units, and each of which is -assigned an address which is some kind of a string, typically numeric -but not necessarily so. - -If any of these units contains more than one member then the same -process is repeated (iterated). The address of the subunit is appended -somehow, typically to the end (but sometimes to the front) of the -address of the parent unit. - -This hierarchy is easy to manage such that addresses are uniquely -assigned. - -Typically in an hierarchy each unit is capable of communicating both -with its ancestor and with all of its immediate descendants. - -A default routing can always be easily derived from an hierarchical -address. This route consists of going up to a common ancestor (parent) -and then down to the destination. - -Hence, an hierarchical address is always a route from the root (sorry -about that). - -This default routing requires only N-1 communication links which is the -minimal connectivity for N nodes. - -In this situation the default route is also the only existing route, up -to trivial changes. - -In reality, for efficiency reasons, the connectivity is richer than -that. Typically, brothers are in direct communication, and a "top" -(root) may not exist at all. - -IEN-179 [Page 2] - - - -Because of the connectivity richness the routing process is non-trivial -and requires that decisions be made. - -Routing is the process of chosing a possible communication link, where -there is more than one. - -The other extreme of addressing is the flat space approach where -locations have totally random dependency on their addresses, meaning -that a fully instantiated table lookup must be used in order to locate -an address. - -The important feature of flat and random addressing is that it can -conveniently support mobile users. - -A simple, however expensive, way for implementing routing when flat -addressing is used is by providing all the switches (where routing -decisions have to be made) with tables containing all the required -information about all the addresses. - -In the case of flat addressing it is required that all addresses be -globally unique. It is not required however that all addresses be known -to all the switching nodes, provided that nodes can ask for, and get, -information about addresses which were not known to them. - -In the hierarchical case it is possible either that all addresses be -specified in an absolute (complete) mode or in a relative (partial) -mode. The former requires that all addresses be fully expanded, and -have the same format regardless of where they are specified (e.g., -1-213-822-1511x104), and the latter supports short forms for local -addresses, at the possible expense of additional control information for -remote addresses. The same address shown before may be specified as 104 -from inside ISI as 822-1511x104 from the STN at LA, as 9-822-1511x104 -from UCLA, as 213-822-1511x104 from Palo Alto or as -010-1-213-822-1511x104 from London. Similarly, intra-office memos do -not require long addresses, and intra-country mail does not require the -country name to be specified in the address. - -Any system which can handle perfectly flat addresses can take advantage -of rich communication connectivity and can also handle multi-homing -(destination with more than one address). - -An hierarchical addressing scheme which uses only the default -hierarchical routing may have difficulties in handling efficiently rich -connectivity and multi-homing. - -However, between these two extremes there is a wide spectrum of other -possibilities. - -The claim of the rest of this paper is that (i) hierarchical addresses -are easier to manage, and (ii) if you can handle flat addresses - you -can handle hierarchical addresses even better. - -IEN-179 [Page 3] - - - -Hierarchical addressing is at least as good (in any respect) as flat one -because flat addressing is a special case of hierarchical addressing, -but not the other way round. - -Suppose that there is a system which can handle very well flat -addressing. Since the only requirement for the flat addressing is that -addresses are unique, one can assign unique addresses in any way, for -example in a very structured way, like hierarchical. The introduction -of hierarchical addresses to the flat addressing scheme should not -degrade its performance since the uniqueness was not disturbed. - -Suppose further that all the addresses are examined at every switch. -All addresses which result in the same routing decisions by both the -flat addressing scheme and by the hierarchical addressing are marked, -and the entries corresponding to them are removed from the flat -addressing tables. - -This causes no degradation of the flat addressing scheme (which was -assumed to be a good one to start with) since the hierarchical -addressing yields the same routing decision for these addresses. This -process repeats at all levels, and only the "GCD" addresses are stored. - -Hence, after removing these addresses the size of the tables decreases -in all switches which probably may yield some performance improvement -and increased capacities. In fact, the resulting scheme is now an -hierarchical scheme with tables of exceptions which are handled in the -best known way. The format of the exception table is discussed later. - -Note that this results in uneven distribution of knowledge. At different -switches different set of destinations are known. For example, all the -traffic to the East coast may be treated in the same way when being far -away from there, but as the message approaches its destination, it is -likely that the granularity of the address examination changes such that -more details are used. When leaving Tokyo the only part of the address -which was used for the routing was the fact that the message is -addressed to the States. After arriving at California, the Boston -traffic may be treated separately from the Washington traffic, later the -Boston traffic is examined even closer to distinguish the Cambridge from -the Lexington traffic, and later the MIT traffic is isolated from the -Harvard and the BBN traffic. Upon entering MIT the traffic is sorted -further to the appropriate local MIT net, and later to its terminal -destination. - -This scheme allows the switches in Tokyo NOT to know about the internal -structure of the addressing in the USA in general and at MIT in -particular. It also helps the switches in California to take advantage -of special HU (high utilization) trunks to the Boston area, if any. - -Since this hybrid contains both the flat and the hierarchical -addressing, multi homing can be handled as well as by flat addressing. - -IEN-179 [Page 4] - - - -Another variant of this scheme is not to start with full tables of flat -addresses (which are impossible to manage) but to treat the system as if -it was a pure hierarchical one, but in addition to maintain a table of -exception which is dynamically updated. - -The entries in these exception tables should include both addresses, -their granularity level and the associated routing decision. If, for -example, addresses always consist of a sequence of bytes (of any size) -the granularity level may be measured by the number of bytes which are -used. - -For example, a telephone exchange in Marina del Rey may know that the -traffic for 1-213-828X and 1-213-821X is local, all the traffic for -addresses 2X and 4X (Europe) should be routed to a certain cable which -goes directly to Europe, the traffic to 1-212X be routed to a some cable -which goes directly to NY, the traffic to either 1-617-49X or 1-617-253X -should be routed to the HU trunk which goes to Cambridge, and similarly -the traffic to 1-202-694-3049 should be given to a certain line which is -connected to a certain destination, somewhere. All the rest of the -traffic should be routed to downtown LA where smarter computers can -solve the routing. - -In the above example the various entries have different levels of -granularity, varying from 1 (in the case of Europe) to 11 (in the last -example). - -Such a scheme yields tables of reasonable size, can benefit from any -structure and logic/regularity (as opposed to randomness) of the -communication subsystem, can handle multihoming, and has the capability -to utilize special irregular HU lines and shortcuts. - -Note that in this scheme the addressing may be highly structured (e.g., -in a hierarchical way) but the routing is not necessarily so. The -routing is hierarchical only when this is known to be the right thing, -or when nothing else is known and the hierarchical routing is used as a -default. - -In summary, this is a way to benefit from the simplicity of hierarchical -routing whenever possible, while being able to use the flat-addressing -features when needed, on a case-by-case basis, without the need to -maintain tables of unreasonable size. - diff --git a/text/ien/ien180.txt b/text/ien/ien180.txt deleted file mode 100644 index a864d847..00000000 --- a/text/ien/ien180.txt +++ /dev/null @@ -1,236 +0,0 @@ - - - -IEN 180 - - - Danny Cohen - USC / ISI - March 1981 - - - A suggestion for internet message forwarding for MOSIS - ------------------------------------------------------ - -Messages are forwarded across (between) networks by Message Forwarding -Programs (MFP) which live on hosts with access to more than one network. - -Note that in this discussion the term NETWORK means a message system. -These message systems typically live on different networks but this is -not necessarily so. - -The operation of the scheme is based on the following two fields: - - - FSR: Forward-Source-Route, and - - - RSR: Return-Source-Route. - -These two field are to be included in the BODY of the messages. -However, the TO, the FROM and the SUBJECT fields, mentioned later in -this note, are the native ones of the message systems in use, if any. - -The basic operation of an MFP is: - - - To verify that this message was indeed sent to it (this MFP), - by comparing the first address in the FSR field with its (the - MFP's) address. This address is expacted to be the same as the - TO field (if any) of the message in the previous hop, - augmented by the designation of that network. - - - To direct each message to its next destination which is the - second address in the FSR field. - - - To appends to the beginning of the the RSR its own (the MFP's) - address as used in the environment to which the message is - forwarded. This is expacted to be the same as the FROM field - (if any) of the message in its next hop, augmented by the - designation of that network. - - - - - - - - - - - -1- - - - - - -Each address in the FRS should contain an indication (designation) of -the network to which the message should be forwarded. This indication -has to be stripped before forwarding the message to that environment -because most (all?) networks do not recognize the fact that their -address space (name space) does not cover the entire universe. -Similarly, when any address is appended to the RSR the name of the -network in which it is valid has to be included, too. - -If the final destination of the FSR is an MFP then it will not be -forwarded any further, obviously. - -Similarly, if a MFP is asked to forward a message to an environment -(net) to which it has no immediate access it may (i) discard the -message, (ii) discard the messages and send an error message to the -originator, or (iii) cooperate with a smarter MFP which is as smart as -internet gateways and can figure how to get there from here. - -For the MOSIS application, type-(i) MFPs will suffice. - -When the message arrives to its final destination, the FSR field -includes only the address of this destination. Similarly, when a -message leaves its source, the RSR field includes only the address of -this source. - -It is suggested that the SUBJECT field will be carried through without -changes, whenever possible. Hence, it is an End/End entity. - -It is also suggested that all the other header fields (i.e., except the -SUBJECT field) will be discarded at each MFP. - - - - - - - - - - - - - - - - - - - - - - - - - -2- - - - - - E x a m p l e - -Suppose that S on net-A wants to send a message to R on net-C. Suppose -also that S knows that MFP-1 has access both to net-A and to net-B, and -that MFP-2 has access both to net-B and to net-C. The addresses of -MFP-1 are a1 and b1 on nets A and B, respectively, and those of MFP-2 -are b2 and c2 on nets B and C. - -While traversing net-A (from S to MFP-1) the message will have the -following format: - - To: a1 - From: S - FSR: [A] a1 // [B] b2 // [C] R - RSR: [A] S - -While traversing net-B (from MFP-1 to MFP-2) the message will have the -following format: - - To: b2 - From: b1 - FSR: [B] b2 // [C] R - RSR: [B] b1 // [A] S - -While traversing net-C (from MFP-2 to R) the message will have the -following format: - - To: R - From: c2 - FSR: [C] R - RSR: [C] c2 // [B] b1 // [A] S - -While traversing net-C (from R to MFP-2) the reply will have the -following format: - - To: c2 - From: R - FSR: [C] c2 // [B] b1 // [A] S - RSR: [C] R - -and so on. Note that the total number of addresses, in both the FSR and -the RSR fields, does not change while traversing the IN-environment. - - - - - - - - - - - - - -3- - - - - - - An Actual Proposal for InterMailing - ----------------------------------- - -We propose to implement the above by having a TOPS-20 program running in -[ISIF]. - -This program would run periodically, every 10 minutes or so and check -the mail box of this directory. Any message which is found there will -be forwarded according to its FSR list. - -Messages with bad format or illegal FSR or RSR will not be forwarded, -and NO error message will be sent anywhere. Hence, they are discarded -for all practical purposes. Such illegal messages are those without an -FSR starting within the first 20 lines, bad format, any network (i.e., -mail system) not served yet, first net in the RSR not same as in the -FSR, etc. - -The format of the FSR is a contiguous set of lines each of the format: -"FSR: []
" where is either "ARPANET" or -"TELEMAIL" (more may be added later) and
is a mail box address -in that mail-system. Note that the net designation must be in brackets. - -The RSR is of similar format as the FSR except that each of its lines -starts with "RSR:" instead of "FSR:". The first RSR line must follow -immediately the last FSR line, without any blank lines in between. - -The addresses of this InterMailer are: - - On the ARPAnet side: InterMail@ISIF, and - On the TELEMAIL side: InterMail/USCISI. - -Hence, a message from the user FOO at UCLA on TELEMAIL addressed to -MOSIS at ISIF on the ARPAnet may have the following lines when given to -TELEMAIL for delivery via InterMail/USCISI: - - FSR: [TELEMAIL]InterMail/USCISI - FSR: [ARPAnet] MOSIS@ISIF - RSR: [TELEMAIL]FOO/UCLA - -The return message from MOSIS may have the following lines when given to -the ARPAnet for delivery via InterMail@ISIF: - - FSR: [ARPAnet] InterMail@ISIF - FSR: [TELEMAIL]FOO/UCLA - RSR: [ARPAnet] MOSIS@ISIF - - - - - - - - - -4- - diff --git a/text/ien/ien181.txt b/text/ien/ien181.txt deleted file mode 100644 index 242b6877..00000000 --- a/text/ien/ien181.txt +++ /dev/null @@ -1,524 +0,0 @@ -To: Linda at ISIF -Cc: JHaverty at BBNG - - - - - - - - - - - IEN-181 - - - - - - - - - - - - - - - - Van Gateway: Some Routing - and Performance Issues - - Jack Haverty - - Bolt Beranek and Newman Inc. - - May 1981 - - - - - - - - - - - - - - - - - - - - - - - - - - -IEN-181 Bolt Beranek and Newman Inc. - Jack Haverty - - - - The VAN gateway is a new facility currently under - -development for the internet community. Its intended purpose is - -to allow interconnection of the ARPANET and therefore the - -Internet with Telenet, but it also introduces a new mechanism - -whose failure or misuse can seriously affect the system. The key - -problem with use of the VAN gateway is to allow and encourage - -using it for legitimate purposes, while preventing utilization by - -unauthorized users or as a result of a software or hardware - -failure in the networks involved. - - - There are two aspects to this problem. The first control on - -the gateway usage must be to assure that the packets being - -handled are legitimate, in that they are associated with - -authorized users. This is a specific example of the need for - -mechanisms which have been discussed at various times as - -"restricted routing" mechanisms. - - - The second control problem is to assure that the gateway is - -being used as intended, with a reasonable level of traffic for - -the function being performed. Even if packets are being - -processed for authorized users, it is possible for failures - -within the routing system or host software, for example, to cause - -packets to loop endlessly. Failures of the network protocols - -could similarly cause duplicate packets to be sent needlessly. - - - - - - -1- - - -IEN-181 Bolt Beranek and Newman Inc. - Jack Haverty - - - - In both cases, the concern results from the highly visible - -impact which use of Telenet incurs, since charges are computed on - -a per-packet basis. However, the same issues are inherent in the - -Catenet itself, in that misuse of the network consumes resources - -which are then unavailable for legitimate use. Thus the problem - -of managing use of the gateway is most critical for the VAN - -gateway, but applies as well to all gateways, and in fact to any - -shared resource. - - - In the initial implementation of the VAN gateway, resource - -management is being provided by use of tables which enumerate the - -authorized users of the gateway. These users are simply the - -addresses of the hosts, both on the ARPANET (Catenet) side and on - -the Telenet side, which will be acceptable as valid source and - -destination addresses of packets which transit the gateway. All - -other packets which are received by the gateway will be - -discarded. - - - In the internet architecture, the Telenet side of the - -gateway appears as a single network to the internet mechanisms. - -The gateway contains a table which maps artificial host addresses - -on that network into real 14-digit Telenet/X.25 addresses, in - -much the same way as other networks convert internet addresses - -into addresses for their particular attached network. X.25 - -virtual circuits are only permitted between the gateway and X.25 - - - - -2- - - -IEN-181 Bolt Beranek and Newman Inc. - Jack Haverty - - - -hosts which are present in this translation table, which - -effectively defines the set of authorized gateway users in the - -X.25 community. - - - No similar table is necessary for translation of addresses - -on the ARPANET side of the gateway, since this translation is - -well defined by the internet protocol. Without any additional - -mechanisms, this would permit any ARPANET host to use the VAN - -gateway. In addition, since gateways to other networks are - -simply ARPANET hosts, this would permit any host on the Catenet - -to use the VAN gateway. - - - To restrict the user community of the VAN gateway, a second - -table is provided, which enumerates all internet addresses which - -are acceptable as sources or destinations on the ARPANET side of - -the gateway. Each internet datagram which arrives from the - -ARPANET or Telenet is checked to assure that the source and - -destination addresses in the internet header are listed in one of - -the two tables which define the set of hosts which are permitted - -to use the VAN gateway. - - - The table entries will be set up directly by DARPA. In - -selecting the set of valid hosts, the reliability of the data - -presented to the gateway should be considered. - - - - - - - -3- - - -IEN-181 Bolt Beranek and Newman Inc. - Jack Haverty - - - - In particular, we note that there is a significant - -difference in the addresses presented at the gateway in the - -internet header of each packet. If such an address is in fact on - -the ARPANET, the gateway can verify it by comparison with the - -address supplied by the IMP in the ARPANET leader of the packet. - -For packets sent to the ARPANET, one can similarly expect the IMP - -subnet to deliver the packet to the host specified in the ARPANET - -leader. - - - If the address of a packet handled by the gateway is on - -another component network of the Catenet, the packet is - -necessarily handled through one or more gateways. The internet - -structure permits gateways to freely enter the system. Gateways - -are in general under the control of the organization which owns - -them and/or the attached network. Gateways in general do not - -check the addresses in the internet headers of packets which they - -process, so it is possible for malfunctioning hardware or - -software to emit packets with incorrect addresses. If such - -addresses happen to be present in the VAN gateway tables, these - -packets will be processed by the VAN gateway. - - - The impact of this situation on the policy for allowing use - -of the VAN gateway is that hosts on networks other than the - -ARPANET are to be considered somewhat less reliable in terms of - -enforcement of the usage policy. The mechanisms in the initial - - - - -4- - - -IEN-181 Bolt Beranek and Newman Inc. - Jack Haverty - - - -VAN gateway implementation will provide some degree of control - -over the use of the gateway, but these mechanisms are not to be - -considered appropriate or complete in the general sense, and they - -are not proof against failures. These mechanisms are intended - -only as an interim measure. - - - We suggest that further development work on the internet - -gateway system, of which the VAN gateway is a component, should - -address the problems of resource control at the internet system - -level. Any mechanism which restricts the usage of a gateway must - -be designed in conjunction with other network mechanisms, such as - -routing, flow control, load sharing, and error control. - - - As an example, we can consider a hypothetical configuration - -in which two VAN gateways are connected to Telenet, one from - -ARPANET, and the other from SATNET, to support traffic between - -Telenet users and hosts on ARPANET or SATNET. Only these - -user/hosts would be listed in the VAN gateway tables. - - - Since the VAN gateways are participants in the internet - -routing mechanisms, failure of the gateway between ARPANET and - -SATNET would cause the system to recognize the path through - -TELENET, as a transit network, as a viable route for ARPANET- - -SATNET traffic. However, this traffic would be discarded at the - -VAN gateway because the addresses are not listed in its tables. - - - - - -5- - - -IEN-181 Bolt Beranek and Newman Inc. - Jack Haverty - - - - This scenario will be avoided by preventing the two VAN - -gateways from being "neighbors" for routing purposes, which is - -acceptable only in restricted configurations. The general - -problem results from the usage restrictions at the VAN gateway, - -which makes the path a valid route for one class of packets, but - -invalid for other classes. The current routing mechanism cannot - -handle this situation. - - - In addition, the effect of the usage restrictions on future - -mechanisms for handling partitioned networks, and load sharing of - -gateway paths, must be investigated. - - - We have two mechanisms to propose for consideration as - -mechanisms to attack this problem. The first is a resource - -control model which is a result of the TIP Login work. The - -second involves the use of performance models, which monitor use - -of resources to determine if unexpected behavior occurs. These - -two mechanisms can be introduced to work more effectively in the - -VAN gateway problem. - - - The architecture for the TIP Login system identifies several - -abstract modules which interact to implement the resource control - -functions. A "Control Point" is the module which directly - -controls the use of a resource. It is responsible for detecting - -an attempt to use some resource, collecting such information - - - - - -6- - - -IEN-181 Bolt Beranek and Newman Inc. - Jack Haverty - - - -which identifies who is trying to use the resource and what they - -are trying to do, and then permitting or denying use of the - -resource. The decision concerning whether or not a particular - -usage is allowed is made by a "Decision Module." This module - -takes the information supplied by the Control Point, and applies - -the algorithm which defines the resource usage policy. - -Typically, and particularly in the Tip Login case, the Decision - -Module will obtain more information about the particular user - -and/or resource involved in the decision, by using a distributed - -database system. - - - In the TIP Login system, the Control Point is at each TIP. - -Decision Modules are located in special-purpose hosts. The - -database system is present in those hosts as well as on larger - -database-maintenance hosts, where tools to manipulate and modify - -the database exist. Typically the Decision Module identifies the - -particular individual attempting to use a TIP, and retrieves a - -record of information specific to that individual, which defines - -his authorizations (or lack thereof). - - - Much of this mechanism should prove to be useful as a basis - -for control of gateways as well. In such a system, the control - -points would be at the gateways. Decision Modules might also be - -at the gateways, if decisions must be made on each packet. - -Decisions might be based on source or destination addresses, or - - - - -7- - - -IEN-181 Bolt Beranek and Newman Inc. - Jack Haverty - - - -on the identify of the individual responsible for the packet. We - -suggest that this approach be considered for further research. - - - A problem which is not being addressed currently is the - -second control problem mentioned earlier, namely the monitoring - -of the use of some resource by an authorized user, to guarantee - -that the resource is being used as intended. In the VAN gateway - -case, for example, a malfunctioning TCP might cause many - -unnecessary packets to be handled, but since they are associated - -with authorized addresses, no control is applied. In addition to - -the obvious cost and performance penalties, lack of monitoring - -precludes the use of policies which grant limited use of - -resources to, for example, allow some users to handle only low- - -throughput traffic, or low priority traffic. We believe that the - -use of performance models, embedded within the gateways and for - -hosts, is a promising direction for attacking this problem. - - - Limitations of the current LSI-11 implementation of the VAN - -gateway are likely to preclude any significant testing of these - -approaches. We have been pursuing these ideas as research - -issues, which have surfaced during the current implementation - -efforts. - - - - - - - - - - -8- diff --git a/text/ien/ien182.txt b/text/ien/ien182.txt deleted file mode 100644 index 80bce656..00000000 --- a/text/ien/ien182.txt +++ /dev/null @@ -1,3132 +0,0 @@ -IEN-182 - - - - - - - - - - - - - - - - - - - - - - - Issues in Buffer Management - - Bolt Beranek and Newman Inc. - - Eric C. Rosen - - May 1980 - - - - - - - - - - - - - - - - - - - - - - - - - - - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - - Table of Contents - - - - -1 Introduction.......................................... 1 -2 Overview.............................................. 2 -3 General Considerations of Buffer Management........... 3 -4 Buffer Management with an Ample Supply of - Buffers............................................... 9 -4.1 Buffering for Output............................... 16 -4.2 Buffering for Input................................ 18 -4.3 Buffering for Generating Control Messages.......... 28 -4.4 Buffering Data at the Source Node.................. 29 -5 Buffer Management with a Shortage of Buffers - (ARPANET).............................................. 32 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -i- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -1 Introduction - - - This note is an abridged extract from BBN Report No. - -4473, "ARPANET Routing Algorithm Improvements, Volume 1", by - -Rosen et al. It discusses the issues of buffer management in the - -switches which implement a network and is based on experiences - -gained during the evolution of the ARPANET. - - - Since the Internet is itself a network, and hosts or - -gateways implementing TCP, IP, and other protocols have similar - -buffer management design decisions, this IEN is intended to - -distill some of the ARPANET issues and present them to a wider - -audience currently grappling with some of the same problems. - - - The original report is quite large (500 pages). This is - -the first of several such extracts we plan to produce to serve as - -background for the internet project work. The report was first - -published in August 1980. - - - Some of the terminology used may cause confusion if - -associated with internet work, for example "reassembly". This - -note discusses mechanisms purely internal to the ARPANET, which - -itself has many similarities to internet and TCP mechanisms in - -internet hosts. The ARPANET IMPs use retransmission, ACKS, flow - -control/windowing, fragmentation and reassembly, out-of-order - -sequencing, and other mechanisms which create a serial byte- - - - - -1- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -stream service based on a datagram network, much as TCP does. - - - The issues to be discussed in these notes are at least - -partially applicable to the internet mechanisms, including TCP in - -hosts, as well as IP in gateways, since those mechanisms are - -functionally similar in the services they are intended to - -implement. We propose no solutions here, such as buffer - -mechanisms for TCP implementations, but rather intend to explore - -the issues which motivated the IMP implementation in the ARPANET, - -to help TCP and internet implementors in their similar tasks of - -creating an Internet. - - - Anyone interested in seeing how the issues raised in this - -discussion can be applied to the ARPANET will want to see Chapter - -7 of BBN Report No. 4088, as well as Chapter 1.5 of BBN Report - -No. 4473, which are not included in this excerpt. Copies of - -those reports are available from the author. - - - - -2 Overview - - - We will begin by considering, in general, the function of a - -buffer management scheme in a packet-switching network. We will - -discuss the way in which such a procedure might be designed in an - -"ideal" network, where there is an ample supply of buffers. We - -will see that, no matter how many buffers there are, careful - - - - -2- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -buffer management is essential to good performance. We will then - -discuss the way in which procedures designed for an ideal network - -need to be modified for a network (like the ARPANET and most - -other networks) in which buffer space is a scarce resource. - -Finally, we will compare the current ARPANET buffer management - -procedures to the procedures we develop, and will recommend - -changes to the former. - - - - -3 General Considerations of Buffer Management - - - A network node must execute many different functions for - -which it requires buffers. Among these functions are: - - - 1) Transmitting packets on the various output devices - - (inter-node trunks or host access lines). Packets must - - be buffered while queuing for these devices, while in - - transmission on these devices, and (sometimes) while - - awaiting acknowledgment from the node or host on the - - other side of the device. - - - 2) Receiving packets from the various input devices. - - - 3) Reassembling messages so they can be transmitted to the - - destination host. - - - 4) Processing packets. Packets must be buffered while the - - - - -3- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - - CPU is processing them, and they may have to occupy - - buffers while queuing for a busy processor. - - - 5) Creating protocol or control messages. The IMPs often - - need to create control messages in order to run the many - - protocols necessary for proper network operation. - - -It should be clear that, no matter how many buffers exist in a - -node, a "laissez-faire" approach to buffer management cannot - -possibly succeed. In a laissez-faire approach, buffers are - -allocated to the various processes that need them on a first- - -come, first-serve basis. Any process, at any time, can obtain - -any number of buffers that are available at that time. No import - -is given to considerations of fairness or of overall network - -performance. Therefore, a laissez-faire scheme will be prone to - -lock-up. Suppose, for example, that the output processes in some - -node have taken all the buffers. Then no input can be done. If, - -as is often the case, the output processes cannot free their - -buffers until an acknowledgment is received from some other node, - -and if acknowledgments cannot be received because no buffers are - -available for input, then there is a deadlock, and the buffers - -will never be freed. It is important to understand that this - -sort of deadlock is not caused by a SHORTAGE of buffer space. No - -matter how much buffer space is available, it is always possible, - -for example, that the network will try to utilize some output - - - - -4- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -device at a higher capacity than it is capable of handling. With - -a laissez-faire approach to buffer management, there is no bound - -on the number of buffers which may end up holding packets for the - -overloaded device. The possibility of deadlock cannot be - -eliminated by adding more buffers. - - - This particular sort of deadlock is just one example of a - -more general situation. For the network to perform well, all the - -processes in the nodes must be able to run at an adequate rate. - -This cannot be guaranteed unless each process is guaranteed the - -resources that it needs. Unless each process is explicitly - -prevented from "hogging" resources, other processes may be unable - -to run, and the network will not, in general, be able to give - -adequate performance. It must be understood, of course, that the - -buffer supply is not the only resource which must be managed in - -order to prevent hogging. Similar sorts of deadlocks can occur - -if some processes are allowed unrestricted access to CPU cycles, - -thereby preventing others from ever running at all. Although - -this chapter is primarily concerned only with management of the - -buffer space resource, management of the CPU resource is equally - -important. Furthermore, it must not be imagined that deadlocks - -are the only sort of performance degradation against which a - -buffer management scheme must protect. Freedom from deadlocks is - -only a necessary, not a sufficient, condition of adequate network - - - - - -5- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -performance. A scheme which dedicates some small number of - -buffers to each process, while taking a laissez-faire approach to - -the large majority of the buffers, may prevent deadlocks, since - -it will permit each process to run at some slow but non-zero - -rate. However, such an approach may not allow all the processes - -to run at "adequate" speeds; if some processes are running "too - -slowly," then ordinary users of the network may not be able to - -distinguish that situation from the situation where there is a - -deadlock. The problem is the general one of "fairness." The - -purpose of a buffer management scheme is to ensure that no - -process gets either more or less than its fair share of the - -buffer resource. (It is worth noting that simply specifying a - -protocol in some formal language, i.e., in a way which is not - -implementation-specific, and proving it to be deadlock-free, does - -not guarantee that the protocol will perform fairly. Such formal - -specifications almost never address such important issues as - -buffer management or fairness. In fact, by abstracting the - -protocol specification from implementation considerations, such - -issues are only obscured and made easier to overlook.) Of course, - -such notions as "adequate performance," "too slow," and "fair - -share" are hopelessly qualitative. Implementing a buffer - -management scheme in an actual network would require giving some - -quantitative interpretation to these notions. The precise way in - -which these notions are quantified would depend on the design - - - - -6- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -objectives of the particular network, as well as its performance - -characteristics, and it would probably require a large degree of - -arbitrariness. This does not mean, though, that the qualitative - -considerations cannot guide the development of a buffer - -management procedure, but only that any such procedure should be - -sufficiently parameterized so that it can be tuned to meet the - -PARTICULAR requirements of a PARTICULAR network. - - - The considerations raised above do not mean that there - -should be no sharing of buffers among processes, but only that - -the sharing should be controlled so that considerations of - -fairness and overall network performance can play a role. There - -is, of course, a disadvantage to restricting the amount of - -sharing of buffers among processes. If a buffer is available for - -process A, but not for process B, then there will be situations - -in which a buffer must lie idle, because process A does not need - -it, even though process B really has a use for it. In these - -particular situations, the performance of process B (and possibly - -of the whole node) may be degraded. The justification for - -keeping the buffer idle though is that it is possible that - -process A will have a need for the buffer before process B would - -finish with it, and that if such a situation were to arise, - -overall performance would be improved by keeping the buffer idle - -until needed by process A. The validity of the justification - - - - - -7- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -depends on the probability that process A really will need the - -buffer before process B would finish with it. This sort of - -probability is very difficult to evaluate A PRIORI. Furthermore, - -the probability may change as network conditions change. This - -suggests that we might want to vary the number of buffers - -reserved for particular processes as a function of the - -utilization of resources by the various processes. That is, the - -buffer management scheme may need feedback from a more general - -congestion control scheme which can measure the pattern of - -resource utilization and determine whether it is satisfactory. - -This is only natural. The purpose of a congestion control scheme - -is to ensure that the demands placed on resources in the network - -do not exceed the capacity of the resources, AND that the - -resources are allocated to the demands in the way that yields - -best overall network service. In order to achieve these goals, - -the algorithm (or at least the parameters of the algorithm) used - -to assign resources to demands may need to change as the pattern - -of demands changes. A buffer management scheme is an algorithm - -for assigning one particular kind of resource (buffers) to the - -demands made on that resource. Hence it is just a part of a - -congestion control scheme, and may need to interact with the - -other parts of the scheme for best overall performance. - - - - - - - - -8- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -4 Buffer Management with an Ample Supply of Buffers - - - If we were designing a new network, with an ample amount - -of buffer space, one of the important desiderata of the buffer - -management scheme would be to enable all output devices (i.e., - -hosts and inter-node trunks) to run at their rated capacity. - -Transmission of packets over an output device is usually - -controlled by means of a protocol which requires the packet to - -remain buffered until a positive acknowledgment is received. The - -number of buffers needed to run such a device at full capacity is - -a function both of the transmission speed of the device and of - -the time it takes (on the average) for acknowledgments to return, - -which itself is a function of the physical length of the - -transmission line (speed-of-light propagation delay) and the - -processing latencies of the device which is receiving the output. - -For each output device it is relatively straightforward to - -compute this number of buffers, at least approximately. To - -ensure that each output device can always run at its rated - -capacity, the buffer management scheme must "dedicate" that - -number of buffers to the particular output device in question. - - - It is important to understand just what it means to - -"dedicate N buffers" to a particular device or process. It does - -NOT means that certain physical buffers (i.e., physical areas of - -memory) are set aside for use only by that process. It means - - - - -9- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -only that the process should always be able to obtain N buffers - -whenever it has a need for N buffers. There is no reason at all - -why the same N physical buffers should be used each time. To see - -exactly what this means in practice, we must consider the - -mechanism whereby a buffer is (logically) moved from a source - -process to a destination process. At any given time, a buffer - -which is not free is considered to be under the control of some - -process. When that process has completed its processing of the - -buffer, it must somehow release control of it. In some cases - -(e.g., a packet has been transmitted on an inter-node trunk and - -an acknowledgment for it received) the packet which is in the - -buffer is no longer needed at that node, and the buffer can be - -freed. In other cases, however, control of the buffer must be - -turned over to some other process. An example is a packet which - -is under control of the forwarding process of the routing - -algorithm. Once the routing algorithm decides where to forward - -the packet, the buffer in which it resides must be turned over to - -some output process which will ensure its transmission over the - -appropriate output device. Before turning the buffer over to the - -next process, it must be determined whether doing so would - -prevent any other process from obtaining the number of buffers - -that have been "dedicated" to it. If so, the buffer cannot be - -turned over to that destination process. If the packet residing - -in the buffer is under control of some sort of reliable - - - - -10- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -transmission procedure (e.g., the ARPANET's IMP-IMP protocol), - -the buffer can simply be freed. This will not result in loss of - -the packet, since the reliable transmission procedure will ensure - -that the packet is seen again, and again, until it is finally - -accepted. This is usually the case in the ARPANET with a packet - -that has been received from a neighboring node. If the receiving - -node discards the packet without sending an acknowledgment to the - -transmitting node, the latter node can usually be relied upon to - -send the packet again. (Note that this implies that, in the - -ARPANET, the receiving node cannot send an inter-node - -acknowledgment for a packet until that packet has been turned - -over to its final output process.) On the other hand, some - -packets may not be under the control of a reliable transmission - -procedure. This may be the case with control packets that are - -created in the node itself and which must be transmitted to some - -other node for reasons determined by some end-end protocol. - -Freeing the buffer occupied by such a packet may result in loss - -of the packet. Since this is undesirable, if the buffer cannot - -be given to its destination process, it must be returned to the - -source process, where it must sit on some queue until some future - -time when it can be accepted by the destination process. - - - In general, when making the determination as to whether a - -buffer can be turned over to a particular process, it is not - - - - - -11- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -sufficient merely to consider the number of buffers already in - -control of the destination process. One must also take into - -consideration the source process of the buffer. After all, there - -may be cases in which the source process and the destination - -process share a common pool of buffers. In such cases, buffer - -management considerations can never cause the destination process - -to refuse the buffer, no matter how many buffers are already - -under its control. It follows that the correct decision as to - -whether a buffer ought to be refused cannot be made without - -knowledge of its source process. Also, only by considering the - -buffer's source process can it be determined whether or not the - -buffer, if refused, will be freed. This is important to know, - -since ONCE IT HAS BEEN DECIDED THAT A PARTICULAR PACKET CANNOT BE - -DISCARDED AT WILL, NO PROCESS SHOULD EVER REJECT THE PACKET AS A - -RESULT OF BUFFER MANAGEMENT CONSIDERATIONS. Any process that - -will not be able to obtain an adequate number of buffers if the - -packet is accepted will also be unable to obtain an adequate - -number of buffers if the packet is rejected. After all, - -rejection of the packet will merely cause its buffer to be held - -in a queue somewhere else in the node until it can be accepted. - -Since the buffer cannot be freed, it will not become available - -for use by any other process, so there is no point in refusing - -it. Rejecting the packet will serve only to increase its delay, - -without any countervailing advantage. This may mean that the - - - - -12- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -number of buffers under the control of a given process exceeds - -the nominal maximum which we have decided to allow to that - -process. The point of the buffer management scheme, however, is - -not so much to prevent a process from obtaining more than some - -maximum number of buffers as to ensure that a process can always - -obtain some minimum number of buffers. In the situation just - -described, holding one process to a certain maximum number of - -buffers does not help any other process to obtain its minimum. - -And while moving the buffer from the source process to the - -destination process in this situation may cause the source - -process to have less than its minimum number of buffers, it - -cannot hurt the performance of the source process, which, after - -all, has already finished with its use of the buffer. There is - -certainly no point in forcing a process to keep control of a - -buffer with which it is finished; that could serve only to - -degrade overall performance. - - - To put the point another way, once the node has committed - -itself not to discard the packet, all buffer management - -considerations are otiose. Of course, this is not to say that a - -packet to which the node is committed ought never to be refused - -by any process in the node, but only that considerations of - -buffer management can play no role in the refusal. There are - -many resources other than buffer space which may be in short - - - - - -13- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -supply; management of these resources may well dictate the - -rejection of a packet to which the node is committed. However, - -the same considerations apply. A packet should never be rejected - -due to resource management considerations unless rejecting it - -will free resources which would not be free were the packet - -accepted. - - - Of course, this principle may have unfortunate side- - -effects that must be controlled. If two packets are competing - -for buffer space, and one of the packets is discardable while the - -other is not, the non-discardable packet has an advantage, since - -it cannot be refused. For example, in the ARPANET, packets which - -an IMP receives from a neighboring IMP are discardable, since - -they are controlled by a reliable transmission procedure (the - -IMP-IMP protocol) and will be retransmitted if dropped. Packets - -received from a host, however, are controlled by the 1822 - -protocol, which does not provide for retransmissions, and which - -in fact assumes that the IMP will not drop a packet once it has - -fully received it. This fact gives packets received from hosts - -an unfair advantage over packets received from neighboring IMPs - -in the competition for buffer space. This is a particularly - -unhappy situation, since it can lead to the violation of one of - -the basic principles of congestion control, namely that packets - -already in the network should be favored over packets just - - - - - -14- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -entering the network. The correct solution to this problem, of - -course, is to refrain from using protocols which force a node to - -treat a packet as non-discardable before all the resources needed - -to process that packet have been obtained. We will return to - -this issue when we discuss the particular case of buffer - -management in the ARPANET. - - - It should also be noted that moving a buffer from a - -source process to a destination process typically requires the - -mediation of a third process which serves as the Dispatcher. In - -the ARPANET, this is the function of the TASK process. While a - -buffer is queued for or being processed by the Dispatcher, it is - -still considered to be under the control of the source process, - -for purposes of buffer management. The reason, of course, is - -that the decision as to whether a particular destination process - -must refuse the buffer is independent of whether the buffer is - -being passed to it directly by the source process, or whether it - -is being passed to it by the Dispatcher. Therefore, it makes no - -sense to treat the Dispatcher itself as a source process. - -Similarly, since the Dispatcher itself can never refuse a buffer, - -it makes no sense to treat it as a destination process either. - -The use of a dispatching process should be transparent to the - -buffer management scheme. - - - Sometimes a buffer may need to be under the simultaneous - - - - -15- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -control of two distinct processes in order for its packet to be - -processed. If this is ever the case, the buffer management - -scheme must ensure that whenever the buffer can be assigned to - -one process, it can also be assigned to the other. If the buffer - -cannot be processed unless controlled by both processes, then a - -situation where it can be controlled by one process but not the - -other makes no sense at all. Such a situation would simply - -result in a waste of space, by allowing a buffer to be occupied - -by a packet which cannot be processed. This illustrates a most - -important point in the design of a buffer management scheme. The - -purpose of buffer management is to ensure good overall network - -performance. Therefore, ONE CANNOT DETERMINE HOW MANY BUFFERS - -NEED TO BE DEDICATED TO A PROCESS BY CONSIDERING THAT PROCESS IN - -ISOLATION. RATHER, ONE MUST CONSIDER THE ROLE THAT THAT - -PARTICULAR PROCESS PLAYS IN DETERMINING OVERALL NETWORK - -PERFORMANCE. - - - - -4.1 Buffering for Output - - - We now consider, in general, which sorts of processes in - -the network nodes need to have buffers dedicated to them. - -Whenever a particular device is running at close to its maximum - -capacity and the demands on the device vary stochastically, the - -device will sometimes be overloaded. That is, although the - - - - -16- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -device is fully utilized during some interval by the presence of - -n packets, a larger number of packets destined for that device - -will arrive during that interval. If the device is overloaded in - -the steady state, then some sort of congestion control procedure - -must be brought into effect to reduce the demand for that - -particular device. We are presently assuming, though, that the - -device is not overloaded in the steady state, and that any - -intervals of overload are caused by the variance in the demand. - -In such a situation, it is desirable to smooth the effects of the - -temporary overload by buffering the excess packets. So the - -buffer management system should allow more buffers to be assigned - -to an output device at a given time than are strictly needed to - -run that device at full capacity. The question is whether a - -certain number of excess buffers should be "dedicated" to each - -device (in the sense described above), or whether the excess - -buffers should be in a common pool, sharable among all the output - -devices on a first-come, first-served basis. In this case, it - -seems that the buffers ought to be sharable. If all these - -buffers end up queued to a single output device, no other device - -is thereby prevented from running at full speed, since each - -device still has its own supply of dedicated buffers. Therefore - -there is no reason to strictly partition this additional buffer - -space. - - - - - - -17- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - - One might argue that the number of buffers dedicated to a - -particular device should only be enough to run the device at its - -AVERAGE rate, not at its maximum or peak rate. After all, the - -purpose of having a sharable pool of excess buffers is to smooth - -the effects of stochastic peaks. But stochastic peaks occur - -whenever the average utilization of a device is exceeded, not - -necessarily when its maximum utilization is exceeded. This - -argument, however, ignores the fact that several devices may - -exceed their average utilization at the same time. If this - -happens, and if there are not enough buffers dedicated to each - -device to run it at full speed, then some devices may be under- - -utilized while others will be over-utilized, which is what the - -buffer management scheme ought to try avoid as far as possible - -(at least, if the supply of buffers is ample). - - - - - -4.2 Buffering for Input - - - We have yet to discuss the issue of whether it is - -necessary to dedicate buffers to the input devices, as well as to - -the output devices. Packets may arrive at a node either from a - -neighboring node, or from a locally-attached host. Receiving and - -processing a packet requires a buffer. Even if all output - -devices are running at full speed and have their full complement - - - - - -18- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -of buffers, it is still necessary to dedicate a certain number of - -additional buffers to the input devices. Failure to do so can - -result in the stopping of all input whenever all the output - -devices are fully utilized. At first glance, this might seem - -like a desirable effect. After all, there is no point in - -accepting input when the output devices are already overloaded; - -to do so only leads to congestion. However, there are two - -problems with this argument: - - - 1) Not all packets which arrive at a node as input will - - necessarily leave the node as output. Some packets are - - control packets which may cause the processor to take - - some action other than simply forwarding the packet - - somewhere else. The node should always be able to - - process these packets, no matter what the utilization of - - its output devices. - - - 2) Packets cannot be processed instantaneously; there is - - always some latency. It may be the case that although - - no output buffers are available at the time a packet - - arrives, there will be buffers available by the time the - - packet is processed (e.g., by the time the processor - - determines which output device to route the packet to). - - If no buffers are available at the time the packet is - - received, it has to be discarded and re-transmitted, - - - - -19- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - - thus introducing a potentially large amount of - - additional delay. This additional delay can be - - eliminated by having a supply of buffers for input. - - - These arguments show that there should be some buffers - -available for input over and above those which can be used for - -output. We have not yet dealt with the issues of how many - -buffers there should be, and whether they should be sharable - -among all the input devices. It is sometimes suggested that - -there should be two buffers dedicated to each input device, to - -allow "double buffering." However, this is something of a - -confusion. The point of double buffering is to allow an input to - -be received while the previous input is being processed. This - -makes sense if the time it takes to process the previous input is - -less than the time it takes to receive the current input. Then - -by the time the input is received, processing of the previous one - -has been completed, and the buffer which held the previous input - -can be re-used to receive the next input, while the current input - -is being processed. The purpose of such a scheme is to ensure - -that reception of an input is not delayed by the time it takes to - -process the previous input. It is easy to see though that this - -scheme is not directly applicable to a packet-switching node. - -There is no way to guarantee that the time needed to process one - -packet is less than the time needed to receive the next packet. - - - - - -20- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -If the processor is busy, so that many packets are queued for it, - -and the inter-node trunks run at a high speed, so that packets - -are received very rapidly, merely dedicating two buffers to an - -input device will not ensure that a buffer is always available to - -receive the next packet. - - - One might think that this means that a larger number of - -buffers must be dedicated to each input line. By making the - -number large enough, we can make the probability of missing an - -input due to lack of buffers as small as we like. But it would - -be a mistake to do so. In general (though not invariably), after - -a packet is input and processed, it will be routed to some output - -device. There cannot be a shortage of buffers for input unless - -either all the output devices are heavily loaded (i.e., all the - -output-dedicated buffers are in use), or the processor itself is - -overloaded (so that many buffers are queued for the processor). - -A certain number of input-dedicated buffers are needed to permit - -input to flow smoothly under such situations, as well as to - -ensure that control packets can be processed. However, if the - -node is really congested (i.e., either the output devices or the - -CPU are overutilized in the steady state), having a large number - -of input buffers will not smooth the flow; it will result only in - -larger queues. The number of input-dedicated buffers need only - -be large enough to enable the processor to run at its full - - - - - -21- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -capacity while the output devices are also running at full - -capacity. In order for an output device to run at full capacity, - -it should always be able to get enough buffers so that it can - -buffer all in-flight packets for the required period of time - -while still having a small queue of packets waiting to be sent. - -Running the processor at full speed requires only enough buffers - -so that a small number of packets can always be on the queue for - -the processor. This does not require a large number of buffers - -to be dedicated to input; even less does it require a large - -number of buffers to be dedicated to a particular input device. - -However, as we have pointed out, it does require SOME dedicated - -buffers. - - - We have now determined that there need not be a very - -large number of buffers dedicated to input. We have not yet - -resolved the question of whether these buffers should be sharable - -among all the input devices, or whether a certain number of - -buffers should be dedicated to each input device. To answer this - -question we must determine whether, if the buffers are sharable, - -some one input device can monopolize the buffer pool, preventing - -input from any of the other devices. This might well be the - -case, for three reasons. First, one input device might run at a - -higher speed than the others. Second, one input device might be - -more heavily utilized than the others, or might receive shorter - - - - - -22- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -packets than the others. Third, some artifact of the interrupt - -structure of the node might tend to favor certain devices over - -others. (Thus in the ARPANET, each inter-IMP trunk is serviced - -at a different priority level; naturally, the one that is - -serviced with the highest priority is favored. This is due to - -the interrupt structure of the 316, rather than the software.) - -If any of these conditions hold, some input devices may be able - -to utilize so many buffers that the others are slowed down. - -Therefore a small number of buffers should be dedicated to each - -input device. - - - Another reason for dedicating a few buffers to each input - -device is the following. Certain inputs are processed at a very - -high priority level, without any queuing for the processor. - -These inputs are always control packets, which are not going to - -be routed to any output device. Furthermore, they are only those - -few types of control packets which must be processed very - -quickly. An example is the line up/down protocol packet of the - -ARPANET. When one IMP sends one of these packets to another, it - -expects a reply back within a few hundred milliseconds, no matter - -how congested the processor of the receiving IMP is. The - -receiving IMP must always be able to receive such packets and to - -process them immediately, without having to queue them. If this - -is not done, the line may be brought down spuriously, resulting - - - - - -23- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -in a significant and needless degradation of network service. In - -order to ensure rapid processing, at least one buffer must be - -dedicated to each input device from which control packets of this - -sort may be received. Furthermore, the use of these buffers is - -even more restricted than that of other buffers which are input- - -dedicated. Ordinarily, to say that N buffers are dedicated to - -input is to say that there must always be N buffers which cannot - -be given to any process which is not input related. These - -buffers can, however, be queued to the processor (i.e., to the - -Dispatcher) after being filled with an input. After all, the - -main point of having input-dedicated buffers is to enable the - -processor to continue to look at inputs even if all output - -devices are running at full capacity. This goal cannot be - -achieved unless the input buffers can be queued for the - -processor. The point of this paragraph, on the other hand, is - -that there be certain sorts of control packets which require - -IMMEDIATE processing. In order to ensure that a buffer is always - -available to each input device to process such packets, each - -input device should have one buffer dedicated to it which is not - -queueable to ANY other process, including the Dispatcher. Is a - -single such buffer enough? The feasibility of having protocols - -which require immediate processing of control packets is clearly - -dependent on the constraint that such packets be few and far- - -between. Otherwise, there may just be too many of them to - - - - -24- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -process them all "immediately," and the protocol will not work. - -As long as this constraint is met, a single buffer should be - -enough. - - - It must be pointed out that the proper use of the non- - -queueable buffer is often a matter of some subtlety. Suppose a - -packet is received from some inter-node trunk, and that packet - -contains node-node acknowledgments (possibly piggybacked on an - -ordinary data packet) for packets that were transmitted (in the - -opposite direction) over the same trunk. Suppose further that - -after the packet is received, there are no more free buffers in - -the nodes. Clearly, any data in the packet cannot be processed; - -doing so would require queuing the packet for the processor, - -thereby violating the rule that each input device have a non- - -queueable buffer dedicated to it. But what of the - -acknowledgments -- should they be processed? In the ARPANET, - -received node-node acknowledgments are processed at the highest - -priority level, with no queuing. So they CAN be processed - -without violating the buffer management rules that we have - -advanced. Furthermore, one might argue that it is really - -important to process the acknowledgments as soon as possible. - -After all, processing received acknowledgments can result in - -freeing buffers. Since, ex hypothesi, there are very few free - -buffers in the machine, processing the acknowledgments is of - - - - - -25- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -great importance, and should be done immediately. This argument, - -however, does not hold under all conditions. When there are very - -few free buffers in the node, it may be that a large number of - -buffers are holding packets which have already been transmitted - -on inter-node trunks, and which are awaiting acknowledgment. In - -this case, processing the acknowledgments as quickly as possible - -has a salutary effect on the node's performance. However, there - -are other conditions which may result in a short supply of free - -buffers. Suppose, for example, that the node is CPU-bound, i.e., - -that the processor is overloaded. Then one would expect to find - -the majority of buffers queued for the processor. (This - -situation is very common in certain of the more heavily loaded - -ARPANET nodes.) Since these buffers contain packets which have - -not yet been transmitted out any inter-node trunk, the buffers - -cannot possibly be freed as a result of processing - -acknowledgments. The only way to expedite the freeing of these - -buffers is to reduce the demand on the processor, especially the - -demand at the higher priority levels. Thus the best strategy - -here may be to NOT process the acknowledgments, thereby reducing - -the processing load. Deciding whether a certain packet should be - -processed immediately may depend not only on the function of the - -packet, but on the conditions in the node at that time. This - -shows again that a buffer management scheme is only part of a - -more general congestion control strategy, and cannot be expected - - - - -26- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -to do the whole job by itself. - - - It must be understood, of course, that although the - -number of buffers DEDICATED to input may be small, the number of - -buffers controlled by the input processes (i.e. the number of - -buffers containing input packets which have not yet been - -dispatched) may be much larger. In fact, all the buffers that - -are dedicated to output processes may be under the control of - -input processes at some time. This may seem paradoxical, but it - -is easy to see why it is the case. In general, a packet cannot - -be output unless it has first been input. It makes no sense to - -refuse to use a buffer for input because one wants to save it for - -output -- it will never be used for output unless it is used for - -input first. Therefore, all buffers must be available for input, - -regardless of the number which are "dedicated" to other - -processes. (There is one exception to this rule. It may be - -desirable to save a few buffers for creating control messages, - -which, being created in the node, are never actually input. - -These buffers would then be unavailable for input. This is - -discussed below in greater detail.) To restate the point -- - -while only a small number of buffers need to be DEDICATED to - -input, a large number of buffers need to be AVAILABLE to input. - - - - - - - - - -27- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -4.3 Buffering for Generating Control Messages - - - There are other functions besides input and output for - -which buffers are required. One such function is the creation of - -the control messages needed to run the various protocols used by - -the node. Every so often, the node will have to respond to a - -certain event by creating a control packet and transmitting it to - -some destination. Often one node will contain buffers which - -cannot be freed until a control packet from some other node is - -received. If a node cannot create the necessary control packets - -because it cannot get buffers for them, then deadlocks are - -possible. Even if deadlocks are avoided, good network - -performance can depend on the timely creation and transmission of - -control packets. Nodes which have high buffer utilization - -because they are handling many data packets ought not to be at a - -disadvantage when it comes to obtaining buffers in which to - -create control packets. Indeed, it is just such nodes which are - -most likely to have the largest number of protocol-imposed - -responsibilities, and hence to have the greatest need for buffers - -in which to create control messages. In order to ensure that the - -flow of control messages is not slowed by the flow of data - -packets, each node should have a supply of buffers dedicated - -solely to the function of creating control messages. - - - - - - - -28- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -4.4 Buffering Data at the Source Node - - - In many packet-switching networks, packets received from - -a host are buffered at the source node until an end-end - -acknowledgment is received. (This is true of single-packet - -messages in the ARPANET.) An insufficient supply of buffers for - -this purpose will hold the throughput of the locally attached - -hosts to an artificially low level. Furthermore, the holding - -time of a buffer which must await an end-end acknowledgment is - -very long, relative to the holding time of other buffers. This - -implies that the number of buffers needed to serve the function - -might be quite large, if an adequate level of throughput is to be - -maintained. A basic principle of congestion control in packet - -switching networks is that packets which are already in the - -network should not be unduly interfered with by packets which are - -entering the network. The buffer management scheme we have been - -outlining applies this principle by dedicating pools of buffers - -to each output device and to the various protocol functions. - -That is, the scheme ensures that local inputs cannot hog the - -buffer space at a node, which would result in degrading the flow - -of traffic through the node. There is a question, however, as to - -whether there should be a pool of buffers DEDICATED to buffering - -input packets at the source node, or whether this function should - -compete with other functions for a sharable buffer pool. Since - - - - - -29- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -we have already assigned dedicated buffer pools to those other - -functions that need them, the only possible bad result of not - -dedicating a pool of buffers for source buffering of local inputs - -would be that these other functions would be able to hold down - -the throughput due to local hosts, by taking most of the - -buffering for themselves. It is sometimes thought that this is - -actually a good feature. That is, if the node is so heavily - -loaded with transit traffic and with traffic destined for output - -to local hosts, perhaps it is good to reduce the amount of buffer - -space available for source buffering. After all, when the - -network is heavily loaded, one does want to reduce the input - -rate, and reducing the buffer space available for source - -buffering of input will have this effect. This argument, - -however, ignores fairness considerations. In the ARPANET, for - -example, there are a few nodes which, because they are on the - -major cross-country paths, have a much greater load of transit - -traffic than does the vast majority of nodes. However, these - -nodes which are heavily loaded with transit traffic also have - -local hosts and TIPs. The users of these local hosts and TIPs - -have a right to the same service as is given to users whose local - -IMPs do not have a heavy load of transit traffic. If the heavy - -load of transit traffic at these nodes is allowed to get so much - -buffer space that the throughput obtainable by the local users is - -degraded, then users at these nodes are at a disadvantage with - - - - -30- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -respect to users at other nodes. This is hardly fair. If the - -transit load at some node is "too heavy," then ALL users which - -are sending traffic through that node should be forced to reduce - -their input rate, not just the users who happen to be locally - -attached to that node. Of course, this effect cannot be achieved - -merely by buffer management. It requires a more general - -congestion control scheme. Our present point though is that - -since a heavy transit load should not be permitted by itself (in - -the absence of instructions from a congestion control scheme) to - -degrade the throughput of local users, a non-sharable pool of - -buffers should be dedicated to the function of buffering local - -input while awaiting end-end acknowledgments. Of course, as long - -as the transit traffic at some node must compete with the input - -traffic at that node for some resource (even if only the - -processor), there will always be a certain amount of "unfair" - -interference. A good buffer management scheme can limit, but not - -eliminate, the effect. - - - It is important to note that this point can be obscured - -by certain assumptions of homogeneity which it is often - -convenient to make when analyzing or simulating a buffer - -management system. When trying to perform such analysis, it is - -often convenient to create a network model in which the ratio of - -transit traffic to input traffic is the same at all nodes. Once - - - - - -31- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -one has made that assumption, it is clear that the question of - -fairness will not arise, since all nodes will be equally loaded, - -and input at all nodes will be equally constrained. Therefore, - -if one has made that assumption, it may seem reasonable to design - -a buffer management scheme which allows transit traffic to lock - -out locally input traffic entirely. Assumptions of homogeneity - -beg the question of fairness, and in doing so lead to congestion - -control or buffer management schemes which are seriously - -deficient. - - - - - -5 Buffer Management with a Shortage of Buffers (ARPANET) - - - We have so far been discussing the issues that arise in - -the design of a buffer management scheme for a node which has - -ample buffer space. We have argued that good buffer management - -is important for good network performance, no matter how many - -buffers exist in a node. Our basic approach has been to dedicate - -enough buffers to each function which requires them so that all - -such functions can be performed at full speed, with the minimum - -amount of interference from other functions. The assumption that - -there is an "ample" supply of buffer space is just the assumption - -that there exist enough buffers to do this. Any excess amount of - -buffers should be sharable among several functions, and should be - - - - - -32- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -used to smooth the effects of stochastic peak loads or processor - -latency. - - - We turn now to the issues that must be addressed when - -designing a buffer management scheme for a node which does NOT - -have ample buffer space. Our main interest will be buffer - -management in the 316/516 IMP, which is severely memory-limited. - -However, our discussion will also have application to the design - -of a buffer management scheme for new networks which are not - -expected to be memory-limited. It is often thought that networks - -designed with present technology will always have ample buffer - -space, since memory is now one of the cheapest components of a - -computer. This is somewhat of an oversimplification, though. - -However cheap memory is, it is always cheaper to have less. We - -would not expect nodes to be designed with arbitrarily large - -amounts of buffer space. Rather, the amount of memory configured - -into a node will generally be determined by making a sizing - -decision based both on economics and on the design objectives of - -the node. Yet at the present state of the art, making such - -sizing decisions is more of an art than a science, and such - -decisions can easily be wrong. Furthermore, future re- - -configurations of the network, e.g., adding long-delay or higher - -speed lines, can invalidate the original sizing decisions. Yet - -the addressing, mapping, or bus structure of the computer may - - - - - -33- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -make it difficult or impossible to freely add additional memory - -to the initial configuration. It is never good to assume, in - -network design, that buffer space will always be ample throughout - -the life of the network. For these reasons, our discussion of - -buffer management in the ARPANET should have wider application. - - - In the ARPANET, each Honeywell 316/516 IMP has between 30 - -and 35 buffers, depending on the configuration of the node and - -the presence or absence of various optional software packages - -(which, when present, reside in an area of memory otherwise - -devoted to buffer space). This is nowhere near the amount of - -buffers needed to ensure that all processes requiring buffers can - -run at full speed. A sensible approach in such a case is to - -dedicate to each process enough buffers to allow the process to - -run at only a fraction of full speed, while making the additional - -buffers sharable. However, unless there are enough sharable - -buffers to enable some of the processes to sometimes run at full - -speed, the scheme will prevent any process from EVER running at - -full speed, even when there are a sufficient number of idle - -buffers. This would be a very undesirable situation. With a - -severely memory-limited node, as in the ARPANET, it may be - -necessary to dedicate to a process only the minimum number of - -buffers required to ensure that the process can run at all (i.e., - -to prevent a deadlock situation in which the process is - - - - - -34- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -completely locked out). THIS MEANS THAT MUCH OF THE ABILITY OF - -THE BUFFER MANAGEMENT SCHEME TO PROTECT ONE PROCESS FROM UNDUE - -INTERFERENCE BY ANOTHER IS LOST. The price for retaining that - -ability would be to guarantee slow performance by some of the - -processes, even while resources (buffers) lie idle. Such a price - -may be too high to pay. - - - To put this point another way, we must worry not only - -about under-control of the buffer space, but also about over- - -control. If buffer space is under-controlled, one process can - -hog the buffers, preventing other processes from getting their - -fair share. If buffer space is over-controlled, then a process - -may be limited to a particular proportion of the buffer space, - -even if granting it a larger proportion in some particular - -situation may be the best strategy from the point of view of - -overall network performance. With ample buffer space, over- - -control is not generally a problem, since every process can get - -as many buffers as it needs. When buffer space is scarce, - -however, strict and inflexible limitations on the amount of - -buffer space that can be under the control of a particular - -process may result in no process ever being able to get enough - -buffers to perform well. A loosening of the controls may be - -necessary in such cases. As we shall see, the current ARPANET - -buffer management scheme suffers from over-control in some - - - - - -35- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -instances. - - - In the ARPANET, the situation is even worse. There are - -not enough buffers available to dedicate even the minimum amount - -to certain processes. For example, one process which requires - -buffers is the process governing output to a host, of which there - -may be four attached to each node. An ARPANET message may be up - -to 8 packets long (i.e., may occupy up to 8 buffers). Before any - -message can be delivered to a host, all eight packets must be - -present, so that the message can be "reassembled." There is no - -point to dedicating fewer than 8 buffers to each host, since that - -would not guarantee that enough buffer space would always be - -available to deliver a message to the host. On the other hand, - -one cannot dedicate 8 buffers to each of four hosts, since that - -would leave no buffers for any other function. A similar problem - -arises with respect to packets which must be buffered at the - -source node awaiting end-end acknowledgments (RFNMs). There can - -be as many as 8 such packets per "connection," where two packets - -are considered to be on the same connection if they have the same - -source host, the same destination host, and the same priority. - -With four source hosts per node, each of which can be - -communicating with an arbitrary number of destination hosts, the - -number of buffers required to guarantee maximum throughput is - -more buffers than exist in the entire node. However, it is still - - - - - -36- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -the case that there are too few buffers to enable a buffer - -management scheme to ensure fairness to both host input and host - -output functions. This means, of course, that improving the - -buffer management scheme can increase the fairness, but not - -optimize it. - - - The way the ARPANET deals with this problem is simply to - -lump together all host input and output functions and dedicate a - -single pool of buffers to the combined set of functions. This - -pool is known as the "Reassembly" pool, and its size varies from - -about 18 to 22 buffers, depending on an IMP's configuration. - -(The term "reassembly" is very misleading in this context, since - -reassembly of packets into messages is only one of many functions - -which must obtain buffers from the reassembly pool.) This - -approach recognizes that there is simply an insufficient amount - -of buffering to enable separate pools of buffers to be dedicated - -to the separate hosts, or even to enable separate pools of - -buffers to be dedicated separately to input and output functions, - -without paying the overly high price of ensuring poor performance - -by some processes even under conditions of low buffer - -utilization. The main disadvantage of the approach is that it - -robs the buffer management scheme of its ability to ensure - -fairness among the various competing functions that are lumped - -together. However, that is really just the result of having an - - - - - -37- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -insufficient supply of buffers, and we do not see any way of - -improving the situation simply by altering the buffer management - -scheme. Attempting to maximize fairness under these conditions - -requires a strategy other than partitioning the buffer space. The - -scheme in the ARPANET, though, does make an attempt to separate - -host-related functions from functions related solely to the - -operation of the inter-IMP trunks. Failure to separate host- - -related functions from each other may cause different host- - -related functions to interfere with each other. Failure to - -separate host-related functions from operation of the inter-IMP - -trunks would enable host-related functions to interfere with the - -node's store-and-forward ability, which could be even worse, - -since that could make the network more prone to congestion. As - -we shall see, however, the ARPANET's buffer management scheme is - -not entirely successful in preventing interference between - -store-and-forward functions and host-related functions. - - - - Even though fairness between host input and host output - -functions cannot be guaranteed in the ARPANET simply by - -partitioning the buffer space, there are other sorts of - -procedures which a buffer management scheme can bring to bear to - -help bring about (if not to guarantee) fairness. The present - -buffer management scheme makes no real attempt to "prioritize" - -the input and output functions. That is, if at some given time, - - - - -38- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -buffers are needed for both input and output, the buffers will be - -assigned in the order in which they are requested. Because of - -the software architecture of the IMP, this appears to give an - -advantage to host input. The request for a buffer to hold a - -packet received from a local host is made by the high-priority - -routine which services the host-IMP interface. The request for a - -buffer to hold a packet for output to a local host is made either - -by the TASK process or by one of the background processes, which - -run at lower priority levels. Furthermore, requests for output - -buffers, if not served the first time they are made (because of - -unavailability of buffers), are put on a queue which is served in - -round-robin fashion at the lowest priority level. Any number of - -requests for host input buffers can be served between the time a - -request for a host output buffer is first queued and the time it - -is finally served. This seems to violate the principle of - -congestion control which states that output-related functions - -should be favored over input-related functions. It would not - -seem to be a difficult matter for requests for buffer space to be - -prioritized or re-ordered so that buffers are never provided for - -input while there are outstanding requests for output buffers. - -(Note that this issue of re-ordering the requests would not arise - -if there were ample buffer space, since in that case, all - -functions could be guaranteed sufficient buffering, regardless of - -the order in which requests were made.) - - - - -39- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - - This principle, however, would have to be applied with - -some care. In the ARPANET, a request for output buffer space may - -be either a request for one buffer (for single packet messages) - -or a request for eight buffers (for multi-packet messages). If a - -source node has requested a single-packet allocate for some - -packet from some destination node, it must buffer the packet - -until the output buffer space is made available. Meanwhile, - -other packets from the same source host may still be entering the - -network. On the other hand, if a source node is waiting for a - -multi-packet allocate, it does not buffer the multi-packet - -message while waiting. Rather, it stops all input from the - -source host until the output buffers are allocated. That is, if - -a single-packet request remains unserved, buffer space is used as - -the source node, while input at the source node continues - -unabated. If a multi-packet request remains unserved, not only - -is no buffer space wasted at the source node, but input from the - -source host is stopped. The congestion control principle that - -output should be favored over input is reasonable because - -"output" means that resources already in use will be freed, while - -"input" means that resources currently free will be put into use. - -Competition between a host input packet and an unserved single - -packet request is clearly competition between input and output. - -However, competition between host input and an unserved multi- - -packet request is more like competition between input at one IMP - - - - -40- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -and input at another. Hence, prioritization or re-ordering of - -requests for buffers need only be done in the former case. Even - -there, care must be taken to ensure that a large flow of single - -packet messages to the hosts at one IMP does not prevent those - -hosts from ever sending any inputs of their own into the network. - -While output should be favored over input, output should not be - -able to lock out input. After all, output at one IMP is input at - -another. If output is too much favored over input, the result is - -that input at one IMP is favored over input at another IMP. - -Therefore, it is possible that, IN THE ABSENCE OF A GENERAL FLOW - -CONTROL PROCEDURE, which would explicitly match IMP-IMP flows to - -the amount of resources available, PRIORITIZATION OF BUFFER - -REQUESTS COULD DO AS MUCH HARM AS GOOD. A full investigation of - -the issues relevant to end-end flow control in the ARPANET is not - -within the scope of the present contract, however. - - - The 316/516 IMP does not have enough buffer space to - -ensure transmission over the inter-IMP trunks at the full rate of - -50 kbps. Only the minimum number of buffers necessary to prevent - -a trunk from being locked out is dedicated to each trunk. This - -minimum number, of course, is one. There is also a maximum - -number of buffers which can ever be under the control of the - -combined trunk output processes. This number is either 10, 12, - -or 14, depending on whether the IMP has 2, 3, or 4 trunks. - - - - - -41- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -Furthermore, there is also a minimum number of buffers which are - -available for trunk output, but unavailable for host-related - -functions. This number (which includes the single buffer - -dedicated to each output trunk) is either 6, 9, or 12, depending - -on whether the IMP has 2, 3, or 4 trunks. (There are certain - -exceptions to this rule, such as IMPs which have 16-channel - -satellite lines. See chapter 7 of BBN Report No. 4088 for - -details. There appears to be no hard and fast rationale for - -having chosen these particular numbers. Rather, they just "seem - -to work.") These buffers, except for the buffers which are - -dedicated to particular trunks, are not, however, dedicated to - -trunk output; they are also available for other functions that we - -will discuss shortly. The small difference between the minimum - -and maximum numbers of buffers available for trunk output (either - -4, 3, or 2, depending on IMP configuration) form a pool of - -buffers which are generally sharable among all the processes in - -the IMP, which can get them on a first-come, first-serve basis. - - - There is also a maximum number of buffers which can even - -be under the control of the process which runs a PARTICULAR - -output trunk. This number is eight (except for satellite lines, - -for which the number is sixteen). The number eight does not - -appear to have been chosen in order to meet constraints on the - -buffer management system. Rather, eight is the number of logical - - - - - -42- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -channels maintained by the IMP-IMP protocol. That is, it is the - -number of packets which can be in flight simultaneously on an - -inter-IMP trunk. There is no inherent reason why the maximum - -number of packets under control of an output trunk (i.e. the - -number in-flight at some instant PLUS the number queued at that - -instant) should be the same as the maximum number of packets - -which can be in flight simultaneously on that trunk. This - -particular choice of number appears to have been made primarily - -for ease of programming. - - - The ARPANET IMP does contain a pool of buffers dedicated - -to the creation of end-end control messages. In keeping with the - -principle that, when buffers are in severely short supply, only a - -minimum number should be dedicated to any particular function, - -the size of this pool is one. Of course, an IMP may have more - -than one extant end-end control message at a time. When - -additional end-end control messages must be created, they are - -treated as host-related messages. That is, to create an end-end - -control message, a buffer from the pool for host-related - -functions must be obtained. This restriction is apparently due - -to the fact that after a control message is created, it is - -treated in some ways as if it were a packet submitted by a host. - -That is, after a control message is created, it is placed on a - -queue known as the Reply Queue. Packets are removed from the - - - - - -43- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -Reply Queue by a "Back Host," and submitted to the IMP as if they - -came from a real host. A Back Host is a software routine which - -runs at the background level of the IMP. Its purpose is to - -submit control packets as if they were packets from a real host - -(though of course, they are submitted at a point which is later - -in the IMP's logic than the point where a real host would submit - -a packet). This fact about the software architecture of the IMP - -makes it appropriate to treat the creation of control packets in - -a manner analogous to host input. If the submission of control - -packets were handled differently from the submission of ordinary - -host input, then it might not be appropriate to create protocol - -messages on the same buffer pool as ordinary host messages, since - -protocol messages are handled very differently and in general - -have different constraints. (Of course, one could raise the - -further question as to whether the "back host" mechanism is - -appropriate for handling control packets. However, this cannot - -be considered here.) - - - We have spoken of the need for having a buffer dedicated - -to input from each inter-node trunk, in order to be able to - -process certain sorts of control messages which, although - -occurring relatively infrequently, need to be processed quickly, - -with a high degree of responsiveness (i.e., without having to - -wait on a queue). The IMP does indeed dedicate a buffer to each - - - - - -44- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -input trunk. That is, a packet which has just arrived on a - -certain trunk will not even be queued for the dispatcher (TASK) - -if that would result in there being no buffer at all available to - -receive the next input from the trunk. However, these dedicated - -buffers are NOT used for processing those control packets which - -require high responsiveness. Not only are such buffers not - -queued for processing, but the packets in such buffers are NEVER - -processed at all, they are simply discarded. Even if the packet - -is a line up/down protocol packet, which is ordinarily processed - -immediately by the routine that handles input from the trunks, it - -will not be processed if processing it would mean that there is a - -period of time when no buffer is available to receive the next - -input from that trunk. Not even the acknowledgments which may be - -piggybacked in the packet are processed. Rather, the packet is - -simply discarded, and its buffer reused for the next input. The - -apparent purpose of this procedure is to ensure that there is - -never any period of time when a packet can be lost because there - -is no buffer available in which to receive it. However, although - -this procedure does help to avoid packet loss, it does this by - -deliberately discarding packets. From a performance perspective, - -there does not seem to be much difference between losing a packet - -and throwing it away. In general, it is not sensible to throw - -one packet away so that the next will not be lost. Either the - -buffer dedicated to an input trunk should be used to ensure the - - - - -45- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -processing of packets which need high responsiveness (such as - -line up/down protocol packets, routing updates, and received - -IMP-IMP acknowledgments), or there should not be any dedicated - -input buffers. Currently, the dedicated buffers are wasted. The - -worst thing a buffer management scheme can do is to waste - -buffers, particularly when buffers are a scarce resource. - - - The IMP does have a small pool of buffers which cannot be - -placed under the control of any host-related process or of any - -process which regulates output on the inter-IMP trunks. (The - -size of this pool is regulated by the parameter MINF, currently - -set to 3.) These buffers are available only for the processing - -of such high responsiveness packets as routing updates, line - -up/down protocol packets, and received IMP-IMP acknowledgments, - -and for the creation of such subnetwork control packets (not - -end-end control packets) as nulls, routing updates, and line - -up/down protocol packets. These buffers are also useful for - -mediating processor latency. They are not, however, dedicated to - -the individual input trunks. As we have pointed out previously, - -it is quite desirable to have such a pool of buffers; this seems - -a good feature of the IMP's buffer management system. - - - In BBN Report No. 4088 we pointed out several bugs in the - -IMP's buffer management procedure. One bug was the fact that the - -buffers which are dedicated to input from the inter-IMP trunks - - - - -46- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -are completely wasted. This bug can be fixed either by - -refraining from dedicating buffers to trunk input, or by - -processing the packets in these buffers if (and only if) they - -require high responsiveness. This latter approach would in some - -sense be equivalent to increasing the value of MINF to three plus - -the number of trunks, except that it would also ensure some - -degree of fairness among the input trunks with respect to their - -ability to obtain buffers from the MINF pool. As we have already - -discussed, the correct way to fix the bug may depend on whether - -the IMP is short on buffers or short on CPU cycles. Some mixture - -of the two approaches may be needed, since in practice the IMPs - -are sometimes short of buffer space and sometimes short of CPU - -cycles. It must also be pointed out that processing of received - -acknowledgments from a particular input trunk may also be - -important if the corresponding output trunk has most of its - -logical channels in use, even if there are plenty of free - -buffers. After all, processing of received acknowledgments not - -only frees buffers, but also frees logical channels, and a - -shortage of unused logical channels can have the same effect in - -degrading performance as a shortage of buffers. In order to pick - -the strategy which will have the best effect on network - -performance, we will need to design a method of determining in - -real time which resource is scarcest in the IMP at some - -particular moment. - - - - -47- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - - We also pointed out several other bugs in BBN Report No. - -4088. These bugs all have a common source, namely the fact that - -when a buffer is moved from a source process to a destination - -process, the buffer management scheme takes no notice of the - -source process. In particular, a buffer may be rejected even if - -it cannot be freed. This not only leads to the bugs we described - -in our previous report, but also to the following sort of bug. - -Suppose an IMP has three trunks, and that it has a maximum of 12 - -buffers which can be under the control of the process which - -regulates output to the trunks. Suppose that there are 8 buffers - -queued for output to trunk 1, and 3 to trunk 2, while there is - -one buffer which has already been transmitted on trunk 3, but - -which is presently awaiting acknowledgment. Suppose also that a - -packet received from a local host is now ready for transmission - -to its destination, and that it is routed out trunk 3. The IMP - -will not permit this packet to be transmitted, since that would - -place a 13th buffer under control of the trunk output routines. - -Thus the buffer will be rejected, even through the trunk is idle, - -and the other resources needed to transmit the packet (e.g., - -logical channels) are freely available. Furthermore, the - -rejected buffer will not be freed. Refusing the buffer simply - -delays transmission of the packet without resulting in the - -freeing of any resource. Thus it has no salutary effect on - -network performance, and is in fact counter-productive. This is - - - - -48- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -an example of OVER-CONTROL in the buffer management scheme; a - -buffer is prevented from moving, even though considerations of - -general network performance would dictate that it be passed to - -the destination process immediately. This bug, as well as - -others we have discussed, would be eliminated if the IMP took - -account of the buffer's source process as well as its destination - -process. Then the IMP could adopt a policy of never refusing a - -buffer FOR CONSIDERATIONS OF BUFFER MANAGEMENT unless doing so - -would result in the buffer's being freed. - - - Even if the ARPANET's buffer management scheme were - -modified to take account of the criticisms we have been making, - -there would still be a major problem with it. The problem is - -that in the competition for buffers to be used to transmit - -packets to a neighboring IMP, packets input from local hosts are - -favored over packets arriving from neighboring IMPs, thereby - -violating an important principle of congestion control. Not only - -can host access lines be of higher speeds than inter-IMP trunks, - -but the 1822 protocol, which governs host-IMP access, does not - -allow the IMP to drop a packet it has received. The IMP-IMP - -protocol, on the other hand, does allow a receiving IMP to drop a - -packet. We have already pointed out the way in which this can - -cause a buffer management scheme to favor the packets from the - -local hosts. Since it is not feasible to modify the 1822 - - - - - -49- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -protocol, some other means of eliminating or at least reducing - -this favoritism must be developed. - - - One way of reducing this favoritism would be to define a - -pool of buffers reserved exclusively for "transit packets", i.e. - -packets whose origin and destination are both remote. No such - -buffer pool exists in the ARPANET at present. The current - -store-and-forward pool can be completely filled with locally - -originating packets. Although a locally originating packet - -requires a buffer from reassembly space when it first enters the - -IMP, it is moved into store-and-forward space as soon as it is - -queued to an output trunk. Since locally originating packets - -cannot be discarded, and hence should never be refused by the - -buffer management scheme after they are originally received, this - -division of the buffer pool does not prevent host packets from - -locking out transit packets entirely. It does prevent all the - -buffers in the IMP from being devoted to host-related functions, - -which is very important if the IMP is to continue to function as - -a store-and-forward node even while handling a large amount of - -host traffic. Note, however, that a pool dedicated to transit - -packets would have the same effect. Furthermore, it would have - -the additional salutary effect of ensuring a supply of buffers - -for transit packets. - - - We recommend therefore the elimination of the store-and- - - - - -50- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -forward pool, and the creation of a transit pool. The transit - -pool would consist of a minimum number of buffers which would be - -dedicated to packets with remote origins and remote destinations. - -Locally originating packets would never be placed in the transit - -pool, but would remain in the Reassembly pool (which we suggest - -renaming the "end-end" pool), even while queued for transmission - -out an inter-IMP trunk. - - - It is also desirable to ensure that a certain number of - -transit packets may always be queued simultaneously to a given - -output trunk. Although the presence of the transit pool prevents - -transit packets from being locked out entirely, it does not - -prevent them from being locked out on some particular output - -trunk. However, since every packet queued for an output trunk - -must be assigned to a logical channel, this can be prevented by - -saving a certain number of logical channels on each trunk for - -transit packets only. This may require that a locally - -originating packet with a remote destination sometimes be - -refused, even though the trunk is idle and the refused buffer - -cannot be freed. However, the reason for refusing in this case - -is not buffer management, but management of logical channels. - -Refusing a host packet (destined to a remote destination) for - -reasons of logical channel management WILL result in keeping free - -a logical channel that would otherwise be occupied. So even - - - - - -51- - - -IEN-182 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -though no buffer is freed, the packet can still be refused - -without violating any principles of resource management. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -52- - - diff --git a/text/ien/ien183.txt b/text/ien/ien183.txt deleted file mode 100644 index 7f5226ff..00000000 --- a/text/ien/ien183.txt +++ /dev/null @@ -1,3305 +0,0 @@ -IEN-183 - - - - - - - - - - - - - - - - - - - - - - - Logical Addressing - - Bolt Beranek and Newman Inc. - - Eric C. Rosen - - May 1981 - - - - - - - - - - - - - - - - - - - - - - - - - - - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - - Table of Contents - - - - -1 Introduction.......................................... 1 -2 Translating Logical to Physical Addresses............. 7 -2.1 Translation Locus................................... 7 -2.2 Translation Methodology............................ 10 -3 Organizing the Translation Tables.................... 17 -4 Initializing the Translation Tables.................. 23 -5 Updating the Translation Tables...................... 30 -6 Operational and Implementation Considerations........ 49 -7 Network Access Protocol Implications................. 53 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -i- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -1 Introduction - - - This paper is a slightly modified extract from BBN Report - -No. 4473, "ARPANET Routing Algorithm Improvement, Volume 1," by - -Rosen, et al. It proposes a scheme for implementing logical - -addressing in the ARPANET. However, the issues dealt with are - -quite similar to the issues raised by the problem of implementing - -logical addressing in the Catenet (several IENs are currently in - -preparation in which we argued for this assertion at great - -length.) It is hoped, therefore, that the discussion will be of - -interest to internet workers as well. - - - In the current ARPANET, in order for a user to transmit - -data to a particular host, he must know the PHYSICAL ADDRESS of - -the host. That is, he must know which node the host is connected - -to, and he must know which port on that node is used to connect - -that host. Furthermore, this is the ONLY means a user has of - -identifying a host. In many respects, the physical address of a - -host computer can be compared to a person's telephone number. - -The problems inherent to physical addressing in a computer - -network are similar to those we would experience in ordinary - -interpersonal communication if a person's telephone number were - -the only means we had of identifying him. Dialing a particular - -telephone number allows us to establish a communications channel - -to a particular location. This works well as long as the person - - - - -1- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -with whom we wish to communicate remains at that particular - -location. When the person changes his location, though, the - -phone number becomes virtually useless, and the physical address - -of a host computer becomes equally useless if the computer's - -location within the network changes. In the context of - -interpersonal communication, this gives rise to the calling of a - -"wrong number". In the context of computer networking, this can - -give rise to the more serious phenomenon of mis-delivery of data. - -Furthermore, when a computer changes location within a network, - -it is quite difficult to carry out a procedure which reliably - -informs all users of its new physical address. There are - -difficulties in identifying all users, difficulties in contacting - -them once they are identified, difficulties in making sure that - -the information receives the proper level of attention once - -contact is made, and if all these difficulties are resolved, it - -is still difficult to make the necessary changes to computer - -software so that the new physical address is actually put into - -use. - - - There is another sort of problem would occur in - -interpersonal communication if our only means of identifying a - -person were by his phone number. It is very common for several - -people to share a phone number. If we identified people only by - -phone numbers, we could not distinguish among several people at - - - - - -2- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -the same location. This problem arises in computer networking if - -several computers share the same port. There are, in fact, - -several reasons why it may be desirable to allow several - -computers to share the same port. One reson is simply the need - -to get by with a less than optimal amount of equipment, either - -due to economics or to shortage. If some administration has two - -computers, each of which needs to be on the network only part of - -the day, but which do not need to be on the network at the same - -time, sharing a single port may be the best solution. The - -increasing cost-effectiveness of such devices as port expanders - -and local networks may also make it more and more desirable to - -have several computers sharing the same port. A related problem - -arises if one thinks of a network of computers as consisting of - -"logical hosts," rather than physical hosts. Whereas a physical - -host would be a particular piece of hardware, a logical host - -would be the instantiation of a particular function. Thus a - -physical host which supported (for example) time-sharing during - -the day and batch processing at night could be regarded as two - -logical hosts which share the port on a time-division basis. A - -related application is the situation in which the functionality - -of two (small) physical hosts is combined into one (larger) - -physical host, which then can be thought of as consisting of two - -logical hosts. It could be very useful to have the flexibility - -to move logical hosts freely around the network, perhaps changing - - - - -3- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -the correspondence between particular logical and physical hosts, - -without having to inform all users of the new physical addresses. - - - Of course, the reasons these problems in computer - -networking are more serious than the analogous problems in - -interpersonal communication is that telephone numbers are not the - -only, or even the primary, means we have of identifying other - -people. We can identify other people by NAME, and this greatly - -facilitates our ability to get in touch with people even as they - -change location. It also enables us to specify the individual we - -wish to talk to, in the situation where several people share a - -telephone. Similar advantages would accrue if we could identify - -computers by name rather than by physical address. In order to - -get our data to the appropriate computer, its physical address - -would still have to be determined. But the user should be able - -to tell the network the name of the appropriate computer (perhaps - -a logical rather than a physical host), and let the network - -itself map the name to its physical address. For speed and - -reliability, the mapping function should be accomplished - -automatically (i.e., by software) with minimal need for human - -intervention. Schemes to accomplish this are known as LOGICAL - -ADDRESSING schemes, and the name of a computer is usually - -referred to as its "logical address" (though in fact, logical - -addresses are not addresses at all, since they, like names, are - - - - - -4- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -independent of location). - - - A good logical addressing scheme should allow more - -flexibility than may be already apparent. We have spoken of the - -need to be able to identify a computer in a way which is - -independent of location, and of the need to be able to map - -several distinct names onto a single physical address. There is - -also a need to be able to map a single name onto several physical - -addresses. To carry out the analogy with interpersonal - -communication, this would correspond to the case where a single - -person has several telephones, with different phone numbers, - -possibly at different locations. This adds reliability to the - -communications process, since if the person cannot be reached at - -one phone number, perhaps he can be reached at another. If he - -can be reached at each of the numbers, he now can handle several - -conversations simultaneously, i.e., he has increased throughput. - -In computer networking, this sort of application is known as - -"multi-homing." In multi-homing, a single computer connects to - -the network through several ports, usually (though not - -necessarily) at several different network nodes. This allows the - -computer to remain on the network even though one of its access - -lines, ports, or home nodes fails, thereby increasing - -reliability. In the case where it is more economical (or - -otherwise more practical) to obtain several low-speed access - - - - - -5- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -lines than to obtain a single high speed line, multi-homing can - -also allow a given host computer to obtain higher throughput at - -less cost. - - - Another sort of application which requires a single name - -to map into several physical addresses can be compared to a - -business which has several branch offices, each with a different - -phone number, but whose customers do not care which branch office - -they reach. This can be useful in certain sorts of internetting - -applications. Suppose, for example, that an ARPANET user wants - -to send a packet to SATNET, but that there are several equally - -good gateways between the two networks. It may be convenient for - -the user to simply specify a name like "Gateway-to-SATNET" and - -let the network choose which of the several gateways (i.e., - -physical addresses) to use. A related sort of possible - -application has to do with distributed processing and resource - -sharing. If some particular resource is available at any of - -several locations around the network, it may be desirable to - -allow the user to specify the resource by name, and allow the - -network to map that name onto some particular physical address - -according to criteria that the user need not be aware of. (Such - -a service was formerly offered by the ARPANET TIPs. By typing - -@N, a user would be connected to a "Resource-Sharing Executive" - -on one of several network TENEX systems. The user, however, - - - - - -6- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -would have no way of knowing which system he was actually on.) - - - - -2 Translating Logical to Physical Addresses - - -2.1 Translation Locus - - - It should be obvious that any implementation of logical - -addressing would require the network to maintain a translation - -table. The user would specify a logical address, and the network - -would use this logical address as an index into the translation - -table in order to obtain the physical address (or list of - -physical addresses) to which it corresponds. The network would - -use the physical address internally to determine the routing of - -user messages. The need to maintain a translation table gives - -rise to a multitude of design issues. The first question that - -needs to be answered is, where should the translation table be - -located? Should every node maintain a copy of the whole - -translation table, or should there be just a few copies of the - -table scattered around the network in strategic locations? If - -there are only a few copies scattered around the network, then - -nodes which do not contain the tables would have to query the - -nodes that do in order to perform the translation function. This - -is less efficient (both in terms of overhead and response time) - -than placing the table in every node. Considerations of - - - - - -7- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -reliability and survivability also favor placing the table in - -every node. This eliminates the possibility of finding that, due - -to network partition, all copies of the translation table are - -inaccessible. It eliminates the need to have some nodes serving - -as hot or cold standby for the nodes which do have the tables. - -This is an important advantage, since the protocols needed to - -implement "standby" tend to be slow and cumbersome, or else - -unreliable. Furthermore, if all nodes maintain identical copies - -of the translation table, there is no need to go through any - -special initialization procedure for creating the table when a - -node first comes up. Typically, a node which is just coming up - -has been reloaded from a neighboring node. If all nodes have an - -identical copy of the table, a node coming up can simply have its - -table reloaded from its neighbor, i.e., can copy its neighbor's - -table. (Under certain unusual conditions this may give rise to a - -race condition, but as we shall see later, it is a race that can - -be easily remedied and one that will not have any bad effect - -other than to slow the reload process.) - - - There is, however, a possible disadvantage to having the - -tables in every node. That is simply the need to have enough - -memory in every node to hold the table. In certain networks, - -particularly commercial ones, the network nodes may be of widely - -varying sizes and capabilities, and the smaller nodes just may - - - - - -8- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -not be able to hold the complete translation table. Such - -networks would necessarily have a hierarchical structure - -(probably with some form of hierarchical routing), and a node - -would not be able to hold a translation table unless it were at - -or above a certain level in the hierarchy. - - - Strictly speaking, only those nodes which will ever need to - -translate a logical address to a physical address will need to - -have a copy of the translation table. Whether that is all nodes - -or only a subset of the nodes depends on the translation - -methodology that we adopt. We have a choice between requiring - -translation to be done only at the source node, or requiring it - -to be done also at tandem nodes. In the former case, when the - -user presents some data to the network and specifies its - -destination with a logical address, the source node looks in the - -translation table, gets the physical address, places the physical - -address in the packet header, and sends the packet on its way. - -Tandem nodes do not look at the destination logical address at - -all, but only at the physical address. In the other case, each - -tandem node looks at the logical address, does its own - -translation to physical address, and routes the packet on that - -basis. The packet header would not even have to contain the - -physical address. If we do source translation only, the only - -nodes which need to contain translation tables are those that - - - - - -9- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -connect to hosts which use logical addressing. If these nodes - -are only a subset of all the nodes, then it may be feasible to - -configure these nodes with more memory than the others. - -Therefore, we must look at the advantages of source node vs. - -tandem node translation. - - - - -2.2 Translation Methodology - - - Clearly, in the case where a logical address maps to a - -unique physical address, source node translation is superior to - -tandem node translation. As long as there is only one possible - -physical address for that logical address, all nodes will produce - -exactly the same mapping. There is thus no advantage to - -performing the mapping several times, and the scheme which does - -it only once is more efficient. There is, however, one exception - -to this. When the translation tables need to be updated, we - -cannot expect all copies to be updated simultaneously. There - -will necessarily be some short interval of time when not all of - -the copies of the table around the network are identical, and - -during this interval, tandem node translation may yield different - -results than source node translation. It will certainly be - -necessary to design some mechanism to deal with this problem, and - -we shall propose one shortly for the ARPANET environment. Tandem - -node translation, however, is not the right solution to this - - - - -10- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -problem. During the transient period, some copies of the table - -will be right (up to date) and some wrong (out of date). But the - -copies at the tandem nodes will be no more likely to be right - -than the copy at the source node, so tandem node translation - -would be as likely to amplify the problem as to reduce it. The - -solution to this problem lies elsewhere. - - - In the case where a logical address maps to several - -physical addresses (multi-homing), tandem node translation might - -well give different results than source node translation. - -However, we must now distinguish between virtual circuit and - -datagram traffic. If virtual circuit traffic is logically - -addressed, all translation must be performed at the source node. - -In fact, the translation must be performed only once, at - -connection set-up time. This is the only way to ensure that all - -traffic on a given circuit is sent to the same physical address, - -which in turn is the only way to provide the sequencing and - -duplicate detection that is the RAISON D'ETRE of virtual circuit - -traffic. (Additional issues having to do with logically - -addressed virtual circuit traffic will be discussed later.) Thus - -the only possible advantage of tandem node translation would have - -to do with datagram traffic which is destined to a multi-homed - -logical address. To understand the differences, though, between - -source node and tandem node translation, we must first discuss - - - - - -11- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -the criteria which a node uses to pick one physical address out - -of the several that are available. Even though a host is multi- - -homed, any particular packet for it can go to only one of its - -physical addresses; some criterion for choosing the proper one in - -each particular case must therefore be available. Several - -possible criteria come readily to mind: - - - a) When there are several physical addresses - -corresponding to a given logical address, it may be desirable to - -send packets to the physical address which is closest to the - -source node, according to some metric of distance. For example, - -if we are interested in minimizing delay, we may want to choose - -the physical address to which the delay from the source is least. - -If SPF routing is used, this information is readily available. - -If we are interested in minimizing the use of network resources - -by a particular packet (i.e., in maximizing throughput while - -still using only a single path), we may want to choose the - -physical address which is the least number of hops from the - -source. (For these purposes, ties can be broken arbitrarily.) - -Again, this information can be made readily available by the SPF - -routing algorithm (although it is not readily available from the - -ARPANET's particular implementation of that algorithm, since a - -table of hop-counts is not saved). If either of these criteria - -is used, tandem node translation can result in better route - - - - - -12- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -selection for the logically addressed datagram. If delay changes - -or topology changes take place while a packet is in transit, it - -may happen that the "closest" physical address to some tandem - -node is different from the physical address that was closest to - -the source node when the packet first entered the network. It is - -easy to prove that, if SPF routing is used, this cannot result in - -looping, except as a transient phenomenon while a routing update - -is traversing the network. That is no particular disadvantage, - -since a packet may be subject to that sort of transient looping - -even when its destination physical address does not change. - -However, it is not clear that tandem node translation provides - -much of an advantage either, especially when one takes into - -account the additional overhead of doing the re-translation at - -each tandem node. Doing translation at tandem nodes will - -necessarily increase the nodal delay and decrease the nodal - -throughput. These negative effects may outweigh the positive - -effects of improved route selection for those relatively rare - -cases in which delay or topology changes significantly while a - -packet is in transit. We must remember that although real - -improvements in route selection would only occur rarely (since - -delay and topology changes are very infrequent when compared with - -average network transit times), re-translation would have to be - -done for EVERY logically addressed datagram. Unfortunately, all - -these effects are extremely difficult to quantify with any degree - - - - -13- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -of confidence. Our (somewhat intuitive) conclusion is that, - -under the selection criterion of choosing the closest physical - -address, tandem node translation offers at best a small - -improvement over source node translation, and at worst a severe - -degradation. - - - b) It is possible that some multi-homed hosts will want - -to establish an inherent ordering to their ports. That is, they - -may prefer to receive all their traffic on port A, unless that - -port is inaccessible to the source of the traffic, in which case - -they prefer to receive all traffic on port B, unless that port is - -inaccessible to the source of the traffic, in which case they - -prefer to receive all traffic on port C, etc. This sort of - -strategy may be appropriate if certain of the host access lines - -are charged according to a volume-based tariff, while others are - -not. It may also be appropriate if certain of the access lines - -can be used more efficiently (i.e., can be serviced with less - -host CPU bandwidth) than others. (An example might be a host - -which can access the ARPANET through an 1822 line and a VDH line. - -It might be desirable to avoid the VDH line, unless absolutely - -necessary, since VDH lines tend to be used less efficiently.) In - -either case, the idea would be to reduce cost by favoring certain - -ports over others, using the more expensive ports only when - -needed for purposes of reliability or availability. Thus we may - - - - - -14- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -want the logical addressing scheme to support an inherent - -ordering among the several physical addresses which correspond to - -a given logical address. With this scheme, there is no advantage - -to doing tandem node translation. There will be only one - -ordering for the set of physical addresses corresponding to a - -logical address, so tandem nodes should always pick the same - -physical address as the source node picked, and re-translation - -would simply be a waste of resources. There are only two - -exceptions to this. The first exception would arise in the - -situation where a particular physical address becomes - -inaccessible as a packet routed to that address is traversing the - -network. However, since this can happen no matter what criteria - -are used for choosing among the physical addresses, we put it off - -for later consideration. The second exception would arise if the - -translation tables were being updated while a packet is in - -transit. Clearly, some procedure to deal with this case must be - -devised, since the update which is taking place may invalidate - -the translation which was done at the source. Tandem node - -translation is not the proper solution, however, since there is - -in general no reason to believe that the tandem node is more up- - -to-date than the source node. We will return to this issue when - -we discuss the table updating procedures. - - - c) Certain multi-homed hosts may have a preference for - - - - - -15- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -receiving certain kinds of traffic over particular ports. Thus a - -dual-homed host may consider one of its ports more suitable for - -receiving batch traffic, and another more suitable for receiving - -interactive traffic (perhaps the first port offers a higher speed - -but a longer delay than the second). However, if one of the - -ports is inaccessible from a particular source node, that node - -would send all its traffic (both kinds) to the port which remains - -accessible. With this criterion, we see once again that tandem - -node translation offers no benefits, since, barring the case of a - -port becoming inaccessible while a packet is in transit, all - -tandem nodes would select the same physical address as the source - -node. - - - d) Some multi-homed hosts may wish to try to keep their - -several access lines as equally loaded as possible. One possible - -way to do this would be to establish an inherent ordering to the - -ports (as in b, above), but to make the ordering different for - -different source nodes (or hosts). Clearly, this scheme requires - -source node translation; tandem node translation would only serve - -to defeat it. Another possible way to achieve some sort of load - -leveling would be for each source node to send traffic to the - -various physical addresses on a round-robin basis. This would be - -a very crude form of control, but might work reasonably well for - -particular traffic patterns. This scheme also requires source - - - - - -16- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -node translation. In fact, tandem node translation could - -actually cause packets to loop endlessly. - - - We see then that none of the suggested selection criteria - -give any very large advantage to tandem node translation, and - -some of the criteria are actually in conflict with re-translation - -at tandem nodes. Thus it is not necessary for all notes to hold - -the translation tables; only those nodes connected to hosts which - -use logical addressing need hold the tables. Of course, it is - -still possible that the tables will be too large to be held in - -any one node, in which case we would have to use distributed - -database techniques to split the tables among several nodes. We - -will not consider that further here, but we will consider it in a - -future IEN. - - - - -3 Organizing the Translation Tables - - - Another issue having to do with the translation tables is - -the way in which the tables should be organized. Clearly we do - -not want the entries in the table to be in random order, - -necessitating a lengthy linear search each time a translation - -must be done. Basically, there are two possible ways to order - -the table. We can sort the table by logical address, and do a - -binary search of the table whenever we need to do a logical-to- - - - - - -17- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -physical address translation. This is a rather efficient form of - -searching, but it causes inefficiencies when table entries have - -to be inserted or deleted, since that would require a potentially - -time-consuming expansion or compression of the table. There are, - -however, ways of reducing the overhead involved in - -insertions/deletions. Deletions could be made "logically", i.e., - -by marking an entry deleted, rather than physically compressing - -the table. New entries could be inserted into an overflow area, - -which itself would be searched linearly whenever a particular - -logical address could not be found in the main table. Actual - -compression/expansion of the main table would be done only when - -the overflow area filled. Note, however, that this sort of - -strategy would necessarily complicate the search algorithm, and - -this might actually do more harm than good, especially if - -insertions and deletions are rare events. We shall see later, - -when we discuss the conditions under which insertions and - -deletions are required, that these are indeed rare events. We - -conclude tentatively that, if a sorted table with binary - -searching is used, the use of an overflow area is probably not - -necessary. - - - The other possibility for organizing the table is to use - -hashing. A good hashing algorithm (i.e., one which minimizes - -collisions) provides very efficient insertions and very efficient - - - - - -18- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -searches. Deletions are not quite so efficient, but are still - -more efficient, in general, than the table compression required - -if binary searching is used. However, hashing has certain - -inherent problems which may make it less suitable. Choosing a - -hashing algorithm which both minimizes collisions and is - -computationally efficient is not a simple matter. One must be - -sure that the time needed to perform the hashing is really less - -than the average time needed to find an entry in a sorted table - -by means of binary searching; otherwise, the efficiency is lost. - -Furthermore, the number of collisions generated by a particular - -hashing algorithm will depend on exactly which set of logical - -addresses are in use. The set of logical addresses in use during - -a network's lifetime will be a slowly changing set, and a hashing - -algorithm which is excellent at one time may give poor - -performance at another. Hashing algorithms are also subject to - -undetected programming bugs in a way in which binary search - -algorithms are not. A bug which is inserted into a hashing - -algorithm, which, for example, causes all entries to hash into - -the same bucket, might go undetected for years, although it would - -cause a significant performance degradation by reducing the - -efficiency of the hashing technique to that of linear searching. - -A bug in the binary search algorithm, however, would be more - -likely to come to someone's attention. Its probable result would - -not be performance degradation, but rather, failure to find - - - - -19- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -certain entries. This would cause inability to deliver traffic - -to certain logical addresses, and this would certainly come to - -the users' attention very quickly. These qualitative reasons - -would seem to indicate that binary searching is preferable to - -hashing. It would also be useful to do some quantitative - -analysis; that may be done at a later stage of our research. - - - Someone may wonder why we have not considered a much - -simpler method of organizing the tables. Logical addresses, - -after all, are just numbers (or at least are representable as - -numbers). If the set of logical addresses in use at any given - -time is a contiguous set of numbers, then the addresses can be - -used as indexes directly into a translation table, with no need - -either for hashing or for sorting. The problem, of course, lies - -in the requirement that the set of logical addresses form a - -contiguous set of numbers. Assigning numbers to hosts - -contiguously may not be a problem in itself, but it does cause a - -problem as soon as some host is removed from the network. Its - -number (or numbers, if it has several logical addresses) cannot - -be left unused, or the size of the translation table would be - -determined not by the number of logical addresses currently in - -use in the network, but rather by the number of logical addresses - -that have ever been in use in the network, a number which may be - -much larger, and which in fact has no bound. Yet it is not - - - - - -20- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -acceptable simply to reassign the same logical addresses as hosts - -enter or leave the network. We all have some experience with - -moving to a new location, getting a new telephone number, and - -finding ourselves frequently getting calls intended for the - -person who previously had that number. Such calls may persist - -for years, especially if the number previously belonged to a - -business. Receiving phone calls or mail intended for someone - -else who happens to have the same name as we do is also a - -familiar occurrence. We would expect analogous problems if - -logical addresses are reassigned (at least, if they are - -reassigned without some very long waiting period), especially if - -the logical address previously belonged to a large service host. - -When a user tries to address a host which is no longer on the - -network, he should receive some indication of that fact; he - -should NOT have his data mis-delivered to some other host which - -has been assigned the same name. Thus it is preferable to have a - -logical addressing scheme which does not depend on the logical - -addresses forming a contiguous set of numbers. - - - Whatever means of organizing the table is chosen, it may - -still be useful to maintain a smaller table for use as a "cache." - -The cache would contain the n most recently used logical - -addresses (where n is some small number), together with a pointer - -to the absolute location of that logical address entry in the - - - - - -21- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -main translation table. When it is necessary to do translation, - -the cache would be searched before the main table. The - -assumption is that once one packet for a particular logical - -address is received from a source host, many more will follow. - -Thus it pays to optimize the search for that particular logical - -address. Choosing the optimum size for the cache, and the means - -of searching it (linear or binary) are issues left for later - -resolution. These issues must be dealt with carefully, however; - -one would not want to find that searching the cache takes as long - -or longer than searching the main table. It is worth emphasizing - -that the cache should contain a pointer into the main translation - -table, rather than a copy of the list of physical addresses - -associated with a particular logical address. For multi-homed - -logical addresses, this is more efficient, since it involves less - -copying. Also, if there are variables associated with the - -physical addresses, this enables unique copies of the variables - -to be kept in the main table. (Suppose, for example, that - -packets are to be sent on a round-robin basis to the several - -physical addresses corresponding to a multi-homed logical - -address. This requires a variable to be associated with each - -physical address, indicating whether that physical address was - -the last one to be sent data. This variable must be kept in the - -main table, not the cache, since one cannot rely on a particular - -logical address always being present in the cache.) This means, - - - - -22- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -of course, that the cache must be cleared whenever there are - -insertions or deletions into the main translation table, but that - -should not be very expensive as long as such insertions and - -deletions are relatively rare. - - - - -4 Initializing the Translation Tables - - - We turn now to the issue of how the translation table - -entries are to be set up in the first place. That is, what - -procedure is to be used for establishing that a particular - -logical address is to map to a particular set of physical - -addresses. One possibility for the ARPANET, of course, is to - -have all the mappings set up by the Network Control Center (NCC). - -This is quite reasonable in certain cases. If some user wants - -his computer to be addressable by some new logical address (i.e., - -by a logical address not previously in use), it makes sense to - -have him contact the NCC directly. If the user has proper - -authorization, the NCC can then take action to set up the new - -entry in all the translation tables. A similar procedure would - -also be appropriate if some logical address is to be totally - -removed from the translation tables (i.e., that logical address - -will no longer be in use in that network). This procedure would - -also be appropriate when a particular computer is moved from one - -location to another, necessitating a change in its logical-to- - - - - -23- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -physical mapping, or if the functionality of two computers is - -combined into one, so that two logical addresses which formerly - -mapped to distinct physical addresses now map to the same - -physical address. What all these cases have in common is that - -they are relatively infrequent (i.e., occurring on the order of - -days, rather than on the order of minutes), and they require - -considerable advance planning. The first of these - -characteristics ensures that NCC personnel will not be swamped - -with translation table changes. The second of these - -characteristics makes it feasible to coordinate such changes in - -advance with the NCC. Unfortunately, not all translation table - -changes have these characteristics. For example, we have - -suggested that a good logical addressing scheme should facilitate - -port-sharing. That is, some user might want to unplug one of his - -computers from the network and use that port for another - -computer. He should be able to do this without much advance - -planning, and without having to explicitly coordinate with the - -NCC. As soon as the change is made, users who are logically - -addressing the first computer should be told that it is no longer - -on the network; only the logical address of the second computer - -should map to this port. If this change in the mapping does not - -take place immediately, the result can be mis-delivery of data, - -as packets which are logically addressed to the first computer - -get mis-delivered to the second. A similar situation arises if - - - - -24- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -some computer consists of several "logical hosts." Logical hosts - -may come and go quite frequently, with no advance planning at - -all. The logical addressing system should be able to adapt - -immediately to such changes, without any need for human - -intervention. A related situation arises in the case of logical - -addresses which are multi-homed. We have already discussed - -various possible criteria for choosing among the several physical - -addresses associated with a single multi-homed logical address. - -But before applying these criteria, any physical addresses which - -are "inaccessible" from the source node must be excluded. If - -some host has two access lines into the network, and one of them - -is inaccessible from a particular source node, then all traffic - -from that source node should be directed to the other access - -line. Indeed, this is one of the most important purposes of - -multi-homing. This implies that a source node must have some way - -of knowing that a certain physical address is not currently - -accessible. There are basically two classes of reasons why a - -given physical address might be inaccessible from a source node. - -The first is that there is no path from the source node to the - -destination node (either because the network is partitioned, or - -because the destination node is down). This information is - -readily available from the routing tables, and need not be kept - -in the translation tables. It is simple enough to check the - -routing tables when choosing one from a set of physical - - - - -25- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -addresses. The other reason why a physical address might be - -inaccessible is that the port itself, or the access line from the - -port to the host, has failed. Functionally, this is the - -equivalent of unplugging the host from the port. It may happen - -quite frequently, however, and certainly with no advance - -planning. As long as the node itself is up, the routing - -algorithm will give no indication that the port is inaccessible; - -this information must somehow get into the translation tables. - -Clearly, we do not want to depend on human intervention to ensure - -that this sort of change gets made in the translation tables. - -What is needed here is a quick and reliable means of making - -changes in the translation tables, not the cumbersome and - -unreliable method of contacting the NCC. The same problem arises - -when the inaccessible port becomes accessible again. One wants - -to be able to begin using this port again as soon as possible, - -without having to wait until NCC personnel have time to make the - -appropriate changes in the translation tables. So although - -certain sorts of changes to the translation tables can be made by - -the NCC, many sorts of changes will occur suddenly and - -unexpectedly, and need to become effective immediately. So the - -procedure of having all translation table changes made by the NCC - -is not satisfactory. - - - There is another sort of problem with having translation - - - - - -26- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -table changes made by the NCC. The problem is that carelessness, - -either by the NCC or by host site personnel, can result in mis- - -delivery of data if changes are made by the NCC. Suppose, for - -example, that a network controller makes a typographical error, - -associating a logical address with an incorrect physical address. - -If there is no further check on the validity of that mapping, one - -computer may receive data intended for another. A good logical - -addressing scheme should prevent this sort of simple - -typographical error from resulting in mis-delivery. The same - -situation can occur if one computer is carelessly plugged into - -the wrong port. In this case, networks which use only physical - -addressing might also mis-deliver data. However, with physical - -addressing, one must expect mis-delivery if some computer is - -plugged into the wrong port (i.e., given the wrong physical - -address) due to carelessness. With logical addressing, this is - -not inevitable, and a good scheme should give better protection - -against carelessness. - - - Another possibility for setting up the translation table - -entries is to have each host, as it comes up on the network, tell - -the network which logical addresses it wants to be addressed by - -over each of its (physical) ports. This would require - -augmentation of the host access protocol to include a "Logical - -Address Declaration" (LAD) message. A given host could put as - - - - - -27- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -many logical addresses as it wanted in each LAD message. Multi- - -homed hosts would send the same LAD message over each of their - -ports. The logical addresses specified in the LAD message - -received over a given port would all be mapped to that particular - -physical address. Hosts would be allowed to change their logical - -addresses at any time by sending a LAD message to the network. - -Since a host may wish to add or delete logical addresses for - -itself at any time, there would have to be two options for the - -LAD message -- "add" and "delete." Whenever a particular port - -goes down (either because the port itself fails to function - -properly, or because the access line between the network and the - -host fails, or because the host itself crashes), all mappings of - -logical addresses to that port would be cancelled. When the host - -can once again communicate with the network through that port, it - -would have to redeclare its logical addresses with a LAD message - -before it could receive any logically addressed traffic. - - - Allowing each host to set up its own logical-to-physical - -address mappings in this manner has several advantages over - -having all the mappings set up by the NCC. This procedure allows - -sudden and unplanned mapping changes to take effect immediately, - -with no need for advance planning and coordination with the NCC. - -Since the mappings are cancelled immediately when a port goes - -down, this procedure helps to ensure that, if one of a multi- - - - - - -28- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -homed host's ports is down, all data which is logically addressed - -to that host will go to the other ports. If one host is - -unplugged from a given port, and another plugged in its place, - -the procedure ensures that the mapping for the first host is - -cancelled, while the mapping for the second host becomes - -effective. When a host goes down, there is no assumption that - -the same host will return in the same location. Hence - -carelessness on the part of site personnel or NCC personnel - -cannot result in mis-delivery of data; data which is logically - -addressed to a certain host could only be delivered to a host - -which has declared itself to have that logical address. - - - There are, however, two quite serious problems with this - -procedure. The first problem is that of spoofing. That is, this - -procedure offers no protection against the situation where one - -host declares itself to be addressable by a logical address which - -is supposed to be the logical address of a different host. Thus - -the procedure allows one host to "steal" traffic intended for - -another, simply by declaring itself to have the same logical - -address as the other. This sort of spoofing might be done by a - -malicious user, who is really trying to steal someone else's - -data, or it might happen accidentally, as a result of programmer - -or operator error. In either case, we would like to have some - -procedure which is less prone to spoofing. The other serious - - - - - -29- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -problem with this procedure is that it can easily cause the - -translation tables to overflow in size. If every host can - -specify an uncontrolled and unlimited number of logical addresses - -for itself, there is no bound on the size of the translation - -tables. Since only a finite amount of memory will be available - -for the translation tables, it is clearly not acceptable to allow - -each host to specify an arbitray number of logical addresses for - -itself. - - - - -5 Updating the Translation Tables - - - We have examined two different procedures for setting up - -the logical-to-physical address mappings, and have found that - -they both have problems. Many of these problems can be resolved, - -however, by a combination of the two procedures. Let us define - -two characteristics of a logical-to-physical address mapping, - -which we will call "authorized" and "effective." A mapping from a - -particular logical address to a particular physical address is - -"authorized" if a host which connects to the network at that - -physical address is allowed to use that logical address. - -Authorizations would change very infrequently, and only after - -considerable advance planning. Hence it is appropriate for - -authorizations to be determined (i.e., added and deleted) by the - -NCC. A mapping from a particular logical address to a particular - - - - -30- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -physical address would be said to be "effective" from the - -perspective of a given source node if (1) that mapping is - -authorized, (2) that physical address is accessible from that - -source node, and (3) the host at that physical address has, by - -means of a LAD message, declared itself to have that logical - -address. When a port goes down, all mappings to it will become - -ineffective, until they are made effective again by means of a - -LAD message. Logically addressed traffic will not be delivered - -to a particular physical address unless the mapping between that - -logical address and that physical address is effective. Changes - -in the effectiveness of a mapping will occur automatically, in - -real-time, with no need for intervention by NCC personnel. This - -facilitates multi-homing, since if there are two authorized - -mappings of a logical address to a physical address, and only one - -is effective, that one can be chosen all the time until the - -second becomes effective also. It facilitates sharing of ports - -(either by physical or by logical hosts), since each host has - -control over the effectiveness (though not the authorization) of - -the mappings that affect it. Carelessness by NCC personnel can - -cause the wrong mappings to become authorized, but it is rather - -unlikely that an incorrectly authorized mapping could become - -effective -- that would require carefully planned malicious - -intent. Therefore, such carelessness might prevent delivery of - -data to some host, but would not cause mis-delivery of data. - - - - -31- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -Carelessness by site personnel, such as plugging a host into the - -wrong port, would not cause mis-delivery of data, since the - -mapping of that host's logical address to that particular port - -would not be authorized. The possibility of spoofing is greatly - -reduced; since host A cannot pretend to be host B unless it is at - -a port which is already authorized for host B. The size of the - -translation table cannot increase without bound, since that is - -determined by the number of authorized mappings, and cannot be - -increased by LAD messages. This means, of course, that the - -network access protocol must be further modified so that it can - -provide positive and negative acknowledgments for the LAD - -messages. For each logical address that a host specifies for - -itself in a LAD message, the network must return either a - -positive or a negative acknowledgment. The positive - -acknowledgment would indicate that the mapping is authorized and - -has become effective. The negative acknowledgment would indicate - -that the mapping is not authorized. - - - It must be emphasized that the suggested procedures are - -not intended to provide security in any very strict sense. For - -networks in which security is a very important issue (e.g., - -AUTODIN II), further study of these issues should be carried out - -by security experts. - - - It should also be emphasized that these procedures will - - - - -32- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -allow the logical addressing scheme to continue to function - -normally even if the NCC facilities are down. It does require - -centralized intervention to add or delete authorizations, and - -this could not be done if the NCC were down. For a fixed set of - -authorized mappings, however, no centralized intervention is - -required to determine the effectiveness of the mappings. That - -is, the real-time functionality and responsiveness of the logical - -addressing scheme does not depend in any way on the proper - -functioning of the NCC. - - - We have argued that the authorization of a mapping should - -be determined by the NCC, and the effectiveness of a mapping - -should be determined by the network node which contains the - -physical address (port) to which the mapping is made, in - -cooperation with the host that is connected to that port. We - -have also argued that a full translation table (i.e., a table - -containing all the effective mappings) should be stored at each - -network node (or more precisely, at each network node which - -serves as an access point for a host which can be either a source - -or a destination of logically addressed traffic). However, we - -have not yet discussed the algorithm by which the effectiveness - -or ineffectiveness of a particular logical-to-physical address - -mapping is communicated to all network nodes. We turn now to - -this issue. We will discuss two very different methods for - - - - - -33- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -building up the translation tables at all nodes. - - - The first method is based upon an extension of the SPF - -routing algorithm, wherein each logical address is treated like a - -stub node. In this method, each node is initialized with a - -partial translation table. This table contains a list of all the - -logical addresses which are AUTHORIZED to map TO that node, - -(i.e., all the logical addresses which correspond to ports at - -that node). Each of these logical addresses is associated with a - -particular port or ports at that node. At initialization time, - -each of these logical addresses is treated just as if it is a - -neighboring node which is down, and the node sends an update - -(similar to a routing update) to all other nodes, indicating that - -all authorized mappings to itself are ineffective. When a host - -comes up over a particular port, it declares its logical - -address(es) by means of one or more LAD messages. The node then - -checks its table of authorized mappings, and acknowledges to the - -host (either positively or negatively) each logical address - -mentioned in the LAD message. Whenever a logical address is - -positively acknowledged, it becomes effective, and the node must - -broadcast an update to all other nodes declaring that mapping to - -be effective. Whenever a host declares (via a LAD message) that - -it no longer wants to be addressable by a particular logical - -address, an update must be generated declaring that mapping to be - - - - - -34- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -ineffective. Whenever a port goes down, all logical addresses - -mapping to it become ineffective, and an update indicating this - -must be broadcast. If the protocol used to disseminate these - -updates is the same as the protocol used in the ARPANET to - -disseminate the updates of the SPF routing algorithm, then all - -nodes will be able to build dynamically an up-to-date table of - -effective mappings, just as the routing updates enable them to - -build an up-to-date topology table. (The procedure used to build - -the topology tables is described in [1]. The updating protocol - -is described in [2] and [3].) In effect, this procedure extends - -the routing algorithm to treat the hosts (or more precisely, the - -mappings of logical addresses to physical addresses) as stub - -nodes, and the ports as lines, except that there is no delay - -associated with a port, but only an up/down status. - - - This procedure is attractive from a conceptual point of - -view, but it is not really cost-effective. That is, it seems to - -be too expensive to be practical. One reason is that it is hard - -to place a bound on the size of the updates. The updating - -protocol of the ARPANET routing algorithm is quite efficient, - -because the updates are so small. The maximum update size is - -only 216 bits (from a node with 5 neighbors). The logical - -addressing updates might be much longer, since there is no limit - -on the number of logical addresses that may map to a given node. - - - - - -35- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -The updates would also have to be sent periodically, even when - -there in no change in state. These features are necessary to - -ensure reliability in the face of such events as partitions, node - -crashes, updates received out of order, etc. With no restriction - -on the number of logical addresses which can map to a given node - -(and it seems unwise to build in such a restriction), there is no - -restriction on update size, and hence no bound on the bandwidth - -needed for updating, or on the extra delay which may be imposed - -on data packets due to the need to transmit the updates. - - - The updating protocol which was designed for the SPF - -routing algorithm was designed to get the updates to all nodes - -very quickly, and with 100% reliability, even in the face of - -various types of network failures. This extreme speed and - -reliability is necessary for routing updates, since rapid and - -reliable updating of the routing tables is necessary to ensure - -the integrity of the network. Routing failures, after all, can - -make the network completely unusable, and can be very difficult - -to recover from, since most recovery techniques depend on the - -NCC's ability to communicate with the nodes, which in turn - -depends upon the integrity of the routing algorithm. - -Fortunately, the protocol used for disseminating the logical - -addressing updates does not need all the functionality of the - -updating protocol used for routing, since the integrity of the - - - - - -36- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -logical addressing scheme is not quite as critical as the - -integrity of the routing algorithm. This enables us to use a - -simpler and less expensive method of maintaining the translation - -tables, which we will now discuss. - - - In this second method, each node is initialized with a - -translation table containing ALL the authorized mappings. This - -table would have an entry for every logical address that can be - -used in the network. Each logical address would be associated in - -the table with all the physical addresses to which it has an - -authorized mapping. Associated with each of these physical - -addresses would be a Boolean variable indicating whether that - -particular logical-to-physical address mapping is effective or - -ineffective. At initialization time a node would mark all - -mappings to itself as INEFFECTIVE, and all mappings to other - -nodes as EFFECTIVE. Whenever a host declares itself, via a LAD - -message, to have a certain logical address, the node looks in the - -translation table to see if that mapping is authorized. (This is - -just an ordinary table look-up, indexed off the logical address.) - -If not, a negative acknowledgment is sent to the host. If the - -mapping is authorized, a positive acknowledgement is sent, and - -the entry in the translation table is marked EFFECTIVE. Whenever - -a port goes down, the node marks all mappings to that port as - -INEFFECTIVE. Of course, this also requires a "reverse" search of - - - - - -37- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -the table (i.e., a search based on a physical, rather than - -logical address). To make this more efficient, when the initial - -reverse search is done at initialization time, the node can save - -a list of pointers into the translation table. Each pointer - -would correspond to a physical address entry for that node. If a - -separate table of pointers is kept for each port, the node will - -be able to find in a very efficient manner entries which map to a - -particular port. Using this methodology, each node's translation - -table will correctly indicate, for each of the logical addresses - -that map to IT, whether or not that mapping is effective. (Of - -course, these pointers would have to be adjusted whenever table - -insertions or deletions are made.) - - - When a source host sends a logically addressed datagram - -packet into the network, the source node will search the - -translation table for the correct mapping. If that logical - -address cannot be found, i.e., its use is not authorized, an - -error message indicating this fact should be returned to the - -host, and the packet discarded. If that logical address is - -found, but all the corresponding physical addresses are either - -marked INEFFECTIVE, or else are unreachable (according to the - -routing algorithm), then the packet should be discarded, and the - -host informed of that fact. If some of the physical addresses - -are both reachable (according to routing) and marked EFFECTIVE, - - - - - -38- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -then one should be chosen, according to some set of criteria - -(perhaps one of those which we discussed above). The chosen - -physical address should be placed in the packet header, along - -with the logical address. The packet should then be forwarded to - -its destination; in doing the forwarding, tandem nodes will look - -only at the physical address. According to the procedure - -described in the previous paragraph, all mappings to REMOTE ports - -will be initially marked EFFECTIVE. To see how such mappings can - -get marked INEFFECTIVE, we must see what happens when a logically - -addressed packet reaches its destination node. - - - When a logically addressed datagram packet reaches its - -destination node, the node looks up that logical address in its - -translation table. It is possible, of course, that that logical - -address will not be found at all, or that it will be found, but - -that there will be no authorized mapping to this particular - -destination node. This would indicate some sort of disagreement - -between the translation tables at the source and destination - -nodes. There are three possible causes of this disagreement: - -(1) NCC error in setting up the translation tables, (2) deletion - -of the authorization for that particular logical address while - -the packet was in transit, or (3) a race condition, whereby a - -translation table update authorizing the new logical address is - -taking place, but the update has not reached that destination - - - - - -39- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -node yet. In any case, the data packet should be discarded - -without delivery, and an error message should be sent to the NCC - -indicating receipt of a packet with an unauthorized logical - -address. This will alert NCC personnel to a possible error. If - -the authorization for that logical address was deleted while the - -packet was in transit, however, then the NCC need not take any - -action; having the destination node simply discard the packet is - -the correct procedure. If, on the other hand, that logical-to- - -physical mapping is really authorized, but the update making the - -authorization has not yet reached the destination node, then we - -want to take the same action as we would take for a packet - -delivered according to an authorized but ineffective mapping. - -This action shall be described in the next paragraph. - - - Suppose that, upon looking up the logical address in the - -translation table, the destination node does find an authorized - -mapping to itself, but that mapping is marked ineffective. Then - -there are two actions to take. The first action is to try to - -re-address and then re-send the message. Of course, this can - -only be done if the destination logical address is multi-homed, - -and at least one of the corresponding physical addresses is - -effective. If this is not the case, the packet must be - -discarded. The second action is to send a special message back - -to the source node of that datagram packet. We will call this - - - - - -40- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -message a "DNA message" (for "Destination Not Accessible"). The - -DNA message will specify that the particular logical-to-physical - -address mapping used for that packet is not an EFFECTIVE mapping. - -The DNA message should also be sent in response to datagrams - -which appear to have unauthorized mappings (see previous - -paragraph). For reliability, each logically addressed datagram - -must carry the physical address of its source node (though not of - -its source host), so that the DNA message can be physically - -addressed to the source node. It is not enough for the packet - -simply to carry the logical address of its source host, for two - -reasons. The first reason is that if the source host is multi- - -homed, the destination node will not know which source node the - -packet came from, and hence will not know where to send the DNA - -message. The second reason has to do with the fact that one - -situation in which DNA messages may have to be sent is the - -situation in which the translation table at the destination node - -has been set up erroneously. In this case, we do not want to - -have to rely on the integrity of the translation table to ensure - -proper delivery of the DNA message. - - - When a source node receives a DNA message indicating that - -a certain logical-to-physical address mapping is ineffective, it - -must find the proper entry in its translation table, and mark - -that mapping as ineffective. Henceforth, incoming packets with - - - - - -41- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -that particular logical address will not be sent to that - -particular physical address. If the logical address is multi- - -homed, packets will be sent to one or more of the other physical - -addresses, unless all the mappings for that logical address are - -ineffective. If this is the case, packets for that logical - -address will be discarded by the source node, which should also - -return some sort of negative acknowledgment to the source host. - -We see then that the DNA messages provide a feedback mechanism - -which enables a source node to tell when a mapping to a remote - -port is ineffective. The source node has no way to tell whether - -this is the case, until it sends a packet to that port. After - -sending the packet, it will be explicitly told by the DNA message - -if the mapping is ineffective. If it receives no DNA message, it - -assumes that the mapping is effective. This may mean, of course, - -that some logically addressed packets are sent to a wrong - -physical address. However, if there are other possible physical - -addresses corresponding to that logical address, and the original - -destination node has one of those other mappings marked as - -effective, the packet will be re-addressed and re-delivered, so - -there is no data loss. Note that there are two possible reasons - -why a given logical-to-physical address mapping might be - -ineffective: (1) the physical port might not be operational, or - -(2) the host at that physical address might not have declared - -itself addressable with that logical address. If desired, the - - - - -42- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -DNA message can indicate which of these two reasons is applicable - -in the particular case in hand. This information can be stored - -in the source node's translation table, and passed on to source - -hosts which try to use a logical address for which all the - -mappings are ineffective. - - - This procedure enables all nodes to find out when a - -particular authorized mapping is ineffective. We also need a - -procedure to enable the nodes to find out when an ineffective - -mapping becomes effective again (i.e., a port comes back up, or a - -new LAD message is received at some remote site). A simple but - -effective method is the following. At periodic intervals (say, - -every 5 or 10 minutes) each node will go through its translation - -table and mark ALL the entries which map to REMOTE ports to be - -effective. (Entries which map to local ports will be marked - -effective or ineffective according to procedures already - -discussed. The current procedure will not apply to such - -entries.) This enables mappings to be used again shortly after - -they become effective. Of course, this scheme will result in - -some packets being sent to the wrong physical address. When that - -happens, however, a DNA message will be elicited, causing that - -mapping to be marked ineffective again in that source node. - -Furthermore, this scheme does not cause any unnecessary data - -loss, since packets sent to the wrong physical address will be - - - - - -43- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -re-addressed and re-delivered, if possible. - - - Although this method requires all nodes to periodically - -mark all mappings to remote ports effective, it is important to - -understand that it does not require any time-synchronization - -among the various nodes. Also, there is no reason why all the - -mappings have to be marked effective at the same time. For - -example, if the translation table contains 600 mappings, rather - -than marking all of them effective every 10 minutes, it may be - -more efficient to mark one mapping effective each second, thereby - -cycling through the table every ten minutes (though if this - -method is used, it must take account of table compressions and - -expansions which may occur as the NCC adds or deletes - -authorizations). - - - There is also an issue as to the exact methodology to be - -used to send the DNA messages. The simplest method is for a - -destination node to send a DNA message to the source node of each - -packet which arrives as the result of an ineffective mapping. If - -this method is used, there is no need to use a reliable transport - -protocol in sending the DNA messages. If, for some reason, a DNA - -message fails to get through to the source node, more packets - -will arrive at the wrong destination node, causing more DNA - -messages to be sent, until one of them finally gets through. - -This method, however, might generate a virtually unbounded number - - - - -44- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -of DNA messages, particularly in pure datagram networks with no - -flow or congestion control. This in turn might contribute to - -network congestion. In order to gain better control of the - -throughput due to DNA messages, one could implement a scheme - -which ensures that only one DNA per ineffective mapping per - -source node can be sent within a certain time interval. This - -scheme would have a significant cost in table space, however. - -Also, it would require some sort of reliable transport protocol - -(e.g., positive acknowledgments from the source node when it - -receives the DNA message) to protect against the case where a DNA - -message is lost in transit. This issue would have to be - -carefully considered before any implementation is done. - - - The procedure to follow with virtual circuit traffic is - -very similar. In the ARPANET, a single virtual circuit or - -"connection" is individuated by the source and destination - -physical addresses. The user takes no part in setting up a - -connection; whenever a user sends a packet to the network which - -is not a datagram, the network checks to see if a connection from - -the user's physical address to the destination physical address - -that he specified is already in existence. If not, the IMPs - -automatically run a protocol to set up such a connection. With - -logical addressing, we would want to redefine the notion of a - -connection so that connections are individuated by source and - - - - - -45- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -destination LOGICAL address, rather than physical address. - -However, translation would be done only at connection setup time. - -Thereafter, all virtual circuit packets received by a given - -source node with the same source logical address and destination - -logical address would be sent on the same connection. If a - -destination node receives a connection setup message for a - -logical address whose mapping is ineffective, it will refuse the - -connection, just as it would refuse a setup message for a - -physical connection to a dead port. When the source node - -receives the refusal message, it will mark that particular - -logical-to-physical mapping as ineffective. If the destination - -logical address is multi-homed, the source node can attempt to - -set up the connection again, but with a different physical - -destination address. If a mapping becomes ineffective after a - -connection has already been set up, the destination node will - -take action to reset the connection, also informing the source - -node that the mapping is now ineffective. - - - Note that logically addressed virtual circuit packets - -need not carry in their headers the logical addresses of either - -the source or destination hosts, since that information can be - -stored in the connections tables at the source and destination - -nodes. Of course, all packets sent on a particular logical - -connection will go to the same physical destination port. - - - - - -46- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -However, if the destination node or port goes down, and the - -destination host is multi-homed, the above procedure - -automatically ensures that a new connection will be opened to one - -of the ports which is not down. Since the ARPANET connection - -protocol is transparent to the user, the user need never know - -that this has happened. - - - It is interesting to compare this procedure (based on DNA - -messages) with the previously discussed procedures (based on an - -updating protocol similar to that used for the SPF routing - -algorithm). The latter procedure would ensure that all nodes - -always agree (except during some very short transient period) on - -precisely which mappings are effective and which are not. - -Mappings would be marked effective (or ineffective) almost as - -soon as they become so. There would be no need for the source - -nodes to probe the destination nodes by sending data packets to - -possibly incorrect physical addresses. The procedure we are - -recommending does not have these features. In the recommended - -procedure, different nodes' translation tables would not - -necessarily be in agreement all the time as to which mappings are - -or are not effective, and probing is necessary. This is an - -acceptable situation though, since the sort of universal and - -immediate agreement which is necessary to ensure the proper - -functioning of a routing algorithm just is not needed to ensure - - - - - -47- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -the proper functioning of the logical addressing scheme. - -However, THE LACK OF UNIVERSAL AGREEMENT DOES REQUIRE THAT - -TRANSLATION BE DONE AT SOURCE NODES RATHER THAN TANDEM NODES, - -since the DNA-based procedure, while designed to keep the tables - -at source nodes up-to-date, will not necessarily have the same - -effect at tandem nodes. (That is, DNA messages are sent to the - -source nodes, NOT to tandem nodes.) - - - There is only one situation in which re-translation - -should be done at the tandem nodes. Suppose a logically - -addressed packet arrives at a tandem node, and that node, after - -checking its routing table, sees that the physical destination - -address of that packet is unreachable. If the packet is a - -virtual circuit packet, or the tandem node does not implement - -logical addressing (i.e., does not contain a translation table), - -the packet must simply be discarded. But if the packet is a - -datagram, and the tandem node does have a translation table, it - -should re-translate the destination logical address, and re- - -address the packet. This procedure can help to prevent - -unnecessary data loss. Note that this tandem node translation - -would happen only rarely, and only in situations in which it - -could not serve to defeat the criteria according to which the - -source node translation was done. - - - It should be noted that, with the recommended procedure - - - - -48- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -(unlike the alternative), the size of the translation table at - -each node is a function only of the number of authorizations. - -That is, only changes in the authorizations require insertions or - -deletions to the table. This justifies our previous claim that - -insertions and deletions are relatively rare events. - - - It should also be pointed out that nothing in this - -procedure prevents a computer from being multi-homed to a single - -node. - - - - -6 Operational and Implementation Considerations - - - This procedure requires each network node to maintain a - -full table of authorized mappings. There are operational - -advantages to requiring all nodes to have precisely the same - -translation table; this simplifies the process whereby one node - -can be reloaded from another in case of failure, and reduces the - -amount of site-dependent information that must be maintained in - -the nodes. (In general, the more site-dependent information - -there is, the larger the Mean Time to Repair will be.) We have - -not spoken explicitly of the way in which NCC personnel add or - -delete authorizations. This will require some protocol between - -the nodes and the NCC. This protocol would be similar in some - -ways to the protocol used to broadcast software patches or - - - - - -49- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -packages to the nodes. However, since we want to be able to make - -incremental changes to the tables (rather than broadcasting an - -entire new table each time a change must be made), the node will - -have to contain routines to add to or delete from the tables. - -The node may have to inhibit interrupts while modifying its - -table, so that no translations are done while the table is in a - -state of flux. Also, no reloads may be done from a node whose - -table is in a state of flux. These last two restrictions are - -needed to prevent race conditions; these restrictions are easily - -implemented. - - - When the NCC makes a change to the table of - -authorizations, it will want to receive some sort of positive - -feedback, indicating that the change has indeed been made. One - -method of doing this is to associate a sequence number with every - -"add" or "delete" command. Each node could periodically report - -to the NCC the sequence number of the last command that it fully - -executed, and an entry could appear in the log whenever the - -sequence number is other than expected. If the nodes refuse to - -execute commands which are received out of sequence, this would - -enable the NCC to determine whether each node has received the - -correct sequence of commands. - - - If memory considerations make it impossible for each node - -to contain a table of ALL authorized mappings, it is possible to - - - - -50- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -get by with a shorter table. Strictly speaking, each node's - -table need contain only the logical addresses which map to that - -node itself, PLUS those logical addresses which the node's own - -local hosts are allowed to use. While this smaller table may - -take less memory, it would, however, increase the operational - -difficulties of table maintenance. We have not yet said anything - -explicit about the format of a logical address. We recommend use - -of a 16-bit field for coding the logical addresses. This should - -be enough to prevent bit-coding limitations from placing any - -restriction on network growth. The only other information needed - -in the translation table is (1) destination node physical address - -(8 bits should suffice), (2) one bit for the - -effective/ineffective variable, (3) enough bits to code the port - -numbers, and (4) enough bits to code any variables needed to - -implement the selection criteria used for multi-homed hosts. - -This should not take more than two or three 16-bit words per - -entry. If space is a problem, it is possible to shorten the - -tables somewhat by deleting the port numbers. Strictly speaking, - -port numbers are only needed by the destination nodes, and hence - -need not appear in each node's copy of the translation table. - -However, eliminating the port numbers from the common table - -increases the amount of site-specific information in the tables, - -which is a disadvantage in itself. - - - - - - -51- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - - It goes without saying that the use of logical addressing - -has implications for the network access protocol. We have - -already discussed one aspect of the network access protocol, - -viz., the need for the host to send LAD messages to the source - -node, and the need for positive and negative acknowledgments to - -be returned to the host. A LAD message from a particular port - -contains a list of logical addresses, with an indication for each - -one as to whether the host wants the mapping of that logical - -address to that port to be effective or not. When a host - -declares a mapping to be ineffective, the source node must always - -return a positive acknowledgment, and must mark the mapping - -ineffective in its translation table. However, if the mapping is - -not authorized (i.e., not in the translation table), the source - -node should also return a warning to the source host, since host - -error is likely. When a host declares a mapping to be effective, - -the node will return either a positive or negative - -acknowledgment, depending upon whether the mapping is authorized - -or not. When a host declares an authorized mapping to be - -effective, the node must mark it so. The host should be allowed - -to send LAD messages to the node at any time, and they should - -take effect immediately. - - - - - - - - - - -52- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -7 Network Access Protocol Implications - - - The use of a logical addressing scheme also has - -implications on the part of the network access protocol that is - -used for ordinary data transport. When a source host passes a - -message to its source node, the message leader must indicate - -whether logical or physical addressing is desired (assuming the - -network allows both). If logical addressing is desired, the - -destination logical address must be indicated. The source node - -must be able to discard that message (with an appropriate - -negative acknowledgment) if there is no effective mapping for - -that logical address. The source host must also be able to - -indicate its own logical address, if it wants to make this known - -to the destination host. (Since the source host may have several - -logical addresses, it must explicitly choose one to be carried to - -the destination host.) Again, the source node must be able to - -negatively acknowledge and then discard the message if the - -mapping from that logical address to the source host's physical - -address is not effective. Alternatively, one may want to return - -this sort of negative acknowledgment only if the source logical - -address mapping is unauthorized, and allow the message to be sent - -if the mapping is authorized but ineffective. If this is done, a - -particular "logical host" may be allowed to send data, but not to - -receive it. - - - - - -53- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - - When a logically addressed message is passed from the - -destination node to the destination host, the message header must - -contain the destination logical address (since the destination - -host may have more than one logical address), and the source - -logical address, if any. This implies, of course, that the - -source and destination logical addresses of datagram packets must - -be carried across the network in the packet header. (For virtual - -circuit packets, the logical addresses can be kept in the - -connection blocks in the source and destination nodes.) The - -internal packet header must also carry the physical destination - -node number (for addressing at tandem nodes), and the physical - -source node number (so that DNA messages can be returned without - -having to rely on the integrity of the translation tables). - -However, these physical node numbers need not be passed to the - -destination host. Note that there is no need for the internal - -packet header to carry source or destination port numbers, since - -these are usually determined by the combination of physical node - -number and logical address. In the case where a host is multi- - -homed to a single node, the port numbers are not so determined, - -but the destination node can make a choice of ports "at the last - -minute," either by choosing according to one of the criteria - -already discussed, or by choosing the port with the shortest - -queue. - - - - - - -54- - - -IEN-183 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -[1] E.C. Rosen, J.G. Herman, I. Richer, J.M. McQuillan, ARPANET -Routing Algorithm Improvements -- Third Semiannual Technical -Report, BBN Report No. 4088, April 1979, chapter 2. - -[2] J.M. McQuillan, I. Richer, E.C. Rosen, D.P. Bertsekas, -ARPANET Routing Algorithm Improvements -- Second Semiannual -Report, BBN Report No. 3940, October 1978, chapter 4. - -[3] E.C. Rosen, "The Updating Protocol of ARPANET's New Routing -Algorithm," Computer Networks, February 1980, Volume 4, p. 11. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -55- - - diff --git a/text/ien/ien184.txt b/text/ien/ien184.txt deleted file mode 100644 index 3e5bcd53..00000000 --- a/text/ien/ien184.txt +++ /dev/null @@ -1,1658 +0,0 @@ - - IEN 184 - - - - - - - - - - - - - - - - - - - ISSUES IN INTERNETTING - - PART 1: MODELLING THE INTERNET - - - Eric C. Rosen - - - Bolt Beranek and Newman Inc. - - - May 1981 - - -IEN 184 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - ISSUES IN INTERNETTING - - PART 1: MODELLING THE INTERNET - - -1. Modelling the Internet - - - This is the first in a series of papers which attempt to - -deal with the problems of internetting in a comprehensive manner. - -By "internetting", we mean the establishment of data - -communications among some set of host computers which cannot all - -access the SAME data communications network (though we will, of - -course, require that each host be on some particular data - -communications network). The traditional approach to getting - -data from a host on one network to a host on another is to pass - -the data through an intermediate, or "gateway", host, which is a - -host on both networks. As we shall see, however, building an - -internet which is sufficiently robust, and which offers - -sufficiently high performance, to be useful in day-to-day data - -communications operations involves much more than simply pasting - -networks together in a pairwise manner. Rather, it requires us - -to build an entirely new network, which can be regarded as being - -hierarchically "above" the existent data communications networks. - -We shall see that building this new network is no simple task, - -but that it raises all the same issues that one must deal with in - -building any sort of data communications network. Our basic - -approach will be to consider SYSTEMATICALLY the ways in which an - -internet is and is not similar to "ordinary" data communications - - - - 1 - - - -IEN 184 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -networks, so that we can easily see how the knowledge we have - -gained from studying such networks (in particular, the ARPANET) - -can be applied to internetting. This paper will present a model - -for the internet which will help us to organize the issues; - -further papers will deal more explicitly with such issues as - -internet access, addressing, routing, and congestion control. - - -1.1 The Model Described - - - We begin by introducing a very general model for a class of - -abstract entities called NETWORK STRUCTURES. A Network Structure - -consists of three kinds of entities: SWITCHES, PATHWAYS, and - -HOSTS. When we say that a particular entity is a Host WITHIN - -SOME PARTICULAR NETWORK STRUCTURE, we mean that within that - -Network Structure it functions as a data sink and/or source, and - -does not perform such functions as store-and-forwarding traffic - -which originated elsewhere and is destined for elsewhere. By - -saying that a certain entity is a Switch WITHIN A PARTICULAR - -NETWORK STRUCTURE, we mean that, within that Network Structure, - -it is responsible for store-and-forward functions, i.e., for - -receiving data from a source Host, and sending it (possibly - -through a sequence of intermediate Switches) into a destination - -Host. A Pathway WITHIN A PARTICULAR NETWORK STRUCTURE is a - -communications path which has as one endpoint a Switch of the - -Network Structure, as its other endpoint either a Switch or a - -Host of that Network Structure, and NO intermediate Switches of - -that Network Structure. - - 2 - - - -IEN 184 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - It is important to understand that the notion of a Network - -Structure is intended to be an abstraction which we use in order - -to impose a conceptual organization on a set of physical - -entities. It makes no sense simply to ask of some particular - -computer, is it a Host or a Switch, unless one also references - -some particular Network Structure. Saying that a computer is, - -e.g., a Switch, attributes to it a certain functionality relative - -to a certain Network Structure. A particular computer might well - -be a Switch in one Network Structure while simultaneously being a - -Host within another Network Structure. (We will capitalize the - -terms "Host," "Switch," "Pathway," and "Network Structure" as a - -reminder of the abstract nature of these terms.) - - - Let's look at some examples. The ARPANET can be regarded as - -a Network Structure whose Switches are the IMPs, whose Pathways - -are the telephone lines that connect the IMPs, as well as the - -1822 and VDH lines, and whose Hosts are the devices connected to - -the IMPs via either the 1822 or VDH interfaces. From the - -perspective of this Network Structure, the Pathways (telephone - -lines) have no internal structure, but rather are merely a - -passive and transparent medium. When we say that the Pathways - -have no internal structure, we mean simply that they contain no - -intermediate Switches (i.e., IMPs) and no Hosts of the particular - -Network Structure (the ARPANET) under discussion. Of course, - -this is quite a significant abstraction. What we regard as a - -simple wire (a telephone line) may in fact be no wire at all, but - - - 3 - - - -IEN 184 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -an entire network, the telephone network! Within the telephone - -network, there may be any number of fancy computer switching - -devices, which might be just as complicated as the ARPANET's - -IMPs. From the perspective of the telephone company, one might - -want to regard each telephone line as a Network Structure, which - -contains exactly two Hosts (viz., the two IMPs at the end-points - -of the line). The Switches of this Network Structure are the - -telephone switching devices, and the Pathways really are just - -wires. Or, if we had reason to, we could regard the ARPANET as a - -sort of hybrid Network Structure, whose Switches included both - -the IMPs and the telephone company switching devices, and whose - -Pathways were wires terminating either at the IMPs or the other - -switching devices. As it happens, we generally don't find this - -last means of conceptual organization to be very useful. Since - -we have no control over, and little information about, the - -telephone company switching devices, it is most "convenient" not - -to have to think about them, but rather to just regard each - -telephone line as a simple Pathway, with no internal structure, - -and no intermediate Switches. It is important to understand that - -calling the ARPANET a Network Structure whose Switches are IMPs - -and whose Pathways are telephone lines does not beg any questions - -about how the telephone network really works; it is just a matter - -of imposing a conceptual organization that we find useful for - -some purpose. - - - - - - 4 - - - -IEN 184 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - Of course, the telephone lines are not the only Pathways in - -the ARPANET. Each (local or distant) host is also the endpoint - -of a Pathway, though one which really is a wire. In general, we - -will find it useful to distinguish those Pathways in a Network - -Structure which connect Host to Switch (ACCESS PATHWAYS) from - -those which connect Switch to Switch (INTERNAL PATHWAYS). - - - Another example of a Network Structure is one whose Switches - -are the gateways on the ARPA Catenet, whose Pathways are segments - -of ARPA-controlled networks, and whose Hosts are hosts on the - -networks which are part of the Catenet. Within this Network - -Structure, the gateways must be regarded as Switches, since they - -perform store-and-forward functions, and data from one host to - -another is routed through a sequence of gateways. Of course, a - -gateway, while a Switch within the Network Structure of the - -Catenet, may also be a Host within the Network Structure of the - -ARPANET. The proper classification of an entity is a matter of - -what function it performs within the concrete realization of some - -particular Network Structure; the same physical entity may - -perform different functions in different Network Structures of - -which it is a part. - - - We should be a bit more precise about the Pathways of the - -Catenet Network Structure. Suppose there are 4 gateways on the - -ARPANET. Then the gateways are fully connected through a set of - -12 distinct Pathways (i.e., each gateway has a Pathway to each of - - - - 5 - - - -IEN 184 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -the other 3 gateways). Although each of the 12 Pathways utilizes - -the ARPANET, we really have 12 distinct Pathways, each of which - -has different characteristics as regards delay, throughput, and - -operability. That is why we said above that the Pathways of the - -Catenet should be identified with SEGMENTS of ARPA-controlled - -networks, rather than with the entire networks. Furthermore, - -each of the 4 Gateways has a distinct Pathway to EACH host on the - -ARPANET. That is, within the Network Structure of the Catenet, - -each of the hosts on the ARPANET (all of which are also Hosts on - -the internet) is MULTI-HOMED to each of the 4 Gateways via a - -distinct Pathway. IN PRINCIPLE, THIS MULTI-HOMING IS NO - -DIFFERENT THAN THE MULTI-HOMING OF A SINGLE (LOGICALLY ADDRESSED) - -HOST TO TWO DIFFERENT ARPANET IMPS (see IEN 183). As we shall - -see, regarding all the Hosts on the Catenet as being multi-homed - -to the Switches (i.e., gateways) of the Catenet is a very - -important feature of the network architecture we will propose for - -internetting. We will argue that many of the problems - -encountered in the current Catenet configuration are a result of - -the failure to properly conceive internet hosts as being - -multi-homed, and that the lessons learned from a study of how to - -do multi-homing on individual packet-switching networks can be - -applied fairly directly. - - - The "Network Structure" model is intended to be completely - -general. We can, for example, handle an arbitrarily nested - -hierarchical internet by establishing a Network Structure whose - - - 6 - - - -IEN 184 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -Pathways are themselves complex internet configurations. We can - -also model overlapping internet configurations. Consider, for - -example, four machines, A, B, C, and D connected in order in a - -ring. In principle, we could treat this as two Network - -Structures, one in which A and C are Switches and B and D are - -Hosts, and another in which B and D are Switches and A and C are - -hosts. This might be useful if, for example, we have two - -different internets, with incompatible gateways, connecting the - -same set of packet-switching networks. The model should be - -general enough to accommodate complex configurations like this. - - -1.2 Deficiencies of the Old Model - - - The idea that the design of an architecture for the internet - -should be guided by the development of an abstract model is - -hardly original. The earliest IENs often considered the need for - -a model, but the discussion there seems to be at an insufficient - -level of abstraction. That is, there is much discussion of the - -need for a "model of a gateway," but no discussion of the need - -for a model of the internet as a gestalt, with a network - -architecture of which the gateways are only a part. - - - It is apparent though that gateway designers and - -implementers did work with an IMPLICIT model of the internet in - -mind. While the gateway was the focus of much discussion, - -however, little critical attention was focussed on the implicit - -model of the internet itself. This implicit model represents the - - - 7 - - - -IEN 184 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -gateways as ordinary network nodes, and the component networks of - -the internet as ordinary network lines. Surprisingly, hosts are - -not represented at all in this model. (One may be tempted to - -think of a host as a sort of piece of one of the "lines" in this - -model, but remember that the lines are not supposed to have any - -internal structure.) The internet routing problem was conceived - -of as the problem of how to get data from one gateway through a - -sequence of intermediate gateways to a destination network - -(which, in the model, is a destination line!?). - - - Our experience with the Catenet should have made it quite - -clear by now that the basic idea underlying this implicit model - -is overly simplistic. This basic idea is that the end-user will - -know what network his destination host is attached to, and only - -needs the gateways to get his data somewhere or other (it doesn't - -matter where) on that destination network. At that point, the - -destination network is supposed to take over, and there is no - -further work for the gateways to do. We now know, of course, - -that things are not so simple. The way in which the gateways get - -traffic to the destination network may be very important. A - -particular host on a particular network might be reachable from - -one gateway on that network, but not from another gateway on that - -network. (This is the "partitioned net" problem.) Or - -performance considerations might dictate that a host be reached - -through one gateway in preference to another gateway on that same - -net. It should not be any surprise that this sort of problem has - - - 8 - - - -IEN 184 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -proved very troublesome in the Catenet, for the problem is built - -right into the conceptual mechanism that guided the development - -of the Catenet. The fact that the old implicit model of the - -internet contains no representation at all of hosts makes it - -virtually impossible for gateways that were built with that model - -in mind to have any means of representing host-specific - -information. It also makes it virtually impossible to take - -advantage of (or even to take cognizance of) the way in which - -Hosts can be regarded as being "multi-homed" to the gateways. - -Failure to model the hosts also makes it difficult to handle the - -case of hosts which are not always connected to the same network - -(e.g., "mobile hosts"), or hosts which are connected to two or - -more networks. - - - Further difficulties arise from the way in which networks - -are represented as "lines." If a network is like a line, then it - -must be either up or down. There is no way to represent the fact - -that some "parts" of the "line" can be reached from only one - -end-point, but not the other. That is, it is difficult to make - -the internet system respond to peculiarities in the behavior or - -operational status of the underlying packet-switching networks, - -since much of that behavior has no analog in the world of - -telephone lines. Of course, it cannot really be claimed that - -problems like these can never be resolved at all within the - -current Catenet configuration, but only that possible resolutions - -will not fit easily into the Catenet's architecture, and so will - - - 9 - - - -IEN 184 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -generally appear to be "kludges" or "hacks" which are grafted on - -in order to get around particular operational problems as they - -happen to arise. Perhaps a reading of some of the more recent - -IENs will bear out this impression. - - - In attacking the old implicit internet model, we are not - -simply trying to beat a dead horse, or to attack a straw man. - -Rather, we are just trying to emphasize that the way in which one - -initially models or thinks of a set of related problems will - -necessarily have a large effect on the way the problems are dealt - -with in the final system. A good model for the internet should - -provide a framework for discussion of internetting issues which - -enables us to place each issue in proper perspective, and which - -makes clear the inter-relationships among the various problems - -and proposed solutions to them. When important problems (such as - -the "partitioned net" problem) cannot even be stated in the terms - -of a particular model, it becomes clear that that model does not - -provide a proper framework for the discussion of the issues. A - -good model should also make it possible to evaluate the effect of - -various schemes as part of an integrated system, making it easier - -to determine whether or not some proposed scheme gives rise to - -more problems than it solves. By allowing us to see solutions to - -particular problems as part of an integrated system, the model - -also gives us a means of choosing among different schemes which - -seem to solve the same problem, since some of those schemes may - -fit more easily or more naturally into the integrated system than - - - 10 - - - -IEN 184 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -do others. A good model should also suggest solutions to - -problems that have previously seemed very vexing (we shall argue, - -in subsequent papers of this series, for example, that - -representing hosts as being multi-homed to gateways suggests - -certain addressing schemes that might otherwise be overlooked, - -and also subsumes a number of problems previously thought - -unrelated under a common rubric). We believe that the model we - -proposed in the previous section offers a much more coherent - -framework; hopefully this will become apparent as we begin to - -work through the issues of internetting in this and subsequent - -papers. - - -1.3 The Importance of Pathway Characteristics - - - As we have already pointed out, the proposed new model of - -the internet as a Network Structure allows us to see the ARPANET - -itself as an internet, built upon pieces of the telephone - -network. In principle, then, the ARPANET is no different than - -the Catenet, which is an internet built upon pieces of the - -ARPANET, SATNET, and various other ARPA-controlled networks. Yet - -it does seem that the Catenet poses problems which are more - -difficult and less tractable than are the problems posed by the - -ARPANET. Why should this be the case, if the ARPANET and the - -Catenet are both internets of a sort? The answer seems to lie in - -the characteristics of the individual networks that constitute - -the Pathways in these two different "internets." The pieces of - - - - 11 - - - -IEN 184 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -the telephone network which transmit data within the ARPANET do - -so with well-known and well-understood (indeed, with constant) - -delay characteristics. The capacity of these pieces of the - -telephone network is also a constant. Many of the ARPANET's - -protocols and algorithms (both internally and at the host access - -level) make use of these facts, and break down when applied to - -Pathways of significantly different characteristics. Even within - -the ARPANET, we have seen the importance of modifying our - -protocols and algorithms to take account of differing Pathway - -characteristics. For example, the line up/down protocol which - -each pair of neighboring IMPs runs together to determine the - -operational status of the line connecting them must be tuned - -differently for lines of differing bandwidths or propagation - -delays. Particular difficulty has been encountered in making - -this protocol work properly over "line 77," the "transparent" - -connection via SATNET to London. One problem in trying to extend - -ARPANET-like protocols and algorithms to the Catenet environment - -is to come to a better understanding of how those protocols and - -algorithms actually depend on assumptions about the Pathway - -characteristics. Since many of these assumptions may be - -implicit, and nowhere clearly stated, this is not a simple - -problem. As we develop our proposed internet architecture, we - -will try to emphasize the role played by assumptions about - -Pathway characteristics. - - - - - - 12 - - - -IEN 184 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - (Although we will be primarily concerned with protocols and - -algorithms to be used in the actual day-to-day operation of the - -internet, it is worth noting that the variability of the Pathway - -characteristics of the internet also has implications with - -respect to the topological layout of the internet. When - -designing the topology of a packet-switching network, one often - -makes use of mathematical tools (often automated) for optimizing - -the topology with respect to some cost-function, such as delay. - -These mathematical tools are based on particular mathematical - -models of networks which in turn are based on results from - -queuing theory which assert a particular relationship between - -delay and load over telephone lines. Whatever the merits of - -those mathematical models (and there is much to question in - -them), they will not be applicable at all to the topological - -design of the internet. When a Pathway is a packet-switching - -network, rather than a telephone line, it is probably meaningless - -even to ask what its bandwidth is, since it just does not have a - -constant bandwidth. That is, the maximum throughput that can be - -obtained between two gateways over a particular packet-switching - -network will vary quite a bit over time, and will depend on what - -happens to be going on within that network. In addition, the - -relationship between delay over a packet-switching network and - -the offered load is much more difficult to model mathematically - -than is the same relationship over a telephone line. Issues of - -how to properly lay out the topology of the internet to obtain - - - - 13 - - - -IEN 184 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -best performance or least "cost" probably will not be able to be - -dealt with in any systematic way until we have much more - -experience with day-to-day internet operations.) - - - The gateways which are currently deployed on the Catenet do - -not seem to take Pathway characteristics into account at all. - -Certainly there has been no attempt to optimize the gateways to - -the particular packet-switching networks that they are connected - -to, or even to make the gateways take proper notice of the - -various protocol messages that the networks will send to the - -gateways. To some extent, gateways really do seem to treat - -packet-switching networks as mere wires, simply throwing the bits - -at the network interface, and not dealing with the various - -exception states that continually arise when attempting to access - -a network. One of the main themes that we shall be developing is - -that A ROBUST AND HIGH-PERFORMANCE NETWORK STRUCTURE JUST IS NOT - -POSSIBLE UNLESS THE SWITCHES ARE CAREFULLY TUNED TO MAKE THE MOST - -EFFICIENT POSSIBLE USE OF THE PATHWAYS. As we have stated above, - -the ARPANET IMPs often have to be tuned to the particular - -characteristics of different telephone lines, and it is that much - -more important for the gateways to be tuned to the particular - -characteristics of the packet-switching networks that serve as - -Pathways between them. It is important to understand that this - -sort of issue does not apply only to the way in which gateways - -use the INTERNAL PATHWAYS of the internet, but also to the way in - -which hosts and gateways use the ACCESS PATHWAYS of the internet. - - - 14 - - - -IEN 184 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -We will develop these issues in much more detail in subsequent - -papers. - - - We have claimed that the only reason we tend to regard the - -telephone network as a Pathway with no internal structure is that - -we find it "convenient" to do so. If we are going to properly - -apply the Network Structure model to the ARPANET, the Catenet, or - -any other networking or internetting environment, it is important - -to come to a clear understanding of just when it is and is not - -"convenient" or "useful" to ignore the internal structure of a - -communications medium, and model it as a Pathway. (Though - -ignoring the internal structure of a communications medium is NOT - -the same thing as ignoring its delay/throughput/reliability - -characteristics; as we shall repeatedly emphasize, there are no - -conditions under which it is possible to do that without - -incurring extreme penalties in efficiency and/or reliability.) - -There are basically two good reasons why we might want to ignore - -the internal structure of a communications medium: - - - 1) Efficiency. Some algorithms or protocols in the Network - - Structure may need to be driven off some sort of model or - - representation of the network. For example, the SPF - - routing algorithm in the ARPANET has a database which - - represents the network topology. (We will often use the - - term "SPF routing" to refer to the ARPANET's current - - routing algorithm [1,2], in contradistinction to the - - - - 15 - - - -IEN 184 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - ARPANET's original routing algorithm [3]. The Catenet's - - current routing algorithm is based on the original - - ARPANET routing algorithm, but internetters should be - - aware that that algorithm had a number of serious - - deficiencies, especially under heavy load, and was - - removed from the ARPANET over two years ago, to be - - replaced with SPF routing.) Dividing a single network - - into several different Network Structures, and - - representing some of those as Pathways with no internal - - structure, may be necessary if we need to keep a bound on - - the size of the database while allowing the actual - - physical configuration of the network to grow without - - bound. This is one of several important considerations - - driving the internet development. - - - 2) Partial transparency. One may want to be able to replace - - the networks which underlie certain Pathways without - - having to make extensive changes to the software of the - - Switches. Or one may simply not be able or willing to - - get any information about some underlying network. - - Either of these is a good reason to try to treat that - - underlying network transparently. Note, however, that - - the best that we can hope to achieve is PARTIAL - - transparency. If a Pathway is replaced by another - - Pathway of very different characteristics, we cannot - - realistically expect to maintain efficient performance - - - 16 - - - -IEN 184 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - without modifying the Switches in some way to take - - account of the new characteristics. However, it may be - - possible to restrict the magnitude of the changes; for - - example, perhaps only the software in the Switches which - - are the endpoints of the Pathways will need to be - - changed. This is an issue that we will have to consider - - in great detail; certainly it is one of the most - - important considerations driving the internet effort. - - -Note that these considerations, important as they may be, are - -really just matters of degree, and generally must be traded off - -against other considerations. We can ignore the internal - -structure of a Pathway to a greater or lesser degree. It is - -possible, for example, that we will want our internet gateways to - -exchange information with certain ARPANET IMPs, even though in - -general we want the internet gateways to be able to ignore the - -internal structure of the ARPANET. The principle of ignoring the - -internal structure of a Pathway is supposed to be a tool to help - -us, not a straitjacket to prevent us from getting needed - -information. This is another issue to which we shall return - -repeatedly in subsequent papers of this series. - - - One of the aspects of a Network Structure that is most - -sensitive to Pathway characteristics, and to the decision to - -ignore the internal structure of a Pathway, is its - -MAINTAINABILITY. Maintainability is one of the most important, - - - - 17 - - - -IEN 184 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -though most neglected, areas of network design. In the long run, - -the ability to maintain the network (which means the ability to - -isolate faults and to repair them) can have a much larger effect - -on the network's efficacy as a communications utility than almost - -any other consideration. In some sense, maintainability is the - -"bottom line;" if a network is subject to repeated inexplicable - -failures and degradations, then the users will be driven away, - -and all the effort that has gone into careful optimizations of - -the algorithms and protocols will have been wasted. In a complex - -Network Structure, which may include Pathways of arbitrary - -internal complexity, maintainability is a very crucial issue. A - -good example of the kinds of problems that can arise may be taken - -from our experience with the ARPANET's line 77 (the "transparent" - -connection to the London-TIP via SATNET). The ARPANET generally - -treats this as if it were a telephone circuit, even though it - -actually consists of a large number of terrestrial access lines, - -SIMPs (SATNET nodes), and satellite broadcast facilities, any - -component of which might fail in its own peculiar way. When this - -special connection was installed, the intention was that it be as - -transparent as possible to the ARPANET. It turns out, however, - -that a side-effect of treating SATNET transparently is that IT - -ALSO BECOMES TRANSPARENT TO THE FAULT-ISOLATION TECHNIQUES WHICH - -ARE USUALLY USED FOR TROUBLE-SHOOTING ARPANET LINES. That is, - -the usual fault isolation techniques do not see into the - -structure of this "line", and hence can say no more than that the - - - - 18 - - - -IEN 184 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -line is up or down. While this is a consequence of the - -transparent design, it causes great difficulty, especially since - -the various components of this line are maintained by different - -organizations, each of which prefers to believe that the problem - -is someone else's responsibility. Furthermore, since the IMPs at - -each end of the line (which are also Hosts on the Network - -Structure of SATNET) don't realize that they are actually - -accessing another network, and don't use the usual network access - -protocol for SATNET, some of SATNET's standard fault isolation - -techniques are bypassed too. A problem that has been recurring - -with some frequency is that the ARPANET's line up/down protocol - -just will not bring the SATNET "line" up, even though SATNET - -itself seems to be working fine, according to the independent - -SATNET monitoring. At one time, the team of ARPANET and SATNET - -people working on the problem originally seemed to be in - -agreement that the source of the problem was in the design of the - -ARPANET's line up/down protocol. On further investigation, - -however, it turned out that the real problem was that the - -terrestrial access line between the London-TIP and one of the - -SIMPs really was experiencing intermittent failures, and hence - -that the ARPANET's protocol had been performing correctly when it - -refused to bring the SATNET "line" up. However, since neither - -the SIMP nor the London-TIP (really a host on SATNET) treated - -this access line as SATNET-host access lines are normally - -treated, the SATNET people found it very difficult to test this - - - - 19 - - - -IEN 184 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -line by itself in order to do fault isolation. If we have a - -Network Structure whose Pathways can themselves be arbitrarily - -complex and nested internets, then this sort of problem can be - -expected to arise with great frequency, UNLESS PROPER - -INSTRUMENTATION AND FAULT ISOLATION MECHANISMS ARE DESIGNED INTO - -THE NETWORK STRUCTURE FROM THE VERY BEGINNING. To some extent, - -some of these problems may just be inevitable once we decide to - -ignore the internal structure of a Pathway. The extent to which - -this is or is not true is a very important issue for us to - -consider, since it may ultimately be one of the most important - -factors in determining whether a reliable, operational, flexible, - -and growing internet configuration is really feasible. We will - -try to keep maintainability issues in mind throughout our entire - -discussion of the internet architecture that we propose. - - - To a lesser extent, this sort of problem can occur even - -purely within the ARPANET. Since ARPANET links are really pieces - -of the telephone network, it is worth asking whether the - -transparency of the telephone network impacts our ability to - -maintain the ARPANET. In fact, this does sometimes cause - -problems. When the ARPANET Network Control Center complains to - -the telephone company that a line is not operational, they really - -cannot provide the telephone company with very much data as to - -what is really wrong. Sometimes it takes the telephone company a - -long time to fix the problem, and it is not uncommon for the - -telephone company to claim that a line is fixed and to return the - - - 20 - - - -IEN 184 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -line to the ARPANET, after which it is discovered that the - -ARPANET's line up/down protocol still will not bring it up - -(because the packet error rate is too great). Yet the situation - -is generally acceptable -- the ARPANET itself does a good enough - -job of detecting when there are problems with the lines, and the - -phone company does a good enough job (generally) of fault - -isolation within their own network to be able to fix problems - -relatively quickly. However, in a Network Structure whose - -Pathways consist of packet-switching networks, rather than - -telephone lines, we probably wouldn't be so lucky. The more - -complex and poorly understood the Pathways actually are (and the - -behavior of packet-switching networks, not to mention internets, - -is still quite poorly understood), the less likely it is that a - -simple complaint to the maintainer of the Pathway will get timely - -results. As the Pathway characteristics become more and more - -complex, it will become more and more important to have - -instrumentation at all levels, including the Switches and Hosts - -at Pathway end-points, to aid in diagnosing possible problems. - -As much as we might want to be able to regard the Pathways as - -fully transparent, it may turn out that the sort of - -instrumentation needed to help in fault isolation is dependent on - -the particular characteristics of the Pathway. This is another - -issue that we will have to keep in mind throughout. - - - Wherever possible, as we develop our proposed internet - -architecture, we will try to "parameterize" the effect of Pathway - - - 21 - - - -IEN 184 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -characteristics on the robustness and performance of the - -architecture. It will certainly be important to know whether it - -is really possible to build a robust high-performance Network - -Structure out of Pathways with totally arbitrary characteristics - -(probably not), and if not, just how many constraints we must put - -on the Pathway characteristics in order to get reasonable - -performance out of our architecture. This approach will help us - -to get some understanding in advance of how large and varied a - -configuration our architecture can support. This approach will - -also help us to understand how our architecture can be adapted to - -other applications in which we can place more constraints than - -would be appropriate for the Catenet. Consider, for example, a - -Network Structure all of whose Pathways are versions of the - -ARPANET which are largely homogeneous and under the control of a - -single organization. Within this Network Structure, we might be - -able to introduce much more effective and efficient routing and - -congestion control mechanisms than in a Network Structure whose - -Pathways consist of many different kinds of networks controlled - -by many different organizations with varied interests (e.g., the - -Catenet). In fact, this rather homogeneous Network Structure - -might not properly be called an "internet" at all; it might just - -be regarded as the ARPANET with area routing. ("Area routing" - -refers to any routing scheme in which a network is divided into - -several areas, such that Switches in each area have explicit - -routes only to other Switches in the same area, but not to - - - - 22 - - - -IEN 184 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -Switches in other areas. Routes are available for getting to - -other areas, but the internal structure of these other areas is - -disregarded. The term is usually applied to routing schemes used - -in single homogeneous, packet-swtiching networks, as opposed to - -internets, however.) One of the advantages of our model is that - -it enables us to see internetting and area routing as - -applications that differ only in regard to the Pathway - -characteristics of the appropriate Network Structure. - - -1.4 A Functional View of the Internet - - - Let's look now at how we might model the OPERATION of a - -Network Structure. There seem to be four main steps involved in - -getting data from a source Host to a destination Host: - - - 1) A source Host submits a message to a source Switch, - - providing it with the name of a destination Host to which - - the message should be delivered, as well as with any - - other information which is needed to specify necessary - - constraints on the characteristics of data delivery. - - (Note that we said "the NAME of a destination Host", not - - the address of a destination Host. We will return to - - this very important point in later papers.) - - - 2) The source Switch must map the name of the destination - - Host into the address OF A DESTINATION SWITCH. This may - - or may not be identical to the source Switch itself. If - - - - 23 - - - -IEN 184 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - the name of the destination Host maps to several possible - - destination Switch addresses (multi-homing), the source - - Switch must choose one, and this must be one which has a - - currently operational Pathway to the destination Host. - - - 3) Using the routing scheme of the Network Structure, the - - source Switch must get the message to the destination - - Switch, via some (possibly empty) sequence of - - intermediate Switches. - - - 4) The destination Switch must get the message to the - - destination Host. - - - This model of operation attempts to make a clear separation - -between the protocols which the source and destination Hosts must - -use to access the Network Structure (steps 1 and 4), the - -protocols which the Network Structure uses internally to move - -data from one point to another (steps 2 and 3), and the protocols - -used by the Hosts to talk to each other. This separation is - -required by the precepts of protocol layering, and also by common - -sense, since only with a clear separation of access functions - -from internal functions can we maintain the flexibility to make - -internal changes in the Network Structure without impacting the - -access software in the Hosts. The need for this separation - -between access functions and internal functions is taken for - -granted in most ordinary packet-switching applications, but has - -not been incorportated at all into the current Catenet. The - - - 24 - - - -IEN 184 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -current Catenet protocols freely intermix access functions with - -internal functions, and in fact there is only a single protocol, - -IP, which contains elements needed for Hosts to talk to each - -other, for Hosts to talk to Switches, and for Switches to talk to - -Switches. This seems to be a consequence of the old idea that - -the internet is just a series of networks pasted together by - -hosts which are on two or more of the networks. That idea makes - -it difficult to distinguish the gateways from the hosts, or to - -properly take account of the fact that although gateways are - -Hosts in some Network Structure (that of the individual - -packet-switching networks), they are also Switches in another - -(that of the internet). A proper distinction of access functions - -from internal functions seems essential, though, if we are to - -build an internet which functions as a real network, rather than - -as a series of pasted together networks and gateways. - - - Any Network Structure which is to be operational must have - -some way of performing these four steps. Furthermore, in order - -for particular applications to get satisfactory performance out - -of their use of the Network Structure, the Network Structure must - -perform these functions under certain constraints with respect to - -delay, throughput, reliability, sequential delivery, and fault - -detection. (By "fault detection", we mean the ability of the - -Network Structure to inform the user about exceptional - -conditions, such as the destination host's being down or - -unreachable. This constraint is often neglected in the design of - - - 25 - - - -IEN 184 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -network architectures or protocols, but seems quite important in - -a robust operational environment.) The ability to gather and - -report exception information at various levels of protocol is - -important both for system maintenance and for general user - -satisfaction. Nothing makes a worse impression on a user than a - -mysterious degradation in service about which he can get no - -feedback. It is not immediately obvious, though, to what extent - -the various protocols used to operate a Network Structure must - -ensure that these constraints are met. It is generally - -understood that if some application requiring inter-process - -communication must place constraints (such as sequentiality) on - -the characteristics of the communications, then the application - -itself must utilize some high level protocol (at the Host-Host - -level, or even higher) which will enforce the constraints, rather - -than depending on the low-level communications medium to enforce - -them. What seems to be less generally understood is the fact - -that, in general, and other things being equal, the performance - -which some user gets from his high-level protocol will be better - -if the lower level protocols pass data to the high level - -protocols in a way which already satisfies the constraints that - -the high level protocols must impose. For example, an - -application which requires sequentiality will have to use a high - -level protocol like TCP which guarantees sequentiality. However, - -the end user will generally see much better performance, in terms - -of throughput and delay, if the protocols below TCP maintain - - - - 26 - - - -IEN 184 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -sequentiality, since this will require TCP to do less work, and - -put less of a drain on the resources (such as buffer space, - -sequence number space, and host CPU bandwidth) needed by TCP. - -The area of fault detection and reporting provides a good example - -here. A user attempting to talk to a dead host might find his - -TCP typing the message "excessive retransmissions" to him. This - -sort of message would not generally be too useful to a user - -since, if he is not a network expert, it gives him no clue of - -what the actual situation is. The average user might prefer to - -know that the destination host is dead, so he can try again - -later, but this information is very difficult, if not impossible, - -to obtain solely at the TCP level, although it might be quite - -simple to obtain at a lower protocol level. Of course, putting - -more functionality in lower level protocols also has a cost, as - -well as a potential benefit, and costs often trade off with - -benefits in surprising ways. As we shall see, producing an - -operational Network Structure requires a large number of - -protocols, and we will attempt to deal with considerations like - -these as we consider specific protocol issues. Not surprisingly, - -we will find that cost-benefit trade-offs for both access - -protocols and internal protocols will often depend on the - -characteristics of the Pathways in the Network Structure. - - - - - - - - - - 27 - - - -IEN 184 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - REFERENCES - -1. J.M. McQuillan, I. Richer, E.C. Rosen, "The New Routing - Algorithm for the ARPANET", IEEE TRANSACTIONS ON - COMMUNICATIONS, May 1980. - -2. E.C. Rosen, "The Updating Protocol of ARPANET's New Routing - Algorithm," COMPUTER NETWORKS, February 1980. - -3. J.M McQuillan, G. Falk, I. Richer, "A Review of the - Development and Performance of the ARPANET Routing - Algorithm," IEEE TRANSACTIONS ON COMMUNICATIONS, December - 1978. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 28 - - - diff --git a/text/ien/ien185.txt b/text/ien/ien185.txt deleted file mode 100644 index 68c1a8c5..00000000 --- a/text/ien/ien185.txt +++ /dev/null @@ -1,1238 +0,0 @@ - IEN-185 - INDRA Note 1101 - May 26, 1981 - - - - - - - - DEVELOPMENT OF UK/US NETWORK SERVICES - - AT UNIVERSITY COLLEGE, LONDON - - - - - - - Robert T. Braden - - Peter L. Higginson - - - - - - IEN-185 - May 26, 1981 - - - - - - - - - - - ABSTRACT: This document describes the second- - generation service facility under development at - UCL, to connect the DARPA Catenet with X25-based - networks in the UK. The facilities will include - a Terminal Protocol Converter, a Transport - Service Gateway, and an "IP Tunnel". - - - - - - - INDRA Note # 1101 - Department of Computer Science - University College, London - - - - - - CONTENTS - - - - - 1. INTRODUCTION...........................................3 - - - 2. PROTOCOL CONSIDERATIONS................................5 - - 2.1 Routing and Addressing.............................5 - 2.2 Protocol Conversion................................7 - 2.3 Cost Minimisation..................................8 - 2.4 Access Control.....................................8 - - 3. SERVICE FACILITIES.....................................9 - - 3.1 Terminal Service...................................9 - 3.2 File Transfer Traffic..............................10 - 3.3 MOD Services.......................................11 - - 4. TERMINAL PROTOCOL CONVERTER............................15 - - - 5. CONCLUSIONS............................................19 - - - 6. REFERENCES.............................................20 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Page 1] - -UK/US Service at UCL IEN-185 - -1. INTRODUCTION - -This report describes the network interconnection facilities -being developed at University College, London (UCL) to support -US/UK collaborative research computing. Briefly, these -facilities will link users and resources connected to the ARPA -Catenet of the US Department of Defense with users and resources -on several public and private networks in the UK. Terminal -access to remote time-sharing systems, file transfer, and mail -services are to be provided [1,2]. - -The facility to be described will be a "second generation" US/UK -network interconnection at UCL, replacing a UK/ARPANET link -established at UCL in 1974. UK users accessed the earlier -service through SRCNET [3,15], a network operated by the Science -Research Council; through EPSS [4], an experimental public data -network; or by direct dial-in to a TIP at UCL. This service is -now almost totally obsolete, as the networking worlds have -changed markedly on both sides of the Atlantic. - - - (1) Protocol Changes - - The ARPANET has been embedded in the "Catenet", i.e., a - network of networks. To support host communication - across the Catenet, the ARPANET host-to-host protocol - "NCP" [5] has been replaced by an end-to-end protocol - TCP, operating over an internetwork datagram protocol - layer, IP [6,7]. On the other hand, the ARPANET higher- - level terminal protocol Telnet and the file transfer - protocol FTP have been kept essentially unchanged by the - Catenet [5]. - - Meanwhile, the UK has generally adopted the CCITT- - recommended X25 network-level protocol as well as the - terminal access protocols X3, X28, X29 (commonly - collected under the rubric "XXX" or "Triple-X") [8]. - - Furthermore, UK working groups have adopted a transport - service, NITS [9,14] (known as "Yellow Book" from the - colour of the document's cover), and a file transfer - protocol, NIFTP [10] (known as "Blue Book"). Both are de - facto UK standards and have been submitted to the - international standards bodies CCITT and ISO. - - Thus, the UK has moved to adopt international standard - protocols, all of which differ from the corresponding - DARPA Catenet protocols. - - - - - - - - [Page 3] - -UK/US Service at UCL IEN-185 - - (2) Network Changes - - The DARPA Catenet includes the ARPANET, a number of local - networks, and a satellite network SATNET [11]. In - particular, SATNET links the US continental ARPANET with - PPSN [13], a packet-switching network of the UK Ministry - of Defense (MOD). The gateway between PPSN and SATNET, - which is located at UCL, has local ports into SATNET - which provide one of the paths for US/UK interconnection. - - Public data networks have become a reality both in the US - and in the UK. In the US, "Valued-Added Networks" - (VAN's) such as Telenet and Tymnet have come into - existence. In the UK, the government-owned British - Telecom has installed a public packet-switched network - PSS [12]. - - PSS uses the standard protocols X25, X28, and X29. PSS - users have agreed to use NITS, NIFTP, and an enhancement - of X29 called TS29 (the "Green Book") [13]. PSS has - created a set of de facto national protocol standards for - the UK, and private data networks are likely to strive - for compatibility with it. In particular, SRCNET has been - moving towards almost complete compatibility with PSS - protocols [15]. - - Finally, an international packet switching service, IPSS, - now links the UK with the Value-Added networks in the US, - Canada, and many other countries. In the UK, IPSS will - shortly be linked to PSS. In the US, BBN is developing a - "VAN Gateway" which will link the ARPANET to Telenet. - Thus there will shortly be two paths linking UCL with the - US ARPANET -- the X25-based public carrier facility of - PSS/IPSS/VAN, and the private DARPA Catenet facility of - SATNET. - - - (3) New Administrative Requirements - - Public data networks have usage charges for their - services. This in turn will force UCL to provide both - access control and accounting for these services, and - leads to cost minimisation considerations that have not - been necessary previously. - - Furthermore, there are now at least two different classes - of users for the internetwork services provided by UCL; - these classes will see quite different kinds of services. - The SATNET path to the US, which is available only to - authorised DARPA Catenet users, has no usage-dependent - charge. Both the MOD and British Telecom are concerned to - - - - - [Page 4] - -UK/US Service at UCL IEN-185 - - limit the use of this route. Others in the UK must use - the IPSS path, whose usage costs are very significant. - - -The magnitude of the packet and connect charges on IPSS, together -with the technology of SATNET, will force important changes in -the mode of ARPANET use from the UK. - - (a) The character-at-a-time, server-echo mode of terminal use - which is customary on most ARPANET hosts will be far too - costly on the IPSS path. It will still be feasible - (although somewhat awkward, because of long delays) on - SATNET, but it makes very inefficient use of the limited - channel capacity. - - (b) The ARPANET practice of effectively broadcasting mail, - i.e., sending individual copies of the same message to - all recipients, is uneconomic over IPSS. - - (c) Since file transfer is expected to make more cost- - effective use of the channel than does terminal traffic, - it will generally be cheaper for UK users to send and - receive their ARPANET mail in the UK, transferring it - across IPSS only in bulk. This implies that UCL should - provide a service host for receiving and composing mail. - - - - -2. PROTOCOL CONSIDERATIONS - -The preceding section described the current environment for the -network interconnection facilities under development at UCL. This -section covers the communication protocol issues relevant to the -design of these facilities. Later sections will give more -details of the software and hardware required. - -In general, two entirely different protocol domains are being -linked -- the CCITT/public data network world of X25, XXX, NITS, -and NIFTP, and the DARPA internetwork world of IP, TCP, Telnet, -and FTP. There are several different types of problems, which -will be considered in turn: divergent mechanisms for handling -routing and addressing, protocol conversions, cost, and access- -control. - - - -2.1 Routing and Addressing - -To design the interconnection facility, we need to identify those -protocols that provide (essentially) the same functionality, - - - - - [Page 5] - -UK/US Service at UCL IEN-185 - -i.e., which occupy the same "protocol layer". We will use the -following terminology: - - (a) Network Layer - - The network layer provides reliable, ordered transmission - across virtual circuits spanning a single address domain. - - (b) Transport Layer - - The transport provides the same services of the network - layer, and in addition provides them end-to-end across - multiple address domains. - - (c) User Layer - - We use this term for all protocols "above" the transport - layer, for example terminal and file transfer protocols. - -To indicate the relative position of two protocols in the -heierarchy, we will use the notation: - - A > B - -for (higher-level) protocol "A" implemented "over" protocol "B". - -Obviously Telnet, XXX, NIFTP, and FTP occupy the user layer as -defined here. Furthermore, by definition NITS occupies the -transport layer. However, TCP and X25 may each be assigned to -either the transport or the network layer, depending upon the -situation. - -For example, the public data networks use a uniform, globally- -unique set of 14-digit addresses, and therefore form a single -address domain. The gateways between public data networks also -provide a routing mechanism. As a result, "bare" X25 can be -used as a transport service over a single network or across -interconnected public data networks (e.g., U.S. VAN to IPSS to -PSS). - -However, private UK networks (e.g., SRCNET) constitute different -address domains. An X25 virtual call whose two ends lie in -different address domains requires a transport service to specify -the addressing and routing for setting up concatenated virtual -calls. NITS (Network Independent Transport Service) [9] provides -a general source-route addressing facility to handle such -multiple address domains. NITS is then the transport service, -and X25 is demoted to the network layer. - -NITS allows multiple independent address domains, but provides no -global routing or addressing mechanism. Routing decisions are - - - - - [Page 6] - -UK/US Service at UCL IEN-185 - -assumed to be sufficiently static that they can be built into -tables in the originating host and in intermediate gateways. - -The DARPA internet protocol, on the other hand, assumes a single -global addressing domain and dynamic routing implemented by -cooperating gateways. Addresses are limited to 32-bit numbers. -The protocol combination "TCP > IP", used within its "home" -Catenet, constitutes a transport service. However, TCP > IP -fails to provide general end-to-end addressing between a Catenet -host and an X25 host, since TCP > IP cannot specify X25-domain -addresses. - -One solution to this problem of end-to-end addressing has been -proposed for the BBN VAN gateway [24]: the gateway will contain a -fixed table to map X25 addresses to and from "fake" internet -addresses. To simplify maintenance of this and other equivalent -tables, it may be desirable for the gateway to do the address -mapping by referencing a "Name Server", available to all relevant -gateways. - -Another type of solution is provided by Bennett's proposal [18] -for a true transport service protocol, based on NITS, to be used -above TCP/IP. In practice, a combination of these techniques may -be used. - -Finally, we can solve the addressing problem for terminal users -by forcing them to interact with each gateway between address -domains to specify the target address in the new domain. This -was the solution in the UK/US service being replaced. - - - -2.2 Protocol Conversion - -Both paths between the US and UCL will carry DARPA Catenet -protocols, using TCP > IP. Over the VAN/IPSS/PSS route, IP -datagrams will be encapsulated in X25 packets; this is sometimes -referred to as an "internet tunnel" or "IP tunnel". The BBN VAN -Gateway will form the Catenet end of such an IP tunnel. Since -Catenet protocols are being brought to the UK, the conversion -facilities must in general be in the UK; in particular, they will -be at UCL. - -For interactive terminal service, the protocols used on the -Catenet and the UK sides of the gateway differ at both the -transport level and the user level. Thus, the ARPANET uses -Telnet > TCP while XXX > X25 (or TS29 > NITS > X25) will be used -in the UK. In addition, SRCNET uses a private terminal -protocol called ITP [15], in the hierarchy: ITP > NITS(subset) > -X25. - - - - - - [Page 7] - -UK/US Service at UCL IEN-185 - -Therefore, UCL must provide a "terminal gateway", i.e., a gateway -which operates at the terminal protocol level. This facility -will terminate each of the terminal protocols, transforming one -protocol into another. We refer to this protocol conversion -gateway as the "Terminal Protocol Converter". - - - -2.3 Cost Minimisation - -The encapsulation of IP datagrams over the VAN, IPSS and PSS -public data networks raises some difficult problems [23]. First, -it is essential to minimise usage cost on these networks, -particularly on IPSS. Since IPSS calls accumulate both connect- -time and packet charges, cost can be reduced by multiplexing all -the encapsulated traffic over a single virtual call; this call -should be open only when the path is in use. - -It is not clear whether it will be worthwhile to pack multiple -internet datagrams into a single X25 packet. PSS and IPSS -charges are based on a data unit of 64 bytes; at most two small -TCP packets would fit into a single unit, so the average lost due -to internal fragmentation is roughly equivalent to one small TCP -packet. Hence, packing datagrams will save less than a factor of -2 in cost. - -As an end-to-end protocol, TCP raises some very great -difficulties with controlling cost inflation due to unwise -retransmissions [24]. - - - -2.4 Access Control - -The use of an IP tunnel through public data networks raises an -urgent access control problem [23], again because of usage -charges. - -At the UCL end of the IP tunnel, the Terminal Protocol Converter -will require UK users to log in before opening a virtual call -over PSS/IPSS. This log in will provide positive identification -to check authorization and record usage. - -However, the "BBN VAN Gateway", at the US end of the tunnel, is -planned as a pure internet datagram gateway [24]. This implies -that it will be able to apply access control only on the basis of -the source and destination internet addresses and the VAN address -(of UCL). For example, it will contain a list of "authorised" -Catenet hosts which are allowed to send packets to UCL through -the VAN. Clearly, such a low-level mechanism cannot limit access -to specific users or record user costs. - - - - - [Page 8] - -UK/US Service at UCL IEN-185 - -3. SERVICE FACILITIES - -This section will describe the network interconnection facilities -under development at UCL. These facilities will handle two major -types of traffic -- interactive terminals and file transfer -- -which pose different problems. - - - -3.1 Terminal Service - -Figure 1 shows schematically the terminal service operation for -those users required to use IPSS. - -The Terminal Protocol Converter must implement a command -language, reached by an appropriate escape sequence. This -language will include a "login" command and a "connect" command. -The "connect" command will specify the address in the destination -domain. The Protocol Converter must enforce user login, because -the use of PSS or IPSS will result in the expenditure of UCL -funds. This will solve UCL's access control problem for terminal -service, and allow the proper recording of usage. - -Since the terminal protocols on the two sides differ quite -significantly in facilities, fully-automatic conversion of -terminal protocols is not possible [22]. The command language -must allow the user to modify the conversion or to override it in -a particular case. - -We can give a simple example of the need for user control over -conversion. ARPANET hosts typically use Telnet negotiation to -cause character echoing at the host end rather than the terminal -end of the connection. Our Terminal Protocol Converter could -easily translate "WILL ECHO" from the Catenet automatically into -the equivalent in ITP or XXX. However, the use of host echo mode -seriously increases IPSS costs, and cannot be dictated by the -hosts. The Protocol Converter will therefore refuse the remote- -echo negotiation, but will provide a command (available to -authorised users) to allow host echo. - -Access to the UNIX system shown in Figure 1 will be primarily -(and perhaps excusively) for UK users to compose and read mail. -Bulk movement of mail files between this UNIX system and the US -will be performed by NIFTP, as shown later (Figure 2). - -From the DARPA Catenet viewpoint, the Terminal Protocol Converter -will terminate the IP, TCP and Telnet protocol layers; it -therefore will be addressed as an internet host. Between the BBN -VAN Gateway and the UCL facility labelled "IP Tunnel", internet -datagrams will be transported over the public data networks (VAN, -IPSS and PSS) by encapsulation in X25 packets. The "IP Tunnel" - - - - - [Page 9] - -UK/US Service at UCL IEN-185 - -will perform this encapsulation, but we do not plan to make it a -gateway; that is, it will not perform routing functions or -implement GGP. - -Notice that PSS appears twice in Figure 1 -- as the link to IPSS, -transporting encapsulated internet datagrams to the US, and also -for terminal access to UCL from UK users. This is an indication -the data paths on this diagram are logical; in fact, there will -initially be only one physical path (line) to PSS from UCL. - - - -3.2 File Transfer Traffic - -NIFTP [10] will be used for the transfer of files and bulk mail -between the DARPA Catenet and the UK. This requires the use of -suitable relays for file and mail transfer in the US. - -UCL has therefore created an NIFTP implementation on a TOPS-20 -machine (ISIE), using either NCP or TCP as its transport service -[17]. We plan to implement an automatic file transfer relay at -ISIE, based upon this implementation. - -A mail relay is also being planned [16], to interface to the -ARPANET mail service. - -Although the same user-level protocol, NIFTP, is used throughout, -there will be different transport-level protocols on the UK and -the Catenet sides. For file transfer, therefore, UCL need only -provide a gateway operating at the transport service level, -essentially independent of the user-level protocol on top. - -On the UK side, the transport service will be NITS > X25. On the -Catenet side, a true transport protocol with end-to-end -addressing is needed, since the X25 call is to be "concatenated" -with the TCP connection. As discussed previously, "bare" TCP is -not capable of transmitting the required X25 address. We -therefore plan to adopt Bennett's proposal [18] for (a simple -subset of) NITS above TCP. As shown in Figure 2, therefore, file -transfers from the US across IPSS will use the (incredible) -protocol hierarchy: - - NIFTP > NITS > TCP > IP > X25 - -Figure 2, which shows schematically the file tranfer paths seen -by users who are are required to use IPSS, is topologically very -similar to Figure 1. Instead of the Terminal Protocol Converter, -Figure 2 has a Transport Service Gateway. - -The Transport Service Gateway does create a new access control -and accounting problem. The NIFTP initiating the call should - - - - - [Page 10] - -UK/US Service at UCL IEN-185 - -"log in" at the Transport Service Gateway, but NIFTP has no -mechanism for such a log in. We plan to use the SRCNET solution -for this problem [20] -- the necessary login information will be -buried at the appropriate point in the NITS address string, to be -interpreted by the Transport Service Gateway. - - - -3.3 MOD Services - -Finally, Figure 3 shows the service facility as seen by the MOD -users. The two datagram gateways shown in this diagram are both -in service, maintained and controlled by BBN. - -Most of the paths shown on this diagram are part of the internet -catenet. The "IP tunnel" is used here to provide an alternate -route to PPSN. - -In these diagrams, we have generally omitted PSTN access for -terminals. However, UCL will have a TAC to provide such access -for the MOD. In addition, MOD users are expected to access UCL -via a PSS PAD using X25. - -The UNIX system for mail services will be a PDP-11/34 initially, -but might be upgraded in the future to a PDP-11/44. This machine -will also be used to monitor and control the service functions, -to accumulate accounting data, and to maintain the login data -base. - -The function labeled "UCL Datagram Gateway" in Figure 3 is a PDP -11/35 running BBN's gateway code. All the other UCL -interconnection functions will be implemented within LSI/11's -running under MOS, using code written mostly in "C". - - - - - - - - - - - - - - - - - - - - - - - [Page 11] - -UK/US Service at UCL IEN-185 - - FIGURE 1. VIEW OF UK/US SERVICE FOR SRC TERMINAL USER - - - -///////// -// // /////// /////// /////// -// C // _____ // // // // // // -// D a // | | // // ___ // I // ___ // // -// A t // | BBN | // V // | | // P // | | // P // -// R e //---| VAN |---// A //--| G |--// S //--| G |--// S //--- -// P n // | Gwy | // N // |___| // S // |___| // S // | -// A e // |_____| // // // // // // | -// t // /////// /////// // // | -// // /////// | -///////// | - | - | - Telnet > TCP > IP > X25 | - ____________________________________________________________| - | - | /////// - ..|........................................... // // - . | . // // - . | U C L . XXX > X25 // P // - . | . ____________ // S // - . | ________________ . | // S // - . | ______ | | . | // // - . | | | Telnet > | |-------- // // - . | | IP | TCP > IP | Terminal | . /////// - . --| |----------| Protocol | . - . |Tunnel| | Converter | . - . |______| | |-------- /////// - . | | . | ITP > X25 // // - . |________________| . | and // S // - . | Front | . | XXX > X25 // R // - . | End | . |____________ // C // - . |_______| . // N // - . | . // E // - . | . // T // - . | . // // - . (terminal access for | . /////// - . msg service) | . - . ==================== . - . || || . - . || || . - . || U N I X || . - . || || . - . || || . - . ==================== . - .............................................. - - - - - - [Page 12] - -UK/US Service at UCL IEN-185 - - FIGURE 2. VIEW OF US/UK NIFTP SERVICE FOR SRC USERS - - - - To: PSS-IPSS-VAN-DARPA Catenet (see Fig. 1) - ^ - | - | - | NITS > TCP > IP > X25 - | /////// - | // // - | // // - ..|............................................. // P // - . | . __________ // S // - . | . | // S // - . | ______ ______________ . | // // - . | | | NITS > | |NITS > X25 | // // - . | | IP | TCP > IP | Transport |----------- /////// - . ---| |----------| Service | . - . |Tunnel| | Gateway |----------- - . |______| | |NITS > X25 | /////// - . |______________| . | // // - . | . | // S // - . | . | // R // - . | . |__________ // C // - . | . // N // - . (local | . // E // - . transport| . // T // - . service) | . // // - . | . /////// - . | . - . =========|========== . - . || U N |I X || . - . || | || . - . || _____|______ || . - . || | NIFTP | || . - . || | / mailer | || . - . || |____________| || . - . || || . - . ==================== . - ................................................ - - - - - - - - - - - - - - - [Page 13] - -UK/US Service at UCL IEN-185 - - FIGURE 3. VIEW OF US/UK CONNECTIONS FOR MOD - -///////// /////// -// A C // ______ // S // -// R a // | | // A // -// P t // | Data-| // T // -// A e //---------| gram |----------// N //------ -// n // | Gwy | // E // | -// e // |______| // T // | -// t // /////// | -///////// | - TCP > IP | - ________________________________________________| /////// -| // // -| ........................................................ // P // -| . . // P // -| . ---------------------------------------------------- // S // -| . | IP . // N // -| . | _________ . // // -| . _______ IP | "IP | . /////// -| . | UCL |-------------------------------| Tunnel"| . IP ___|___ -| . | Data- | TCP > IP |_________| . | MOD | ------| gram |-------------------------- | . | VAN | - . | Gate- | _____|_____ | . | Gwy | - . | way | TCP > IP | | | . |_______| - . |_______|------> (IMP | Transport | | . IP >|X25 - . | +TAC) | Service | | . | - . | | Gateway | | . /////// - . | _______________ |___________| |________ // // - . | | | | IP > X25 // // - . | | UCL | | . // P // - . ----| Terminal |------------------------------- // S // - .Telnet > | Protocol | | XXX > X25 // S // - . TCP > IP | Converter | | . // // - . |_______________| | . // // - . | F.E.| | . /////// - . |_____| | . - . |___________ | (file . - . | | transfer) . - . (terminal access for | | . - . msg service) =========|========== . - . || U N |I X || . - . || | || . - . || _____|______ || . - . || | NIFTP | || . - . || | / mailer | || . - . U C L || |____________| || . - . ==================== . - ........................................................ - - - - - - - [Page 14] - -UK/US Service at UCL IEN-185 - -4. TERMINAL PROTOCOL CONVERTER - -In order to summarize the conversions to be performed by the -Protocol Converter, we introduce the symbol "<==>" to mean -"conversion to/from". For example, - - TCP < Telnet <==> ITP > X25 - -indicates that the terminal protocol Telnet operating "over" the -transport protocol TCP is to be converted into the terminal -protocol ITP operating over the transport service X25. - -The two primary conversions to be performed are: - - (1) TCP < Telnet <==> ITP > X25 - - (2) TCP < Telnet <==> XXX > X25 - -As mentioned earlier, we want to incorporate access to a UNIX -system as a server. It is convenient to consider the UNIX server -as a new protocol, and add the pseudo-conversions: - - (3) TCP < Telnet <==> UNIX - - (4) UNIX <==> XXX > X25 - - (5) UNIX <==> ITP > X25 - -Finally, we will add a terminal user process which will allow us -to access each of the other four terminal protocol modules for -testing. We call this terminal user process "TTY" and add the -pseudo-transformations: - - (6) TCP < Telnet <==> TTY - - (7) TTY <==> ITP > X25 - - (8) TTY <==> XXX > X25 - - (9) TTY <==> UNIX - -You will note that we have listed all but one of the ten -different conversions possible with the five protocols or -pseudo-protocols. That omission is: - - (10) X25 < XXX <==> ITP > X25 - -Someone will probably find a use for this conversion, although it -would not be related to US-UK service. - - - - - - - [Page 15] - -UK/US Service at UCL IEN-185 - - FIGURE 4. TERMINAL PROTOCOL CONVERTER - - - __________________________________________________________ - | | - | _______________ | - | | | | | - | ____________________ | | | | - | | | | | | I | | | - | | | | T |<=============>| T | | | - | | | T | E | | P | X | | - | | I | | L | ======>| | | | ---------| | C | N | | |_______| 2 |-------- - | | P | | E | | | | | | - | | | P | T |<=============>| | 5 | | - | | | | |<=== | | X | | | - | |_____|_______|______| | | | X | | | - | | | ===>| X | | | - | | | | | | | | - | | | | |_______|_______| | - | ___|__|__|__ | - | | | | - |________________________| UNIX |____________________| - | Terminal | - | Front End | - |____________| - | - | - - - -The Terminal Protocol Converter is implemented as a set of -"Protocol Processes", one for each terminal-level protocol, and a -common User Command Decoder Process. Each Protocol Process (PP) -executes an appropriate terminal protocol module (Telnet, ITP, -X28, X29, etc.) which in turn calls on the appropriate transport -process (TCP, X25, UNIX, local-TTY). The User Command Decoder -controls the establishment and termination of user sessions, and -the consequent accounting and access control. It also decodes -user commands. - -A session generally requires the collaboration of two PP's -- one -to handle the "terminal" (user) side of the conversation, while -the other handles the "host" (server) side; see Figure 5. Each -PP is able to act in either role. - -A session is initiated when a user opens a "call" or "connection" -to a terminal PP, which we will call "PP.term". PP.term makes a -logical connection to the UCD, which starts a dialog with the -user. The user will log in and request connection to a -particular remote host using some protocol. The UCD will then - - - - - [Page 16] - -UK/US Service at UCL IEN-185 - -request the appropriate host PP, "PP.host", to open the call to -the selected server host. - -This mechanism is unsymmetrical with respect to the role of the -two PP's. The User Command Decoder monitors the input from the -terminal side, to detect and parse Protocol Converter commands. -User messages generated as a result, and host output messages, -are sent directly to PP.term. - - - -FIGURE 5. TYPICAL PROTOCOL CONVERTER SESSION - - - ____________________________________________________ -| | -| User Command Decoder | -| ____________ | -| +-------> | | host input | -| | | UCD |------> | -| | <----| | | | -| | | |____________| | | -| | | | | -| | | | | -| | V <> __________ | -| | | | | | -| | PP.term | <------------- | PP.host | | -| | | host | | | -| |..........| output |..........| | -| | | | -| V V | -| Interface Interface | -| to Transport to Transport | -| Service Service | -| | -|____________________________________________________| - - - -This scheme using two PP's for each session is an attempt to -avoid the combinatorics implied by five different terminal -protocol handlers. It does have a cost, however -- we must -design an internal protocol for communication between the PP's -and with the UCD. The conversion function is effectively split -into two parts, in each of the PP's. - -The internal protocol includes a flow control mechanism. No -session can obtain more than its maximum share of the buffers, -and if a PP stops writing data, back-pressure will soon stop the -corresponding PP from reading new data for the same session. - - - - - [Page 17] - -UK/US Service at UCL IEN-185 - -Each session has a guaranteed minimum number of buffers, so it -can keep going, although perhaps slowly, when the system is -congested. In the absence of congestion, the number of buffers -in use by each session will fluctuate between this minimum and a -maximum, depending upon the relative rates of input and output of -data. - -As mentioned earlier, the Terminal Protocol Converter is being -implemented in "C" and executed under MOS on LSI/11's. As shown -in Figure 4, the Terminal Protocol Converter must include code -for IP, TCP, Telnet, ITP, X28, X29, X25, as well as the UNIX -driver, a command interpreter, and access control, monitoring, -and accounting facilities. This code greatly exceeds the -standard 16-bit address space of an LSI/11. At a later stage, we -may use a virtual-memory MOS system on an PDP 11/23; at present, -however, a much more straight-forward approach is being taken. -The code is being split across three LSI/11s. The Transport -Service Gateway and the IP Tunnel will also be contained in the -same LSI/11s, since they share many modules. - -The Terminal Protocol Converter LSI/11s must be able to -intercommunicate and to communicate with the UNIX system. In the -early development of the service facility, we have been using -1822 interfaces for this purpose. However, as soon as the -drivers are fully debugged, we will start using a local network --- specifically, a Cambridge Ring -- for these inter-LSI/11 -links within the Terminal Protocol Converter. The Ring will -similarly implement some of the other intra-UCL paths shown in -Figures 1-3. - -To maximise our flexibility in assigning modules to particular -LSI/11s, we defined a standard form for all transport (and -network) services, including TCP and X25 [25]. This standardized -interface, shown as a dotted line in Figure 5, is known at UCL as -the "MOS Clean and Simple" interface. We then built an -"Interprocessor Clean and Simple" (IPCS), which may be considered -to be the software equivalent to an "extender board". IPCS -allows the two sides of the interface to operate in different -LSI/11s as if they were in the same LSI/11. IPCS itself has been -implemented for LS/11's using either an 1822 connection or a -low-level transport protocol on the Cambridge Ring. - -In assigning functions to LSI/11's, we have a number of -constraints. Many of these are purely programming -considerations, such as module pairs whose common interfaces -requires both modules to be in the same processor. However, some -constraints are imposed by the network protocols themeselves. - - - - - - - - - [Page 18] - -UK/US Service at UCL IEN-185 - -In particular, the use of datagrams by IP is well suited to a -distributed organization, but the problem appears harder with a -virtual-call protocol like X25. For example, the SRI Port -Expander multiplexes logical internet hosts onto a single host -port, permitting the operation of TCP in multiple processors. -However, there is no corresponding facility for X25. For -example, the single PSS line must be attached to a particular -processor, which then becomes THE "PSS access machine". - - - - -5. CONCLUSIONS - -This document has described the second-generation service -facility under development at UCL, to connect the DARPA Catenet -with X25-based networks in the UK. This facility is implemented -as a complex set of protocol handling modules, operating an a set -of inter-communicating LSI/11's. A local network, the Cambridge -Ring, will be used for these interconnections. The operation and -monitoring of this system will be performed by a program running -under UNIX on a PDP/11-34. - -Linking the DARPA Catenet with public data networks has created -important problems of access control, in addition to the familiar -ones of addressing and routing. At the UCL end, we will force -user login in order to apply access controls and distribute costs -on a per-user basis. - -The complexity of the total systems leads to difficult problems -of reliability. Further research will be necessary in this area. - -In the future, we intend to consider a generalisation of the -present rather ad hoc distribution of functions in LSI/11's. The -protocol conversions and network interconnections could be -distributed into a pool of equivalent microprocessors, each -performing a particular network or conversion function [21]. The -Cambridge Ring would be used as a common communication bus for -the processors. The intent would be to improve reliability and -to more easily meet changing protocol requirements. - - - - - - - - - - - - - - - - [Page 19] - -UK/US Service at UCL IEN-185 - -6. REFERENCES - - - [1] P. T. Kirstein, "Transatlantic Collaborative Computing". - Indra Note 1027, UCL, London, December 1980. - - [2] P. T. Kirstein, "The Transition Requirements during 1981 - for UK/US Services". Indra Note 1037, UCL, London, - February 1981. - - [3] J. W. Burren, et. al., "Design for an SRC/NERC Computer - Network", RL 77-0371A, Rutherford Laboratory, Abingdon, - 1977. - - [4] C. F. Broomfield, "Packet Switching - The Experimental - Packet Switched Service". Comp. Commun. Rev., 2, 7-11, - 1975. - - [5] "ARPANET Protocols Handbook". NIC 7104, SRI - International, Menlo Park, 1978. - - [6] J. B. Postel, "DOD Standard Transmission Control - Protocol", RFC 761, USC Information Sciences Institute, - Marina del Ray, 1979. - - [7] J. B. Postel, "DOD Standard Internet Protocol", RFC - 760, USC Information Sciences Institute, Marina del Ray, - 1979. - - [8] CCITT, "Recommendations X3, X25, X28, and X29 on Packet - Switched Data Services". Int. Telecom. Union, Geneva - 1978. - - [9] P. F. Linington, Ed., "A Network Independent Transport - Service". SG3/CP(80)2, Post Office PSS User Forum, Study - Group 3, The Computer Laboratory, Cambridge, England, - February 1980. - - [10] (anon.), "A Network Independent File Transfer Protocol". - FTP-B(80), Data Communication Protocols Unit, National - Physical Laboratory, Teddington, February 1981. - - [11] I. M. Jacobs, et.al., "General Purpose Satellite - Network". Proc. IEEE, 66, 11, 1448-1467, 1978. - - [12] P. T. F. Kelly, "Non-Voice Services - Future Plans". - Proc. Conf. Business Telecommunications, Online, 65-82, - 1980. - - [13] P. H. Masterman, "The RSRE Pilot Packet Switched - Network". Proc. Intern. Conf. on Data Networks: - - - - - [Page 20] - -UK/US Service at UCL IEN-185 - - Development and Use, London, pp 277-292, 1980. - - [14] "Character Terminal Protocols over PSS". PSS User Forum, - Study Group 3, British Telecom, London, 1979. - - [15] P. M. Girard, "Protocols in the SRC/NERC Network". Issue - No. 5, Rutherford Laboratory, September 1980. - - [16] C. J. Bennett, "A Simple NIFTP-Based Mail System". Indra - Note 1025, UCL, London, January 1981. - - [17] C. J. Bennett, "TOPS20/TENEX NIFTP Overview - Documenation". Indra Note 849, UCL, London, December, - 1979. - - [18] C. J . Bennett, "Realization of the Yellow Book Transport - Service Above TCP". IEN-154, UCL, London, July 1980. - - [19] C. J. Bennett, "The Yellow Book Transport Service: - Principles and Status". IEN-155, UCL, London, August - 1980. - - [20] A. S. Dunn, "A User Authorisation Scheme for SRCNET". - Rutherford Laboratory, Abingdon, December 1981. - - [21] P. L. Higginson, "Plans for the Service Project". Indra - Note 1007, UCL, London, November 1980. - - [22] P. L. Higginson, "Mapping Telnet to ITP". Indra Note - 963, UCL, London, July 1980. - - [23] P. T. Kirstein, "The Facilities Needed in U.S. VAN - Gateways to ARPANET at Different Levels". Indra Note - 957, UCL, London, July 1980. - - [24] J. H. Haverty, "VAN Gateway: Some Routing and Performance - Issues". IEN-181, Bolt, Beranek, and Newman, Inc., - Cambridge, Mass., May 1981. - - [25] R. T. Braden and P. L. Higginson, "Clean and Simple - Interface under MOS". Indra Note 1054, UCL, London, - February 1981. - - - - - - - - - - - - - - [Page 21] diff --git a/text/ien/ien186.txt b/text/ien/ien186.txt deleted file mode 100644 index 97d51a4a..00000000 --- a/text/ien/ien186.txt +++ /dev/null @@ -1,4040 +0,0 @@ - - IEN 186 1 June 1981 - - - - - - - - PROPOSED DCEC IP SPECIFICATION - - - - - - prepared by - - Mary M. Bernstein - - System Development Corporation - 2500 Colorado Avenue - Santa Monica, CA 90406 - (213) 820-4111 - - - - - - - - - - - - - Abstract - - This document specifies the Internet Protocol (IP) which supports - the interconnection of communication subnetworks. The document - includes an introducion to IP with a model of operation, a defin- - ition of services provided to users, and a description architec- - tural and environmental requirements. The protocol service - interfaces and mechanisms are specified using an abstract state - machine model. - - - - System Development Corporation - 1 June 1981 IEN 186 - - - FOREWORD - - - - - - This document has been submitted to the DCEC for consideration as - a standard specification of the Internet Protocol. The document - incorporates the organization and specification techniques - presented in the DCEC Protocol Specification Guidelines. This is - a preliminary version; a revised version is to be released in - December 1981. Any comments regarding completeness and con- - sistency or suggestions for improvement of this document are wel- - comed. - - - Mary M. Bernstein - - System Development Corporation - 2500 Colorado Avenue - Santa Monica, CA 90406 - (213) 820-4111 - - ARPANET: brnstein@dti - - - - - - - - CONTENTS - - - 1. OVERVIEW................................................. 1 - 1.1 Scenario............................................ 4 - - 2. DESCRIPTION OF SERVICES PROVIDED TO UPPER LAYERS......... 6 - 2.1 Datagram Service.................................... 6 - 2.2 Virtual Network Services............................ 6 - 2.3 Error Reporting Service............................. 7 - - 3. UPPER LAYER SERVICE/INTERFACE SPECIFICATION.............. 8 - 3.1 Interaction Primitives.............................. 8 - 3.1.1 Service Request Primitives 8 - 3.1.2 Service Response Primitives 9 - 3.2 Abstract Machine Definition of Upper Level Services - and Interaction Discipline.......................... 10 - 3.2.1 Machine Identifier 10 - 3.2.2 State Diagram 11 - 3.2.3 State Vector 11 - 3.2.4 State Machine Data Structures 11 - 3.2.5 Event List 12 - 3.2.6 Events and Actions 12 - - 4. DESCRIPTION OF LOWER LAYER SERVICE REQUIREMENTS.......... 14 - 4.1 Data Transfer....................................... 14 - 4.2 Error Reporting..................................... 14 - - 5. LOWER LAYER SERVICE/INTERFACE SPECIFICATION.............. 15 - 5.1 Interaction Primitives.............................. 15 - 5.1.1 Service Request Primitives 15 - 5.1.2 Service Response Primitives 16 - 5.2 Abstract Machine Definition of Lower Level Services - and Interaction Discipline.......................... 16 - 5.2.1 Machine Identifier 16 - 5.2.2 State Diagram 17 - 5.2.3 State Vector 17 - 5.2.4 State Machine Data Structures 17 - 5.2.5 Event List 17 - 5.2.6 Events and Actions 18 - - 6. MECHANISM SPECIFICATION.................................. 19 - 6.1 Overview of IP Mechanisms........................... 19 - 6.1.1 Routing Mechanism 19 - 6.1.2 Fragmentation and Reassembly 21 - 6.1.3 Checksum 22 - 6.1.4 Time To Live 23 - 6.1.5 Type of Service 23 - 6.1.6 Data Options 23 - 6.1.7 Error Report Datagrams 24 - 6.2 Internet Protocol Header Format..................... 26 - 6.2.1 Version 26 - - - - - - - - 6.2.2 Internet Header Length 26 - 6.2.3 Type of Service 27 - 6.2.4 Total Length 27 - 6.2.5 Identification 27 - 6.2.6 Flags 28 - 6.2.7 Fragment Offset 28 - 6.2.8 Time to Live 28 - 6.2.9 Protocol 28 - 6.2.10 Header Checksum 29 - 6.2.11 Source Address 29 - 6.2.12 Destination Address 29 - 6.2.13 Padding 29 - 6.2.14 Options 29 - 6.2.15 Specific Option Definitions 31 - 6.2.16 Error Report Datagrams 33 - 6.3 Extended State Machine Representation............... 35 - 6.3.1 State Machine Identification 35 - 6.3.2 State Machine Diagram 35 - 6.3.3 State Vector 36 - 6.3.4 State Machine Data Structures 37 - 6.3.5 Event List 39 - 6.3.6 State Machine Events and Actions 39 - - 7. EXECUTION ENVIRONMENT REQUIREMENTS....................... 72 - 7.1 Inter-process communication......................... 72 - 7.2 Timing.............................................. 72 - - 8. BIBLIOGRAPHY............................................. 73 - - 9. GLOSSARY................................................. 74 - - - - System Development Corporation - 1 June 1981 -1- IEN 186 - - - 1. OVERVIEW - - This document specifies the Internet Protocol (IP) which supports - the interconnection of communication subnetworks. The document - introduces the Internet Protocol's role and purpose, defines the - services provided to users, and specifies the mechanisms needed - to support those services. This document also defines the ser- - vices required of the lower protocol layer, describes the upper - and lower interfaces, and outlines the operating system primi- - tives needed for implementation. In addition, a glossary of - terms and a set of appendices discussing certain aspects of IP - are included. The reader is assumed to be familiar with the DCEC - Architecture Report which presents a protocol architecture model - for DoD communication services[1]. This document incorporates - the organization and specification techniques presented in the - DCEC Protocol Specification Guidelines[2]. - - The Internet Protocol is designed to interconnect packet-switched - communication subnetworks to form an internetwork. IP transmits - blocks of data, called internet datagrams, from sources to desti- - nations throughout the internet. Sources and destinations are - hosts located on either the same subnetwork or connected subnet- - works. IP is purposely limited in scope to provide the basic - functions necessary to deliver a block of data. Each internet - datagram is an independent entity unrelated to any other internet - datagram. IP does not create connections or logical circuits. - IP has no mechanisms to promote data reliability, flow control, - sequencing, or other services commonly found in host-to-host pro- - tocols. - - - +------+ +-----+ +------+ +-----+ - |Telnet| | FTP | | EFTP | ... | | - +------+ +-----+ +------+ +-----+ - | | | | - +-----+ +-----+ +-----+ - | TCP | | UDP | ... | | - +-----+ +-----+ +-----+ - | | | - +--------------------------------+ - | HOST INTERNET PROTOCOL | - +--------------------------------+ - | - +------------------------+ - | Subnetwork Protocol | - +------------------------+ - - 1. Example Host Protocol Hierarchy - - - This document specifies a host IP. In the DoD architectural - model, a host IP resides between transport layer and the lower - - - - System Development Corporation - 1 June 1981 -2- IEN 186 - - - network sublayer in each internet host. In each gateway, a site - interconnecting two or more subnets, an IP resides above two or - more subnetwork entities. In a gateway, IP is closely coupled to - the Gateway to Gateway Protocol (GGP) to form a gateway IP. A - gateway IP supports many of the same functions as a host IP, but - provides additional services such as maintenance of current - internet topology data. Throughout the remainder of the docu- - ment, a host IP is simply referred to as IP. - - GATEWAY INTERNET PROTOCOL - +-----------------------------------+ - | Gateway-Gateway Protocol | - +- - - - - - - - - - - - - - - - - -+ - | Internet Protocol | - +-----------------------------------+ - | | | - +---------+ +---------+ +---------+ - |subnet 1 | |subnet 2 | ... |subnet i | - | protocol| | protocol| | protocol| - +---------+ +---------+ +---------+ - | | | - ARPANET local net public net - - - 2. Example Gateway Protocol Hierarchy - - - A protocol in an upper layer passes data to IP for delivery. IP - packages the data as an internet datagram and passes it to the - local subnetwork protocol for transmission across the local sub- - net. If the destination host is on the local subnet, IP sends - the datagram through the subnet directly to that host. If the - destination host is on a connected subnet, IP sends the datagram - to an appropriate gateway. The gateway, in turn, sends the - datagram through the next subnet to the destination host, or to - another gateway. - - Thus, datagrams move from one IP module to another through an - interconnected set of subnetworks until the destination is - reached. The sequence of IP modules handling the datagram in - transit is called the gateway route. The gateway route is dis- - tinct from the lower level node-to-node route supplied by a par- - ticular subnetwork. The gateway route is based on the destina- - tion internet address. The IP modules share common rules for - interpreting internet addresses to perform internet routing. - - In transit, datagrams may traverse a subnetwork whose maximum - packet size is smaller than the size of the datagram. To handle - this, IP provides fragmentation and reassembly mechanisms. The - gateway at the smaller-packet subnet fragments the original - datagram into pieces, called datagram fragments, small enough for - transmission. The IP module in the destination host reassembles - - - - System Development Corporation - 1 June 1981 -3- IEN 186 - - - the datagram fragments to reproduce the original datagram. - - IP can support a diverse set of upper layer protocols (ULPs). A - transport protocol with real-time requirements, such as the Net- - work Voice Protocol (NVP), can make use of IP's datagram service - directly. A transport protocol providing ordered reliable - delivery, such as TCP, can build additional mechanisms on top of - IP's basic datagram service. Also, IP's delivery service can be - customized in some ways to suit the special needs of an upper - layer protocol. For example, a pre-defined gateway route, called - a source route, can be supplied for an individual datagram. Each - IP module forwards the datagram according to the source route - instead of using only the independent routing mechanism. - - The Internet Protocol shares a common history with the Transmis- - sion Control Protocol, first described in [3]. Later, IP and TCP - were separated and specified as two distinct protocols in [4] and - [5]. A wide range of technical, legal, and political issues - associated with subnetwork interconnection is presented in [6]. - Alternative approaches to internetting, including the CCITT - Recommendation X.75 and the PUP architecture, are introduced and - compared in in [7], [8], and [9]. Certain aspects of fragmenta- - tion and routing are are discussed in [10], and [11]. [12] and - [13] contain current address mappings and assigned numbers used - in network protocol implementations. - - - - System Development Corporation - 1 June 1981 -4- IEN 186 - - - 1.1 Scenario - - The following scenario illustrates the model of operation for - transmitting a datagram from one upper layer protocol to another. - The scenario is purposely simple so that IP's basic operation is - not obscured by the details of interface parameters or header - fields. - - A ULP in host A is to send data to a peer protocol in host B on - another subnetwork. In this case, the source and destination - hosts are on subnetworks directly connected by a gateway. - - HOST A HOST B - ---------------- ------------------ - | Sending | | Receiving | - | Upper Layer | | Upper Layer | - | Protocol | GATEWAY | Protocol | - | \ | ------------------ | / | - | IP Module | | IP Module | | IP Module | - | \ | | / \ | | / | - | SNP-1 | | SNP-1 SNP-2 | | SNP-2 | - ---------------- ------------------ ------------------ - \ / \ / - Local Subnet 1 Local Subnet 2 - - Basic Model of Operation - - - - - a. The sending ULP passes its data to the IP module, along with - the destination internet address and other parameters. - - b. The IP module prepares an IP header and attaches the ULP's - data to form an internet datagram. Then, the IP module - determines a local subnetwork address from the destination - internet address. In this case, it is the address of the - gateway to the destination subnetwork. The internet - datagram along with the local subnet address is passed to - the local subnetwork protocol (abbreviated as SNP). - - c. The SNP creates a local subnetwork header and attaches it to - the datagram forming a subnetwork packet. The SNP then - transmits the packet across the local subnet. - - - - System Development Corporation - 1 June 1981 -5- IEN 186 - - - - <========= subnetwork packet =========> - - +------+---------+---------/ /--------+ - | * | * | * | - +--:---+----:----+----:---/ /---------+ - : : : - : : : - : : ULP data - : IP header - : - subnetwork header - - - d. The packet arrives at the gateway connecting the first and - second subnetworks. The SNP of the first subnet strips off - the local subnetwork header and passes the remainder to the - IP module. - - e. The IP module determines from the destination internet - address in the IP header that the datagram is intended for a - host in the second subnet. The IP module then derives a - local subnetwork address for the destination host. That - address is passed along with the datagram to the SNP of the - second subnetwork for delivery. - - f. The second subnet's SNP builds a local subnetwork header and - appends the datagram to form a packet for the second subnet- - work. That packet is transmitted across the second subnet - to the destination host. - - g. The SNP of the destination host strips off the local subnet- - work header and hands the remaining datagram to the IP - module. - - h. The IP module determines that the datagram is bound for a - ULP within this host. The data portion of the datagram, the - source internet address, and other option parameters are - passed to the ULP. - - Delivery of data across the internet is complete. - - - - System Development Corporation - 1 June 1981 -6- IEN 186 - - - 2. DESCRIPTION OF SERVICES PROVIDED TO UPPER LAYERS - - This section describes the services offered by the Internet Pro- - tocol to upper layer protocols (ULPs). The goals of this section - are to provide the motivation for protocol mechanisms and a - definition of the functions provided by this protocol. - - The services provided by IP are: - - o intact internet datagram service - - o virtual network service - - o error reporting service - - - A description of each service follows. - - 2.1 Datagram Service - - The Internet Protocol shall provide a datagram service between - homogeneous upper layer protocols in an internet environment. A - datagram service is characterized by data delivery to the desti- - nation with non-zero probability; some data may possibly be lost. - Also, a datagram service does not necessarily preserve the - sequence in which data is supplied by the source upon delivery at - the destination. - - IP shall deliver received data to a destination ULP in the same - form as sent by the source ULP. IP shall discard datagrams when - insufficient resources are available for processing. IP does not - detect datagrams lost or discarded by the subnetwork layer. - - As part of the delivery service, IP insulates upper layer proto- - cols from subnetwork specific characteristics. For example, IP - maps internet addresses supplied by ULPs into local addresses - used by the local subnetwork. Also, IP hides any packet-size - restrictions of subnetworks along the transmission path within - the internet. - - - 2.2 Virtual Network Services - - IP shall provide to upper layer protocols the ability to select - virtual network service parameters. IP shall provide a standard - command set for the ULPs to indicate the services desired. Thus, - the ULPs can tune certain properties of IP and the underlying - subnetworks to customize the transmission service according to - their needs. - - The virtual network parameters fall into two categories: service - quality parameters and service options. Service quality - - - - System Development Corporation - 1 June 1981 -7- IEN 186 - - - parameters influence the transmission service provided by the - subnetworks; service options are additional functions provided - by IP. A brief description of each follows: - - o Service Quality Parameters - - - Precedence : attempts preferential treatment for high - importance datagrams - - - Transmission Mode : datagram vs. stream. Stream mode - attempts to minimize delay and delay dispersion through - reservation of network resources - - - Reliability : attempts to minimize data loss and error rate - - - Speed : attempts prompt delivery - - - Resource Tradeoff : indicates relative importance of speed - vs. reliability. - - o Service Options - - - Security Labelling : identifies datagram for compart- - mented hosts - - - Source Routing : selects set of gateway IP modules to visit - in transit - - - Route Recording : records gateway IP modules encountered in - transit - - - Stream Identification : names reserved resources used for - stream service - - - Time Stamping : records time information - - - Don't Fragment : marks a datagram as an indivisible unit - - - 2.3 Error Reporting Service - - IP shall provide error reports to the upper layer protocols indi- - cating errors detected in providing the above services. In - addition, certain errors detected by lower layer protocols shall - be passed to the ULPs. These reports indicate several classes of - errors including invalid arguments, insufficient resources, and - transmission errors. The errors that IP must report to ULPs have - not been defined. IP's error reporting responsibilities need - further examination. - - - - System Development Corporation - 1 June 1981 -8- IEN 186 - - - 3. UPPER LAYER SERVICE/INTERFACE SPECIFICATION - - This section specifies the IP services provided to upper layer - protocols and the interface through which these services are - accessed. The first part defines the interaction primitives and - interface parameters for the upper interface. The second part - contains the abstract machine specification of the upper layer - services and interaction discipline. - - - 3.1 Interaction Primitives - - An interaction primitive defines the purpose and content of - information exchanged between two protocol layers. Primitives - are grouped into two classes based on the direction of informa- - tion flow. Information passed downward, in this case from a ULP - to IP, is called a service request primitive. Information passed - upward, in this case from IP to a ULP, is called a service - response primitive. Interaction primitives need not occur in - pairs. That is, a request does not necessarily elicit a - "response"; a "response" may occur independently of a request. - - The information associated with an interaction primitive falls - into two categories: parameters and data. The parameters - describe the data and indicate how the data is to be treated. - The data is not examined or modified. The format of the parame- - ters and data is implementation dependent and therefore not - specified. - - A given IP implementation may have slightly different interaction - primitives imposed by the execution environment or system design - factors. In those cases, the primitives can be modified to - include more information or additional primitives can be defined - to satisfy system requirements. However, all IPs must provide at - least the interaction primitives specified below to guarantee - that all IP implementations can support the same protocol hierar- - chy. - - - 3.1.1 Service Request Primitives - - A single service request primitive supports IP's datagram ser- - vice, the SEND primitive. - - 3.1.1.1 SEND - - The SEND primitive contains complete control information for each - unit of data to be delivered. IP accepts in a SEND at least the - following information: - - o source address - internet address of ULP sending data - - - - System Development Corporation - 1 June 1981 -9- IEN 186 - - - o destination address - internet address of ULP to receive data - - o protocol - name of the recipient ULP - - o type of service indicators - relative transmission quality - associated with unit of data - - - precedence - one of five levels : (P1, P2, P3, P4, P5 ) - where P1 <= P2 <= P3 <= P4 <= P5 - - - reliability - one of four levels : (R1, R2, R3, R4) - where R1 <= R2 <= R3 <= R4 - - - speed - one of two levels : (S1, S2) where S1 <= S2 - - - resource trade-off - speed or reliability : (T1, T2) - where T1 = speed, T2 = reliability - - - transmission mode - stream or datagram : (M1, M2) where - M1 = stream, M2 = datagram - - o identifier - value distinguishing this portion of data from - others sent by this ULP. - - o don't fragment indicator - flag showing whether IP can fragment - data to accomplish delivery - - o time to live - value in seconds indicating maximum lifetime of - data within the internet - - o data length - size of data being transmitted - - o option data - options requested by ULP from following list: - security, source routing, return routing, stream identification, - or time stamp. (See section 6.2.14.) - - o data - present when data length is greater than zero. - - 3.1.2 Service Response Primitives - - A single service response primitive supports IP's datagram ser- - vice, the DELIVER primitive. - - 3.1.2.1 DELIVER - - The DELIVER primitive contains the data passed by a source ULP in - a SEND, along with addressing, quality of service, and option - information. IP passes in a DELIVER at least the following - information: - - o source address - internet address of sending ULP - - - - System Development Corporation - 1 June 1981 -10- IEN 186 - - - o destination address - internet address of the recipient ULP - - o protocol - name of recipient ULP as supplied by the sending ULP - - o type of service indicators - relative transmission quality - associated with unit of data - - - precedence - one of five levels : (P1, P2, P3, P4, P5 ) - where P1 <= P2 <= P3 <= P4 <= P5 - - - reliability - one of four levels : (R1, R2, R3, R4) - where R1 <= R2 <= R3 <= R4 - - - speed - one of two levels : (S1, S2) where S1 <= S2 - - - resource trade-off - speed or reliability : (T1, T2) - where T1 = speed, T2 = reliability - - - transmission mode - stream or datagram : (M1, M2) where - M1 = stream, M2 = datagram - - o data length - number of octets of received data (possibly zero) - - o option data - options requested by source ULP from following - list: security, source routing, return routing, stream identifi- - cation, or time stamps. (See section 6.2.14.) - - o data - present when data length is greater than zero. - - In addition, a DELIVER may contain error reports from IP either - together with parameters and data listed above, or, independently - of that information. This area needs further examination and - definition. - - 3.2 Abstract Machine Definition of Upper Level Services and - Interaction Discipline - - The abstract machine defines the behavior of the entire service - machine from the perspective of the upper layer protocol. An - abstract machine definition is composed of a machine identifier, - a state diagram, a state vector, a set of data structures, an - event list, and an events and actions correspondence. - - 3.2.1 Machine Identifier - - Each upper interface state machine is uniquely identified by the - four values: - - o source address - - o destination address - - - - System Development Corporation - 1 June 1981 -11- IEN 186 - - - o protocol - - o identifier - - 3.2.2 State Diagram - - The upper interface state machine has a single state which never - changes. No diagram is needed. - - - 3.2.3 State Vector - - The upper interface state machine has a single state which never - changes. No state vector is needed. - - - 3.2.4 State Machine Data Structures - - No data structures are used for the upper interface state - machine. However, the following abbreviations are used to refer - to parameters of the interaction primitives: - - S = source internet address - D = destination internet address - P = protocol identifier - TOS = type of service where - p(i) = one of the precedence levels (P1, P2, P3, P4, P5) - (Note: read p(i) as "p sub i") - r(i) = one of the reliability levels (R1, R2, R3, R4) - s(i) = one of the speed levels (S1, S2) - t(i) = one of the resource trade-offs (T1, T2) - m(i) = one of the transmission modes (M1, M2) - ID = data identifier - TTL = time to live value - DF = don't fragment flag - Opts = the set of desired options including zero or more - of the following: - sr = source route - rr = return route - sl = security labelling - sid = stream identifier - its = internet timestamp - sts = satellite timestamp - Data = data unit for delivery - L = length of data unit - t = time of event initiation - N = time elapsed during transmission - - - - System Development Corporation - 1 June 1981 -12- IEN 186 - - - 3.2.5 Event List - - The events are drawn from the interaction primitives specified in - section 3.1 above. An event is composed of a service primitive - and an abstract timestamp to indicate the time of event initia- - tion. The event list: - - 1. SEND( S, D, P, TOS(p(i), r(i), s(i), t(i), m(i)), ID, TTL, - DF, Opts(sr, rr, sl, sid, its, sts), Data, L) at time t - - 2. NULL - Although no service request is issued by ULP, certain - conditions within IP or lower layers produce a service - response. - - - - 3.2.6 Events and Actions - - The following section defines the set of possible actions eli- - cited by each event. - - - EVENT = SEND( S, D, P, TOS(p(i), r(i), s(i), t(i), m(i)), ID, TTL, DF, - Opt(sr, rr, sl, sid, its, sts), Data, L ) at time t - - Actions: - - 1. DELIVER Data at time t+N to protocol P at destination D - with all of the following properties: - - a. The time elapsed during data transmission satisfies - the time-to-live limit, i.e. N <= TTL. - - b. The quality of data transmission is at least - equal to the relative levels specified by - TOS(p(i), r(i), s(i), t(i), m(i)). - - c. if (DF = TRUE) - then IP fragmentation has not occurred in transit. - - d. if (Opts contains sr) - then Data has visited in transit at least the nodes - named by source route provided in SEND. - - e. if (Opts contains rr) - then the list of nodes visited in transit is - delivered with Data. - - f. if (Opts contains sl) - then the security label is delivered with Data. - - g. if (Opts contains sid) - - - - System Development Corporation - 1 June 1981 -13- IEN 186 - - - then the stream identifier is delivered with Data - - h. if (Opts contains its) - then the internet timestamp is delivered with Data - - j. if (Opts contains sts) - then the satellite timestamp is delivered with Data - - OR, - 2. DELIVER to protocol P at source S indicating one of - the following error conditions: - - a. destination D unreachable - - b. protocol P unreachable - - c. if (DF = TRUE) - then fragmentation needed but prohibited - - d. if (Opts contains any option) - then parameter problem with option. - - OR, - 3. no action - - - - EVENT = NULL - - Actions: - - 1. DELIVER to protocol P at source S indicating - the following error condition: - - a. error conditions in subnet layer - - - - System Development Corporation - 1 June 1981 -14- IEN 186 - - - 4. DESCRIPTION OF LOWER LAYER SERVICE REQUIREMENTS - - This section describes the minimal services required of the sub- - network layer. - The services required are: - - o transparent data transfer between hosts within a subnetwork - - o error reporting - - A description of each service follows. - - 4.1 Data Transfer - - The subnetwork layer must provide a transparent data transfer - between hosts within a single subnetwork. Only the data to be - delivered, and the necessary control and addressing information - should be required as input from IP. Intranet routing and sub- - network operation shall be handled by the subnetwork layer - itself. - - The subnetwork need not be a reliable communications medium. - Data should arrive with non-zero probability at a destination. - Data may not necessarily arrive in the same order as it was sup- - plied to the subnetwork layer, nor is data guaranteed to arrive - error free. - - 4.2 Error Reporting - - The subnetwork layer shall provide reports to IP indicating - errors from the subnetwork and lower layers as feasible. - The specific error requirements of the subnetwork layer have not - been defined. This area needs further examination. - - - - System Development Corporation - 1 June 1981 -15- IEN 186 - - - 5. LOWER LAYER SERVICE/INTERFACE SPECIFICATION - - This section specifies the minimal subnetwork protocol services - required by IP and the interface through which those services are - accessed. The first part defines the interaction primitives and - their parameters for the lower interface. The second part con- - tains the abstract machine specification of the lower layer ser- - vices and interaction discipline. - - 5.1 Interaction Primitives - - An interaction primitive defines the purpose and contents of - information exchanged between two protocol layers. Two kinds of - primitives, based on the direction of information flow, are - defined. Service requests pass information downward; service - responses pass information upward. These primitives need not - occur in pairs, nor in a synchronous manner. That is, a request - does not necessarily elicit a "response"; a "response" may occur - independently of a request. - - The information associated with an interaction primitive falls - into two categories: parameters and data. The parameters - describe the data and indicate how the data is to be treated. - The data is not examined or modified. The format of interaction - primitive information is implementation dependent and so is not - specified. - - A given IP implementation may have slightly different interfaces - imposed by the nature of the subnetwork or execution environment. - Under such circumstances, the primitives can be modified to - include more parameters or include additional primitives can be - defined. However, all IPs must provide at least the interface - specified below to guarantee that all IP implementations can sup- - port the same protocol hierarchy. - - - 5.1.1 Service Request Primitives - - A single service request primitive is required from the SNP, a - SNP_SEND primitive. - - 5.1.1.1 SNP_SEND - - The SNP_SEND contains an IP datagram, a destination, and parame- - ters describing the desired transmission quality. The SNP - receives in an SNP_SEND at least the following information: - - o local destination address - local subnetwork address of desti- - nation host or gateway - - o type of service indicators - relative transmission quality - associated with the datagram - - - - System Development Corporation - 1 June 1981 -16- IEN 186 - - - - precedence - one of five levels : (P1, P2, P3, P4, P5 ) - where P1 <= P2 <= P3 <= P4 <= P5 - - - reliability - one of four levels : (R1, R2, R3, R4) - where R1 <= R2 <= R3 <= R4 - - - speed - one of two levels : (S1, S2) where S1 <= S2 - - - resource trade-off - speed or reliability : (T1, T2) - where T1 = speed, T2 = reliability - - - transmission mode - stream or datagram : (M1, M2) where - M1 = stream, M2 = datagram - - o length - size of the datagram - - o datagram - - 5.1.2 Service Response Primitives - - One service request primitive is required to support IP's - datagram service, the SNP_DELIVER primitive. - - 5.1.2.1 SNP_DELIVER - - The SNP_DELIVER contains only a datagram which is an independent - entity containing all the information needed by IP. An IP - receives in an SNP_DELIVER at least the following information: - - o datagram - - In addition, a SNP_DELIVER may contain error reports from the - SNP, either together with a datagram or independently of one. - This area needs further examination and definition. - - - - 5.2 Abstract Machine Definition of Lower Level Services and - Interaction Discipline - - The abstract state machine defines the behavior of the entire - service machine with respect to the lower layer protocol. An - abstract machine definition is composed of a machine identifier, - a state diagram, a state vector, a set of data structures, an - event list, and an events and actions correspondence. - - 5.2.1 Machine Identifier - - Each lower interface state machine is uniquely identified by the - four values: - - - - System Development Corporation - 1 June 1981 -17- IEN 186 - - - o source address - - o destination address - - o protocol - - o identification - - 5.2.2 State Diagram - - The lower interface state machine has a single state which never - changes. No diagram is needed. - - - 5.2.3 State Vector - - No state vector is needed for the lower interface state machine. - - - 5.2.4 State Machine Data Structures - - No data structures are used for the lower interface state - machine. However, the following abbreviations are used to refer - to parameters of the interaction primitives: - - LD = local subnetwork destination address - TOS = type of service where - p(i) = one of the precedence levels (P1, P2, P3, P4, P5) - (Note: read p(i) as "p sub i") - r(i) = one of the reliability levels (R1, R2, R3, R4) - s(i) = one of the speed levels (S1, S2) - t(i) = one of the resource trade-offs (T1, T2) - m(i) = one of the transmission modes (M1, M2) - L = datagram length - - - - 5.2.5 Event List - - The events are drawn from the interactions primitives specified - in section 5.1 above. An event is composed of a service primi- - tive with its parameters and data. - - 1. SNP_SEND( LD, TOS(p(i), r(i), s(i), t(i), m(i)), L, - Datagram) - - 2. NULL - Although IP issues no service request, certain condi- - tions within the subnet layer elicit a service response. - - - - System Development Corporation - 1 June 1981 -18- IEN 186 - - - 5.2.6 Events and Actions - - The following section defines the set of possible actions eli- - cited by each event. - - EVENT = SNP_SEND( LD, TOS(p(i), r(i), s(i), t(i), m(i)), L, Datagram) - - ACTIONS: - - 1. SNP_DELIVER Datagram to IP at local destination LD with - all of the following properties: - - a. The quality of data transmission is at least - equal to the relative levels specified by - TOS(p(i), r(i), s(i), t(i), m(i)). - - OR, - 2. no action - - - EVENT = NULL - - ACTIONS: - - 1. SNP_DELIVER to IP indicating the following error condition: - - a. error conditions within the subnet layer - - - - System Development Corporation - 1 June 1981 -19- IEN 186 - - - 6. MECHANISM SPECIFICATION - - This section defines the mechanisms supporting the services - offered by IP. The first subsection motivates the specific - mechanisms chosen and discusses the underlying philosophy of - those choices. The second subsection defines the format and use - of the IP header fields. The last subsection specifies the peer - protocol interactions with a state machine model. - - 6.1 Overview of IP Mechanisms - - The IP mechanisms are motivated by the IP services, described in - section 2: - - o intact datagram delivery service - - o virtual network service - - o error reporting service - - Each service could be supported by any of a set of mechanisms. - The selection of mechanisms is guided by design standards includ- - ing simplicity, generality, flexibility, and efficiency. The - following mechanism descriptions identify the service or services - supported, discuss the design criteria used in selection, and - explain how the mechanisms work. - - 6.1.1 Routing Mechanism - - IP contains an adaptive routing mechanism to support the delivery - service. The routing mechanism uses the internet addressing - scheme and internet topology data to direct datagrams along the - best path between source and destination. The mechanism provides - routing options for ULPs needing the flexibility to select or - record routes and routing information. - - A distinction is made between names, addresses, and routes. A - name indicates the object sought independently of physical loca- - tion. An address indicates where the object is. A route indi- - cates how to get there. It is the task of the upper layer proto- - cols to map from names to addresses. The internet protocol maps - from internet addresses to local subnet addresses to perform - routing through the internet. It is the task of lower layer pro- - tocols to map from the local subnet addresses to routes through - local subnetworks. - - Internet addresses have a fixed length of four octets (32 bits). - An internet address begins with a one octet network number and - ends with a three octet REST field. The REST field usually con- - tains a local subnetwork address. However, alternate schemes for - use of this field can extend the address range to allow more sub- - networks on the internet. - - - - System Development Corporation - 1 June 1981 -20- IEN 186 - - - 0 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 8 9 0 1 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+/ /+-+-+-+-+ - | NETWORK | REST | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-/ /-+-+-+-+-+ - - - The 24-bit REST field, assigned by each local subnetwork, should - allow for a single physical host to act as several distinct - internet hosts. That is, there should exist a mapping between - internet host addresses and subnetwork/host interfaces that - allows several internet addresses to correspond to one interface. - A host should be allowed to have several physical interfaces - (i.e. multi-homing) and to treat the datagrams from several of - them as if they were all addressed to a single host. - - To route a datagram, an IP module examines the NETWORK field of - the internet address indicating the destination for the datagram. - If the network number is the same as the IP module's subnetwork, - the module uses the REST field of the internet address to derive - the local subnet address of the destination host. If the network - number doesn't match, the module determines a local subnet - address of a gateway on the best path to the destination subnet- - work. In turn, the gateway IP module derives the next local sub- - net address to either a host or gateway. In this way, the - datagram is relayed through the internet to the destination host. - - In a static environment, the routing algorithm is straightfor- - ward. However, internet topology tends to change due to hardware - or software failure, host availability, or heavy traffic load - conditions. So, each host and gateway IP along the gateway route - also uses its current knowledge of internet topology to make - routing decisions. - - 6.1.1.1 Routing Options - - IP provides a mechanism, called source routing, to override the - gateway's independent routing decisions. This mechanism allows - an upper layer protocol to influence the gateway route a datagram - traverses. The ULP can pass a list of internet addresses, called - a source route, along with a datagram. Each address on the list - is an intermediate destination. The source IP module uses its - normal routing mechanism to transmit the datagram to the first - address on the list. At that address, the first entry is removed - from the list, and the next address becomes the datagram's desti- - nation. When the last entry of the list is removed, the normal - destination address field becomes the final destination. - - For testing or diagnostic purposes, a ULP can acquire a - datagram's gateway route by using a mechanism called return rout- - ing. The sending ULP indicates that a record of the route is to - be accumulated in transit. Then, as gateway IP module on the - - - - System Development Corporation - 1 June 1981 -21- IEN 186 - - - gateway route relays the datagram, it adds its address to the - return list. The destination ULP receives the original datagram - along with the return list containing the gateway route. - - 6.1.2 Fragmentation and Reassembly - - IP contains a fragmentation mechanism to break a large datagram - into smaller datagrams. This is a more general solution for - overcoming differences between subnetwork capacity than legislat- - ing a restrictive datagram size small enough for every subnetwork - on the internet. This mechanism can be overriden using the - "don't fragment" option to prevent fragmentation. IP also con- - tains a reassembly mechanism which reverses the fragmentation to - enable delivery of intact data portions. - - When an IP module encounters a datagram that is too big to be - transmitted through a subnetwork, it applies its fragmentation - mechanism. First, the module divides the data portion of the - datagram into two or more pieces. The data must be broken on 8- - octet boundaries. For each piece, it then builds a datagram - header containing the identification, addressing, and options - information needed. Fragmentation data is adjusted in the new - headers to correspond to the data's relative position within the - original datagram. The result is a set of small datagrams, - called fragments, each carrying a portion of the data from the - original large datagram. Section 6.3.7.8 defines the fragmenta- - tion algorithm. - - Each fragment is handled independently until the destination IP - module is reached. The fragments may follow different gateway - routes as internet topology and traffic conditions change. They - are also subject to further fragmentation if 'smaller-packet' - subnetworks are subsequently traversed. - - Every IP module must be able to forward a datagram of 68 octets - without further fragmentation. This size allows for a header - length of up to 60 octets and the minimum data length of 8 - octets. - - To reassemble fragments into the original datagram, an IP module - combines all those received having the same value for the iden- - tification, source address, destination address, and protocol. - IP allocates reassembly resources when a "first-to-arrive" frag- - ment is recognized. Based on the fragmentation data in the - header, the fragment is placed in a reassembly area relative to - its position in the original datagram. When all the fragments - have been received, the IP module passes the data in its original - form to the destination ULP. - - All hosts must be prepared to accept datagrams of up to 576 - octets (whether they arrive whole or in fragments). It is recom- - mended that hosts only send datagrams larger than 576 octets if - - - - System Development Corporation - 1 June 1981 -22- IEN 186 - - - they have assurance that the destination is prepared to accept - the larger datagrams. The number 576 is selected to allow a rea- - sonable amount of data to be transmitted in addition to the - required header information. For example, this size allows a - data block of 512 octets plus 64 header octets to fit in a - datagram. The maximum internet header size is 60 octets, and a - typical internet header is 20 octets, allowing a margin for - headers of upper layer protocols. - - Because the subnetwork may be unreliable, some fragments making - up a complete datagram can be lost. IP uses the "time-to-live" - data (explained in section 6.1.4 below) to set a timer on the - reassembly process. If the timer expires before all the frag- - ments have been collected, IP discards the partially reassembled - datagram. - - Only the destination IP module should perform reassembly. This - recommendation is intended to reduce gateway overhead and minim- - ize the chance of deadlock[3]. However, reassembly by private - agreement between gateways is transparent to the rest of the - internet and is allowed. - - A ULP can prevent its data from being broken into smaller pieces - during transmission. IP provides an override mechanism to prohi- - bit fragmentation called "Don't Fragment." Any internet datagram - marked "don't fragment" cannot be fragmented by an IP module - along the gateway route under any circumstances. If an IP module - cannot deliver such a datagram to its destination without frag- - menting it, the module discards the datagram and returns an error - to the source IP. (Please note that fragmentation, transmission, - and reassembly at the subnetwork layer is transparent to IP and - can be used at any time.) - - 6.1.3 Checksum - - IP assumes the subnetwork layer to be unreliable regardless of - the actual subnetwork protocol present. So, IP provides a check- - sum mechanism supporting the delivery service to protect the IP - header from transmission errors. The data portion is not covered - by the IP checksum. - - An IP module recomputes the checksum each time the IP header is - changed. Changes occur during time-to-live reductions, option - updates (both explained below), and fragmentation. The checksum - is currently a simple one's complement algorithm, and experimen- - tal evidence indicates its adequacy. However, the algorithm is - provisional and may be replaced by a CRC procedure, depending on - future experience. - - - - System Development Corporation - 1 June 1981 -23- IEN 186 - - - 6.1.4 Time To Live - - As mentioned in the routing discussion above, a datagram's - transmission path is subject to changes in internet topology and - traffic conditions. Inadvertently, a datagram might be routed on - a circuitous path to arrive at its destination after a consider- - able delay. Or, a datagram could loop through the same IP - modules without making real progress towards its destination. - Such "old datagrams" reduce internet bandwidth and waste process- - ing time. - - To prevent these problems, IP provides a mechanism to limit the - lifetime of a datagram, called time-to-live. Along with the - other sending parameters, a ULP specifies a maximum datagram - lifetime in second units. Each IP module on the gateway route - decreases the time-to-live value carried in the IP header. If an - IP module receives an expired datagram, it discards the datagram. - The lifetime limit is in effect until the datagram's data is - delivered to the destination ULP. That is, if a datagram is - fragmented during transmission, it can still expire during the - reassembly process. Section 6.3.4.3 defines the reassembly algo- - rithm use of the time-to-live data. - - 6.1.5 Type of Service - - In support of the virtual network service, the type of service - mechanism allows upper layer protocols to select the transmission - quality. IP passes the type of service (TOS) command set for - service quality to the SNP where it is mapped into subnetwork- - specific transmission parameters. Not every subnetwork supports - all transmission services, but each SNP on the delivery path - should make a best effort to match the available subnet services - to the desired service quality. - - The TOS command set includes precedence level, reliability level, - speed level, resource trade-off, and transmission mode. Several - subnetworks offer a precedence service where treating high pre- - cedence traffic is processed before other traffic. A few net- - works offer a stream service, whereby one can achieve low delay - and constant datagram interarrival time by reserving network - resources. Another choice involves a low-delay vs. high relia- - bility trade-off. Usually subnetworks invoke more complex and - delay producing mechanisms as the need for reliability increases. - - 6.1.6 Data Options - - Motivated by the virtual network service, IP provides a mechan- - ism, called options, to carry certain identification and timing - data in a standard manner through the internet. The use of this - mechanism by the ULPs is optional, as the name implies, but all - options must be supported by each IP implementation. No perfor- - mance penalty is exacted from other services because the option - - - - System Development Corporation - 1 June 1981 -24- IEN 186 - - - data requires no additional processing by IP; it is simply passed - on to the receiving ULP. - - The data options carry three kinds of information: security, - stream identification, and timing. The security data is used by - DOD hosts needing to transmit security and TCC (closed user - groups) parameters through the internet in a standard manner. - The stream identification option provides a way for a SATNET - stream identifier to be carried both through stream-oriented sub- - networks and subnets not supporting the stream concept. The tim- - ing data, useful for testing and diagnostics, includes internet - timestamps and satellite timestamps. - - - 6.1.7 Error Report Datagrams - - The error reporting service motivates a mechanism to generate and - process error information. The error mechanism uses the datagram - delivery service to transfer the errors between IP modules. - - An IP module encounters errors from three sources: ULPs, SNPs, - and other IP modules. Errors from the first two appear across - IP's interfaces and are handled on the same medium. But errors - from IP modules are found in or caused by datagrams and are - reported to the source IP module in an "error report datagram." - - An error report datagram is composed of a minimal IP header and a - data portion to carry error information. An error report - datagram is distinguished from normal datagrams by the protocol - field being equal to the Gateway-Gateway Protocol's identif- - ier[13]. The error information includes a general error type, an - error code, related error information, and portions of the dis- - carded or erroneous datagram causing the report. The errors - reported include: - - a. Destination Unreachable - A gateway or host IP cannot - deliver a datagram. - - - subnet unreachable - A gateway IP cannot determine a - route to the destination subnetwork. - - - host unreachable - A gateway IP cannot determine a - route to the destination host. - - - protocol unreachable - The IP module at the destination - address cannot deliver to the unknown or inactive pro- - tocol. - - - port unreachable - The IP module at the destination - address cannot deliver to the unknown or inactive port. - - - - System Development Corporation - 1 June 1981 -25- IEN 186 - - - - fragmentation needed but DF set - A host or gateway - cannot deliver a datagram because fragmentation is - required but is prohibited by the don't fragment flag. - - b. Time Exceeded - A datagram has exceeded its allowed life- - time. - - - in transit - A gateway or host finds the time to live - field in the datagram header is zero. The datagram is - discarded. - - - during reassembly - The destination host cannot com- - plete reassembly within the time-to-live time limit due - to missing fragments. - - c. Parameter Problem - A gateway or host cannot deliver the - datagram because of some problem with the header parameters. - - - Problem with an option - An option is either not sup- - ported or incorrect. The third octet of the data por- - tion contains the option type of the problem option. - - d. Source Quench - A gateway has discarded a datagram due to - congestion. This report request the source host to cut back - the rate at which it is sending traffic to that destination. - - e. Redirect - A gateway has received a datagram from a host on - an attached subnet, but must forward it to another gateway - on the same subnet. This message requests the source IP to - send subsequent datagrams with the same destination to the - other gateway. The address of the other gateway appears in - octets 4-7. - - f. Echo - A host or gateway may use this report to establish - connectivity. - - g. Type 0 : Echo Reply - A host or gateway responds to a previ- - ous Echo. - - - - System Development Corporation - 1 June 1981 -26- IEN 186 - - - 6.2 Internet Protocol Header Format - - - A summary of the contents of the IP header follows: - - - 0 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - |Version| IHL |Type of Service| Total Length | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Identification |Flags| Fragment Offset | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Time to Live | Protocol | Header Checksum | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Source Address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Destination Address | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Options | Padding | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - - IP Header Format - - - Note that each tick mark represents one bit position. Each field - description below includes its name, an abbreviation, and the - field size. Where applicable, the units, the legal range of - values, and a default value appears. - - - 6.2.1 Version - - abbrev: VER field size: 4 bits - - The Version field indicates the format of the IP header. This - document describes version 4. - - - 6.2.2 Internet Header Length - - abbrev: IHL field size: 4 bits - units : 4-octets range : 5 - 15 default : 5 - - Internet Header Length is the length of the IP header in 32-bit - words, and thus points to the beginning of the data. Note that - the minimum value for a correct header is 5. - - - - System Development Corporation - 1 June 1981 -27- IEN 186 - - - 6.2.3 Type of Service - - abbrev: TOS field size: 8 bits - - The Type of Service field contains the IP parameters describing - the quality of service desired for this datagram. - - - 0 1 2 3 4 5 6 7 - +-----+-----+-----+-----+-----+-----+-----+-----+ - | | | | | | - | PRECEDENCE | STRM|RELIABILITY| S/R |SPEED| - | | | | | | - +-----+-----+-----+-----+-----+-----+-----+-----+ - - Bits 0-2: Precedence. - Bit 3: Stream or Datagram. - Bits 4-5: Reliability. - Bit 6: Speed over Reliability. - Bits 7: Speed. - - PRECEDENCE STRM RELIABILITY S/R SPEED - 111-Flash Override 1-STREAM 11-highest 1-speed 1-high - 110-Flash 0-DTGRM 10-higher 0-rlblt 0-low - 10X-Immediate 01-lower - 01X-Priority 00-lowest - 00X-Routine - - - - - 6.2.4 Total Length - - abbrev: TL field size: 16 bits - units: octets range : 20 - 65,535 default: 20 - - Total Length is the length of the datagram, measured in octets, - including header portion and the data portion of the datagram. - - - 6.2.5 Identification - - abbrev: ID field size : 16 bits - - A identifying value used to associate fragments of a datagram. - This value is usually supplied by the sending ULP as an interface - parameter. If not, IP generates datagram identifications which - are unique for each sending ULP. - - - - System Development Corporation - 1 June 1981 -28- IEN 186 - - - 6.2.6 Flags - - abbrev: - field size : 3 bits - - - This field contains the control flags "don't fragment" which - prohibits IP fragmentation and "more fragments" which helps to - identify fragments. - - 0 1 2 - +---+---+---+ - | | D | M | - | 0 | F | F | - +---+---+---+ - - Bit 0: reserved, must be zero - Bit 1: Don't Fragment This Datagram (DF). - Bit 2: More Fragments Flag (MF). - - 6.2.7 Fragment Offset - - abbrev: FO field size : 13 bits - units : 8-octet groups range : 0 - 8191 default : 0 - - This field indicates the positions of this fragment's data rela- - tive to the beginning of the data carried in the original - datagram. Both a complete datagram and a first fragment has this - field set to zero. Section 6.1.2 describes the fragmentation - mechanism. - - - 6.2.8 Time to Live - - abbrev : TTL field size : 8 bits - units : seconds range : 0 - 255(=4.25 mins) default : 15 - - This field indicates the maximum time the datagram is allowed to - remain in the internet. If the value of this field drops to - zero, the datagram should be destroyed. Section 6.1.4 describes - the time-to-live mechanism. - - - 6.2.9 Protocol - - abbrev : PROT field size : 8 bits - - This field indicates which ULP is to receive the data portion of - the datagram. The numbers assigned to common ULPs are specified - in [13]. - - - - System Development Corporation - 1 June 1981 -29- IEN 186 - - - 6.2.10 Header Checksum - - abbrev : - field size : 16 bits - - This field contains the checksum covering the IP header. The - checksum mechanism is described in section 6.1.3. - - - 6.2.11 Source Address - - abbrev : source field size : 32 bits - - This field contains the internet address of the datagram's source - host. The first octet is the Source Network, and the following - three octets are the Source Subnetwork Address. Internet - addressing is discussed in section 6.1.1. - - - 6.2.12 Destination Address - - abbrev : dest field size : 32 bits - - This field contains the internet address of the datagram's desti- - nation host. The first octet is the Destination Network, and the - following three octets are the Destination Subnetwork Address. - Internet addressing is discussed in section 6.1.1. - - - 6.2.13 Padding - - abbrev : - field size : variable (8 to 24 bits) - - The IP header padding is used to ensure that the IP header ends - on a 32-bit boundary. The padding field is set to zero. - - - 6.2.14 Options - - abbrev : - field size : variable - - The option field is variable in length depending on the number - and type of options associated with the datagram. The options - mechanisms are discussed in sections 6.1.1 and 6.1.6. - - Options may have two possible formats: - - a. a single octet of option-type, or - - b. a variable length string containing: - - 1. an option-type octet, - - - - System Development Corporation - 1 June 1981 -30- IEN 186 - - - 2. an option-length octet - counting the option-type octet - and option-length octet as well as the option-data - octets, and - - 3. the actual option-data octets. - - - The option-type octet is viewed as having 3 fields: - - 0 1 2 3 4 5 6 7 - +--+--+--+--+--+--+--+--+ - |CF|CLASS| NUMBER | - +--+--+--+--+--+--+--+--+ - - bit 0 - copy flag, if set the option is copied into - every fragment if fragmentation occurs. - bits 1-2 - option class - bits 3-7 - option number - - The option classes are: - - 0 = control - 1 = internet error - 2 = debugging and measurement - 3 = reserved for future use - - - The following internet options are defined: - - COPY CLASS NUMBER LENGTH DESCRIPTION - ---- ----- ------ ------ ----------- - 0 0 0 - End of Option list: This option occupies - only 1 octet; it has no length octet. - 0 0 1 - No Operation: This option occupies only 1 - octet; it has no length octet. - 1 0 2 4 Security: Used to carry Security, and user - group (TCC) information compatible with DOD - requirements. - 1 0 3 var. Source Routing: Used to route the datagram - based on information supplied by the source. - 0 0 7 var. Return Route: Used to record the route a - datagram takes. - 1 0 8 4 Stream ID: Used to carry the stream - identifier. - 0 2 4 6 Internet Timestamp. - 0 2 5 6 Satellite Timestamp. - - - - System Development Corporation - 1 June 1981 -31- IEN 186 - - - 6.2.15 Specific Option Definitions - - Each option format is defined below. "Option type" indicates the - value of the option-type octet, and "length" indicates the value - of the length-octet if appropriate. - - 6.2.15.1 End of Option List - - option type : 0 option length : N/A - - This one octet option marks the end of the option list when it - does not coincide with the four-octet boundary indicated by the - IP header length. This field is used at the end of all options, - not the end of each option, and need only be used if the end of - the options would not otherwise coincide with the end of the IP - header. This option may be introduced or deleted upon fragmenta- - tion as needed. - - - 6.2.15.2 No Operation - - option type : 1 option length : N/A - - This option may be used between options, for example, to align - the beginning of a subsequent option on a 32 bit boundary. This - option may be introduced or deleted upon fragmentation as needed. - - - 6.2.15.3 Security - - option type : 130 option length : 4 - - This option provides a way for hosts to send security and TCC - (closed user groups) parameters through subnetworks in a standard - manner. The format for this option is as follows: - - - - System Development Corporation - 1 June 1981 -32- IEN 186 - - - 0 1 2 3 - 01234567 89012345 67890123 45678901 - +--------+--------+--------+--------+ - |Opt.Type| Length |xxxxxxSS| TCC | - +--------+--------+--------+--------+ - - bits 0-7 : Option Type - described above - bits 8-15 : Length - described above - bits 16-21 : Not Used - must be zero - bits 22-23 : SS - security, specifies security level: - 11-top secret - 10-secret - 01-confidential - 00-unclassified - - bits 24-31 : TCC - transmission control code, provides - a means to compartmentalize traffic - and define controlled communities - of interest among subscribers. - - (This format is subject to change according to DOD requirements.) - - 6.2.15.4 Source Route - - option type : 131 option length : variable - - The source route option provides a means for the source ULP of a - datagram to supply routing information to be used by IP modules - along the gateway route. - - The option begins with the option type code. The second octet is - the option length which includes the option type octet, the - length octet, and the source route list. A source route list is - composed of one or more internet addresses. Each internet - address is 4 octets long. When the source route list is empty, - the option is removed from the datagram and the remaining routing - is based on the destination address field. The source route - option is described in section 6.1.1. - - - 6.2.15.5 Return Route - - option type : 7 option length : variable - - The return route option provides a way to record a datagram's - route. - - The option begins with the option type code. The second octet is - the option length which includes the option type code, the length - octet, and the return route list. A return route list is com- - posed of a series of internet addresses. The return route option - is described in section 6.1.1. - - - - System Development Corporation - 1 June 1981 -33- IEN 186 - - - 6.2.15.6 Stream Identifier - - option type : 136 option length : 4 - - This option provides a way for 16-bit stream identifier to be - carried through the internet for use by subnetworks supporting - the stream concept such as the SATNET. - - - - 6.2.15.7 Internet Timestamp - - option type : 68 option length : 10 - - The internet address of the "stamper" is followed by a 32-bit - time measured in milliseconds. Time zero is defined as January - 1, 1980, GMT modulo 2^32 (=49.71 days). - - - - 6.2.15.8 Satellite Timestamp - - option type : 69 option length : 10 - - The internet address of the "stamper" is followed by a 32-bit - time measured in milliseconds. Time zero is defined as January - 1, 1980, GMT modulo 2^32 (=49.71 days). - - - 6.2.16 Error Report Datagrams - - An error report datagram informs source IPs of erroneous or dis- - carded datagrams. Such a datagram is identified by its protocol - field being equal to the GGP identifier[13]. An error report - datagram is made up of a minimal IP header and a data portion - carrying error information. The first octet of the data portion - contains the error type octet. The next two octets hold addi- - tional error information which depends on the error type. The - fourth octet is not used. Beginning with the fifth octet, the - erroneous datagram's header and first 64 data octets may appear. - - - - System Development Corporation - 1 June 1981 -34- IEN 186 - - - - 0 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Type | Code | | Not Used | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | | - \ Header + 64 data octets from erroneous or discarded datagram \ - \ \ - | | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - - Error Datagram Data Portion - - - The error types and related error information are defined below: - - Type Code Description - ---- ---- ---------- - 3 0 Destination Unreachable due to unreachable subnetwork. - 3 1 Dest. Unreachable due to unreachable host. - 3 2 Dest. Unreachable due to unreachable or unknown - protocol. - 3 3 Dest. Unreachable due to unreachable or inactive port. - 3 5 Dest. Unreachable due to fragmentation needed but - prohibited by don't fragment flag. - 11 0 Time Exceeded in transit. - 11 1 Time Exceeded during reassembly. - 12 0 Parameter Problem due to incorrect or unsupported - option. - 4 - Source Quench due to congestion and discarded datagram - in a gateway. - 5 - Redirect due to more direct path via alternate gateway. - Octets 4-7 carry the address of the alternate - gateway. The redirected datagram follows at octet 8. - 8 - Echo used to establish internet topology. No - erroneous datagram carried in data portion. - 0 - Echo Reply responds to previous echo. No erroneous - datagram carried in data portion. - - - - System Development Corporation - 1 June 1981 -35- IEN 186 - - - 6.3 Extended State Machine Representation - - The IP protocol mechanism is defined by a state machine represen- - tation made up of a set of states, a set of transitions between - states, and a set of input events causing the state transitions. - In addition, a state machine has an initial state whose values - are assumed at state machine instantiation. - - 6.3.1 State Machine Identification - - Each datagram is an independent unit. Therefore, one state - machine instance exists for each datagram. Each datagram is - uniquely named by the four values: - - o+ source address - - o+ destination address - - o+ protocol - - o+ identification - - 6.3.2 State Machine Diagram - - The following diagram depicts a simplified IP state machine. - - - - System Development Corporation - 1 June 1981 -36- IEN 186 - - - - - send or receive a complete datagram - __ - | | - | v - * * * * * * - * * - * INACTIVE * - * * - * * * * * * - | ^ - receive | |receive complete datagram, - fragment| | or final fragment, - | | or reassembly timeout - v | - * * * * * * - * * - * REASSEMBLING * - * * - * * * * * * - | ^ - |__| - receive - fragments - - - - - - 6.3.3 State Vector - - A state vector consists of the following elements : - - o+ STATE NAME = (inactive, reassembling) - - o+ REASSEMBLY RESOURCES = control information and storage - needed to reassemble fragments into the original datagram, - including: - - - reassembly map : a representation of each 8-octet unit - of data and its relative location within the original - datagram. - - - timer : value of the reassembly timer in unit seconds - ranging from 0 to 255. - - - total data length : size of the data carried in - datagram being reassembled. - - - header : storage area for the header portion of the - datagram being reassembled. - - - - System Development Corporation - 1 June 1981 -37- IEN 186 - - - - data : storage area for the data portion of the - datagram being reassembled. - A state machine's initial state is inactive with unused reassem- - bly resources. - - - 6.3.4 State Machine Data Structures - - The IP state machine references certain data areas corresponding - to the state vector, and each interaction primitive : SEND, - DELIVER, SNP_SEND, and SNP_DELIVER. For clarity in the events - and actions section, data structures are declared in Ada for - these data areas. However, a data structure may be partially - typed or completely untyped where specific formats or data types - are implementation dependent. - - 6.3.4.1 state_vector - - The definition of an IP state vector appears section 6.3.1 above. - A state_vector structure is declared as: - - type state_vector_type is - record - state_name : (INACTIVE, REASSEMBLING); - reassembly_map - timer - total_data_length - header - data - end record; - - - 6.3.4.2 from_ULP - - The from_ULP structure holds the interface parameters and data - associated with the SEND primitive, as specified in section - 3.1.1. The from_ULP structure is declared as: - - type from_ULP_type is - record - source_addr - destination_addr - protocol - type_of_service - identifier - time_to_live - dont_fragment - length - data - options - end record; - - - - System Development Corporation - 1 June 1981 -38- IEN 186 - - - 6.3.4.3 to_ULP - - The to_ULP structure holds interface parameters and data associ- - ated with the DELIVER primitive, as specified in section 3.1.2. - The to_ULP structure is declared as: - - type to_ULP_type is - record - source_addr - destination_addr - protocol - type_of_service - length - data - options - error - end record; - - - 6.3.4.4 from_SNP - - The from_SNP structure holds the interface parameters and - datagram associated with the SNP_DELIVER primitive, as specified - in section 5.2.2. The from_SNP structure is declared as: - - type from_SNP_type is - record - local_destination_addr - dtgm: datagram_type; - error - end record; - - The dtgm element is itself a structure as specified below. - - 6.3.4.5 to_SNP - - The to_SNP structure holds the data and parameters associated - with the SNP_SEND primitive specified in section 5.2.1. The - to_SNP structure is declared as: - - type to_SNP_type is - record - local_destination_addr - type_of_service_indicators - length - dtgm: datagram_type; - end record; - - The dtgm element is itself a structure as specified below. - specified below. - - - - System Development Corporation - 1 June 1981 -39- IEN 186 - - - 6.3.4.6 dtgm - - A dtgm structure holds a datagram made up of a header portion and - a data portion as specified in section 6.2. A dtgm structure is - declared as: - - type datagram_type is - record - version : HALF_OCTET; - header_length : HALF_OCTET; - type_of_service : OCTET; - total_length : TWO_OCTETS; - identification : TWO_OCTETS; - dont_frag_flag : BOOLEAN; - more_frag_flag : BOOLEAN; - fragment_offset : ONE_N_FIVE_EIGHTHS_OCTETS; - time_to_live : OCTET; - protocol : OCTET; - header_checksum : TWO_OCTETS; - source_addr : FOUR_OCTETS; - destination_addr : FOUR_OCTETS; - options : option_type; - data : array(1..DATA_LENGTH) of INTEGER; - end record; - - subtype HALF_OCTET is INTEGER range 0..15; - subtype OCTET is INTEGER range 0..255; - subtype ONE_N_FIVE_EIGHTHS_OCTETS is INTEGER range 0..8191; - subtype TWO_OCTETS is INTEGER range 0..65535; - subtype FOUR_OCTETS is INTEGER range 0..4294967296; - - - 6.3.5 Event List - - The following list defines the set of possible events in an IP - state machine: - - a. SEND from ULP - A ULP passes interface parameters and data - to IP for delivery across the internet. - - b. SNP_DELIVER from SNP - SNP passes to IP a datagram received - from subnetwork protocol. - - c. TIMEOUT - The timing mechanism provided by the execution - environment indicates a previously specified time interval - has elapsed. - - - 6.3.6 State Machine Events and Actions - - This section is organized in three parts. The first part con- - tains a decision table representation of state machine events and - - - - System Development Corporation - 1 June 1981 -40- IEN 186 - - - actions. The decision tables are organized by state; each table - corresponds to one event. - - The second part specifies the decision functions appearing at the - top of each column of a decision table. These functions examine - attributes of the event and the state vector to return a set of - decision results. The results become the elements of each - column. A "--" element represents a "don't care" condition where - a decision result does not determine the action procedure chosen. - - The third section specifies action procedures appearing at the - right of every row. Each row of the decision table combines the - decision results to determine appropriate event processing. - These procedures specify event processing algorithms in detail. - - 6.3.6.1 Events and Actions Decision Tables - - STATE = INACTIVE - ================ - - EVENT = SEND from ULP - - - ============================= - | ULP |where | need | can | - |params| to | to | frag | - |valid | | frag | | - ============================= - | NO | -- | -- | -- |error to ULP(PARAM_PROBLEM) - --------------------------------------------------------- - | YES | ULP | -- | -- |local delivery - --------------------------------------------------------- - | YES | IP | -- | -- | **illegal - --------------------------------------------------------- - | YES |REMOTE| NO | -- |build&send - --------------------------------------------------------- - | YES |REMOTE| YES | NO |error to ULP(CAN'T FRAGMENT) - --------------------------------------------------------- - | YES |REMOTE| YES | YES |fragment&send - --------------------------------------------------------- - - Comments: - A ULP passes data to IP for internet delivery. IP validates the - interface parameters, determines the destination, and dispatches - the ULP data to its destination. - - - - System Development Corporation - 1 June 1981 -41- IEN 186 - - - STATE = INACTIVE - ================ - - EVENT = DELIVER from SNP - - ==================================== - |check-| SNP | TTL |where | a | - | sum |params|valid | to | frag | - |valid |valid | | | | - ==================================== - | NO | -- | -- | -- | -- |discard - ------------------------------------------------------------------ - | YES | NO | -- | -- | -- |error to source(PARAM_PROBLEM) - ------------------------------------------------------------------ - | YES | YES | NO | -- | -- |error to source(EXPIRED_TTL) - ------------------------------------------------------------------ - | YES | YES | YES | ULP | NO |remote delivery - ------------------------------------------------------------------ - | YES | YES | YES | ULP | YES |reassemble;STATE:=REASSEMBLING - ------------------------------------------------------------------ - | YES | YES | YES | IP | NO |analyze - ------------------------------------------------------------------ - | YES | YES | YES | IP | YES |reassemble;STATE:=REASSEMBLING - ------------------------------------------------------------------ - | YES | YES | YES |REMOTE| -- |error to source(HOST_UNREACH) - ------------------------------------------------------------------ - - Comments: - The SNP has delivered datagram from another IP. IP validates the - datagram header, and either delivers the data from a complete - datagram to its destination within the host or begins reassembly - for a datagram fragment. - - - - System Development Corporation - 1 June 1981 -42- IEN 186 - - - - STATE = REASSEMBLING - ==================== - - EVENT = DELIVER from SNP - - =========================================== - |check-| SNP | TTL |where | a |reass.| - | sum |params|valid | to | frag | done | - |valid |valid | | | | | - =========================================== - | NO | -- | -- | -- | -- | -- |discard - -------------------------------------------------------------------------- - | YES | NO | -- | -- | -- | -- |error to source(PARAM_PROBLEM) - -------------------------------------------------------------------------- - | YES | YES | NO | -- | -- | -- |error to source(EXPIRED_TTL) - -------------------------------------------------------------------------- - | YES | YES | YES | ULP | NO | -- |remote delivery;state:=INACTIVE - -------------------------------------------------------------------------- - | YES | YES | YES | ULP | YES | NO |reassemble - -------------------------------------------------------------------------- - | YES | YES | YES | ULP | YES | YES |reass delivery;state:=INACTIVE - -------------------------------------------------------------------------- - | YES | YES | YES | IP | NO | -- |analyze;state:=INACTIVE - -------------------------------------------------------------------------- - | YES | YES | YES | IP | YES | NO |reassemble - -------------------------------------------------------------------------- - | YES | YES | YES | IP | YES | YES |analyze;state:=INACTIVE - -------------------------------------------------------------------------- - | YES | YES | YES |REMOTE| -- | -- |error to source(HOST_UNREACH) - -------------------------------------------------------------------------- - - Comment: - The SNP has delivered a datagram associated to an earlier received datagram - fragment. IP validates the header and either continues the reassembly - process with the datagram fragment or delivers the data from the completed - datagram to its destination within the host. - - - - - EVENT = TIMEOUT - - reassembly timeout; state:=INACTIVE - ----------------------------------- - - Comment: - The time-to-live period of the datagram being reassembled has elapsed. - The incomplete datagram is discarded; the source IP is informed. - - - - System Development Corporation - 1 June 1981 -43- IEN 186 - - - 6.3.6.2 Decision Functions - - The following functions examine information contained in inter- - face parameters, interface data, and the state vector to make - decisions. These decisions can be thought of as further refine- - ments of the event and/or state. The functions return values - represent the possible decisions. - - - 6.3.6.2.1 checksum valid - - The checksum_valid function examines an incoming datagram's - header to determine whether it is free from transmission errors. - - The data effects of this function are: - - - Data examined only: - - from_SNP.dtgm.version from_SNP.dtgm.fragment_offset - from_SNP.dtgm.header_length from_SNP.dtgm.time_to_live - from_SNP.dtgm.type_of_service from_SNP.dtgm.protocol - from_SNP.dtgm.total_length from_SNP.dtgm.source_addr - from_SNP.dtgm.identification from_SNP.dtgm.destination_addr - from_SNP.dtgm.dont_frag_flag from_SNP.dtgm.options - from_SNP.dtgm.more_frag_flag from_SNP.dtgm.padding - - - Return values: - - NO -- checksum did not check indicating header fields - contain errors - YES -- checksum was consistent - - The algorithm: - - --The checksum algorithm is the 16-bit one's complement - --of the one's complement sum of all 16-bit words in - --the IP header. For purposes of computing the checksum, - --the checksum field is set to zero. - - --implementation dependent action - - - - System Development Corporation - 1 June 1981 -44- IEN 186 - - - 6.3.6.2.2 ULP_params_valid - - The ULP_params_valid function examines the interface parameters - received from a ULP to see if all values are within legal ranges - and desired options are supported. - - The data effects of this function are: - - - Data examined only: - - from_ULP.time_to_live - from_ULP.options - - - - Return values: - - NO - some value is illegal or a desired option is not supported. - - YES - examine values are within legal ranges and desired - options can be supported. - The algorithm: - - if ( - --The time-to-live value must be greater than zero to - --allow IP to transmit it at least once. - (from_ULP.time_to_live < 0 ) - - or --The options requested should be checked for consistency. - --implementation dependent action - - or --Check other implementation dependent values. - ) - - then return NO - - else return YES; - - end if; - - - - System Development Corporation - 1 June 1981 -45- IEN 186 - - - 6.3.6.2.3 SNP_params_valid - - The SNP_params_valid function examines the interface parameters - and the datagram received from the local subnetwork protocol to - see if all values are within legal ranges and no errors have - occured. - - The data effects of this function are: - - - Data examined only: - - from_SNP.dtgm.version from_SNP.dtgm.source_addr - from_SNP.dtgm.header_length from_SNP.dtgm.destination_addr - from_SNP.dtgm.total_length from_SNP.dtgm.options - from_SNP.dtgm.protocol other information/errors from SNP - - - Return values: - - NO - some value or values are illegal or an error has occured - - YES - examined values are within legal ranges and no - errors have occured - - The algorithm: - - if ( --The current IP header version number is 4. - (from_SNP.dtgm.version /= 4) - - --The minimal IP header is 5 32-bit units in length. - or (from_SNP.dtgm.header_length < 5) - - --The smallest legal datagram contains only a header and is - --20 octets in length. - or (from_SNP.dtgm.total_length < 20) - - --The legal protocol identifiers are provided in [13]. - or (from_SNP.dtgm.protocol is not one of the acceptable identifiers) - - --The legal network address mappings are provided in [12]. - or (from_SNP.dtgm.source_addr is not an acceptable address) - - --The legal network address mappings are provided in [12]. - or (from_SNP.dtgm.destination_addr is not an acceptable address) - ) - - then return NO - - elseif (any implementation dependent values received from the - SNP are illegal or indicate error conditions) - then return NO - else return YES; --Otherwise, all values look good. - endif; - - - - System Development Corporation - 1 June 1981 -46- IEN 186 - - - endif; - - - - System Development Corporation - 1 June 1981 -47- IEN 186 - - - 6.3.6.2.4 where to - - The where_to function determines the destination of the incoming - datagram by examining the address fields and options fields of - the datagram header. - - The data effects of this function are: - - - Data examined only: - - from_SNP.dtgm.destination_addr - from_SNP.dtgm.protocol - from_SNP.dtgm.options - - - Return values: - - ULP - destination is an upper layer protocol at this location - IP - destination is this IP module - REMOTE - destination is some remote location - - The algorithm: - - --The source route influences the datagram's gateway route. - - if ((from_SNP.dtgm.options contains the source routing option) - then return REMOTE; - endif; - - --Examine the destination address field of the datagram header. - - if ((from_SNP.dtgm.destination_addr /= this site's address) - then - --It's destined for another site. - return REMOTE - else - --It's destined for this site. - if (from_SNP.dtgm.protocol = the IP identifier) - then return IP - else - --Verify existence of addressed ULP at this location. - if (from_SNP.dtgm.protocol exists here) - then return ULP - end if; - end if; - end if; - - - - System Development Corporation - 1 June 1981 -48- IEN 186 - - - 6.3.6.2.5 TTL valid - - The TTL_valid function examines the IP header time-to-live field - of an incoming datagram to determine whether the datagram has - exceeded its allowed lifetime. - - The data effects of this function are: - - - Data examined only: - - from_SNP.dtgm.time_to_live - - - Return values: - - NO - the datagram has expired - YES - the datagram has some life left in it - - The algorithm: - - --Decrement from_SNP.dtgm.time_to_live field by the maximum - --of either the amount of time elapsed since the last IP module - --handled this datagram (if known) or one second. - - if (( from_SNP.dtgm.time_to_live - - maximum(number of seconds elapsed since last IP, 1)) - <= 0 ) - then return NO - else return YES; - - - - System Development Corporation - 1 June 1981 -49- IEN 186 - - - 6.3.6.2.6 a frag - - The a_frag function examines certain fields in an incoming - datagram's header to determine whether the datagram is a fragment - of a larger datagram. - - The data effects of this algorithm are: - - - Data examined only: - - from_SNP.dtgm.fragment_offset - from_SNP.dtgm.more_frag_flag - - - Return values: - - NO - the datagram has not been fragmented - YES - the datagram is a part of a larger datagram - - The algorithm: - - if ((from_SNP.dtgm.fragment_offset = 0) --contains the beginning - and (from_SNP.dtgm.more_frag_flag = 0)) --and the end of the data - - then return NO --therefore it is an unfragmented datagram - - else return YES; --otherwise it contains only a portion of the data - --and is a fragment. - - - - System Development Corporation - 1 June 1981 -50- IEN 186 - - - 6.3.6.2.7 reassembly done - - The reassembly_done function examines the incoming datagram and - the reassembly resources to determine whether the final fragment - has arrived to complete the datagram being reassembled. - - The data effects of this function are: - Data examined only: - - state_vector.reassembly_map from_SNP.dtgm.more_frag_flag - state_vector.total_length from_SNP.dtgm.header_length - from_SNP.dtgm.fragment_offset from_SNP.dtgm.total_length - - - Return values: - - NO - more fragments are needed to complete reassembly - YES - this is the only fragment needed to complete reassembly - - The algorithm: - - --The total data length of the original datagram, as computed from - --"tail" fragment, must be known before completion is possible. - - if (state_vector.total_data_length = 0) - then - --Check incoming datagram for "tail." - - if (from_SNP.dtgm.more_frag_flag = FALSE) - then - --Compute total data length and see if data in - --this fragment fills out reassembly map. - - if (reassembly map from 0 to - (((from_SNP.dtgm.total_length - --total data - (from_SNP.dtgm.header_length*4)+7)/8) -- length - +7)/8 is set ) - then return YES; - end if; - else - --Reassembly cannot be complete if total data length unknown. - return NO; - end if; - - else --Total data length is already known. See if data - --in this fragment fills out reassembly map. - - if ( all reassembly map from 0 to - (state_vector.total_data_length+7)/8 is set) - then return YES; --final fragment - else return NO; --more to come - end if; - end if; - - - - System Development Corporation - 1 June 1981 -51- IEN 186 - - - 6.3.6.2.8 need to frag - - The need_to_frag function examines the interface parameters and - data from a ULP to determine whether the data can be transmitted - as a single datagram or must be transmitted as two or more - datagram fragments. - - The data effects of this function are: - - - Data examined only: - - from_ULP.length - from_ULP.options - - - Return values: - - NO - one datagram is small enough for the subnetwork - YES - datagram fragments are needed to carry the data - - The algorithm: - --Compute the datagram's length based on the length of data, - --the length of options, and the standard datagram header size. - - if (( from_ULP.length + (number of bytes of option data) + 20 ) - > maximum transmission unit of the local subnetwork ) - then return YES - else return NO; - end if; - - - 6.3.6.2.9 can frag - - The can_frag function examines the don't fragment flag of the - interface parameters allows fragmentation. - - The data effects of this function are: - - - Data examined only: - - from_ULP.dont_fragment - - - Return values: - - NO - don't fragment flag is set preventing fragmentation - YES -don't fragment flag is NOT set to allow fragmentation - - The algorithm: - - if (from_ULP.dont_fragment = TRUE) - then return NO - else return YES - end if; - - - - System Development Corporation - 1 June 1981 -52- IEN 186 - - - 6.3.6.3 Decision Table Actions - - 6.3.6.3.1 compute_checksum - - The compute_checksum procedure calculates a checksum value for a - datagram header so that transmission errors can be detected by a - destination IP. - - The data effects of this procedure are: - - - Data examined: - to_SNP.dtgm.version to_SNP.dtgm.fragment_offset - to_SNP.dtgm.header_length to_SNP.dtgm.time_to_live - to_SNP.dtgm.type_of_service to_SNP.dtgm.protocol - to_SNP.dtgm.total_length to_SNP.dtgm.source_addr - to_SNP.dtgm.identification to_SNP.dtgm.destination_addr - to_SNP.dtgm.dont_frag_flag to_SNP.dtgm.options - to_SNP.dtgm.more_frag_flag to_SNP.dtgm.padding - - - - Data modified: - - to_SNP.dtgm.checksum - - The procedure: - - --The checksum algorithm is the 16-bit one's complement of - --the one's complement sum of all 16-bit words - --in the IP header. For purposes of computing the checksum, - --the checksum field is set to zero. - - --implementation dependent action - - - - System Development Corporation - 1 June 1981 -53- IEN 186 - - - 6.3.6.3.2 reassemble - - The reassemble procedure reconstructs an original datagram from - datagram fragments. The data effects of this procedure are: - - - Data examined: - - from_SNP.dtgm - - - Data modified: - - state_vector.reassembly_map state_vector.header - state_vector.timer state_vector.data - state_vector.total_data_length - - The procedure: - --A local variable is introduced to make the computations more clear. - --data_in_frag equals the number of octets of data in received fragment. - - data_in_frag := (from_SNP.dtgm.total_length - -from_SNP.dtgm.header_length*4); - --Put data in its relative position in the data area of the state vector. - - state_vector.data[from_SNP.dtgm.fragment_offset*8.. - from_SNP.dtgm.fragment_offset*8+data_in_frag] := - from_SNP.dtgm.data[0..data_in_frag-1]; - - --Fill in the corresponding entries of the reassembly map representing - --each 8-octet unit of received data. - - for j in (from_SNP.dtgm.fragment_offset).. - (from_SNP.dtgm.fragment_offset + data_in_frag + 7)/8) loop - - state_vector.reassembly_map[j] := 1; - end loop; - - --Compute the total datagram length from the "tail-end" fragment. - - if (from_SNP.dtgm.more_frag_flag = FALSE) - then state_vector.header.total_data_length := - from_SNP.dtgm.fragment_offset*8 + data_in_frag; - end if; - - --Record the header of the "head-end" fragment. - - if (from_SNP.dtgm.fragment_offset = 0) - then state_vector.header := from_SNP.dtgm; - end if; - - --Reset the reassembly timer if its current value is less than the - --time-to-live field of the received datagram. - - - - System Development Corporation - 1 June 1981 -54- IEN 186 - - - state_vector.timer := maximum( - from_SNP.dtgm.time_to_live, state_vector.timer); - - - A reassembly algorithm may vary according to implementation con- - cerns, but each one must meet these requirements: - - 1. Every destination IP module must have the capacity to - receive a datagram 576 octets in length, either in one piece - or in fragments to be reassembled. - - 2. The header of the fragment with - from_SNP.dtgm.fragment_offset equal to zero (i.e. the - "head-end" fragment) becomes the header of the reassembling - datagram. - - 3. The total length of the reassembling datagram is calculated - from the fragment with from_SNP.dtgm.more_frag_flag equal to - zero (i.e. the "tail-end" fragment). - - 4. A reassembly timer is associated with each datagram being - reassembled. The current recommendation for the initial - timer setting is 15 seconds. Note that the choice of this - parameter value is related to the buffer capacity available - and the data rate of the subnetwork. That is, data rate mul- - tiplied by timer value equals reassembly capacity - (e.g.10Kb/s X 15secs = 150Kb). - - 5. As each fragment arrives, the reassembly timer is reset to - the maximum of state_vector.reassembly_resources.timer and - from_SNP.dtgm.time_to_live in the incoming fragment. - - 6. If the reassembly timer expires, the datagram being reassem- - bled is discarded. Also, an error datagram is returned to - the source IP to report the "time exceeded during reassem- - bly" error. - - - - System Development Corporation - 1 June 1981 -55- IEN 186 - - - 6.3.6.3.3 build&send - - The build&send procedure builds an outbound datagram in the - to_SNP structure from the interface parameters and data in - from_ULP and passes it to the SNP for transmission across the - subnet. - - The data effects of this procedure are: - - - Data examined: - - from_ULP.source_addr from_ULP.time_to_live - from_ULP.destination_addr from_ULP.dont_fragment - from_ULP.protocol from_ULP.options - from_ULP.type_of_service from_ULP.length - from_ULP.identifier from_ULP.data - - - Data modified: - - to_SNP.dtgm to_SNP.type_of_service_indicator - to_SNP.length to_SNP.local_destination_addr - - The algorithm: - - --Fill in each IP header field with information from from_ULP or - --standard values. - - to_SNP.dtgm.version := 4; --Current IP version is 4. - to_SNP.dtgm.type_of_service := from_ULP.type_of_service; - --If ID is not given by ULP, the IP must supply its own. - to_SNP.dtgm.identification := from_ULP.identifier; - - to_SNP.dtgm.dont_frag_flag := from_ULP.dont_fragment; - to_SNP.dtgm.more_frags_flag := 0; - to_SNP.dtgm.fragment_offset := 0; - to_SNP.dtgm.time_to_live := from_ULP.time_to_live; - to_SNP.dtgm.protocol := from_ULP.protocol; - to_SNP.dtgm.source_addr := from_ULP.source_address; - to_SNP.dtgm.destination_addr := from_ULP.destination_address; - to_SNP.dtgm.options := from_ULP.options; - to_SNP.dtgm.padding := (as needed to end the IP header - four octet boundary); - to_SNP.dtgm.header_length := 5 + (number of bytes of option data)/4; - to_SNP.dtgm.total_length := (to_SNP.dtgm.header_length)*4 - + (from_ULP.length); - - --Call compute_checksum to to compute and set the checksum. - - compute_checksum; - - --And, fill in the data portion of the datagram. - - - - System Development Corporation - 1 June 1981 -56- IEN 186 - - - to_SNP.dtgm.data[0..from_ULP.length -1] := from_ULP.data[0.. - from_ULP.length-1]; - --Set the type of service and length fields for the SNP. - - to_SNP.type_of_service_indicator := to_SNP.dtgm.type_of_service; - to_SNP.length := to_SNP.dtgm.total_length; - - --Call the route procedure to determine a local destination - --from the internet destination address supplied by the ULP. - - route; - - --Request the execution environment to pass the contents of to_SNP - --to the local subnetwork protocol for transmission. - - TRANSFER to_SNP to the SNP. - - NOTE: The format of the from_ULP elements is unspecified allowing an - implementor to assign data types for the interface parameters. - If those data types differ from the IP header types, - the assignment statements above become type conversions. - - - - System Development Corporation - 1 June 1981 -57- IEN 186 - - - 6.3.6.3.4 route - - The route procedure examines the destination address and options - fields of an outbound datagram in to_SNP to determine a local - destination address. - - The data effects of this procedure are: - - - Data examined: - - to_SNP.dtgm.destination_addr - to_SNP.dtgm.options - - - Data modified: - - to_SNP.local_destination_addr - - The procedure: - - --The source routing option influences the path of the datagram. - --If that option is present, use the top of the source route list - --as the destination; otherwise use the header's destination - --address field. - - if (source routing present in options) - then destination := (first address on source route list) - else destination := to_SNP.dtgm.destination_addr; - endif; - - if (the network id field of destination matches the network id - of the local subnet protocol ) - then - --Translate the REST field of destination into the subnetwork - --address of the destination on this subnet. - --implementation dependent action - else - --Find the appropriate gateway and its subnetwork address - --based on the network id field of the destination. - --implementation dependent action - end if; - - --Set the local destination interface parameter. - - to_SNP.local_destination_addr := (subnetwork address found above); - - - - System Development Corporation - 1 June 1981 -58- IEN 186 - - - 6.3.6.3.5 local delivery - - The local_delivery procedure moves the interface parameters and - data in the from_ULP structure to the to_ULP structure and - delivers it to an in-host ULP. - - The data effects of this procedure are: - - - Data examined: - - from_ULP.destination_addr from_ULP.length - from_ULP.source_addr from_ULP.data - from_ULP.protocol from_ULP.options - from_ULP.type_of_service - - - Data modified: - - to_ULP.source_addr to_ULP.length - to_ULP.destination_addr to_ULP.data - to_ULP.protocol to_ULP.options - to_ULP.type_of_service - - The procedure: - - --Move the interface parameters and data from the input - --structure, from_ULP, directly to the output structure, to_ULP, - --for delivery to a local ULP. - - from_ULP.destination_addr := to_ULP.destination_addr; - from_ULP.source_addr := to_ULP.source_addr; - from_ULP.protocol := to_ULP.protocol; - from_ULP.type_of_service := to_ULP.type_of_service; - from_ULP.length := to_ULP.length; - from_ULP.data := to_ULP.data; - from_ULP.options := to_ULP.options; - - --Request the execution environment to pass the contents of to_SNP - --to the local subnet protocol for transmission. - - TRANSFER to_ULP to to_ULP.protocol. - - - - System Development Corporation - 1 June 1981 -59- IEN 186 - - - 6.3.6.3.6 remote delivery - - The remote_delivery procedure decomposes a datagram arriving from - a remote IP into interface parameters and data and delivers them - to the destination ULP. - - The data effects of this procedure are: - - - Data examined: - - from_SNP.dtgm.source_addr from_SNP.dtgm.total_length - from_SNP.dtgm.destination_addr from_SNP.dtgm.header_length - from_SNP.dtgm.protocol from_SNP.dtgm.data - from_SNP.dtgm.type_of_service from_SNP.dtgm.options - - - Data modified: - - to_ULP.destination_addr to_ULP.length - to_ULP.source_addr to_ULP.data - to_ULP.protocol to_ULP.options - to_ULP.type_of_service - - The algorithm: - - to_ULP.destination_addr := from_SNP.dtgm.destination_addr; - to_ULP.source_addr := from_SNP.dtgm.source_addr; - to_ULP.protocol := from_SNP.dtgm.protocol; - to_ULP.type_of_service := from_SNP.dtgm.type_of_service; - to_ULP.length := from_SNP.dtgm.total_length - - from_SNP.dtgm.header_length*4; - to_ULP.data := from_SNP.dtgm.data; - to_ULP.options := from_SNP.dtgm.options; - - NOTE: The format of the to_ULP elements is unspecified allowing an - implementor to assign data types for the interface parameters. - If those data types differ from the IP header types, - the assignment statements above become type conversions. - - - - System Development Corporation - 1 June 1981 -60- IEN 186 - - - 6.3.6.3.7 reassembled delivery - - The reassembled_delivery procedure decomposes the datagram that - has been reassembled in the state vector into interface parame- - ters and data, then delivers them to a ULP. - - The data effects of this procedure are: - - - Data examined: - - state_vector.header.destination_addr - state_vector.header.source_addr - state_vector.header.protocol - state_vector.header.type_of_service - state_vector.header.header_length - state_vector.header.total_length - state_vector.header.options - state_vector.data - - - Data modified: - - to_ULP.destination_addr to_ULP.length - to_ULP.source_addr to_ULP.data - to_ULP.protocol to_ULP.options - to_ULP.type_of_service - - The procedure: - - to_ULP.destination_addr := state_vector.header.destination_addr; - to_ULP.source_addr := state_vector.header.source_addr; - to_ULP.protocol := state_vector.header.protocol; - to_ULP.type_of_service := state_vector.header.type_of_service; - to_ULP.length := state_vector.header.total_length; - - state_vector.header.header_length*4; - to_ULP.options := state_vector.header.options; - to_ULP.data := state_vector.data; - - - - System Development Corporation - 1 June 1981 -61- IEN 186 - - - 6.3.6.3.8 fragment&send - - The fragment&send procedure breaks data that is too big to be - transmitted through the subnetwork as a single datagram into - smaller pieces for transmission in several datagrams. - - The data effects of the procedure are: - - - Data examined only: - - from_ULP.source_addr from_ULP.length - from_ULP.destination_addr from_ULP.data - from_ULP.protocol from_ULP.options - from_ULP.type_of_service - - - Data modified: - - to_SNP.dtgm to_SNP.type_of_service_indicators - to_SNP.length to_SNP.local_destination_address - - Some "local variables" are used to make the procedure clearer: - - number_of_fragments -- number of small datagrams created from - user data - - data_per_fragment -- the number of octets in each small datagram - - number_frag_blocks -- the number of 8-octet blocks in each small - datagram - data_in_last_frag -- the number of octets in the last datagram - - The procedure: - - --Compute the fragmentation variables. - - --The amount of data per fragment equals the max datagram size less - --the length of the datagram header. - data_per_fragment := maximum subnet transmission unit - - (20 + number of bytes of option data); - - number_frag_blocks := data_per_fragment/8; - - number_of_fragments := (from_ULP.length + (data_per_fragment-1)) - / data_per_fragment; - - data_in_last_frag := from_ULP.length modulo data_per_fragment; - - --Create the first fragment and transmit it to the SNP. - - to_SNP.dtgm.version := 4; - to_SNP.dtgm.header_length := 5 + (number bytes of option data/4); - to_SNP.dtgm.total_length := to_SNP.dtgm.header_length - - - - System Development Corporation - 1 June 1981 -62- IEN 186 - - - + data_per_fragment; - to_SNP.dtgm.identifier := from_ULP.identification; - to_SNP.dtgm.dont_frag_flag := from_ULP.dont_fragment; - to_SNP.dtgm.more_frag_flag := TRUE; - to_SNP.dtgm.fragment_offset := 0; - to_SNP.dtgm.time_to_live := from_ULP.time_to_live; - to_SNP.dtgm.protocol := from_ULP.protocol; - to_SNP.dtgm.source_addr := from_ULP.source_addr; - to_SNP.dtgm.destination_addr := from_ULP.destination_addr; - to_SNP.dtgm.options := from_ULP.options; - to_SNP.dtgm.padding := (as needed to end header on 4-octet boundary); - - to_SNP.dtgm.data[0..data_per_fragment-1] := - from_ULP.data[0..data_per_fragment-1]; - - --Set the datagram's header checksum field. - compute_checksum; - - --Call route to determine the subnetwork address of the destination. - route; - - --Also set the length and type of service indicators. - to_SNP.length := to_SNP.dtgm.total_length; - to_SNP.type_of_service_indicators := to_SNP.dtgm.type_of_service; - - --Request the execution environment to pass the first fragment - --to the SNP. - TRANSFER to_SNP to the local subnetwork protocol. - - - --Format and transmit successive fragments. - - for j in 1..number_of_fragments-1 loop - - --The header fields remain the same as in the first fragment, - --EXCEPT for: - - if ("copy" flag present in any options) - - then --put ONLY "copy" options into options fields and - --adjust length fields accordingly. - - to_SNP.dtgm.options := (options with "copy" flag); - to_SNP.dtgm.header_length := 5 + - (number of copy options octets/4); - - else --only standard datagram header present - - to_SNP.dtgm.header_length := 5; - - endif; - - - - System Development Corporation - 1 June 1981 -63- IEN 186 - - - --Append data and set fragmentation fields. - - if (j /= number_of_fragments-1) - - then --middle fragment(s) - - to_SNP.dtgm.more_frag_flag := TRUE; - to_SNP.dtgm.fragment_offset := j*number_frag_blocks; - to_SNP.dtgm.total_length := to_SNP.dtgm.header_length - + data_per_fragment; - to_SNP.dtgm.data[0..data_per_fragment-1] := - from_ULP.data[j*data_per_fragment.. - (j*data_per_fragment + data_per_fragment-1)]; - - else --last fragment - - to_SNP.dtgm.more_frag_flag := FALSE; - to_SNP.dtgm.fragment_offset := j*number_frag_blocks; - to_SNP.dtgm.total_length := to_SNP.dtgm.header_length*4 - + data_in_last_frag; - to_SNP.dtgm.data[0..data_in_last_frag-1] := - from_ULP[j*data_per_fragment.. - (j*data_per_fragment+ data_in_last_frag-1)]; - end if; - - --Call checksum to set the datagram's header checksum field. - checksum; - - --Call route to determine the subnetwork address of the destination. - route; - - --Also set the length and type of service indicators. - to_SNP.length := to_SNP.dtgm.total_length; - to_SNP.type_of_service_indicators := to_SNP.dtgm.type_of_service; - - --Request the execution environment to pass this fragment - --to the SNP. - TRANSFER to_SNP to the local subnetwork protocol. - - end loop; - - - A fragmentation algorithm may vary according to implementation - concerns but every algorithm must meet the following require- - ments: - - 1. A datagram must not be fragmented if dtgm.dont_frag_flag is - true. - - 2. Data must be broken on 8-octet boundaries. - - - - System Development Corporation - 1 June 1981 -64- IEN 186 - - - 3. The minimum fragment size is 68 octets. - - 4. The first fragment must contain all options carried by the - original datagram, except padding and no-op octets. - - 5. The security, source routing, and stream identification - options (i.e. marked with "copy" flag) must be carried by - all fragments, if present in the original datagram. - - 6. The first fragment must have to_SNP.dtgm.fragment_offset set - to zero. - - 7. All fragments, except the last, must have - to_SNP.dtgm.more_frag_flag set true. - - 8. The last fragment must have the to_SNP.dtgm.more_frag_flag - set false. - - - - System Development Corporation - 1 June 1981 -65- IEN 186 - - - 6.3.6.3.9 analyze - - The analyze procedure examines datagrams addressed to IP contain- - ing error reports from other IP modules. In general, error han- - dling is implementation dependent. However, guidelines are pro- - vided to identify classes of errors and suggest appropriate - actions. The errors and error formats are defined in section - 6.2.15. - - The data effects of this procedure are: - - - Data examined: - - from_SNP.dtgm.protocol - from_SNP.data - - - Data modified: - - implementation dependent - - For simplicity, it is assumed that the data area can be accessed - as a byte array. - - The algorithm: - - --Examine the first and second octets in the data portion - --of the error datagram to identify the error reported. - - case from_SNP.dtgm[1] of - - when 3 => --Destination Unreachable Message - - --The errors in the "unreachable" class should - --should be passed to the ULP indicating data delivery - --to the destination is unlikely if not impossible. - - case from_SNP.dtgm[2] of - - when 0 => --net unreachable - - when 1 => --host unreachable - - when 2 => --protocol unreachable - - when 3 => --port unreachable - - when 5 => --fragmentation needed and don't fragment - --flag set - end case; - - - when 11 => --Time Exceeded Message - - - - System Development Corporation - 1 June 1981 -66- IEN 186 - - - --The "time-out" class of errors are usually not passed to the - --ULP but should be recorded for network monitoring uses. - - case from_SNP.dtgm[2] of - - when 0 => --Time to live exceeded in transit - - when 1 => --Fragment reassembly time exceeded - - end case; - - - when 12 => --Parameter Problem Message - --This error is generated by a gateway IP to indicate - --a problem in the options field of a datagram header. - - when 4 => --Source Quench Message - --This message indicates that a datagram has been - --discarded for congestion control. The ULP should - --be informed so that traffic can be reduced. - - when 5 => --Redirect Message - --This message should result in a routing table update - --by the IP module. It is not passed to the ULP. - - when 8 => --Echo Datagram - --Use of this message is implementation dependent. - - when 0 => --Echo Reply Datagram - --Use of this message is implementation dependent. - - end case; - - - - System Development Corporation - 1 June 1981 -67- IEN 186 - - - 6.3.6.3.10 error to ULP - - The error_to_ULP procedure returns an error report to a ULP which - has passed invalid parameters or has requested a service that - cannot be provided. - - The data effects of this procedure are: - - - Parameters: - - error_param : (PARAM_PROBLEM, CAN'T_FRAGMENT, - NET_UNREACH, HOST_UNREACH, - PROTOCOL_UNREACH, PORT_UNREACH); - - - Data examined: - - implementation dependent - - - Data modified: - - to_ULP.error - implementation dependent parameters - - - The algorithm: - - --The format of error reports to a ULP is implementation - --dependent. However, included in the report should be - --a value indicating the type of error, and some information - --to identify the associated data or datagram. - - to_ULP.error := error_param; - --implementation dependent action - - - - System Development Corporation - 1 June 1981 -68- IEN 186 - - - 6.3.6.3.11 error to source - - The error_to_source procedure formats and returns an error report - to the source of an erroneous or expired datagram. - - The data effects of this procedure are: - - - Parameters: - - error_param : (PARAM_PROBLEM, EXPIRED_TTL, - HOST_UNREACH, PROTOCOL_UNREACH); - - - Data examined: - - from_SNP.dtgm - - - Data modified: - - to_SNP.dtgm to_SNP.local_destination_addrs - to_SNP.length to_SNP.type_of_service_indicators - - The algorithm: - - --Format and transmit an error datagram to the source IP. - - to_SNP.dtgm.version := 4; --standard IP version - to_SNP.dtgm.header_length := 5; --standard header size - to_SNP.dtgm.type_of_service := 0; --least quality of service - to_SNP.dtgm.identification := select new value; - to_SNP.dtgm.more_frag_flag := FALSE; - to_SNP.dtgm.dont_frag_flag := FALSE; - to_SNP.dtgm.fragment_offset := 0; - to_SNP.dtgm.time_to_live := 60; --or value large enough to - --allow delivery - to_SNP.dtgm.protocol := 3; --Gateway-Gateway Protocol ID - to_SNP.dtgm.source_addr := from_SNP.dtgm.destination_addr; - to_SNP.dtgm.destination_addr := from_SNP.dtgm.source_addr; - - --The data section carries the error message in the first four - --bytes, and the header and first 64 bytes of data of the - --bad datagram. - - case error_param of - - where PARAM_PROBLEM => - to_SNP.dtgm.data[0] := 12; --Gateway type = Parameter Problem - to_SNP.dtgm.data[1] := 0; --Code = problem with option - - - where EXPIRED_TTL => - to_SNP.dtgm.data[0] := 11; --Gateway type = Time Exceeded - to_SNP.dtgm.data[1] := 0; --Code = TTL exceed in transit - - - - System Development Corporation - 1 June 1981 -69- IEN 186 - - - where HOST_UNREACH => - to_SNP.dtgm.data[0] := 3; --Gateway type = Dest. Unreachable - to_SNP.dtgm.data[1] := 1; --Code = host unreachable - - where PROTOCOL_UNREACH => - to_SNP.dtgm.data[0] := 3; --Gateway type = Dest. Unreachable - to_SNP.dtgm.data[1] := 2; --Code = protocol unreachable - - end case; - - --Below, N is assumed to be the length of the bad datagram's header - --plus the first 64 bytes of its data section ( 84 <= N <= 124); - - to_SNP.dtgm.data[4..N+3] := from_SNP.dtgm[0..N-1]; - to_SNP.dtgm.total_length := to_SNP.header_length*4 + N; - - --Compute checksum, determine the route for the error datagram, - --the type of service indicators, and the datagram size for the SNP. - - compute_checksum; - to_SNP.type_of_service_indicators := 0; - to_SNP.length := to_SNP.dtgm.total_length; - route; - - --Request the execution environment to pass the contents of to_SNP - --to the local subnet protocol for transmission. - - TRANSFER to_SNP to the SNP. - - - - System Development Corporation - 1 June 1981 -70- IEN 186 - - - 6.3.6.3.12 reassembly timeout - - The reassembly_timeout procedure generates an error datagram to - the source IP informing it of the datagram's expiration during - reassembly. - - The data effects of the procedure are: - - - Data examined: - - state_vector.header - state_vector.data - - - - Data modified: - - to_SNP.dtgm - to_SNP.length - to_SNP.type_of_service_indicators - to_SNP.local_destination_addrs - - The algorithm: - - --Format and transmit an error datagram to the source IP. - - to_SNP.dtgm.version := 4; --standard IP version - to_SNP.dtgm.header_length := 5; --standard header size - to_SNP.dtgm.type_of_service := 0; --least quality of service - to_SNP.dtgm.identification := new value selected; - to_SNP.dtgm.more_frag_flag := FALSE; - to_SNP.dtgm.dont_frag_flag := FALSE; - to_SNP.dtgm.fragment_offset := 0; - to_SNP.dtgm.time_to_live := 60; - to_SNP.dtgm.protocol := 3; --Gateway-Gateway Protocol ID - to_SNP.dtgm.source_addr := state_vector.header.destination_addr; - to_SNP.dtgm.destination_addr := state_vector.header.source_addr; - - --The data section carries the error message in the first four - --bytes, and the header and first 64 bytes of data of the - --timed-out datagram. - - to_SNP.dtgm.data[0] := 12; --Gateway type = Time Exceeded - to_SNP.dtgm.data[1] := 1; --Code = fragment reassembly timeout - - --Below, N is assumed to be the length of the expired datagram's header - --plus the first 64 bytes of its data section ( 84 <= N <= 124 ). - - to_SNP.dtgm.data[4..N+3] := state_vector.data[0..N-1]; - to_SNP.dtgm.total_length := to_SNP.header_length*4 + N; - - --Compute checksum, determine the route for the error datagram, - --the type of service indicators, and the datagram size for the SNP. - - - - System Development Corporation - 1 June 1981 -71- IEN 186 - - - compute_checksum; - to_SNP.type_of_service_indicators := 0; - to_SNP.length := to_SNP.dtgm.total_length; - route; - - --Request the execution environment to pass the contents of to_SNP - --to the local subnet protocol for transmission. - - TRANSFER to_SNP to the SNP. - - - - System Development Corporation - 1 June 1981 -72- IEN 186 - - - 7. EXECUTION ENVIRONMENT REQUIREMENTS - - This section describes the facilities required of an execution - environment for proper implementation and operation of the Inter- - net Protocol. Throughout this document, the environmental model - portrays each protocol as an independent process. Within this - model, the execution environment must provide two facilities: - inter-process communication and timing. - - 7.1 Inter-process communication - - The execution environment must provide an inter-process communi- - cation facility to enable independent processes to exchange - variable-length units of information, called messages. For IP's - purposes, the IPC facility is not required to preserve the order - of messages. - - IP uses the IPC facility to exchange interface parameters and - data with upper layer protocols across its upper interface and - the subnetwork protocol across the lower interface. Sections 3 - and 5 specify these interfaces. - - 7.2 Timing - - The execution environment must provide a timing facility that - maintains a real-time clock with units no coarser than 1 mil- - lisecond. A process must be able to set a timer for a specific - time period and be informed by the execution environment when the - time period has elapsed. A process must also be able to cancel a - previously set timer. - - Two IP mechanisms use the timing facility. The internet times- - tamp carries timing data in millisecond units. The reassembly - mechanism uses timers to limit the lifetime of a datagram being - reassembled. In the mechanism specification this facility is - called TIMEOUT. - - - - System Development Corporation - 1 June 1981 -73- IEN 186 - - - 8. BIBLIOGRAPHY - - 1. "DCEC Protocols Standardization Program Preliminary Archi- - tecture Report" TM-7038/200/00, Contract No. DCA100-80-C- - 0044, February 1981. - - 2. "Protocol Specification Guidelines", TM-7038/204/00, Con- - tract No. DCA100-80-C-0044, June 1981. - - 3. V. Cerf and R. Kahn, "A Protocol for Packet Network Inter- - connection", IEEE Transactions on Communications, May 1974. - - 4. J. Postel (ed.), "DoD Standard Internet Protocol", Defense - Advanced Research Projects Agency, Information Processing - Techniques Office, RFC760, IEN128, January 1980. - - 5. J. Postel (ed.), "DoD Standard Transmission Control Proto- - col", Defense Advanced Research Projects Agency, Information - Processing Techniques Office, RFC761, IEN129, January 1980. - - 6. V. Cerf and P. Kirstein, "Issues in Packet-Network Intercon- - nection", Proceedings of the IEEE, November 1978, pp.1386- - 1408. - - 7. P.T. Kelly, "Public Packet Switched Data Networks, Interna- - tional Plans and Standards", Proceedings of the IEEE, - November 1978, pp.1539-1549. - - 8. D. Boggs, J. Shoch, E. Taft, and R. Metcalfe, "Pup: An - Internetwork Architecture", IEEE Transactions on Communica- - tions, April 1980, pp.612-624. - - 9. J. Postel, "Internetwork Protocol Approaches", IEEE Transac- - tions on Communications, April 1980, pp.604-611. - - 10. J. Shoch, "Inter-Network Naming, Addressing, and Routing", - COMPCON, IEEE Computer Society, Fall 1978. - - 11. J. Shoch, "Packet Fragmentation in Inter-Network Protocols", - Computer Networks, vol.3, no.1, February 1979. - - 12. J. Postel, "Address Mappings", IEN 115, USC/Information Sci- - ences Institute, August 1979. - - 13. J. Postel, "Assigned Numbers", RFC 762, IEN 127, - USC/Information Sciences Institute, January 1980. - - - - System Development Corporation - 1 June 1981 -74- IEN 186 - - - 9. GLOSSARY - - Destination - An IP header field containing an internet address indicating - where a datagram is to be sent. - - datagram - A self-contained package of data carrying enough information to - be routed from source to destination without reliance on earlier - exchanges between source or destination and the transporting sub- - network. - - datagram fragment - The result of fragmenting a datagram, also simply referred to as - a fragment. A datagram fragment carries a portion of data from - the larger original, and a copy of the original datagram header. - The header fragmentation fields are adjusted to indicate the - fragment's relative position within the original datagram. - - datagram service - A datagram, defined above, delivered in such a way that the - receiver can determine the boundaries of the datagram as it was - entered by the source. A datagram is delivered with non-zero - probability to the desired destination. The sequence in which - datagrams are entered into the subnetwork by a source is not - necessarily preserved upon delivery at the destination. - - DF - Don't Fragment flag: An IP header field that when set true prohi- - bits an IP module from fragmenting a datagram to accomplish - delivery. - - fragmentation - The process of breaking the data within a datagram into smaller - pieces and attaching new internet headers to form smaller - datagrams. - - Fragment Offset - A field in the IP header marking the relative position of a - datagram fragment within the larger original datagram. - - gateway - A device, or pair of devices, which interconnect two or more sub- - networks enabling the passage of data from one subnetwork to - another. In this architecture, a gateway usually contains an IP - module, a Gateway-to-Gateway Protocol (GGP) module, and a subnet- - work protocol module (SNP) for each connected subnetwork. - - header - Collection of control information transmitted with data between - peer entities. - - - - System Development Corporation - 1 June 1981 -75- IEN 186 - - - host - A computer which is a source or destination of messages from the - point of view of the communication subnetwork. - - - Identification - An IP header field used in reassembling fragments of a datagram. - - IHL - Internet Header Length: an IP header field indicating the number - of 32-bit words making up the internet header. - - Internet address - A four octet (32 bit) source or destination address composed of a - Network field and a REST field. The latter usually contains a - local subnetwork address. - - internet datagram - The package exchanged between a pair of IP modules. It is made - up of an IP header and a data portion. - - local address - The address of a host within a subnetwork. The actual mapping of - an internet address onto local subnetwork addresses is quite gen- - eral, allowing for many to one mappings. - - local subnetwork - The subnetwork directly attached to host or gateway. - - MF - More Fragments flag: an IP header field indicating whether a - datagram fragment contains the end of a datagram. - - module - An implementation, usually in software, of a protocol or other - procedure. - - MTU - Maximum Transmission Unit: a subnetwork dependent value which - indicates the largest datagram that a subnetwork can handle. - - octet - An eight bit byte. - - Options - The optional set of fields at the end of the IP header used to - carry control or routing data. An Options field may contain - none, one, or several options, and each option may be one to - several octets in length. The options allow ULPs to customize - IP's services. The options are also useful in testing situations - to carry diagnostic data such as timestamps. - - - - System Development Corporation - 1 June 1981 -76- IEN 186 - - - packet - The unit of data transmitted by a packet-switched network. A - packet usually contains nested control information and data from - the upper layer protocols using the subnetwork. - - packet network - A network based on packet-switching technology. Messages are - split into small units (packets) to be routed independently on a - store and forward basis. This packetizing pipelines packet - transmission to effectively use circuit bandwidth. - - Padding - An IP header field, an octet in length, inserted after the last - option field to ensure that the data portion of a datagram begins - on a 32-bit word boundary. The Padding field value is zero. - - Protocol - An internet header field used to identify the upper layer proto- - col that is the source and destination of the data within an IP - datagram. - - Precedence - One of the service quality parameters provided by the type of - service mechanism. Precedence is a relative measure of datagram - importance. This parameter can be set to one of five levels: - routine, priority, immediate, flash, or flash override. It - appears as a three bit field within the Type of Service field in - the IP header. - - reassembly - The process of piecing together datagram fragments to reproduce - the original large datagram. Reassembly is based on fragmentation - data carried in their IP headers. - - Reliability - One of the service quality parameters provided by the type of - service mechanism. The reliability parameter can be set to one - of four levels: lowest, lower, higher, or highest. It appears as - a two bit field within the Type of Service field in the IP - header. - - reliability - A quality of data transmission defined as guaranteed, ordered - delivery. - - Rest - The three octet field of the internet address usually containing - a local address. - - segment - The unit of data exchanged by TCP modules. This term may also be - used to describe the unit of exchange between any transport - - - - System Development Corporation - 1 June 1981 -77- IEN 186 - - - protocol modules. - - Source - An IP header field containing the internet address of the - datagram's point of origin. - - stream delivery service - The special handling required for a class of volatile periodic - traffic typified by voice. The class requires the maximum - acceptable delay to be only slightly larger than the minimum pro- - pagation time, or requires the allowable variance in packet - interarrival time to be small. - - SNP - SubNetwork Protocol: the protocol residing in the subnetwork - layer below IP which provides data transfer through the local - subnet. In some systems, an adaptor module must be inserted - between IP and the subnetwork protocol to reconcile their dis- - similar interfaces. - - TCP - Transmission Control Protocol: a transport protocol providing - connection-oriented, end-to-end reliable data transmission in - packet-switched computer subnetworks and internetworks. - - TCP segment - The unit of data exchanged between TCP modules (including the TCP - header). - - Total Length - An IP header field containing the number of octets in an internet - datagram, including both the IP header and the data portion. - - Type of Service - An IP header field containing the transmission quality parame- - ters: precedence level, reliability level, speed level, resource - trade-off (precedence vs. reliability), and transmission mode - (datagram vs. stream). This field is used by the type of service - mechanism which allows ULPs to select the quality of transmission - for a datagram through the internet. - - ULP - Upper Layer Protocol: any protocol above IP in the layered proto- - col hierarchy that uses IP. This term includes transport layer - protocols, presentation layer protocols, session layer protocols, - and application programs. - - user - A generic term identifying a process or person employing a proto- - col. In IP's case, this term may describe a transport protocol, - a presentation layer protocol, a session layer protocol, or an - application program. - - - - System Development Corporation - 1 June 1981 -78- IEN 186 - - - Version - An IP header field indicating the format of the IP header. - - - \ No newline at end of file diff --git a/text/ien/ien187.txt b/text/ien/ien187.txt deleted file mode 100644 index e96361fe..00000000 --- a/text/ien/ien187.txt +++ /dev/null @@ -1,4196 +0,0 @@ - - IEN 187 - - - - - - - - - - - - - - - - - - - ISSUES IN INTERNETTING - - PART 2: ACCESSING THE INTERNET - - - Eric C. Rosen - - - Bolt Beranek and Newman Inc. - - - June 1981 - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - ISSUES IN INTERNETTING - - PART 2: ACCESSING THE INTERNET - - -2. Accessing the Internet - - - - This is the second in a series of papers, the first of which - -was IEN 184, that examine some of the issues in designing an - -internet. Familiarity with IEN 184 is presupposed. This - -particular paper will deal with the issues involved in the design - -of internet access protocols and software. The issue of - -addressing, however, is left until the next paper in this series. - -Part of our technique for exposing and organizing the issues will - -be to criticize (sometimes rather severely) the current protocols - -and procedures of the Catenet, even though we do not, at the - -present time, offer specific alternatives in all cases. - - - In IEN 184, section 1.4, we outlined four steps in the - -operation of a Network Structure. Let's now look closely at the - -first step, viz., how the source Host actually submits a message - -to the source Switch. In general, a Host will need to run three - -separate protocols to do this: - - - -a protocol to utilize the electrical interface between the - - Host and the initial component of the Pathway it uses to - - access the source Switch. - - - - - - - 1 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - -a protocol to govern communication between the Host and the - - Pathway (PATHWAY ACCESS PROTOCOL). - - - -a protocol to govern communication between the Host and the - - source Switch (NETWORK ACCESS PROTOCOL). - - - We can make this point more concrete by giving some - -examples. Consider the case of an ARPANET host which wants to - -access the Catenet via the BBN gateway (which is also a Host on - -the ARPANET). Then the ARPANET is the Pathway the host uses to - -access the source Switch (the gateway). If the host is a local - -or distant host, the electrical interface to the Pathway is the - -1822 hardware interface. If it is a VDH host, the electrical - -interface is whatever protocol governs the use of the pins on the - -modem connectors. If it were an X.25 host, the interface might - -be X.21. The PATHWAY ACCESS PROTOCOL is the 1822 protocol, which - -governs communication between the host and the first IMP on the - -Pathway. The NETWORK ACCESS PROTOCOL in this case would be the - -DoD standard Internet Protocol (IP), which governs communication - -between the host and the source Switch (gateway). - - - If, on the other hand, we consider the case of an ARPANET - -host which is communicating with another host on the ARPANET, and - -whose data stays purely within the ARPANET, 1822 becomes both the - -NETWORK ACCESS PROTOCOL (since the source Switch is now identical - -to the source IMP), and the PATHWAY ACCESS PROTOCOL, since the - -Pathway is now the 1822 hardware connection. - - - 2 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - We will have nothing further to say about the electrical - -interface, since that is really just a straightforward hardware - -matter. (However, such characteristics of the electrical - -interface as error rate, for example, might have to be reflected - -in the design of the Pathway Access Protocol.) The design of - -both the Pathway Access Protocol and the Network Access Protocol - -do raise a large number of interesting issues, and that shall be - -the focus of this paper. - - - We believe it to be very unlikely that Host software (or - -gateway software) can utilize the internet efficiently unless it - -takes the idiosyncrasies of BOTH the Pathway Access Protocol and - -the Network Access Protocol into account. A gateway or host - -software implementer who spends a great deal of time carefully - -building his IP module, but who then writes a "quick and dirty" - -1822 module, is likely to find that his inefficient use of 1822 - -completely sabotages the advantages which his carefully designed - -IP is supposed to have. Experience with the ARPANET has shown - -many times that poorly constructed host software can create - -unnecessary performance problems. It seems, for example, that - -many 1822 modules completely ignore the flow control restrictions - -of the ARPANET, thereby significantly reducing the throughput - -that they can obtain over the ARPANET. We have even encountered - -many hosts which cannot properly handle some of the control - -messages of the 1822 protocol, which also leads to a very - -inefficient use of the ARPANET. - - - 3 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - It is not difficult to understand why a host (or gateway) - -software implementer might overlook the issues having to do with - -the proper use of the Pathway Access Protocol. There are a - -number of pressures that, if not dealt with properly at a - -management level, lead naturally to the neglect of Pathway Access - -Protocol issues. An internet implementer might want to - -concentrate on the "new stuff", viz., the Network Access - -Protocol, IP, and may not be at all interested in the - -idiosyncrasies of the older Pathway Access Protocol (1822). He - -might be misled, by the belief that the packet-switching networks - -underlying the internet should be transparent to it, into - -believing that those packet-switching networks can be treated as - -simply as if they were circuits. He might also be under pressure - -to implement as quickly as possible the necessary functionality - -to allow internet access. While this sort of pressure is very - -common, the pressure to make the internet PERFORM well (as - -opposed to the pressure simply to make it work at all) is - -generally not felt until much (sometimes years) later. The - -tendency to neglect performance considerations while giving too - -much attention to simply obtaining the needed functionality in - -the quickest way is also reinforced by such "modern" design - -procedures as top-down design, and specification of protocols in - -formal languages. While these procedures do have a large number - -of advantages, they also serve to obscure performance issues. If - -the researchers and designers of protocols, following modern - - - - 4 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -design methodologies, do not give adequate consideration to - -performance at the time of protocol design, one can hardly expect - -the implementers to do so. Yet ARPANET experience has shown - -again and again that decisions made at the level of - -implementation, apparently too picayune to catch the attention of - -the designers, can be important determinants of performance. - -Still another reason why protocol software implementers might - -tend to disregard the niceties of the Pathway Access Protocol is - -the lack of any adequate protocol software certification - -procedure. An ARPANET host could be connected to an IMP for - -months, transferring large amounts of traffic, without ever - -receiving certain 1822 control messages. Then some sort of - -change in network conditions could suddenly cause it to receive - -that control message once per hour. There really is no way at - -present that the implementer could have possibly run tests to - -ensure that his software would continue to perform well under the - -new circumstances. This problem is somewhat orthogonal to our - -main interests, but deserves notice. - - - One of the most important reasons why protocol software - -implementers tend to ignore the details of the Pathway Access - -Protocols is the "philosophical" belief that anyone working on - -internet software really "ought not" to have to worry about the - -details of the underlying networks. We will not attempt to - -refute this view, any more than we would attempt to refute the - -view of a person who claimed that it "ought not" to rain on his - - - 5 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -day off. We emphasized in IEN 184 that the characteristics of a - -Network Structure's Pathways are the main thing that distinguish - -one Network Structure from another, and that the problems of - -internetting really are just the problems of how to build a - -Network Structure with Pathways as ill-behaved as - -packet-switching networks. Thus building a successful internet - -would seem to be a matter of dealing specifically with the - -behavior of the various Pathways, rather than ignoring that - -behavior. We assume that that our task is to create an internet - -which is robust and which performs well, as opposed to one which - -"ought to" perform well but does not. It is true, as we have - -said, that within the Network Structure of the Catenet, we want - -to regard the ARPANET as a Pathway whose internal structure we do - -not have to deal with, but that does NOT mean that we should - -regard it as a circuit. Any internet Host or Switch (gateway), - -TO PERFORM WELL, will have to have a carefully designed and tuned - -Pathway Access Protocol module geared to the characteristics of - -the Pathway that it accesses. - - - The relationship between the Pathway Access Protocol and the - -Network Access Protocol does offer a number of interesting - -problems. For one thing, it appears that these protocols do not - -fit easily into the OSI Open Systems model. If we are accessing - -a single packet-switching network, the Network Access Protocol - -appears to be a level 3 protocol in the OSI model, and the - -Pathway Access Protocol appears to be a level 2 protocol. - - - 6 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -However, if we are accessing an internet, we still need the level - -3 Network Access Protocol, but now the Pathway Access Protocol - -also has a level 3 component, in addition to its level 2 - -component. So the Host is now running two different level 3 - -protocols, although the Network Access Protocol appears - -functionally to be in a layer "above" the level 3 part of the - -Pathway Access Protocol. Perhaps the main problem here is that - -the OSI model has insufficient generality to capture the - -structure of the protocols needed to access an internet like the - -Catenet. - - - It is interesting to see how some of these considerations - -generalize to the case of a Host which needs to access an - -internet (call it "B") through a Pathway which is itself an - -internet (call it "A"). Then the Host needs a Network Access - -Protocol for the internet B, a Network Access Protocol for the - -internet A (which is also its Pathway Access Protocol for - -internet B), and a Network Access Protocol for the actual network - -to which it is directly connected, which is also its Pathway - -Access Protocol for internet A. As we create more and more - -complicated Network Structures, with internets piled on top of - -internets, the Hosts will have a greater and greater protocol - -burden placed upon them. Ultimately, we might want to finesse - -this problem by removing most of this burden from the Hosts and - -putting it in the Switches, and giving the Switches knowledge of - -the hierarchical nature of the (internet) Network Structure. For - - - 7 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -example, a Host on the ARPANET might just want to give its data - -to some IMP to which it is directly connected, without worrying - -at all about whether that data will need to leave the ARPANET and - -travel via an internet. The IMP could decide whether that is - -necessary, and if so, execute the appropriate protocol to get the - -data to some internet Switch at the next highest level of - -hierarchy. If the data cannot reach its destination within the - -internet at that level, but rather has to go up further in the - -hierarchy to another internet, the Switch at the lower level - -could make that decision and execute the appropriate protocol. - -With a protocol structure like this, we could have an arbitrarily - -nested internet, and the Switches at a particular level, as well - -as the Hosts (which are at the lowest level), would only have to - -know how to access the levels of hierarchy which are immediately - -above and/or below them. This procedure would also make the host - -software conform more to the OSI model, since only one Network - -Access Protocol would be required. However, this sort of - -protocol structure, convenient as it might be for the Hosts, does - -not eliminate any of the issues about how to most efficiently use - -the Pathways of a Network Structure. Rather, it just pushes - -those issues up one level, and makes the Switches correspondingly - -more complicated. A proper understanding of the issues, - -therefore, is independent of what sort of protocol structuring we - -design. - - - - - - 8 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - Having emphasized the need for hosts and gateways to take - -account of the details of particular Pathway Access Protocols, we - -must point out that this is not always a simple thing to do. If - -the Network Structure underlying a Pathway is just a single - -network, like the ARPANET, this problem is not so terribly - -difficult, since one can expect that there will be available a - -lot of experience and information about what a host should do to - -access that network efficiently. If, on the other hand, the - -Pathway is really an internet itself, the problem is more - -difficult, since it is much more difficult to say anything - -substantive about its characteristics. This is a point we must - -keep in mind as we discuss specific issues in access protocol - -design. - - - In the remainder of this paper, we will attempt to deal with - -a number of issues involved in the design of robust, - -high-performance Network and Pathway Access Protocols. We will - -not attempt to cover every possible issue here. In particular, - -the issue of how to do addressing is important enough to warrant - -a paper of its own, and shall be put off until the next paper in - -this series. We will attempt throughout to focus on issues which - -particularly affect the reliability of the internet configuration - -(as perceived by the users), and on issues which affect the - -performance of the internet (as perceived by the users). - -Wherever possible, we will try to exhibit the way in which the - -reliability and performance of a protocol trade off against its - - - 9 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -functionality. If protocol designers concentrate too heavily on - -questions of what functionality is desired, as opposed to what - -functionality can be provided at a reasonable level of - -performance and reliability, they are likely to find out too late - -that the protocol gives neither reasonable performance nor - -reliability. - - -2.1 Pathway Up/Down Considerations - - - In general, a Host will be multi-homed to some number of - -Switches. In fact, it is easy to imagine a Host which is both - -(a) multi-homed to a number of IMPs, within the Network Structure - -of the ARPANET (this cannot be done at present, but is planned - -for the future), and also (b) multi-homed to a number of gateways - -(namely, all the gateways on the ARPANET) within the Network - -Structure of the Catenet. Whenever a Host is multi-homed to a - -number of Switches in some Network Structure, it has a decision - -to make, namely, which of those Switches to use as the source - -Switch for some particular data traffic. In order to make this - -choice, the very first step a Host will have to take is to - -determine which Switches it can reach through operational - -Pathways. One thing we can say for sure is that if a Host cannot - -reach a particular Switch through any of its possible Pathways, - -then it ought not to pick that Switch as the source Switch to - -which to send its data. In a case, for example, where the - -ARPANET is partitioned, a Host on the ARPANET which needs to send - - - - 10 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -internet traffic will want to know which gateways it can reach - -through which of its ARPANET interfaces. To make this - -determination possible, there must be some sort of "Pathway - -Up/Down Protocol", by which the Host determines which of its - -potential Pathways to gateways are up and which are down. This - -is not to say, of course, that the Hosts have to know which - -gateways are up and which are down, but rather, they must know - -which gateways they can and cannot reach. Of course, this - -situation is quite symmetric. The Switches of a Network - -Structure (and in particular, the gateways of an internet) must - -be able to determine whether or not they can reach some - -particular host at some particular time. Otherwise, the gateway - -might send traffic for a certain Host over a network access line - -through which there is no path to that Host, thereby causing - -unnecessary data loss. Apparently, this problem has occurred - -with some frequency in the Catenet; it seems worthwhile to give - -it some systematic consideration. - - - The design of reliable Pathway Up/down protocols seems like - -something that "ought to be" trivial, but in fact can be quite - -difficult. Let's begin by considering the case of an ARPANET - -host which simply wants to determine whether it can reach some - -IMP to which it is directly connected. The first step for the - -host to take (if it is a local or distant host) is to look at the - -status of its Ready Line. If the Ready Line to some IMP is not - -up, then it is certain that communication with that IMP is not - - - 11 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -possible. If the host is a VDH host, then there is a special - -up/down protocol that the host must participate in with the IMP, - -and if that fails, the host knows that it cannot communicate with - -the IMP. Of course, these situations are symmetric, in that the - -IMP has the same need to know whether it can communicate with a - -host, and must follow the same procedures to determine whether - -this is the case. However, even in these very simple cases, - -problems are possible. For example, someone may decide to - -interface a host to an IMP via a "clever" front-end which hides - -the status of the Ready Line from the host software. If a host - -is multi-homed, and has to choose one from among several possible - -source IMPs, but cannot "see" the Ready Lines, what would stop it - -from sending messages to a dead IMP? Eventually, of course, a - -user would notice that his data is not getting through, and would - -probably call up the ARPANET Network Control Center to complain - -about the unreliability of the network, which, from his - -perspective, is mysteriously dropping packets. From the opposite - -perspective, one must realize that such a front-end might also - -hide the status of the host from the IMP, so that the network has - -no way of knowing whether a particular host is currently capable - -of communicating with the network. This is especially likely to - -happen if the "clever" front-end takes packets from the network - -which are destined for a particular host, and then just drops - -them if the host is down, with no feedback to either IMP or host. - -If a host is multi-homed, but one of its access lines is down, - - - - 12 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -this sort of configuration might make it quite difficult for the - -network to reach a reasonable decision as to which access line to - -use when sending data to that host. The lesson, of course, is - -that the status of the Ready Line should never be hidden from the - -host software, but it is hard to communicate this lesson to the - -designers of host software. Again, the issue is one of - -performance vs. functionality. A scheme which hides the status - -of the Ready Line from IMP or host may still have the required - -(minimum) functionality, but it will just perform poorly under - -certain conditions. - - - This may seem like a made-up problem which probably would - -never occur, but in fact it has occurred. We once had a series - -of complaints from a user who claimed that at certain times of - -certain days he had been unable to transmit data successfully - -over the ARPANET. Upon investigation, we found that during those - -times, the user's local IMP had been powered down, due apparently - -to a series of local power failures at the user's site. Of - -course, the IMP will not transmit data when it is powered down. - -But it was somewhat mysterious why we had to inform someone of a - -power failure at his own site; surely the host software could - -have detected that the IMP was down simply by checking the Ready - -Line, and so informed the users. When this user investigated his - -own host software (a very old NCP), he found that it would inform - -the users that the IMP was down ONLY if the IMP sent the host a - -message saying that it was going down. Since the IMP does not - - - 13 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -send a message saying that it is about to lose power, the host - -software, which apparently did not check the Ready Line as a - -matter of course, did not detect the outage. It looked to the - -user, therefore, as though the network had some mysterious and - -unreliable way of dropping packets on the floor. It seems that - -many hosts presently exist whose networking software is based on - -the assumption that the IMPs never go down without warning. - -Hosts do sometimes have difficulty determining whether their - -Pathway to an IMP is up or down, even when it seems like this - -should be totally trivial to determine. Reliable network service - -requires, however, that host software and hardware designers do - -not hide the status of the IMP from the host, or the status of - -the host from the IMP. This will become increasingly important - -as more and more hosts become multi-homed. - - - Of course, this is only a first step in a proper up/down - -determination. It is not impossible for a Ready Line to be up - -but for some problem either in IMP or host to prevent - -communications from taking place. So some higher level up/down - -protocol is also necessary. Some protocol should be defined by - -which Host and Switch can send traffic to each other, and require - -the other to respond within a certain time period. A series of - -failures to respond would indicate that proper communications is - -not possible, at least for the time being. It is important to - -note, though, that the need for a higher level up/down protocol - -does not obviate the need for the lower level procedure of - - - 14 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -monitoring the Ready Line. If the higher level procedure fails, - -but the Ready Line appears to be up, knowledge of both facts is - -needed for proper fault isolation and maintenance. Also - -important to notice is that if the lower level procedure - -indicates that the Pathway is down, the higher level procedure - -should not be run. This might not seem important at first - -glance, but in practice, it often turns out that attempting to - -send traffic to a non-responsive machine results in significant - -waste of resources that could be used for something more useful. - - - In the more general case, where a Host's Pathway to a source - -Switch may include one or more packet-switching networks, it is - -far from trivial to determine whether the Switch can be reached - -from the Host via the Pathway. Consider, for example, how a - -given ARPANET host could determine whether a given Catenet - -gateway on the ARPANET can be accessed via some given ARPANET - -source IMP. Of course, the first step is to determine whether - -communication with that source IMP is possible. Even if it is, - -however, the gateway might still be unreachable, since it may be - -down, or the network may be partitioned. ("Officially", every - -ARPANET Host is supposed to be reachable from any other ARPANET - -Host. However, the average connectivity of the ARPANET is only - -2.5, which means that only a small number of line or node - -failures are needed to induce partitions. Furthermore, a few - -ARPANET sites are actually stubs, which means that a single - -failure can isolate them from the rest of the ARPANET. As often - - - 15 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -seems to happen in practice, the sites that are stubs seem to be - -attached by the least reliable lines, so that partitions are not - -infrequent. At any rate, there will probably be networks in the - -internet that partition more frequently than the ARPANET does. - -Internet protocols must detect and react to network partitions, - -instead of simply disregarding them as "too unlikely to worry - -about." ) - - - In the special case where the Pathway between some Host and - -some Switch is the ARPANET, the ARPANET itself can provide - -information to the Host telling it whether the Switch is - -reachable. If the Switch is not reachable, and a Host attempts - -to send an ordinary data packet to it, the ARPANET will inform - -the Host whether or not that packet was delivered, and if not, - -why not. Unfortunately, the current ARPANET does not provide - -this information in response to datagrams. However, we have - -already seen the need to provide such information in the case of - -logically addressed datagrams (see IEN 183), and plan to - -implement a scheme for doing so. An ARPANET Host which is also - -an internet Host can implement a low level Pathway up/down - -protocol simply by paying attention to the 1822 replies that it - -receives from the ARPANET. There are hosts which seem to - -disregard these 1822 control messages, and which seem to continue - -to send messages for unreachable hosts into the ARPANET. Of - -course, this is a senseless waste of resources which can severely - -degrade performance. Indeed, it may look to an end-user, or even - - - 16 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -a gateway implementer, as though the ARPANET is throwing away - -packets for no reason, when the real problem is that the host - -software cannot respond adequately to exceptional conditions - -reported to it by the network. - - - We have spoken of the need for Host and Switch to run a - -higher level up/down protocol, to take account of the conditions - -when one of them seems reachable to the network, but still will - -not perform adequately when another entity attempts to - -communicate with it. Switch and Host must run some protocol - -together which enables each to validate the proper performance of - -the other. The Catenet Monitoring and Control System (CMCC), - -currently running on ISIE, runs a protocol of this sort with the - -gateways. The CMCC sends a special datagram every minute to each - -gateway, and expects to receive an acknowledgment (or echo) for - -this special datagram back from the gateway. After three - -consecutive minutes of not receiving the echo, the CMCC infers - -that the gateway cannot be reached. After receiving a single - -echo, the CMCC infers that the gateway can be reached. (Gateways - -run a similar protocol with their "neighboring gateways".) A - -Pathway up/down protocol which does not rely on the intervening - -network to furnish the information would certainly have to - -involve some such exchange of packets between the Host and the - -Switch, but it would have to be rather more complex than this - -one. One of the problems with this protocol is that it is - -incapable of detecting outages of less than three minutes. This - - - 17 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -may be suitable for the CMCC's purposes, but is not generally - -suitable for a Host which wants to know which source Switch to - -send its traffic to. We would not want some Host to spend three - -full minutes sending data to a Switch which cannot be reached; - -the effect of that could be many thousands of bits of data down - -the drain. (Of course, higher level protocols like TCP would - -probably recover the lost data eventually through the use of - -Host-Host retransmissions, but that involves both a severe drain - -on the resources of the Host, which ought to be avoided whenever - -possible, and a severe degradation in delay and throughput.) - -Another problem with this particular protocol is that it uses - -datagrams, which are inherently unreliable, and as a result, the - -inference drawn by the CMCC is unreliable. From the fact that - -three datagrams fail to get through, it is quite a big jump to - -infer that no traffic at all can get through. Another problem is - -the periodicity of the test packets. If they get in phase with - -something else which may be going on in the network, spurious - -results may be produced. - - - The design of a Pathway up/down protocol must also be - -sensitive to the fact that some component network of a Pathway - -may be passing only certain types of packets and not others. For - -example, at times of heavy usage, certain networks may only be - -able to handle packets of high priority, and lower priority - -packets may either be refused by that net (at its access point), - -or, even worse, discarded internally by the net with no feedback. - - - 18 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -The Pathway up/down protocol must be sensitive to this, and will - -have to indicate that the Pathway is only "up" to certain classes - -of traffic. If a Pathway is really a Network Structure which - -will inform its Hosts when it cannot accept certain traffic - -types, then this information can be fed back into the up/down - -protocol. (Note however that this might be very difficult to do - -if the Pathway consists of not a single network, but of an - -internet). Alternatively, a Host may have to rely on its higher - -level Pathway up/down protocol to determine, for several classes - -of traffic, whether the Pathway is up to members of that class. - -Apart from the inherent difficulty of doing this, it may be - -difficult to map the traffic classes that a given component - -network distinguishes into traffic classes that are meaningful to - -a Host, or even to the Switches of the internet. Yet we wouldn't - -want traffic to be sent into a network which is not accepting - -that particular kind of traffic, especially if there are - -alternative Pathways which would be willing to accept that - -traffic. - - - Many of these considerations suggest that the higher level - -up/down protocols could turn out to be rather intricate and - -expensive. Remember that a gateway may have many many hosts - -"homed" to it, and must be able to determine, for each and every - -one of these hosts, whether communication with it is possible. - -Yet it probably is not feasible to suppose that each gateway can - -be continuously running an up/down protocol with each potential - - - 19 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -host, and still have time left to handle its ordinary traffic. - -This suggests that the primary up/down determination be made from - -the low-level protocol, i.e., that the Switches should rely on - -the networks underlying the Pathways to inform them whether a - -given Host is up or down, and the Hosts should similarly rely on - -the networks underlying the Pathways to pass them status - -information about the gateways. It would be best if the higher - -level up/down protocol only needed to be run intermittently, as a - -check on the reliability of the lower level protocol. - -Unfortunately, the use of low level up/down protocols is not - -always possible. Many networks, unlike the ARPANET, do not even - -gather any information about the status of their hosts, and hence - -cannot inform a source Host that it is attempting to send data to - -a destination Host which is not reachable. (SATNET is an example - -of a network that does not pass "destination dead" information.) - -In the case where a particular Host-Switch Pathway is itself an - -internet, the problem is even worse. Unless the component - -networks of that internet can be made to cooperate in obtaining - -RELIABLE up/down information and passing it back to the source - -Host, it will be very hard for a Host to make any reasonable - -determination as to whether a particular Switch is reachable. We - -would strongly recommend the incorporation of low level up/down - -protocols in ALL component networks of the internet. - - - There is another important problem in having a Host - -determine which of its potential source Switches on the internet - - - 20 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -are up and which are down. In order to run a protocol with the - -Switch, or even to query the lower level network about the - -Switch, the Host must have some way of identifying the Switch. - -It is not so difficult for a Host on the ARPANET to identify the - -IMPs that it is directly connected to, since it is quite simple - -to devise a protocol by which a Host can send a message down each - -of its access lines, asking who is on the other end. It is - -rather more difficult for a Host to find out which gateways it is - -homed to (i.e., which gateways are on a common network with it). - -There is no easy way for an ARPANET Host to find out which other - -ARPANET hosts are Catenet gateways. There is no "direct - -connection" at which to direct protocol messages. In the current - -Catenet, hosts have to know in advance how to identify the - -Catenet gateways on their networks (although there are certain - -restricted circumstances under which a host can obtain the name - -of another gateway from a gateway about which it already knows). - -Yet it does not seem like a good idea to require a Host to know, - -a priori, which other Hosts on its network are also internet - -Switches. This makes it difficult to enable Hosts to take - -advantage of newly installed gateways, without making changes by - -hand to tables in the Hosts (a procedure which could require - -weeks to take effect). There is a rather attractive solution to - -this problem. If each component network in the internet can - -determine for itself which of its Hosts are also internet - -Switches (gateways), then the Switches of that network can - - - - 21 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -provide that information to the Hosts. This would require the - -existence of a protocol which the gateways run with the Switches - -of the individual component networks, by means of which the - -gateways declare themselves to be gateways. Each individual - -network would also have to have some internal protocol for - -disseminating this information to other Hosts, and for keeping - -this information up to date. If the network allows GROUP - -ADDRESSING, further advantages are possible. The network could - -maintain a group address (called, say, "Catenet Gateways") which - -varies dynamically as gateways enter and leave the network. - -Hosts could find out which gateways are reachable over particular - -network access lines by sending some sort of protocol message to - -the group address, and waiting to see who replies. Hosts would - -then not have to have any a priori knowledge of the gateways on - -their home networks. - - - One very important though often neglected aspect of up/down - -protocols is the way in which the up/down protocol interacts with - -the ability to perform adequate maintenance of the Network - -Structure. It is tempting to think that a Pathway up/down - -protocol ought to declare a Pathway "down" only if it is totally - -dead or otherwise totally unusable. But in fact, a pathway - -should be declared down before it becomes totally dead, if its - -packet "non-delivery rate" exceeds a certain threshold. (We use - -the term "non-delivery rate" where the term "error rate" is more - -commonly used. We are trying to emphasize that it is important - - - 22 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -to detect not only errors, in the sense of checksum errors, but - -rather any circumstances, including but not limited to checksum - -errors, which prevent the proper delivery of packets.) There are - -two reasons for this: - - - 1) The existence of a non-zero non-delivery rate on a - - Pathway implies that some packets placed on that Pathway - - will not make it through to the other end. In most - - applications, these packets will have to be retransmitted - - at some higher level of protocol, or else by the end user - - himself (packetized speech is one of the few exceptions - - to this). As the number of retransmissions increases, - - the delay also increases, and the throughput decreases. - - So when the non-delivery rate reaches a certain point, - - the Pathway should be removed from service, in order to - - improve delay and throughput. Of course, this assumes - - that an alternate Pathway is available with a lower - - non-delivery rate. Also, other things being equal, - - removing bandwidth from a Network Structure will also - - tend to increase delay and reduce throughput, so we - - really want the up/down protocol to pick out the proper - - cross-over point. - - - 2) It is often better to fix a Pathway at the first sign of - - trouble than to wait for it to fail totally. One - - implication of this is that the up/down protocol should - - - - 23 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - perform equally well whether or not the Pathway is - - heavily loaded with traffic. We would not want to use a - - protocol which made its determination solely by making - - measurements of user traffic, since that protocol would - - not function well during periods when user traffic is - - very light. That is, a faulty Pathway with no user - - traffic would not be detected. Yet if repair work has to - - be done on a Pathway, we would most like to find out - - about it during lightly loaded hours, so that a fix can - - be effected with minimal disruption, possibly before the - - heavily loaded hours begin. - - - Another important characteristic for a Pathway up/down - -protocol to have is the ability to determine the nature of the - -Pathway "outage". This is quite important for fault isolation, - -but is easy for a host software person to overlook, since he may - -not be aware of such issues. If a Host cannot get its packets to - -a Switch over a certain Pathway, it will want to regard that - -Pathway as down, and will want to use an alternate Pathway. From - -the Host perspective, it doesn't care whether the reason it can't - -use the Pathway is because of a network partition, or because of - -network congestion, or because of some other reason. However, if - -the Host personnel want to be able to call up the Pathway - -personnel and request that the problem be fixed, it's not enough - -to say, "Your network isn't working; call me back when it's - -fixed." The more information the Pathway up/down protocol can - - - 24 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -gather, the quicker a fix can be effected. In the case where the - -Pathway is the ARPANET, quite a bit of information can be - -gathered from proper instrumentation of the 1822 module, and - -proper attention by the host software to the 1822 replies; this - -will be discussed further in section 2.6. - - - The design of the ARPANET's line up/down protocol might be a - -good model for the design of a general Pathway up/down protocol. - -The design of the ARPANET protocol was based upon a mathematical - -analysis of the probabilistic error characteristics of telephone - -circuits, and the protocol is intended to bring a line down when - -and only when its error rate exceeds a threshold. However, the - -error characteristics of Pathways in general (i.e., of - -packet-switching networks) are not well understood at all, and - -there is no similar mathematical analysis that we can appeal to. - -At present, we can offer no ready answer to the question of how a - -Host can tell which of several possible source Switches is - -reachable, if the Switches are accessed via a network (or - -sequence of networks) which will not even inform the Host whether - -or not its traffic even gets delivered. This is an important - -question which will require further thought, and considerable - -experimentation. - - - - - - - - - - - 25 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -2.2 Choosing a Source Switch - - - Once a Host has determined which source Switches it can - -reach over which of its interfaces, it still has to determine - -which one to use for sending some particular packet (unless the - -Host is "lucky" enough to find out that only one source Switch is - -reachable). Making the proper choice can be quite important, - -since the performance which the Host gets may vary greatly - -depending upon which source Switch it selects. That is, some - -source Switch might be much closer to the destination, in terms - -of delay, than another. It then might be quite important to - -choose the proper one. To make things a bit more concrete, - -consider the case of a Host which is multi-homed (via several - -distinct 1822 links) to several ARPANET IMPs, and whose traffic - -can be handled entirely within the ARPANET. There are several - -things a host might want to take into account in choosing the - -best source IMP to use for a particular packet, including: - - - 1) The loading on the 1822 access line to each possible - - source IMP. - - - 2) The distance between each source IMP and the destination - - Host, for some notion of "distance." - - - The first of these two quantities is relatively easy to - -obtain, since all the Host need do is monitor its own 1822 lines; - -it should be possible to devise a monitoring scheme which - - - - 26 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -indicates which of the 1822 lines is providing the best service - -to its IMP, perhaps simply by measuring the queuing delay - -experienced in the Host by messages queued for that line. (Any - -such measurement would have to take into account some of the - -niceties of the 1822 protocol, though.) Obtaining information - -about the second quantity is more difficult. The Host might try - -to keep some measurement of round-trip delay (delay until a RFNM - -is received) between itself and each destination Host. However, - -in order to do this, some traffic for each destination Host would - -have to be sent over each access line, so that the delay could be - -measured. This means that some traffic has to be sent over a - -long delay path, simply in order to determine that that is a long - -delay path. A simpler scheme might be for the Host to get delay - -information from the IMP. A Host could ask each potential source - -IMP what its delay to the destination Host is. By using this - -information, plus the information it gathers locally about the - -loading of its access lines, the Host could determine which - -source IMP provides the shortest path to the destination. - - - This would require that we define a protocol by which a Host - -can ask the IMPs to which it is homed to provide their delays to - -a destination Host. The Host could make these requests - -periodically, and then change its selection of source IMPs as - -required in order to react to changes in delay. There are a few - -subtle protocol issues to be considered here, though. We would - -have to make sure that a Host cannot beat a Switch to death by - - - 27 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -constantly asking it what its delays are; probably we would have - -to give the Switch the option of not replying to these requests - -if it is too busy with other things (like ordinary data traffic). - -A bigger problem lies in the assumption that the Switches will - -even have this data to provide. The routing algorithm used by - -the ARPANET IMPs does, in fact, provide each IMP with a value of - -delay, in milliseconds, to each other IMP in the network. There - -is no reason why this information could not be fed back to the - -hosts on request. Note, however, that while a source IMP knows - -its delay to each possible destination IMP, it does not know its - -delay to each potential destination HOST over each possible - -access line to that Host, since the routing algorithm does not - -maintain measurements of delay from an IMP to a locally attached - -host. Yet this latter delay might be quite significant. Still, - -the information that the ARPANET IMPs could provide to the Hosts - -should enable them to make a better choice than they could make - -without this information. - - - Another problem with this idea of having the Switches feed - -back delay information to the Hosts is the proper choice of - -units. If a Host is going to take the delay information provided - -by the network and then add some locally measured delay - -information to it, it is important for the Host to know what - -units the network is using to measure delay. Yet we also have to - -ensure that the network developers and maintainers are free to - -change the way in which the network does measurements, and the - - - 28 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -units in which the measurements are taken, WITHOUT NEEDING TO - -COORDINATE SUCH CHANGES WITH ALL HOST ADMINISTRATIONS. That is, - -we don't want further development of the network, and further - -refinements in the way network measurements are done, to be - -overly constrained by the fact that the Hosts demand measurements - -in a certain unit. We also want to ensure that host software - -implementations are not invalidated by a decision to change the - -units that the network uses for its internal measurements. So - -the protocol would have to enable the Switch to tell the Host - -what units it is providing; the Host would then make any - -necessary conversions. (Alternatively, the Host could tell the - -Switch what units it wants, and the Switch could do the - -conversion before sending the information to the Host.) - - - In the internet environment, the situation is more - -complicated. An ARPANET Host which is also an internet Host - -would have to (a) figure out its delay to each of its source - -IMPs, (b) query each source IMP for its delay to each source - -gateway, and (c) query each source gateway about its delay to - -each destination. There is no straightforward way to gather the - -rest of the needed delay information, however, namely the delay - -from the destination gateway to the destination Host. In more - -complex Network Structures, with internets nested on top of - -internets, this problem becomes increasingly more complex. It - -seems that the only really reliable way, and the most - -straightforward way, for the source Host to gather information - - - 29 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -about the delays via various source Switches to a destination - -Host, is for it to do the measurements itself. This is the - -recommended solution. Delay information should also be made - -available from the component networks for Hosts which cannot do - -this, but it should be understood that those hosts cannot expect - -to get as good a quality of service as the hosts which go to more - -trouble to do their own measurements. - - - -2.3 Type of Service - - - One very important piece of information that a Host must - -specify to the source Switch through the Network Access Protocol - -is the "type of service" desired. To quote from the DoD standard - -Internet Protocol (IP) specification [1, p. 15], "The Type of - -Service is used to indicate the quality of the service desired; - -this may be thought of as selecting among Interactive, Bulk, or - -Real Time, for example." This seems to make sense, since one - -does have the feeling that different types of applications will - -fall into different categories, and information about the - -categories may help the Switches of the Network Structure through - -which the data is moving decide how best to treat it. However, - -choosing just the right set of categories of service is quite a - -complex matter. For example, both a terminal user of a - -time-sharing system, and a user of a query-response system (like - -an automated teller) fall under the rubric of "interactive", but - -that doesn't mean that the service requirements are the same. - - - 30 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -Both Remote-Job-Entry and File Transfer fall under the rubric of - -"bulk", but it is not obvious that they have the same - -requirements. Both real-time process control and packetized - -voice fall into the category of "Real Time", but the requirements - -of these two applications seem to be very different. A very real - -issue, which has not yet been given adequate consideration, is - -the question of just how many categories of application type - -there really should be, and just what the implications of putting - -a packet into one of these categories ought to be. As we go on, - -we will see a number of problems that arise from failure to - -carefully consider this issue. - - - It is rather difficult to find examples of Network Access - -Protocols which have really useful class-of-service selection - -mechanisms. The 1822 protocol allows the user to select from - -among two priorities; it allows the choice of single-packet or - -multi-packet messages; it allows the choice between "raw packets" - -and "controlled packets." It is up to some user (or more - -realistically, up to some host software implementer who may have - -only a vague and limited understanding of the applications which - -his software will serve, and of the network that he is accessing) - -to map his application characteristics onto these three choices. - -Unfortunately, it is doubtful that there is anyone outside of the - -ARPANET group at BBN with any clear understanding of the - -implications of making the various choices. The task of making - -the optimum choice for some application is further complicated by - - - 31 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -the fact that the effects of making the various choices can be - -very dependent on the network load. For example, it is often - -possible to get more throughput from single-packet messages than - -from multi-packet messages. This will happen if the destination - -IMP has several different source Hosts sending multi-packet - -messages to it, but is short on buffer space (as many of the - -ARPANET IMPs are), and if the multi-packet messages contain only - -two or three packets per message. Not only is this sort of thing - -very difficult for an arbitrary user to understand (to a naive - -network user, it must seem ridiculous), it is also subject to - -change without notice. Although users can vary their service - -significantly by sending optimum size messages, the principles - -governing the "optimum" size are very obscure, and we cannot - -really expect users to map their application requirements onto - -this network feature in any reasonable manner. - - - A similar problem arises with respect to the priority bit - -that the 1822 protocol allows. Basically, a priority packet will - -get queued ahead of any non-priority packets on the queues for - -the inter-IMP links and on the queues for the IMP-Host access - -lines. However, priority packets receive no special preference - -when competing with non-priority packets for CPU cycles or for - -buffer space. Also, there is no notion at all in the ARPANET of - -refusing to accept low priority packets because the network is - -already too heavily loaded with high priority packets. Although - -someone who has carefully studied the ARPANET might be able to - - - 32 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -say what the effect of setting the priority bit is under some - -particular set of circumstances, some user who is wondering - -whether his application requirements are best served by setting - -the priority bit really has no way of answering that question. - -The actual effect of the priority bit does not fully correspond - -to any intuitive notion of priority that an arbitrary user is - -likely to have. Another problem: although it is presently - -allowed, it is not really a good idea to let the users choose - -whether to set the priority bit or not. Fortunately, most hosts - -do not submit packets with the priority bit on. It wouldn't be - -terribly surprising, though, if some host software implementer - -decided that he would always set the priority bit, in order to - -get faster service. Of course, overuse of the priority bit just - -means that it will have no effect at all, and that seems to mean - -that its use must be controlled in some way, and not simply left - -up to each user, as in the 1822 protocol. - - - The IP offers even worse problems than 1822 in these - -respects. Like 1822, the IP does not really allow the user to - -classify his traffic according to application type. Rather, it - -forces him to pick one of 5 possible precedence values (from - -highest to lowest precedence, whatever that means, exactly), to - -pick one of 4 reliability values (from most to least reliable), - -to indicate whether he wants his data to be stream data or - -datagram data in component networks for which this distinction is - -meaningful, to indicate whether he wants high or low speed, and - - - 33 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -to indicate whether speed is more important to him than - -reliability is. The idea here, apparently, is that any user can - -map his application requirements into certain abstract - -properties, and the information which the IP passes from the Host - -to the source Switch is supposed to indicate which of these - -abstract properties the user needs. At each internet hop, these - -abstract properties are supposed to be mapped to particular - -properties that are meaningful to the network in question. The - -Pathway Access Protocol for that network would then be used to - -indicate to the Switches of that component network what - -particular properties the data transfer should have within that - -network. In fact, the only apparent use of the "type of service" - -information in the internet Network Access Protocol (IP) is to - -carry information to be passed to the individual Pathway Access - -Protocols. - - - This all sounds reasonable enough when considered in the - -abstract, but it gives rise to a large number of vexing problems - -when we attempt to consider particular ways in which this "type - -of service" information is to be used. Empirically, it seems - -that few current gateway implementations take any notice of this - -information at all. We suggest that the problem is not that the - -individual implementers have not had time to write the code to - -take account of this information, but rather that it is far from - -clear how this information should be handled, or even that this - -information is really meaningful. We suggest further that an - - - 34 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -internet user would also have a great deal of difficulty deciding - -how to specify the "type of service" information in order to get - -a specific quality of service needed by his application. - - - Suppose a user needs the maximum possible speed for his - -application, so he uses IP to indicate that he values speed above - -all else. What would the current Catenet do? For concreteness, - -suppose there is a choice of sending this user's data either via - -a sequence of 4 low-delay terrestrial networks, or through three - -satellite networks, each of which contains two satellite hops. - -The current implementation of the Catenet would send the data - -through the three satellite networks. However, since the user - -indicated that he values speed above all else, he will get the - -fastest service that each of the satellite networks can provide! - -Of course, this may not be what the user will have expected when - -he asked for speed, since the fastest service through a satellite - -network is not fast. A user may well wonder what the point of - -specifying speed is, if his data is going to traverse some - -sequence of satellite networks, even if a much faster path is - -available. Furthermore, it is not correct to assume, in general, - -that a user who values speed will really want the speediest - -service through every network. If traffic must go through a - -satellite network, it may be important to try to get one-hop - -rather than two-hop delay, if this is possible. Yet it may not - -be economical to also try to get the speediest service through - -all terrestrial networks; the difference between high and low - - - 35 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -speed service through a terrestrial network might be "in the - -noise", even when compared to the shortest delay through the - -satellite network. It is not impossible, or even unlikely, that - -better overall service (or more cost-effective service) can be - -achieved by using the fastest possible service through some - -networks, but less than the fastest through others. There are - -two immediate lessons here. First, the characteristics that a - -user specifies in the Network Access Protocol may require some - -interaction with routing, since the characteristics he desires - -simply cannot be provided, in general, by sending his traffic - -through a random series of networks, and then mapping information - -he specifies in the Network Access Protocol into information - -carried in the individual Pathway Access Protocols. Second, what - -a user means intuitively by "speed" just may not map into what - -some particular component net means by "speed". Once again, we - -see that the basic problem stems from the differing - -characteristics of the Pathways in the Network Structure. - - - Another peculiar feature of the IP is the mysterious "S/R - -bit", which a user is supposed to set to indicate whether he - -prefers speed over reliability, or vice versa, should these - -conflict. One unsuitable aspect of this is the apparent - -assumption that it even makes sense to prefer either speed or - -reliability over the other, without specifying more detail. It - -is easy to imagine that some user is willing to accept - -reliability of less than 100% if he can increase his speed - - - 36 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -somewhat. It is also easy to imagine that a user would be - -willing to accept somewhat slower service if it gives him higher - -reliability. But there will always be a range that the user - -wants to stay within. If his reliability must be moved below a - -certain threshold in order to get more speed, he may not want - -this, even if he would be willing to say that he prefers speed to - -reliability. Similarly, if his delay must go above a certain - -threshold to gain more reliability, he may not want this, even - -if, when talking in general terms, he says that he needs - -reliability more than speed. It really doesn't make any sense at - -all to try to map a particular application type into "speed over - -reliability" or "reliability over speed", unless ranges and - -thresholds are also specified. What this means in practice is - -that a user will not be able to make a reasonable choice of how - -to set this bit in the IP header; whatever he sets it to is bound - -to produce results other than those he expects under some not too - -uncommon set of circumstances. - - - We do not want to leave unquestioned the tacit assumption - -that speed and reliability are opposing virtues, so that - -increasing one must be expected to decrease the other. To quote - -again from the IP spec, "typically networks invoke more complex - -(and delay producing) mechanisms as the need for reliability - -increases" [1, p 23]. This reasoning is somewhat superficial. - -It may be true that in some networks, the less reliable kinds of - -service are speedier, but this is not invariably the case. To - - - 37 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -see this, consider the following (fictitious) network. This - -network allows the user to request either "reliable" or - -"unreliable" data transfer. Reliable packets are controlled by a - -set of protocols, both at the end-end and hop-hop level, which - -ensure delivery. Unreliable packets are not under the control of - -any such protocols. Furthermore, reliable packets go ahead of - -unreliable ones on all queues, in particular, the CPU queue. In - -addition, unreliable packets can be flushed from the net at any - -time, if some resource they are using (such as buffer space) is - -needed for a reliable packet. These latter two measures are - -needed to ensure that the net does not become so heavily loaded - -with unreliable packets that there is no room for the reliable - -ones. (It would not make much sense to advertise a "reliable" - -service, and then to allow the unreliable packets to dominate the - -network by using most of the network resources. If unreliable - -packets could grab most of the resources, leaving the "reliable" - -ones to scavenge for the left-over resources, then it would be - -virtually inevitable that the service received by the - -"unreliable" packets would appear, to the users, to be more - -reliable than the service received by the "reliable" packets. To - -achieve a true dichotomy between reliable and unreliable service, - -the reliable packets must be given priority in all respects over - -the unreliable ones. We should also remember, by the way, that - -although many protocols combine features of reliability, - -sequentiality, error control, and flow control, these are not the - - - - 38 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -same, and there is no reason why a network might not offer a - -reliable but unsequenced service). This sort of network design - -seems quite reasonable, perhaps more reasonable than the design - -of any existing network. It would allow for a (presumably - -inexpensive) class of service ("unreliable") which would be able - -to use only those network resources not needed by the more - -reliable (and expensive) class of packets, and which would not - -suffer any additional delay due to the presence of the protocols - -which would be needed to ensure reliability. In such a network, - -unreliable packets might well experience less delay than reliable - -ones, WHEN THE NETWORK IS LIGHTLY LOADED; WHEN IT IS HEAVILY - -LOADED, HOWEVER, RELIABLE PACKETS WOULD TEND TO EXPERIENCE THE - -SMALLER DELAY. If this is the case, it is hard to see how a user - -could be expected to make a reasonable choice of IP service - -parameters at all. He may know what his needs are, but we can - -hardly expect him to know how to map his needs onto particular - -aspects of the behavior of a particular network component of an - -internet, especially when the behavior determined by that mapping - -will vary dynamically with the network loading, and hence with - -the time of day. - - - Two other peculiarities of the "type of service" feature of - -the IP are worth mentioning. First, there seems to be no notion - -of the relation between speed and priority, though in many - -networks, the priority of a message is the major determinant of - -its speed. (There are, to be sure, networks which attempt to - - - 39 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -treat priority solely as "acceptance class", differentiating it - -completely from considerations of speed. However, we know of no - -network implementation which has been shown to differentiate - -SUCCESSFULLY between these two concepts, and there is reason to - -doubt that this differentiation is even possible in principle.) - -Second, one of the choices to be made is whether to prefer stream - -or datagram service. This is a clear example of something that - -is not based on "abstract parameters of quality of service", but - -rather on a particular feature of one or two particular networks. - -Requesting stream service will NOT do what a user might expect it - -to do, namely set up a stream or virtual circuit through the - -entire internet. This would require a lengthy connection set-up - -procedure, involving reservations of resources in the gateways, - -which resources are to be used only for specific connections. If - -we are really serious about providing stream service, this is - -just as important as obtaining stream service within the - -component networks serving as the Pathways of the internet. - -Indeed, it is hard to imagine any real use for an internet - -"stream service" which treats packets as datagrams during most of - -their lifetime in the internet, and then treats them as stream - -packets in one or two component networks. It must be remembered - -that the sort of stream service provided by a network like SATNET - -is only useful to a user if his data appears at the SATNET - -interface at fixed periods, synchronized with the scheduling of - -the stream slots on the satellite channel. If the data must - - - - 40 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -first travel through several datagram networks before reaching - -SATNET, IT IS VIRTUALLY IMPOSSIBLE THAT THE DATA WILL ARRIVE AT - -SATNET WITH THE PROPER PERIODICITY to allow it to make proper use - -of the SATNET stream. Now there are certain specific cases where - -it might be possible to provide some sort of stream service, say - -if some data is going from a local network through SATNET to - -another local network and thence directly to the destination - -Host. (Though even in this case, some sort of connection set-up - -and reservation of resources in the gateways between SATNET and - -the local networks would probably be necessary.) Note, however, - -that if a user requests this type of service, he is also - -constraining the types of routes his data can travel. If SATNET - -is not available, he might not want to use the internet at all at - -that time. Or he might be willing to tolerate a less optimal - -route ("half a loaf is better than none"), but might not want - -"stream service" if the less optimal route has to be used. In no - -case can a type of service like "stream" be obtained simply - -through the mapping of "type of service" in the internet onto - -"type of service" in the component networks. - - - We do not want to have a Network Access Protocol that will - -need to be infinitely expandable, so that the user can indicate - -the type of service he wants in each particular network that his - -data may eventually travel through. For one thing, as the - -internet becomes larger, so that there are more paths between - -each possible source and destination, the users will not - - - 41 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -generally know what set of networks their data will travel - -through. Since the number of component networks in the internet - -may be continually increasing, and since we cannot anticipate in - -advance the features that each new network may offer, it does not - -really seem reasonable to have to keep adding fields to the IP, - -to account for particular characteristics of each new component - -network. Yet this seems inevitable with the current approach. - -That is, we do not agree with the claim in the IP spec that the - -type of service field in the IP indicates "abstract parameters". - -Rather, we think the type of service field has been constructed - -with certain particular networks in mind, just those networks - -which are currently in the Catenet, and that the various service - -fields have no meaning whatsoever apart from the particular - -"suggested" mappings to protocol features of specific networks - -given in the spec. (And since these mappings are only - -"suggested", not required, one might wonder whether the type of - -service field really has any consistent meaning at all). This - -situation is perhaps tolerable in a research environment, where - -most of the users of the internet are explicitly concerned with - -issues of networking, and willing to try a large number of - -experiments to see what sort of service they get. One must - -remember, however, that in a truly operational environment, the - -average user will not be concerned at all about networking, will - -not know anything about networking, will not care about - -networking, and will only want the network to appear transparent - - - - 42 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -to him. In order for such a user to make successful use of the - -type of service field in a Network Access Protocol, the - -parameters of the field must be meaningful to him. If they are - -only meaningful to network experts, the user will never be able - -to figure out how best to set these parameters. - - - Rather than providing a type of service specification which - -is nothing but a sort of "linear combination" of the types of - -service provided by the component networks, the internet ought to - -offer a small, specific number of service types which are - -meaningful at the application level. The possible values of - -internet service type might be "interactive session," - -"transaction," "file transfer", "packetized speech," and perhaps - -a few others. The categories should be simple enough so that the - -user can figure out which category his particular application - -falls into without needing to know the details of the operation - -of the internet. The Switches of the internet should take - -responsibility for sending the data on a route which is capable - -of providing the requested type of service, and for sending the - -data through component networks of the internet in a way which - -maximizes the possibility that the type of service requested will - -actually be achieved. Of course, in order to do this, we must - -first answer a couple of hard questions, such as "Exactly what - -characteristics of service do users want and expect for - -particular applications?", and "What features must the internet - -Switches have, and what features must the component networks - - - 43 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -have, in order to provide service with the necessary - -characteristics?" In order to give adequate communications - -service in an operational environment, however, these questions - -must be given careful consideration by internet designers. To - -some extent, these questions are difficult research issues, and - -answering them will require doing some systematic experimentation - -and instrumentation in the internet. The problem is hard, but - -unavoidable. The IP's current approach seems aimed at - -side-stepping these issues, since it places the burden entirely - -on the user. It tends to give users the illusion that, by - -properly specifying the bit fields in the IP header, they can - -tune the internet to provide them with the specific type of - -service they find most desirable. This is, however, only an - -illusion. The perspective taken by the current IP seems to be - -not, "How should the internet be designed so as to provide the - -needed characteristics of service while providing a simple - -interface to the user?", but rather, "Taking the current design - -of the internet as a given, how can we give the user the ability - -to massage, bend, and twist it so as to get service - -characteristics which might be close to what he wants?" The - -former perspective seems much more appropriate than the latter. - - - Although we are not at present prepared to offer an - -alternative to IP, there are several lessons we would like to - -draw from this discussion: - - - - - 44 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - 1) While an internet Network Access Protocol really does - - need to contain some field which indicates the desired - - type of service in a manner which is abstract enough to - - be mapped to particular protocol features of particular - - networks, the proper specification of a sufficiently - - abstract set of parameters is an open and difficult - - research issue, but one which needs to be studied if an - - operational internet configuration is ever to give really - - adequate service to a relatively naive end-user. - - - 2) Providing the requested type of service may require - - cooperation from all the Switches (perhaps through the - - routing algorithm), and involves more than just mapping - - fields from the internet Network Access Protocol to the - - particular access protocols used by the component - - networks. If the type of service requested by the user - - is to be consistently meaningful, then his request must - - be given UNIFORM treatment by the internet Switches. - - Different gateways must not be allowed to treat the - - request differently. - - -2.4 Special Features - - - The DoD Standard Internet Protocol contains a number of - -features which, while not strictly necessary in order for a user - -to get his data delivered, and distinct from the type of service - -field, do affect to some extent the service a user gets from the - - - 45 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -internet. Some of the features are worthy of comment, and that - -is the purpose of this section. - - -2.4.1 Time to Live - - - The presence of the "time-to-live" field in the Catenet IP - -seems like a clear example of something that has no place in an - -access protocol. The IP specification [1] has some contradictory - -things to say about time-to-live. The user is supposed to set - -this field to the number of seconds after which he no longer - -cares to have his information delivered, or something like that. - -It's far from clear how some user is supposed to make a decision - -as to what value to set this to. For one thing, although this - -value is supposed to be represented in units of one second [1, p. - -24], there does not appear to be any requirement for the gateways - -to figure out how many seconds to decrement this value by. The - -spec actually says that each gateway should decrement this field - -by at least one, even if it has no idea how much time has - -actually elapsed [1, p. 40]. Well, a user might ask, is this - -field represented in seconds or isn't it? What is the point of - -saying in the spec that it is in seconds, if it is not - -necessarily in seconds; this will only result in confusion. That - -is, any attempt by a user to set this field to a reasonable value - -is likely to have unanticipated consequences. Any attempt to - -make inferences about internet behavior from the effect that - -various settings of the time-to-live field will necessarily be - -unreliable. - - 46 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - At any rate, unless the Switches all keep a synchronized - -clock, there is no real way for them to determine how long a - -packet has been in the network (or internet), as opposed to how - -much time it has spent in the Switches, and this difference may - -be significant if a packet is sent over several long-haul - -networks with long-delay lines but fast Switches. It's hard to - -see the point of requiring a user to specify, in the Network - -Access Protocol, a value which cannot be assigned any consistent - -meaning. (It's not clear what value this information has anyway; - -according to the IP spec, "the intention is to cause - -undeliverable datagrams to be discarded" [1, p. 24]. But a - -reasonable routing algorithm should cause undeliverable datagrams - -to be discarded anyway, no matter what value is specified for - -time-to-live). - - - It seems plain in any case that over the years, Host - -personnel will begin to tend to set this field to its maximum - -value anyway. In most implementations, the setting of this field - -will not be left to the end-user, but will be in the code which - -implements the IP. Several years from now, no one will remember - -the importance of setting this field correctly. Eventually, - -someone will discover that the data he sends to a certain place - -does not get through, and after months of intensive - -investigation, it will turn out that his IP is setting too small - -a value in the time-to-live field, and his packets are dying just - -before they reach their destination. This will make people tend - - - 47 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -to use the maximum value as a default, reducing the utility of - -the information to almost nil. (No one will want to spend the - -time re-tuning this value to the optimum as the internet - -configuration expands, causing real packet delays to become - -longer and longer. In fact, at many Host sites there may not be - -anyone who can figure out enough of the Host code to be able to - -re-tune this value.) - - - Time-to-live, while useful for debugging purposes (perhaps), - -has no real place in an operational system, and hence is not - -properly part of a Network Access Protocol. If the Switches of a - -Network Structure want to perform packet life timing functions, - -in a way which is under the control of a single network - -administration, and easily modified to reflect changing - -realities, that is one thing. It is quite a different thing to - -build this into a Host-level protocol, with a contradictory spec, - -where it will certainly fall into disuse, or misuse. Protocol - -features which are only useful (at best) for network - -experimenters and investigators are bound to cause trouble when - -invoked at the Host level, as part of a protocol which every Host - -must implement, and whose implementers may not fully understand - -the implications of what they are doing. - - - Some of these difficulties have, as their basic cause, the - -old implicit model of the internet that we discussed in IEN 185. - -The IP conflates protocol features that properly belong to the - - - - 48 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -Network Access Protocol with features that properly belong to the - -protocol used internally among the Switches. This sort of - -conflation, and consequent violation of protocol layering, are - -inevitable if the gateways are seen as hosts which patch networks - -together, rather than as Switches in an autonomous Network - -Structure. - - -2.4.2 Source Routing - - - The current IP has a feature known as "source routing," - -which allows each user to specify the sequence of networks that - -his internet packet is to travel. We mention this primarily as - -an example of something that a Network Access Protocol in a truly - -operational environment ought not to have. An acceptable - -internet routing algorithm ought to distribute the traffic in - -order to achieve some general goal on an internet-wide basis, - -such as minimizing delay, maximizing throughput, etc. Any such - -routing algorithm is subverted if each user is allowed to specify - -his own route. Much of the routing algorithm's ability to - -prevent or avoid congestion is also compromised if certain - -packets are allowed to follow a route pre-determined by some - -user, even if the routing algorithm determines that best service - -(either for those packets themselves, or for other packets in the - -internet) would be obtained if those packets followed a different - -route. - - - - - - 49 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - To a certain extent, the presence of the source routing - -option in the IP is probably a result of the rather poor routing - -strategy in the present Catenet, and a way of attempting to - -obtain better service than the routing algorithm can actually - -provide. The long-term solution to this problem would be to - -improve the routing algorithm, rather than to subvert it with - -something that is basically a kludge. We would claim that the - -existence of any application or service that seems to require the - -use of source routing is really an indication of some lack or - -failure in the design of the internet, and a proper long-term - -solution is to improve the situation by making basic - -architectural changes in the internet, rather than by grafting on - -new kludges. - - - Source routing also has its use as an experimental device, - -allowing tests to be performed which might indicate whether it is - -really worthwhile to add some new feature or service to the - -internet. (Although the way in which source routing subverts the - -basic internet routing algorithm can have disturbing side-effects - -on the experimental results, which must be properly controlled - -for.) However, we doubt that any truly useful experiments - -requiring source routing can be performed by individual users in - -isolation. Rather, useful experiments would seem to require the - -cooperation and coordination of the participating users as well - -as those who are responsible for controlling and maintaining the - -internet. So it is not clear that there is any true utility to - - - 50 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -having a source routing option at the level of the Network Access - -Protocol, thereby giving each and every user the option of using - -it. In an operational environment, this feature should either be - -eliminated, or controlled through the use of authorizations, - -which would cause gateways to discard source-routed packets which - -lack proper authorization. - - -2.4.3 Fragmentation and Reassembly - - - One of the few problems which is really specific to an - -internet whose pathways consist of packet-switching networks is - -the fact that it is difficult to specify to the user a maximum - -packet size to use when giving traffic to the internet. If a - -user's traffic is to go through EVERY component packet-switching - -network, then the maximum packet size he can use is that of the - -component network with the smallest maximum packet size. Yet it - -seems unwise to require that no user ever exceed the maximum - -packet size of the component network with the smallest maximum - -packet size. To do so might lead to very inefficient use of - -other component networks which permit larger packet sizes. If a - -particular user's traffic does not happen to traverse the - -component network with the smallest maximum packet size, the - -restriction really does no good, and only leads to inefficiency. - -Since, in a large internet, most traffic will probably traverse - -only a small subset of the component networks, this is quite - -important. In addition, some Hosts with limited resources might - - - - 51 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -have a high overhead on a per-packet basis, making it quite - -important to allow them to put larger packets into the internet. - - - This gives rise to the question of, what should an internet - -Switch do if it must route a packet over a certain Pathway, but - -that packet is larger than the maximum size of packets that can - -be carried over that Pathway? The solution that has been adopted - -in the current Catenet is to allow the internet Switches to - -"fragment" the packets into several pieces whenever this is - -necessary in order to send the packet over a Pathway with a small - -maximum packet size. Each fragment of the original packet is now - -treated as an independent datagram, to be delivered to the - -destination Host. It is the responsibility of the destination - -Host to reassemble the original packet from all the fragments - -before passing it up to the next highest protocol layer. (If the - -destination happens to have a high per-packet overhead, too bad.) - - - The IP has several features whose only purpose is to enable - -this reassembly. These features are extremely general, so that - -fragments can be further fragmented, ad infinitum, and correct - -reassembly will still be possible. However, it seems that this - -feature has not had very much operational testing in the Catenet; - -gateway implementers seem to be as reluctant to actually - -implement fragmentation as Host implementers are to implement - -reassembly. If at least one gateway does do fragmentation, then - -if some Host does not do reassembly, it cannot, in general, talk - - - - 52 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -to any other Host on the internet. If a source Host knows that a - -destination Host does not do reassembly, then it can, through IP, - -indicate to the gateways that they ought not to fragment. - -However, in that case, any datagrams that are not fragmentable - -but which must be transmitted over a Pathway with a smaller - -maximum packet size are simply lost in transit. - - - It should be noted that the procedure of doing reassembly in - -the destination Host violates the precepts of protocol layering - -in a basic way. The internet is not transparent to protocol - -modules in the Hosts, since a datagram put into the internet by a - -protocol module in the source Host might appear at the - -destination Host in quite a different form, viz., as a set of - -fragments. One might try to avoid this conclusion by claiming - -that what we have been calling "the Host software modules" are - -really part of a Switch, rather than part of a Host, so that no - -transparency is violated. One could also claim that a dog has - -five legs, by agreeing to call its tail a leg. But this would no - -more make a tail a leg than calling a Host software module "part - -of the network" makes it so. One of the main advantages of - -properly layered protocols is the ability it provides to change - -the network without having to change the Hosts. This is needed - -if changes to the network are even to be possible, since any - -change that requires Host software to change is, for all - -practical purposes, impossible. This suggests that the boundary - -of the network be drawn at the boundary where changes are - - - 53 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -possible without coordination among an unlimited number of Host - -administrations, and the natural place to draw this boundary is - -around the Switches. While the Switches of a Network Structure - -can all be under the control of a common administration, the - -Hosts cannot. This suggests that any violation of protocol - -layering that is as gross as the need to have Hosts do reassembly - -is a problem that is to be avoided whenever possible. - - - The problems of writing Host-level software to do reassembly - -in a reliable manner do not seem to have been fully appreciated. - -If a Host's resources (such as buffer space, queuing slots, table - -areas, etc.) are very highly utilized, all sorts of performance - -sub-optimalities are possible. Without adequate buffer - -management (see IEN 182), even lock-ups are possible. One must - -remember that reassembly is not a simple matter of sending the - -fragments to the next higher level process in proper sequence. - -The situation is more complex, since the first fragment of a - -datagram cannot be sent up to the next higher protocol level - -until all the fragments of that datagram are received. If - -buffers are not pre-allocated at the destination Host, then - -fragments of some datagrams may need to be discarded to ensure - -that there is room to hold all the fragments of some other - -datagram; otherwise "reassembly lockup" is possible. If the - -internet gateways really did a large amount of fragmentation, so - -that Hosts needed to do a large amount of reassembly, this would - -almost certainly give rise to a variety of peculiar performance - - - 54 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -problems and phasing effects which could make the recently - -discovered "silly window syndrome" look quite benign. - -Unfortunately, it is hard to gain an appreciation of these sorts - -of problems until one has personally encountered them, at which - -point it is often too late to do anything about them. - - - Performance considerations (as opposed simply to - -considerations of functionality) would seem to indicate that - -fragmentation and reassembly be avoided whenever possible. Note - -that performance problems associated with reassembly might crop - -up suddenly at any time in the life of the internet, as some Host - -which rarely received fragments in the past suddenly finds itself - -bombarded with them, possibly due to a new application. Since - -this sort of effect is notoriously difficult to test out in - -advance, one would expect potential problems to be lying in wait. - -Problems like these tend to crop up at a time when the Host - -administration has no one available who understands and can - -modify the Host software, which means that such problems can be - -very intransigent and difficult to remedy. Of course, problems - -in Host networking software are usually blamed on the network - -(i.e., on the Switches), which also does not help to speed - -problem resolution. - - - One way to remove this sort of problem from the Host domain - -is to have the destination Switches themselves do any necessary - -reassembly before passing a datagram on to its destination Host. - - - - 55 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -This has the advantage that problems which arise will fall under - -the domain of the Network administration, which is more likely to - -be able to deal with them than are the various Host - -administrations. However, this really does not simplify the - -situation, or reduce the amount of performance sub-optimalities - -that we might be faced with; it just takes the same problems and - -puts them somewhere else. ARPANET IMPs do fragmentation (though - -only at the source IMP) and reassembly at the destination IMP, - -and this has turned out to be quite a tricky and problem-strewn - -mechanism. Other approaches should be investigated. - - - Of course, one possible way around fragmentation is to adopt - -a policy of not routing any packets over Pathways which cannot - -handle packets of that size. If there are several possible - -routes between source and destination, which have similar - -characteristics except for the fact that one of them has a - -maximum packet size which is too small, the most efficient means - -of handling this problem might just be to avoid using the route - -which would require fragmentation. Even if this means taking a - -slightly longer route to the destination, the extra delay imposed - -during internet transit might be more than compensated for by the - -reduction in delay that would be obtained by not forcing the - -destination Host to do reassembly. Of course, this scheme - -requires interaction with routing, but as long as there are a - -small number of possible maximum packet sizes, this scheme is not - -difficult to implement (at least, given a reasonable routing - -algorithm). - - 56 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - Unfortunately, it might be the case that there just is no - -route at all to a particular destination, or else no reasonable - -route, which does not utilize a Pathway whose maximum packet size - -is "too small." In this case, there seems no way around - -fragmentation and reassembly. However, a scheme which is worth - -considering is that of doing hop-by-hop fragmentation and - -reassembly within the internet. That is, rather than having - -reassembly done at the destination (Switch or Host), it is - -possible to do reassembly at the Switch which is the exit point - -from a component network which has an unusually small packet - -size. Datagrams would be fragmented upon entry to such networks, - -and reassembled upon exit from them, with no burden on either the - -destination Switch or the destination Host. The fact that - -fragments would never travel more than one hop without reassembly - -ameliorates the performance problems somewhat, since the amount - -of time a partially reassembled datagram might have to be held - -would be less, in general, than if reassembly were done on an - -end-end basis. - - - A strategy of doing hop-by-hop reassembly and fragmentation - -also allows more efficient use of the internet's Pathways in - -certain cases. One problem with the end-end strategy is the - -essential "randomness" of its effects. Consider, for example, a - -large packet which must traverse several networks with large - -maximum packet sizes, and then one network with a small maximum - -packet size. The current method of doing fragmentation and - - - 57 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -reassembly allows the packet to remain large throughout the - -networks that can handle it, fragmenting it only when it reaches - -its final hop. This seems efficient enough, but consider the - -case where the FIRST internet hop is the network with the - -smallest maximum packet size, and the remaining hops are networks - -with large maximum packet sizes. The current strategy then - -causes a very inefficient use of the internet, since the packet - -must now travel fragmented through ALL the networks, including - -the ones which would allow the larger packet size. If some of - -these networks impose constraints on a per-packet basis (which - -might either be flow control constraints, or monetary constraints - -based on per-packet billing), this inefficiency can have a - -considerable cost. Hop-by-hop reassembly, on the other hand, - -would allow the large packet to be reassembled and to travel - -through the remaining networks in the most cost-effective manner. - -Such a strategy is most consonant with our general thesis that an - -efficient and reliable internet must contain Switches which are - -specifically tuned to the characteristics of the individual - -Pathways. It also removes the problem from the Host domain, - -making the system more consonant with the precepts of protocol - -layering. - - - There is, unfortunately, one situation in which hop-by-hop - -fragmentation cannot work. If the Pathway between some - -destination Host and the destination Switch has a small maximum - -packet size, so that the destination Switch must fragment - - - 58 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -datagrams intended for that Host, then reassembly must be done by - -the Host itself, since there is no Switch at the other end of the - -Pathway to do the reassembly. This seems to mean that Hosts - -whose "home networks" have unusually small maximum packet sizes - -will be forced to implement the ability to perform reassembly, - -and must tolerate any resultant performance disadvantages. - - - -2.5 Flow Control - - - The topic of "flow control" or "congestion control" (we - -shall be employing these terms rather interchangeably, ignoring - -any pedantic distinctions between them) breaks down naturally - -into a number of sub-topics. In this section we shall be - -concerned with only one such sub-topic, namely, how should the - -Switches of the Network Structure enforce flow control - -restrictions on the Hosts? We shall not consider here the issue - -of how the Switches should do internal flow control, or what - -protocols they need to run among themselves to disseminate flow - -control information, but only the issue of how the results of any - -internal flow control algorithm should be fed back to the hosts. - -The IP is a rather unusual Network Access Protocol, in that it - -does not have any flow or congestion control features at all. - -This makes it very different from most other Network Access - -Protocols, such as 1822 or X.25, which do have ways of imposing - -controls on the rate at which users can put data into the - -network. The IP, on the other hand, is supposed to be a - - - 59 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -"datagram protocol", and therefore (?) is not supposed to impose - -any flow or congestion control restrictions on the rate at which - -data can be sent into the internet. In this section, we will - -discuss whether this is appropriate, and whether the "therefore" - -of the previous sentence is really correctly used. - - - - The issue of how flow or congestion control restrictions - -ought to be passed back to a Host, or more generally, how a - -Network Structure ought to enforce its congestion control - -restrictions, is a tricky issue. Particularly tricky is the - -relation between datagram protocols and flow control. Datagrams - -are sometimes known (especially with reference to the ARPANET) as - -"uncontrolled packets," which tends to suggest that no flow - -control should be applied to them. This way of thinking may be a - -holdover from the early days of the ARPANET, when it was quite - -lightly loaded. In those days, the flow control which the - -ARPANET imposes was much too strict, holding the throughput of - -particular connections to an unreasonably low value. Higher - -throughput could often be obtained by ignoring the controls, and - -just sending as much traffic as necessary for a particular - -application. Since the network was lightly loaded, ignoring the - -controls did not cause much congestion. Of course, this strategy - -breaks down when applied to the more heavily loaded ARPANET of - -today. Too much uncontrolled traffic can cause severe - -congestion, which reduces throughput for everybody. Therefore - - - - 60 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -many people now tend to recognize the need to control the - -uncontrolled packets, if we may be forgiven that apparent - -contradiction. Clearly, there is some tension here, since it - -makes little sense to regard the same traffic as both - -"controlled" and "uncontrolled." If a Network Access Protocol is - -developed on the assumption that it should be a "datagram - -protocol", and hence need not apply any controls to the rate at - -which data can be transferred, it will not be an effective medium - -for the enforcement of flow control restrictions at the - -host-network access point. If congestion begins to become a - -problem, so that people gradually begin to realize the importance - -of congestion control, they will find that the Network Access - -Protocol gives them no way to force the Hosts to restrict their - -traffic when that is necessary. The probable result of this - -scenario would be to try to develop a scheme to get the - -congestion control information to the Hosts in a way that - -bypasses the Network Access Protocol. This is our "logical - -reconstruction" of the current situation in the Catenet. When - -gateways think that there is congestion, they send "source - -quench" packets to the Hosts themselves, and the Hosts are - -supposed to do something to reduce the congestion. This source - -quench mechanism should be recognized for what it is, namely a - -protocol which is run between EVERY host and EVERY Switch - -(including intermediate Switches, not just source Switches) - -within a Network Structure, and which completely bypasses the - - - - 61 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -Network Access Protocol (IP). This violates protocol layering in - -a very basic way, since proper layering seems to imply that a - -source Host should have to run a protocol with a source Switch - -only, not with every Switch in the network. - - - Of course, the fact that some mechanism appears to violate - -the constraints of protocol layering is not necessarily a fatal - -objection to it. However, given the present state of the art of - -flow control techniques, which is quite primitive, flow control - -procedures must be designed in a way that permits them to be - -easily modified, or even completely changed, as we learn more - -about flow control. We must be able to make any sort of changes - -to the internal flow control mechanism of a Network Structure - -without any need to make changes in Host-level software at the - -same time. ARPANET experience indicates quite clearly that - -changes which would be technically salutary, but which require - -Host software modifications, are virtually impossible to make. - -Host personnel cannot justify large expenditures of their own to - -make changes for which they perceive no crucial need of their - -own, just because network personnel believe the changes would - -result in better network service. If we want to be able to - -experiment with different internal flow control techniques in the - -internet, then we must provide a clean interface between the - -internal flow control protocols, and the way in which flow - -control information is fed back to the Hosts. We must define a - -relatively simple and straightforward interface by which a source - - - 62 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -Switch can enforce flow control restrictions on a Host, - -independently of how the source Switch determines just what - -restrictions to enforce. The way in which the Switches determine - -these restrictions can be changed as we learn more about flow - -control, but the Host interface will remain the same. - - - It is not clear that the source quench mechanism has been - -generally recognized as a new sort of protocol, which bypasses - -the usual Network Access Protocol for the internet (IP). One - -reason that it may seem strange to dignify this mechanism with - -the name of "protocol" is that no one really knows what a source - -quench packet really means, and no one really knows what they are - -supposed to do when they get one. So generally, they are just - -ignored, and the "procedure" of ignoring a control packet seems - -like a very degenerate case of a protocol. Further, the source - -quench mechanism is a protocol which Host software implementers - -seem to feel free to violate with impunity. No implementer could - -decide to ignore the protocols governing the form of addresses in - -the internet, or he would never be able to send or receive data. - -Yet there is no penalty for ignoring source quench packets, - -although violating the flow control part of the internetting - -protocol seems like something that really ought to be prohibited. - -(We have even heard rumors of Host software implementers who have - -decided to increase their rate of traffic flow into the internet - -upon receiving a source quench packet, on the grounds that if - -they are receiving source quench packets, some of their traffic - - - 63 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -is not getting through, and therefore they had better retransmit - -their traffic right away.) - - - We have spoken of a source Switch needing to be able to - -ENFORCE flow control restrictions, by which we mean that when a - -source Switch determines that a certain source Host ought to - -reduce its rate of traffic, the Switch will REFUSE to accept - -traffic at a faster rate. Proper flow control can never be - -accomplished if we have to rely either on the good will or the - -good sense of Host software implementers. (Remember that Host - -software implementations will continue for years after the - -internet becomes operational, and future implementers may not be - -as conversant as current implementers with networking issues). - -This means a major change to the IP concept. Yet it seems to - -make much more sense to enhance the Catenet Network Access - -Protocol to allow for flow control than to try to bypass the - -Network Access Protocol entirely by sending control information - -directly from intermediate Switches to a Host which is only going - -to ignore it. - - - We will not discuss internal flow control mechanisms here, - -except to say that we do not believe at all in "choke packet" - -schemes, of which the source quench mechanism is an example. - -Eventually, we will propose an internal congestion control scheme - -for the internet, but it will not look at all like the source - -quench mechanism. (Chapters 5 and 6 of [2] contain some - - - - 64 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -interesting discussions of congestion control in general, and of - -choke packet schemes in particular.) It appears that some - -internet workers are now becoming concerned with the issue of - -what to do when source quench packets are received, but this way - -of putting the question is somewhat misdirected. When you get - -some information, and you still don't know what decision to make - -or what action to take, maybe the problem is not so much in the - -decision-making process as it is in the information. The proper - -question is not, "what should we do when we get source quench - -packets?", but rather "what should we get instead of source - -quench packets that would provide a clear and meaningful - -indication as to what we should do? - - - Does this mean that the internet Network Access Protocol - -should not really be a datagram protocol? To some extent, this - -is merely a terminological issue. There is no reason why a - -protocol cannot enforce congestion or flow control without also - -imposing reliability or sequentiality, or any other features that - -may unnecessarily add delay or reduce throughput. Whether such a - -protocol would be called a "datagram protocol" is a matter of no - -import. It is worth noting, though, that the Network Access - -Protocol of AUTODIN II (SIP), while officially known as a - -datagram protocol, does impose and enforce flow control - -restrictions on its hosts. - - - - - - - 65 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - The only real way for a source Switch to enforce its flow - -control restrictions on a source Host is simply for the Switch to - -REFUSE packets from that Host if the Host is sending too rapidly. - -At its simplest, the Switch could simply drop the packets, with - -no further action. A somewhat more complex procedure would have - -the Switch inform the Host that a packet had been dropped. A yet - -more complex procedure would tell the Host when to try again. - -Even more complex schemes, like the windowing scheme of X.25, are - -also possible. To make any of these work, however, it seems that - -a source Switch (gateway) will have to maintain Host-specific - -traffic information, which will inevitably place a limit on the - -number of Hosts that can be accessing a source Switch - -simultaneously. Yet this seems inevitable if we are to take - -seriously the need for flow control. At any rate, the need for - -flow control really implies the need for the existence of such - -limits. - - - -2.6 Pathway Access Protocol Instrumentation - - - Fault isolation in an internet environment is a very - -difficult task, since there are so many components, and so many - -ways for each to fail, that a performance problem perceived by - -the user may be caused by any of a thousand different scenarios. - -Furthermore, by the time the problem becomes evident at the user - -level, information as to the cause of the problem may be long - -gone. Effective fault isolation in the internet environment will - - - 66 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -require proper instrumentation in ALL internet components, - -including the Hosts. We will end this paper with a few remarks - -about the sort of instrumentation that Hosts should have, to help - -in fault-isolation when there is an apparent network problem. We - -have very often found people blaming the ARPANET for lost data, - -when in fact the problem is entirely within the host itself. The - -main source of this difficulty is that there often is no way for - -host personnel to find out what is happening within the host - -software. Sometimes host personnel will attempt to deduce the - -source of the apparent problem by watching the lights on the IMP - -interface blink, and putting that information together with the - -folklore that they have heard about the network (which folklore - -is rarely true). Our ARPANET experience shows quite clearly that - -this sort of fault-isolation procedure just is not useful at all. - -What is really needed is a much more complex, objective, and - -SYSTEMATIC form of instrumentation, which unfortunately is much - -more difficult to do than simply looking at the blinking lights. - - - Some sorts of essential instrumentation are quite specific - -to the sort of Network Access Protocol or Pathway Access Protocol - -that is being used. For example, users of the ARPANET often - -complain that the IMP is blocking their host for an excessive - -amount of time. By itself, this information is not very useful, - -since it is only a symptom which can have any of a large number - -of causes. In particular, the host itself may be forcing the IMP - -to block by attempting to violate ARPANET flow control - - - 67 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -restrictions. One sort of instrumentation which would be useful - -for the host to have is a way of keeping track of the total time - -it is blocked by the IMP, with the blocking time divided into the - -following categories: - - - 1) Time blocked between messages. - - - 2) Time blocked between the leader of a message and the data - - of the message. - - - 3) Time blocked between packets. - - - 4) Time blocked while attempting to send a multi-packet - - message (a subset of 2). - - - 5) Time blocked during transmission of the data portion of a - - packet. - - - 6) Time blocked while attempting to transmit a datagram (a - - subset of 2). - - - While this information might be very non-trivial for a host - -to gather, it does not help us very much in fixing the problem - -just to know that "the IMP is blocking" unless we can get a - -breakdown like this. In addition, it is useful to have those - -categories further broken down by destination Host, in case the - -blocking is specific to some particular set of hosts. - - - - - - - 68 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - Additional useful information has to do with the 1822 reply - -messages. What percentage of transmitted messages are replied to - -with RFNMs? with DEADs? with INCOMPLETEs? This should also be - -broken down by destination host. In fact, it would be useful to - -keep track of the number of each possible 1822 IMP-host control - -message that is received. When problems arise, it may be - -possible to correlate this information with the problem symptoms. - - - The basic idea here should be clear -- besides just telling - -us that "the network isn't taking packets fast enough", host - -personnel should be able to tell us under what conditions the - -network is or is not taking packets, and just what "fast enough" - -means. If a host is also running an access protocol other than - -(or in addition to) 1822, there will be specific measurements - -relevant to the operation of that protocol, but in order to say - -just what they are, one must be familiar with those particular - -protocols. (Again we see the effects of particular Pathway - -characteristics, this time on the sort of instrumentation needed - -for good fault isolation.) In general, whenever any protocol - -module is designed and implemented, the designer AND implementer - -(each of whom can contribute from a different but equally - -valuable perspective) should try to think of anything the - -protocol or the software module which implements it might do - -which could hold up traffic flow (e.g., flow control windows - -being closed, running out of sequence number space, failing to - -get timely acknowledgments, process getting swapped out, etc.), - - - 69 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -and should be able to gather statistics (say, average and maximum - -values of the amount of time data transfer is being held up for - -each possible cause) which tell us how the protocol module is - -performing. - - - If a protocol requires (or allows) retransmissions, rate of - -retransmission is a very useful statistic, especially if broken - -down by destination host. - - - Hosts should be able to supply statistics on the utilization - -of host resources. Currently, for example, many hosts cannot - -even provide any information about their buffer utilization, or - -about the lengths of the various queues which a packet must - -traverse when traveling (in either direction) between the host - -and the IMP. Yet very high buffer utilization or very long - -queues within the host may be a source of performance problems. - -When a packet has to go through several protocol modules within a - -host (say, from TELNET to TCP to IP to 1822), the host should be - -able to supply statistics on average and maximum times it takes - -for a packet to get through each of these modules. This can help - -in the discovery of unexpected or unanticipated bottlenecks - -within the host. (For example, packets may take an unexpectedly - -long amount of time to get through a certain module because the - -module is often swapped out. This is something that is - -especially likely to happen some years after the host software is - -initially developed, when no one remembers anymore that the host - - - - 70 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -networking software is supposed to have a high priority. This - -sort of instrumentation can be quite tricky to get just right, - -since one must make sure that there is no period of time that - -slips between the time-stamps). The offered and obtained - -throughputs through each protocol module are also useful - -statistics. In addition, if a host can ever drop packets, it - -should keep track of this. It should be able to provide - -information as to what percentage of packets to (or from) each - -destination host (or source host) were dropped, and this should - -be further broken down into categories indicating why the packets - -were dropped. (Reasons for hosts' dropping packets will vary - -from implementation to implementation). - - - Note that this sort of instrumentation is much harder to - -implement if we are using datagram protocols than if we are using - -protocols with more control information, because much of this - -instrumentation is based on sent or received control information. - -The less control information we have, the less we can instrument, - -which means that fault-isolation and performance evaluation - -become much harder. This seems to be a significant, though not - -yet widely-noticed, disadvantage of datagram protocols. - - - Host personnel may want to consider having some amount of - -instrumentation in removable packages, rather than in permanently - -resident code. This ability may be essential for efficiency - -reasons if the instrumentation code is either large or slow. In - - - - 71 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -that case, it might be necessary to load it in only when a - -problem seems evident. Instrumentation should also have the - -ability to be turned on and off, so that it is possible to gather - -data over particular time windows. This is necessary if the - -instrumentation is to be used as part of the evaluation of an - -experiment. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 72 - - -IEN 187 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - REFERENCES - -1. "DOD Standard Internet Protocol," COMPUTER COMMUNICATION -REVIEW, October 1980, pp. 12-51. - -2. "ARPANET Routing Algorithm Improvements," BBN Report No. -4473, August 1980. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 73 - - -------- diff --git a/text/ien/ien188.txt b/text/ien/ien188.txt deleted file mode 100644 index 7c57a0ba..00000000 --- a/text/ien/ien188.txt +++ /dev/null @@ -1,2030 +0,0 @@ - - IEN 188 - - - - - - - - - - - - - - - - - - - ISSUES IN INTERNETTING - - PART 3: ADDRESSING - - - Eric C. Rosen - - - Bolt Beranek and Newman Inc. - - - June 1981 - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - ISSUES IN INTERNETTING - - PART 3: ADDRESSING - - -3. Addressing - - - This is the third in a series of papers that discuss the - -issues involved in the design of an internet. The initial paper - -was IEN 184, familiarity with which is presupposed. - - - In this paper, we will deal with two basic issues. The - -first has to do with the Network Access Protocol. It is - -concerned with the sort of addressing information which a source - -Host has to supply, along with its data, to a source Switch - -(gateway, in the Catenet context), in order to enable the Switch - -to get the data delivered to the proper destination Host. The - -second issue has to do with the question of how the Switches - -(both source Switch and the intermediate Switches) are to - -interpret and act upon the addressing information supplied by the - -source Host. We begin by stating generally the sort of - -addressing scheme we envision (which is by no means original), - -and by comparing it to the very different sort of addressing - -currently in use in the Catenet. Next we will discuss some of - -the issues and details that arise in considering how to make such - -a scheme work reliably. We will then show how this scheme lends - -itself quite naturally to the solution of certain problems which - -are very difficult to handle in the current Catenet architecture. - -Although addressing and routing are rather intimately bound up, - - - 1 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -we will avoid routing considerations here whenever possible. - -Routing in the internet will be the topic of a longer paper which - -will be the next to appear in this series. - - -3.1 Logical Addressing / Flat Addressing - - - For maximum flexibility and robustness of operation, a - -source Host should be able to simply "name" the destination Host - -it wants to reach, where a "name" is just an arbitrary identifier - -for a Host. That is, the source Host should not need to know - -anything about the physical location of the destination Host, NOT - -EVEN WHAT NETWORK IT IS ON. In other words, the internet should - -have logical addressing. The advantages of logical addressing - -are thoroughly discussed in IEN 183, and that discussion shall - -not be repeated here. IEN 183 presents a logical addressing - -scheme which was designed with the ARPANET in mind. However, - -since we regard the internet as a Network Structure whose - -Switches are gateways and whose Hosts are generally multi-homed - -to the gateways, most of the ideas presented in IEN 183 can be - -carried over directly to the internet environment. The present - -IEN will emphasize those aspects of the logical addressing scheme - -which are specific to the internet environment, but the proposed - -scheme is basically the same as the one discussed in IEN 183. - -Anyone with a real interest in these issues will want to become - -familiar with that document. - - - - - - 2 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - The basic idea of logical addressing is that a source Host - -should name the destination Host, and the Switches should map - -that name into a physical address that is meaningful within the - -Network Structure of the Switches. The mapping between names and - -(physical) addresses will, in general, be many-many. That is, - -one name may refer indeterminately to several distinct physical - -addresses, either because some one physical machine is - -multi-homed, or because the user does not care which of several - -physical machines he reaches. Similarly, one physical machine - -may have several names, which may either be synonyms, or may be - -used for further multiplexing within the destination Host. (This - -may be particularly important when a Host within one Network - -Structure is really a Switch, e.g., a port expander or local - -network, within another.) - - - Logical addressing tends to result in a flat addressing - -space, rather than a hierarchical one. This may seem surprising - -in the context of the internet, since an internet is a - -hierarchical structure, and internet routing is almost certainly - -going to be some form of hierarchical routing. However, it - -simply does not follow that the addressing space used in the - -internet Network Access Protocol must be a hierarchical - -addressing space. In fact, since the form of the addressing - -space has an effect on the Network Access Protocol, and hence on - -Host-level software, whereas the routing algorithm is a purely - -internal matter to the Network Structure, proper protocol - - - 3 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -layering would seem to require that the form of the addressing - -and the form of the routing be independent. We would like to be - -able to change the internal routing algorithm of the Network - -Structure without requiring corresponding changes in Host - -software, i.e., without changing the form of the addressing. - - - What we are proposing is quite different from the way - -addressing is done in the current Catenet Network Access - -Protocol, IP. IP uses both physical addressing and hierarchical - -addressing. (Note that physical addressing within a hierarchical - -Network Structure will almost certainly be hierarchical - -addressing, whereas logical addressing allows the internal - -structure of the Network Structure to be better hidden from the - -users. This is one of its main advantages.) The first component - -of the address is a network number, and the second component is a - -physical address which is meaningful within that network. In IEN - -183, we discuss a number of reasons for the superiority of - -logical over physical addressing. Other criticisms of the - -Catenet's current addressing scheme have been voiced by other - -authors. For example, the way in which hierarchical addressing - -is incorporated into Catenet addressing mechanisms has recently - -come under criticism in IEN 177 by Danny Cohen, who focuses his - -criticism on the particular case of the ARPANET. His main - -criticism is that it does not allow enough hierarchical levels. - -That is, with the presence of local nets or port expanders which - -appear to the ARPANET as Hosts, there is really another level of - - - 4 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -hierarchy after the ARPANET. He suggests, therefore, that - -ARPANET addressing (1822-level) be changed to provide this - -additional hierarchical level, and that end-users (or at least - -Host software modules) fill in this additional level. - - - It is not obvious, though, that a single additional level of - -addressing will do for all applications. If we are sending data - -not just to a local net, but to an internet of local nets, maybe - -several additional levels of hierarchy are needed. We may also - -need more hierarchy on the "front end" of the address. A - -protocol which begins the internet address with a field which is - -supposed to identify the destination network (e.g., IP) assumes - -that there is no need to establish a hierarchy among the networks - -themselves. (This is equivalent to assuming that all Switches - -can "know about" all networks.) As long as we have only a small - -number of networks, it may be reasonable enough to assume that - -destination network addresses need not themselves be - -hierarchical. However, it is not difficult to imagine a very - -large internet composed of thousands of networks, where before - -specifying a network, we must first specify, say, a continent. - -So maybe our protocol for hierarchical addressing needs a - -"continent address" field before the network address field. It - -begins to look as if the addressing structure needs to be - -INFINITELY EXTENSIBLE in both directions. In fact, in IEN 179 - -Cohen proposes a scheme which seems intended to provide this sort - -of infinite extensibility. That seems both an inevitable - - - 5 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -consequence of hierarchical addressing, and a reductio ad - -absurdum of it. - - - It is also worth noting that a given number of Hosts can - -generally be addressed with fewer bits in a flat addressing - -scheme than in a hierarchical addressing scheme. Given, say, 32 - -bits of addressing, flat addressing can represent 2**32 Hosts. - -However, if these 32 bits are broken into four 8-bit fields, - -hierarchically, fewer Hosts can be represented, since in general, - -not every one of the four fields will actually take on the full - -256 values. Inevitably, one finds that at least one field must - -take on 257 values, while at least one other turns out to have a - -smaller number of values than expected. This tends to lead to - -the feeling that the address field needs "just one more level" of - -hierarchy. It also tends to lead to the use of funny escape - -values and multiplexing protocols so that different fields can be - -divided up in different ways by different applications. The same - -problems usually reappear, however, in a few years, as the need - -for "just one more level" is proclaimed yet again. Yet the - -alternative of making the address fields arbitrarily long, hence - -infinitely extensible, is rather infeasible, if bandwidth - -considerations are taken into account. - - - The need for infinite extensibility at the Host interface - -can be avoided by using logical addressing (although this is only - -one of its many advantages). We can then identify a single Host - - - - 6 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -by using a single, structure-less, unique name which is - -meaningful at each level of internet hierarchy. That is, the - -Switches at each level of the hierarchy would be able to - -recognize the name, and to map it into a physical address that is - -meaningful at that level of hierarchy. Neither the end-user nor - -the source Host would be responsible for determining the physical - -addresses at each level of a never-ending hierarchy. Of course, - -neither these arguments, nor those of IEN 183, can be regarded as - -finally settling the "flat vs. hierarchical" issue. In - -networking, no one issue can ever be settled in isolation, and - -attempts to do so result only in endless and unproductive - -arguments. A network (or internet) is a whole whose performance - -and functionality result from the combination of its protocols, - -addressing schemes, routing algorithm, hardware and software - -architecture, etc. Particular addressing schemes can only be - -judged when it is seen how they actually fit into particular - -designs. The only real argument in favor of a particular - -addressing scheme is that it fits naturally into a network - -architecture which provides the needed functionality and - -performance. It is hoped that the addressing scheme we propose - -will be judged as part of the architecture we are developing in - -this series of papers, rather than in isolation. - - - - - - - - - - 7 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -3.2 Model of Operation: An Overview - - - The model of operation we are proposing is as follows. A - -source Host submits a packet to a source Switch, naming (not - -addressing) the destination Host. THE SOURCE SWITCH THEN - -TRANSLATES (OR MAPS) THAT NAME INTO A PHYSICAL SWITCH ADDRESS - -WHICH IS MEANINGFUL WITHIN ITS OWN NETWORK STRUCTURE; THAT WILL - -BE THE ADDRESS OF THE DESTINATION SWITCH WITHIN THAT NETWORK - -STRUCTURE. The data is then routed through the Network Structure - -to the destination Switch so addressed. The name (logical - -address) of the destination Host is also carried through the - -Network Structure along with the data and the physical address of - -the destination Switch. When the destination Switch receives the - -data, it forwards it to the destination Host over (one of) its - -Pathway(s) to that Host. If the Pathway is itself a network or - -internet configuration with logical addressing, the name of the - -destination Host is passed on via the Pathway Access Protocol. - -If logical addresses or names are not unique across all component - -networks of an internet, translation from the internet logical - -address to the Pathway logical address would have to be done at - -this point. If the network or internet underlying the Pathway - -does not even have logical addressing, the Host name will have to - -be translated into a Pathway physical address by the destination - -Switch. - - - - - - - 8 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - Note that, at any particular hierarchical level (i.e., - -within any particular Network Structure), the ADDRESSABLE - -ENTITIES are the Switches at that level (which are physically - -addressed), and all the Hosts (which are logically addressed, or - -named). Component networks of the internet are treated as - -structure-less Pathways, AND NEITHER THE COMPONENT NETWORKS - -THEMSELVES NOR THE SWITCHES OF THE COMPONENT NETWORKS ARE - -INDEPENDENTLY ADDRESSABLE. Furthermore, a name (logical address) - -which adequately identifies the destination Host is present at - -each level of the hierarchy. Of course, a particular name only - -needs to be unique at a single level of the internet hierarchy, - -within a particular Network Structure. The names can change as - -we travel up and down the hierarchy of Network Structures that - -make up the internet. - - - -3.3 Some Issues in Address Translation - - - In order to do the sort of translation from logical to - -physical address that we have been discussing above, the Switches - -must have translation tables. Many of the issues involved in the - -design of a robust translation table mechanism are discussed in - -IEN 183, and much of that discussion applies without change to - -the internet. We will confine our discussion here, therefore, to - -issues which are not considered in that note, or which are more - -specific to the internet environment. - - - - - 9 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - The main problem with the model of operation we have - -proposed is a very mundane one, but unfortunately a very - -important one. If there may be thousands of Hosts on an - -internet, each one with an unlimited number of different names, - -and if a source Switch must be able to map any name to the - -address of a destination Switch, then each Switch will have to - -have a very large table of names to drive this translation - -function. By itself, this is not much of a problem. To be sure, - -in the past, it has been considered important to keep the - -gateways as small as possible. It now seems to be more generally - -accepted that the current Catenet gateways provide inadequate - -performance, and that building a robust operational internet - -system requires us to build Switches that are large enough to - -handle the required functionality at a reasonably high level of - -performance. We would expect Switches built in the future to be - -much larger than the current gateways are. However, it is one - -thing to require large tables, and quite another thing to require - -tables which may grow without bound. Since the number of Hosts - -on the internet may grow without bound, it does not seem feasible - -to require the Switches to have tables with one or more entries - -for each and every Host in the internet. - - - If we cannot fit the complete set of translation tables into - -each Switch, a natural alternative is to turn the tables into a - -DISTRIBUTED DATA BASE, with each Switch having only a subset of - -the complete set of tables. For each Switch, there would be a - - - 10 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -subset of logical addresses for which the Switch would have - -complete physical addressing information. These logical - -addresses would fall into one of two classes: - - - 1) Those logical addresses which refer to Hosts which are - - homed (in some Network Structure) directly to that - - Switch. - - - 2) Those logical addresses which refer to distant Hosts - - which are in FREQUENT communication with the Hosts which - - are directly homed to that Switch. - - -The logical addresses in these two classes are the ones for which - -the Switch will be most often called upon to do - -logical-to-physical address translation, and for best efficiency, - -the information needed to do the translation ought to be present - -in the Switches. For other logical addresses, which are less - -often seen, all that is needed is for the Switch to know where - -the address translation information can be found. Then if a - -packet with an infrequently-seen logical address is encountered, - -it can be forwarded to a place where the proper information is - -known to reside, or else the packet can be held while the - -information is obtained. (We may want to have a scheme which is - -a hybrid of these two alternatives. For example, packets with - -logical addresses that are not contained in the resident tables - -can be forwarded to a place with more addressing information, and - -this can in turn cause the needed addressing information to be - - - 11 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -sent back to the source Switch, so that additional packets with - -the same address can be handled directly by the source Switch. - -That is, the source Switch might maintain, in addition to its - -permanently resident tables, a cache of the most recently needed - -addressing information.) - - - It is important to note that the two classes defined above - -may vary dynamically, and we may want a procedure for altering - -the members of those classes in some specific Switch depending - -upon the traffic that the Switch is actually seeing in real time. - - - Unfortunately, any such scheme would seem to require the - -inclusion of at least one additional level of hierarchy in the - -addressing structure, since when a Switch sees a logical address - -for which it does not have complete information, it must be able - -to determine how to get that complete information. The scheme - -would be self-defeating if it meant that we had to have a table - -of all the logical addresses, with an indication for each one of - -which other Switch has the complete information. Rather, we need - -to be able to group the logical addresses into "areas", of which - -there will be a bounded number. Then each Switch will be able to - -keep a table indicating which other Switches contain the complete - -translation information for each area. This table of areas would - -then be the only part of the complete set of translation tables - -that had to be resident at ALL Switches. While this is much more - -feasible than requiring each Switch to keep a table containing - - - - 12 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -all the logical addresses, it does means that the destination - -address provided by the source Host must include not only a - -destination Host identifier, but also an "area code" for that - -logical address. - - - If we are going to organize the logical addresses of all - -internet Hosts into a relatively small set of "areas", we would - -like to find some means of organization which is fairly optimal. - -Unfortunately, there are a number of fairly subtle considerations - -which make this quite tricky to do. Certain intuitively - -attractive ways of organizing the internet into these areas will - -result in various sorts of significant and quite annoying - -sub-optimalities. Suppose, for example, we treated "area" as - -meaning "home network", much as in the present Catenet IP (where - -network number is part of the address that the Hosts must - -specify.) Then we would require all and only the ARPANET gateways - -to contain the logical-to-physical addressing information for the - -ARPANET Hosts, all and only the SATNET gateways to contain the - -tables for the logical addresses of the SATNET Hosts, etc. The - -user, in addressing a particular Host, would not only name it, - -but also name its "home network", and the source Switch would - -choose some Switch which interfaces directly to the home network - -of the destination Host from which to obtain the translation - -information. This method of organization, however, has several - -unsatisfactory consequences. One problem is that if any Host is - -on two "home networks", we want the Switches, not the Hosts, to - - - 13 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -choose which "destination network" to use. This is necessary if - -we want the routing algorithm to be able to choose the "best" - -path to some destination Host, and is really the only way of - -ensuring that packets can be delivered to a Host over some path, - -if one of the Host's home networks is down but the other is up. - -(This is jumping ahead a bit, since a full discussion of the - -"partitioned net" problem will not appear until section 3.4. The - -point, though, is that the choice of "home network" to use when - -sending traffic to a particular destination Host is a ROUTING - -PROBLEM, NOT AN ADDRESSING PROBLEM. Therefore it ought to be - -totally in the province of the Switches, which are responsible - -for routing, and not at all in the province of the Hosts, which - -must participate in the addressing, but not the routing.) - - - Another problem arises as follows. Suppose we have adopted - -the scheme of sending packets for a certain area to a Switch in - -that area, depending on that Switch to do the further - -logical-to-physical translation. It is possible that when this - -further translation is done, we will find that the route which - -the packet travels from that Switch takes it back through the - -source Switch. This could mean a very lengthy and - -delay-producing "detour" for the packet. It might at first - -appear that this is not very likely. If a packet is going to - -some ARPANET Host, and we send it to some Switch which is - -directly connected to the ARPANET, surely we have sent it closer - -to its final destination, not further away. Unfortunately, that - - - 14 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -just is not necessarily true. Network partition or congestion - -may force a packet for an ARPANET Host to travel from an ARPANET - -gateway to a gateway (or series of gateways) outside the ARPANET, - -back around (through a potentially long route) to another ARPANET - -gateway. (Consider the partitioned net and the expressway - -problems.) In such cases, the Network Structure may already be - -in a condition of stress which is likely to result in below par - -performance. We do not want to make things even worse by adding - -any further unnecessary but lengthy detours just because we - -cannot keep all the addressing information at the source Switch. - - - One way of helping to avoid these sorts of problems is to - -separate the notion of "area" from any physical meaning. The - -purpose of adding the notion of area to the logical addressing - -scheme is just to enable us to distribute the data base needed to - -do logical-to-physical address translation. There is no reason - -to suppose that the addressing information needed for some - -particular Host ought to be contained only in Switches that are - -"near" that Host. That would be a mistake. Rather, the - -addressing information ought to be somewhere which is "near" the - -SOURCE Host, not somewhere which is near the destination Host. - -This maximizes the chances that the necessary address translation - -will be done as soon as possible after the packet enters the - -Network Structure. The sooner we do the address translation, the - -more information we have which we can make use of to improve the - -routing of the packet, and the less likely any unnecessary - -detours will be. - - 15 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - One might think that at least Hosts which are on the same - -home network should be grouped into the same area. This will - -work until the first time a Host is moved from one network to - -another. Since the area codes are given by the individual Host - -or user as part of the address in the Network Access Protocol of - -the internet, changing a Host's area code would involve changing - -Host-level software or tables, which has to be avoided. - -(Avoiding the need to make such changes when Hosts move - -physically is one of the main reasons for using logical - -addressing.) So we really have to think of "areas" as random - -collections of Hosts. - - - What we are proposing is a truly distributed logical address - -translation table, rather than a scheme where each Switch - -maintains only local information. To make this more concrete, - -consider how this might be done in the Catenet. All the - -information about logical addresses which refer to Hosts on the - -ARPANET would be contained not only in all the gateways which are - -directly connected to the ARPANET, but also in a set of - -additional gateways which are uniformly scattered around the - -internet. Then, although the addressing information would not be - -in every potential source Switch, it would be somewhere close to - -every potential source Switch, and packets would not have to - -travel a long distance only to find out that they are going in - -the wrong direction. - - - - - 16 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -3.4 Model of Operation: More Detail - - - Let's assume that a source Host has given a message to a - -source Switch, with a logical address and an "area code" - -indicating the destination Host. If the source Switch does not - -have the complete address translation information in its tables, - -it will look in its table of area codes. The given area code - -will be associated in the latter table with some set of Switches - -(within the same Network Structure). The sequence of operations - -that we envisage is the following: - - - 1) The source Switch picks one of these Switches, and sends - - the message to it. There must be enough protocol between - - these two Switches so that the chosen Switch knows that - - it is not the final destination Switch, but only an - - intermediate Switch, and that it is expected to complete - - the address translation and then to forward the message - - further. - - - 2) The chosen Switch must be able to recognize the logical - - address of the destination Host, and associate it with - - one or more possible destination Switches. The message - - will be forwarded to one of these Switches. Furthermore, - - the addressing information can be sent back to the source - - Switch where it can be held in a cache in case the - - message is followed by a flood of additional messages for - - the same logical address. - - - 17 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - In the case where the source Switch does contain complete - -address translation information for the destination logical - -address, that logical address will be associated with some set of - -potential destination Switches. The source Switch will choose - -one, and send the message directly to it. - - - Logical-to-physical address translation should be done by - -only one Switch; either the source Switch or the Switch chosen by - -the source Switch on the basis of the area code. There is no - -need to allow intermediate Switches to do any logical-to-physical - -address translation. (There is only one exception to this, - -namely the case where a message arrives at an intermediate Switch - -only to discover that the destination Switch chosen by the source - -Switch is no longer accessible. In this case, re-translation is - -the alternative to dropping the message entirely.) Remember that - -many Hosts will be multi-homed (in the internet, virtually every - -Host is multi-homed, since most networks will have at least two - -internet gateways connected to them), so that there will in - -general be more than one possible destination Switch. By - -prohibiting re-translation at intermediate Switches, we avoid the - -problems of looping that might arise if different intermediate - -Switches make different choices of destination Switch. As we - -shall see, this also simplifies our approach to the partitioned - -net problem, and at any rate, there is no great advantage to - -allowing intermediate Switch translation (cf. IEN 183). - - - - - 18 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - We suggested above that if a source Switch does not - -recognize a particular logical address, and hence must send a - -message to another Switch (as determined by the area code), the - -latter Switch should send the addressing information back to the - -source Switch, to be kept temporarily in a cache. We have to - -emphasize "temporarily." The source Switch should time out the - -addressing information which it keeps in the cache, and then - -discard it. If it later receives from any of its source Hosts - -any subsequent messages for the same destination logical address, - -it will have to reobtain the information. The reason for this is - -that it will be necessary, from time to time, to change the - -translation tables. It is not that hard to develop an updating - -procedure which ensures consistent updating of all Switches where - -the information about a logical address normally resides. But it - -might be more difficult to develop a procedure which ensures - -consistent updating of all the temporary (cached) copies of that - -information. Timing out the temporary copies of the addressing - -information will prevent out-of-date information from being - -preserved in inappropriate places. (Though the use of an - -out-of-date translation is not so terrible, since it would elicit - -a DNA message, rather than causing mis-delivery of data. See IEN - -183 for details. In this sense, out-of-date information is - -self-correcting.) - - - When either a destination Host name (logical address) or an - -area code maps into several Switches, the source Switch must - - - 19 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -apply some criterion to choose one from among them, since in - -general we will want to send only one copy of the message to its - -destination. (Though there may indeed be cases in which we want - -to send a copy of the message to each possible destination - -Switch, in order to increase the reliability of the system, or to - -be sure that we get the message to its destination Host as fast - -as possible.) There are several possible criteria that we might - -consider using: - - - a) We might always choose the "closest" Switch, according to - - some particular distance metric (which might or might not - - be the same distance metric used by the routing - - algorithm). - - - b) The list of potential destination Switches might have a - - "built-in" ordering, so that the first one is always used - - unless it is down, in which case the second one is always - - used, unless it is down, in which case the third one is - - used, etc. - - - c) If the set of potential destination Switches has the - - right sort of topological distribution, we might try to - - round-robin them in order to achieve some sort of - - load-splitting. - - - d) If we can obtain some information about the relative - - loadings of the various Switches, we can try to choose - - - - 20 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - the one with the smallest load (to try to avoid causing - - congestion within the destination Switches), or we might - - try to trade off the increase in load that we will cause - - at the destination Switch with the distance we have to - - travel to get there. - - - e) Certain possible destination Switches might be favored - - for certain classes of traffic (as determined by the - - "type of service" field, or by access control - - considerations). That is, certain destination Switches - - might be favored for interactive traffic, and certain - - others (with more capacity?) for bulk traffic. Or there - - might be administrative access control restrictions which - - prohibit certain classes of traffic from being sent to - - certain Switches. (This may be particularly applicable - - in an internet context where different Switches are under - - the control of different administrations. It is - - possible, though, to imagine applications of this sort of - - access control even in a single-administration Network - - Structure. For example, we might want to prohibit - - military traffic from entering certain Switches, in order - - to preserve capacity for important university traffic.) - - - f) It is possible to combine some of the above criteria, - - e.g., choose the closest (i.e., shortest delay) Switch - - for interactive traffic and the most lightly loaded one - - for bulk traffic. - - 21 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -Remember that in the internet case, all the Hosts on some network - -are considered to be homed to all the gateways on that network, - -so that in general most Hosts will be multi-homed, and the way we - -select the destination Switch could have a significant effect on - -internet performance. - - - Of course, a destination Switch might itself have two or - -more Pathways to a particular destination Host. Perhaps the - -Switch is a gateway on two networks, and the Host is also on - -those two networks. Or perhaps the Switch is multi-homed onto - -the network of the Host. In such cases, a further choice - -remains -- the destination Switch must choose which of several - -possible Pathways to the destination Host it should use for - -sending some particular packet. Each (destination) Switch, - -therefore, will have to have a second logical-to-physical address - -translation table, which it accesses in order to choose the - -proper Pathway to a destination Host. This second translation - -table, however, contains information which is only useful - -locally. In addition to containing information needed to map the - -logical address onto one of the Switch's access lines, it must - -also contain any information needed in order to specify the - -address of the destination Host in the Pathway Access Protocol. - -In some cases, the logical address of the Host in its "home - -network" may be the same as its logical address in the internet, - -in which case no additional information is needed. If this is - -not the case, or if the "home network" does not have logical - - - 22 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -addressing, the local translation tables must contain information - -for mapping the internet logical address to an address (logical - -or physical) which is meaningful in the "home network." The - -issues of choosing one from among a set of possible Pathways - -according to some criteria are basically the same as those we - -have been discussing from the perspective of the source Switch, - -however. - - - An interesting little issue: suppose that traffic for Host H - -can be sent to either Switch A or B, but that the route to Switch - -B contains Switch A as an intermediate Switch. Does this mean - -that the traffic should always be sent to A, rather than B? Not - -necessarily. Perhaps A has plenty of bandwidth available for - -forwarding traffic to other Switches, but only a little available - -for sending traffic directly to a Host. Or the Pathway from - -Switch A to Host H may itself have such a long delay that it is - -quicker to send the traffic through A to B and then on B's - -Pathway to H. While it may turn out to be very difficult to - -take account of such factors, we ought not to rule them out by a - -priori considerations, and we ought not to design a system in - -which such factors cannot be considered. - - - A variant on this issue can arise as follows. Suppose Host - -H1 wants to send some data to Host H2, and H1 puts this data into - -the internet by submitting it to source Switch S. Now S will - -look in its address translation table to find the possible - - - - 23 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -destination Switches for H2. Let's suppose that there are two - -such possible destination Switches, one of which is D, and the - -other of which is S itself. That is, S has a choice of sending - -the data directly to H2 (over a Pathway with no intermediate - -Switches), or of sending it to D, so D can transmit it directly - -to H2. Nothing in the proposed scheme constrains S to choose - -itself as the destination Switch. If we want, we can have S make - -the choice of destination Switch without taking any special - -cognizance of the fact that it itself is a possible destination - -Switch. Or we might even require that S not choose itself as the - -destination Switch. That is, when a gateway on the ARPANET, for - -example, gets some data from an ARPANET Host which is destined - -for another ARPANET Host, maybe we want the data to be sent - -through another gateway, rather than just sending it right back - -into the ARPANET. This possibility might be crucial to solving - -the "expressway" problem. While we are not at present making any - -proposals for allowing the internet to be used as an "expressway" - -between two Hosts on a common, but very slow, network, we are - -trying to ensure that nothing in our proposed addressing scheme - -will make this impossible. This is a very important difference - -between our proposed scheme and the scheme presently implemented - -in the Catenet, where a source Switch which is also a potential - -destination Switch is highly constrained to pick itself as the - -actual destination Switch. Of course, for this to work, there - -must be enough protocol so that a Switch which receives some data - - - - 24 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -can know whether it is getting it directly from a source Host, or - -whether it is getting it from another Switch. - - - When we say that a particular Host name maps onto a set of - -possible Switches, what we are really saying is that each member - -of that set of Switches has a Pathway to the Host. Remember the - -definition of "Pathway" -- a Pathway in Network Structure N - -between two Switches of Network Structure N or between a Switch - -and a Host of Network Structure N is a communications path - -between the two entities which does not contain any Switches of - -Network Structure N. The logical-to-physical address translation - -tables will not map a Host name to a particular set of - -destination Switches unless each of those Switches has a Pathway - -to that Host. But we must remember that at any particular time, - -one or more of these Pathways may be down. Before we apply the - -above criteria (or others) to the set of possible destination - -Switches in order to choose a particular one, we must first - -eliminate from the set any Switches whose Pathway to the - -destination Host is down. This is a non-trivial task which - -breaks down naturally into two sub-tasks. First, the destination - -Switch must be able to determine which of the Hosts that are - -normally homed to it is reachable at some particular time. - -Second, this information must be fed back to the source Switch. - -Each of these sub-tasks raises a number of interesting issues. - - - - - - - 25 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - In IEN 187, we discussed the importance of having a Pathway - -up/down protocol run between each Host and each Switch to which - -it is homed, so that a source Host can know which source Switches - -it has a currently operational Pathway to. Now we see the other - -side of the coin -- each destination Switch must be able to - -determine which Hosts it currently has an operational Pathway to. - -Many of the considerations discussed in IEN 187 apply here too, - -and need not be mentioned again. Basically, the Switch will have - -to run a low-level up/down protocol which relies on the network - -which underlies the Pathway to tell it whether a particular Host - -is reachable (e.g., the ARPANET returns an 1822 DEAD Reply to any - -ARPANET source Host which attempts to send a non-datagram message - -to an unreachable destination Host), and the Switch will also - -have to run a higher-level up/down protocol whereby it queries - -the Host and infers that the Host is unreachable if no replies to - -the queries are received. Of course, if some Pathway consists of - -a simple datagram-oriented network that provides no feedback to - -the source, then a higher-level protocol will have to be used - -alone. - - - Assuming that the Switches have some way of determining - -whether their Pathways to particular Hosts are operational, we - -have the following subsidiary issue -- should these - -determinations be made on a regular basis, for all Hosts that - -might be reachable, or should they be made on an exception basis, - -with the information obtained only as needed? Let's consider the - - - 26 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -analogous operation in the ARPANET. In the ARPANET, the up/down - -status of each Host is maintained continuously, as a matter of - -course, by the IMP to which that Host is homed. This - -information, however, is not generally maintained at other IMPs. - -If a packet for a dead Host (on a live IMP) is submitted to some - -source IMP, the packet will always be sent to the destination - -IMP, which will (unless the packet is a datagram) return an 1822 - -DEAD reply. The source IMP receives the DEAD reply, signals it - -to the source Host, and then discards the information. IMPs do - -not maintain status information about remote Hosts, but the - -information is available to them as they need it (i.e., on an - -exception basis). On the other hand, each IMP always maintains - -complete, accurate, and up-to-date information about the - -reachability of each other IMP. Whenever any IMP goes down or - -comes up, this information is broadcast to all other IMPs in an - -extremely quick and reliable manner. If a source Host attempts - -to send a packet to a Host on an unreachable IMP, no data is sent - -across the network at all; the source IMP already knows that the - -destination IMP cannot be reached, and tells the source Host - -immediately. - - - Why don't IMPs maintain regular status information about all - -ARPANET Hosts? It's not as if this is against the law, and under - -certain conditions, it might be advantageous to do so. However, - -the more entities about which regular status information is - -maintained, the more bandwidth (trunk and CPU) and memory must be - - - 27 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -devoted to handling the information. With a potentially - -unbounded number of Hosts being able to connect to the ARPANET, - -it does not seem feasible for all IMPs to maintain this status - -information for every Host. Fortunately, it just is not as - -important to maintain status information for Hosts as it is for - -IMPs. Status information about the IMPs is necessary in order to - -do routing, so failure to maintain this information regularly - -would degrade the routing capability, with a consequent global - -degradation in network service. Since Hosts, on the other hand, - -are not used for storing-and-forwarding packets, routing does not - -have to be so aware of Host status, and global degradations due - -to incorrect assumptions about Host status are less likely. - - - If we can't expect ARPANET IMPs to maintain regular status - -information for each Host, we certainly can't expect internet - -gateways to maintain regular status information for each and - -every Host in the internet. In fact, in the internet, the - -situation is even worse. In the ARPANET, each IMP at least - -maintains regular status information about the few Hosts to which - -it is directly connected. This is simple enough to do, since the - -number of Hosts on an IMP is bounded (barring the introduction of - -local nets or port expanders) and there are machine instructions - -to detect the state of the Ready Line. However, we can hardly - -expect a gateway to maintain regular status information about all - -the Hosts on all the networks to which the gateway is directly - -connected. So we will suppose that in general, status - - - 28 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -information about the Hosts which are homed to a particular - -Switch will be obtained by that Switch on an exception basis, as - -needed. Of course, saying that this will be true in general does - -not mean that it must be universally true. If there are a few - -Hosts somewhere that are major servers with many many important - -users scattered around the internet, there is no reason why the - -Switches to which those servers are homed cannot maintain regular - -status information about those few Hosts. If the number of such - -special Hosts is kept small, this would not be prohibitively - -expensive, and if these Hosts really do handle a large portion of - -the internet traffic, this might be an important efficiency - -savings. - - - If a source Switch knows that a particular destination Host - -logical address can be mapped to any of a number of destination - -Switches, then, as we have pointed out, it must be able to tell - -when, due to some sort of failure or network partition, the - -destination Host is (temporarily) unreachable via some particular - -Switch. It must have that information in order to be able to - -avoid choosing a destination Switch whose Pathway to the Host is - -non-operational. If we agree that the Pathway up/down status - -between a particular destination Switch and a particular - -destination Host which is ordinarily homed to it can only be - -obtained, on an exception basis, by that destination Switch - -itself, it follows that this information can also only be - -obtained by the source Switch on an exception basis. That is, - - - 29 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -the only way for a source Switch to find out that a particular - -Host can temporarily not be reached through a particular - -destination Switch is to send a message for that Host to that - -Switch. The destination Switch must then determine that it has - -no operational Pathway to that Host, and it must send back a - -control message to the source Switch informing it of this fact. - -(In IEN 183, we christened these messages "DNA messages", for - -"Destination Not Accessible.) The source Switch will store this - -information in its address translation tables, so that from then - -on it does not choose a destination Switch whose Pathway to the - -Host is down. (Of course, in addition to sending this control - -information back to the source Switch, the putative destination - -Switch should also try to forward the message it received to one - -of the other Switches to which the destination Host is homed.) - - - This should work well, unless the Pathway between the - -original destination Switch and the destination Host comes back - -up. We must develop some way of informing the source Switch that - -that destination Switch is now once again usable as a destination - -Switch for that Host. A simple and robust way to handle this is - -as follows. When a source Switch is informed, according to the - -mechanism of the previous paragraph, that a particular - -destination Switch cannot reach a particular destination Host - -(without forwarding traffic through additional intermediate - -Switches), it marks (in its address translation tables) that - -Switch as UNUSABLE as a destination for that Host. However, this - - - 30 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -information is reset periodically, say, every few minutes. In - -effect, this approach would cause a source Switch which is - -handling traffic for that destination Host to query the - -destination Switch periodically to see if it has become usable - -again. Note that no special control message is needed for the - -querying. The querying is done simply by sending data addressed - -to the destination Host to the destination Switch. If the - -destination Switch is still unusable, no data is lost, since the - -data can be readdressed by the destination Switch and sent to - -some other destination Switch which does have an operational - -Pathway to that destination Host. Note also that with this - -scheme, not all source Switches will be in agreement as to which - -destination Switches can be used to reach which destination Hosts - -at some particular time. But this is not much of a problem, as - -long as address translation is done only once, and not re-done at - -each intermediate Switch. Further, any source Switch which tries - -to use the wrong destination Switch will be told, via a DNA - -message, to use another one. - - - Lest there be any misunderstanding, we should emphasize that - -we are not proposing this as a general mechanism for determining - -which Hosts are homed to which Switches. That information is not - -to be obtained dynamically at all, but rather is to be installed - -in the translation tables at each Switch by the Network Control - -Center (or whatever equivalent of the Network Control Center we - -devise for the internet.) This mechanism is only used to - - - 31 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -determine that a Pathway which ORDINARILY exists between some - -Switch and some Host is TEMPORARILY out of operation. - - - If a destination Host happens to be unreachable from EACH - -potential destination Switch (which will happen if the Host is - -down), this procedure will eventually result in the source Switch - -marking all potential destination Switches unusable. Once this - -happens, the source Switch should discard any data it receives - -which is destined for that destination Host, and should return - -some sort of negative acknowledgment to the source Host. The - -source Host can then try again, every few minutes, to send more - -data to the destination Host. Since the information marking a - -destination Switch as unusable (for a particular destination - -Host) is reset every few minutes, the source Host will be able to - -establish communication with the destination Host soon after it - -becomes reachable again. Strictly speaking, a negative - -acknowledgment from the source Switch is not required, and the - -current IP makes no provision for such a thing. Yet the - -information contained in the negative acknowledgment might well - -help the source Host to choose a suitable retransmission - -interval. If a destination Host is unreachable, it makes sense - -for a TCP to retransmit more infrequently than if the TCP has no - -information at all about why it is not getting any - -acknowledgments from the destination Host. Also, this - -information would be useful to the end-user (if the various - -protocol layers in his Host succeed in passing it back to him.) - - - 32 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -A user who is not getting any response from the system may want - -to take a different action if he knows his destination cannot be - -reached than if he thinks that the network (or internet) is just - -slow. - - - This procedure, which is basically the same as the one we - -recommended (in IEN 183) for use with logically addressed - -multi-homed Hosts on the ARPANET, should resolve the partitioned - -net problem. Our approach is not dissimilar to one proposed by - -Sunshine and Postel in IEN 135. To quote them: - - A simpler solution to the partitioning problem follows the - spirit of querying a database when things go wrong. Suppose - there were another database listing networks and all the - gateways attached to each net (whether up or down). This - database would change slowly only as new equipment was added - to the internet system. Further suppose that the gateways - and internet routing are totally unaware of network - partitions, except that gateways to partitioned nets find - out when they cannot reach some Host on their own net. In - this case, the gateway would return a Host Unreachable - (through me) advisory message to the source. The source - could then query the global database to get a list of all - gateways to the destination net, and construct explicit - source routes to the destination going through each of these - gateways, trying each one in turn until it succeeded. - - - Note, however, that our proposal does not require any source - -routing, because it is Switches (i.e., gateways) themselves which - -are the addressable entities in our scheme, rather than networks - -(though the authors quoted above were considering how to handle - -the problem in the current Catenet environment, rather than how - -to design a new environment). The database they propose can be - -identified with the translation tables we have spoken of. Also, - - - - 33 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -our proposal handles the situation where a Pathway that was down - -becomes usable again, a case they don't seem to mention. - - - It is sometimes claimed that hierarchical addressing - -requires less table space than flat addressing, since there is no - -need to have an entry in a translation table for each address. - -We can see now that this is not true. If we wish to be able to - -handle multi-homing, and in particular to handle the "partitioned - -net" problem, we need to maintain table space for the Hosts with - -which we are in communication. This is true no matter what kind - -of addressing scheme we adopt. - - - Let's look now at how our scheme would handle the problem of - -mobile Hosts, i.e., Hosts which move from one network to another. - -We distinguish the case of "rapidly mobile" Hosts from the case - -of "slowly mobile" Hosts. A Host is slowly mobile if its move - -from one net to another can be made with enough lead time to - -allow manual intervention to update the logical-to-physical - -address translation tables. This case is handled simply by the - -presence of the logical addressing. When the Host moves to - -another network, it can still be addressed by the same name, but - -the translation tables are changed so that the logical address is - -now mapped to a different set of Switches. This creates some - -work for the internet administration and control center, but is - -completely transparent to higher level protocols, since the - -logical address does not change. On the other hand, we consider - - - - 34 - - -IEN 188 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -a Host to be rapidly mobile if it moves from one net to another - -too quickly or too frequently to allow the procedure of modifying - -the address translation tables to be feasible. If we can know in - -advance that there is some limited set of networks to which that - -Host might connect, we can map the logical address of that Host - -onto the set of all gateways which connect to any of those - -networks. Our procedure for choosing one gateway to use as the - -destination gateway might be as follows. Try the first gateway - -on the list. If a DNA message is received, try the second, etc., - -etc. Once a source gateway begins sending traffic for a mobile - -Host to a particular destination gateway, it should always - -continue to use that gateway, until it receives a DNA message, in - -which case it should try the next one. You will note that this - -procedure is very similar to that used for non-mobile Hosts. In - -fact, it might be entirely identical. The only possible - -difference is that we might want to be much more reluctant to - -switch from one destination gateway to another in the case of - -mobile Hosts than in the case of non-mobile Hosts, since we - -expect that a mobile Host will not generally be reachable through - -all of the potential destination gateways at every time. - - - - - - - - - - - - - - 35 - - -------- diff --git a/text/ien/ien189.txt b/text/ien/ien189.txt deleted file mode 100644 index 08463dfc..00000000 --- a/text/ien/ien189.txt +++ /dev/null @@ -1,5626 +0,0 @@ - - IEN 189 - - - - - - - - - - - - - - - - - - - ISSUES IN INTERNETTING - - PART 4: ROUTING - - - Eric C. Rosen - - - Bolt Beranek and Newman Inc. - - - June 1981 - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - ISSUES IN INTERNETTING - - PART 4: ROUTING - - -4. Routing - - - This is the fourth in a series of papers that discuss the - -issues involved in designing an internet. Familiarity with the - -previous papers (IENs 184, 187, and 188) is presupposed. - - - The topic of the present paper is routing. We will discuss - -the issues involved in choosing a routing algorithm for the - -internet, and we will propose a particular algorithm. The - -algorithm we propose will be based on the routing algorithm - -currently operating in the ARPANET, called "SPF routing." This - -algorithm is described in [1] and [2], which interested readers - -will certainly want to look at. Although we will try to make - -this paper relatively self-contained, we will of course focus our - -discussion on those aspects of the algorithm which might have to - -be modified to work in the internet. - - - Any discussion of the proper routing algorithm to use in a - -particular Network Structure must begin with a consideration of - -just what characteristics we want the routing algorithm to have. - -That is, we must decide in advance just what we want the routing - -algorithm to do. Everyone will agree that the routing algorithm - -ought to be able to deliver data from an arbitrary source Switch - -to an arbitrary destination Switch, as long as there is a - - - - 1 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -physical path between them. Or at least, the routing algorithm - -should make the probability of being able to do this arbitrarily - -high. However, this is a very minimal criterion (as indicated by - -the fact that everyone would agree to it). There are many other - -requirements we must place on the routing algorithm if we intend - -to design a robust and high performance Network Structure. We - -will present some requirements and some possible routing - -algorithms which fulfill the requirements to a greater or lesser - -degree. We hope that by the end of this paper, we will have made - -a case that our proposed routing algorithm does a better job of - -meeting more of the desired requirements than does any other that - -we know of. - - -4.1 Flexibility and Topological Changes - - - One extremely important, though little noticed, feature that - -we should require of a routing algorithm is that it enable us to - -make arbitrary changes in the topology of the Network Structure, - -without the need to make manual changes in the internal tables of - -the Switches. This is a capability that has always existed in - -the ARPANET. IMPs can be added, removed, or moved around - -arbitrarily, and the routing algorithm automatically adapts to - -the new topology without any manual intervention. This seems - -simple enough, but it does place some significant constraints on - -the nature of the routing algorithm. For example, it immediately - -rules out fixed routing. By "fixed routing," we refer to any - - - - 2 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -scheme where a set of routes to each destination Switch is - -"compiled into" each Switch. In fixed routing schemes, there is - -generally a "primary route", to be used when the Network - -Structure is not suffering from any outages, and a set of - -alternate or secondary routes to be used if some component of the - -primary route should fail. We know of one network which does use - -this sort of fixed routing, and as a result, they are forced to - -adhere to a very strict rule which allows them to add or remove - -Switches only once every six months. Certainly, we would not - -want to build such a restriction into the internet. - - - Fixed routing also prohibits certain important day-to-day - -operational procedures that are often used in the ARPANET. For - -example, it is quite common, when an IMP is brought down for - -preventive maintenance, to "splice" that IMP out of the network - -by wiring together two of its modems. This causes two IMPs that - -ordinarily have a common neighbor to suddenly become direct - -neighbors of each other. (A similar function can also be - -performed by the telephone company, in case the power to the - -modems is shut off, or if the site cannot be reached.) This - -ability to preserve network bandwidth even when a site is down is - -quite important to robust network performance. Yet it is very - -difficult, if not impossible, to do this if the network has a - -fixed routing algorithm. It is not yet clear to what extent such - -day-to-day "firefighting" techniques will be applicable in the - -internet, but it certainly does not seem wise to design an - - - 3 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -internet routing algorithm which would be too inflexible to - -permit the use of such techniques. - - - Another very useful capability which is difficult to combine - -with fixed routing is the ability to create arbitrarily - -configured test networks in the lab, and then to connect them to - -the real network. This is something that is done quite often in - -the ARPANET, usually for the purposes of testing out new - -software, and we will definitely need this capability in the - -internet in order to test out new gateway software (as well as to - -test out patches and bug fixes to the old). - - - It is also worth noting that implementing a scheme of fixed - -routing with a primary route and alternates to be used in case of - -outages is not nearly as trivial as it may seem. Remember that - -it is not enough for each individual Switch, when its Pathway to - -a particular neighbor fails, to pick an alternate neighbor as its - -next hop to some destination. Rather, any outage requires ALL - -the Switches to pick alternates in a COORDINATED MANNER, so that - -the routing produced by the use of the alternate paths is - -loop-free. This is quite a difficult problem, and if there are a - -large number of Switches and Pathways, any combination of which - -could fail, this means that a very large number of alternate - -paths must be maintained, requiring a consequently large amount - -of table space. - - - - - - 4 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - We will not be giving much serious consideration to the use - -of fixed routing in the internet. We mention it largely for the - -sake of completeness, and because there is a natural tendency, - -which we wish to oppose, to suppose that fixed routing must be - -simpler, cheaper and more reliable than dynamic routing. This - -tendency ignores the day-to-day operational problems involved in - -the use of fixed routing, as well as the difficult technical - -problems involved the the creation of fixed routing tables. - - - Preserving maximum flexibility to make topological changes - -requires the Switches to be able to determine, dynamically, just - -who their neighbors are. (Remember that two Switches of a - -Network Structure are neighbors if and only if they are connected - -by a Pathway, i.e., by a communications path containing no - -intermediate Switch of the same Network Structure.) In the - -ARPANET, each IMP is initialized to know how many modem - -interfaces it has, and does not determine that dynamically. - -However, initialization only tells the IMP how many interfaces it - -has; it does not tell the IMP who its neighbor is over each - -interface. The IMPs determine who their neighbors are - -dynamically, via the line up/down protocol, and a line between - -two IMPs cannot come up unless and until each of the IMPs knows - -the identity of the other. - - - The situation in the present Catenet gateways is quite - -different. Each gateway has a table of potential neighbors - - - - 5 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -"assembled in." When a gateway comes up, it attempts to - -communicate (via a special gateway neighbor protocol) with each - -of the gateways in its pre-assembled neighbor table. Two - -gateways are considered neighbors only if this communication is - -successful. Gateways will also consider themselves neighbors of - -other gateways that communicate with them according to the - -gateway neighbor protocol, even if the other gateway is not in - -the pre-assembled neighbor table. This means that two gateways, - -G1 and G2, cannot become neighbors unless either G1 is in G2's - -pre-assembled neighbor table, or G2 is in G1's pre-assembled - -neighbor table. - - - Of course, in a real operational environment, it is very - -important to ensure that site-dependent information is not - -assembled or compiled in. Rather, it must be separately loadable - -(over the network itself) by the Network Control Center, or - -whatever equivalent organization we create for operating the - -internet. In fact, site-dependent information ought to be - -preserved over reload of site-independent information, and vice - -versa. (This discipline is followed in the ARPANET.) Designing - -the gateways according to this discipline is a very non-trivial - -task, which must be planned for by the gateway designers at the - -earliest stage of gateway design. Otherwise, we will build for - -ourselves a very difficult set of unnecessary operational - -problems. - - - - - 6 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - However, it is not a very good idea to have a fixed table of - -neighbors in each Switch, even if this table is separately - -loadable. This just does not give us the flexibility we desire - -for making arbitrary topological changes. If there has not yet - -been any difficulty with the Catenet's current scheme, that is - -probably because of the small number of gateways and component - -networks in the current internet environment. As the number of - -gateways increases, the need to have them dynamically determine - -who their neighbors are becomes increasingly more important. - - - However, having gateways discover (dynamically) who their - -neighbors are is a more difficult problem than having IMPs - -discover who their neighbors are. The interfaces on the IMPs - -function as point-to-point lines, so there can be at most one - -other IMP on the other end of a line, and any data sent out that - -line can be expected to reach just that IMP. Therefore it is not - -very hard for an IMP to discover which IMP is at the other end. - -An IMP simply sends its identity (a unique number which it reads - -from its hardware configuration cards) down the line in a - -message, and if the line is operational, the message must reach - -the IMP on the other end. For two gateways connected by a - -packet-switching network, the problem is more complicated, - -because, unlike telephone circuits, a packet-switching network is - -not a point-to-point line with a relatively transparent - -interface. In order for one gateway to identify itself to - -another, it must be able to address the other, using the Access - - - 7 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -Protocol of the packet-switching network which serves as the - -Pathway between them. This seems to mean that for a gateway to - -be able to send its identity to a neighbor, it must already know - -the neighbor's name. This seems like Catch-22 -- there is no way - -to determine dynamically who your neighbor is, unless you can - -address him, but there is no way to address him unless you - -already know who he is. - - - This problem can be made more tractable through the - -cooperation of the packet-switching networks underlying the - -Pathways which connect the gateways. A packet-switching network - -could recognize that certain of its own components (which might - -be either Switches or Hosts within its own Network Structure) are - -also Switches within a Network Structure which is one level - -higher in a hierarchy. For example, in the ARPANET, there might - -be some special protocol (call it the "gateway discovery - -protocol"), carried out on the host-IMP level, by which certain - -hosts identify themselves as internet gateways. Whenever a - -gateway connected to a particular IMP comes up or goes down, this - -information could be broadcast to all other IMPs. Whenever a - -gateway comes up, the IMP it is connected to could tell it which - -of the other hosts are internet gateways. In this way, the IMPs - -could keep the gateways informed as to which other gateways are - -up or down at any particular time. This sort of scheme - -eliminates the need for the gateways to know in advance who their - -neighbors might be, and moves the responsibility for keeping - - - 8 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -track of the gateways and their up/down status to the - -packet-switching network itself, which is better equipped to - -carry out this responsibility. - - - Such a scheme would not be very difficult, in principle, to - -build into the ARPANET. Information about gateways could be - -subsumed into the routing information. That is, an IMP connected - -to a gateway could represent the gateway as a stub node, and - -report on it as such in its ordinary routing updates. (Of - -course, this is only feasible if the number of gateways is - -relatively small when compared to the number of IMPs. Otherwise - -the additional overhead this would add to the ARPANET's internal - -routing algorithm would make the scheme infeasible. However, it - -does seem likely that the number of gateways on the ARPANET will - -always be much smaller than the number of IMPs.) This scheme - -would automatically cause the information about the gateways to - -be broadcast to all IMPs as part of the routing updates. (See - -section 4.5 for a description of the routing update procedure.) - -Each IMP which is connected directly to a gateway could forward - -information about other gateways to its own gateway as the - -information is received. The most difficult problem might be to - -get enough "security" in the gateway-to-IMP protocol so that only - -real gateways could declare themselves to be gateways. (Some of - -the issues involved in preventing a host from "fooling" the - -network into thinking it is a different host than it really is - -are discussed in IEN 183. See the discussion of LAD messages. - - - 9 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -However, that note does not consider the real issue of security - -that arises here.) - - - This scheme for having gateways dynamically discover their - -neighbors through the cooperation of the networks underlying the - -internal Pathways of the internet is an important step towards - -the solution of the "flying gateway" problem. The flying gateway - -problem is the following. Suppose that N is a packet-switching - -network which is one of the component networks of the internet. - -Now suppose that due to some sort of emergency or natural - -disaster, N becomes partitioned into two "pieces", call them N1 - -and N2, and that this partition is expected to last for a - -significant amount of time. If H1 is a Host in N1, and H2 is a - -Host in N2, then H1 and H2 will no longer be able to communicate - -through the network N. (Of course, H1 and H2 might still be able - -to communicate though the internet, if there is an internet - -gateway on N1 and an internet gateway on N2, and a route between - -these two gateways other than the "direct" route via N. In fact, - -the addressing scheme proposed in IEN 188 will automatically - -cause traffic from H1 to H2 to be delivered over this alternate - -route, AS LONG AS H1 SUBMITS THIS TRAFFIC TO ONE OF THE INTERNET - -GATEWAYS CONNECTED TO N1, RATHER THAN TRYING TO SEND IT DIRECTLY - -TO H2 OVER THE NETWORK N.) However, in some cases, there may be - -no such alternate route, or else its characteristics might be - -unsatisfactory. In addition, it must be remembered that the - -partition of network N might actually result in the partition of - - - 10 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -the internet itself, so that some pairs of Hosts which ordinarily - -communicate over the internet can no longer reach each other. In - -such cases, it might be desirable, at the level of the internet, - -to treat N1 and N2 as separate component networks, and to place - -an internet gateway between them so that internet traffic can - -flow from N1 to N2. One possible scenario is for this new - -gateway to be an airborne packet radio, hence the name "flying - -gateway." - - - If a flying gateway can be connected to both N1 and N2, and - -if the network N has a gateway discovery protocol of the sort we - -have been advocating, then the flying gateway need merely come up - -on N1 and N2, declaring itself to be an internet gateway. The - -gateway discovery protocol run in the network pieces N1 and N2 - -will cause the other internet gateways in N1 and N2 to become - -aware that they have a new neighbor, the flying gateway. Once - -the gateways in N1 and N2 become aware of their new neighbor, it - -automatically begins to participate in the routing algorithm (see - -section 4.5 for details of the routing updating algorithm that - -brings this about), and routing automatically begins to use the - -flying gateway for store-and-forwarding internet traffic. Thus - -any partition of the internet is automatically brought to an end. - - - In addition to using the flying gateway as a transit or - -intermediate gateway for internet traffic, it may also be - -desirable to use it as a destination Switch in the internet. - - - - 11 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -That is, it may be desirable to allow the other internet Switches - -(gateways) to use the flying gateway as the address to which they - -route traffic for Hosts in N1 or N2. This is slightly more - -complicated than simply using the flying gateway as an - -intermediate Switch. The logical-to-physical address translation - -tables in the gateways (we are assuming the addressing scheme - -proposed in IEN 188) will not, in general, map any Host logical - -addresses into the address of the flying gateway, which after all - -is not ordinarily on the internet. However, as long as the - -flying gateway indicates that it is a special, flying, gateway, - -and as long as this information is made known to all the other - -gateways, this problem is simple enough to solve. If F is a - -flying gateway, and G is an ordinary gateway, and F and G are - -neighbors, then any logical address which maps to G but cannot - -currently be reached through any ordinary gateway should be - -mapped to F. (As we shall see, the routing algorithm we propose - -makes available to each Switch all information about which pairs - -of Switches are neighbors.) Attempting to reach the destination - -Host via the flying gateway F will either be successful, or else - -should result in the return of a DNA message, which would - -indicate that the Host cannot be reached from the flying gateway - -either. The only remaining problem is for the flying gateway - -itself to determine which of the two pieces of the partitioned - -network contain some particular Host for which it is the - -destination Switch. Any data for destination Host H which - - - - 12 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -arrives at Switch F can potentially be sent to either piece of - -the partitioned network. The situation is no different than the - -problem of how an ordinary gateway, which has two Pathways to a - -particular Host, one of which is non-operational, decides which - -one to use. Note that the individual Hosts do not need to be - -aware at all of the existence of the flying gateway, since the - -logical addressing scheme automatically finds the right physical - -address. Of course, for this mechanism to be at all effective, - -there must be a robust and efficient Host-Switch up/down - -protocol, which works through the cooperation of the network - -underlying the Pathway between Host and Switch. - - - Unfortunately, not every component network of an internet - -can be expected to cooperate this way in a "gateway discovery - -protocol." In fact, if two Switches of the internet Network - -Structure are connected by a Pathway which is itself an internet, - -rather than a single packet-switching network, then this sort of - -cooperation in the "gateway discovery protocol" might be - -extremely difficult if not impossible. It seems though to be - -quite important to get the communications media which underlie - -the Pathways to participate in such a protocol, for that - -significantly increases both the reliability and the flexibility - -of the internetting scheme. It does not seem possible for - -Switches which are connected by uncooperative Pathways to - -determine dynamically who their neighbors are. In such cases, we - -may then have to live with hand-built neighbor tables (as in the - - - 13 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -present Catenet), and a protocol which the Switches attempt to - -carry out with their neighbors to see which potential neighbors - -are really reachable. Networks which do not provide a gateway - -discovery protocol, however, cannot be patched together with a - -flying gateway if they should partition. - - - Even for Switches which are connected by cooperative - -Pathways, it is desirable to have a protocol which the Switches - -attempt to run with each one of their neighbors, to see whether - -they really can send and receive data to or from each neighbor. - -Suppose, for example, that two Switches are connected by a - -Pathway which is a very congested network. In such a network, - -the messages which are used to tell the internet Switches who - -their "neighbors" are might well be flowing, even though the - -congestion prevents ordinary (user) data from flowing. This is - -not at all unlikely, if the gateway discovery protocol makes use - -of the network's routing updates, which would probably be of much - -higher priority than ordinary data packets. Since we don't want - -to use this Pathway for internet traffic unless it can carry - -data, some independent means of determining this may be needed. - -The situation is somewhat more complicated if the Pathway is a - -packet-switching network with different "acceptance classes", so - -that only certain classes of traffic are accepted at any given - -time, depending perhaps on the internal loading conditions of the - -network. If a Pathway is only accepting a certain sub-class of - -data traffic, any internet Switches which are connected to that - - - 14 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -Pathway must be able to determine which classes are being - -accepted (presumably the network underlying the Pathway will - -inform the Switches as to any access restrictions), and this - -information will have to be fed back into the internet routing - -algorithm, so that traffic which cannot be placed on a certain - -Pathway is not routed there nonetheless. - - - The reader will doubtless have noticed that these - -considerations, of determining who one's neighbors are, and of - -determining whether the Pathway to each neighbor is operational, - -are quite similar to the considerations adduced in IEN 187 in the - -discussion of Pathway up/down protocols to be run between a Host - -and a Switch. What we have been discussing is really an - -inter-Switch Pathway up/down protocol. The gateway discovery - -protocol corresponds to what we called a "low-level up/down - -protocol", and the type of protocol discussed in the previous - -paragraph corresponds to what we called the "higher-level up/down - -protocol." - - -4.2 Why We Cannot Require Optimality - - - What else would we like the routing algorithm to do, besides - -giving us the maximum flexibility to make topological changes? - -Generally, we tend to feel that a really good routing algorithm - -should optimize something, delay or throughput, for example. - -However, true optimality is really not possible. If we are given - -a complete description of a network, including its topological - - - 15 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -structure, and the capacities and speeds of all its lines and - -Switches, and if we are also given the traffic requirement (as a - -Switch-Switch traffic matrix which tells us how much traffic each - -Switch will originate which is destined for each other Switch), - -and if the packet inter-arrival rates and sizes vary according to - -certain specific probabilistic distributions, and if the traffic - -is in a steady-state condition, it is just a mathematical problem - -to devise a set of routing tables for the Switches which will - -minimize the network average delay. Applied mathematicians have - -devoted a great deal of effort to devising algorithms to produce - -this optimal solution. There are a large number of problems with - -attempting to use this sort of "optimal routing algorithm" as - -the operational routing algorithm of a network: - - - 1) Packet arrival rates and sizes do not necessarily vary - - according to the probabilistic distributions which are - - assumed by optimal routing algorithms. - - - 2) Optimal routing algorithms are ALWAYS based on - - mathematical models of the relationship between delay and - - throughput which are not supported by empirical data. - - - 3) Actual traffic requirements are quite variable, and may - - not really approach a steady-state for a long enough - - period of time to enable true optimization. Traffic - - requirements are also generally unknown, and difficult to - - predict or measure. - - - 16 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - 4) Most algorithms to compute the optimal routes are real - - number crunchers, and require large floating point - - computers. These algorithms would have to be run in a - - central location, producing routing tables for all - - Switches, and then distributing them somehow (centralized - - routing), with consequent problems of robustness and - - overhead. - - - 5) There are distributed optimizing algorithms (e.g., - - Gallager's algorithm), but they are not implementable. - - That is, the proofs of these algorithms make assumptions - - which could not be made to hold in the real software and - - real hardware of a real network. Hence the algorithms - - would not be expected to give optimal results (or even - - anything close to optimal) in real networks. - - Furthermore, such algorithms seem to rely on updating - - protocols which are insufficiently robust in the - - operational environment. These algorithms also seem to - - contain parameters whose precise settings are quite - - important to proper performance, but whose most - - appropriate values are unknown and quite difficult to - - determine. - - - - We realize that these rather brusque comments may make it - -seem like we are giving short shrift to the consideration of - -optimizing algorithms. We have made these comments simply in - - - 17 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -order to state our reasons for not giving further consideration - -to such algorithms. Arguing in support of these reasons, - -however, would require another paper. - - - Another problem with optimal routing algorithms which is - -more specific to the internet environment has to do with the - -requirement that the capacities of the network components be - -known. With telephone circuits as the "links", it is possible to - -assign a fixed capacity and fixed propagation and transmission - -delays to each link. With packet-switching networks as the - -"links", it is doubtful that this even makes sense. If two - -gateways are connected by the ARPANET, there is no number we can - -assign as the capacity of the "link" connecting the gateways! - -The amount of throughput that can be sent between two gateways - -via the ARPANET is a highly variable quantity, with dependencies - -on hundreds of other things going on within the ARPANET. It is - -hard enough to get a handle on just what other things the - -throughput of a given connection depends on; we certainly can't - -express this dependency as a function, or assign numerical values - -to the "capacity." This seems to mean that currently known - -optimal routing algorithms are really quite useless within the - -context of the internet. Of course, they are not too useful even - -in individual networks, when considered as the operational - -routing algorithm of the network. They are, however, sometimes - -useful as a benchmark to which the operational routing algorithms - -can be compared. That is, it is a meaningful question to ask, - - - 18 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -"how close does SPF routing in the ARPANET come to optimal?", - -where "optimal" is defined as the result produced by some optimal - -algorithm, run off-line. Within the context of the internet, it - -is difficult even to give meaning to this question. There is no - -mathematical model of the internet to which we can appeal. - - - This also raises an interesting question about the design of - -the internet topology, i.e., where to place the gateways and how - -best to interconnect them. The usual mathematical techniques for - -trying to optimize network topological design also assume some - -fixed assignment of capacity to the links; it's not obvious how - -such techniques can be extended to the internet. - - -4.3 Some Issues in SPF Routing - - - Even if we give up the quest for optimal routing, there are - -still a number of substantive things we can require of a routing - -algorithm. For example, we would like to have some form of - -distributed routing, rather than centralized routing, simply for - -reasons of robustness. ("Distributed routing" refers to any - -routing scheme in which each Switch computes its own routing - -table.) What this means basically is an algorithm based more or - -less on the routing algorithm of the ARPANET, i.e., an algorithm - -which runs in each Switch and computes the shortest path to each - -other Switch, based upon (dynamically determined) knowledge of - -the connectivity of the internet Network Structure, and an - -assignment of "length" to each Pathway that connects two - - - 19 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -Switches. Routing algorithms of this sort can be characterized - -by three separable components: (a) the algorithm used to compute - -the shortest path, given the assignment of lengths to Pathways, - -(b) the algorithm used to assign a length to a given Pathway, and - -(c) the protocol used by the Switches for sharing routing - -information. - - - The most efficient shortest path algorithm that we know of - -is the SPF algorithm of the ARPANET [1,3] (which is basically - -just a modification of Dijkstra's shortest path algorithm), and - -we propose to base an internet routing algorithm on this. There - -are other algorithms for performing a shortest path computation, - -but the SPF algorithm seems to dominate them. One possible - -alternative to SPF would be something based on the distributed - -computation of the original ARPANET routing algorithm (which is - -the basis for the current Catenet routing), but we have studied - -that algorithm at great length and in great detail and it is - -inferior to SPF in a large variety of ways [3]. There are many - -other shortest path algorithms (such as Floyd's algorithm, or the - -algorithm advocated by Perlman in IEN 120), but the efficiency of - -these algorithms does not compare with that of SPF. We will not - -consider the issue of choosing a shortest path algorithm any - -further. - - - In the ARPANET, the "length" assigned to a line is just the - -average per-packet delay over that line during a preceding period - - - - 20 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -of ten seconds. The current Catenet routing algorithm assigns a - -length of 1 to each Pathway, irrespective of the delay. Other - -possible assignments of lengths to Pathways are also possible. - -We will recommend the use of measured delay as the best metric - -for the internet routing algorithm to use, and we argue for this - -proposal in sections 4.3.1 and 4.3.3. Section 4.3.2 covers the - -related topic of "load splitting." (One purpose of that section - -is to show that the two topics are indeed related, and in ways - -more subtle than generally realized.) In section 4.4, we discuss - -some of the issues in the design of an algorithm to measure the - -delays. - - - In the ARPANET, a routing update generated by an IMP A - -specifies the average per-packet delay on each of A's outgoing - -lines. Every update generated by an IMP is sent to every other - -IMP in the network, not just to the neighboring IMPs, as in the - -Catenet routing algorithm. This updating protocol, and its - -applicability to the internet, are discussed in section 4.5. - - - Although a routing scheme can be divided into a number of - -separable components, it is important to keep in mind that the - -ultimate characteristics of the routing scheme will result from - -the combination of the components. A routing scheme must be - -judged as a whole. The reader should try to focus throughout on - -how the components work together, and resist the temptation to - -judge each component separately. - - - - 21 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -4.3.1 Min-Hop Routing (Why Not to Use it) - - - The simplest routing scheme which is based on having each - -Switch compute its shortest path to each other Switch is - -"min-hop" routing. In min-hop routing, all Pathways are assigned - -unit length, so that the shortest path between two Switches is - -just that path which has fewer Pathways than any other. - -(Generally, ties are broken arbitrarily.) This sort of routing - -is used in the current Catenet, where traffic is routed through - -the fewest possible number of intermediate networks (or - -equivalently, through the fewest number of intermediate - -gateways.) This form of routing is quite simple, and does not - -require us to worry about anything as complicated as detecting - -changes in load or delay in remote components of the Network - -Structure. Such changing conditions within the Network Structure - -have no effect at all on the routing. This form of routing can - -be done with the minimal amount of overhead (in terms of the need - -to send routing updates from Switch to Switch). Updates need to - -be sent only when the Pathways go down or come up. Any algorithm - -which attempts to be more responsive to changing conditions in - -the Network Structure than min-hop routing still needs these - -up/down updates, plus more besides. Min-hop routing is - -definitely what one would use if one wanted to put in a "quick - -and dirty" routing algorithm, and put off worrying about - -complexities until some unspecified later time. It is also - -possible to argue for min-hop routing in the internet on more - -principled grounds, as follows: - - 22 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - "In general, it is not unreasonable to expect that the more - component networks an internet packet goes through, the less - likely it is to get to its destination, and the longer its - delay is likely to be, if it does reach its destination. We - might expect that the number of component networks a message - goes through would generally correlate fairly high with the - delay of the message, and would generally correlate fairly - low with the obtainable throughput of a host-host transfer." - - - Unfortunately, this sort of reasoning is only valid when - -applied to a Network Structure consisting of homogeneous - -Pathways, which have similar characteristics with respect to - -delay, throughput, and reliability. This is rather unlikely to - -be the case in the internet, whose distinguishing characteristic - -is the heterogeneity of its Pathways. Where the Pathways of a - -Network Structure have widely varying characteristics, delay and - -throughput are not very likely to correlate well simply with the - -number of hops. - - - It is true that the delay-oriented routing of the ARPANET - -generally gives the min-hop paths. (Remember, though, that the - -ARPANET, unlike the internet, has generally homogeneous - -Pathways.) Min-hop routing is all right for the "normal" case, - -where there are no areas of congestion in the network or - -internet, no areas where the delay is unusually high compared to - -other areas. Routing, however, is no different from other - -computer system applications, in that a scheme that works well - -only in the normal case just is not robust enough to be - -satisfactory. (Think of a magnetic tape driver which works in - -the normal case, where no tape errors are encountered, but which - - - 23 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -crashes the system in the presence of "unusual" events, like - -errors on the tape. Such a driver may be acceptable if one - -accesses one tape a month, but not if one needs to read or write - -ten tapes a day. The analogy is that min-hop routing may perform - -acceptably in an experimental network with little traffic, but is - -much less likely to be acceptable in a heavily loaded operational - -network.) It is extremely common for some area of the network to - -be much more congested than another, so that traffic flows which - -traverse a particular area experience a very much longer delay - -(and lower throughput) than traffic flows which avoid that area. - -Significant imbalances in load cause significant reductions in - -the correlation between hop-count and performance. Such - -imbalances may not be present in a network initially, but if the - -ARPANET experience is any indication, imbalances start to occur - -with increasing frequency as network utilization grows. If the - -routing algorithm cannot account for such imbalances, network - -performance problems will start to occur with ever-increasing - -frequency as the network gains more users. This was our - -experience with the original ARPANET routing algorithm. For all - -its widely publicized faults, it provided generally acceptable - -performance as long as the network was very lightly utilized, but - -its failures became more and more evident as the ARPANET shifted - -from a research prototype to a communications utility. If we - -expect our network or internet to be heavily used by real users - -who are sending real data that they really need for their - - - - 24 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -applications, OUR ROUTING ALGORITHM WILL HAVE TO BE ROBUST ENOUGH - -TO DETECT EXCEPTIONAL CONDITIONS AND TO ROUTE THE TRAFFIC IN SUCH - -A WAY AS TO MINIMIZE THE EFFECT OF THE EXCEPTIONAL CONDITIONS. - -IF AREAS OF THE NETWORK BECOME CONGESTED OR EXPERIENCE UNUSUALLY - -LONG DELAYS, THEN WE HAVE TO BE ABLE TO ROUTE THE TRAFFIC AROUND - -THESE AREAS, instead of blindly sending traffic into congested - -areas. At a certain level of congestion, sending traffic into a - -congested area is like sending it into a black hole; the traffic - -will never leave the area to progress to its destination. - -Sending traffic into a congested area also induces a feedback - -effect, causing the congestion to spread farther than it - -otherwise would, and making it that much less likely that the - -congestion will dissipate. Any routing algorithm which cannot - -take this into account will not be robust enough to survive in a - -real operational environment. - - - Min-hop routing also has another disadvantage which is more - -specific to the internet environment. Let N1, N2, and N3 be - -three networks, and suppose we have to get some traffic from N1 - -to N3 by using N2 as a transit network. Let G12 be a gateway - -connecting N1 and N2, let G23 be a gateway connecting N2 and N3, - -and let G2X be a gateway which connects N2 to some other - -unspecified network. If we use min-hop routing, then any traffic - -which must go from G12 to G23 must go "directly", through network - -N2, without stopping at G2X, because the path G12-G2X-G23 has one - -more hop than the path G12-G23. Perhaps this doesn't seem like - - - 25 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -much of a restriction; why would one want to have traffic stop at - -the intermediate gateway G2X when it could go directly from G12 - -to G23? Actually, two possible reasons come to mind immediately. - -The first reason has to do with the possible effects of the - -network's end-end protocol. In the ARPANET, for example, a - -source host is allowed to send only 8 messages to a given - -destination host before receiving the RFNM for the first of the 8 - -messages. Hence the throughput obtainable on a host-host - -connection is inversely related to the amount of time it takes to - -get a RFNM from the destination host to the source host. It - -follows that higher throughputs are obtainable between hosts that - -are "near" each other than between hosts that are "far" from each - -other. It is also possible that G12 and G2X will be near to each - -other, and that G2X and G23 will be near to each other, but that - -G12 and G23 will be far from each other. So the throughput - -obtainable in a transfer between G12 and G23 may be less than - -that obtainable in a transfer between G12 and G2X, and less than - -that obtainable in a transfer between G2X and G23. It follows - -that the throughput obtainable between G12 and G23 via G2X may be - -higher than the throughput obtainable between G12 and G23 - -directly. Basically, by using an additional gateway hop, the - -ninth message from G12 can be put into the network while the - -first message is still in transit from G2X to G23, while without - -the intermediate hop, this is not possible. Of course, the best - -solution to this sort of problem would be to fix the end-end - - - - 26 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -protocol so that it does not impose this sort of restriction. - -Our present point, however, is that our routing algorithm should - -not rule out the possibility of this sort of strategy. Note that - -by using an intermediate gateway hop, we might not only increase - -throughput, but also decrease the delay (since a ninth message - -would not be blocked as long.) - - - (It is interesting to think about whether this sort of - -strategy might not be useful entirely within the ARPANET.) - - - Another possible scenario in which an intermediate gateway - -hop might be useful occurs if the intermediate gateway is - -multi-homed. It is possible that an intermediate gateway will be - -homed to two IMPs which are distant from each other within the - -network. If so, the intermediate gateway may be used as an - -"expressway" around a congested area of the network. - - - If we replace the intermediate gateway G2X with two gateways - -G24 and G42, we also have the possibility of sending traffic from - -N1 through G12 into N2 to G24 through N4 to G42 into N2 to G23 - -and thence into the destination network N3. This is akin to the - -oft-discussed expressway problem, but cannot be handled within - -the framework of min-hop routing. Of course, it might be very - -difficult to take account of such factors, but one would not want - -to have a routing scheme which makes it absolutely impossible. - - - - - - - 27 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - Still another disadvantage of min-hop routing in the Catenet - -is the following. The current Catenet routing algorithm, when - -faced with three gateways on the same network, considers the - -three to be equidistant. However, the delay and throughput - -obtainable from gateway A to gateway B may be very much different - -than the throughput obtainable from gateway A to gateway C. In a - -large distributed network like the ARPANET, some pairs of hosts - -are connected by high-performance paths, and some by - -low-performance paths (either because they are separated by many - -hops, or because the path between them is under-trunked, etc.) - -Allowing the routing algorithm to be sensitive to this could - -potentially have a large impact on the internet performance. - - - There may not be any network that actually uses min-hop - -routing, except for the Catenet. There are, however, networks - -that use a variant of it, which we might call "fixed cost" - -routing. In fixed cost routing, each Pathway is still assigned a - -constant length, but not all Pathways are assigned the same - -length, and some Pathways have a length which is not equal to 1. - -In a scheme like this, one attempts to assign values of length so - -that slow-speed lines appear longer than high-speed lines, - -reliable lines appear shorter than unreliable ones, and lines - -with high propagation delays appear longer than lines with low - -propagation delays. This sort of routing is used in DATAPAC and - -in DECNET. Both those network architectures have routing - -algorithms based on the original ARPANET routing algorithm. The - - - 28 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -designers of those architectures apparently realized that min-hop - -routing is not very satisfactory if the links are not of - -relatively homogeneous quality, but were probably wary of the - -problems that the ARPANET's original algorithm had in adapting to - -changing traffic conditions. They avoided these problems by not - -adapting at all to changing traffic conditions. Of course, this - -is the weakness in fixed cost routing. It may be better than - -min-hop routing in a lightly loaded Network Structure with - -heterogeneous Pathways, but in a heavily loaded Network Structure - -with unbalanced load it really is no better than min-hop routing, - -and will still send traffic right into congested areas. - - - We have been emphasizing the claim that routing ought to be - -able to detect congestion and route traffic around it. Some may - -wonder whether we are confusing the proper functions of routing - -with the proper functions of congestion control. That is not the - -case. Congestion control schemes generally try to limit the - -amount of traffic entering a network so as to prevent or to - -reduce the overloading of some resource or of the whole network. - -When congestion actually exists in the network, however, it is - -the job of routing to try to send traffic around the congested - -areas; otherwise the routing actually causes the congestion to - -increase. Of course, one might attempt to design the routing - -algorithm under the assumption that there will be a congestion - -control scheme that will make congestion impossible. However, - -such a design could not be very robust. If we want to build a - - - 29 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -robust Network Structure which will continue to operate under a - -variety of unforeseen conditions, then we want each software - -module or protocol to be designed with the assumption that the - -other modules or protocols will be less than optimal. The - -resulting system will be much less prone to system-wide failure - -than one which is designed so that no part of it will work at all - -unless every part of it works perfectly. Although we will not be - -discussing explicitly, in this paper, any schemes for controlling - -the amount of traffic which is input to the internet, that - -doesn't mean that we can ignore the way in which the routing - -algorithm affects and is affected by the existence of congestion. - -Particular problems related to overload of network resources - -should be discussed in whatever context they arise in, without - -worrying about whether the problem is properly called "congestion - -control" or "routing." There is in general no way of telling in - -advance whether the best solution to a particular problem is a - -routing solution or a congestion control solution, and putting - -labels on the problems just restricts our thinking. - - -4.3.2 Load Splitting - - - Routing in the ARPANET has always been "single-path - -routing." We mean by this that at any given moment, the - -ARPANET's routing algorithm provides only a single path between - -each pair of IMPs. All traffic which enters the network at some - -particular time, originating at IMP A and destined for IMP B, - - - - 30 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -will travel over the same path. Actually, this statement is - -somewhat oversimplified, since there might be a change of routes - -while some traffic is already in transit. The point, however, is - -that at any given time, each source or intermediate IMP will send - -all traffic for a particular destination IMP to a unique - -neighbor; it cannot split the traffic among several neighbors. - - - Routing in the Catenet is currently somewhat different. - -Suppose gateway A has two neighbors, B and C, and has some - -traffic to send to gateway E. The routing algorithm run in A - -assigns a distance value to the path to gateway E via neighbor B - -and a distance value to the path to E via neighbor C. If the - -distance from A to E via B is the same as the distance from A to - -E via C, then gateway A will alternate between use of B and C - -when sending traffic to E. That is, A makes simultaneous use of - -two distinct paths to E. Such a scheme would be somewhat more - -difficult to put into SPF routing, because in SPF routing, no - -assignment of distance values from A to E via each of the two - -neighbors is generated. Rather, only one path is computed, via - -one of the neighbors, and only the distance on that one path is - -known. Distance on other paths is not computed by the SPF - -algorithm. (On the other hand, the SPF algorithm generates the - -entire path, so that each Switch knows which other Switches its - -traffic will be routed through on the way to the destination. - -The original ARPANET algorithm does not do this, but only tells - -each Switch which of its neighbors to use when sending traffic to - -the destination.) - - 31 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - What is the significance of this? It seems to be commonly - -regarded as obvious that multi-path routing, or load splitting, - -is an important advantage, so that routing algorithms that permit - -it are better than routing algorithms that do not. However, when - -one asks advocates of multi-path routing why it is better than - -single-path routing, a very common answer seems to be, - -"Multi-path routing is better because it provides multiple - -paths." This sort of answer is rather superficial. - -Multiple-path routing is NOT a goal in and of itself; IT IS - -IMPORTANT ONLY INSOFAR AS IT SERVES SOME MORE FUNDAMENTAL GOAL. - -If a multi-path routing algorithm results in smaller delays or - -larger throughput than some other algorithm, then that is a good - -reason for favoring it over the other algorithm. Now, it is - -certainly true that any routing algorithm which OPTIMIZES network - -delay or throughput will be a multiple-path algorithm. THE - -CONVERSE, HOWEVER, IS NOT TRUE. A routing algorithm which - -provides multiple paths does not necessarily optimize delay or - -throughput. In fact, merely because a routing algorithm provides - -multiple paths, it does not follow that it provides better - -performance in any respect than some other routing algorithm - -which provides only a single path between a pair of Switches. An - -algorithm which provides a single good path may be far superior - -to an algorithm which provides several poor ones. - - - To see this, let's look at some possible effects of the load - -splitting in the Catenet routing algorithm. Let A, B, C, D, and - - - 32 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -E be five gateways, and suppose that there are two possible paths - -from A to E, namely ABDE and ACDE. The Catenet routing algorithm - -would regard these two paths as equidistant, since that algorithm - -regards two paths as equidistant if they contain the same number - -of intermediate gateways. Therefore gateway A would perform load - -splitting on its traffic to E, sending half of the traffic to - -neighbor B and half to neighbor C. Does this provide more - -throughput than the use of a single one of these paths? Not - -necessarily. If the bottleneck on the paths from A to E is the - -Pathway DE, then the use of these two paths provides no more - -throughput than the use of either one alone. In fact, if DE is - -the bottleneck, the use of the two paths will probably result in - -lower throughput than the use of a single path. The use of - -several paths increases the likelihood of the packets from A to E - -arriving out of order at the destination host. Yet as more - -packets arrive out of order, more TCP resources are needed to - -handle them, and the TCP just has that much more work to do. TCP - -buffers that are occupied by out-of-order packets cannot be - -"allocated" for receiving more packets, so acknowledgments must - -be delayed, and windows must be kept smaller. The result of all - -this will be higher delays and lower throughputs. This was - -probably not the intention of load splitting, but is a likely - -consequence of it. - - - Suppose there really are two independent paths from A to E - -which are "equidistant", say ABDE and ACFE. Even here, sending - - - 33 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -half the packets on each path may only degrade performance. To - -see this, suppose each of the Pathways AB, BD, DE, AC, and CF has - -a capacity of 50 kbps, but that link FE has a capacity of 10 - -kbps. Suppose also that we want to send 50 kbps of traffic from - -A to E. If we alternate packets between these two paths, by - -trying to send 25 kbps of traffic each way, we will be able to - -get at most 35 kbps of traffic through to the destination, and we - -will cause severe congestion on link FE (which will probably - -result in its being able to carry even less than the rated 10 - -kbps, further lowering the network throughput.) Had we used only - -the single path ABCD, we would have been able to pass more - -traffic. Again, we see a situation where the use of load - -splitting can reduce throughput and increase delay. - - - This sort of problem might at first appear to be too - -unlikely to be worth worrying about. However, it has already - -occurred in the Catenet, and has caused a significant problem. - -In fact, in the Catenet's actual problem, half of the traffic was - -sent on a path whose capacity was sufficient to handle all the - -traffic, and the other half of the traffic was sent on a path - -whose capacity was essentially zero (because a network partition - -made the destination host unreachable on that path). In this - -case, load splitting resulted in the throughput being cut in - -half, as half the traffic was routed down a black hole! The - -problem was "solved" by eliminating one of the two possible - -paths, thereby eliminating the possibility of load splitting. - - - 34 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -However, this does not seem like a proper way to deal with this - -problem in the general case. - - - The Catenet's load splitting has been defended from this - -latter objection as follows: "If there were no load splitting, - -maybe all the traffic would have been sent into the black hole, - -not just half." This is less a defense than a sad commentary on - -the state of the Catenet routing; to accept this sort of defense - -is just to give up entirely on the problem of internet routing. - - - Someone may reply to our first criticism of load splitting - -by saying "maybe the bottlenecks will be Pathways AB and AC, - -rather than DE, in which case the use of two paths does increase - -the throughput." This reply is correct, but not very important. - -The sort of load splitting done in the Catenet might, by pure - -chance, increase throughput in some particular case. The point - -though is that it is no more likely to increase throughput than - -to decrease it. Certainly there is no reason to suppose that the - -cases in which it might help are any more likely to occur than - -the cases in which it hurts. In our experience with the ARPANET, - -schemes that seem a priori as likely to hurt as to help always - -end up hurting more than helping. (In networking, Murphy's law - -is more than just a joke.) Choosing equidistant paths for load - -splitting will generally result in paths which are only small - -variants of each other (if it results in any paths at all, since - -there are not necessarily several equidistant paths between a - - - - 35 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -pair of Switches), and there is no reason to suppose that the - -bottleneck will not be common to each path. Even if we do get - -two paths which do not share a bottleneck, unless we try - -explicitly to apportion the flows to the relative capacities of - -the two paths (rather than just dividing the traffic 50-50), we - -will not, in general, gain any increase in throughput. - - - In chapter 4 of [6], we actually devised a multiple-path - -routing scheme, based on SPF, whose purpose was to maximize - -throughput. In this scheme, we make sure that any set of - -simultaneously used paths between two Switches are - -"bottleneck-disjoint", (i.e., they don't share a bottleneck), so - -that we know that we can get more throughput by use of several - -paths. We also devised a flow apportionment scheme which - -attempts to match flows (or parts of flows) to the available - -capacity of each path. Anyone interested in seeing what it - -really takes to do multi-path routing should look at that - -chapter. The scheme proposed there is quite complex, however, - -and it is not obvious that it will work. Some simulation work - -will eventually be done on it. Until that sort of algorithm is - -much better understood, it would not be very wise to use the - -internet to experiment with it. It will be difficult enough to - -adapt a well-understood and much-used routing algorithm (like - -that currently in the ARPANET) to the internet environment. The - -internet is certainly not a place for experimenting with new and - -untried routing algorithms. - - - 36 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - Although it is quite difficult to design a multi-path - -routing procedure that results in significant improvements of - -delay or throughput over single-path routing, there are other - -reasons for requiring multiple paths between a pair of Switches - -that are more easily dealt with. For example, we may be required - -to have different paths between a pair of internet gateways - -because of ACCESS CONTROL RESTRICTIONS. That is, certain classes - -of packets may not be allowed to traverse certain classes of - -networks, so that different routes would be required for the - -different classes of traffic. We may also decide that different - -types of service that may be requested by the user should travel - -over different paths, even if the source and destination gateways - -are the same for the different traffic classes (e.g., maybe we - -don't want to use multi-hop satellite networks for interactive - -traffic.) This is easily handled within the framework of SPF - -routing. Remember that the SPF algorithm produces the shortest - -path to a destination, based on an assignment of lengths to the - -Pathways. Rather than simply assigning a unique length to each - -Pathway, we can assign a set of lengths, indexed by traffic - -classes. We can then produce a set of routing tables, indexed by - -traffic type, such that the routing table for a given traffic - -type contains the "shortest" path, based on the length - -assignments for that traffic type. For example, if traffic class - -C is not permitted to traverse Pathway P, the length of P, - -indexed by C, can be set to infinity. This ensures that that - - - - 37 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -Pathway will not be part of any path found in the routing tables - -indexed by C. We even have the flexibility to assign to P a - -length which, while not infinite, is much larger than the length - -of any other Pathway. In this case, that Pathway will be used - -for traffic of class C only if EVERY path to the destination - -includes it (i.e., only if it can't be avoided). This sort of - -load splitting might be quite important in the internet, and is - -also quite simple to handle. - - -4.3.3 Delay vs. Throughput - - - In the ARPANET, each IMP measures the average delay per - -packet on each of its outgoing lines. This average delay is - -assigned as the "length" of the line, and shortest paths are - -computed on that basis. We have studied the performance of this - -algorithm a great deal [5]. It tends to use min-hop routes under - -conditions of light or of uniform load. However, it does seem to - -take account quite well of the varying delays that are produced - -by lines of different transmission or propagation delay - -characteristics. Since congestion causes large increases in the - -delays, congestion is generally detected by the routing - -algorithm, and traffic really is routed around congested areas - -when that is possible. While we cannot claim that our routing - -algorithm gives the optimal delay, the characteristics that it - -does have seem to be the characteristics that we would really - -like to see in any robust, operational network, and particularly - - - - 38 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -in the internet. The routing tends to be stable on what are - -intuitively the best paths, except when exceptional conditions - -arise which make it clear that some other path is likely to - -provide better performance. It is this sort of routing which we - -propose for the internet. - - - Before discussing further the use of delay-oriented routing - -in the internet, we would like to briefly consider the issue of - -throughput-oriented routing. In the previous section, we argued - -against the use of multi-path routing as a means of optimizing - -throughput, largely on the grounds that doing it right is - -extremely difficult (much more so than one might at first think), - -that the ways of doing it right are quite poorly understood, and - -that the internet is not a good testing ground for new and - -untried algorithms. However, one often hears that there are high - -throughput applications (bulk traffic) for which delay doesn't - -matter, and one may wonder whether there is not some kind of - -single-path routing which is more appropriate for such - -applications than is delay-oriented routing. One scheme that is - -very commonly suggested is that of routing traffic on the path of - -maximum excess capacity, instead of on the path of least delay. - - - Given an algorithm for determining the amount of excess - -capacity on each Pathway (which could be quite difficult to - -design for the internet environment -- how do we know what the - -excess capacity of a packet-switching network is?), it is no - - - - 39 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -difficult matter to modify the SPF algorithm to produce the paths - -of maximum excess capacity. However, it would not be a good idea - -to use the resultant routes for bulk traffic. For one thing, we - -must understand that such a routing algorithm would not maximize - -total network throughput. (By "maximizing total network - -throughput", we mean maximizing the amount of traffic that the - -network can handle.) Suppose, for example, we wanted to send 40 - -kbps of traffic, and had the choice of using a one-hop path with - -excess capacity of 50 kbps, or a 10-hop path, each of whose links - -had an excess capacity of 100 kbps (so that the total composite - -path has an excess capacity of 100 kbps). By using the shorter - -path, we use up a total of 40 kbps of network capacity, capacity - -which is now unavailable for other traffic. By using the longer - -path (which is the path of maximum excess capacity), we use up a - -total of 10x40 kbps (40 kbps per hop), thereby using up a total - -of 400 kbps which is no longer available for other traffic. In - -terms of maximizing the total network throughput, we do better by - -using the one-hop path, rather than the path of maximum excess - -capacity. - - - Maybe we are less interested in maximizing total network - -throughput than in finding a path for some particular traffic - -flow which has enough capacity to handle the required throughput - -of that flow. We still would not want to use the path of maximum - -excess capacity, for that path might have a delay which is much - -too long. Although we often hear that certain classes of traffic - - - 40 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -(e.g., file transfer) care only about throughput, not delay, this - -is really a gross oversimplification. In file transfer, we don't - -care how long it takes for the first packet to reach its - -destination, AS LONG AS ALL THE FOLLOWING PACKETS FOLLOW - -IMMEDIATELY, WITH NO DELAYS BETWEEN THE ARRIVALS OF SUCCESSIVE - -PACKETS. Of course, if there are long delays between the packets - -of a file transfer, the throughput will be very low. Hence it is - -not quite true to say that file transfers and the like are - -unconcerned with delay. If higher level protocols like TCP are - -being used, then routing over a path of long delay will certainly - -result in lower throughput. The reason is as follows. A TCP - -sender will only send a certain amount of data, until he fills - -the window specified by the TCP receiver. The size of the window - -is very likely to depend on such network-independent things as - -the amount of resources (e.g., buffers) in the destination host. - -If the path between source and destination host is very long, - -then the sending TCP will fill the window, and then have to wait, - -idly, for some period of time while his data gets to the - -destination, and while the message indicating the re-opening of - -the window is transmitted from the receiving TCP. Since this - -network-imposed long delay causes the sending TCP to have to be - -idle for some period of time, it holds down the throughput. So - -it seems that all things considered, simply routing - -high-throughput application traffic on the path of maximum excess - -capacity is unlikely to actually result in high throughput. - - - - 41 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - If we really wanted to do single-path throughput-oriented - -routing, we would need something like the following. We would - -want to route traffic on the shortest path (i.e., the path of - -least delay) which does not contain any components whose - -available capacity is too small to handle the needed throughput. - -This would prevent us from choosing a path with arbitrarily long - -delays, or a path with too little capacity. Unfortunately, it is - -almost impossible to find out either what throughput is needed by - -an application, or to find out just what the capacity of - -particular components of the internet is. We might want to - -consider some strategy such as not sending batch traffic on paths - -which include components which are very heavily loaded. This is - -fertile ground for experimentation. Our present point, however, - -is that the delay-oriented SPF routing of the ARPANET already - -provides the basic structure that we need to accommodate this - -sort of strategy. If we knew that we wanted bulk traffic to - -avoid certain Pathways (e.g., Pathways with too little - -bandwidth), we could have SPF routing compute the shortest routes - -that did not include those Pathways, by using the "indexed - -length" scheme described in section 4.3.2. There is no need to - -consider different sorts of routing schemes. - - -4.3.4 Knowing the "Whole Picture" - - - The use of the SPF algorithm requires that every Switch know - -the complete topology of the Network Structure. That is, every - - - - 42 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -Switch must know of all the other Switches, must know which - -Switches are "directly connected" to which other Switches, and - -must know the "length" of each Pathway. This is not to say that - -this information is "compiled in", or even loaded in manually. - -Rather, it is determined dynamically, in real-time, through - -interpretation of the routing updates (see section 4.5). It is - -this uniform global knowledge of the topology and the Pathway - -lengths that enables each Switch to run a shortest path - -algorithm, while producing routes which are consistent with the - -routes produced by other Switches, so that routing loops do not - -form. The SPF algorithm does not merely tell a Switch to which - -of its neighbors it should send packets for destination D. - -Rather, it computes the entire path to the destination Switch. - -However, when a packet is routed, it does not carry with it the - -identity of the entire route, as computed by its source Switch. - -Each Switch just forwards the packet to the next "hop" along its - -route. The fact that all Switches have the same information - -about the topology is what ensures that this routing will be free - -of loops. - - - Since each Switch performs its routing based on a complete - -picture of the topology of the Network Structure, we can call - -this sort of routing scheme a "whole picture" scheme. In this - -section, we will compare "whole picture" schemes with some other - -schemes which do not require the Switches to have uniform global - -knowledge of the topology. We argue that "whole picture" schemes - -are always superior. - - 43 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - The original ARPANET routing scheme, and the current Catenet - -routing scheme, are not "whole picture" schemes. In these - -routing schemes, no Switch need have any knowledge of the - -topology, other than who its own immediate neighbors are, and the - -lengths of the Pathways to its immediate neighbors. These - -algorithms function as follows. When a Switch first comes up, it - -forms a hypothesis as to the best neighbor to which to send data - -for each possible destination Switch. This initial hypothesis is - -based only on its own local information about the lengths of the - -Pathways to its neighbors. It then informs its immediate - -neighbors of its hypotheses, and is informed of their hypotheses. - -It then forms a new hypothesis, based on its own local - -information AND the hypotheses communicated to it by its - -neighbors. It then exchanges hypotheses with its neighbors - -again, and again, and again, until its own hypotheses are in - -complete agreement with those of its neighbors, at which point - -stability is reached. - - - To see the difference between this sort of routing scheme - -and the "whole picture" scheme, consider the following situation. - -Suppose we have 100 people in a room, sitting in chairs which are - -properly lined up so that we can talk of each person's having two - -immediate neighbors. We also have a picture of an object, and - -our goal is to have ALL the people agree on the identity of the - -depicted object. Now we have a choice of two different - -procedures for bringing this about: - - - 44 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -Procedure 1: Cut the diagram into 100 pieces, and give one piece - to each person. Each person is now allowed to look - at his one piece, and then form a hypothesis as to - what is depicted in the full picture. Then each - person can exchange hypotheses only with his - immediate neighbors. Then each person can form a - new hypothesis and exchange that with his immediate - neighbors. The procedure terminates when all 100 - people agree on what is depicted. - -Procedure 2: Make 100 Xerox copies of the diagram, and distribute - the copies to each person. - - -If we really think it is important for each person to know what - -is depicted in the picture, then we will certainly follow - -procedure 2, which will make the whole picture immediately - -available to all participants. Procedure 1 would only be useful - -as a party game. It would be quite amusing to see all the - -ridiculous hypotheses that are formed before all participants - -converge to the correct one, IF they ever do manage to converge. - -Even if they do converge, it might take quite a long time. We - -must remember that different people form hypotheses at different - -rates, and can communicate them at different rates. Some people - -may simply refuse to talk to certain neighbors at all. If one's - -left-hand neighbor has formed a good hypothesis, but one's - -right-hand neighbor has not, one's own hypothesis is likely to be - -thrown off the track, which in turn is likely to mislead one's - -left-hand neighbor into a poorer hypothesis during the next - -"iteration." This is not a very optimal procedure for bringing - -about convergence of opinion. - - - - - - 45 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - However, this situation is really too simple and - -straightforward to be truly analogous to routing. To improve the - -analogy, we must suppose that the picture is constantly changing, - -even as the people are still forming hypotheses. In procedure 2, - -this change is accounted for by simultaneously giving each - -participant a new copy of the picture. In procedure 1, changes - -in the picture are accounted for as follows: if the part of the - -picture originally given to person P has changed, then give him - -the corresponding piece of the same picture; he can now use this - -piece when forming his hypotheses, and should forget about the - -previous piece. When the procedures are thus modified to take - -account of changes in the picture, the situation described is - -more analogous to routing, and the advantages of procedure 2 over - -procedure 1 are even more pronounced. - - - The ARPANET's current routing algorithm is similar to - -procedure 2, since the whole picture is made available to each - -Switch. The ARPANET's original routing algorithm, and the - -Catenet's current one, are more similar to procedure 1; perhaps - -they should be called "jigsaw puzzle" algorithms. All of the - -problems of procedure 1 have their analogies in those routing - -algorithms. It should be obvious that in terms of - -responsiveness, accuracy, and consistency, whole picture - -algorithms are superior to jigsaw puzzle algorithms. Many of the - -problems of the original ARPANET routing algorithm, such as - -looping and very slow response to topological change, can be - -attributed to its "jigsaw puzzle" nature. - - 46 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - Even if one agrees that we ought to avoid "jigsaw puzzle" - -algorithms, one might still claim that we need not have a "whole - -picture" algorithm. One might wish to argue that a given Switch - -needs to know only the topology of a "region" which contains it. - -This region would be larger than a single Switch, but smaller - -than the set of all Switches. A region would also be - -geographically contiguous, so that if two Switches are in the - -same region, then there is a path between them which is entirely - -within the region. Then traffic which does not need to leave a - -region to get from its source to its destination is in effect - -routed by a "whole picture" scheme. Traffic which must leave the - -region, however, does not have its whole route preplanned. - -Switches within one region will know only how to get traffic out - -of the region. Other Switches in the next region will know how - -to get the traffic through that region, etc. It seems, one might - -argue, that this sort of regionalized routing scheme ought to be - -possible. After all, consider the analogy with ordinary road - -travel. If one wants to travel from Boston to Los Angeles, one - -need not preplan the entire route. One can just head in the - -general direction of Los Angeles, with no need to know anything - -about the roads which are close to Los Angeles until one actually - -gets close. A similar scheme ought to work with data. - - - One problem, however, with the suggested analogy, is that it - -does not even hold in the case of ordinary automobile travel. If - -one were planning an automobile trip to LA, one would want to - - - 47 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -know about any record-setting blizzards in the midwest long - -before one actually approached the midwest. One would want to - -know about the status of Mt. St. Helen's volcano long before one - -approaches Oregon. One might try not to be passing through - -Chicago at rush hour. Avoiding any of these potential disaster - -areas could require quite a bit of advance planning. Of course, - -the amount of advance planning that one performs when travelling - -is a matter of personality; some people are more adventurous - -than others, and might actually enjoy a disaster or two along the - -way. Users of a data communications utility, however, whatever - -personality traits they may have, generally do not want their - -data to be sent on an adventure. Rather, they want their data to - -be treated with a conservatism and caution which require - -considerable preplanning. - - - In any case, the analogy between the road system and a data - -communications network is very misleading because of the very - -rich interconnectivity of the road system. No matter how many - -problems an automobile driver encounters as he approaches Los - -Angeles, he still has a large number of choice points, in that he - -can take any number of relatively short detours around problem - -areas. In data networks, however, the connectivity is much less - -rich, and the closer the data gets to its destination, the fewer - -choice points there are. With a sufficiently sparse - -connectivity, the entire path could even be determined by the - -very first routing choice that is made, so that no detours around - - - 48 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -problem areas are possible once the "trip" begins. The situation - -is as if someone drove from Boston to Nevada, then found that all - -roads from Nevada to California were closed, and that he then had - -to drive all the way back to Boston to start on a new route to - -California. This sort of sub-optimality is inherent to any - -regionalized routing scheme for data communications networks. - - - In fact, the situation could be even worse. If Switches in - -Boston know nothing about what is happening between Nevada and - -California, then data for California which arrives at Nevada and - -then is sent back from Nevada to Boston for alternate routing - -will just loop back to Nevada. The data will be stuck in an - -infinite loop, never reaching its destination. In IEN 179, Danny - -Cohen proposes a regional routing scheme like this, apparently - -not realizing that it suffers from loops. His proposal also - -includes a form of hierarchical addressing which is closely bound - -up with routing, so that a Switch in Boston might not even be - -able to distinguish data for Nevada from data for California. - -That is, in Cohen's scheme, data for Nevada and data for - -California would be indistinguishable at the Boston Switches; - -all such data would appear to be addressed to Nevada. Only the - -Switches at Nevada would look further down the address hierarchy - -to determine whether the data needs further forwarding to - -California. Any such scheme is hopelessly loop-prone, except in - -a Network Structure whose connectivity is extraordinarily rich, - -much more so than the Catenet's will ever be. - - - 49 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - It might seem like these objections would also have to apply - -to the internet, since a gateway does not know all about IMPs and - -packet radios and SIMPs, etc., in the component networks. - -However, the looping problem is avoided in the internet since it - -is organized in a strict hierarchy of Network Structures. - -Switches in one Network Structure need not know anything about - -Switches in any other Network Structure, but they must have - -complete information (Whole Picture) about Switches in the same - -Network Structure. All (source or intermediate) Switches in a - -particular Network Structure always route data to a Switch in - -that same Network Structure. This imposition of strict hierarchy - -prevents looping, as long as the lower levels of hierarchy are - -controlled by the higher levels. In the internet, this means - -that, e.g., if a gateway hands a packet to an ARPANET IMP for - -delivery to an ARPANET Host or to another internet gateway, the - -ARPANET is required to deliver the packet as specified by the - -gateway, or to say why not. It must not simply pass the packet - -back to the gateway, or a loop will form. (This sort of looping - -has been frequently noticed between IMPs and port expanders.) - -This does not imply that an ARPANET IMP cannot pass a packet to - -an internet gateway for delivery (through an "expressway - -network") to another ARPANET IMP, but only that once an internet - -gateway decides to send a packet into the ARPANET, the ARPANET - -must get that packet to the intended destination, or else inform - -the gateway that it cannot do so. - - - - 50 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - It is also important to note that the hierarchical levels in - -the internet tend to be "horizontal", rather than "vertical". - -That is, in an internet spanning North America, there would be - -internet gateways located all across the continent, as well as - -IMPs and packet radios and PSATs located throughout the - -continent. This is quite different from regionalization, in - -which Switches which are close geographically are in a common - -region. This distinction is very important if we are to avoid - -such problems as looping. - - - Although building the internet as a strict hierarchy of - -Network Structures avoids the problems of looping, there is - -always some degree of sub-optimality introduced whenever the - -topological knowledge of the Switches is restricted in any way, - -even if the restriction is just to Switches within the same - -Network Structure. This is a point to which we return in section - -4.6, where we discuss some of the basic limitations of - -internetting. - - -4.4 Measuring Pathway Delay - - - One of the most basic problems in devising a scheme to do - -delay-oriented routing is to figure out a way to determine the - -delay. In the ARPANET, the delay measurement algorithm is quite - -straightforward. When a packet arrives at an IMP, it is stamped - -with its arrival time. When it is transmitted to the next IMP, - -it is stamped with the time of transmission. ARPANET packets are - - - 51 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -buffered in an IMP until acknowledged by the next IMP; if a - -packet has to be retransmitted, its transmission time stamp is - -overwritten with the time of latest transmission. When the - -packet is acknowledged by the receiving IMP, the arrival time is - -subtracted from the transmission time, yielding the total time - -the packet spent in the IMP. The propagation delay (i.e., the - -speed of light delay along the phone line from one IMP to the - -next) is then added in to compute the total amount of time it - -took to get the packet from one IMP to the next. There are three - -important aspects of this delay measurement algorithm: - - - 1) It is necessary to measure the amount time each packet - - spends within the Switch. This should be as easy to - - apply to a gateway as to an IMP. - - - 2) It is necessary to determine how long it takes a packet - - to travel from one Switch to another over the Pathway - - connecting them. If the Pathway is a telephone line, as - - in the ARPANET, this is just the propagation delay, and - - is a constant which can be separately measured and then - - stored in a table. On the other hand, if the Pathway is - - a packet-switching network, or even an internet, this is - - much more difficult to determine, and is certainly no - - constant. - - - 3) There must be some way to account for packets that don't - - get through, or don't get through immediately, due either - - - 52 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - to errors or to congestion. In the ARPANET, if a packet - - doesn't get through on its first IMP-IMP transmission, - - and has to be retransmitted 200 ms. later, this 200 ms. - - gets added into the packet's delay. This is a very - - important feature, since it enables the delay measurement - - to reflect the effect of congestion or of a very flakey - - line. But unless the gateways run a reliable - - transmission protocol among themselves, it will be - - difficult to make sure that our delay measurement really - - reflects these factors. If we are trying to send data - - through a network which is dropping most of the data we - - send it, we want to make sure that our delay measurement - - routines produce a high value of delay, so that traffic - - will tend to be routed around this very flakey and - - unreliable Pathway. (Remember that if too much traffic - - is dropped, some (higher) level of protocol will have to - - do a lot of retransmissions, resulting in very high - - delays and low throughputs.) - - - The problem of how to measure delay is more tractable in the - -case of AREA ROUTING than in the more general internet case. - -Recall that by "area routing," we mean a sort of internet all of - -whose component networks are basically identical (see IEN 184). - -For example, we might at some future time decide to divide the - -ARPANET into areas, connected by gateways, so that the ARPANET - -itself turns into a hierarchical network. If we decide to use - - - 53 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -the same routing algorithm at the high level (i.e., among the - -intra-ARPANET gateways) as we use at the lower level (i.e., among - -the individual IMPs in a particular area), then the gateways - -could obtain the delay measurement information directly from the - -routing updates sent by the individual IMPs. That is, the lower - -level routing algorithm could provide information to the gateways - -enabling them to deduce their delay to other gateways. If the - -gateways are also ordinary IMPs, this information is - -automatically available. If the gateways are hosts on the low - -level ARPANET, a special protocol would have to be developed to - -enable the IMPs to transmit the routing updates to the gateways - -they are connected to (though this wouldn't be much different - -from the protocol that IMPs now use to transmit routing updates - -to their neighboring IMPs). Of course, if we were to implement a - -scheme like this, we would still want to make the ARPANET appear - -as a single Pathway (with no intermediate Switches) at the level - -of the Network Structure of the Catenet. That is, the Catenet - -would be a third hierarchical layer over the two hierarchical - -levels of the ARPANET, which would be transparent to it. - - - In the more general internet case, we cannot rely on the - -component networks to provide us with the sort of delay - -information we would like to use for the internet routing - -algorithm; the internet Switches will have to have some way of - -gathering this information themselves. In general, it will not - -be possible for a Switch to measure the one-way delay from itself - - - 54 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -to its neighbors. (We wouldn't want to rely on the radio clocks - -that are now beginning to be deployed at the gateways; while - -these might be useful for doing measurements, we wouldn't want - -the reliability of the entire operational internet system to - -depend on a radio broadcast over which we have no control.) It - -is possible, however, to measure round-trip delay between each - -pair of neighboring gateways. In the ARPANET, for example, - -round-trip time is easily measured by keeping track of when a - -message is sent to a neighboring gateway, and then noting the - -time when the RFNM is received. One-way delay would be - -approximated by dividing the round-trip delay in half. - - - It is certainly true that the round-trip delay is not, in - -general, exactly twice the one-way delay. However, it seems like - -a good enough approximation to use in the internet routing - -algorithm. All we really require is that it be roughly - -proportional to the one-way delay, in that both one-way and - -round-trip delays tend to rise and fall together, and that - -congestion in the Pathway (component network) tends to make both - -increase. Of course, before designing the precise delay - -measurement scheme that we would want to use in the internet, we - -would have to run a series of tests and experiments to see which - -of several possible delay measurement algorithms gives us the - -results we want. This would be similar to the extensive testing - -of the ARPANET's delay measurement algorithm that is documented - -in [4]. - - - 55 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - Unfortunately, there are many networks which do not return - -anything like RFNMs that could be used to gauge even the - -round-trip delay. (Many networks, e.g., SATNET and the - -forthcoming wideband network, do not even tell you whether you - -are sending traffic to a host which is down.) So we will need a - -gateway-gateway protocol in which gateways receiving data from - -other (neighboring) gateways send back replies which can be used - -for timing. - - - This does not mean that every packet sent from one gateway - -to another must be acknowledged by the receiving gateway. - -Rather, we would propose something like the following. Suppose - -we have, as part of the gateway-gateway protocol, a bit that a - -sending gateway can set which requires the receiving gateway to - -acknowledge the packet. The sending gateway can have a random - -number generator, which lets it select packets at random in which - -to set this bit. These packets will have their round-trip delay - -measured, and will constitute a random (and hopefully a - -representative) sample. The packets need not be buffered in the - -sending gateway pending acknowledgment, but they will need to - -have unique identifiers so they can be kept track of. The - -round-trip delay of each packet is then easily determined when - -the acknowledge is received. (This probably implies though that - -gateways will have to run a protocol with their neighbors when - -they first come up in order to synchronize sequence numbers to - -use for identifying packets uniquely.) There will also have to - - - 56 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -be a time-out, so that a packet which is not acknowledged within - -a certain amount of time (perhaps dependent on the expected delay - -of the packet, based on previous measurements) will be considered - -to have been lost on the Pathway between gateways (or in the - -receiving gateway). Packets which have been lost should be - -assigned a very high delay, so that the routing algorithm assigns - -a very high delay to Pathways which lose a lot of packets. This - -will tend to cause internet traffic to avoid such Pathways. - -There doesn't seem to be any problem in principle with a scheme - -like this, but we will probably need to do some statistical - -analysis in order to determine the best random sampling - -technique, and to figure out how many packets we might need to - -keep track of during some period of time (i.e., how big a table - -do we need to keep track of packets which are awaiting - -acknowledgments?). - - - This sort of random sampling can also be used as part of a - -Pathway up/down protocol. If a certain percentage of the sampled - -packets do not get through, it might be good to assume that the - -Pathway is not of sufficient quality to be operational, and - -should appear to be down as far as the internet routing algorithm - -is concerned. In the absence of real data traffic, we could run - -the up/down protocol with randomly generated test packets. - -Randomly generated test traffic or randomly sampled data traffic - -will give us a better result than periodic test traffic, since - -measurements based on random sampling are less likely to be - -correlated with other network phenomena.) - - 57 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - After we compute the delay for individual packets, we still - -face the following two questions: - - - 1) The delay which the routing algorithm assigns to a - - particular Pathway will be a function of the measured - - delays of the individual packets sent on that Pathway. - - But what function should it be? - - - 2) Once a Switch determines the delay on the Pathways - - emanating from itself, it must inform all other Switches - - of these values (in routing updates). What protocol - - should it use for disseminating these updates? - - -The second question will be discussed in section 4.5. The - -remainder of this section will deal with the first question. - - - After measuring the delays of individual packets, the - -individual delays must be put through some sort of smoothing - -function before they can be used as input to the routing - -algorithm. For example, in the ARPANET, we take the average, - -every 10 seconds, of the delays experienced by all the packets - -traversing a particular line in the previous 10 seconds. This - -average is used as input to the routing algorithm (i.e., it is - -assigned as the "length" of the line when the shortest-path - -computation is run.) We didn't choose this smoothing function at - -random; we chose it because it meets certain desiderata. Our - -real purpose in measuring delay on a particular line is to enable - - - - 58 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -us to predict the delay that will be seen by packets which are - -routed over that line in the future. Knowing the average delay - -during some period in the past is of no value except insofar as - -it enables us to make predictions about the future. We found in - -the ARPANET that for a given level of traffic, the delays - -experienced by the individual packets would vary quite a bit, but - -the delay when averaged over 10 seconds stayed relatively - -constant. (It is interesting that everyone who does measurements - -of individual packet delay always discovers this large variance, - -and always expresses great surprise. This "surprising" result is - -so often re-discovered that it should cease to be a surprise.) - -When designing the delay measurement routines for the ARPANET, we - -investigated some other smoothing functions (everyone seems to - -have his own favorite), but none gave more reasonable results - -than the simple average we adopted (which is not a running - -average, but rather starts over again from scratch every 10 - -seconds). We also tried averaging periods of less than 10 - -seconds, but found what we regarded as too much variation, even - -when the traffic load was stable. - - - Note that if we take an average every 10 seconds, we cannot - -react to a change of conditions in less than 10 seconds, and we - -are often criticized by people who claim that it is important for - -routing to be able to react more quickly. Our reply, however, is - -simply that it takes 10 seconds to be able to detect a - -significant change in delay. Averages taken over smaller periods - - - 59 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -show too much variation under constant load to be useful in - -predicting the future delay, and hence are not useful in routing. - -In other words, averages taken over smaller periods give spurious - -results, "detecting" changes when in fact there are none. We - -want to change routing in response to real changes in network - -conditions, but not in response to the normal range of stochastic - -variations in delay. Any change in routing made on the basis of - -a shorter-term average is at least as likely to be harmful as to - -be helpful. That is, if we attempt to make routing changes based - -on delay data which is not sufficiently smoothed, we are really - -making changes at random, since we have left too much random - -variation in the delay data. And it seems that a good routing - -algorithm should not make changes at random. Of course, it would - -be nice if we could make routing changes instantaneously based on - -instantaneously detected changes in real network conditions, but - -this is not possible simply because there is no instantaneous way - -of detecting important changes in network conditions. - - - It is important to realize, however, that the measurement - -periods in the various IMPs are not synchronized. Although a - -given IMP generates updates no more often than every 10 seconds, - -some IMP or other is generating an update about every 500 - -milliseconds. Mathematical analysis indicates that synchronized - -measurement and updating periods should be avoided, since they - -give worst case performance [4]. - - - - - 60 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - There are other important reasons for not making routing - -changes too often. During the lifetime of a single packet in the - -network, we want the routing to be relatively constant, so that - -the packet can get to its destination without having to take too - -many detours. If we changed the routing every millisecond, for - -example, a single packet in transit though the network would - -experience many routing changes while in transit, which would - -probably cause it to have a longer delay than necessary. The - -rate at which we change routing should be low relative to the - -average transit time of a packet through the network. Another - -reason for not making routing changes too frequently has to do - -with the time it takes routing updates to travel around the - -network. We want to make sure that the information carried in a - -routing update is not totally obsolete by the time the update is - -received. This implies that the smoothing interval for delay - -measurements has to be long relative to the time it takes updates - -to traverse the network. - - - In the ARPANET, 10 seconds is much longer than the amount of - -time it takes to get updates around, or the amount of time a - -packet spends in transit in the network. We chose 10 seconds as - -the averaging interval because it seemed to be the shortest - -period that was long enough to give us a reasonable amount of - -smoothing. If we think that in the internet, however, average - -transit times might be measured in the tens of seconds, we may - -have to make our smoothing interval considerably longer than 10 - - - 61 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -seconds, perhaps as long as a minute. This could seriously limit - -the responsiveness of the routing algorithm to changing network - -conditions. However, there is nothing we can do about this. THE - -LONGER IT TAKES PACKETS TO TRAVEL AROUND A NETWORK, THE LESS - -RESPONSIVE THE ROUTING ALGORITHM OF THAT NETWORK CAN BE, for the - -simple reason that it will just take longer to disseminate the - -information needed for routing around the network. The transit - -time of a network places an upper limit on the responsiveness of - -that network's routing algorithm. Any attempt to exceed this - -upper limit (with kludges or heuristics) will just be futile, and - -will result only in unstable and mysterious behavior on the part - -of the routing algorithm, reducing, rather than increasing, - -performance. - - - This is not to say that each Switch must generate routing - -updates as often as every 10 seconds. If there is no change in - -delay from one 10-second period to another, then there is no - -reason to generate an update. Or if there is a change, but it is - -not "significant", then there is no reason to generate an update. - -In the ARPANET, a delay change is considered to be significant if - -it exceeds a certain (parameterized) threshold. We devised a - -scheme wherein the threshold decreases with time, so that a very - -large change is always "significant", but a small change is - -significant only if it persists for a long time. Of course, - -routing updates must be generated not only in response to - -measured changes in delay, but also if a line goes down or comes - -up. - - 62 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - We would expect that the details of the delay measurement - -and smoothing algorithms will have to be different in the - -internet than in the ARPANET, but the principles outlined above - -would seem to apply in the internet environment also. WE WILL - -HAVE TO DO SOME CAREFUL EXAMINATION OF THE DELAY-THROUGHPUT - -CHARACTERISTICS OF EACH OF THE INDIVIDUAL NETWORKS THAT ARE USED - -AS PATHWAYS IN THE INTERNET, and it may be that somewhat - -different smoothing algorithms will have to be used for the - -different kinds of Pathways. However, there doesn't seem to be - -any problem in principle with doing this sort of delay - -measurement. - - - An interesting issue arises if a given pair of gateways is - -connected by two or more distinct Pathways. For example, two - -gateways might both be connected to ARPANET and SATNET, so that - -each can be reached from the other by either of those two - -networks. Or, a gateway might be multi-homed on the ARPANET, so - -that it has two distinct access lines over which it can reach all - -the other ARPANET gateways. In such cases, do we want to - -separately report the delay on each of the distinct Pathways, or - -do we want (at the level of routing) to represent the connection - -between each pair of gateways as a single, unique line, whose - -delay is some function of the delay of the distinct Pathways - -which really exist? This issue is a generalization of an issue - -we have been looking at in the context of the ARPANET, which we - -call "parallel trunking." In parallel trunking, a single pair of - - - 63 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -IMPs is connected by two or more trunks, and the same issue of - -how to represent them in routing (as individual trunks, or as a - -single, composite, trunk) arises. When the trunks are telephone - -lines, the problem is relatively easy to deal with. Routing can - -treat them as a single trunk, with a delay which is the average - -delay of all packets sent over the composite trunk. The actual - -decision as to which particular component trunk to use for - -transmitting a particular packet can be made locally, by the IMP - -to which the parallel trunks are connected; there is no need for - -routing to play a role in this decision. - - - In the case where the parallel trunks are of comparable - -lengths (so that there is not much difference in the propagation - -delays), the trunks can serve a common queue according to the - -standard FIFO single-queue multiple-server discipline. If the - -trunks are more heterogeneous, say one is a terrestrial line and - -one is a satellite line, a somewhat more complex queuing - -discipline is required. We would like to avoid using the - -satellite line until the load is such that if only the - -terrestrial line were used, packets would experience a delay - -comparable to that they experience over the satellite line. With - -this sort of queuing discipline, packets sent to the composite - -line experience a delay which is independent of the particular - -component (land-line or satellite line) that they use. That is, - -no packet is forced to suffer the quarter-second satellite delay - -unless the terrestrial line is so backed up that the delay for - - - 64 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -packets sent over it is comparable to the delay of packets sent - -over the satellite line. This sort of scheme seems to ensure the - -best delay performance for the composite trunk. (Actually, the - -mathematics of queuing theory suggests that a smaller average - -delay for the composite trunk might be achieved by starting to - -use the satellite line sooner. That is, a somewhat smaller - -average delay might be achievable if a few packets are given a - -much longer delay by being forced over the satellite line sooner - -than they would be with the queuing discipline we suggested. - -Considerations of fairness would seem to rule that out, however; - -how would you like it if your data got a much higher delay so - -that someone else's could get a slightly smaller one? In - -addition, the queuing discipline we suggested would seem to - -produce a smaller variance in delays, thereby making the measured - -average delay on the composite trunk a better predictor of future - -performance, and the better we can predict future performance, - -the better performance our routing algorithm can provide.) - - - Basically, there is no reason for routing to be aware that a - -particular line consists of several parallel components rather - -than a single component, because, if the argument above is right, - -any decision as to which component to use can be best made - -locally, at the IMP from which the parallel lines emanate. That - -is, the global routing algorithm cannot really make effective use - -of information about which lines consist of parallel components, - -and should not be burdened with information that it cannot use. - - - 65 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -This is good, since the SPF algorithm cannot really handle - -parallel lines between a pair of Switches except by representing - -them as a single line. (A careful study of the algorithm would - -show that much of the algorithm's space and time efficiency would - -be sacrificed if it had to be modified to handle parallel trunks - -as separate trunks. Since this efficiency is the main thing that - -recommends the SPF algorithm over other shortest-path algorithms, - -we must be sure that we don't destroy the effectiveness of the - -algorithm by making poorly thought-out changes to it.) - - In the internet environment, however, we have a more complex - -problem with parallel trunks than in the ARPANET. The scheme we - -outlined for using parallel trunks in the ARPANET depends on our - -being able to know when the load on the composite trunk is such - -that exclusive use of the faster component would cause delays - -that are just as high as we get when we use the slower component. - -This is not difficult to know if the components are phone lines - -of one sort or another, since the relation between load and delay - -is pretty well-defined if we know the length of the lines and - -their capacity. If the components of a parallel "trunk" are - -really packet-switching networks, however, it is much harder to - -figure out which components are slow and which are fast, and it - -is hard to figure out when the load on the fast component is such - -that we have to start using the slow one. - - - It seems that by separately measuring the delays obtained - -over the "parallel trunks" in the internet case, we ought to be - - - 66 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -able to devise some algorithm for splitting the traffic among the - -parallel components in a way which gives reasonable - -delay/throughput performance. However, we don't yet have a - -solution to this problem, which we will put aside for the - -present. Whatever scheme we eventually decide on, however, - -should be compatible with treating the parallel components as a - -single line at the level of routing. Of course, if we decide to - -have different routes for different traffic types (say, excluding - -satellite networks for interactive traffic, but using them for - -batch traffic), then the problem is eased somewhat since we - -partially solve the problem a priori. There would still be no - -need to represent the parallel lines as separate lines. Rather, - -we would represent them as a single line, with different delay - -characteristics for different traffic types. - - -4.5 Routing Updates - - -4.5.1 Overhead - - - Everyone seems to be in agreement that the overhead due to - -routing updates should be kept low. At least, no one seems to - -advocate that the overhead should be made high. Unfortunately, - -"apple pie" pronouncements like this aren't much help in actually - -designing a routing scheme. In evaluating a routing algorithm - -from the perspective of overhead, one must understand the way in - -which overhead is traded off against functionality. - - - - - 67 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - One advantage of the SPF routing algorithm is that it - -provides a lot of handles that can be used to control overhead. - -In SPF routing, a routing update generated by a particular Switch - -identifies each neighbor of that Switch, and gives the delay over - -the Pathway to that Switch. Thus the size of an update generated - -by a particular Switch is proportional to the number of neighbors - -that the Switch has, generally a fairly small number (no more - -than 5 in the ARPANET, and probably of a similar magnitude in the - -internet). - - - In the current Catenet routing algorithm, the size of the - -routing updates is a function of the total number of gateways (or - -equivalently, of the total number of component networks), a - -number which can increase by a great deal over the years. In the - -SPF algorithm, the size of the updates is a function of the - -connectivity of the internet, which could not increase anywhere - -near as much or as rapidly as the number of gateways. (In the - -two years that SPF has been running in the ARPANET, the number of - -IMPs has increased by a third, with another similar increase - -expected in the next several months, while the connectivity, and - -hence the average update size, has remained relatively constant.) - -This is important, since we wouldn't want to get ourselves into a - -situation where the update size eventually becomes so big (due to - -network growth) that we can no longer fit a whole update into a - -single packet (a situation that was imminent during the last days - -of the original ARPANET routing algorithm.) In the internet, the - - - 68 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -maximum size of an update packet is constrained by the component - -network which has the smallest maximum packet size. It seems - -likely that any component network whose packets are large enough - -to carry the enormous TCP and IP headers should have no trouble - -carrying the routing updates. - - - The amount of overhead due to routing updates is not only a - -function of the update size, but also of the rate at which - -updates are generated. In the ARPANET, since each IMP averages - -the delay on its outgoing lines over a period of 10 seconds, - -changes in delay on the lines emanating from a particular IMP - -cannot occur, by definition, more often than once every 10 - -seconds. In addition to generating updates when the delay - -changes, updates must also be generated when lines go down or - -come up. In the ARPANET, a line which goes down cannot come up - -for at least 60 seconds. So in an IMP with 5 neighbors, the most - -updates that can be generated in a minute is 11 (due to each of - -the lines either going down or coming up during the minute, for - -5, and a delay change every 10 seconds, for 6). It is important - -to note that this is the maximum rate at which updates can be - -generated, not the average rate. Since IMPs need not generate - -routing updates unless they have a "significant change" in delay - -to report, the average rate can be much lower. In the ARPANET, - -the average rate for generating updates is actually about one per - -IMP per 40 seconds. This is a very limited amount of overhead. - -Of course, the overhead will increase as the number of IMPs - - - 69 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -increases, because there are just more IMPs to generate updates. - -However, the amount of overhead is always under our control, - -since we can always alter the averaging interval, or the - -threshold of significant change in delay, to force updates to be - -generated less frequently and thereby to reduce overhead. These - -same principles apply to the internet also, so it doesn't seem as - -if we will be generating enormous amounts of routing overhead. - - - There are some things we might want to do which would tend - -to make the routing updates longer than so far indicated. For - -example, if we defined several priorities of traffic at the - -internet level, and mapped these priorities to different - -priorities of some particular component network, we might want to - -separately measure the delay across that network for each - -priority. We might also want to compute a separate set of routes - -across the internet for each priority. If we adopted some such - -scheme, we would need to report in each update several different - -delays for each Pathway, indexed by priority. These indexed - -delays could then be used for computing a set of routing tables - -indexed by priority, allowing traffic of different priorities to - -use different routes. Of course, this would lengthen the - -updates, adding more overhead. Part of the decision as to - -whether to adopt such a scheme would involve an evaluation of the - -trade-offs between the cost of this increased overhead and the - -benefit of the expected improvement in performance. The issues, - -however, are clear, and there are enough handles controlling the - - - 70 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -amount of overhead so that we can put into effect any decision we - -make. - - - It is important to understand that the number of routing - -updates generated by a single internet event (such as the outage - -of a gateway access line) is much less with SPF routing than with - -the current Catenet routing algorithm. In SPF routing, a given - -event causes the generation of ONE routing update, which must - -then be sent to every gateway (thereby giving each gateway an - -up-to-date copy of the "whole picture"). On the other hand, in - -the current Catenet routing algorithm, a single internet event - -causes a flurry of updates, as all gateways send and receive - -updates repeatedly to and from each neighbor, until the routing - -tables stabilize and the process settles down. This can take - -quite a long time and quite a few updates, particularly if the - -number of gateways is large. - - - In addition, in an internet with a large number of gateways, - -the updates for the current Catenet routing algorithm are very - -much larger than the SPF updates would be. It is clear that the - -routing overhead due to a single network event would be much less - -with SPF than it currently is. However, if we plan to send - -routing updates when delay changes, as opposed to just when a - -gateway access line comes up or goes down (as at present), then - -we will be generating updates in response to more network events. - -This tends to drive the overhead up. Again, the trade-offs are - - - - 71 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -relatively clear here; the amount of overhead simply trades off - -against the responsiveness of the routing algorithm to changing - -network conditions. The decision as to how to draw this - -trade-off can be made as a policy decision, and can be changed if - -performance considerations warrant it. The situation with the - -current Catenet routing algorithm is quite different, since the - -amount of overhead that it generates is almost impossible to - -compute. In that algorithm, the number of routing updates - -generated in response to a particular event depends on the order - -in which the updates are processed by the individual gateways, - -something that is essentially random and hence hard to predict. - -The SPF algorithm has no such dependency. - - - - The need for hysteresis in the Pathway up/down protocol run - -between neighboring gateways is worth emphasizing. If - -connections between neighboring gateways are allowed to come up - -and go down with great frequency, causing a constant flurry of - -routing changes, packets in transit will bounce around a lot. - -Putting a limit on the frequency with which a gateway-gateway - -connection can change state is needed not only to limit the - -amount of overhead generated, but also to give some stability to - -the routing. It is worth noting that the ARPANET, although - -providing hysteresis in its own line up/down protocol, does not - -provide any hysteresis in host up/downs. Hosts are allowed to go - -down and come up repeatedly many times a minute, and this does - - - - 72 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -result in problems, causing congestion and instability. - -Hysteresis in the gateway's Pathway up/down protocol will have to - -be ensured explicitly; we cannot rely on the ordinary host access - -protocol of the component networks to do the right thing. That - -is, if a network interface goes down, we must keep it down for a - -period of time, even if the network itself allows the interface - -to come back up immediately. - - -4.5.2 Protocol - - - We turn now to the problem of how to disseminate the routing - -updates around the Network Structure. Remember that the updates - -generated by a particular Switch will contain information about - -the delays to the neighbors of that Switch. When a Switch - -generates an update, it must broadcast that update to ALL other - -Switches. As a result, every single Switch will know the values - -of delay between every single pair of neighboring Switches. It - -is then straightforward to have each Switch run a shortest-path - -algorithm which determines the shortest path from itself to each - -other Switch. The basic idea is for each Switch to know the - -entire topology of the Network Structure, so that the shortest - -paths can be determined by a localized shortest path algorithm, - -with no need for a distributed computation. In the ARPANET, the - -IMPs do not start out with any knowledge of the topology. They - -determine who their own neighbors are, and they reconstruct the - -rest of the topology from the routing updates they receive. - - - - 73 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - It is possible to prove that, as long as all Switches have - -the same information about the topology and the delays, then they - -will produce routes which are consistent and loop-free. (That - -is, the situation in which Switch A thinks its best path to B is - -through C, and C thinks its best path to B is through A, can - -never arise.) However, if some routing updates somehow get lost - -before being received by every single Switch, then there is no - -guarantee of consistent loop-free routing. In fact, if routing - -updates get lost, so that different Switches have different - -information about the topology or the delays, we would expect - -long-term routing loops to arise, possibly making the Network - -Structure useless for some period of time. So the protocol used - -to broadcast the routing updates needs the highest possible - -reliability. Of course, it will always take some amount of time - -for an update to be broadcast around the Network Structure, and - -during that time, some Switches will have received it and some - -not. This means there will always be a transient period when - -routing loops might arise. So another aim of the routing - -updating protocol must be to keep this transient period as short - -as possible. In the ARPANET, we have an updating protocol which - -seems to provide these characteristics of extremely high - -reliability and low delay. Some of its aspects adapt readily to - -the internet, but others are more difficult to adapt. In what - -follows, we first describe the ARPANET's routing updating - -protocol, and then discuss its applicability to the internet. - - - - 74 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - Suppose IMP A has to generate a routing update, either - -because of some "significant" change in the measured delay, or - -because of a line up/down state change. Each update generated by - -A has a sequence number, which is incremented by 1 for each new - -update. (In the ARPANET, we use 6-bit sequence numbers, which - -wrap around after 63.) After creating the update, IMP A sends it - -to each of its neighbors. The update is transmitted as a packet - -of extremely high priority; only the packets used in the line - -up/down protocol are of higher priority. We use the notation - -"A(n)" to refer to the update generated by IMP A with sequence - -number n. Now let's look at what happens when a copy of update - -A(n) is received by an IMP B. (IMP B is intended to be an - -arbitrary IMP somewhere in the network, possibly identical to A - -or to one of A's neighbors, but not necessarily so.) If B has - -never received an update from A before, it "accepts" A(n), by - -which we mean that it (a) remembers in its tables that the most - -recent update it has seen from A is A(n) (i.e., the sequence - -number n, the list of neighbors of A, and the delays from A to - -each neighbor are stored in B's tables), (b) it forwards A(n) to - -each of its neighbors, including the one from which it was - -received, and (c) the SPF algorithm is run to produce a new set - -of paths, given the new delay and topology information contained - -in A(n). If B has received an update from A before, it - -determines whether A(n) is more recent than the update it has - -already seen, and "accepts" it (as just defined) if it is; - - - - 75 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -otherwise it simply discards A(n). The determination as to - -whether A(n) is more recent than some previously received update - -A(m) is made by a sequence number comparison (which, of course, - -must account for the fact that sequence numbers can wrap around); - -A(n) is not considered to be more recent than itself. - - - If one thinks a bit about this inductive definition of the - -protocol, one sees that each IMP in the network will receive - -every update which is generated by any IMP, and further that it - -will generally receive a copy of each update on each of its - -lines. This means of broadcasting an update from one IMP to all - -other IMPs is called "flooding." It is highly reliable, since - -updates cannot be lost in the network due to IMP crashes or - -partitions. If there is any path at all between two IMPs, - -flooding will get the update from one to the other. (Of course, - -if there is no path at all from A to B, then updates cannot get - -from one IMP to the other. However, this is not a problem, since - -if traffic from A cannot even reach B, then it cannot use B's - -outgoing lines, so there is no need for A to know the delays of - -B's outgoing lines in this case. In saying that flooding - -prevents updates from getting lost due to network partitions, we - -are thinking of the case where an update is in transit from A to - -B when a partition forms, such that A and B are in the same - -partition segment, but the update is in a segment which is now - -isolated from either A or B. Flooding ensures delivery in this - -situation.) - - - 76 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - Flooding also ensures that an update travels over the - -shortest (in terms of delay) possible path. Basically, every - -possible path is attempted, so the update necessarily gets - -through first on the shortest path, by definition. In addition, - -this means of transmitting routing updates does not depend in any - -way on the routing algorithm itself. Since routing updates are - -sent out all lines, there is no need to look in the routing - -tables to decide where to send the routing update. The - -transmission of routing updates is independent of routing, which - -eliminates the possibility of certain sorts of disastrous - -negative feedback. - - - One might think that a protocol which sends a copy of every - -update on every line creates a tremendous amount of overhead. In - -the ARPANET, however, the average update packet size is 176 bits, - -and the average number of updates sent on each line (in each - -direction) is less than 2 per second, for an average overhead of - -less than 1% of a 50 kbps line. And this is with almost 75 IMPs - -generating updates. - - - Of course, a protocol like flooding is only as reliable as - -are the individual point-to-point transmissions from IMP to - -neighboring IMP. We ensure reliability at this level with a - -positive acknowledgment retransmission scheme. Note, however, - -that no explicit acknowledgments are required. If IMP X sends - -update A(n) to neighboring IMP Y, and then X receives from Y an - - - - 77 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -update A(m), where A(m) is at least as recent as A(n), we - -consider that Y has acknowledged X's transmission of A(n). Since - -an IMP which accepts an update sends it to all neighbors, - -including the one from which it was received, in general, if X - -sends A(n) to Y, Y will send A(n) back to X, thereby furnishing - -the acknowledgment. We say "in general", since there is a little - -further twist. As another reliability feature, we make each - -update carry complete information, and forbid the carrying of - -incremental information in updates. That is, each and every - -update generated by an IMP A contains all the latest information - -about A's neighbors and its delay to them, so that each update - -can be fully understood in isolation from any that have gone - -before. This means that if update A(n+1) is received and - -processed by some IMP B, then the prior update A(n) is - -superfluous and can just be discarded by B. In particular, if - -IMP X sends A(n) to neighboring IMP Y while at the same time Y is - -sending A(n+1) to X, then X can interpret the receipt of A(n+1) - -from Y as an acknowledgment of the receipt of A(n); that is, X no - -longer has to worry about retransmitting A(n), since that update - -is no longer needed by Y. If no "acknowledgment" for an update - -is received from a particular neighbor within a specified amount - -of time, the update is retransmitted. Of course, it must be - -specially marked as a retransmission, so that the neighboring IMP - -will always "acknowledge" it (by echoing it back), even if the - -neighbor has seen it before. This is needed to handle the case - - - - 78 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -where the update got through the first time, but the - -acknowledgment did not. It should also be noted that all the - -information in a routing update must be stored in each IMP's - -tables in order to run the SPF computation. This means that if - -it is necessary to retransmit an update to a particular neighbor, - -the update packet can be re-created from the tables; it is not - -necessary to buffer the original update packet pending - -acknowledgment. - - - We must remember that if congestion forms in some part of - -the network, we want routing to be able to adapt in a way which - -can route traffic around the congestion. For this to have any - -hope of working, we must be sure that ROUTING UPDATES WILL BE - -ABLE TO FLOW FREELY, EVEN IF CONGESTION IS BLOCKING THE FLOW OF - -DATA PACKETS. Therefore, routing updates in the ARPANET are not - -sent by the ordinary IMP-IMP protocol, which provides only 8 - -logical channels between a pair of IMPs. That would be - -disastrous, since congestion often causes all 8 logical channels - -to fill up and remain filled for some time, blocking further data - -transmission between the IMPs. Transmission of routing updates - -must be done in a way that is not subject to this sort of - -protocol blocking during periods of congestion. (This sort of - -"out-of-band" signalling was quite easy to put into the ARPANET. - -However, it is worth noting that such protocols as HDLC make no - -explicit provision for out-of-band signalling, and it seems that - -many networks are being built in which the routing updates will - - - 79 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -not be able to flow when the network gets congested. Designers - -of such networks will no doubt be quite surprised when they - -discover what is inevitable, namely that their routing - -algorithms break down completely in the face of congestion.) We - -also want to be sure that we have enough buffers available for - -holding routing updates, and that we process them at a relatively - -high CPU priority. - - - There is one more twist to the updating protocol, having to - -do with network partitions. A network partition is a situation - -in which there are two IMPs in the network between which there is - -no communications path. Network partitions, in this sense, may - -be as simple as the case in which some IMP is down (an IMP which - -is down has no communications path to any other IMP), or as - -complex as the case in which four line outages result in - -partitioning the network into two groups of 40 IMPs. When a - -partition ends, we have to be sure that the two (or more) - -segments do not get logically rejoined until routing updates from - -all IMPs in each segment get to all the IMPs in the other - -segments. That is, data packets must not be routed from one - -segment to the other until all IMPs in each segment have - -exchanged routing updates with all IMPs in the other segments. - -Otherwise, routing loops are sure to form. We must also remember - -that the sequence numbers of IMPs in one segment may have wrapped - -around several times during the duration of the partition. - -Therefore we must ensure that IMPs in one segment do not apply - - - 80 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -the usual sequence number comparison to updates from IMPs in the - -other segment. - - - We have dealt with these problems by adding the following - -three time-outs to the updating protocol: - - - 1) MAXIMUM INTERVAL BETWEEN UPDATES: Every IMP is required - - to generate at least one update every minute, whether or - - not there has been any change in delay or line state. - - - 2) MAXIMUM UPDATE LIFETIME: If an IMP B has not received any - - updates generated by IMP A for a whole minute, then B - - will "accept" the next update it sees that was generated - - by A, regardless of the sequence number. - - - 3) WAITING PERIOD: When a line is ready to come up, it is - - held in a special "waiting" state for a minute. While in - - the waiting state, no data can be sent on the line. - - However, routing updates are passed over the line in the - - normal way, as if the line were up. - - - Since the ending of a partition is always coincident with - -some line's coming up, these three features ensure that a - -partition cannot end until a full exchange of routing information - -takes place. They also ensure (given the facts that there is a - -6-bit sequence number space and that IMPs can generate at most 11 - -updates per minute) that sequence numbers of updates generated - -after the end of the partition are not compared with sequence - -numbers of updates generated before the partition occurred. - - 81 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - The general idea of flooding the updates seems as important - -in the internet as in the ARPANET. In general, we can expect the - -internet to be subject to many more mysterious outages and - -disturbances than is the ARPANET, and the reliability and speed - -of flooding will be essential if an internet routing algorithm is - -to have any hope of working. The issue of overhead may be - -somewhat worrisome, though. If an IMP has to send each of 4 - -neighbors a copy of each update, it is just a matter of sending a - -copy of a small packet on each of 4 wideband lines. On the other - -hand, if a gateway has to send a copy of each update to each - -neighbor, this may mean that it has to send 4 copies into a - -single network, over a single network interface. This may be - -somewhat more disruptive. Of course, this problem only exists on - -networks which do not have group addressing. If a network allows - -the gateways to be addressed as a group, then each gateway needs - -only to place one copy of each update into the network, and the - -network will take responsibility for delivering it to each other - -gateway. (This might result in each gateway's receiving back its - -own copy of the update, since the sending gateway will also be - -part of the group, but that is no problem. As long as the - -gateway can identify itself as the transmitter, it can just throw - -away any updates which it transmitted to itself.) This idea of - -sending the updates to all neighbors on a particular network by - -using group addressing fits in well with an idea expounded in - -section 4.1, namely the idea that a network should be able to - - - - 82 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -tell which of its hosts are gateways, and should inform the other - -gateways when a new gateway come up. This same mechanism could - -be used by the network to augment its group addressing mechanism, - -to allow the group definition to change dynamically and - -automatically as the set of gateways connected to it changes. - -Unfortunately, few networks seem to have group addressing. Even - -SATNET has only a primitive group addressing feature, although it - -seems odd to have a broadcast network without full group - -addressing capabilities. (Group addressing is much more complex - -on a distributed network like ARPANET than on a broadcast - -network.) Perhaps as further internet development proceeds, more - -of the component networks will add group addressing, in order to - -make their use of the internet more robust and efficient. - - - Retransmission of routing updates on a - -gateway-to-neighboring-gateway basis, based on the scheme in the - -ARPANET, also seems to offer no problems in principle. However, - -the retransmission time-outs might have to be carefully chosen, - -and tuned to the characteristics of the network connecting the - -sending and receiving gateways. The retransmission time has to - -be somewhat longer than the average round-trip delay in that - -network, and this may vary considerably from network to network. - -In principle, however, this is no different from the ARPANET, - -where the retransmission timers for routing updates vary - -according to the propagation delay of the phone line connecting - -two IMPs. - - - 83 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - There is a bit of a subtle problem that we discovered in the - -ARPANET, having to do with the scheme of using the updates - -themselves as acknowledgments. Suppose Switch A has two - -neighbors, B and C. A receives a copy of update u from B, and - -queues it for transmission to C. However, while u is still on - -the queue to C, A receives a copy of u from C. If A had already - -sent u to C, this copy from C would have served as A's - -acknowledgment that C had received the update. But now, with u - -on the queue to C, if we are not careful, A will send u to C - -after having received a copy of u from C. When C gets this copy - -of u from A it will not accept it (since it has already seen a - -copy of u and sent that copy on to A), which will cause A to - -retransmit u to C, resulting in an unnecessary retransmission. - - - In the ARPANET, we deal with this problem by turning on the - -retransmission timer as soon as an update is received, rather - -than when it is sent. That way, an update which is still queued - -for transmission when its "acknowledgment" is received will still - -get transmitted unnecessarily, but the retransmission timer gets - -shut off, causing only one, rather than two, unnecessary - -transmissions. A more logical scheme would be to check the - -transmission queue to a Switch whenever an update is received - -from that Switch. If a copy of the same update that was just - -received is queued for transmission, it should just be removed - -from the queue. This would prevent any unnecessary - -transmissions. In the ARPANET, a few unnecessary transmissions - - - 84 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -don't really matter, but in the internet, if we really want to - -keep the overhead low, it is probably worthwhile trying to get - -this just right. We must remember that network access protocols - -may limit the number of packets we can get into the network - -during some period, which makes it all the more important to - -avoid sending unnecessary packets. - - - Suppose we find that for some reason or other, it is taking - -a very long time to get updates from some gateway to one of its - -neighbors. This would show up as an excessive number of - -retransmissions of updates. In such a case, we would probably - -have to consider that particular gateway-gateway Pathway to be - -down, irrespective of what our ordinary Pathway up/down protocol - -tells us. Remember that in order to ensure consistent and - -loop-free routing, we must get the updates around the internet as - -rapidly as possible. If updates cannot travel sufficiently - -rapidly on some Pathway, then we just cannot use that Pathway at - -all for transit within the internet. Attempting to keep that - -Pathway up for transit can result in relatively long-term routing - -loops, which could in turn cause a degradation in network - -performance which swamps the degradation caused by not using that - -Pathway at all. Especially disastrous would be a situation in - -which ordinary data packets could pass, but routing updates, for - -some reason, could not. It is hard to know what might cause such - -a situation (perhaps a bug in the component network that we are - -using as a Pathway), but it is certainly something we need to - - - 85 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -protect against. (Note, however, that even if we declare some - -gateway-gateway Pathway down, it does not follow that the network - -underlying that Pathway cannot be used as a terminus network, to - -which data for Hosts can be sent and from which data from Hosts - -can be received. Even if some network is not usable for - -providing a Pathway between two gateways on it, it may still be - -useful for providing a Pathway between the gateways and some set - -of Hosts.) - - - We have emphasized the need to transmit routing updates as - -"out-of-band" signals, which bypass the ordinary communications - -protocols (such as the IMP-IMP protocol in the ARPANET), so that - -when congestion forms which causes those protocols to block, the - -routing updates can still flow. That is, we would like to have a - -protocol which is both non-blocking and non-refusing. This may - -be quite difficult to achieve in the internet environment, where - -sending an update from gateway to gateway requires us to use - -whatever network access protocol is provided by the Pathway - -network. Here our most difficult problem might be with the - -ARPANET's 1822 protocol, which can cause blocking of the network - -interface for tens of seconds. We really can't delay sending a - -routing update for 15 seconds or so while the IMP is blocking, so - -whenever this happens we would have to declare the pathway down. - - - In the ARPANET, we have two ways of trying to deal with - -this. One way would be to send all packets into the ARPANET as - - - - 86 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -datagrams, which cannot cause blocking. Another way would be to - -use the standard virtual circuit interface, but to obey the flow - -control restrictions of the ARPANET (i.e., to control the number - -of outstanding messages between a pair of hosts), and to avoid - -the use of multi-packet messages (which can cause blocking if the - -destination IMP is short of buffers, as ARPANET IMPs chronically - -are). There are other situations in which blocking can occur, - -but they all involve a shortage of resources at the source IMP, - -and in such cases declaring the Pathway to be down is probably - -the right thing to do. We do not want to be forced into - -declaring Pathways down simply because we have ignored some - -protocol restriction, but it seems much more sensible to declare - -a Pathway down if, say, the IMP to which a gateway is attached is - -too congested to provide reliable service for internet packets. - - - It is important to note that whatever restrictions we apply - -to our use of the network access protocol apply not only to - -routing updates, but also to all messages sent into the ARPANET - -from the gateway. It would do no good, for example, to send in - -routing updates as datagrams, while using non-datagrams for other - -packets, since this would allow the other packets to block the - -routing updates. At this point, it is not quite clear just what - -the best scheme would be. The use of datagrams enables us to get - -around the sometimes time-consuming but often unnecessary - -resequencing which the ARPANET performs before delivering packets - -to the destination host (it is neither necessary nor desirable - - - 87 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -for the ARPANET to resequence routing updates before delivering - -them to a gateway), but it also reduces the reliability of - -transmission through the ARPANET, and it is not obvious how this - -trades off. For each network which we intend to use as a - -component of the internet, we will have to carefully study the - -details of its network access protocol, and possibly do some - -experiments to see how the various details of network access - -affect the performance, in terms of delay, throughput, and - -reliability of the network. Only by careful attention to the - -details of network access on each particular network, and by - -continuing measurements and instrumentation in the gateways to - -see if we are getting the expected performance from the component - -networks, can we hope to make the routing updating protocol quick - -and reliable enough to ensure consistent and loop-free routing - -throughput the internet. There are a few general principles we - -might appeal to, such as making routing updates be the highest - -priority traffic that we send into the component networks. - -However, it is difficult to be sure a priori what effect even so - -straightforward a principle might have. It's not hard to imagine - -a poorly designed network in which low priority packets receive - -better performance than high priority ones, under certain - -circumstances. To make the internet robust, we need to be able - -to detect such situations (and to gather enough evidence, via - -measurements, to enable us to point the finger convincingly), and - -we cannot simply assume that a component network will perform as - -advertised. - - 88 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - If we might digress a little, the considerations of the - -preceding paragraphs raise an interesting issue with respect to - -the use of fragmentation in the gateways. We raised the - -possibility of not using multi-packet ARPANET messages, and such - -a strategy would doubtless require more fragmentation than is - -presently done. Fragmentation in the gateways has long been - -thought of as a necessary evil, necessary because some networks - -have a smaller maximum packet size than others. If a gateway - -receives a packet from network A which is too large to fit into - -network B, then the gateway must either fragment it or drop it on - -the floor. However, perhaps fragmentation is sometimes useful as - -an optimization procedure. That is, some network may have a - -suitably large maximum packet size so that fragmentation is, - -strictly speaking, unnecessary. Nevertheless, the network might - -actually perform better if given smaller packets, so that - -fragmentation provides better performance. We see this in some - -current Catenet problems. It seems that the BBN-gateway between - -ARPANET and SATNET often receives packets from SATNET which are - -2000 bits long, or twice the size of an ARPANET packet. The - -gateway then presents these messages to the ARPANET as two-packet - -messages. As it happens, two-packet messages generally give the - -lowest possible throughput on the ARPANET (a consequence of the - -limited buffer space at the destination IMPs and the fact that - -the ARPANET assumes that all multi-packet messages will contain 8 - -packets); the gateway could probably obtain better performance - - - - 89 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -from the ARPANET by fragmenting the two-packet message into two - -single-packet messages. Of course, the situation is a bit more - -complicated in general than this may make it seem. If messages - -are being sent from a source host through SATNET and then through - -ARPANET to a destination host, best performance might well be - -achieved by sending the messages as 2000-bit messages through - -SATNET, then fragmenting them and sending them as 1000-bit - -messages through ARPANET. However, what if the messages must go - -beyond ARPANET, through another network, which handles 2000-bit - -messages more efficiently than 1000-bit messages? This sort of - -strategy, if useful at all, is best done in combination with the - -hop-by-hop fragmentation/reassembly scheme suggested in IEN 187. - - - The part of the routing updating protocol which deals with - -recovery from partitions (including the degenerate case of - -initialization when a Switch comes up) is somewhat more tricky to - -apply to the internet environment. In the ARPANET, we have a - -number of one-minute timers. Each IMP must generate an update at - -least once per minute; a line that is ready to come up must - -participate in the updating protocol for a minute before being - -declared up; and an update that has been held for a minute in an - -IMP, with no later update from that update's source IMP having - -been seen, is regarded as "old", in the sense that its sequence - -number is no longer considered when the IMP is deciding whether - -the next update it sees (from the same source) is acceptable. In - -attempting to adapt these procedures to the internet, we must - - - 90 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -take notice of the way in which these timers interact with each - -other and with other features of the internet. Consider, for - -example, the length of the maximum update lifetime, which - -determines how long an update's sequence number remains valid for - -the purposes of judging the acceptability of the next update. - -There are two restrictions on the length of this timer: - - - 1) A Switch A should not time out an update whose source - - Switch is B unless there really is a partition which - - destroys the communication path between A and B - - (remember, this includes the degenerate case of a - - partition where B simply goes down). This means that the - - time-out period must be greater than the sum of the - - maximum interval between updates PLUS the maximum amount - - of time that an update from B could take to get to A. - - - 2) The sequence numbering scheme used for the updates must - - be such that the sequence numbers cannot wrap around in a - - period of time which is less than the maximum update - - life-time. - - - In the ARPANET, the sequence numbers cannot wrap in less - -than a few minutes, each IMP generates an update at least once - -per minute, and the time to get that update to all other IMPs is - -negligible when compared to a minute, so a maximum update - -lifetime of one minute is fine. In the internet, however, we - -could not expect to measure transit times in the hundreds of - - - 91 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -milliseconds; tens of seconds would be more like it. So even if - -we forced each gateway to generate at least one update per - -minute, we would still need a maximum update lifetime of several - -minutes. And the longer our maximum update lifetime, the larger - -our sequence number space must be (to prevent wrap-around), which - -means additional overhead (memory and bandwidth) to represent the - -sequence numbers. - - - A similar constraint applies to the "waiting period". The - -purpose of the waiting period is to ensure that when a - -gateway-gateway Pathway is ready to come up, it is not permitted - -to carry data until an update from each other gateway traverses - -it. Clearly, for this to have the proper effect, the waiting - -period must be longer than the sum of the maximum transit time - -plus the maximum interval between the generation of updates from - -a single gateway. We would probably also have to set this to - -several minutes. This does have a serious operational - -consequence, namely that no outage will persist for less than - -several minutes. This can be an inconvenience, lengthening the - -time it takes to put out a new software release to all the - -gateways, for example, and possibly affecting the MTTR - -statistics, but it is something we just have to live with. Note, - -by the way, that as long as the waiting period is at least as - -long as the maximum update lifetime, a gateway that restarts - -after a failure (or a reload) can start generating updates with - -sequence number 0, irrespective of what sequence numbers it was - - - 92 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -using before, since all its prior updates will have timed out (if - -the timers are set right). - - -4.6 Limitations of Internetting - - - This discussion of routing in the internet points out some - -of the inherent limits of internetting. Good performance - -requires the use of a routing updating procedure which broadcasts - -the updates in a very reliable and quick manner. Anything that - -delays the routing updates, or makes their transmission less than - -reliable, will lengthen the amount of time during which different - -Switches have a different "picture" of the Network Structure, - -which in turn will degrade performance. We believe that the - -updating protocol we developed for the ARPANET solves these - -problems in the context of the ARPANET. It seems clear, however, - -that broadcasting routing updates in the internet is just going - -to be slower and less reliable than it is in the ARPANET. - -Although the same principles seem to apply in both cases, the - -characteristics of the internet Pathways are not sufficiently - -stable to ensure the speed and reliability that we really would - -like to have. It is going to be very hard to ensure that we can - -get our routing updates through the various component networks of - -the internet in a timely and reliable manner, and it may be hard - -to get the component networks to handle the internet routing - -updates with enough priority to prevent them from being blocked - -due to congestion. This is going to place a limit on internet - - - - 93 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -performance which we cannot avoid no matter what architecture we - -choose. - - - The only way to eliminate this sort of problem would be to - -have the component networks themselves give special treatment to - -internet control packets, such as routing updates. Currently, - -the component networks of the internet treat internet control - -packets as mere data. We have suggested that in some cases, it - -is impossible to meet certain of our goals without special help - -from the underlying networks. For example, in our discussion of - -the "gateway discovery protocol", we argued that preserving the - -maximum flexibility for making topological changes in the - -internet requires cooperation from the underlying networks. This - -point can be generalized, though. The more cooperation we can - -get from the underlying networks, the better we can make our - -internet routing algorithm perform, and the better we can make - -the internet perform. We would recommend therefore that serious - -consideration be given to modifying the component networks of the - -Catenet to maximize their cooperation with the internet. - - - Even if the component networks of the internet cooperate to - -the fullest, there is another problem which may limit the - -responsiveness of the internet routing algorithm. If there are - -very long transit times across the internet, much longer than we - -ever see in individual networks like the ARPANET, then the - -responsiveness of routing is necessarily held down. This factor - - - - 94 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -will place a natural restriction on the growth of the internet. - -At a certain point, it will become just too big to be treated as - -a single Network Structure, so that further growth would make - -routing too non-responsive to provide good service. That is, - -eventually we reach a point of diminishing returns, where adding - -more Switches, or even adding more levels of hierarchy, begins to - -significantly degrade service throughout the internet by making - -the routing algorithm too non-responsive. It is important to - -understand that the notion of "big" here has nothing to do with - -the number of Switches, but rather with the transit time across - -the internet. - - - If there are two Hosts which cannot, for reasons like this, - -be placed on the same internet, it may still be possible for them - -to communicate, though at a somewhat reduced level of efficiency. - -Each of the Hosts would have to be on some internet, but not - -necessarily on the same one. Suppose, for example, that there - -are two different internets, internet A and internet B, which - -cannot be combined into one larger internet because the resultant - -internet would be too large to permit a reasonably responsive - -routing algorithm. However, it is still possible for each - -internet to model the other one as an Access Pathway. Suppose - -that Host H1 on internet A needs to communicate with Host H2 on - -internet B. Then if a Switch SA of internet A can be connected - -to a Switch SB of internet B, the internet A can represent Host - -H2 as being homed to its Switch SA, via a Pathway (of whose - - - 95 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -internal structure it is unaware) which is actually internet B. - -A corresponding mapping can be made in the other direction, - -permitting full-duplex communication. However, neither internet - -could use the other as an internal (i.e., Switch-Switch) Pathway, - -or the resulting configuration would be insufficiently - -responsive. (This may seem akin to the regionalization against - -which we argued in section 4.3.4. However, since neither - -internet uses the other as an internal Pathway, there are no - -problems of looping.) Naturally, just as Hosts on a common - -network can expect to get more efficient communications than can - -Hosts which must communicate over an internet, Hosts on a common - -internet will get more efficient communications than will hosts - -on different internets. - - - There are other reasons besides non-responsiveness which may - -make it imperative to have separate internets which cannot use - -each other as internal Pathways. For example, two internets - -might cover the same "territory," geographically speaking, but - -may be under the control of two different organizations, or may - -use essentially different algorithms or protocols. In fact, - -several different internets might even cover the same set of - -Hosts, and consist of the same set of component packet-switching - -networks. (It is important to remember that it is the set of - -gateways which constitute the internet, not the set of component - -networks. Imagine if every ARPA-controlled network had a Brand X - -gateway and a Brand Y gateway. Then there would be two separate - - - 96 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - -internets, Brand X and Brand Y, which are logically rather than - -physically separate.) Our procedure of having each internet - -regard the other as an Access Pathway to a set of Hosts, but not - -as an Internal Pathway, allows communication among Hosts on the - -different internets, without introducing problems of looping, and - -while preserving the maintainability of the individual internets. - -Of course if the two internets have different access protocols, - -then the Switches of one or the other internet (or both) must be - -prepared to translate from one protocol to the other, but that is - -a simpler problem than the ones we have been dealing with. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 97 - - -IEN 189 Bolt Beranek and Newman Inc. - Eric C. Rosen - - - REFERENCES - - -1. J.M. McQuillan, I. Richer, E.C. Rosen, "The New Routing - Algorithm for the ARPANET," IEEE TRANSACTIONS ON - COMMUNICATIONS, May 1980. - -2. E.C. Rosen, "The Updating Protocol of ARPANET's New Routing - Algorithm," COMPUTER NETWORKS, February 1980. - -3. J.M McQuillan, I. Richer, E.C. Rosen, ARPANET ROUTING - ALGORITHM IMPROVEMENTS: FIRST SEMIANNUAL TECHNICAL REPORT, - BBN Report No. 3803, April 1978. - -4. J.M. McQuillan, I. Richer, E.C. Rosen, D.P. Bertsekas, - ARPANET ROUTING ALGORITHM IMPROVEMENTS: SECOND SEMIANNUAL - TECHNICAL REPORT, BBN Report No. 3940, October 1978. - -5. E.C. Rosen, J.G. Herman, I. Richer, J.M. McQuillan, ARPANET - ROUTING ALGORITHM IMPROVEMENTS: THIRD SEMIANNUAL TECHNICAL - REPORT, BBN Report No. 4088, March 1979. - -6. E.C. Rosen, J. Mayersohn, P.J. Sevcik, G.J. Williams, R. - Attar, ARPANET ROUTING ALGORITHM IMPROVEMENTS: VOLUME 1, BBN - Report No. 4473, August 1980. - - - - - - - - - - - - - - - - - - - - - - - - - - - - 98 - - diff --git a/text/ien/ien19.txt b/text/ien/ien19.txt deleted file mode 100755 index 425a9eda..00000000 --- a/text/ien/ien19.txt +++ /dev/null @@ -1,665 +0,0 @@ - -Internet Experiment Note # 19 -Notebook Section 2.3.3.5 - - - - A note on - - Inter-Network Naming, Addressing, and Routing - - - John F. Shoch - - January 1978 - - Xerox Palo Alto Research Center - Palo Alto, California 94305 - - - -Introduction - -Taxonomies and terminology will not, by themselves, solve some of the -difficult problems associated with the inter-connection of computer networks; -but carefully choosing our words can help us to avoid misunderstanding and -refine our perceptions of the task. - -In 'Through the Looking Glass', the White Knight tries to elucidate (for an -imprecise Alice) the important differences between what a song *is*, what it -*is called*, what it *is named*, and what *the name is called*; perhaps we -need to be equally vigilant with our use of the words 'name', 'address', and -'route'. - -Let me offer one scheme which has proven useful in analyzing this domain, and -begin by asserting that 'names', 'addresses', and 'routes' are different -entities. [Even one of my favorite papers introduces part of this topic by -merging two of these characteristics: "The question of addressing. or how to -name all the participants in an interconnected communication system...."] - - -The General Model - -We can first construct an extremely general definition: - - The 'name' of a resource indicates *what* we seek, - - an 'address' indicates *where* it is, and - - a 'route' tells us *how to get there*. - -Some further detail to flesh this out: - -I. A 'name' is a symbol -- usually a human-readable string -- identifying -some resource, or set of resources. - - The string need not be meaningful to all users, and need not be drawn - from a uniform name space. - - The strings can identitify processes, places, people, machines, - functions, or anything else the user chooses. - - - - - -2 - - - To be useful, however, there will probably be some mechanism available to - the user that will map names into addresses. - - The name (what we seek) need not be bound to the address (where it is) - until this mapping takes place; the address (or addresses) associated - with a particular name may change over time. - -II. An 'address', however, is the data structure whose format can be -recognized by all elements in the domain, and which defines the fundamental -addressable object. - - Addresses must, therefore, be meaningful throughout the domain, and must - be drawn from some uniform address space. - - This address space may be a "flat" one which spans the entire domain - (such as Social Security numbers), or it may be a hierarchical address - space (such as telephone numbers). - - If a name has produced several different addresses for a particular - resource, some form of 'a priori' information may prove useful in - selecting a preferred address. - - At the time one wishes to communicate with a particular address, there - will be some mechanism that will map an address into an appropriate - route. - - The address (where something is) need not be bound to the route (how to - get there) until this mapping takes place; the choice of an "appropriate" - route may change over time. - -III. A 'route' is the specific information needed to forward a piece of -information to its specified address. - - The routing action may only require one step to reach a destination (a - direct route), or it may require a series of steps in order to forward - the information on its way. - - Where there is merely one hop in a simple topology, the routing decision - is usually straightforward. - - When the path to an address requires several steps (as in a store and - forward system), the route defines a path through intermediate switching - points. - - In categorizing such routing mechanisms, one dimension is the *place* at - which each intermediate routing decision is specified: - - a. The source may specificy all of the intermediate routing decisions, - and include this information along with the data being sent ('source - routing'). The source must have fairly comprehensive information about - the environment, but the switching points need not maintain routing - tables. - - b. Alternatively, the source may only specify the destination - address, and the intermediate switching points choose the next - portion of the route ('hop-by-hop routing', sometimes called - 'intermediate routing' or 'incremental routing'). In this case, the - source only needs enough information to reach the next switching - point, but each of these points must then have a routing table of - some sort. - - c. There may be a hybrid routing mechanism combining these two, in - which the source specifies certain major intermediate points, but - allows the underlying system to choose routes between those points. - - A second dimension of the routing mechanims [sic] is the 'time constant' - of the routing decisions -- when are they specified, and how frequently - they may be changed: - - a. Routing tables may be set once, left unchanged for relatively long - periods - - - - - -3 - - - of time, and only changed to reflect major modifications to the - system ('fixed routing', or 'deterministic routing'). - - b. Alternatively, routing tables may be updated relatively - frequently, reflecting shorter term changes in the environment - ('dynanamic routing', or 'adaptive routing'). - [This measure is, in some sense, relative to the time constants of - the communication system itself.] - - If there is a dynamic routing system providing periodic updates of - appropriate information, a third dimension of the routing process is the - 'control' mechanism: - - a. Individual switching points may try to update their information in - an 'isolated' manner, perhaps by trying various routes and observing - performance. - - b. Changes in the environment or connectivity may all be reported - back to one 'centralized' point, which is then responsible for - promulgating this inforniation to the sources (if we use source - routing) or to the switches (if we use hop-by-hop routing). - - c. Alternatively. control of the dynamic update process may be - 'distributed' among all of the sources or switches, which individualy - [sic] obtain information about the state of the system. - - It is meaningful to talk about possible combinations of these - dimensions: 'fixed source routing' may be quite simple to implement, - while 'dynamic source routing' may be beneficial if the source can learn - about changes occurring throughout the system. 'Fixed hop-by-hop routing' - requires setting the routing tab1es at the switching points, while - 'dynamic hop-by-hop routing' then requires updates to these routing - tables. 'Distributed, dynamic, hop-by-hop routing' might obtain these - periodic updates from neighboring switches, while a 'centralized, - dynamic, hop-by-hop' system would depend on some form of network coutrol - center to provide new information. - -Thus, a *name* may be used to derive an *address*, which may then be used to -derive a *route*. - - [There is an interesting similarity between this structure and mechanisms - used in programming languages (where one must bind a value to a - variable), or in operating systems (where one must link a particular - piece of code into a module). In all these cases, there is a certain - amount of added flexibility gained by deferring the binding process as - long as possible: MULTICS defers the binding of pieces of code until - run-time so that new instantiations of code will be used automatically, - while the Arpanet tries to defer routing decisions as long as possible, - in order to make the most informed choice.] - -If one fails to deliver a piece of information to the resource originally -specified, an error recovery procedure can systematically try to undo each of -these binding decisions: first try an *alternate route*, then an *alternate -address*, then an *alternate name*. - - -Example #1: Naming/Addressing/Routing in the Telephone System - -Before attempting to apply this scheme to a connected set of computer -networks, let's see how well it serves to understand the workings of another -domain: placing a telephone call. - -[The telephone system, of course, uses circuit switching, and dedicates -resources for the lifetime of a call. We are here discussing the naming, -addressing, and routing which take place during call set-up.] - -I. We can look up a 'name' in the phone book. - - The name may be a specific person ("D. B. Cooper"), an institution - ("Stanford University"), the local representative of a nation-wide - service ("the nearest TWA - - - - - -4 - - - office"), or a generic function ("Get me the police!", or the time - server). - - The names of different individuals may yield the same phone number. - - One name may yield several phone numbers, if there are two telephones in - one home or if a business provides multiple incoming lines. In addition, a - considerate business might provide several incoming lines vith - different area codes. - - Should a name yield more than one number, the caller may use some - additional information to aid in the choice of which to dial: is one - number less likely to be in use, or is one address in our own area code, - and thus cheaper. - - There can be a two-level name-to-address mapping process: look up the - name "information" in the phone book, get that number (411), place a - call, and then present a new name to be looked-up by the information - operator. - -II. The 'address' which we eventually find is just the telephone number. - - The phone system did not have to understand the subscribers' names, but - it certainly must be able to understand their addresses (numbers). - - Addressing in the phone network is based on a hierarchical structure -- - the major contribution of area codes, as specified in the North American - Numbering Plan. - - There are certain conventions for defaulting parts of the address when it - is found: if the area code is not listed, we generally assume it is the - same as our own. - - Every resource (person) accessible through the phone system is actually - represented by a telephone instrument, which we can address. Actual - signals are intended for the person, but they are always sent via the - instrument. - -III. Vhen we dial the number (in fact, each time we dial the number) the -phone network attempts to build an appropriate route to the destination, -reflecting current conditions. - - Two successive calls to the same number need not be routed through the - same path, and the telephone plant provides alternate routes if a trunk - is busy. The distributed, adaptive nature of this routing is one of the - major factors which contributes to the reliability of the phone system. - -Now consider the error recovery procedure if we are not able to reach the -person we seek: we move back through the hierarchy, trying alternate routes, -alternate addresses, and alternate names. - -1. If we get a busy trunk indication, we know that the route chosen by the -network turned out to be inadequate. We can, in effect, ask the system to try -picking a route again, by re-dialing (re-transmitting). If we are -particularly concerned, we can ask an operator to override some of the -automatic routing decisions, and attempt an alternate route. - -2. If all of the routes to this address are inadequate, or if the address is -unavailable (perhaps busy, or broken), we must fall back and find an -alternate address: perhaps there were two phone numbers listed, and we can -try the second. (How many of us have second phones for a terminal, which we -call in on when the regular line is busy?) This will lead to the selection of -a completely new route. - -3. If the alternate address fails, we can fall back one more step, and try to -find an alternate name: perhaps the phone is listed in the name of one's -spouse, or maybe we should look up the name of the organization where one -works. - - - - - -5 - - -The Implications of Hierarchical vs. Flat Address Spaces - -It should be apparent that the structure of the address space is of central -importance: it is the major element of commonality in such an environment, -and can have a profound influence on the naming mechanism "above" and the -routing mechanism "below". - -An address space can be partitioned in a hierarchical manner, or left as a -single uniform space. Use of a flat address space implies that: - - 1. The address given to any resource must be unique over the whole - domain; and, - 2. There is no structure to the address which might aid the routing - process; instead, the routing mechanism must be able to handle all - addresses, without segmenting them into parts (i.e., there is no area - code). - -There are some advantages to this approach: it is logically simple, and has -the potential to optimize the particular route between any two resources. But -there are certain kinds of costs: upon adding a new set of resources to an -existing system, one must insure [sic] that none of the new addresses -conflict with those already used, and the routing process must now be able to -recognize all of the legal addresses (in the phone system, 10^10). - -The alternative is to provide a hierarchical structure for addresses, as has -been done with area codes. Local addresses can then be changed within areas, -but need not be made known to all of the other parts. - -Yet the choice of hierarchical addressing can have important ramifications -for the levels "below". - -We would certainly not want to allow a strictly hierarchical address scheme -to serve as the justification for a strictly hierarchical physical topology: -that would allow only one path to each resource, and severely diminish -reliability. Thus, the underlying communications should provide alternate -paths to a destination. - -Furthermore, the routing mechanism must now be flexible enough to take -advantage of the alternate paths available -- it would make litle sense to -lay a strictly hierarchical routing algorithm on top of a richly-connected -network. Given a hierarchical address, this form of area routing should be -able to pick out an appropriate field, and route the data towards that area, -through one of the available paths, but be able to identify an alternate path -when necessary. - -Though the hierarchical address space is often viewed as preferable, there is -a cost here too: if the routing decision does in fact use the hierarchical -structure of the address and route to an area, then some information has been -lost: the ability to specify precise routes between two resources. This can -lead to several kinds of difficulties: - - 1. Two resources may be geographically close, but on distant branches of - the hierarchical tree, If the routing strictly parallels the addressing - hierarchy, it may require many hops to reach a nearby node. - - The telephone system provides a routing hierarchy which matches the - addressing scheme, but then provides additional routes (high usage - trunks) across the tree, as warranted by the traffic; switching - centers then have the choice of routing through the specially - allocated trunk, or back up the regular hierarchy, which then becomes - the alternate route. - This means, however, that some central offices within an area code - are reachable through direct lines, while other less-heavily used - offices must be reached through the standard hierarchy. To make that - routing decision, the foreign switch must be provided with additional - information about the internal structure of the system within the - destination area code -- i.e., which central office prefixes are - reachable through a "short-cut". To take advantage of a direct - high-usage trunk from downtown New York to a - - - - - -6 - - - central office in downtown San Francisco, without going through the - California area code hierarchy, the switch in New York must be able - to perform what is called "6-digit translation" on the phone number, - examining both the area code and the central office prefix. - - 2. If a sub-area (netvork) is unintentionally partitioned so that half of - its internal addresses are now unreachable, a distant routing process - won't be able to recognize that, given only the sub-area number. - - 3. Should there be alternate paths into the partitioned sub-area, now - making those lost nodes reachable, the distant routing process will not - be able to make an informed choice about the proper route into the - sub-area. - - 4. Two resources may be in the same sub-area, but perhaps connected by an - inefficient route (many hops or poor quality). Provided there are two - paths in to the sub-area, it may make more sense for a resource to route - its traffic out of the area aud back in through the other path, but area - routing will indicate that the source is already in the area of the - destination, and may not allow a route going outside of that area. - -In these unusual circumstances, we see that there are clear weaknesses at the -routing level which evolve from the choice of a hierarchical address space; -but in the most common cases this approach will work well. - -This choice of hierarchical addresses may also impact the naming mechanism, -although that ought not be necessary. The name-to-address mapping can be -supplied by a process which is external to the system itself, and there is no -reason to enforce hierarchical names. A user may offer a name from which one -can directly derive the address, but it should also be acceptable to provide -a symbolic name, independent of the address format. An example may show the -different kinds of names which might be converted into adresses (telephone -numbers): - - 1. The syntax of the string "(415) 767-2676" explicitly indicates the - three fields of the address, and their values. - - 2. The string "(SanFrancisco) Pop-Corn" has the syntactic structure of a - proper hierarchical address, but will require a symbolic look-up of the - component parts. - - 3. Yet the string "GetMeTheTimeLady" -- when looked-up in the context of - my name dictionary -- should produce this same address. - -The virtue of the third approach is that the names may remain the same, even -if the resource is moved to a different address, or if I should move to a -different area; only the name-lookup process must be made aware of the change. - - -Example #2: Inter-connected Computer Netvorks - -It seems that this model of naming/addressing/routing provides a useful -framework for discussing the phone system, and that system provides a rich -set of examples for comparison with the domain of computer networks. - -I. A name is merely a human-readable string meant to denote some resource: -"BBN-TenexA" (a host), "SAIL" and "SU-AI" (two names for the same host), "the -SRI mobile van", "a time server", "the Telnet server at ISI", "the Telnet -server on any Tenex", "the nearest FORTRAN compiler", "the error-logging -process in IMP32", "the inter-network routing process in Gateway2l" .... Note -that these names may identify resources outside of the communication system, -or processes within it. - -Virtually any object can have a name. In practice, of course, any such -resource is usually represented by some sort of process which can act on its -behalf. - - The Arpanet system for handling text messages describes a slightly - different kind of name, in the form "User@Host", but that would not - really resolve down to a proper internetwork address. Instead, the "host" - name is used to derive an address for the - - - - - -7 - - - mail server process, and the "user" name is sent along as data, to be - interpreted by a higher-level protocol (the mail server) at the - destination. - -Some local process (either local or part of some distant resource) may offer -to convert names into appropriate addesses, although a single name may yield -many addresses. The name-lookup process may know about the precise address of -certain well-known severs [sic], and may provide certain default conventions -if some portions of the address are not fully specified. - - I have not yet mentioned the notion of names and addresses for - multi-destination pieces of information. The name - "Internet-Working-Group" could produce a whole set of names, which in - turn could be transformed into individual addressess [sic], and - individual copies of the information could be sent to each place. Most - communications subsystems do not yet have protocols which would provide - more congenial support for multi-destination packets. - -If a single name does yield many addresses, one of them may be chosen on the -basis of some other information: bandwidth and delay characteristics, cost, -etc. - -II. An address, in this context, really means an internetwork address: a -collection of bits in a standard format, recognizable by any object cognizant -of the inter-network protocols. - -In most inter-network efforts we have adopted a hierarchical address space, -usually partitioned into (net, host, socket) tuples. - - Note that this model is not quite adequate to describe the dynamic naming - and addessing conventions planned for the Distributed Computing System - (DCS) at UC Irvine. They had proposed that processes not be bound to - particular machines, but would be free to migrate around the ring; 16-bit - process ID's on each packet would be dynamically checked in each host, - and the packet given to the appropriate process, if it happened to be in - that host. The actual address of a destination process would remain - hidden from the sending program, - - I would argue that the 16-bit process ID (although not human-readable) is - most accurately called a process 'name', since it may be used to describe - a generic resource without specifying a particular address. Thus, this - mechanism pushes "down" and distributes the task of mapping from names to - addresses, thereby deferring the binding until even later. - - The mechamsm depended heavily on two aspects of the DCS ring: - -- the ability of the communications subsystem to broadcast a packet to - all nodes on the ring, and, - -- the ability of each interface to quickly look up a process name in a - content addressable memory (associative memory) used to identify those - processes resident in the node. (In the original proposal, this memory - could hold the names of 16 resident processes) [sic] - In a different communications enviromment -- or if there were more than - 16 processes in one host -- this mechanism would not function properly. - In those cases, however, one can provide the same effect (allowing users - to communicate with resources stirctly [sic] by name, without specifying - an address) merely by providing an extra layer of protocol. I would - conclude that the different naming/addressing conventions in DCS are more - of a difference in style, rather than a difference in substance. - -We usually think of these three components as physical objects -- networks -and machines -- but they are really only logical groupings used to form the -address. In a particular environment, for example, the "host" might be a -front-end processor, and the "sockets" might be specialized processors, -perfoming the function which the user sought at that - - - - - -8 - - -address. - -If a machine has only one network interface, processes in that machine will -all have the same address, although from many other addresses -there may be multiple paths to this address. - -If a machine has two network interfaces, to the same network or to two -different networks, it will have two alternate internetwork addresses for -each process resident there. Another process seeking to communicate might -select either address. - -III. The underlying communications system provides the means for routing -packets to their destination. - -Individual networks use different routing strategies for forwarding their -internal traffic: the DCS ring has a simple topology with no alternate -routes, while the Alohanet and the Etherent [sic] use a broadcast -communications media, requiring no routing. The Arpanet uses dynamic -hop-by-hop routing, while the Packet Radionet uses dynamic source routing. - -Internetwork packets, however, may travel through various networks, routed -among internetwork gateways. The gateway routing processes make use of the -information specified in the internetwork address, and can route to the areas -specified. Upon arrival at a gateway entering the destination network, the -network-specific routing mechanism can be used to route it to the specified -"host". - -The gateway processes may implement a form of dynamic hop-by-hop routing, -using complete networks as the communications channel to "adjacent" gateways. -These gateways can exchange routing tables and perform dynamic hop-by-hop -routing, or one could simplify the gateway by requiring users to perform -source routing. - -In one sense, these two methods can be combined: while the gateways normally -do hop-by-hop routing, there could be a special process resident in the -gateway which would take incoming packets, examine the data field, extract -the next address indicated there, and forward the packet to that destination. -(Danny Cohen has called this process a "forwarder", and I believe Steve -Crocker once called it an "oasis".) The effect is to provide source routing -to the user, by simply incorporating the list of intermediate addresses in -the data field of a packet, rather than in the header. - -We have spoken earlier on the manner in which area routing using hierarchical -addresses cannot properly identify resources which may have been stuck in -different parts of a partitioned network -- it requires some additional -information to guide the selection of an appropriate route. If we are using -some form of source routing, and if some information about the internal -structure of the destination net can propogate back to the source, it may be -possible to then choose an alternate route which will lead into one part of a -partitioned network. - -In addition, a source routing or hybrid scheme which allows a user to specify -certain intermediate addresses allows a process to force traffic over a -particular network, perhaps in response to political, economic, or -performance considerations: "take any reasonable path across the country, but -I must use the Packet Satellite system across the Atlantic". More difficult, -however, is selectively eliminating some paths from the routing decision: -"take me to Europe, but don't ever go through Spain". - - -Naming/Addressing/Routing and Internetwork Gateways - -The gateway function is. in general, performed in a machine which is -connected to at least two networks, and which therefore has at least two -addresses. Incoming packets which need to be forwarded may enter on any -attached net, using any of the legal addresses. - - - - - -9 - - -Yet there is a single gateway process which handles all of this traffic, and -which is responsible for maintaining relevent [sic] routing tables. - -It has been suggested that a gateway might be viewed as two completely -separate "halves" actually residing on different machines, connected by a -"thin wire" communications channel. We do not find this abstraction -particularly useful, since it does not easily account for the shared gateway -processes which actually perform the routing function. - -In this model, the gateway processes maintain routing tables to reach network -areas through other gateways, but they do not attempt to maintain any other -state about networks, hosts, or connections. Thus, these intermediate -gateways -- using dynamic hop-by-hop routing -- will not be able to deal with -partitioned networks. - - -Material not covered in this note - -Distribution lists, multi-destination packets, and broadcasting. -Ways we might modify area routing to more gracefully deal with partitioned -networks. -Internetwork fragmentation. -Internetwork flow control and congestion control. -Flow control between gateways. - - -Acknowledgements - -The material in this note has evolved from many conversations with David -Boggs, Ed Taft, Bob Metcalfe, and Yogen Dalal; any clarity which has emerged -is due to their willingness to struggle with the semantic demons. Recent -conversations with Danny Cohen have been particularly useful in understanding -his proposal for hybrid routing schemes (where the source routing process -specifies only some of the intermediate stops), and the manner in which area -routing may obscure a preferred off-net route. Much of the commentary on -routing has evolved from [McQuillan 1974] and [Sunshine 1977]; the latter -paper is a partictilarly useful one, touching on many of the issues raised -here, although we tend to differ on some of the fine points. - - -Bibliography - -[AT&T 1975] - AT&T, 'Notes on Distance Dialing', 1975. -[McQuillan 1974] - J. M. McQuillan, 'Adaptive routing algorithms for distributed - computer networks', BBN Report No. 2831, May 1974. -[Sunshine 1977] - Carl A. Sunshine, 'Interconnection of computer networks', Computer - Networks, 1977. - - - - - - - - -file: names.b -January 29, 1978 8:02 PM - diff --git a/text/ien/ien190.txt b/text/ien/ien190.txt deleted file mode 100644 index 7dc970f0..00000000 --- a/text/ien/ien190.txt +++ /dev/null @@ -1,804 +0,0 @@ - - - INDRA - Working - Paper - INDRA Note 1114 - IEN 190 - 9th. July 1981 - - - - - - - - - - - - - - - - Routing and Access Control in - - UK to US Services - - - - - Robert Cole and Robert Braden - - - - - - - ABSTRACT: The routing and access control - problems for US-UK Catenet operations are - discussed and an interim solution - proposed, based on addressing mechanisms. - Given the present generation of internet - gateways, it is necessary to curtail the - use of the full physical connectivity - between the US and the UK to avoid gateway - routing problems and undesirable paths. - - - - Department of Computer Science - University College, London - - Routing and Access Control Indra Note 1114 - in UK-US Services IEN 190 - - - - - C O N T E N T S - - - 1. Introduction...........................................2 - - 2. Background.............................................2 - - 3. Network Connectivity...................................3 - - 4. How it Will Work.......................................5 - - 5. Access Control for the PTT Network Connections.........6 - - 6. Reconfiguring for Failure..............................9 - - 7. Issues in Internetworking.............................11 - - 8. Conclusion............................................12 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - [Cole and Braden] - - - 1. Introduction - - The removal of the TIP at UCL, and the consequent change to - TCP-based service from UCL to the DARPA Catenet, present some - interesting problems in routing and access control. These - problems are discussed here, and some interim (and ad hoc) - solutions are presented. - - The changes in connectivity at UCL, and at RSRE, mean that - the extension of the DARPA Catenet into the UK must be - considered as a whole; hence this document also looks at the - position of the RSRE network (PPSN) in the routing schemes. - - - 2. Background - - When UCL moves over to an entirely TCP-based access to the - Catenet, all of our traffic will be routed via a number of - gateways. As most of the traffic will be destined for the - ARPANET at least two gateways will be involved. UK users of - hosts on the ARPANET can be divided into two groups: - - 1. Authorised MoD users -- this includes RSRE and UCL - experimental traffic. - - 2. All other users - - The MoD authorised users are allowed to use SATNET as a path - for their traffic into the ARPANET. The others must use a - PTT-supplied path to cross the Atlantic and enter the ARPANET - through a special gateway. - - The configurations and services UCL are putting forward for - all users is presented in [1]. Essentially, MoD users may - gain access to ARPANET via: - - a. PPSN - - b. TAC (dial-in terminals) - - c. PAD to PSS and UCL - - d. FTP via PSS and UCL - - Other users will access ARPANET via: - - a. PAD to UCL (via PSS or SRCNET) - - b. FTP to UCL (via PSS or SRCNET) - - - From UCL, access control is applied for each user and the - appropriate path is selected. - - - - 2 - [Cole and Braden] - - Routing and Access Control Indra Note 1114 - in UK-US Services IEN 190 - - This note describes how the paths are enforced, both for - forward and return traffic, and how a number of routing - problems from dual connectivity are avoided. - - - 3. Network Connectivity - - The physical connections available between UK systems and - the US are shown in figure 1. Note: - - i. Gateways are indicated by the letter "G". - - ii. That a single gateway has been assumed at PPSN for - simplicity. - - iii. A single gateway (G') has been shown at UCL. When line - 77 is removed, and until the C/70 gateway is installed, - this gateway will be implemented by two smaller gateways - having only 2 and 3 ports. The exact configuration is - yet to be decided. - - - The "PTT network path" includes the concatenated VAN/PTT - networks TELENET and TYMNET in the US, IPSS across the - Atlantic, and PSS and SRCNET in the UK. These networks all - use X.25, and are joined by X.75 gateways which are not shown - here. The gateway which is shown between the ARPANET and the - VAN network TELENET is being built by BBN and is therefore - know as the "BBN VAN gateway"; it will be sited in the US. - - Across the PTT network path, internet datagrams are - encapsulated within X.25 packets, over virtual calls which - are opened as required by the BBN VAN gateway or by UCL. We - use the term "tunnel" for such a path using X.25 encapsulation - of IP datagrams. A second tunnel is shown, linking UCL with - PPSN within the UK, using the British Telecom network PSS. - - - - - - - - - - - - - - - - - - 3 - [Cole and Braden] - - - Routing and Access Control Indra Note 1114 - in UK-US Services IEN 190 - - PTT network path - G ____________________________________________ - / | | - / | | - / | ___________ | - / |---| SRC-PSS | | - _________ | ----------- | - | | | | - | ARPA | __________ PSS Tunnel / - | NET | | UCLNET |--------------| / - | | ---------- | / - --------- | | / - \ __________ | | / ________ - G --| SATNET | -- G' ---------------- G -| PPSN | - ---------- | ________ -------- - |___| C/30 | - | TAC | - -------- - - Figure 1. Physical Connections For UK-US Access - - The physical connectivity shown in figure 1 presents several - serious problems for internet routing algorithms. The present - generation of IP gateways [2] assumes all paths between - gateways are equivalent in delay, cost, and administrative - authorisation. The various paths shown in figure 1 include - violations of all three of these conditions. For example, - routing MoD or ARPANET traffic over the PTT path, hence over - IPSS, between the US and UK will create unacceptable costs. - - As an interim solution, we propose to effectively reduce the - connectivity, to that shown in Figure 2 [1]. The upper (PTT) - path provides ARPANET access for non-MoD users, while the - lower (SATNET) path is for MoD use. - - - - - - - - - - - - - - - - - - - - 4 - [Cole and Braden] - - - Routing and Access Control Indra Note 1114 - in UK-US Services IEN 190 - - PTT path _____________ - G -----------------------| SRC-PSS | - / (IPSS tunnel) ------------- - _________ - | | - | ARPA | __________ (PSS tunnel) - | NET | | UCLNET |--------------| - | | ---------- | - --------- | | - \ __________ | | ________ - G --| SATNET | -- G' ----------------G-| PPSN | - ---------- | ________ -------- - |___| C/30 | - | TAC | - -------- - - Figure 2. Apparent Connectivity For Service - - - 4. How it Will Work - - The reduction in connectivity between the available - physical connections and the apparent connections is achieved - by using addresses to convince the ARPANET gateways they are - connected to logically disjoint networks. We also use - addressing to ensure that US hosts use the correct path for - return traffic. This is achieved by using different network - numbers on each path, enabling the US hosts to select - different gateways. - - Thus, we will represent all non-MoD users as coming from a - network we will call SRC-PSS, and all other users as coming - from UCLNET. Of course traffic from PPSN is not affected. In - this way the US hosts will select the ARPANET-SATNET gateway - (and thus the SATNET path) for MoD authorised users and the - BBN VAN gateway for all others. - - We can summarise the paths from the UK to the US as: - - 1. From PPSN: - this traffic has a direct link to the SATNET gateway, and - only allows authorised traffic - - 2. From PSS: - this traffic must pass through access control at UCL and - thus the correct path is chosen - - 3. From TAC: - this traffic has direct access to SATNET, but only - authorised users will know the telephone number. - Eventually TIP (TAC) login will increase the security. - - - - 5 - [Cole and Braden] - - Routing and Access Control Indra Note 1114 - in UK-US Services IEN 190 - - We can summarise the US to UK access (including UK-US return - traffic) as a sequence of steps: - - 1. The US host will choose a gateway based on the - destination network number. For MoD authorised users and - all US users addressing PPSN and UCL networks, this will - be the ARPANET-SATNET gateway. For all other users the - BBN VAN gateway should be chosen. - - 2. Traffic arriving via the VAN gateway and IPSS will enter - a UCL service host and be forwarded into PSS and SRCNET - or to a local UCL host as required. The UCL service host - will provide higher-level gateways which match the - differing protocols in the DARPA Catenet and X.25 - domains: a transport-service gateway for FTP traffic and - a terminal protocol converter for terminal traffic. - - 3. Traffic arriving from the UCL-SATNET gateway will pass to - either the TAC, PPSN gateway, or into the UCL network via - the SATNET Access Machine (SAM) [3]. - - - - 5. Access Control for the PTT Network Connections - - Extensive use is made of the PTT networks for carrying user - traffic and encapsulated datagrams. Controls are required to - ensure that only authorised users are allowed to connect to - the various entry points of the Catenet. - - There are two areas to be considered: user level access, - and gateway access for encapsulated IP datagrams (tunnels). - - 1. All user level access to the Catenet from PSS and SRCNET - is controlled at UCL by a login procedure, both for - terminal access and file transfer. This is discussed in - [1]. Similarly, any PSS access to PPSN will be vetted by - the MoD's VAN gateway. - - 2. A more serious problem is the misuse of the tunnels - across the PTT networks, for two reasons. First, one or - both ends of a tunnel may need to treat the opposite end - as a "trusted host" with respect to application of access - controls. Since the two ends of the tunnel are connected - with switched rather than permanent circuits, one must - guard against a third host masquerading as one of the - legitimate tunnel hosts. Secondly, the virtual X.25 - calls used to carry IP traffic will incur usage charges. - Across the international link IPSS, in particular, these - charges will be substantial. - - - - 6 - [Cole and Braden] - - - Routing and Access Control Indra Note 1114 - in UK-US Services IEN 190 - - Figure 1 shows the two tunnels that are planned. - - 1. From UCL to BBN VAN gateway via IPSS. (Prior to - providing service, we will start accessing IPSS via - PSS.) - - 2. From UCL to PPSN via PSS - - The "trusted host" problem can be handled easily, by - having each end of the tunnel accept calls only from the - expected host at the other end. Since the PTT network - provides the remote host address, this tunnel can only be - misused by "breaking" the PTT network. - - For example, the UCL end of the "PSS tunnel" will - accept X.25 virtual calls only from the PPSN gateway, - while the MoD VAN gateway to PPSN will accept X.25 - virtual calls only from specified calling addresses. - Similarly, UCL will only accept calls from the BBN VAN - gateway, and the latter will have a list of acceptable - calling addresses [4]. - - Usage charges can pose much greater difficulty. - - i. Accounting - - The IP tunnels and the VAN gateway [3] will operate - only on IP datagrams, and therefore can account for - usage only on the basis of addressing that is - visible at that level of protocol. Thus, it is - possible to account by internet host, but not by - virtual call or even individual user. This forces - any user-level accounting and access control back - onto the hosts at each end of the virtual call, and - at present no ARPANET hosts are prepared to accept - this responsibility. - - Haverty [3] has pointed out a further problem - with host-level accounting: the internet gateways do - not ensure correct source addresses in the internet - datagrams they process. Thus, the VAN gateway - cannot rely upon even the alleged internet source - host of a datagram destined for the tunnel. - - ii. GGP - - It is very undesirable to have internet gateways on - both ends of a tunnel through a PTT network, since - GGP messages interchanged by the gateways will - generate excessive usage charges. Thus, in Figure 2 - - - - 7 - [Cole and Braden] - - - Routing and Access Control Indra Note 1114 - in UK-US Services IEN 190 - - the UCL end of the IP tunnel must be an internet - host, not a gateway. - - The PSS tunnel for PPSN cannot avoid this GGP - traffic, but this path is expected to be used only - for experiments in alternate routing, and will not - normally exist. - - iii. Retransmission - - There are serious problems with the use of an end- - to-end retransmission protocol like TCP across an IP - tunnel. Some host implementations of TCP use - retransmission timeout computations that are - incapable of adapting to long network delays, - causing execessive retransmissions when calling the - UK. The result will be to create excessive usage - charges which are not under user control. - - iv. Call Multiplexing - - To minimise usage costs, it is necessary to use the - X.25 virtual call as efficiently as possible. In - general, there should be at most one virtual call - open for a given tunnel. When traffic ceases, this - call should be closed after a suitable interval. - The minimum call duration charge interval should be - considered when choosing this idle-call timeout - interval. - - If both ends of the tunnel open calls to each - other simultaneously, two calls will result, and one - must be closed. There can be an agreement between - the two ends of the tunnel that one of them will - always close a duplicate call. In the absence of - such an agreement, a symmetric algorithm must be - used to resolve the race. For example, each side - can accept the incoming call and process traffic - from it, wait for a random interval, and then close - the incoming call (unless the other side has - meanwhile closed the other outgoing call). In the - event that both sides wait the same time and - therefore close their calls simultaneously, the - algorithm should be repeated. - - - - - - - - - - 8 - [Cole and Braden] - - - Routing and Access Control Indra Note 1114 - in UK-US Services IEN 190 - - 6. Reconfiguring for Failure - - The weak links in the routing seen by the Catenet gateways - are the Atlantic connections. When one of these breaks, whole - sections of the UK user population will be disconnected. - - In fact, the physical connectivity allows us to realign all - UK-US traffic onto the single remaining path, and in theory - this change is fairly easily made. In practice, the cost of - using the PTT path and the politics of using the SATNET path - may preclude such operations. However, we wish to understand - the technical problems in switching from the normal dual path - to either single path. - - 1. SATNET failure - The MoD traffic via UCL may be routed via IPSS quite - easily. PPSN may open their own virtual call to the BBN - VAN gateway, but they would need to indicate themselves - as neighbours to obtain traffic from the US side (this - requires another null network). If a gateway at UCL made - itself known as a neighbour to the BBN VAN gateway, a - similar path would exist. In either case, traffic from - the TAC would be catered for. See figure 3. - - Notice that the "PTT network path" in Figure 3 really - constitutes two or three different internet networks -- - SRC-PSS, UCLNET, and perhaps PPSN. For this to work, we - require BBN's VAN gateway to support a number of - different "local" networks on the VAN side. We believe - this to be feasible within the general framework - described in [4]. - - - - - - - - - - - - - - - - - - - - - - - 9 - [Cole and Braden] - - - Routing and Access Control Indra Note 1114 - in UK-US Services IEN 190 - - PTT network path - (IPSS tunnels) - G ________________________________________ - / | | - / | | - / | ___________ | - / |---| SRC-PSS | | - _________ | ----------- | - | | | | - | ARPA | ______|___ PSS tunnel | - | NET | | UCLNET |---------------| / - | | ---------- | / - --------- | | / - | | / - __________ | |/ ________ - | SATNET | G' --------------- G -| PPSN | - ---------- | ________ -------- - |___| C/30 | - | TAC | - -------- - - Figure 3. Alternative paths for SATNET route failure - - 2. IPSS failure - The non-MoD traffic could be switched by making it appear - to come from UCLNET, however all existing connections - would be lost as the addresses change. To continue using - the PSS-SRC network addresses via SATNET would require - UCL to impose a gateway and inform the UCL-SATNET gateway - of the new neighbour. The dynamic rearrangement of - Atlantic links requires the gateways to issue redirect - message and the US hosts to act on them. See figure 4. - - - ___________ - G ------| SRC-PSS | - | ----------- - _________ | - | | | - | ARPA | _____|____ PSS tunnel - | net | | UCLNET |-----------| - | | ---------- | - --------- | | - \ __________ | | ________ - G --| SATNET | -- G' ------------ G -| PPSN | - ---------- | ________ -------- - |___| C/30 | - | TAC | - -------- - - Figure 4. Alternative paths for IPSS route failure - - - - 10 - [Cole and Braden] - - Routing and Access Control Indra Note 1114 - in UK-US Services IEN 190 - - 7. Issues in Internetworking - - The problems, and solutions, discussed above represent - specific cases of more general issues in Catenet design and - operation. In [5] [6] [7] Rosen presents a number of problems - in the current Catenet design and implementation. He then - goes on to propose a new model for catenet operation. This - section will look at the UCL problems in this context, as a - contribution to the debate. - - The addressing solution used at UCL to force a particular - route on a packet has 3 disadvantages. - - 1. It reduces the potentially rich connectivity of the - available physical connections to a minimum. - - 2. It manipulates Catenet routing in an unacceptable way - (i.e. a hack). - - 3. It requires complicated manoevres to restore service via - alternative paths when the minimum connectivity is - further reduced by failures. It is not clear how easy it - will be to automate any switchover. - - Ideally, the Catenet routing algorithms, implemented in the - gateways, should be capable of knowing the full UK-US - connectivity without the UK being used as an expressway for - US-US traffic. In the present Catenet design and with the - present Catenet protocols, such full knowledge by the gateways - would have to be constrained by specifying source and return - routes in each IP datagram. - - In practice we find that dependence upon source routing is - impractical, as it requires every gateway, and every US host - that any UK user may access, to support these 'options'. The - overhead of this option on IPSS/PSS charges is another - concern. Even more seriously, source routing would move the - burden of reconfiguration back onto the hosts and, in the end, - the users. - - In the model put forward by Rosen, gateway routing may be - constrained by factors such as cost and suitability of paths. - In the UCL case we should also add political factors arising - from crossing national boundaries and Telecommunications - monopolies. In the Rosen model the full UK-US connectivity - would be available to the Switches. Thus we must look at some - mechanisms by which we can constrain the actual routes - available to particular classes of traffic. - - The obvious mechanism is to use a 'class field' in the - packet which identifies a potential routing problem to the - - - - 11 - [Cole and Braden] - - Routing and Access Control Indra Note 1114 - in UK-US Services IEN 190 - - switches. However the UK is not alone in its problems, and in - a general Catenet we can imagine a large number of paths - having a number of user classes giving a very large class- - problem space. Of course, if the entire Catenet is to be - accessible from everywhere, each class/path combination must - have a unique representation to enable the source Switch to - plan a route. - - The situation is further complicated by allowing a - gradation of class. It is not unreasonable to suppose that - someone may be prepared to pay for a path (such as IPSS) if - the first choice (say SATNET) is unable to provide the - required level of service due to traffic loading or - malfunction. Thus we also need a mechanism that can say 'if - the delay on path X goes above d then use alternative path Y'. - Similarly we may have a situation where an administration will - say 'allow any users of class m on this path as long as the - loading is less than n%'. All of this complexity for each - packet! We admit this is an argument about the distant - future; however we should consider these general problems now - because we already have specific instances of them. - - As a final note, it is worth pointing out that the UCL - addressing hack works because all UK-US traffic to the DARPA - Catenet comes through UCL. This situation may not continue. - It is not infeasible that a UK research establishment or a US - Defense installation in the UK (or Europe) may obtain - independent access to the Catenet. Or, the German SATNET - installation might decide to increase their service - reliability by adding extra connectivity. Each of these may - use existing paths as alternatives. In these cases our - addressing solution may fall apart, with disastrous results. - - - 8. Conclusion - - The routing and access control problems for US-UK Catenet - operations have been discussed and an interim solution - proposed, based on addressing mechanisms. Given the present - generation of internet gateways, it is necessary to curtail - the use of the full physical connectivity between the US and - the UK to avoid gateway routing problems and undesirable - paths. - - Access control between the PTT networks and the DARPA - Catenet has also been covered in some detail. - - - - - - - - 12 - [Cole and Braden] - - - Routing and Access Control Indra Note 1114 - in UK-US Services IEN 190 - - - - - References - - - 1. Higginson, P. and Braden, R., UK-US Services, - Indra Note 1101, IEN 185 - - 2. Strazisar, G, How to Build a Gateway, - IEN 109 - - 3. Cole, R. and Lloyd, P., The SATNET Access Machine, - Indra Note 1113 - - 4. Haverty, J., - Van Gateway: Some Routing and Performance Issues, - IEN 181 - - 5. Rosen, E, - Issues in Internetting Part 1: Modelling the Internet, - IEN 184 - - 6. Rosen, E, - Issues in Internetting Part 2: Accessing the Internet, - IEN 187 - - 7. Rosen, E, Issues in Internetting Part 3: Addressing, - IEN 188 - - - - - - - - - - - - - - - - - - - - - - - - - 13 - [Cole and Braden] diff --git a/text/ien/ien191.txt b/text/ien/ien191.txt deleted file mode 100644 index 7696593f..00000000 --- a/text/ien/ien191.txt +++ /dev/null @@ -1,638 +0,0 @@ - - -Internet Experiment Note: 191 C. Sunshine - D. Cohen - J. Postel - ISI - July 1981 - - Comments on Rosen's Memos - - -INTRODUCTION - - This memo comments on recent IEN's by Eric Rosen of BBN (numbers 182, - 183, 184, 187, 188, 189) [1,2,3,4,5,6]. We think these notes raise - some important and interesting issues which require further - discussion. In the following we focus on the points of disagreement - (but don't assume that we agree with something simply because we - don't mention it here). After a brief general comment we discuss - each note in turn. - - There are some good points raised in this series. Unfortunately the - presentation is both verbose and incomplete. There is nothing wrong - with taking a certain aspect of a topic and exploring it at length, - but these memos seemingly present all available alternatives and - select the "best" for further development. Our concern is that, in - fact, not all alternatives are studied, and not all evaluation - criteria are given the proper weight in selecting the "best" - alternative. A minor problem is the informality of the references. - It is unclear exactly which earlier memos, reports, and papers the - author has in mind in some of the discussion, and it is unclear if - the author is aware of some very relevant material. In some sections - it appears that the author is unfamiliar with much of the relevant - material, and hence fails to include important points in his - presentation. - -IEN 182 - - This note on "Issues in Buffer Management" is, in the main, a - description of buffer management in the ARPANET IMPs. This is quite - useful and should be food for thought for gateway designers and - implementers since gateways may have some of the same constraints and - concerns in buffer management as IMPs. However, the differences that - do exist in the goals for gateways and IMPs are not taken into - account, so the policies adopted for IMPs are not necessarily - appropriate for gateways. Differences in the level of reliability of - delivery, and the end-to-end virtual circuit vs. the datagram style - of service can lead to substantial differences in the requirements - for buffer management. - - This is a useful memo in that it exposes a good deal about the buffer - management polices used in the ARPANET IMPs, information that is not - easily found elsewhere. But it is contains some weakly supported - - - -Sunshine & Cohen & Postel Page [1] - - - -July 1981 IEN 191 -Comments on Rosen's Memos - - - - overly broad conclusions that seem to ignore and sometimes contradict - existing results in this area. - -IEN 183 - - This memo presents a proposal for a logical addressing mechanism in - the ARPANET, and includes a good deal of discussion of alternatives. - Interested readers should see earlier IEN's on the subject from MIT, - ISI, and Xerox, plus the classic paper by Shoch, and recent work on - "naming authorities" at Xerox, which the author fails to credit or - reference [7,8,9]. - - We prefer the more commonly used term "name" to the phrase "logical - address" which the author uses. - - The key proposal is to include a name-to-address lookup function in - the source switches of a network so that the "user" will not have to - supply ("physical") addresses. This seems a worthwhile goal, but the - meaning of "user" seems confused between (1) people or application - programs using the network, and (2) network access software (such as - NCP or TCP) supporting (1) in the hosts. The author seems oblivious - of this distinction. - - Everyone agrees that category (1) "users" should be able to use - names. Of course, most ARPANET hosts' category (2) software already - provides this function (the host table) for category (1) "users". - The proper discussion should be whether this function is best located - in the switches, or in the network support software of the hosts, but - this is not explicitly addressed by the author. - - The author presents a reasonable approach to implementing a name - lookup function without requiring broadcast of dynamic changes to all - participants. A basic table of all potentially usable addresses for - each name must be distributed to all parties (the "authorized" - table), but this is expected to change relatively slowly. Entries in - this table are assumed usable ("effective") until an explicit - exception message ("destination not accessable") results from using - them. The unusable markings are reset after a time interval. - - We agree that this is a worthwhile proposal, but the placement of - this function in the hosts, the switches, or a separate name lookup - service needs further discussion. Since most hosts are already - performing this function as noted above, it is clearly within their - capabilities. An advantage of placement in the switches seems to be - prevention of "spoofing" since hosts can only send/receive messages - from/for a specified name if that name is "authorized" for the - - - -Page [2] Sunshine & Cohen & Postel - - - -IEN 191 July 1981 - Comments on Rosen's Memos - - - - addresses they are physically attached to. Of course this requires - source and destination switches to check messages in a "trusted" - fashion. - - There is a small inconsistency in the author's discussion of - source-only vs. intermediate ("tandem") node name lookup. At the top - of page 11, it is stated that the tandem nodes will be "no more - likely" than the source node to have new information during a - transient update period. However, on page 12-13, it is pointed out - (correctly) that tandem nodes likely WILL produce a "better route - selection ... if delay changes or topology changes take place while a - packet is in transit." - - There will be substantial modification needed to the host software in - order to implement this scheme. It is proposed (we think) that both - the current scheme and the logical address scheme be available at the - same time. The details of the logical address are not very clear, - but a 16-bit logical address is suggested, which would require a - character string to number lookup in the hosts to make it convenient. - -IEN 184 - - This memo claims that the previous work on the Internet is deficient - due to reliance on an inadequate model of the structure of the - Internet. IEN 184 claims to present a new model of the Internet that - does provide a basis for future work. - - The proposed model of internetwork operation views the gateways more - explicitly as switching nodes, with the hosts attached to these - nodes. In particular, each host is multi-hommed on all the gateways - on the same network as the host. - - There is some merit to this model and the questions it raises, but - the author is not the first to think of this viewpoint (see for - example IEN-135 [10]). There are also some problems with this model - that the author seems unaware of. - - This new model might be acceptable if one wanted to build a super - ARPANET based solely on lines and super-IMPs, but if one is planning - to include other technologies such as broadcast satellite and - broadcast local networks, the proposed model has serious flaws. - - For example, two hosts on the same net may still wish to use Internet - protocols to communicate. In the author's model, they would have to - do so by going through an intermediate gateway on their net, since by - definition, no hosts can communicate directly over a "Pathway" with - - - -Sunshine & Cohen & Postel Page [3] - - - -July 1981 IEN 191 -Comments on Rosen's Memos - - - - no intervening "Switch." This is clearly inefficient in the intranet - case, and one way in which it differs from the ARPANET. This would - also be true in many single broadcast nets where there are no - intervening switches between hosts even at the single network level - of "Network Structure." - - This memo fails to consider the impact on the host systems. Host - will be designed to use a common approach to communication with other - hosts whether they be across the room or across the world. With the - existing model and Internet Protocol, the same procedures and formats - can be used between hosts on the same network and between hosts many - networks apart (though different performance parameters may be - necessary). - - The model developed in the Internet Working Group and described by - Cerf (IEN-48 [11]) continues to be the most reasonable basis for - developing the Internet. - -IEN 187 - - This memo assumes the model (of IEN 184) of hosts always sending and - receiving internet traffic via an "Internet Switch". It goes on to - describe the interactions of a host and an internet switch, and then - criticizes the existing Internet Protocol for not being a perfect - host-switch interface protocol. - - We cannot possibly take on all of the topics and "lessons" presented, - but Section 2.4 of IEN-187 on fragmentation provides a good example - of what is wrong with these reports. Again, the author seems unaware - of previous important work on this subject, for example IEN-20 by - Shoch (expanded and published in Computer Networks in 1979) [13], or - the paper by Sunshine on interconnection of networks published in - Computer Networks in 1977 [14]. If the author had read these, he - might have avoided several serious deficiencies in his presentation: - - 1. After a long discussion of the evils of final destination (or - internet) fragmentation, the author reveals his preferred approach - of hop-by-hop (or intranet) fragmentation as if he invented the - idea. - - 2. There is an important goal that internet fragmentation - supports, but intranet fragmentation does not: independent and - possibly different routing of each fragment through different exit - gateways from a "small packet" net (and subsequently). The author - fails to consider this point. - - - - -Page [4] Sunshine & Cohen & Postel - - - -IEN 191 July 1981 - Comments on Rosen's Memos - - - - 3. In presenting scenarios (page 58) showing the evils of internet - fragmentation, the author omits the important scenario of several - small packet nets in a row, where repeated intranet fragmentation - is just the WRONG thing to do. - - 4. Packets with the Don't Fragment flag on are not "simply lost in - transit" (page 53) if they cannot be forwarded without - fragmentation. Specific error packets are returned to the source - host, which may try to resend smaller packets. - - 5. After all his discussion, the author admits in the final - paragraph that destination host fragmentation is necessary anyway - if the final network gets too large a packet. The author claims - this will be necessary only for hosts on nets with "unusually - small" maximum packet sizes, but in fact it will be necessary on - all nets with less than the maximum maximum packet size of any net - in the system if they wish to receive packets from the largest - packet size nets. - - The net effect of this sort of incomplete presentation is a step - backward from the current imperfect level of understanding of this - important issue. - - The author also attacks the Type of Service (TOS), Time to Live - (TTL), Source Routing (SR), Flow Control (FC), and Fault Isolation - (FI) features of IP and ICMP. - - On Type of Service the author tells us for ten pages all the bad - things about the Internet Protocol provision for TOS, while agreeing - it is an important concept, but has nothing different to offer, - except some vague notion that service catagories should correspond - more closely to application types. - - On Time to Live the author complains that there is an inconsistency - since the TTL is stated to be in seconds, and that the gateways must - decrement the TTL by one, and that the gateways are expected to - process datagrams faster than one a second. If one assumes that the - intention is to guarantee that datagrams stay alive as long as the - TTL, he is right. But the intention is really to guarantee that they - disappear before TTL. So TTL is an upper bound on how long the - datagram may exist. Most reliable transport protocols assume a - maximum datagram lifetime (sometimes unknowningly) for the correct - operation of their reliability procedures [15]. - - On Source Routing the author suggests that this feature exists due - only to problems with existing routing procedures and for - - - -Sunshine & Cohen & Postel Page [5] - - - -July 1981 IEN 191 -Comments on Rosen's Memos - - - - experiments, and that any really adequate routing procedure in the - gateways will eliminate the need for source routing in normal - operations. We suggest that the Internet will be a much more dynamic - environment than the author has yet imagined and that source routing - will be essential to reach through the Internet to local environments - not fully integrated into the main Internet routing world. - - On Flow Control and Fault Isolation the author indicates that the - current mechanisms are inadequate, but does not suggest workable - alternatives. On FC the ICMP "Source Quench" message is cited as a - case of "choke packet" flow control which the author does not believe - in (page 64). Earlier (page 63) the author complains that "source - quench" is only advisory, and later (page 66) the author makes vague - suggestions that a better flow control scheme would use advisory - messages to suggest that datagrams had been discarded (exactly what - source quench does). - - All in all this memo comes across as an attack on the Internet - Protocol, with few suggestions for improvement. But it is based on - an assumption: that the Internet Protocol is a host-switch access - protocol. This assumption requires further discussion. - -IEN 188 - - This memo describes logical addressing in the Internet, primarily by - recasting the method of IEN 183 in generalized terms. There are a - number of inaccuracies and omissions in the discussion. One serious - limitation is failure to consider the case of hosts sending Internet - datagrams to each other directly on a single net as discussed above. - - On page 4 (middle), the author correctly states that IP addresses are - hierarchical, but incorrectly states that their second component is - necessarily a "physical address." In fact, it may be a name or - "logical address" in networks that provide that capability (but must - be carried in 24 bits). - - On page 7, the author proposes using a "unique name which is - meaningful at each level of internet hierarchy." This seems to be a - strong violation of layering, and as the author admits, would require - the switches in every constituent network to "understand" and be able - to lookup the names, probably an intolerable demand on individual - network autonomy. - - On page 34, the author's claim that hierarchical addressing requires - less table space than flat addressing is false. His justification is - incomprehensible to us, particularly since he has just finished - - - -Page [6] Sunshine & Cohen & Postel - - - -IEN 191 July 1981 - Comments on Rosen's Memos - - - - proposing an "area" addressing scheme similar to hierarchical schemes - in order to reduce table sizes! - - In the detailed model of operation given in Section 3.4, an important - step is omitted when the first sentence states, "Let's assume that a - source Host has given a message to a source Switch ..." How does the - source host pick the source switch? In fact, it must pick both a - network level (e.g., IMP) and internet level (gateway) switch, - assuming it is multi-homed, which at least at the internet level is - quite likely. In order to make this selection, the host will have to - have a table giving the best switch (at each level) for each possible - destination name. But these are precisely the sort of tables the - author's scheme is meant to avoid having in the hosts. In light of - the comment above about hosts talking to each other directly on the - same net, the hosts must at least know the names and addresses of - every other host on their own net. - - The treatment of mobile hosts is quite brief and offers no - improvement over previously proposed solutions. - -IEN 189 - - This memo discusses routing in the Internet, and proposes that the - existing gateway routing procedure be replaced by the SFP procedure - now used in the ARPANET. This is surely a useful suggestion. The - note does however raise a number of issues in its examples of routing - problems that indicate an incomplete understanding of the whole area. - - The note proposes a "gateway discovery protocol" that could be - provided by individual nets. This idea seems worthwhile, although it - is not clear how many individual nets would be willing to make such - additions. We should like to point out that it is also possible to - perform this function directly among gateways in networks which - support broadcast or group addressing. - - The discussion of routing alternatives makes generally sound if - qualitative conclusions, but a few details are confused. The - discussion of throughput performance on page 41 assumes TCP will - operate with a small enough window over a high delay path so that - throughput is reduced, but this is precisely the situation in which - proper "tuning" requires a large window, which would allow high - throughput. - - The analogy with "whole picture" algorithms on pages 44-45 fails to - mention that in the whole picture scenario, each person would have to - get a piece of paper 100 times bigger than with the local scheme, and - - - -Sunshine & Cohen & Postel Page [7] - - - -July 1981 IEN 191 -Comments on Rosen's Memos - - - - hence this approach has an information distribution requirement that - is much higher. - - This memo contains several informal citations that could be usefully - spelled out for the IEN audience. The author mentions algorithms by - Gallager (page 17), Dijkstra (page 20), and Floyd (page 20), all - without references. It is safe to say that any list of references - containing only the author and his coworkers (as consistently done in - this series) cannot be adequate. - - One particular example provokes the following response: - - Please replace the second paragraph of page 49 of IEN-189 with the - following paragraph: - - "In fact the situation could be even worse. If Switches in - Boston know nothing about what happening inside the building on - 4676 Admiralty Way then data for the North section of the 11th - floor which arrives at the South section of the 11th floor is - then sent back from the South section to Boston for alternate - routing will just loop back to the South section. The data - will be stuck in an infinite loop, never reaching its - destination. In IEN 179 [12] Danny Cohen proposed a regional - scheme like this, apparently not realizing that it suffers from - loops. His proposal also includes a form of hierarchical - addressing which is closely bound up with routing, so that a - Switch is Boston might not even be able to distinguish data for - the South section from data for the North section. That is, in - Cohen's scheme, data for the South section and data for the - North section would be indistinguishable at the Boston - Switches; all such data would appear to be addressed to the - South section. Only the Switches at the South section would - look further down the address hierarchy to determine whether - the data needs further forwarding to the North section. Any - such scheme is hopelessly loop-prone, except in a Network - Structure whose connectivity is extraordinarily rich, much more - so than the Catenet's will ever be." - - Since the above suggestion was merely to follow the routing - strategy used by the phone companies, TELENET and others, you - should warn them immediately about this hopelessly loop-prone - situation. - - I believe that if the Boston Switch has ALL the information about - EVERYthing, EVERYwhere it would be in position to make better - decisions, ALWAYS, especially if that information is updated with - - - -Page [8] Sunshine & Cohen & Postel - - - -IEN 191 July 1981 - Comments on Rosen's Memos - - - - absolutely ZERO time delay. If this information is absolutely - free (in terms of communication, storage and processing) it may be - dumb not to make every Switch always know everything about - everything, down to (or "up to"?) the finest granularity - (location? site? process? file? register? bit?). However, if this - is not absolutely free, some compromises may have to take place. - - Oh, one point which I did not quite follow: why if the - Nevada/California lines are broken forever, Boston is never told - about it - as described by you? By the way, what made you - understand that the "The Switch at Nevada would look further down - the address hierarchy to determine whether the data needs further - forwarding to California" ? - - I highly recommend that you get hold of any telephone directory - and read the area-codes tables. This may help you understanding - that the California area codes are neither above, nor below, nor - further on any hierarchy than the Nevada ones, and vice versa. - - This is a very subtle point which may escape the casual reader. - Mastering this idea may help you understand what IEN-179 is all - about. In short, IEN-179 is not an attempt to describe the ideas - which you have in mind by using the telephone scenario, but an - attempt (which obviously failed, at least in your case) to - introduced old well-proven ideas from other communication arenas - into ours. - -SUMMARY - - In summary we are glad to have this information and these opinions - presented for discussion in the Internet Working Group, and we hope - that others will speak up with their opinions too. We are concerned - that too many will be so overwhelmed by the wide ranging arguments to - notice that some important considerations were not mentioned. - - We especially want to make clear that a fundamentally different model - of the Internet architecture is proposed by Rosen, and that we have - serious reservations about aspects of that model. - - - - - - - - - - - -Sunshine & Cohen & Postel Page [9] - - - -July 1981 IEN 191 -Comments on Rosen's Memos - - - -REFERENCES - - [1] Rosen, E., "Issues in Buffer Management", IEN 182, Bolt Beranek - and Newman, May 1981. - - [2] Rosen, E., "Logical Addressing", IEN 183, Bolt Beranek and - Newman, May 1981. - - [3] Rosen, E., "Issues in Internetting Part 1: Modelling the - Internet", IEN 184, Bolt Beranek and Newman, May 1981. - - [4] Rosen, E., "Issues in Internetting Part 2: Accessing the - Internet", IEN 187, Bolt Beranek and Newman, June 1981. - - [5] Rosen, E., "Issues in Internetting Part 3: Addressing", IEN 188, - Bolt Beranek and Newman, June 1981. - - [6] Rosen, E., "Issues in Internetting Part 4: Routing", IEN 189, - Bolt Beranek and Newman, June 1981. - - [7] Clark, D., "A Proposal for Addressing and Routing in the - Internet", IEN 46, MIT/Laboratory for Computer Science, June - 1978. - - [8] Cerf, V., "Internet Addressing and Naming in a Tactical - Environment", IEN 110, Information Processing Techniques Office, - Defense Advanced Research Projects Agency, August 1979. - - [9] Shoch, J., "Inter-Network Naming, Addressing, and Routing", - Proceedings 17th IEEE Computer Society International Conference, - pp72-79, September 1978. - - [10] Sunshine, C., "Addressing Mobile Hosts in the ARPA Internet - Environment", IEN 135, USC/Information Sciences Institute, March - 1980. - - [11] Cerf, V., "The Catenet Model for Internetworking", IEN 48, - Information Processing Techniques Office, Defense Advanced - Research Projects Agency, July 1978. - - [12] Cohen, D., "Addressing and Routing", IEN 179, USC/Information - Sciences Institute, March 1981. - - [13] Shoch, J., "Packet Fragmentation in Inter-Network Protocols", - Computer Networks, V.3, N.1, pp3-8, February 1979. - - - - -Page [10] Sunshine & Cohen & Postel - - - -IEN 191 July 1981 - Comments on Rosen's Memos - - - - [14] Sunshine, C., "Interconnection of Computer Networks", Computer - Networks, V.1, N.3, pp175-195, January 1977. - - [15] Watson, R., "Timer-Based Mechanisms in Reliable Transport - Protocol Connection Management", Computer Networks, V.5, N.1, - pp47-56, February 1981. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Sunshine & Cohen & Postel Page [11] - diff --git a/text/ien/ien192.txt b/text/ien/ien192.txt deleted file mode 100644 index c8dd4feb..00000000 --- a/text/ien/ien192.txt +++ /dev/null @@ -1,3391 +0,0 @@ - - - - - IEN 192 - - - - - - - - - - - - - - - HOST/SATNET PROTOCOL - - - - - Bolt Beranek and Newman Inc. - - - July 1981 - -Host/SATNET Protocol IEN 192 - - - - TABLE OF CONTENTS - - - -1. Overview . . . . . . . . . . . . . . . . . . . . . . . . . 1 - -2. Satellite IMP Implementation Details . . . . . . . . . . . 4 - 2.1 Initialization . . . . . . . . . . . . . . . . . . . . 5 - 2.2 Host-to-Satellite IMP Input . . . . . . . . . . . . . . 6 - 2.3 Satellite IMP-to-Host Output . . . . . . . . . . . . . 8 - -3. DATAGRAM ACCESS PROTOCOL . . . . . . . . . . . . . . . . . 10 - 3.1 Overview . . . . . . . . . . . . . . . . . . . . . . . 10 - 3.2 Types of Service . . . . . . . . . . . . . . . . . . . 11 - 3.3 Addressing . . . . . . . . . . . . . . . . . . . . . . 12 - 3.4 Message Length . . . . . . . . . . . . . . . . . . . . 12 - 3.5 Host/SATNET Flow Control . . . . . . . . . . . . . . . 13 - 3.6 Status Messages . . . . . . . . . . . . . . . . . . . . 14 - 3.7 Hello Messages . . . . . . . . . . . . . . . . . . . . 14 - 3.8 Message Reference Numbers . . . . . . . . . . . . . . . 15 - 3.9 Initialization . . . . . . . . . . . . . . . . . . . . 15 - 3.10 Format Errors . . . . . . . . . . . . . . . . . . . . 16 - 3.11 Loop Detection . . . . . . . . . . . . . . . . . . . . 16 - 3.12 Piggybacked Control Messages . . . . . . . . . . . . . 17 - 3.13 Formats . . . . . . . . . . . . . . . . . . . . . . . 17 - 3.13.1 Control Codes . . . . . . . . . . . . . . . . . . 17 - 3.13.2 Data Messages . . . . . . . . . . . . . . . . . . 18 - 3.13.2.1 Type of Service Word . . . . . . . . . . . . . 19 - 3.13.2.2 Acceptance Status Word . . . . . . . . . . . . 20 - 3.13.3 ACCEPTED Messages . . . . . . . . . . . . . . . . 21 - 3.13.4 REFUSED Messages . . . . . . . . . . . . . . . . . 21 - 3.13.5 STATUS REQUEST Messages . . . . . . . . . . . . . 22 - 3.13.6 STATUS MESSAGES . . . . . . . . . . . . . . . . . 23 - 3.13.7 HELLO Message . . . . . . . . . . . . . . . . . . 23 - 3.13.8 FORMAT ERROR Message . . . . . . . . . . . . . . . 23 - 3.13.9 RESTART REQUEST Message . . . . . . . . . . . . . 24 - 3.13.10 RESTART COMPLETE Message . . . . . . . . . . . . 25 - -4. STREAM ACCESS PROTOCOLS . . . . . . . . . . . . . . . . . 26 - 4.1 Overview . . . . . . . . . . . . . . . . . . . . . . . 26 - 4.2 Stream Data Messages . . . . . . . . . . . . . . . . . 27 - 4.3 Stream Request Replies and Notifications . . . . . . . 28 - 4.3.1 CREATE . . . . . . . . . . . . . . . . . . . . . . 31 - 4.3.2 DELETE . . . . . . . . . . . . . . . . . . . . . . 32 - 4.3.3 JOIN . . . . . . . . . . . . . . . . . . . . . . . 33 - 4.3.4 LEAVE . . . . . . . . . . . . . . . . . . . . . . . 34 - 4.3.5 CHANGE . . . . . . . . . . . . . . . . . . . . . . 34 - 4.4 SATNET Termination and Suspension of Streams . . . . . 35 - - - - - - - i - - -Host/SATNET Protocol IEN 192 - - - -5. Land Modem Interface . . . . . . . . . . . . . . . . . . . 37 - -6. Local Host Interface . . . . . . . . . . . . . . . . . . . 37 - -APPENDIX A. . . . . . . . . . . . . . . . . . . . . . . . . 38 - A.1 Table 1 -- Request Codes . . . . . . . . . . . . . . . 38 - A.2 Table 2 -- Reply Codes . . . . . . . . . . . . . . . . 38 - A.3 Table 3 -- Error Codes in D3 . . . . . . . . . . . . . 39 - A.4 Table 4 -- Notification Codes . . . . . . . . . . . . 39 - A.5 Table 5 -- SATNET Data Message Types . . . . . . . . . 39 - A.6 Table 6 -- SATNET Logical Address Map . . . . . . . . 40 - -APPENDIX B. . . . . . . . . . . . . . . . . . . . . . . . . 43 - B.1 Figure 1. Restart State Diagram . . . . . . . . . . . 43 - B.2 Figure 2. General Message Format . . . . . . . . . . 44 - B.3 Figure 3. Block DATA Message . . . . . . . . . . . . 45 - B.4 Figure 4. Type of Service Word . . . . . . . . . . . 46 - B.5 Figure 5. Acceptance Status Word . . . . . . . . . . 46 - B.6 Figure 6. ACCEPTED Message . . . . . . . . . . . . . 46 - B.7 Figure 7. REFUSED Message . . . . . . . . . . . . . . 46 - B.8 Figure 8. STATUS REQUEST Message . . . . . . . . . . 47 - B.9 Figure 9. STATUS Message . . . . . . . . . . . . . . 47 - B.10 Figure 10. HELLO Message . . . . . . . . . . . . . . 48 - B.11 Figure 11. FORMAT ERROR Message . . . . . . . . . . 48 - B.12 Figure 12. RESTART REQUEST Message . . . . . . . . . 48 - B.13 Figure 13. RESTART COMPLETE Message . . . . . . . . 48 - B.14 Figure 14. Stream Data Format . . . . . . . . . . . 49 - B.15 Figure 15. Request Message Format . . . . . . . . . 50 - B.16 Figure 16. Reply Message Format . . . . . . . . . . 51 - B.17 Figure 17. Notification Message Format . . . . . . . 52 - B.18 Figure 18. Create Request Words . . . . . . . . . . 53 - B.19 Figure 19. Delete, Join, Leave Request Words . . . . 54 - - - - - - - - - - - - - - - - - - - - - - - ii - - -Host/SATNET Protocol IEN 192 - - - - PREFACE - - This document describes the current SATNET Host Access -protocol. This supersedes PSPWN #100 (SATNET Host Access -protocol) and PSPWN #104 (Host/SATNET Stream Access protocol). -The differences are: - - (1) The initialization state diagram has been - changed so that neither side will enter the - ON state unless both sides of the connecting - transmission line are working. - - (2) A "Host type" field was added to the Restart - Request and Restart Complete messages. - - (3) The numeric values of some error codes have - been changed, as have the detailed meanings - of some of those codes. - - (4) Some Stream Reply Codes have been changed. - - (5) Some significant changes have been made to - the information supplied by hosts in Stream - Create and Change request messages. - - (6) Hosts must use the acceptance/refusal flow - control strategy in response to data messages - from Satellite IMPs (i.e., this is no longer - an option). - - - - - - - - - - - - - - - - - - - - - - - - - - iii - - -Host/SATNET Protocol IEN 192 - - - -1. Overview - - - In determining an appropriate host access protocol, several - -factors must be considered. One set of factors concerns - -regulation of transfers in either direction across the - -host-network interface. A second set of factors concerns actions - -associated with the transmission of messages across the network. - -While there are several different protocols in existence which - -deal with link and network access (e.g., SDLC and X.25), none - -satisfies the totality of user services and other factors unique - -to SATNET. Thus to allow flexible exploration of access issues, - -a special protocol was developed for the network transmission - -level. (For implementation convenience, however, an existing - -ARPANET link error control protocol was used to provide reliable - -interface transfers.) - - - The network-level access factors include the passing of - -type-of-service information such as priority and delay class, the - -passing of flow and congestion control information, coordination - -of stream data messages with their scheduled times, and - -mechanisms for dynamic stream and addressing setups. - - - The type-of-service information is dealt with by defining an - -appropriate field in the message headers. This field currently - -consists of eight bits in SATNET: Two bits for message type - -(datagram/stream and internet designations), two bits to specify - - - - - - - 1 - - -Host/SATNET Protocol IEN 192 - - - -one of four priorities, two bits to specify one of four delay - -classes, one bit to specify a holding time choice, and one bit to - -specify reliability. The delay class choices presently consist - -of one second, five seconds, twenty seconds, and two minutes. - -The holding time choice consists of either twice the specified - -delay class or two minutes. The reliability choice consists of - -"high", which causes channel retransmissions to be used, or - -"standard", which inhibits the use of retransmissions and allows - -messages with bad data checksums (but good checksums on their - -control information) to be delivered to users. Standard - -reliability is designed for applications which can tolerate - -occasional bit errors, but cannot tolerate lost or out-of-order - -packets (e.g. packet speech). - - - Flow and congestion control information is passed by the use - -of two distinct mechanisms. First, status information reflecting - -current congestion control is sent in all data and related - -control messages; in the absence of other traffic, a special - -status message is sent periodically. This information indicates - -which priority and delay classes are currently being accepted by - -the network. - - - - The second mechanism consists of specific information - -concerning the disposition of each data message passed to the - -network. Each data message is numbered (modulo 128) by the - - - - - - - 2 - - -Host/SATNET Protocol IEN 192 - - - -sending host for identification purposes. Upon receipt, the - -network returns an "acceptance" or "refusal" indication to the - -host. An acceptance implies the network believes it can deliver - -the message to its destination and is proceeding to do so; - -delivery, however, is not guaranteed. A refusal means the - -network has discarded the message; in this case a refusal subcode - -is included to indicate the reason. Messages may be refused - -because, for example, the destination is down or does not exist, - -because its priority or delay class is not being accepted, or - -because of temporary flow control reasons associated with source - -or destination buffering. In the latter case the message is - -assigned to one of several categories used for subsequent - -notification purposes. A bit representing each category is - -passed along with the priority-delay class status information in - -all messages. When the message is refused the number of the - -assigned category is returned to the sender, with the values of - -subsequent category status bits indicating when messages of that - -category will again be accepted. - - - In order to minimize message delays and to schedule stream - -slots efficiently, the coordination of stream data messages - -involves establishment of the correct time window in which the - -host should pass each message to the network. The present system - -uses explicit accept/refuse messages to accomplish this. Stream - -and addressing setups are accomplished by using datagram messages - -between the hosts and the network. - - - - - 3 - - -Host/SATNET Protocol IEN 192 - - - -2. Satellite IMP Implementation Details - - - For each physical host port the software uses the following - -data structures: - - Protocol state word, - Category queues, - Host output queue, - Accept/refuse queue (HAQ), - Interface property table, - Last-heard word (LSTHRD). - - - The protocol state word indicates whether the protocol is in - -initialization or running state. If in initialization state, no - -messages will be accepted or delivered until the necessary - -handshaking procedure, as described below, is completed. - - - The four category queues are used to store messages that - -have been refused by a host. If a host refuses a message and - -provides an appropriate category indication, the message will be - -stored on the specified category queue until the host indicates - -it is willing to accept messages of that category. If a message - -reaches its maximum holding time before the host will accept it, - -it will be dropped from the queue. - - - - The host output queue is a queue of data messages waiting to - -be delivered to the appropriate host. Ordered by urgency, all - -messages remain on this queue until they are transferred into the - -HAQ just prior to being sent to the host or until their holding - -time expires. - - - - - - 4 - - -Host/SATNET Protocol IEN 192 - - - - The HAQ is a storage location for a message that has been - -sent to the host and is awaiting an accept or refuse response. - -If a response is received, the message is removed from the queue. - -If no response is received, the message will be removed when its - -maximum holding time has expired. - - - The interface property table (IPT) is used to indicate any - -of the various protocol options selected by a host. One such - -option is whether to allow piggybacking of Host/SATNET control - -messages. Another option is that the host may decline to do - -accept/reject decisions on traffic that it receives from SATNET. - - - The last-heard word indicates when the host was last heard - -from. The host is declared down if it has not been heard from in - -a specified time, currently about thirty seconds. The host will - -remain down until the necessary handshaking is completed. - - -2.1 Initialization - - - Whenever a host or Satellite IMP is restarted, it sends a - -RESTART-REQUEST control message to the other party. This message - -will be repeated periodically until a RESTART-COMPLETE message is - -received from the other party. When the RESTART-COMPLETE message - -is received by the first party, it will then also send a - -RESTART-COMPLETE message. - - - - - - - - - - 5 - - -Host/SATNET Protocol IEN 192 - - - -2.2 Host-to-Satellite IMP Input - - - For datagram traffic, SATNET accepts variable-length - -messages of up to a fixed maximum length (currently 128 16-bit - -words). The host prefixes each message with a header which - -provides addressing and control information. The control - -information specifies priority, desired delivery delay, maximum - -holding time, and selection of message control options such as - -reliability. Each datagram message from a host is accepted or - -rejected by the Satellite IMP according to the current network - -loading and other factors. The Satellite IMP always returns a - -control message indicating acceptance or refusal. - - - The message control parameters have the following possible - -values: Priority is an integer from zero to three, with three - -being the lowest priority and zero the highest. There are four - -possible delay classes: 1 second, 5 seconds, 20 seconds, and 120 - -seconds. There are two possible choices for maximum holding - -time: twice the delay class or the maximum system holding time. - -Reliability may be either normal or high reliability (zero or - -one). - - - Initially, when a message is offered by a host, a minimal - -amount of buffer is requested at high priority, and the header of - -the message is copied into this buffer in SATNET internal format. - -The information in the header is then presented to the - - - - - - - 6 - - -Host/SATNET Protocol IEN 192 - - - -Accept/Reject module. If the message is accepted the additional - -buffer needed is obtained, the rest of the message is copied into - -the buffer, and an accept message is placed on the accept/reject - -notification list (ARN). If the message is rejected, the - -appropriate rejection code is placed on the ARN and the buffer - -space is freed. It is left for the host to decide whether to - -resubmit the message at a later time. The rejection code will - -also inform the host of which priority and delay classes are - -currently being accepted, to assist the host in making message - -offering decisions. - - - The accept/reject decision is performed as follows: The - -first checks are made to ensure a valid source ID, adequate - -buffer in the Satellite IMP, and a message size not exceeding the - -maximum allowed size. The Satellite IMP must also be in the - -In-Sync state to be able to accept the message. For any message - -passing these tests, its TTG and priority are calculated, and - -used to form its urgency value. - - - - Next a check is made to see if the message can be delivered - -to the destination, which involves checking a table of - -destination parameters. The Satellite IMP verifies that the - -destination Satellite IMP and host are up and are receiving - -messages of the same category as the offered message. - - - - - - - - - 7 - - -Host/SATNET Protocol IEN 192 - - - - Although not implemented, the following checks are - -considered useful. If the reservation-making queue contains too - -much traffic of higher urgency or if the number of free buffers - -is below a fixed threshold, the message will be refused. Also, a - -maximum buffer usage may be assigned to each host for messages of - -each category; messages will be refused if the threshold is - -exceeded for messages of the same category. - - - A stream packet undergoes a different set of checks before - -it is accepted by the Satellite IMP. The stream must exist, the - -length of the message must not exceed the maximum allowable for - -that stream, and there must be room available on the stream queue - -for another packet. Also, the offering host must be designated - -as a member of that stream. - - -2.3 Satellite IMP-to-Host Output - - - Whenever there is an opportunity to send a message to a - -host, the Satellite IMP will examine every eligible queue to - -determine which message should be sent first. This includes the - -host output queue, the four category queues, and the control - -message waiting queue (ARN). If ARN is longer than a specified - -threshold, sending of control messages will take precedence over - -sending of data messages, until the ARN length falls below the - -threshold. Otherwise, if piggybacking is allowed, a data message - -will be sent to the host with a control message piggybacked. If - - - - - - - 8 - - -Host/SATNET Protocol IEN 192 - - - -no piggybacking is allowed, then control messages and data - -messages will compete. Competition is always on the basis of - -urgency (priority and TTG). A category queue may be ineligible - -if the host is not accepting messages of that category. In the - -absence of other traffic, a Satellite IMP will send a 'HELLO' - -message every second. Once a data message has been selected it - -is queued in HAQ and transmitted to the host. - - - If the host fails to respond in time, the message will be - -deleted from HAQ when its holding time expires. If the host - -accepts, the message will be removed from HAQ and discarded. If - -the host refuses and specifies a category, the message will be - -removed from HAQ and placed on the specified category queue. If - -the message is refused for urgency reasons, the message will be - -requeued on the host output queue. - - - - HAQ, the category queues, the host output queues, and ARN - -are all kept ordered by urgency, so that testing for the most - -urgent message consists of testing only the first message on each - -queue. - - - - - - - - - - - - - - - - - 9 - - -Host/SATNET Protocol IEN 192 - - - -3. DATAGRAM ACCESS PROTOCOL - - -3.1 Overview - - - For datagram traffic, SATNET accepts variable-length - -messages of up to 128 words of data. The source host prefixes - -each message with a leader which provides addressing and control - -information. The control information specifies message priority, - -desired delivery delay, delay at which the message should be - -discarded if not yet delivered ("maximum holding time"), and - -selection of one or more message control options. - - - Each datagram message from a source host is accepted or - -refused by the source Satellite IMP according to current network - -loading and other factors, with a control message always returned - -by the source Satellite IMP indicating the acceptance or refusal. - -Upon acceptance, SATNET then attempts to deliver the message - -within its specified delay. However, it will continue trying to - -deliver if late, until its maximum holding time is exceeded. - -Datagram messages always have at least a two-hop delay (about 0.6 - -seconds) within SATNET. - - - A lower-level protocol is assumed to provide reliable - -exchanges of data and control messages on the link connecting a - -host and Satellite IMP, and is assumed transparent to the - -protocol defined in this document. The Honeywell 316 Satellite - -IMPs use the ARPANET VDH protocol for this purpose. The new BBN - - - - - - 10 - - -Host/SATNET Protocol IEN 192 - - - -C/30 Satellite IMPs support in addition ARPANET 1822 local host - -and distant host protocol. - - -3.2 Types of Service - - - The type-of-service fields in the SATNET leader of each - -datagram message allows the following choices to be specified to - -SATNET for each message: - - - Priority: 4 choices. This is used in conjunction with - - the acceptable delivery delay to arbitrate for SATNET - - resources. - - - Acceptable Delivery Delay: 1 second, 5 seconds, 20 - - seconds, and 120 seconds. - - - Holding Time: This is the maximum time an undelivered - - message should be held within SATNET before discarding. - - There are two choices: (1) twice the specified - - delivery delay, or (2) the maximum system holding time - - (currently about two minutes). - - - Reliability: There are two choices, "standard" and - - "high". If standard is specified, a satellite channel - - acknowledgment is not used for the message, and it is - - not retransmitted by the source Satellite IMP in case - - of errors; if the packet is received at the destination - - Satellite IMP with a good message leader but errors in - - - - - - 11 - - -Host/SATNET Protocol IEN 192 - - - - the data portion of the message, it is marked as such - - and delivered to its destination. - - - If "high" is specified, the message is retransmitted as - - many times as necessary until a positive acknowledgment - - is received by the source Satellite IMP, up to the - - specified message holding time (duplicate copies may be - - delivered to the destination host in this case). - - -3.3 Addressing - - - SATNET uses logical addressing, with each host assigned a - -16-bit permanent address. Each data message sent to SATNET must - -contain both a source and destination logical address, and is - -delivered to the specified destination(s) with these addresses - -unchanged. Table 6 in Appendix A contains the current list of - -addresses. - - -3.4 Message Length - - - Datagrams may have variable lengths, where these lengths are - -integer multiples of 16-bit words. Maximum length of the data - -portion of a datagram message is 128 words. The "data portion" - -excludes the SATNET leader but includes an internet header if - -present. - - - - - - - - - - - 12 - - -Host/SATNET Protocol IEN 192 - - - -3.5 Host/SATNET Flow Control - - - Each message sent by a host is accepted or refused by the - -Satellite IMP based upon various network and local congestion and - -status factors. If accepted, an ACCEPTED control message is - -returned to the host containing the message ID assigned by the - -host in the data message leader. If refused, a REFUSED control - -message is returned containing the message ID and a refusal code - -C. If the message itself is bad, a FORMAT ERROR control message - -is returned containing the message ID. - - - The value of C is used to indicate to the host when it - -should subsequently retry the message. This is accomplished by - -also sending the host an "acceptance status" word at frequent - -intervals to inform it of the categories currently being - -accepted. The host may ignore the category information if it - -chooses, or map the categories into a smaller subset if - -convenient. The use of the categories allows the host to retry - -those messages first which are most likely to be accepted by the - -Satellite IMP. - - - The "acceptance status" word also contains information - -indicating which message priorities and delivery delay classes - -are currently being accepted, allowing the host to also avoid - -unnecessarily sending new messages which will be refused. The - -acceptance status word is sent to the host in every data and - - - - - - - 13 - - -Host/SATNET Protocol IEN 192 - - - -control message from the Satellite IMP; in the absence of regular - -traffic, a "Hello" message containing the acceptance status word - -is sent once per second. - - - Hosts must return an explicit acceptance or refusal for each - -message received from the Satellite IMP. Note that a "refusal" - -by the host is a request to the Satellite IMP to requeue the - -message in question and submit it again later. Currently, - -refused messages are immediately discarded, so as to eliminate a - -line congestion problem seen with the catenet. - - -3.6 Status Messages - - - A host can request current status information from SATNET by - -sending a "Status Request" control message. The Satellite IMP - -will return a status message containing the acceptance status - -word, SATNET global time, and an indicator of the current delay - -expected for each delivery delay class. (Inclusion of host - -status information is still under study.) - - -3.7 Hello Messages - - - When it is not sending data or control messages, the - -Satellite IMP or host must send a "Hello" control message once - -every second. In addition to providing frequent updating of - -acceptance status, the hello message allows the receiver to - -maintain the up/down status of the sender. The Satellite IMP - - - - - - - 14 - - -Host/SATNET Protocol IEN 192 - - - -will do this by resetting a timeout counter whenever anything is - -received from the host; if the timeout expires, the host will be - -declared down and the Satellite IMP will begin sending restart - -messages as described in the next section. The timeout value - -used by the Satellite IMP is thirty seconds. - - -3.8 Message Reference Numbers - - - To support message-by-message acknowledgements, each data - -message is assigned a 7-bit "message reference number" by its - -sender. Its purpose is to allow referencing of the message in a - -subsequent acknowledgement (ACCEPTED, REFUSED, or FORMAT ERROR) - -message. Reference numbers may be assigned in any order, except - -that a particular number may not be reused until the message it - -refers to has been acknowledged. All reference numbers are - -automatically released whenever the Host/SATNET interface is - -reinitialized. - - -3.9 Initialization - - - Since the Host/SATNET protocol requires an explicit - -acknowledgement for each message, the initialization procedure - -ensures that full two-way communication is possible before - -allowing either side to begin transmitting data. Whenever a host - -or a Satellite IMP is restarted, it sends a RESTART REQUEST - -control message to the other party once every ten seconds until a - -RESTART COMPLETE is received, at which time it sends a RESTART - - - - - - 15 - - -Host/SATNET Protocol IEN 192 - - - -COMPLETE. The procedure in initializing the interface is shown - -in Figure 1 in Appendix B. - - - The initialization action indicated in Figure 1 consists of - -flushing all queued control messages waiting to be sent, and of - -flushing all received data messages for which an ACCEPTED or - -REFUSED message has not already been sent. Note that data - -messages waiting to be sent need not be flushed; they can - -continue to be queued during the 'waiting' state and their - -transmission begun once the 'on' state is entered. - - -3.10 Format Errors - - - Whenever an invalid leader field value or message length is - -detected in a received message a FORMAT ERROR control message is - -returned to the sending host or Satellite IMP. An error code is - -returned in this message to indicate the detected condition - -(these codes are defined in the Formats section of this document, - -section 3.13). - - -3.11 Loop Detection - - - To allow a Satellite IMP or host to detect situations in - -which the interface may be externally looped (crosspatched), a - -Host/Satellite IMP address bit is included in all data and - -control messages, identifying the sender of each message. - - - - - - - - - 16 - - -Host/SATNET Protocol IEN 192 - - - -3.12 Piggybacked Control Messages - - - Control messages of the ACCEPT, REFUSE, FORMAT ERROR, and - -RESTART COMPLETE types may be piggybacked onto data messages by - -including the control message in the 16-bit "piggyback" field of - -the data message header. The Satellite Imp interprets all - -piggybacked control information before examining the rest of the - -data message, so, for example, a piggybacked RESTART COMPLETE - -takes effect immediately. - - -3.13 Formats - - - The general format used for Host/SATNET interface exchanges - -is shown in Figure 2 (all figures are in Appendix B). The - -control code always defines the message format; for all except - -data messages, it also implicitly defines the message length. - -Exact data message length is assumed to be derived from the host - -or Satellite IMP interface transfer, and is always an integer - -multiple of 16-bit words. - - -3.13.1 Control Codes - - - Each distinct message type is identified by a unique 4-bit - -control code. Codes currently defined are: - - - - - - - - - - - - - 17 - - -Host/SATNET Protocol IEN 192 - - - - 1 = DATA - 2 = ACCEPTED - 3 = REFUSED - 4 = STATUS REQUEST - 5 = STATUS - 6 = HELLO - 7 = DATA WITH ERRORS - 13 = FORMAT ERROR - 14 = RESTART REQUEST - 15 = RESTART COMPLETE - - -3.13.2 Data Messages - - - Figure 3 shows the format for datagram DATA messages (the - -width of each word in this and subsequent figures is 16 bits). - -Words 1, 2, and 3 are defined by the interface sender (host or - -Satellite IMP); words 4, 5, and 6 are defined by the source host. - - - Word 1, datagram message control word: - - - H/S, bit 1: 0 = from Satellite IMP, 1 = from host - - - message ID, bits 2-8: defined in Section 3.6 - - - block length, bits 9-12: the number of 64-word - - blocks of data words following the message leader: a - - block length of 1 means the message contains between - - 1 and 64 data words; a length of 2 means 65 and 128 - - data words, etc. The maximum datagram length is - - defined by Section 3.2. A length of 0 means a null - - DATA message. - - - - Control Code, bits 13-16: - - 1 = DATA (no detected errors) - - - - - - - 18 - - -Host/SATNET Protocol IEN 192 - - - - 7 = DATA WITH ERRORS -- used only if "standard - - reliability" service is designated and one or - - more data errors were detected by SATNET in the - - data portion of the message. Applies only to - - packets delivered by SATNET to hosts. - - - Word 2, acceptance status: (defined below). - - - Word 3, piggyback field: This word may contain any - - of the one-word control messages defined by codes 2, - - 3, 13, and 15. A value of zero means the word is not - - used. - - - Word 4, Type of Service Word: (defined below). - - - Word 5, destination host: a 16-bit SATNET logical - - address. - - - Word 6, source host: a 16-bit SATNET logical - - address. - - -3.13.2.1 Type of Service Word - - - Figure 4 shows the details of word 4 of datagram DATA - -message leaders. - - M, bits 1-2: DATA message type; - - 0 = datagram, internet format - 1 = stream, internet format - 2 = datagram, local format - 3 = stream, local format - - - - - - 19 - - -Host/SATNET Protocol IEN 192 - - - - P, bits 3-4: priority; 0 = highest priority, 3 = lowest. - - - D, bits 5-6: acceptable delivery delay ("delay class"); - - - delay class value - - ----------- ----- - - 0 1 second - 1 5 seconds - 2 20 seconds - 3 120 seconds - - H, bit 7: holding time; 0 = maximum (120 seconds*), - 1 = twice the specified delay class. - - - R, bit 8: reliability; 0 = high, 1 = standard - - -3.13.2.2 Acceptance Status Word - - - Figure 5 shows the details for this word. If the entire - -word equals 0, everything is being accepted. - - - Category bits, bits 1-4: each bit defines the current - - acceptance/refusal status for the category corresponding to - - the bit number (e.g., bit 3 represents category 3). - - 0 = accepting for this category - 1 = refusing - - - Delay Class Priority, bits 5-16 (not currently implemented): - - each delay class is identified by its position within the - - acceptance status word; e.g., bits 14-16 contain information - - for delay class 3. The content of each three-bit field is a - - binary number defining the current priorities being accepted - - for that delay class, interpreted as follows: - - - - 20 - - -Host/SATNET Protocol IEN 192 - - - - 0 = all priorities accepted - 1 = lowest priority (3) not accepted - 2 = lowest two priorities (2,3) not accepted - 3 = lowest three priorities (1,2,3) not accepted - 7 = none accepted - - -3.13.3 ACCEPTED Messages - - - Figure 6 shows the format of ACCEPTED messages. (An - -acceptance status word, as defined in Figure 5, is always the - -second word of this and all other messages.) - - - H/S, bit 1: same as for Data messages. - - - Data message ID, bits 2-8: The message ID of the DATA - - message being accepted. - - - Control Code, bits 13-16: ACCEPTED = 2. - - -3.13.4 REFUSED Messages - - - Figure 7 shows the format of REFUSED messages. - - - H/S, bit 1: same as for DATA messages. - - - Data message ID, bits 2-8: The message ID of the DATA - - message being refused. - - - C, bits 9-12: refusal category. A value of 0 to 4 - - means a refusal due to temporarily unavailable - - resources. Messages refused with category values 1 to - - 4 will not be accepted until the corresponding category - - - - - - 21 - - -Host/SATNET Protocol IEN 192 - - - - bit in the acceptance status word becomes 0. A - - category value of 0 means the refusal is because of the - - message priority and/or delay class; acceptance - - information for this case is given by the delay class - - priority bits in the acceptance status word. Values of - - C have the following meanings (acceptance status word - - information does not apply to values 8 to 15): - - 0 = refused for priority/delay class - 1 = category 1 refusal - 2 = category 2 refusal - 3 = category 3 refusal - 4 = category 4 refusal - 5 = undefined - 6 = undefined - 7 = undefined - *8 = data length greater than stream length - 9 = destination host has been declared in a - "refusing" state - 10 = destination host is not reachable - 11 = destination host's Satellite IMP is not reachable - 12 = unrecognized destination address - 13 = destination host access not allowed - 14 = illegal source host - *15 = no active stream with that stream ID - *(See Section 4 on stream access) - - - Control Code, bits 13-16: REFUSED = 3. - - -3.13.5 STATUS REQUEST Messages - - - Figure 8 shows the format of STATUS REQUEST messages. - - H/S bit 1: same as DATA messages. - - - Control code, bits 13-16: STATUS REPORT = 4. - - - - - - - - - 22 - - -Host/SATNET Protocol IEN 192 - - - -3.13.6 STATUS MESSAGES - - - Figure 9 shows the format of STATUS messages. - - - Word 1: H/S bit, bit 1 = same as DATA messages. - - - Control Code, bits 13-16: STATUS = 5. - - - Word 2: ACCEPTANCE STATUS - - - Word 3, SATNET global time: current internally - - synchronized clock time used by Satellite IMPs; unit of - - time = 10.24 milliseconds, maximum value equals 2{16} - - -1 units. - - - Words 4-7: current expected delay for the indicated - - delay class (values to be defined). - - -3.13.7 HELLO Message - - - Figure 10 shows the status of Hello messages. - - - H/S bit 1: same as DATA messages. - - - Control Code, bits 13-16: HELLO = 6. - - -3.13.8 FORMAT ERROR Message - - - Figure 11 shows the format of FORMAT ERROR messages. - - - - - - - - - - 23 - - -Host/SATNET Protocol IEN 192 - - - - H/S bit 1: same as DATA messages. - - - Error Message ID, bits 2-8: ID of DATA message with - - format error (if applicable, otherwise = 0). - - - Error Code, bits 9-12: - - 0 = undefined error - 1 = data message length exceeds SATNET maximum size - 2 = illegal control code - 3 = block length disagrees with message length. - 4 = illegal control code in piggyback - word of data message. - 5 = undefined category value (5-7) - in REFUSED message. - - - Control Code, bits 13-16: FORMAT ERROR = 13. - - -Note: Implementation of error codes 2 to 5 is optional; however, - -a FORMAT ERROR message should be returned with (at least) error - -codes 0 and 1 for illegal conditions. - - -3.13.9 RESTART REQUEST Message - - - Figure 12 shows the format of RESTART REQUEST message. - - - H/S bit 1: same as DATA messages. - - - Host Type, bits 9-12: presently undefined. - - - Control Code, bits 13-16: RESTART REQUEST = 14. - - - - - - - - - - - - 24 - - -Host/SATNET Protocol IEN 192 - - - -3.13.10 RESTART COMPLETE Message - - - Figure 13 shows the format of RESTART COMPLETE - - messages. - - - H/S bit 1: same as DATA messages. - - - Host Type, bits 9-12: presently undefined. - - - Control Code, bits 13-16: RESTART COMPLETE = 15. - - -Note: All Restart Request and Complete messages sent by the - -Satellite IMP have bits 9 to 12 set to zero. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 25 - - -Host/SATNET Protocol IEN 192 - - - -4. STREAM ACCESS PROTOCOLS - -4.1 Overview - - - In addition to datagram message service, SATNET provides a - -service called 'stream'. A stream is a sort of virtual circuit - -in which information must be established within Satellite IMP - -tables for the duration of the stream use. This information - -maintains an outstanding reservation for the stream, causing - -channel time to be scheduled at more or less regular intervals - -specified in the stream setup. This mechanism provides one of - -the important performance properties of a stream which motivates - -its use: one-hop for each stream data packet (as opposed to at - -least two hops for datagrams). - - - Any number of hosts can use the same stream; host membership - -is accomplished by special Host/SATNET messages. Each stream is - -identified by a SATNET-assigned Stream ID, which has two distinct - -functions. The first is to allow Satellite IMPs to identify the - -transmission properties being used for each stream data message - -including verification that the sending host is a stream member. - -The second Stream ID function is its optional use as a - -destination address in a stream or datagram data message, causing - -delivery to the Stream ID members. (Its use in datagram messages - -allows "out of band" signaling messages to be sent while the - -stream data messages are also being sent.) - - - - - - - - 26 - - -Host/SATNET Protocol IEN 192 - - - - The destination address in a stream data message is not - -limited to the Stream ID, however; any SATNET address may be - -used. Thus, a host can set up a simplex stream in which it is - -the only member, and therefore the only sender, and send messages - -to different hosts using the single stream. Or, a set of hosts - -can use a single stream in an arbitrarily shared manner - -(determined by the hosts) to send to arbitrary destinations. - - - More typically, a stream would be used by a set of hosts for - -voice conferencing, in which the Stream ID would be used as the - -destination address. Note that, in all cases of shared use, - -hosts must provide a protocol to determine how the stream is - -shared. If every member host presented a stream data packet to - -its Satellite IMP at the same time, they would all be sent - -simultaneously in the satellite channel with resultant - -destructive interference. (Note: the addressing use of a Stream - -ID is not presently implemented -- only permanent SATNET - -addresses, either point or group, are allowed.) - - -4.2 Stream Data Messages - - - Stream data messages have the format shown in Figure 14. - -The message type (bits 1 and 2 of word H4) may be either 1 - -(stream data, internet format) or 3 (stream data, local - -format).(1) Bits 3 to 16 of word H4 contain a Stream ID, - -_________________________________________________________________ -(1) Table 5 in Appendix A defines all SATNET message types. - - - - - - 27 - - -Host/SATNET Protocol IEN 192 - - - -assigned by SATNET as described in the next section. The - -destination address in word H5 can be any SATNET address. The - -source host address in word H6 must be assigned to the Satellite - -IMP port used to send the message into SATNET, and must be a - -member of the Stream ID. - - - An ACCEPTED or REFUSED message will be returned by the - -Satellite IMP for each stream data message, the same as for - -datagrams. Stream data messages will normally always be accepted - -unless they are greater than (to be determined) seconds early - -relative to the next stream slot time, or the stream is being - -preempted by higher priority traffic. - - - Internal SATNET channel acknowledgments are not used for - -stream data messages. - - -4.3 Stream Request Replies and Notifications - - - Streams can be used by a Host only by first establishing - -certain information within SATNET. The following requests are - -used: - - CREATE - DELETE - JOIN - LEAVE - CHANGE - - -Each request is sent by the host, along with supplemental - -information, in the data portion of a datagram message to the - - - - - - - 28 - - -Host/SATNET Protocol IEN 192 - - - -SATNET Service Host. A Request message is accepted or refused by - -the local Satellite IMP the same as any other datagram message; - -if accepted it is delivered to an internal host within the local - -Satellite IMP which acts on the request, returning a datagram - -message reply to the source host indicating its disposition. The - -reply always contains a Request ID supplied by the host in its - -Request message, allowing the host to relate the response to its - -earlier request (more than one Request message may be outstanding - -from a host; the maximum number outstanding will be limited - -implicitly by the datagram message refusal mechanism). - - - Figure 15 shows the format used for Request messages, which - -are always local datagram (type 2). The Request message priority - -PR in header word H4 may be assigned the same as for other - -datagram traffic. The source host address must be assigned to - -the Satellite IMP port used for the message. The first data word - -D1 contains one of the Request Codes defined in Table 1. The - -Request ID in word D2 is chosen by the host, and should not be - -re-used until a Reply message is received with the same ID to - -avoid ambiguity. - - - Figure 16 shows the format used for Reply messages, which - -are always local datagram (type 2). The values of PR and the - -Request ID are those used by the host in the Request messages; - -the source host address of the Request message is used as the - -destination host address. Word D1 contains a Reply Code in bits - - - - - - 29 - - -Host/SATNET Protocol IEN 192 - - - -2 to 16 indicating the action taken on the request; bit 1 is - -always zero. The contents of words D3-D6 depends on the Reply - -Code; whether used or not, all Reply messages will contain six - -data words. Table 2 lists the possible Reply Codes. - - - In addition to Reply messages, a Notification message may be - -sent to a host by SATNET concerning streams for which the host - -has previously established membership. The Notification message - -format is shown in Figure 17, and is also a local datagram type - -message. The notification message priority PS in word H4 is that - -assigned to the stream; the Stream ID involved in the - -notification is contained in data word D2. A Notification Code - -is contained in bits 2 to 16 of word D1; bit 1 of this word is - -always set to 1 to distinguish Notification messages from Reply - -messages. As in the case of Reply messages a Notification - -message always contains words D3 to D6, whose contents depend on - -the Notification Code. Table 4 lists the Notification Codes. - -(Notifications not implemented.) - - - Except when a request is refused as a result of information - -local to the source Satellite IMP, Notification messages have a - -delay of at least one satellite hop (about 0.25 seconds) relative - -to the request message, and are initiated at approximately the - -same global SATNET time by Satellite IMPs to their involved - -hosts. A Reply indicating successful completion of a stream - -request requires at least five seconds' delay after receipt of - -the request. - - - - 30 - - -Host/SATNET Protocol IEN 192 - - - -4.3.1 CREATE - - - The words used in the data portion of a CREATE request are - -shown in Figure 18. Word D3 contains a zero if a new stream is - -being requested (the use of non-zero values will be defined in a - -later version of the Host/SATNET access protocol). Words D4-D6 - -contain a Key which is used to authenticate subsequent requests - -from any host concerning the stream. Any 48-bit value may be - -used, including zero; however, all subsequent Request message - -Keys for this stream must equal this Key to be honored. - - - Words D7-D9 define the parameters to be used for the stream - -by SATNET. Ps is the priority to be used for the stream data - -messages. Bits 7 to 16 of word D7 indicate the maximum number L - -of 16-bit data words which will be sent in any data message using - -the stream. The queue length, bits 1-4 of D8, is the maximum - -number of messages that may be queued at once awaiting - -transmission using the stream. The stream interval is a 24-bit - -quantity indicating the time (in ten microsecond units) between - -stream messages. The high order eight bits are in D8, bits 9-16, - -and the low 16 bits are in D9. A suitable time for messages in - -this stream will be computed using the stream interval given. - - - If the CREATE is honored, Stream Started Reply message will - -be returned with the Stream ID assigned by SATNET in word D3 - -(words D4-D6 are not used). The first stream channel allocation - - - - - - - 31 - - -Host/SATNET Protocol IEN 192 - - - -is begun approximately one stream interval I following generation - -of the Reply message. If refused, a Stream Creation Refused will - -be returned with a reason code in Word D3. - - - Each CREATE message received with word D3 set to zero will - -cause the creation of a new stream (resources permitting), - -independently of the Key or other field values contained in the - -CREATE message. Note that different streams may use the same - -Key; the SATNET-assigned Stream ID supplied by hosts in - -subsequent Request messages provides unique referencing to the - -stream in question. - - -4.3.2 DELETE - - - Figure 19 shows the data words sent in a DELETE Request. - -Word D1 contains the DELETE STREAM Request Code; word D2 contains - -the host's Request ID (this ID need not relate to any previous - -Request message); word D3 contains the Stream ID; words D4-D6 - -contain the Key. - - - If the DELETE STREAM request is honored, the stream channel - -allocations will be terminated and a Stream Deleted Reply message - -will be returned with the Stream ID in word D3; words D4-D6 are - -not used. In addition, a Notification message ("Stream Deleted - -by Host X") will be sent to all other member hosts, with the - -address of the requesting host in D3 (not implemented yet); words - -D4-D6 are not used. All Satellite IMP table entries concerning - - - - - - 32 - - -Host/SATNET Protocol IEN 192 - - - -the stream will be cleared and the Stream ID released for re-use. - - - If the DELETE STREAM request is not honored, a Stream - -Deletion Refused Reply will be returned. Word D3 will indicate - -why the request was refused. Table 3 indicates the refusal - -reasons that can appear in D3. - - -4.3.3 JOIN - - - A JOIN Request (not implemented yet) is used by a host to - -establish membership in a stream previously created by another - -host. (It is the responsibility of the creating host to - -distribute the assigned Stream ID and Key to those hosts it - -wishes to have participate in the use of the stream.) The format - -shown in Figure 19 is used for a JOIN, with the JOIN STREAM - -Request Code in word D1. - - - If the stream exists and the correct Key is supplied, a - -Stream Joined Reply message is returned approximately one stream - -interval prior to the next scheduled channel allocation for the - -stream. Word D3 of the reply message contains the Stream ID; - -words D4-D6 contain the parameters currently used for the stream, - -formatted according to words D7 to D9 of Figure 5. Also, a - -Notification Code 3 Message ("Stream Joined by Host X") is sent - -to all other member hosts--word D3 contains the address of the - -newly joined host; words D4-D6 are not used. - - - - - - - - 33 - - -Host/SATNET Protocol IEN 192 - - - - If the JOIN is not honored, a Join Refused Reply message - -will be returned with a Table error code as appropriate. - - -4.3.4 LEAVE - - - A host may leave a stream of which it is a member by use of - -a LEAVE Request (not implemented yet). The format of Figure 19 - -is again used, with the Request Code = 4. If the stream exists - -and the host is entered as a member in Satellite IMP tables, a - -Stream Left Reply message will be returned. Note that the Key is - -not used for this request. Also, a Notification Code 4 message - -("Stream Left by Host X") is sent to all member hosts; word D3 - -contains the address of the departed host; words D4-D6 are not - -used. - - - A Leave request will always succeed. However, in some cases - -it may be impossible to notify other stream members of the event. - -If so, a Leave Without Notification Reply message will be - -returned. Word D3 will indicate why notification could not be - -made. - - -4.3.5 CHANGE - - - A host can request changes to the parameters defining a - -stream by use of a CHANGE request (not implemented yet). This - -message is identical to the CREATE message format of Figure 18, - -except that the Request code is set to 5 in word D1 and word D3 - - - - - - - 34 - - -Host/SATNET Protocol IEN 192 - - - -contains the Stream ID. All parameters of words D7-D9 must be - -defined, whether or not their values are being changed -- if - -allowed, the parameters will be used to re-define the stream - -characteristics just as if they were being supplied in a CREATE - -request. - - - If the changes can be honored, a Stream Changed Reply - -message will be returned with the Stream ID in word D3; words - -D4-D6 are not used. Also, a Notification code 5 message ("Stream - -Changed by Host X") is sent to the other member hosts; word D3 - -contains the address of the requesting host; words D4-D6 contain - -the new parameters. - - - If the changes cannot be made, a Stream Changes Refused - -Reply message is returned to the requesting host, with a reason - -code in word D3 (see Table 3). - - -4.4 SATNET Termination and Suspension of Streams - - - A stream termination will be initiated by SATNET if (1) a - -data message is not sent in the stream by any of the member hosts - -for sixty seconds, or (2) if the stream's channel allocation - -cannot be honored for N (to be determined) consecutive stream - -intervals I due to higher priority traffic (not implemented yet). - -If either of these occurs, a Notification code 1 message ("Stream - -Deleted by SATNET") will be sent to all member hosts with an - -appropriate reason code in word D3; words D4-D6 are not used. - - - - - - 35 - - -Host/SATNET Protocol IEN 192 - - - -All Satellite IMP table entries concerning the stream will be - -deleted and the Stream ID released for re-use. - - - Whenever a stream's channel allocation has not been honored - -by SATNET for M (to be determined) consecutive stream intervals I - -following the last allocation, a Notification Code 6 message - -("Stream Suspended") is sent to all member hosts (M will be much - -smaller than N). If the allocations are resumed before N - -consecutive non-allocations, a Notification Code 7 message - -("Stream Resumed") is sent to all member hosts. (These are not - -implemented yet.) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 36 - - -Host/SATNET Protocol IEN 192 - - - -5. Land Modem Interface - - - A Satellite IMP communicates with other IMPs and with Very - -Distant Hosts via communication circuits, such as those provided - -by the various common carriers (Bell, Western Electric, etc.) - -The exact nature of the synchronous modems and dedicated full - -duplex lines varies from site to site. The hardware interface to - -the modem is the standard BBN IMP-modem interface which is - -logically identical to the Bell 303 interface with the exception - -that the mark and space convention is inverted for characters - -sent to the modem (i.e., binary "one" equals high current). The - -control lines, however, are not inverted. - - -6. Local Host Interface - - - Local Host computers interface to the Satellite IMP via a - -hardware interface which is electrically equivalent to that used - -in the ARPANET between hosts and IMPs. The electrical - -specification for this interface appears in BBN Report No. 1822 - -entitled "Specifications for the Interconnection of a host and an - -IMP". - - - - - - - - - - - - - - - - - 37 - - -Host/SATNET Protocol IEN 192 - - - -APPENDIX A. - - -A.1 Table 1 -- Request Codes - - 1 -- Create Stream - 2 -- Delete Stream - 3 -- Join Stream - 4 -- Leave Stream - 5 -- Change Stream Parameters - - - - -A.2 Table 2 -- Reply Codes - - 1 -- Stream Started - 2 -- Stream Deleted - 3 -- Stream Joined - 4 -- Stream Left - 5 -- Stream Changed - 6 -- Stream Creation Refused - 7 -- Stream Deletion Refused - 8 -- Join Refused - 9 -- Leave without Notification - 10 -- Stream Changes Refused - 11 -- Illegal Request Code - - - - - - - - - - - - - - - - - - - - - - - - - - - - 38 - - -Host/SATNET Protocol IEN 192 - - - -A.3 Table 3 -- Error Codes in D3 - - 0 -- System busy; unable to handle request - 1 -- Unimplemented function - 2 -- Invalid protection Key - 3 -- Not member of stream - 4 -- Stream does not exist - 5 -- Net trouble - 6 -- Insufficient resources to handle request - 7 -- Improper format for request - 8 -- Channel protocol does not support streams - 9 -- Illegal argument in stream request - 10 -- Channel access not allowed - - - - -A.4 Table 4 -- Notification Codes - - 1 -- Stream Deleted by SATNET - 2 -- Stream Deleted by Host X - 3 -- Stream Joined by Host X - 4 -- Stream Left by Host X - 5 -- Stream Changed by Host X - 6 -- Stream Suspended - 7 -- Stream Resumed - - - - -A.5 Table 5 -- SATNET Data Message Types - - 0 -- Datagram, internet format - 1 -- Stream data, internet format - 2 -- Datagram, local format - 3 -- Stream data, local format - - - - - - - - - - - - - - - - - - - 39 - - -Host/SATNET Protocol IEN 192 - - - -A.6 Table 6 -- SATNET Logical Address Map - - 0 -- 0 SATNET Service Host - 1 -- Etam EXPAK fake host - 2 -- Goonhilly EXPAK fake host - 3 -- Tanum EXPAK fake host - 4 -- Clarksburg EXPAK fake host - 5 -- Etam Message Generator/Sink #0 - 6 -- Etam Message Generator/Sink #1 - 7 -- Etam Message Generator/Sink #2 - 8 -- Etam Message Generator/Sink #3 - 9 -- Goonhilly Message Generator/Sink #0 - 10 -- Goonhilly Message Generator/Sink #1 - 11 -- Goonhilly Message Generator/Sink #2 - 12 -- Goonhilly Message Generator/Sink #3 - 13 -- Tanum Message Generator/Sink #0 - 14 -- Tanum Message Generator/Sink #1 - 15 -- Tanum Message Generator/Sink #2 - 16 -- Tanum Message Generator/Sink #3 - 17 -- Clarksburg Message Generator/Sink #0 - 18 -- Clarksburg Message Generator/Sink #1 - 19 -- Clarksburg Message Generator/Sink #2 - 20 -- Clarksburg Message Generator/Sink #3 - 21 -- Etam Internal Gateway - 22 -- Goonhilly Internal Gateway - 23 -- Tanum Internal Gateway - 24 -- unused - 25 -- unused - 26 -- unused - 27 -- unused - 28 -- unused - 29 -- unused - 30 -- Clarksburg Internal Gateway - 31 -- unused - 32 -- unused - 33 -- unused - 34 -- unused - 35 -- unused - 36 -- unused - 37 -- Universal Message Sink (equivalent name) - 38 -- Tanum NDRE Gateway - 39 -- Clarksburg COMSAT Gateway - 40 -- Universal Satellite Echo (equivalent name) - 41 -- Etam Monitor Fake Host - 42 -- Goonhilly Monitor Fake Host - 43 -- Tanum Monitor Fake Host - 44 -- Clarksburg Monitor Fake Host - 45 -- Etam Packet Core Fake Host - 46 -- Goonhilly Packet Core Fake Host - - - - - - 40 - - -Host/SATNET Protocol IEN 192 - - - - 47 -- Tanum Packet Core Fake Host - 48 -- Clarksburg Packet Core Fake Host - 49 -- Etam TTY Fake Host - 50 -- Goonhilly TTY Fake Host - 51 -- Tanum TTY Fake Host - 52 -- Clarksburg TTY Fake Host - 53 -- Etam DDT Fake Host - 54 -- Goonhilly DDT Fake Host - 55 -- Tanum DDT Fake Host - 56 -- Clarksburg DDT Fake Host - 57 -- unused - 58 -- unused - 59 -- unused - 60 -- Goonhilly UCL Gateway - 61 -- Etam BBN Gateway - 62 -- Etam Echo Fake Host - 63 -- Goonhilly Echo Fake Host - 64 -- Tanum Echo Fake Host - 65 -- Clarksburg Echo Fake Host - 66 -- unused - 67 -- unused - 68 -- unused - 69 -- unused - 70 -- unused - 71 -- unused - - 72 -- Raisting External Gateway - 73 -- unused - 74 -- unused - 75 -- unused - 76 -- Raisting Internal Gateway - 77 -- Raisting Echo Fake Host - 78 -- Raisting Monitor Fake Host - 79 -- Raisting EXPAK Fake Host - 80 -- Raisting Packet Core Fake Host - 81 -- Raisting DDT Fake Host - 82 -- Raisting TTY Fake Host - 83 -- Raisting Message Generator/Sink #0 - 84 -- Raisting Message Generator/Sink #1 - 85 -- Raisting Message Generator/Sink #2 - 86 -- Raisting Message Generator/Sink #3 - 87 -- unused - - 88 -- Fucino External Gateway - 89 -- unused - 90 -- unused - 91 -- unused - 92 -- Fucino Internal Gateway - 93 -- Fucino Echo Fake Host - - - - - - 41 - - -Host/SATNET Protocol IEN 192 - - - - 94 -- Fucino Monitor Fake Host - 95 -- Fucino EXPAK Fake Host - 96 -- Fucino Packet Core Fake Host - 97 -- Fucino DDT Fake Host - 98 -- Fucino TTY Fake Host - 99 -- Fucino Message Generator/Sink #0 - 100 -- Fucino Message Generator/Sink #1 - 101 -- Fucino Message Generator/Sink #2 - 102 -- Fucino Message Generator/Sink #3 - 103 -- unused - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 42 - - -Host/SATNET Protocol IEN 192 - - +-------+ - | | - | OFF | - | | - TO = TIMEOUT +-------+ - RR = RESTART REQUEST | - RC = RESTART COMPLETE |INIT & SEND RR - | - V - +-------+ - --->| |--------------- - / | | \ - | | | \ - | | INIT | | - | | |<--- | - \ | | \ | - ----| | | | - 10 SEC TO +-------+ | | - ------- | | | - SEND RR |RCVD RR | | - | ----- | | - |SEND RC | | - V | | - +-------+ | | - -------------->| | | | - / | | / | - / --->| |---- | - | / |WAITING| 100 SEC TO | - | | | | -------- | - | \ | | SEND RR | - | ----| | | - | 10 SEC TO +-------+ | - | ------- | | - | SEND RC | | - | |RCVD RC | - | | | - \ V / - \ +-------+ / - ---------------| |<-------------- - RCVD RR | ON | RCVD RC - ------------ | | ----- - INIT & SEND RC +-------+ SEND RC - - - -B.1 Figure 1. Restart State Diagram - - - - - - - - - - - 43 - - -Host/SATNET Protocol IEN 192 - - - - MSB LSB - - 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H1 |H/S| | CONTROL CODE | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H2 | ACCEPTANCE STATUS WORD | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ - | | - | | - | | - | | - | | - | | - | | - | | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ - - -B.2 Figure 2. General Message Format - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 44 - - -Host/SATNET Protocol IEN 192 - - - - MSB LSB - - 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H1 |H/S| MESSAGE ID | BLOCK LENGTH | CODE = 1 or 7 | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H2 | ACCEPTANCE STATUS WORD | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H3 | PIGGYBACK WORD | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H4 | TYPE OF SERVICE | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H5 | DESTINATION HOST(S) ADDRESS | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H6 | SOURCE HOST ADDRESS | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -D1 | | - | | - | DATA | - | | -DN | | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ - - -B.3 Figure 3. Block DATA Message - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 45 - - -Host/SATNET Protocol IEN 192 - - - - MSB LSB - - 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H4 | M | P | D | H | R | (unused) | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ - -B.4 Figure 4. Type of Service Word - - - - - - 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H2 | C | D0 | D1 | D2 | D3 | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ - -B.5 Figure 5. Acceptance Status Word - - - - - - 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H1 |H/S| DATA MESSAGE ID | (unused) | CODE = 2 | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H2 | ACCEPTANCE STATUS WORD | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ - -B.6 Figure 6. ACCEPTED Message - - - - - - 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H1 |H/S| DATA MESSAGE ID | C | CODE = 3 | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H2 | ACCEPTANCE STATUS WORD | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ - -B.7 Figure 7. REFUSED Message - - - - - - - - - - 46 - - -Host/SATNET Protocol IEN 192 - - - - MSB LSB - - 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H1 |H/S| (unused) | CODE = 4 | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H2 | ACCEPTANCE STATUS WORD | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ - - -B.8 Figure 8. STATUS REQUEST Message - - - - - MSB LSB - - 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H1 |H/S| (unused) | CODE = 5 | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H2 | ACCEPTANCE STATUS WORD | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H3 | SATNET GLOBAL TIME | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H4 | CURRENT DELAY FOR CLASS 0 | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H5 | CURRENT DELAY FOR CLASS 1 | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H6 | CURRENT DELAY FOR CLASS 2 | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H7 | CURRENT DELAY FOR CLASS 3 | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ - - -B.9 Figure 9. STATUS Message - - - - - - - - - - - - - - - - - - - 47 - - -Host/SATNET Protocol IEN 192 - MSB LSB - - 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H1 |H/S| (unused) | CODE = 6 | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H2 | ACCEPTANCE STATUS WORD | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ - -B.10 Figure 10. HELLO Message - - - - - - 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H1 |H/S| ERROR MESSAGE ID | ERROR CODE | CODE = 13 | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H2 | ACCEPTANCE STATUS WORD | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ - -B.11 Figure 11. FORMAT ERROR Message - - - - - - 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H1 |H/S| (unused) | HOST TYPE | CODE = 14 | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H2 | ACCEPTANCE STATUS WORD | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ - -B.12 Figure 12. RESTART REQUEST Message - - - - - - 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H1 |H/S| (unused) | HOST TYPE | CODE = 15 | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H2 | ACCEPTANCE STATUS WORD | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ - -B.13 Figure 13. RESTART COMPLETE Message - - - - - - - - - 48 - - -Host/SATNET Protocol IEN 192 - - - - MSB LSB - - 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H1 |H/S| MESSAGE ID | BLOCK LENGTH | CODE = 1 or 7 | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H2 | ACCEPTANCE STATUS WORD | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H3 | PIGGYBACK WORD | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H4 | 1 or 3| STREAM ID | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H5 | DESTINATION HOST(S) ADDRESS | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H6 | SOURCE HOST ADDRESS | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ - | | - | | - | (INTERNET HEADER IF TYPE=1) | - | | - | | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -D1 | | - | | - | STREAM DATA | - | | -DN | | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ - - -B.14 Figure 14. Stream Data Format - - - - - - - - - - - - - - - - - - - - - - - - 49 - - -Host/SATNET Protocol IEN 192 - - - - MSB LSB - - 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H1 |H/S| MESSAGE ID | BLOCK LENGTH | CODE = 1 or 7 | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H2 | ACCEPTANCE STATUS WORD | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H3 | PIGGYBACK WORD | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H4 |0 or 2 | PR | 0 | 0 | 0 | (unused) | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H5 | SATNET SERVICE HOST (CURRENT ADDRESS = 0) | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H6 | SOURCE HOST ADDRESS | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ - | | - | | - | (INTERNET HEADER IF TYPE=0) | - | | - | | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -D1 | REQUEST CODE | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -D2 | REQUEST ID | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -D3 | | - | | - | REQUEST INFORMATION | - | | -DN | | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ - - -B.15 Figure 15. Request Message Format - - - - - - - - - - - - - - - - - - - - 50 - - -Host/SATNET Protocol IEN 192 - - - - MSB LSB - - 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H1 |H/S| MESSAGE ID | BLOCK LENGTH | CODE = 1 or 7 | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H2 | ACCEPTANCE STATUS WORD | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H3 | PIGGYBACK WORD | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H4 |0 or 2 | PR | 0 | 0 | 0 | (unused) | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H5 | REQUESTING HOST | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H6 | SATNET SERVICE HOST (CURRENT ADDRESS = 0) | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ - | | - | | - | (INTERNET HEADER IF TYPE=0) | - | | - | | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -D1 | 0 | REPLY CODE | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -D2 | REQUEST ID | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -D3 | | - | | - | REPLY INFORMATION | - | | -D6 | | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ - - -B.16 Figure 16. Reply Message Format - - - - - - - - - - - - - - - - - - - - 51 - - -Host/SATNET Protocol IEN 192 - - - - MSB LSB - - 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H1 |H/S| MESSAGE ID | BLOCK LENGTH | CODE = 1 or 7 | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H2 | ACCEPTANCE STATUS WORD | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H3 | PIGGYBACK WORD | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H4 |0 or 2 | PS | 0 | 0 | 0 | (unused) | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H5 | MEMBER HOST | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -H6 | SATNET SERVICE HOST (CURRENT ADDRESS = 0) | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ - | | - | | - | (INTERNET HEADER IF TYPE=0) | - | | - | | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -D1 | 1 | NOTIFICATION CODE | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -D2 | STREAM ID | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -D3 | | - | | - | NOTIFICATION INFORMATION | - | | -D6 | | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ - - -B.17 Figure 17. Notification Message Format - - - - - - - - - - - - - - - - - - - - 52 - - -Host/SATNET Protocol IEN 192 - - - - MSB LSB - - 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -D1 | REQUEST CODE = 1 | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -D2 | REQUEST ID | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -D3 | STREAM ID = 0 | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -D4 | | - | | -D5 | KEY | - | | -D6 | | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -D7 | (unused) | PS | MAXIMUM DATA LENGTH (L) | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -D8 | QUEUE LENGTH | (unused) | STREAM INTERVAL (HIGH BITS) | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -D9 | STREAM INTERVAL (LOW BITS) | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ - - -B.18 Figure 18. Create Request Words - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 53 - - -Host/SATNET Protocol IEN 192 - - - - MSB LSB - - 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ - | = 2: DELETE | -D1 | REQUEST CODE = 3: JOIN | - | = 4: LEAVE | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -D2 | REQUEST ID | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -D3 | STREAM ID | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ -D4 | | - | | -D5 | KEY | - | | -D6 | | - +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ - - -B.19 Figure 19. Delete, Join, Leave Request Words - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 54 - diff --git a/text/ien/ien194.txt b/text/ien/ien194.txt deleted file mode 100644 index 9542470a..00000000 --- a/text/ien/ien194.txt +++ /dev/null @@ -1,608 +0,0 @@ -IEN 194 - - - - DCNET Mail Plan - - D.L. Mills and M.J. O'Connor - COMSAT Laboratories - 23-Jul-81 - - -1. Introduction - - The Distributed Computer Network (DCNET) is an -experimental research network in use at COMSAT and -elsewhere. It includes a number of PDP11-compatible hosts -connected to each other and to ARPANET, SATNET and other -networks accessable to the DARPA Internet Project. The -network and its hosts are used for research in computer -network protocols and for general-purpose software -development. One of the principal functions of the network -is to support electronic mail, including the capability to -construct and edit messages on-line, forward them to one or -more hosts on DCNET, ARPANET or elsewhere and to retrieve -and archive incoming messages from these hosts. These -capabilities have, of course, been available and extensively -used for some time on ARPANET hosts and on commercial -services such as HERMES, ONTYME and TELEMAIL. - - All DCNET hosts presently support both the Internet -Protocol (IP) and Transmission Control Protocol (TCP), which -have been implemented on many computers and operating -systems and have been adopted as DoD standards [5]. -High-level protocol modules allow DCNET hosts to connect to -ARPANET hosts as virtual terminals and to perform mail -functions using the ARPANET hosts in the ordinary way. In -addition, files can be exchanged between DCNET and ARPANET -hosts so that, in principal, messages arriving at ARPANET -hosts can be relayed to DCNET hosts for furthur processing -and archiving. - - One of the tasks addressed in our present Internet -Project activities is to investigate mechanisms with which -mail functions can be performed directly in small hosts, -rather than requiring support from larger ARPANET service -hosts. Besides reducing the network resources required and -providing potentially better performance, such mechanisms -would greatly simplify integration of speech and facsimile -media into the message system. We have been working to -define and develop such mechanisms for some time now and -have completed a version suitable for general use. We -believe that this establishes the feasibility of performing -nearly all mail functions in small hosts of the LSI-11 -variety and yet maintain complete compatibility with -existing hosts and their protocols. The remainder of this -memorandum describes the architecture of this system and -demonstrates its use. - -DCNET Mail Plan PAGE 2 - - - -2. DCNET Functions and Features - - The DCNET was conceived as a prototype and testbed for -distributed network architectures. All DCNET hosts use -variants of a common operating system called the Basic -Operating System (BOS), which includes the usual supervisor -services together with the capability to emulate the DEC -RT-11 operating system environment and run ordinary RT-11 -system and application programs. Support for IP and TCP is -embedded in the BOS together with an interface to -application programs, including a set of high-level protocol -modules supporting virtual-terminal (TELNET), file-transfer -(FTP, NIFTP) and various utilities (XNET, PING, NAME and -WATCH). - - The most common application of a DCNET host is in -single-user mode. Although the software can support -simultaneous access by a number of users, the typical -hardware configuration includes only a modest amount of -on-line storage and can support only a limited set of -applications in multi-user mode. In the case of those hosts -equipped with dual floppy-disk drives, for example, the -usual mode of operation is for each user to mount a personal -disk containing private files on one of the drives and a -system disk containing public files on the other. - - All DCNET hosts participate in network functions such -as routing, multiplexing, network monitoring, timekeeping -and various utility "fake host" functions useful for testing -with other internet hosts. Some hosts are given more -specific responsibiliites. For instance, two LSI-11 -machines are presently used as multiplexors for a number of -other machines and as gateways to ARPANET and SATNET. -Another instance of specialization involves a host equipped -with digital-facsimile and digital-speech peripherals which -are used in experiments in multi-media message systems. - -3. The DCNET Mail System - - The most essential component in any electronic mail -system is on-line storage. It has been common experience -that rather a lot of it is required for even a modest number -of users involved in an active research community such as -the Internet Project. To be useful, a modest amount of this -storage should be reachable from other internet hosts at all -times, since those hosts holding unsent mail typically -attempt to forward it immediately upon receipt. We are -currently using disks with a capacity of between 10 and 20 -megabytes for this purpose and believe this sufficient for -the volume of mail expected, as well as for a general DCNET -data and archive base. One of the disks is attached to a -DCNET host expected to be available for mail access -substantially all the time; however, this host may - -DCNET Mail Plan PAGE 3 - - - -occasionally be unavailable for short periods due to program -development. For subsequent reference this host will be -called the mail host. - - The mail host serves as a DCNET post office and -forwarding depot, but is not ordinarily used for -general-purpose application programs. The remaining hosts -are used for these programs by various individuals on an -intermittent basis. In the typical scenario, a user mounts -his personal disk on one of the local hosts, contacts the -mail host and interrogates its data base for his new mail. -Upon inspection of the mail, the user disposes of it in one -of several ways, including: (1) deletes it, in which case it -is gone forever; (2) forwards it to the local host for later -processing; (3) copies it to a file or printer at the mail -host, local host or some other host. Implicit in this -scenario is the expectation that the volume of mail will -require that each user individually archive his mail on his -cache of personal disks as required. Also implicit is the -requirement that some forms of mail, in particular -multi-media speech and facsimile, will require access to a -host with the required peripheral equipment. We expect -eventually to provide automatic forwarding features that do -not require direct interrogation of the mail host. - - In order to send mail, the user constructs and edits -each message at the local host, perhaps incorporating -messages and files from other hosts including the mail host. -Once the message has been prepared and prefixed with a list -of recipients in a standard header, the user initiates -transmission in one of two ways: (1) opens connections with -each recipient internet host and transmits the message -directly or (2) forwards the message to the mail host for -later onward relay. The user would naturally elect the -former if speed was important and the latter if the -recipient host was not responding at that time. - -4. Mail Protocols - - The mechanisms designed and implemented in DCNET hosts -to support the above scenarios must be compatible with those -used elsewhere in the internet community. The existing -ARPANET mail system evolved as a feature of the File -Transfer Protocol (FTP) used to transport files between -ARPANET hosts. The original FTP was described in a working -document called RFC-542 and the format of the mail message -itself in RFC-733 [1]. The FTP described in RFC-542 is, -however, not compatible with the present internet protocols -and therefore is unsuitable for use outside the ARPANET. A -version of FTP compatible with TCP has been proposed in -RFC-765 [2]; however, there are few servers operational at -present which conform to this protocol. - -DCNET Mail Plan PAGE 4 - - - - In order to provide mail support for systems using TCP -and for interworking with the existing ARPANET systems, a -new protocol called the Mail Transfer Protocol (MTP) [3] was -developed and described in RFC-780. The MTP is designed to -operate with current internet protocols and, in addition, to -provide for onward relay of mail into networks that do not -conform to these protocols, such as MMDF and NITS [7]. -Preliminary versions of MTP have been implemented at ISI for -TOPS-20 hosts, at MIT for Multics hosts, at DCEC for Unix -hosts and at COMSAT for DCNET hosts. - - The MTP is regarded as an intermediate step between the -ARPANET-specific FTP-based mail and a proposed new system -called the Internet Message Protocol (IMP) [4], which -provides much greater operational flexibility together with -the capability to process multi-media data types. The MTP -can provide that now only through ad-hoc protocol -extensions. However, it is likely that the MTP will be used -for some time until the necessary software can be -constructed for the ARPANET hosts. The IMP, which is -described in RFC-759, is now being implemented by ISI for -TOPS-20 hosts and is being planned for DCNET hosts. - - In order to evaluate these protocols and assess their -feasibility for use in the DCNET environment, we have -constructed protocol modules to support MTP and have tested -them with other hosts on the ARPANET, including those at -ISI, DCEC and MIT. Although yet to be thoroughly debugged, -our intitial experience indicates this to be a practical way -to join the ARPANET mail community. We intend this -implementation to be an intermediate step; however, and -expect to proceed to the IMP and multi-media data types in -the future. - 5. Data Structures - - In the RFC-733 model messages are sent by a user to a -specified recipent in the format @, where -is the name of a host and is the name of an user -known to that host. The implied address, usually called a -mailbox, is typically associated with a mail file belonging -to the recipient and is easily generalized to include -organizations as well as users and networks as well as -hosts. As messages arrive at a host the mail server -dispatches them to the various mailboxes by appending them, -together with an appropriate header, following the messages -already in the mailbox. - - Since most of our interactions with internet hosts have -been with TOPS-20 machines, we have tried to maintain a -degree of compatability with the mail file formats used by -that system. The file is line-structured, with each line -terminated by the ASCII sequence , and contains only -ASCII printing characters and format effectors. Messages - -DCNET Mail Plan PAGE 5 - - - -consist of a file header, which contains a character count, -followed by the message text. Messages are stored one after -the other with the last followed by an ASCII character -for compatibility with other RT-11 components. Figure 1 -shows the format of a typical message. - -29-May-81 01:01:14,342;000000000000 -MRCP to: -MRCP to:<@Multics,Mills@ISIE> -MRCP to: -MAIL from: -Date: 29-May-81 01:00:42-UT -From: Mills@COMSAT-DLM -Subject: Mail example -To: OConnor@ISIE -cc: <@Multics,Mills@ISIE>,Mills@COMSAT - -Folks, - -This message demonstrates RFC-733 and RFC-780 formats. - -Regards, -Dave -------- - - The first line is the file header, including the date, -time and count of characters in the message text, and -followed by an array of twelve flag characters used by the -MSG program described below. The message text begins -immediately following the which terminates this -line and includes first the transport (RFC-780) header -followed by the message (RFC-733) header and, finally, the -body of the message itself. In the above example the lines -beginning with MRCP and MAIL belong to the transport header -and the lines following that up until the blank line belong -to the message header. - - Mail files can be created in three ways: (1) by copying -a mail file from a TOPS-20 or DCNET host as-is to a DCNET -host, (2) by creating and appending a new message locally -and (3) by receiving and appending a message from another -host. Case (1) has been found useful during testing and in -cases involving large amounts of mail which can be -bulk-transferred using more efficient file-transfer -protocols like FTP and NIFTP. However, TOPS-20 files do not -include the transport header, so that messages sent from -these files require manual intervention. Case (2) is -implemented by an interactive program called SNDMSG, which -operates much like the TOPS-20 program of the same name to -construct and edit messages and append them, along with -their transport and message headers, onto a specified mail -file. Case (3) is implemented by the MTPSRV server program, -which listens for messages from the network and appends them - -DCNET Mail Plan PAGE 6 - - - -onto a well-known mail file. All three cases produce -identical file formats, so that a common message display -program can be used. This interactive program, called MSG, -is the focus of most mail operations and is used in the same -fashion as its TOPS-20 counterpart of the same name. - -6. Mail Operations - - Display and editing of mail file contents is performed -by the MSG program. This program includes the capability to -select messages and groups of messages and to display them -on the operator's terminal and/or append them to other mail -files. Since DCNET files and devices can be accessed in the -same way, this amounts to the capability to print them and -even to display them on the Dacom facsimile machine or speak -them on the LPCM speech decoder (assuming the correct source -encoding, of course). When a message is copied to a file -its headers are copied as well, so that copying a message to -a mail file results in a mail file in correct format. - - A message is constructed using the SNDMSG program, -which builds the transport and message headers shown in -Figure 1 according to an interactive dialog and then edits -the text as specified by the user. Note that, as -illustrated in Figure 1, separate MRCP lines are created for -each recipient and a MAIL line is created for the sender. -These lines are edited by the MTP user program to indicate -the delivery status for each recipient. Features in the -present SNDMSG implementation provide for the inclusion of -data files, such as might be produced by a standard text -editor, and address lists. - - Mail is sent to recipients at the various internet -hosts by the MTP user program. This program first searches -a specified mail file and constructs a data structure -including a set of pointers to the MRCP transport-header -lines, along with the internet address associated with each -recipient host. It then sorts this structure by host and -constructs a source-route string, if necessary, as specified -by the operator. Finally, it connects to each host in turn -and sends its messages in either text-first or -recipients-first format, as required by the host. As -delivery to each recipient is confirmed, the MTP user -program overwrites the corresponding MRCP string with the -string SENT. Other strings are possible in case of errors. - - It may happen that some messages sent to a host may -specify recipients not at that host, in which case these -messages must be forwarded to the final destination as -required by RFC-780. This would be the case when an -operator at a local host wishes to stage a batch of messages -at the mail host for later relay to other hosts not on-line -at the moment. In addition, forwarding is also required - -DCNET Mail Plan PAGE 7 - - - -when the final destination host supports some transport -protocol other than TCP, so that an intermediary supporting -both protocols is required. The present system supports two -operational modes, one in which mail is sent automatically -either directly to the destination or via an intermediate -relay, as directed by internal tables, and the other in -which it is sent manually according to a source route -specified by the operator. - - Mail is ordinarily received automatically at a DCNET -host by the MTPSRV server program. This program appends -each message as it is received to a public, -controlled-access mail file called UNSENT.MSG. For those -messages addressed to a recipient at the receiving host, the -corresponding MRCP string is overwritten with the string -DLVD; the remainder are left for later relay by the MTP user -program. - -8. On Hosts, Users and Mailboxes - - Upon reflection on the above it may be noted that no -mention is made of the concept of a DCNET mailbox. This is -intentional and reflects the fact that each user is -identified in fact only by his personal data disk and an -informal convention of assigned user names. Matters become -considerably more complicated when DCNET virtual hosts are -involved, for this mechanism (described in detail elsewhere) -provides the capability to associate one or more internet -addresses with a single physical host and to move this -association from time to time. Thus, the mail host may pop -up in various physical hosts depending upon any of several -considerations; however, the internet addressing will be -transparent to this and the routing will be performed -automatically. - - For these reasons we have chosen to identify a -particular internet address with the mail host, to be called -simply COMSAT and the remaining hosts as COMSAT-xxx where -xxx corresponds to the number (or name) of each of the other -virtual hosts. Ordinarily, mail for all DCNET users is sent -to mailboxes such as @COMSAT. It would then remain at -the mail host for later inspection by . If, on the -other hand, it is known that is active on some DCNET -host at the time the mail is to be sent, then it could be -sent directly to that host. - - In order to preserve privacy when accessing messages at -the mail host via virtual-terminal connection from a local -host, a feature has been incorporated into the MSG program -normally used for this purpose. Ordinarily, all messages -received at the mail host are saved in a public file called -UNSENT.MSG, while the messages belonging to each user are -saved in private files. MSG normally operates with a - -DCNET Mail Plan PAGE 8 - - - -private file as specified by the user, with access granted -to UNSENT.MSG only by means of a keyword, normally the -recipient's name. A special MSG command provides for -searching UNSENT.MSG for messages which have been -"delivered" (marked DLVD) to the recipient name matching the -keyword. These messages can then be appended to the user's -private file and forwarded to his local host for further -processing or archiving, if required. - -9. Internet Name Domains - - In the long run, it will not be practicable for every -internet host to include all internet hosts in its -name-address tables. Even now, with over four hundred names -and nicknames in the combined ARPANET-DCNET tables, this has -become awkward. Some sort of hierarchical name-space -partitioning can easily be devised to deal with this -problem; however, it has been wickedly difficult to find one -compatible with the known mail systems throughout the -community. The one described here, which has been partially -implemented in the DCNET mail system, is the product of -several discussions and meetings and is believed both -compatible with existing systems and extensible for future -systems involving thousands of hosts. - - We first observe that every internet host is uniquely -identified by one (or more) 32-bit internet addresses and -that the entire system is fully connected. For the moment, -the issue of protocol compatibility will be ignored, so that -all hosts can be assumed MTP-competent. We next impose a -topological covering on the space of all internet addresses -with a set of so-called name domains. In the natural model, -name domains would correspond to institutions such as ARPA, -USC and COMSAT, and would not be necessarily disjoint or -complete. While in principle name domains could be -hierarchically structured, we will assume in the following -only a single-level structure. - - Every name domain is associated with one (or more) -internet hosts called mail forwarders and the name of that -domain is a name or nickname for any of these hosts. Each -mail forwarder is expected to maintain name-address tables -containing all other hosts in its domain and, in addition, -at least one mail forwarder for every other domain. All -hosts other than mail forwarders are expected to maintain -name-address tables containing at least one mail forwarder -for every domain together with additional hosts as -convenient. Following current practice, several nicknames -may be associated with the principal name of a host in any -domain and the names and nicknames need not be unique in any -other domain. Furthermore, hosts can be multi-homed, that -is, respond to more than one address. For the purpose of -mail forwarding and delivery, we will assume that any of - -DCNET Mail Plan PAGE 9 - - - -these addresses can be used without prejudice. - - In its most general form, an internet mailbox name has -the syntax - - .@ - -where is the name of a user known at the host -in the name domain . This syntax is intended to -suggest a three-level hierarchically structured name -(reading from the right) which is unique throughout the -internet system. However, hosts within a single domain may -agree to adopt another structure, as long as it does not -conflict with the above syntax and as long as the forwarders -for that domain are prepared to make the requisite -transformations. For instance, let the name of a domain -including DCNET be COMSAT and the name of one of its hosts -be COMSAT-DLM with Mills a user known to that host. From -within the COMSAT domain the name Mills@COMSAT-DLM uniquely -identifies that mailbox as could, for example, the name -Mills.DLM@COMSAT from anywhere in the internet system. -However, Mills@COMSAT-DLM is not necessarily meaningful -anywhere outside the COMSAT domain (but it could be). - - The functions required of the forwarder are -straightforward. When it receives a message for -.@, it transforms as necessary -and forwards the message to its address found in the -name-address table for . Note that a single host -can be a mail forwarder for several independent domains in -this model and that these domains can intersect. Thus, the -names Mills@USC-ISIE, Mills.USC-ISIE@ARPA and -Mills.USC-ISIE@COMSAT can all refer to the same mailbox and -can, conceivably, all be entries in the same name-address -table of some host. In this example the ARPANET host -USC-ISIE appears as a domain with a null host name. Such -use would be permissable only in case the name USC-ISIE was -unique and known to all forwarders in the internet system. - - In order for this scheme to work properly, it is -necessary that messages transiting forwarders always contain -complete internet mailbox names. When this is not feasible, -as in the current ARPANET mail system, the forwarder must be -able to determine which domain the message came from and -edit the names accordingly. This would be necessary in -order to compose a reply to the message in any case. - -10. Current Status and Unresolved Issues - - The present system is working with DCNET hosts and -certain other ARPANET hosts mentioned above, although some -minor problems remain to be worked out. The experience -gained has guided the implementation of features recently - -DCNET Mail Plan PAGE 10 - - - -incorporated into MSG and SNDMSG. Additional features are -to be incorporated into MTP and MTPSRV as the result of -current discussions and revisions of RFC-780. - - There are a number of system-specific issues which need -to be resolved before the DCNET implementation could be -considered user-fortified, among them the following: - -1. There are no provisions to resolve conflicting accesses - to public files such as UNSENT.MSG which might occur if - a message arrives while SNDMSG is active on the same - file. - -2. There are no provisions to compact UNSENT.MSG - automatically as messages are forwarded or processed by - the recipients. - -3. The MTP user program must be initiated manually, rather - than automatically as the result of a timeout, for - example. - -4. Forwarder mailbox name transformations as described - above are not supported. - -5. A facility is needed to re-address misrouted messages - and to return failure messages to the sender in case - they cannot be forwarded. - -11. Summary - - This memorandum has described the environment and -features required of the DCNET mail system, as well as an -interim plan for compatability with other developing -internet mail systems. The interim plan focusses on the -Mail Transfer Protocol of RFC-780 and on the transition of -the existing DCNET mail system to be compatible with it. We -believe this to be a useful and reasonably easy thing to do -and that it will both shake the bugs from existing internet -mail transport systems as well as smooth the way for the -eventual implementation of the Internet Message Protocol and -multi-media data types. - -DCNET Mail Plan PAGE 11 - - - -12. References - -1. Crocker, D., J. Vittal, K. Pogran, and D. Henderson. - Standard for the Format of ARPA Network Text Messages. - Request for Comments RFC-733, NIC 41952, November 1977. - Also in: Feinler, E. and J. Postel, eds. ARPANET - Protocol Handbook. NIC 7104, for the Defense - Communications Agency by SRI International, Menlo Park, - California, Revised January 1978. - -2. Postel, J., ed. File Transfer Protocol. Request for - Comments RFC-765, Internet Experiment Note IEN-149. USC - Information Sciences Institute, Marina del Rey, - California, 1980. - -3. Postel, J., and S. Sluizer. Mail Transfer Protocol. - Request for Comments RFC-780. USC Information Sciences - Institute, Marina del Rey, California, May 1981. - -4. Postel, J. Internet Message Protocol. Request for - Comments RFC-759, Internet Experiment Note IEN-113. USC - Information Sciences Institute, Marina del Rey, - California, August 1980. - -5. Postel, J., ed. DoD Standard Transmission Control - Protocol. Request for Comments 761, Internet Experiment - Note 129, NTIS ADA082609. USC Information Sciences - Institute, Marina del Rey, California, January 1980. - Also in: ACM Computer Communication Review 10, 4 - (October 1980). - -6. PSS/SG3. A Network Independent Transport Service. - Study Group 3, The Post Office PSS Users Group, February - 1980. Available from: DCPU, National Physical - Laboratory, Teddington, UK. - n -------- diff --git a/text/ien/ien195.txt b/text/ien/ien195.txt deleted file mode 100644 index e6991707..00000000 --- a/text/ien/ien195.txt +++ /dev/null @@ -1,494 +0,0 @@ - -Internet Experiment Note: 195 - - - COMMENTS ON NBS TRANSPORT PROTOCOL PROPOSAL [1] - - by Carl Sunshine - University of Southern California - Information Sciences Institute - August 1981 - - - -1 INTRODUCTION - -1a The U.S. National Bureau of Standards is sponsoring the -development of protocols for several levels of computer network -architecture. Numerous documents have been produced, mostly by -Bolt Beranek and Newman, as part of this program. The purpose of -this note is to comment on the recent proposal for a tranpsort -protocol [1], concerning both the general specification -methodology and the particular mechanisms suggested for this -protocol. - -1b These comments stem from a moderately detailed reading of the -NBS transport protocol [1] and specification methodology [2] -documents, and a general familiarity with other work in the NBS -program. They necessarily focus on objections and problems -rather than compliments, although lack of comment should not be -taken as agreement since it has not been possible to completely -review these documents. My comments fall into four broad -categories: service specification, protocol specification, -architecture, and comparison with TCP. The final section should -be of special interest to readers who are familiar with U.S. -Department of Defense protocol development efforts but not with -the details of the NBS proposals. - - -2 SERVICE SPECIFICATION - -2a One of my first points must be that the service specification -is very unsatisfactory. I understand there was a decision to be -less formal in this area than with the protocol itself, but I -think that decision should be reconsidered. In my view, there is -no reason that the layer as a whole cannot be viewed as a -"service machine" and services defined in essentially the same -way as for the protocol. The recent work by SDC on DoD IP and TCP -[3,4] provide strong support for this view. An alternative -approach based on sequencing expressions has been extensively -developed by Schindler and applied to a variety of OSI protocols -and services [5]. - -2b Even if the informal "time line" figures and text now in use -for service specifications are maintained, major deficiencies -must be corrected. The figures purport to show the relative -timing of service primitives within a given service. They do NOT -show the relative timing allowed for interaction primitives of - - -Sunshine Page 2 -IEN 195 August 1981 - - -different services (e.g. that T_DATA can only follow T_CONNECT). -They do NOT show the relative timing allowed for multiple -instances of the same service (e.g. several T_UNIT_DATA data -requests may be made, and their corresponding indiciations may -occur in a different order than the requests, but with normal -T_DATA, the indications must be in the same order as the -requests). They do NOT show that some services can be interrupted -or completed by other services (e.g. T_CONNECT service primtives -can be followed at various stages by T_DISCONNECT primitives, for -example Connect.Req -> Connect.Ind -> Disconnect.Req -> -Disconnect.Ind, which is not shown in any figure). - -2c There is no indication in the service primitives of how they -are associated by the receiver with a particular connection. For -example, the DATA primitives have only the data as a parameter. -Apparently the connection ID is an implicit parameter of all -service primitives. This should be discussed explicitly. For -example, what happens when two users try to connect to each other -at the same time (using the same transport addresses)? Is this a -simultaneous T_CONNECT situation which is not shown, or is it -considered two different connections? What if two remote -entities issue T_CONNECT requests to the same third party -transport address? Are multiple connections to the same address -allowed? When a T_UNIT_DATA confirmation is returned to the -user, how is it to be associated with the proper initial request -(there may be several to different destinations, or even to the -same destination in progress)? - -2d There is no explicit statement that the parameter values of a -request are related to those of the corresponding indication. -Presumably they are to be copied, but is this always true? - -2e There are many questions about addressing and connection -establishment. Some have been mentioned two paragraphs above. -Another is that the T_CONNECT service definition specifies that a -request will be followed by an indication to the remote address, -but what if this address is invalid, or "no one is there" -somehow, so the indication cannot be delivered (for example, -there may be no process bound to the specified address on the -remote system, and it may not operate to create processes on -demand). Will this result in a T_DISCONNECT from the remote -entity (reason address unknown or unreachable)? - -2f Specifying the to and from parameters when the service as a -whole is defined (e.g., page 28-29 for T_UNIT_DATA) seems -redundant with the specification of all parameters for each -service primitive (page 31), and is in fact misleading since it -implies that every primitive will carry all of these parameters. - -2g There is no discussion or specification anywhere of flow -control which is mentioned as one element of the service provided -(page 15). In fact the event model used seems to allow an -unlimited number of primitives to be requested by the user or - - -Sunshine Page 3 -IEN 195 August 1981 - - -indicated by the entity. There is no mention of any primitives -explicitly intended to indicate cease/resume type flow control, -or any limit on event queue sizes that could be checked by either -party or block acceptance of primitives. Again in Section 6.3 -describing an X.25 interface machine, the X.25 RR/RNR flow -control packets are accepted, but have no specified effect on the -using layer. The machine apparently contains an unlimited size -queue of data to be sent (snd_buf), there are no enablng -conditions of a flow control nature on user data sending -primitives, and no explicit flow control is passed from the X.25 -layer up to the user. - -2h The expedited data is specified to be "unsynchronized with -respect to data in the normal flow," meaning (a) that the service -does not tell the receiver where in the normal data stream the -expedited data was generated, and (b) it may be delivered AFTER a -subsequently sent normal data unit. I think point b is highly -undesirable, and point a is rather inconvenient since it forces -users to put synchroniztion markers into the normal data stream. -A more powerful service should be adopted in this area. - -2i The time figures seem to provide minimal information beyond -the text, and in fact all correspond to a -request-followed-by-indication model. They could be omitted -entirely, or their size greatly reduced. If they are retained, -they should be placed in the document so they appear AFTER their -citations in the text (many appear before). - - -3 PROTOCOL SPECIFICATION - -3a Most of the comments in this section apply to the extended -class protocol found in Section 5.2 of the specification. - -3b Sequence numbers for normal data are discussed in Section -5.1.8, but sequence numbers for expedited data are never -discussed. Only in the section on header formats do we discover -that this field is 7 bits. - -3c Section 5.1.12 states that the transport connection will be -disconnected if the underlying net connection is closed -"unexpectedly." I would think it is an important service feature -to protect users from network level difficulties, and to maintain -the transport level connection, at least in the extended class, -by opening another network connection if necessary. Indeed, the -main purpose of the transport layer is to mask network level -errors and provide reliable service--giving up in this case seems -exactly counter to this goal. - -3d The explanation of the difference between two-way and -three-way connection establishment in Section 5.1.16 is nice. - - -Sunshine Page 4 -IEN 195 August 1981 - - -3e Section 5.1.17 essentially defines the default processing for -all unspecified conditions to be disconnection. It is important -to make this notion more rigorous, and to discuss it when -defining the basic machine model. It should be extended to -include processing of unspecified user requests as well as PDUs. -That is, the model should be extended to include definition of an -"else" transition that applies if no other transition is matched, -with its precise actions given as for other transitions. It is -not clear that the desired action is always disconnection--simply -ignoring or discarding certain inputs is often desired. - -3f The data types defined in Section 5.2.1 are never used later. -For example, the type given for the "reason" field of the machine -on page 48 is "int_type" rather than the "reason_type" defined on -page 46. The types actually used in the bulk of the -specification (int, data, adr, and stat), on the other hand, are -not defined formally anywhere. The adr_type in particular seems -to be a catch-all for several types of addresses (e.g. transport -and network address fields are both specified as adr_type). - -3g Sections 5.2.3, 5.2.7, and 5.2.8 have similar information and -purposes, and probably should appear together. There are far too -many items that are "primitives" and hence not defined formally. -For example, only two out of perhaps 25 predicates are defined. - -3h The function of the "reference" numbers assigned to each side -of a connection is never explanined clearly. I am guessing that -they are intended to function as a sort of incarnation number, -and serve to prevent old packets between the same addresses from -being confused with newer ones. This is intended to allow -connections to always start with sequence number zero, since they -will have different reference numbers. Hence reference numbers -must not be reused too frequently, leading to the REF_WAIT state -whenever a connection is closed, and the timeout discussed on -page 66. As noted, if a host crashes, it must not start ANY -connections for the appropriate time period if it forgets the -reference numbers used before the crash. All of this should be -clarified, with a few references to the relevant literature. The -reference numbers also appear to serve an addressing function, -being used (implicitly?--see next) to associate inputs with the -correct state machine instance. - -3i There is a major omission concerning how to associate incoming -packets and user commands with a particular connection. Section -5.1.1 states that reference number pairs serve to identify -connections, but this is not reflected in the formal spec in any -way. Technically, the interfaces should be extended to include -these fields, and the enabling conditions should say - ([from N:PDU.dst_ref] = src_ref) for an arriving PDU, or - ([from U:Src_ref]=src_ref) for a user request, or - ([from S:Src_ref]=src_ref) for a timer indication -Interestingly, the X.25 Interface machine in Section 6.3.3.3.3 -does include an explicit check of this type on the logical - - -Sunshine Page 5 -IEN 195 August 1981 - - -channel. However, this will not work for initial connection -requests where no machine has been esatblished yet--in this case, -a new one must be created. This is not modeled formally either. - -3j There are problems with events not associated with any -specific connection. For example, some timer requests are made -before any reference numbers have been assigned, such as in -transition 9, page 82. How can the Current State item on page 82 -refer to "The transport connection" when there is no tranport -level connection associated with this event yet (a specific -transport address will only be identified when the CR PDU arrives -as a subsequent event)? How is the timeout specified in -transition 11, page 84, associated with the correct protocol -machine, particularly if more than one N_Connect indication has -been received? Similarly, how is the N_Accept indication in -tranition 2, page 70, associated with the proper machine? - -3k Transitions 12 (p. 85) and 71-2 (pp. 183-6) are applicable to -the state set "listening", but the first action (cancelling the -timer) is only relevant in the CALLED state, not the CLOSED -state. I have not had the time to check all transitions in -detail, but if this is indicative of sloppy treatment of state -classes, there may be many other bugs of this sort. - -3l The 81 transitions are presented in a seemingly unstructured -and haphazard fashion. This makes it difficult to understand the -protocol, and nearly impossible to check its completeness (has -the possibility of every event in every state been considered?). -With the default connection termination suggested in Section -5.1.17, technically every specification is complete, but the -reader would have much greater confidence if the spec was -presented systematically by types of events, or by states, and -"error" inputs were explicitly listed, so a syntactic -completeness check could be performed. - -3m It would be extremely helpful to provide some sort of index to -the numerous transitions, perhaps a conventional state transition -diagram with the transition numbers written on the arcs, or a -listing of all the transition line specs (with no procedures) -together. This would allow the reader to trace interesting -scenarios much more easily. - -3n The use of overlapping enabling conditions seems dangerous. -For example, see pages 367 and 373 where an incoming DATA unit is -received from X.25. Combined with the lack of ordering of the -transitions noted above, it is difficult for the reader (and the -designer) to remember that implicit in transition 24 is the fact -that packets with bad sequence numbers have been "filtered out" -and handled in transition 18 (which has a higher priority). -Perhaps these transitions should be combined, or else the -enabling conditions expanded to be mutually exclusive so each -stands complete on its own. In the current format, it would be -all too easy to modify the specification in one place, forgetting - - -Sunshine Page 6 -IEN 195 August 1981 - - -that it has an effect on another transition that appears pages -away. - -3o The syntax chosen for transitions, listing the new state first -and the old state second seperated by a right-to-left arrow, is -at odds with every other example of transition specifications I -have seen. The conventional method is to write old -> new, left -to right. The authors should at least highlight this difference -and provide some justification for it in Section 3.3.3. - -3p When default values are passed for parameters, those -parameters should not be specified explicitly (e.g. Subscript and -Datum parameters at the end of transition two, page 70). This -will simplify the specification. Otherwise, why define defaults? - - -4 ARCHITECTURE - -4a Both basic class and extended class protocols are designed to -make use of a virtual circuit or connection oriented network -level service. This may make sense for basic class, but -certainly does not for extended class. Presumably, the reason -for selecting extended class mode of operation would be in the -situation where unreliable and/or datagram network service was -being used. In this case, the transport level goes through -significant effort to manage network level "connection" setup and -clearing, only to have the interface sublayer undo all of this -work for a datagram system! The design of extended class should -clearly be optimized for operation over datagram nets. This -would allow substantial simplification of both the transport -protocol (CALLED and CALLING states, and transitions 1-2, 9-11, -59-60, etc. would be eliminated) and the interface sublayer -(essentially null for datagram nets). - -4b There seems to be little relation between basic class and -extended class protocols. In particular, basic class is in no -sense a "subset" of extended class so that an extended class -implementation could also communicate with basic class by -refraining from use of certain PDUs. While there is some -similarity in the interaction primitives of the two classes, it -seems that these are essentially two different protocols. -Acceptance of this fact would allow redesign of each protocol for -greater efficiency. In particular, the attempt to base extended -class on connection oriented network service could be abandoned -with great savings as discussed above. - -4c The wisdom of defining two classes of protocol at all is open -to question. It clearly introduces the possibility of inability -to communicate between different "class" users. The extended -class protocol is motivated by a view of underlying nets as not -fully reliable, providing minimal services, a situation which -clearly applies "in general." Basic class is motivated by a view -of highly reliable end-to-end connections available at the - - -Sunshine Page 7 -IEN 195 August 1981 - - -network level. Even if some public networks are expected to -provide this service, the reality of user-to-user -interconnections will in most cases also involve private or local -networks, leading to serious questions about the validity of the -situations for which basic class is optimized. - -4d Masking the datagram nature of the network level from the -extended class tranport protocol leads to another inefficiency. -The ARPA IP datagram protocol allows the user to supply a -datagram "identifier" which is used to reassemble fragments at -the destination. If the transport level is aware of this -feature, it can purposely use the same ID on retransmissions of -the same packet, thereby increasing chances of correct reassembly -at the destination (fragments of different retransmissions will -be merged). When this feature is hidden from the transport level -and the interface sublayer provides a new ID to each packet -(including retransmissions) from the transport layer (as -specified on p. 395), this is not possible. - -4e A difficulty in designing the interaction among layers is -apparent in use of the datagram interaface sublayer defined in -Section 6.4. When the "connection" is closed at one end -(transactions 6,8,10 on pages 407,9,11), no network level -disconnect is sent to the remote partner. Hence the remote -interface layer machine remains in the OPEN state indefinitely, -even though the transport layer has closed its connection. - - -5 COMPARISON WITH TCP - -5a The NBS extended class tranport protocol bears some -resemblance to the DoD TCP protocol. Because there is some -interest in the applicability of public standards to DoD, I will -try to highlight some of the differences. - -5b The NBS protocol is designed to operate above connection -oriented network services. In DoD, datagram services -predominate. Hence the NBS protocol can be expected to be more -costly and less efficient in this architecture as discussed -above. In addition to the extra states and transitions for -network level connection management (see 4a above), the NBS -protocol will be less robust since it drops transport connections -when there are network problems (see 3c), and cannot support the -merging of retransmissions by the IP (see 4d). - -5c The TCP uses carefully selected initial sequence numbers to -prevent confusion of packets from different incarnations of -connections. The NBS protocol uses reference numbers which also -perform an addressing function in a fashion not fully explained -(see 3h-3i). The NBS protocol allows a less reliable two way -handshake to establish connections in addition to the three way -handshake used in TCP. - - -Sunshine Page 8 -IEN 195 August 1981 - - -5d The addressing features are not sufficiently well-defined in -the NBS protocol to allow a clear comparison with TCP. -Consistent with its use of underlying connection services, only -the initial call request PDU includes transport addresses (format -and semantics unspecified), while subsequent PDUs carry only the -reference number or numbers (presumably--this is left -unspecified), and no network level addresses. In TCP all packets -carry transport level ports (16 bits). Certain ports are -assigned to "well-known" applications with TCP, for which there -seems no counterpart in the NBS protocol. The NBS protocol -preserves the boundaries between sent transport service data -units when they are delivered (i.e., provides record boundaries -to users), while the latest version (August 1981) of the TCP is -stream oriented and provides no record boundaries. Instead the -TCP provides a "Push" service feature to force the prompt -delivery of all data sent up to that point. - -5e The unit of sequencing and flow control in TCP is 8-bit bytes, -while in the NBS protocol it is protocol data units (PDUs) whose -maximum size is defined at connection establishment. This -follows the stream oriented nature of TCP data transmission -versus the record oriented aspect of the NBS protocol. Sequence -and acknowledgement numbers are 32 bits in TCP, and 15 bits in -the NBS protocol. - -5f The NBS protocol maintains a minimum level of activity by -sending Acks if necessary in either direction. Periodic -transmission, particularly when a zero window is opened, is only -suggested in TCP. Acks do not carry a sequence number in the NBS -protocol, seemingly allowing them to be received and processed -out of order more easily than with TCP. Acks can not be -"piggybacked" on data packets in the NBS protocol, seemingly -leading to more packets exchanged (see section 5.4.2 giving -format of TPDUs). Error packets have no sequence or -acknowledgement numbers in the NBS protocol, seemingly allowing -duplicates to be accepted. - -5g A single unit of "expedited data" may be transmitted at one -time in the NBS protocol whose position and delay relative to the -normal data units is unknown (see 2h above). The latest TCP -(August 1981) provides an "Urgent" service feature which -indicates a point in the normal data stream at which "urgent" or -priority data has been sent. The urgent indication is presented -to the receiver at least as soon as the urgent data. - -5h The features for terminating connections (both "graceful" and -immediate disconnect) in the NBS protocol appear to duplicate -those in TCP. The security, compartment, and precedence features -in the NBS protocol also seem to duplicate those in TCP although -the fields are smaller and their semantics are left undefined. - - -Sunshine Page 9 -IEN 195 August 1981 - - -REFERENCES - -[1] J. Burruss and others, Specification of the Transport - Protocol, Report No. ICST/HLNP-81-1, National Bureau of - Standards, February 1981. - -[2] R. Tenney and T. Blumer, An Automated Formal Specification - Technique for Protocols, Report No. 4581, Bolt Beranek and - Newman, February 1981. - -[3] G. A. Simon and M. M. Bernstein, DCEC Protocols - Standardization Program/ Protocol Specification Report, - TM-7038/204/00, System Development Corp., July 1981. (Also - see DARPA Internet Experiment Note No. 186.) - -[4] M. M. Bernstein, DCEC Protocols Standardization Program/ - Preliminary Transport Protocol Specification Report, - TM-7038/207/01, System Development Corp., August 1981. - -[5] S. Schindler, U. Flasche, and D. Altenkrueger, "The OSA - Project: Formal Specification of the ISO Transport Service," - Proc. Computer Networking Symposium, National Bureau of - Standards, December 1980. - diff --git a/text/ien/ien196.txt b/text/ien/ien196.txt deleted file mode 100644 index 2ca580a2..00000000 --- a/text/ien/ien196.txt +++ /dev/null @@ -1,1343 +0,0 @@ - -IEN 196 11 September 1981 - - - - - - - - - - - - - - - ISSUES INVOLVING NON-ROUTING GATEWAYS - - - - B. Bowman & P. Cook - - - Ford Aerospace & Communications Corporation - - Colorado Springs, Colorado - - (303-471-9110) - - - IEN # 196 - - - - September 11, 1981 - - - - - - - - - - - - - - - - - - - - - - - -IEN 196 11 September 1981 - - -INTRODUCTION - -This note presents some proposed modifications to the gateway -routing algorithm and the protocol for exchanging routing -information described in IEN #109, "How To Build A Gateway". The -described algorithm modifications were defined as a result of -problems encountered in the implementation of the gateway to -gateway control protocol specified in IEN # 109. The problems -encountered in implementing the algorithm involve the mechanisms -for incorporating non-routing gateways in the catenet. -Therefore, this discussion focuses on modifications designed to -facilitate use of non-routing gateways in concert with routing -gateways in the catenet. - -As indicated above, the issues discussed resulted from our -implementation of the IEN # 109 algorithm. Some initial -implementation questions concerning interpretation of the rules -for assembling routing updates from non-routing gateways led to -our analysis of the design of this routing strategy. From -routing strategy design issues, our study progressed to questions -regarding the intended/optimal role of non-routing gateways in -the catenet. - -As a result, this note presents specific modifications to IEN # -109 necessary for successful implementation and also includes -discussion of the broader issues of the role of the non-routing -gateway in the catenet. - -Finally, we propose a modification to the routing information -exchanged in the IEN # 109 algorithm, which we believe has -significant advantages in reducing the logical complexity of the -algorithm and traffic between gateways. Although we have looked -at design approaches of other authors in this field, we have not -done an exhaustive search to determine the "novelty" of our -approach. We would also like to stress that our goal was not to -design a new routing algorithm but simply to implement the IEN # -109 algorithm. In a very real sense, it can be said that we -backed into these routing design issues as a natural consequence -to our implementation efforts. - -I. Non-Routing Gateways - -It should be noted that any solution must be based on an -understanding regarding the intended role of the non-routing -gateway in the catenet. Unambiguous rules for incorporating -non-routing gateways in the routing scheme can only be specified -when the intended role is clearly defined. An optimal solution, -then, would involve clarification of the role of the non-routing -gateway followed by revision of the routing specification -consistent with the defined role. - - -2- - - - -IEN 196 11 September 1981 - - -IEN # 109, "How to Build a Gateway", contains a section (Sect.9, -Page 7) discussing the interface between routing gateways and -non-routing gateways and, in particular, discussing the use of a -non-routing gateway by a routing gateway for routing packets. -Two areas of this section are problematic with respect to a -successful implementation. These are, (1) initialization with -respect to the non-routing gateway and (2) computation of the -minimum distance vector. - -A. Initialization - -IEN # 109 gives the following instructions for initializing with -respect to a non-routing neighbor gateway. - - * "For each non-routing neighbor gateway of gateway G1, compute -the routing update that would be sent to G1 assuming that all -gateways and network connections are operational. These routing -updates are assembled in G1." - -This rule can be interpreted in one of two ways. The first is to -assemble the non-routing gateway's routing update showing actual -distances to each network from the non-routing gateway. Figure 1 -shows an example of this interpretation. - -In this example, Gateway (B) is a non-routing gateway and Gateway -(A) is a routing gateway. Initially, G(A) assembles G(B)'s -update as actual distances from G(B) to the 3 networks. Based on -this initialization, G(A) assumes that it is a distance of 1 from -Net.#1 because the non-routing gateway provides the only path to -Net.#1. G(A) also assumes that it is directly (0) connected to -Nets.#2 and #3. G(A) builds its initial minimum distance vector -reflecting these distances. - -Assume, then, that G(A)'s link to Net.#3 goes down at some time. -When this happens, G(A) recomputes it's minimum distance vector. -Since G(A) is no longer connected to Net.#3, there is no path -available unless the non-routing gateway's path is used. G(B)'s -update indicates a distance of 1 to Net.#3. Therefore, G(A) -assumes a path to Net.#3 of distance 2 through G(B). Of course, -there is no path to Net.#3 but G(B) does not accept or transmit -routing tables so any packets addressed to Net.#3 will shuttle -indefinitely (until the IP4 time to live field is decremented to -zero) from G(A) to G(B) to G(A), etc. When this example is -extended to larger catenets, the shuttling problem persists and -simply involves higher distance shuttles. Therefore, this -interpretation of the initialization instructions is unworkable. - - - -3- - - - -IEN 196 11 September 1981 - - - - - FIGURE 1: INITIALIZATION OF NON-ROUTING GATEWAY UPDATE - "ACTUAL DISTANCE" METHOD - - -CATENET CONFIGURATION - - - - __________ __________ __________ -| | | | | | -| NET #1 |----G(B)----| NET #2 |----G(A)----| NET #3 | -|__________| |__________| |__________| - - -where - G(A) = Gateway A: Routing Gateway - G(B) = Gateway B: Non-Routing Gateway - - -G(A) DISTANCE MATRIX AFTER INITIALIZATION - - NETWORKS - GATEWAYS 1 2 3 - - - A 1 0 0 - B 0 0 1 - - - -G(A) DISTANCE MATRIX (ASSUMING LOSS OF CONNECTIVITY TO NET.#3) - - NETWORKS - GATEWAYS 1 2 3 - - - A 1 0 2 - B 0 0 1 - - - - - - -4- - - - -IEN 196 11 September 1981 - - -The other possible interpretation of the IEN # 109 instructions -is to assemble the non-routing gateway's update showing actual -distances to each network from the non-routing gateway only when -the non-routing gateway is as close to or closer to the network -than the gateway assembling the routing update. This -interpretation incorporates a rule from Section 7, page 7 -regarding computation of routing updates. Figure 2 shows an -example of this interpretation. - -In this example, Gateway (B is a non-routing gateway and Gateways -A and C are routing gateways. The example is presented from the -perspective of Gateway A. Gateway B's update is initialized -showing 0 distance to Nets.#1 and #2. A distance of 1 is shown -to Net.#3 because Gateway B is as close to Net.#3 as is Gateway -A. An infinite distance is shown to Net.#4 because Gateway A is -closer to Net.#4 than Gateway B. The example shows receipt of a -routing update from Gateway C which shows Gateway C's distances -calculated according to the rules for preparation of a routing -update. - -Gateway A calculates its minimym distance vector as 0 distance -from Nets.#2 and #4 because they are directly connected, distance -1 from Net.#1 because of the path through Gateway B and distance -1 from Net.#3 because of the path through Gateway C. - -Assuming that Gateway C loses connectivity to Network #3 at some -time, Gateway C would send Gateway A a new routing update showing -infinite distance to Network #3. Gateway A would then -recalculate its minimum distance vector. G(A) would assume that -the only path to Net.#3 is through the non-routing gateway (G(B)) -and that this is a path of distance 2. This occurs because G(B) -neither accepts nor transmits routing updates so it is unaware of -the connectivity loss and G(A) is assembled with G(B)'s routing -update so there is no provision for changes to this information -in G(A). The situation is complicated by the fact that G(A), -upon recalculation of its minimum distance vector, will transmit -a routing update to G(C) showing the distance of 2 from G(A) to -Network #3. G(C) will recompute its distance vector to show a -path of distance 3 from G(C) to Network #3. Since no path -actually exists and all 3 Gateways believe a path exists, packets -addressed to Net.#3 will shuttle indefinitely (until the IP4 time -to live field is decremented to zero). - -Thus it seems that Thus it seems that both interpretations of the -IEN # 109 instruction for assembling the non-routing gateway's -update present serious problems. - - - -5- - - - -IEN 196 11 September 1981 - - - - - FIGURE 2: INITIALIZATION OF NON-ROUTING GATEWAY UPDATE - "TAILORED UPDATE" METHOD - - -CATENET CONFIGURATION - - - __________ - __________ __________ | | -| | | |----G(A)----| NET #4 | -| NET #1 |----G(B)----| NET #2 | |__________| -| | | | __________ -| | | | | | -|__________| |__________|----G(C)----| NET #3 | - |__________| - - - -where - G(A) = Gateway A: Routing Gateway - G(B) = Gateway B: Non-Routing Gateway - G(C) = Gateway C: Routing Gateway - - -G(A) DISTANCE MATRIX AFTER INITIALIZATION - - NETWORKS - GATEWAYS 1 2 3 4 - - - A 1 0 1 0 - B 0 0 1 INF - C 1 0 0 INF - - - -G(A) DISTANCE MATRIX (ASSUMING LOSS OF CONNECTIVITY TO NET.#3) - - NETWORKS - GATEWAYS 1 2 3 4 - - - A 1 0 2 0 - B 0 0 1 INF - C 1 0 INF INF - - - - - -6- - - - -IEN 196 11 September 1981 - - -B. Computation of the Minimum Distance Vector - -IEN # 109 goes on to provide the following instructions for -calculating the minimum distance vector when non-routing gateways -are included. - - * "The gateway, G(A), first computes its minimum distance - vector using only the routing updates from neighbors that - participate in routing. If the minimum distance to any - network is infinity, i.e., the network is unreachable via - any of the routing gateways, then the minimum distance to - that network is re-computed using the routing update - compiled for the non-routing neighbor gateway." - -This rule appears inefficient if we look at the example shown in -Figure 3. In this example, Gateway B is a non-routing gateway -and Gateways A and C are routing gateways. The example is -presented from the perspective of Gateway A and the focus of the -example is on the distance to Network #1. - -G(A) is assembled with the update of G(B) (the non-routing -gateway) and G(B) shows a distance of 0 from Net.#1 since it is -directly connected. In our example, G(A) has received an update -from G(C). G(C) shows a distance of 1 to Net.#1 based on its -path through G(B). According to the rule, G(A) has to prefer the -route through G(C) since G(C) is a routing neighbor and G(B) is -non-routing. Therefore, G(A) assumes a path of distance 2 to -Net.#1 and G(A) will route to G(C) any packets addressed to -Net.#1. On receipt of the packet addressed to Net.#1, G(C) will -route the packet to G(B) where it will be delivered to Net.#1. - -This solution is not unworkable but it does cause delay and -inefficiency by forcing an additonal transfer with respect to the -optimal path. In a geographically dispersed network, this delay -and additional network traffic could become significant. - - - -7- - - - -IEN 196 11 September 1981 - - - - FIGURE 3: COMPUTATION OF THE MINIMUM DISTANCE VECTOR - - - -CATENET CONFIGURATION - - - __________ - __________ __________ | | -| | | |----G(A)----| NET #4 | -| NET #1 |----G(B)----| NET #2 | |__________| -| | | | __________ -| | | | | | -|__________| |__________|----G(C)----| NET #3 | - |__________| - - - -where - G(A) = Gateway A: Routing Gateway - G(B) = Gateway B: Non-Routing Gateway - G(C) = Gateway C: Routing Gateway - - -G(A) DISTANCE MATRIX - - NETWORKS - GATEWAYS 1 2 3 4 - - - A 2 0 1 0 - B 0 0 1 INF - C 1 0 0 1 - - - - - -8- - - - -IEN 196 11 September 1981 - - -C. Proposed Solution to Non-Routing Gateway Problems - -Role Clarification - -As indicated above, a solution to the problems in incorporation -of non-routing gateways must address clarification of the role of -the non-routing gateway in the catenet. Three possible roles for -the non-routing gateway have been identified and are discussed in -this section. In general, we see potential for non-routing -gateways to be used to provide 1) the "only" route, 2) -"redundant" routes or 3) "parallel" routes. Use of the -non-routing gateway to provide "redundant" and "parallel" routes -is discussed in Section D. - -Figure 4 illustrates use of the non-routing gateway to provide -the "only" route. This role basically restricts the use of -non-routing gateways to allow (i.e., recognize) them in the -catenet only when the non-routing gateway provides the "only" -connection to a network or network branches. - -Although other possible roles will be discussed , this particular -role definition is the one we recommend. Using non-routing -gateways where they provide the "only" possible route seems the -most logical use of these gateways and also lends itself most -easily to unambiguous rule definition. The mechanisms for -incorporating non-routing gateways consistent with the "only" -route role are described in the following paragraphs. - - - - - - - - - - - - - - - -9- - - - -IEN 196 11 September 1981 - - - - - FIGURE 4: NON-ROUTING GATEWAY AS "ONLY" ROUTE - - -CATENET CONFIGURATION - - - - __________ __________ -| | | | -| NET #1 |----G(R)----| NET #3 | -|__________| |__________| - | | - | | - G(R) | - | | - | | - __________ | -| | | -| NET #2 |----G(R)----------| -|__________| - | - | - G(NR) - | - | - __________ -| | -| NET #4 | -|__________| - | - | - etc. (network branch) - - - - G(R) = Routing Gateway - G(NR) = Non-Routing Gateway - - -NOTE: In this configuration, the non-routing gateway provides - the only connection to Network #4. - - - -10- - - - - -IEN 196 11 September 1981 - - -Rules for "Only" Route Role - -It appears that the initialization and route computation problems -associated with non-routing neighbor gateways described above, -could be solved by a few rule changes. The proposed new rules -are as follows: - - * IEN # 109 Rule: - - For each non-routing neighbor gateway of gatewayG(A), - compute the routing update that would be sent to G(A) - assuming that all gateways and network connections are - operational. These routing updates are assembled in G(A). - - New Rule: - - F or each non-routing neighbor gateway of gateway G(A), - compute the routing update that would be sent to G(A) - assuming that all gateways and network connections are - operational. In computing these routing updates, show - actual (non-infinite) distances to networks which are - reachable only through the non-routing gateway. Networks - which are reachable by a routing gateway shall be - initialized with distance equal infinity. These routing - updates are assembled in G(A). - - IEN # 109 Rule: - - T he gateway, G(A), first computes its minimum distance - vector using only the routing updates from neighbors that - participate in routing. If the minimum distance to any - network is infinity, (i.e., the network is unreachable via - any of the routing gateways), then the minimum distance to - that network is re-computed using the routing update - compiled for the non-routing neighbor gateway. - - New Rule: - - The gateway, G(A), first computes its minimum distance - vector using all the routing updates (including updates from - both routing and non-routing gateways). - -These proposed rule changes, taken together, cause non-routing -gateways to be used only when they provide the only path to a -network or string of networks. These rules also eliminate the -possibility of selecting any other path (i.e., through a routing -gateway) when a non-routing gateway provides the only path. -Thus, non-routing gateways are used for packet routing if and -only if they provide the only route to a destination. - - - - -11- - - - -IEN 196 11 September 1981 - - -Figure 5 shows how the new rules solve the problems identified in -Examples 1, 2, and 3. In this example, Gateway B is a -non-routing Gateway and Gateways A and C are routing gateways. -The example is presented from the perspective of Gateway A. The -G(A) Distance Matrix after initialization shows that the problem -depicted in Figure 3 (computation of the minimum distance vector) -is resolved through application of the new rules. Since the -minimum distance vector is calculated based equally on the -routing and non-routing gateway updates, the shortest path (and -only path) to Network #1 is selected by both routing gateways -(G(A) and G(C)). - -The G(A) Distance Matrix resulting from loss of connectivity to -Net.#4 shows that the problem depicted in Figure 1 -(Initialization of non-routing gateway update) is resolved -through use of the new rules. Since the assembled non-routing -gateway update no longer shows paths to networks reachable by -routing gateways, G(A) is able to determine that Net.#4 is now -unreachable and does not attempt to route traffic to Net.#4 -through Gateway (B). - -The G(A) Distance Matrix resulting from loss of connectivity to -Net.#3 shows that the problem depicted in Figure 2 -(Initialization of non-routing Gateway update) is also resolved -through application of the new rules. This problem is resolved -because the assembled non-routing gateway update no longer show -paths to networks reachable by routing gateways. Thus, when -Net.#3 is declared unreachable by Gateway C, G(A) determines that -Net.#3 is unreachable by all gateways. - - - - - - - - - - - - - - - - - -12- - - - -IEN 196 11 September 1981 - - FIGURE 5: PROPOSED SOLUTION - -CATENET CONFIGURATION - __________ - __________ __________ | | -| | | |----G(A)----| NET #4 | -| NET #1 |----G(B)----| NET #2 | |__________| -| | | | __________ -| | | | | | -|__________| |__________|----G(C)----| NET #3 | - |__________| - -where - - G(A) = Gateway A: Routing Gateway - G(B) = Gateway B: Non-Routing Gateway - G(C) = Gateway C: Routing Gateway - -G(A) DISTANCE MATRIX AFTER INITIALIZATION - - NETWORKS - GATEWAYS 1 2 3 4 - - A 1 0 1 0 - B 0 INF INF INF - C 1 0 0 INF - - -G(A) DISTANCE MATRIX (ASSUMING LOSS OF CONNECTIVITY TO NET.#4) - - NETWORKS - GATEWAYS 1 2 3 4 - - A 1 0 1 INF - B 0 INF INF INF - C 1 0 0 INF - - -G(A) DISTANCE MATRIX (ASSUMING LOSS OF CONNECTIVITY TO NET.#3) - - NETWORKS - GATEWAYS 1 2 3 4 - - A 1 0 INF 0 - B 0 INF INF INF - C 1 0 INF INF - - - -13- - - - - -IEN 196 11 September 1981 - - -D. Other Possible Approaches - -Redundant Role - -Restricting the use of non-routing gateways in the catenet to -locations where they provide the only configured path and -adoption of the corresponding rule changes is our recommended -solution to the implementation problems we've identified. In -reviewing IEN # 109 and it's predecessor IEN # 30, we find it -difficult to determine the intended role of the non-routing -gateways. - -Both papers indicate that non-routing gateways are to be used to -forward traffic only when they provide the only route to a -network. This seems to indicate that the initial intent was to -use non-routing gateways in the role defined above (i.e. "only" -route role). On the other hand, it's possible that the authors -actually intended to use the non-routing gateways to provide the -only configured path and to provide backup routes to networks -connected by routing gateways. This role for non-routing -gateways is what we have called the "redundant " role. Figure 6 -illustrates this use of non-routing gateways. This role is -basically an addition to the "only" route role. - -Here the non-routing gateway can also be configured in parallel -with a routing gateway but the non-routing path is only used if -connectivity through the routing gateway is lost. Thus, the -non-routing gateway is used as a backup for the routing gateway. -As long as the routing gateway and its connections are -functional, the non-routing gateway is not used to forward any -traffic. - - - - - - - - - - - - - - -749/ - - -14- - - - -IEN 196 11 September 1981 - - - - - FIGURE 6: NON-ROUTING GATEWAY AS "REDUNDANT" ROUTE - - - -CATENET CONFIGURATION - - - - __________ __________ -| |----G(NR)---| | -| NET #1 | | NET #2 | -|__________|----G(R)----|__________| - | | - | | - G(R) G(R) - | | - | | - __________________________________ -| | -| NET #3 | -|__________________________________| - - -WHERE - G(R) = Routing Gateway - G(NR) = Non-Routing Gateway - - - - - - - - - -15- - - - -IEN 196 11 September 1981 - - - -It seems that this second role interpretation is implementable. -Basically, the corresponding rules would be: - - 1) Assemble routing update showing direct network connections - and actual distances to networks reachable only by the - non-routing gateway. - - 2) Calculate minimum distance vector using non-routing gateway - paths only when they provide the only route. - -Implementing this role concept, then, involves the added -complexity of the two stage minimum distance vector calculation -(with bias toward routing gateway paths). While this may be the -role anticipated by the authors of IEN # 109 and # 30, we feel -the backup role is of little added value for the additional -complexity involved. It seems unlikely to us that networks would -buy a processor which was to be idle the majority of the time. -Instead, if need existed for a backup, it seems a routing gateway -would be a better choice and cost efficient as it could increase -bandwidth as well as providing redundancy. - -Parallel Role - -At the other end of the spectrum, it is possible that some group -might wish to use non-routing gateways in any configuration where -routing gateways can be used. In this role, which we call the -"parallel" role, non-routing gateways are used to provide -additional (parallel) paths and thus effectively increase -bandwidth. This role differs from the "redundant" route role in -that non-routing gateways are used to forward traffic even when -they do not provide the only path. It is this facility which -allows the effective increase in real-time bandwidth. - -Whether this intended role is implementable is an open question. -Obviously, it would be more complex to implement and would -basically require a redefinition of some of the ground rules. We -rejected this possible role application because it significantly -reduces catenet reliability and seems to defeat the whole idea -behind the routing algorithm function. If non-routing gateways -are used routinely to forward traffic in parallel with routing -gateways, connectivity changes occuring with the non-routing -gateways are unreported and therefore the non-routing gateways -could easily become traffic sinks. - - - - - - - -16- - - - -IEN 196 11 September 1981 - -We felt that the only possibility for using non-routing gateways -to increase bandwidth would be to implement the role outside the -gateway-gateway control protocol. This function could be -implemented as a host function where there was an understanding -between hosts on two networks that traffic would be split on some -basis between routing and non-routing gateways. Thus, the -decision to sacrifice catenet reliability in favor of increased -traffic flow would be made by the parties involved without -involving any gateway control function awareness or -participation. - -II. Routing Update Calculations - -In the process of designing the gateway routing software IAW IEN -# 109, we determined that a subset of the routing algorithm rules -dictated a logically cumbersome implementation. These rules, -from IEN # 109 are as follows: - - A. "The gateway reports its distance to a network to a - neighbor only if it is as close or closer to a network than - its neighbor." (p.7) - - B. "The gateway maintains a copy of the most recent routing - updates that it sent to each of its neighbors. The gateway - computes the new routing updates to send to each of its - neighbors. If any of these routing updates are different - than the preceding updates, then the gateway sends new - routing updates to its neighbors." (p.7) - -Rule A calls for "tailoring" routing updates for each neighbor -such that the transmitting gateway reports its distance relative -to the connectivity of each recipient gateway. Thus, when a -gateway calculates its routing update, it first calculates its -minimum distance vector and then compares that vector to the last -routing update from each neighbor. From this comparison, it -creates the "tailored" routing update for each neighbor which -reflects not only the transmitting gateway's connectivity but -also the connectivity of each neighbor. The comparison process -is performed as follows: - - - - - - - - -17- - - - -IEN 196 11 September 1981 - - - DO (For each neighbor) - - DO (For each network) - - IF (Transmitting gateway is as close or closer to - - the network) - - Report actual distance - - ELSE (Report infinity distance) - - ENDDO - - ENDDO - -Rule B requires that, having performed the calculations based on -Rule A resulting in routing updates for each neighbor, these -updates be compared to the updates last sent to each neighbor. -If any of the updates are different from those last sent, all the -updates are transmitted. If there are no changes to any neighbor -since the last transmittal, no updates are sent. Implementation -of this rule requires that copies of the last updates sent be -maintained at the gateway. - -The basis for these rules, particularly Rule A, is prevention of -shuttling which could occur if only one path existed to a network -and that network became disconnected. If gateways were allowed -to report actual distances rather than infinity, then two -gateways could, because of their dependent or relative distance -relationship, begin step increments of their distances to the -disconnected network eventually approaching infinity and thus -shuttle packets until the IP4 time to live field is decremented -to zero. - -This shuttling problem is, in fact, a natural outcome of a -routing scheme which involves the exchange of distance -information only. Thus, the problem can be solved by the -addition of special rules such as Rule #1 above or can be solved -by going to a routing scheme which exchanges connectivity -information (distance and path). - - - - - - - - - -18- - - - -IEN 196 11 September 1981 - - -After studying the current solution of exchanging relative -distance vectors, it seems that going to a routing scheme -involving exchange of both connectivity information and distance -provides a simpler and more efficient solution. The added -information exchange proposed is more than offset by the -computational simplicity and the reduction in routing update -traffic afforded. - -The routing scheme proposed provides for including in routing -updates both the actual distance vector (as opposed to the -current tailored relative distance vector) and the routing table. - -Figure 7 is a configuration used as the basis for illustration of -the updates. To see how these routing updates are constructed, -examine the update from G3 in Figure 8 (Step 3). G3 is directly -connected to Nets.#2 and #26, so G3 shows a distance of 0 to each -with G3 as the "next" gateway address for routing. G3 is 1 away -from Net.#1 and this path to Net.#1 is through G2. Similarly, G3 -is 1 away from Nets.#3 and #27 and these paths are through G5 and -G6 respectiviely. G3 is also a distance of 1 from Net.#10. - - - - - - - - - - - - - - - - - - - - - - - - - - - -19- - - - -IEN 196 11 September 1981 - - - - - FIGURE 7: CATENET CONFIGURATION - - - - __________ __________ -| | | | -| NET #1 | | NET #4 | -|__________| |__________| - | | - | | - G2 G4 - | | - | | - __________ __________ -| | | | -| NET #26 |-----G1----| NET #10 | -|__________|---- |__________| - | | | - | | | - G3 |------------G5 - | | - | | - __________ __________ -| | | | -| NET #2 | | NET #3 | -|__________| |__________| - | - | - G6 - | - | - __________ -| | -| NET #27 | -|__________| - - - -NOTE: Gateways G1 - G6 are all routing gateways. - - - - - - - -20- - - - -IEN 196 11 September 1981 - - - - - FIGURE 8: ROUTING UPDATES BASED ON NEW ROUTING METHOD - (SEE FIGURE 7 FOR CONFIGURATION) - - - NETWORK DISTANCES/"NEXT" NEIGHBOR ADDRESS(ES) - - - -STEP SOURCE DEST. 1 2 3 4 10 26 27 - - - 1. G1 ALL Distance INF INF INF INF 0 0 INF - "Next" G1 G1 - - 2. G2 ALL Distance 0 1 1 2 1 0 2 - "Next" G2 G3 G5 G1 G1 G2 G3 - - 3. G2 ALL Distance 1 0 1 2 1 0 1 - "Next" G2 G3 G5 G1 G1 G3 G6 - G5 G5 - - 4. G4 ALL Distance 2 2 1 0 0 1 3 - "Next" G1 G1 G5 G4 G4 G1 G1 - G5 G5 G5 G5 - - 5. G5(10) ALL Distance 1 1 0 1 0 0 2 - "Next" G2 G3 G5 G4 G5 G5 G3 - - 6. G5(26) ALL Distance 1 1 0 1 0 0 2 - "Next" G2 G3 G5 G4 G5 G5 G3 - - 7. G1 ALL Distance 1 1 1 1 0 0 2 - "Next" G2 G3 G5 G4 G1 G1 G3 - - Assume loss of connectivity by G2 to Net.#1 - - 8. G2 ALL Distance INF 1 1 2 1 0 2 - "Next" G3 G5 G5 G5 G2 G3 - G1 G1 - - 9. G1 ALL Distance INF 1 1 1 0 0 2 - "Next" G3 G5 G4 G1 G1 G3 - - -NOTE: G5(10) is gateway 5 on network 10. A gateway which is a - neighbor on two networks is treated as two gateways. Thus - G5 is identified as G5(10) and G5(26) by Gateway 1. - - - -21- - - - -IEN 196 11 September 1981 - - - - - FIGURE 9: ROUTING UPDATES BASED ON IEN # 109 METHOD - (SEE FIGURE 7 FOR CONFIGURATION) - - - - - NETWORK DISTANCES - - -SOURCE DEST. 1 2 3 4 10 26 27 - - - G1 ALL INF INF INF INF 0 0 INF - G2 G1 0 1 1 2 1 0 2 - G1 G2 INF INF INF INF 0 0 INF - G1 G3 1 2 2 3 0 0 3 - G1 G4 1 2 2 3 0 0 3 - G1 G5(10) 1 2 2 3 0 0 3 - G1 G5(26) 1 2 2 3 0 0 3 - G3 G1 1 0 1 2 INF 0 1 - G1 G2 INF 1 INF INF 0 0 2 - G1 G3 1 INF INF 2 0 0 INF - G1 G4 1 1 2 2 0 0 2 - G1 G5(10) 1 1 2 2 0 0 2 - G1 G5(26) 1 1 2 2 0 0 2 - G4 G1 INF INF 1 0 0 INF INF - G1 G2 INF 1 INF 1 0 0 2 - G1 G3 1 INF INF 1 0 0 INF - G1 G4 1 1 INF INF 0 0 2 - G1 G5(10) 1 1 2 1 0 0 2 - G1 G5(26) 1 1 2 1 0 0 2 - G5(10) G1 1 1 0 1 0 0 2 - G5(26) G1 1 1 0 1 0 0 2 - G1 G2 INF 1 1 1 0 0 2 - G1 G3 1 INF 1 1 0 0 INF - G1 G4 1 1 1 INF 0 0 2 - G1 G5(10) 1 1 INF 1 0 0 2 - G1 G5(26) 1 1 INF 1 0 0 2 - Assume loss of connectivity by G2 to Net.#1. - G2 G1 INF 1 1 INF INF 0 2 - G1 G2 7 1 1 1 0 0 2 - G1 G3 INF INF 1 1 0 0 INF - G1 G4 INF 1 1 INF 0 0 2 - G1 G5(10) INF 1 INF 1 0 0 2 - G1 G5(26) INF 1 INF 1 0 0 2 - - - -22- - - - -IEN 196 11 September 1981 - - -However, in this case, G3 has two paths of distance 1 through -which it can reach Net.#10. G3 can go through G1 to reach -Net.#10 in 1 hop or it can go through G5. Since both paths are -equal and minimum distance, both are reported in the routing -update. - -When routing updates are constructed to include both distance and -connectivity information as described above, gateways receive -enough information to perform path checks. This capability -enables gateways to avoid shuttling problems. - -The performance of path checks is illustrated in Figure 7. In -Figure 8, step 8, G2 sends a routing update which shows that G2 -has lost connectivity to Net.#1 (i.e., distance =inf.). G1 then -recomputes its minimum distance and routing with respect to -Net.#1. In these calculations G1 wants to find the shortest path -but also wants to ensure that it is a "true" path. Therefore, G1 -looks at the first path of distance 1. This path is provided by -G3. However, G3's "next" neighbor address on this path is G2. -G2 now shows a path of infinity to Net.#1, so G1 rejects the G3 -route. In examining the other routes of distance 1 (i.e., G5(10) -and G5(26)), G1 finds that they all go through G2 which G1 knows -is disconnected. Thus, all the paths of distance 1 are rejected. - -Next, G1 looks at the route of distance 2 provided by G4. G4 -shows two "next" addresses, G1 and G5, G1 rejects the path -through "next" address G1 since this path would obviously result -in shuttling. G1 then traces the route through "next" address -G5. Looking at the routing update provided by G5, G1 sees that -G5 intends to route traffic addressed to Net.#1 through G2. G2 -has already been identified as a dead-end. As G1 has examined -all known routes to Net.#1 and found no acceptable route, G1 -determines that it is infinity distance to Net.#1 and sends a -routing update to all its neighbors showing infinity distance to -Net.#1 (step 9). - -The rules involved in the routing scheme described in the example -plus a few additional rules of the proposed routing scheme are -defined as follows: - - A. On transmission of routing updates, the gateway reports its - actual distance (minimum distance vector) from each - network. In addition, for each network, the gateway - reports the "next" gateway address through which it will - route any packets addressed to the network. If more than - one path of the same minimum distance exists, the gateway - will report all possible "next" gateway addresses - associated with that network. In IEN # 109 terminology, - then, each gateway exchanges its "minimum distance vector" - and its "routing table (list of neighbor gateways through - which to send traffic to each network)." - - -23- - - - -IEN 196 11 September 1981 - - - B. On transmission of routing updates, the gateway sets a - timer The transmitting gateway does not recompute its - minimum distance vector or send any new routing updates - prior to timer expiration. - - C. Gateways calculate their routing updates and routing tables - on the basis of the minimum distance rule. Having selected - the minimum distance path to a network, the gateway checks - the "next" gateway address. - - 1. If the "next" gateway address is this gateway this - path is considered unacceptable and the next - candidate path is checked. - - 2. If the "next" gateway address is other than this - gateway, use the information in the routing update - matrix to determine if this path (distance of 1 or - greater) is through a gateway which has reported - "infinite" distance to the network in question. If - any step of the path is through a gateway showing - "infinite" distance to the network, the path is - considered unacceptable and the next candidate path - is checked. - -Figure 8 shows the routing updates transmitted for the -configuration shown in Figure 7 when routing is performed IAW IEN -# 109. Figure 8 shows the routing updates transmitted for the -same configuration (Figure 7) when the proposed routing scheme is -used. Both examples are worked from the perspective of G1. - -The examples show the differences in the routing updates -generated under each rule. In both cases, packets would be -routed correctly. In the proposed routing scheme (see Figure 8), -fewer routing updates are transmitted with the same results -obtained. This reduced traffic is due, in part, to the rule -requiring the gateway to observe a time-delay between -transmission of routing packets. This rule is particularly -useful when bringing a gateway on-line because it allows the -gateway to receive updates from all or almost all of its -neighbors before responding with its next updates. In addition, -the gateway is able to respond to the loss of connectivity to -Net.#1 correctly based on the update input from G2 (see Figure 8) -following the new method whereas, following the old rules (see -Figure 9), G1 must receive updates from all neighbors before -correctly determining that it has no path to Net.#1. - - - -24- - - - -IEN 196 11 September 1981 - - -Under the proposed method, the gateway has a more complex -algorithm to calculate its routing table. However, once -calculated, the gateway does not need to "tailor" the updates to -each neighbor but sends the same information to all neighbors. -Also, the gateway does not maintain a copy of the last update -transmitted to determine whether there is new information to be -transmitted since it transmits updates only when its routing -table changes. Under IEN # 109, the gateway is required to -maintain copies of each update last sent to each neighbor and -compose the new "tailored" updates on an individual basis to -those last sent. - -Finally, the proposed routing method can be correctly implemented -without requiring any special rules regarding treatment of -non-routing neighbors. The path checks built into the new -routing scheme preclude the shuttling problems described above -which could have occured if non-routing gateways were not treated -as exceptions. - - - - - - - - -References - - 1) V. Strazisar, "Gateway Dynamic Routting", IEN # 25, Bolt, - Beranek and Newman, January 25, 1978. - - 2) V. Strazisar, R. Perlman, "Gateway Routing, An - Implementation Specification", IEN # 30, April 11, 1978. - - 3) V. Strazisar, "How to Build a Gateway", IEN # 109, August - 31, 1979. - - - - - - - - - - - - - - -25- - - diff --git a/text/ien/ien197.txt b/text/ien/ien197.txt deleted file mode 100644 index 275f7336..00000000 --- a/text/ien/ien197.txt +++ /dev/null @@ -1,2204 +0,0 @@ - - - - - - - - - - IEN - 197 - - - - - A Host Monitoring Protocol - - - - - - - - - - - - - - - - Benjamin M. Littauer - Andrew J. Huang - Robert M. Hinden - - - - - - Bolt Beranek and Newman Inc. - - - - - - September 1981 - - - - - - - - - - - - - -IEN-197 September 1981 - - - Table of Contents - - - - -1 Introduction.......................................... 1 -2 Protocol Operation.................................... 2 -2.1 Unsolicited Messages................................ 3 -2.2 Status Messages..................................... 4 -2.3 Statistics Messages................................. 4 -3 Header Formats........................................ 6 -3.1 IP Headers.......................................... 6 -3.2 Monitor Header...................................... 7 -4 Monitor Message Formats............................... 9 -4.1 System Type 1: General Messages..................... 9 -4.1.1 Message Type 1: Polling Message................... 9 -4.1.2 Message Type 2: Error in Poll.................... 11 -4.2 System Type 2: IMP................................. 13 -4.2.1 Message Type 1: IMP Trap......................... 13 -4.2.2 Message Type 2: IMP status....................... 16 -4.2.3 Message Type 3: IMP Modem Throughput............. 20 -4.2.4 Message Type 4: IMP Host Throughput.............. 23 -4.3 System Type 3: TAC................................. 26 -4.3.1 Message Type 1: TAC Trap Message................. 26 -4.3.2 Message Type 2: TAC Status....................... 29 -4.3.3 Message Type 3: TAC Throughput................... 32 - - - - - - - - - - - - - - - - - - - - - - - - - - - -i- - - -IEN-197 September 1981 - - - A Host Monitoring Protocol - - - - - -1 Introduction - - - The Host Monitoring Protocol (HMP) is used to collect - -information from hosts in various networks. At present the - -protocol aims at collecting information from ARPANET IMPs and - -TACs in an internet environment. It is designed to be - -extensible to other monitoring functions (e.g. hosts, gateways, - -local nets) while its addressing and control structures allow - -it to operate as well within a single network. In - -implementation it is a portion of a larger system, the Network - -Operations Center (NOC). - - - The monitoring algorithm relies on polling for - -messages; the Host Monitor (HM) periodically sends a polling - -message to the host being monitored, requesting a specified - -report. The host then creates the report and sends it to the HM. - -Missing reports are detected as unanswered polls and duplicate - -polls are sent to have the report retransmitted. Some messages - -cannot be polled for and these are sent to the HM - -spontaneously. Checksums calculated on the data portions of all - -messages assure their integrity. - - - The HMP implements a password scheme in order to restrict - -access to monitoring information. The monitored hosts check each - - - -1- - - -IEN-197 September 1981 - - -poll message for a valid password before responding; this helps - -prevent unauthorized use of the monitor system. The HMP is not - -intended to be a highly secure protocol. - - - - - -2 Protocol Operation - - - The HMP is designed to operate reliably in the - -internet environment. To gain this measure of - -reliability it uses polling. The HM sends polling messages - -requesting reports to the monitored hosts. A host, upon - -receiving the poll, verifies the message and, if it is - -acceptable, sends the appropriate report to the poll source. The - -HM, after transmitting the poll, awaits the corresponding report. - -If it is not received within a reasonable interval, another - -poll is sent assuming that either the previous poll or the - -answering report was lost. If after a number of repeated - -polls no response has been received, it can be reasonably - -concluded that the host is unreachable and the polling frequency - -is reduced to a background level. This minimizes traffic - -but, since polling continues, a poll will reach the host once it - -becomes reachable. When a report is received the normal poll - -frequency is resumed. - - - - The most important reason for choosing polling over other - -methods of detecting lost messages is that it centralizes control - - - -2- - - -IEN-197 September 1981 - - -of monitoring in a dedicated HM, rather distributing it - -throughout the network of monitored hosts. This frees resources - -in the monitored systems and also allows the HM to regulate the - -flow of monitoring messages to prevent overloading of the HM's - -resources. - - - - There are three classes of data with which the monitoring - -protocol is concerned. These are (1) reports of unexpected - -changes of status or error conditions, (2) reports of the current - -state of the host, and (3) reports of statistics and throughput - -data. These three kinds of data are handled in different ways by - -the HMP as described below. - - - - - -2.1 Unsolicited Messages - - - These are reports of unexpected changes of status or error - -condition reports (traps) which the monitor should be informed of - -as they occur. They are not polled, but are instead sent - -directly to a particular HM. If the address of the HM must be - -changed for unsolicited messages, it will be done by external - -means (e.g. packet core protocol). - - - - - - - - - - - -3- - - -IEN-197 September 1981 - - -2.2 Status Messages - - - These are reports of the current state of a system; they - -contain any kind of information which is not cumulative. The HM - -will poll for these on a periodic basis. When a monitored host - -receives a poll for a status message, it assembles a message with - -the current data pertaining to its status. Since this is an - -instantaneous "picture" of a system, it is not critical if any - -particular status report is lost. - - - - -2.3 Statistics Messages - - - These messages, also called throughput messages, contain - -data collected on a periodic basis. The information will be - -collected in a monitored machine using a double buffering system. - -At the end of each collection period, a message will be assembled - -and the counters will be cleared. During the next collection - -period, any HMs polling for a statistics message will be sent - -this message. - - - - The collection frequency for statistics messages from a - -particular host must be relatively long compared to the average - -round trip message time between the HM and that host to allow the - -HM to re-poll if it does not receive an answer. With this - -restriction it should be possible to avoid missing any statistics - -messages in most cases. Each statistics message will contain a - - - -4- - - -IEN-197 September 1981 - - -field giving the (local) time when the data was collected, and - -the time at which the message was sent (*). This will allow the - -HM to schedule its polling so that the poll arrives near the - -beginning of each collection period. This is done to ensure that - -if a message is lost, the HM will have sufficient time to try - -again to get the statistics message for that period. Sequence - -numbers will be used to detect the loss of a message for a - -period, and also to eliminate duplicate messages. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -_______________ -* The units of the local time should be large enough to guarantee -a rollover time of at least one hour. - - - - -5- - - -IEN-197 September 1981 - - -3 Header Formats - - [Note: Any field labeled "unused" is reserved for later - extensions and must be zero when sent.] - - - Monitor messages have the following format: - - +----------------+ - | Local Network | - | Header(s) | - +----------------+ - | IP header | - +----------------+ - | Internet | - | Monitor | - | Header | - +----------------+ - | D | - | A | - | T | - | A | - +----------------+ - | Padding | - +----------------+ - - - The local header(s) depend on the local network, and do not - concern us here. - - - - -3.1 IP Headers - - HMP messages are sent using the version 4 IP header as - described in IEN-128 (RFC-760). The HMP protocol number is - 20 (decimal). The time to live field should be set to the - maximum value. All other fields should be set as specified - in IEN-128. - - - - - - - - - - - - - -6- - - -IEN-197 September 1981 - - -3.2 Monitor Header - - The monitor header format is: - - 1 0 0 0 - 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 - +---------------+---------------+ - 0 | System Type | Message Type | - +---------------+---------------+ - 1 | Port Number | - +---------------+---------------+ - 2 | Sequence Number | - +---------------+---------------+ - 3 | Password or Returned Seq. # | - +---------------+---------------+ - 4 | One's Complement Checksum | - +---------------+---------------+ - -HMP FIELDS: - -System Type -Message Type - - The combination of system type and message type determines - the format of the data in the monitoring message. - - The system types which have been defined are: - - - System Type | Meaning - ----------------+----------------- - 1 | General Messages - 2 | IMP - 3 | TAC - - Message types are defined for each system type according to - the needs of that system. Message types and their formats - for each system are defined below. - -Port Number - - The Port Number field is presently unused. It can be used - to multiplex similar messages from/to different processes in - one host. - -Sequence Number - - Every message contains a sequence number. The sequence - number is incremented when each new message of that type is - sent. - - - -7- - - -IEN-197 September 1981 - - -Password or Returned Sequence Number - - The Password field of a polling message from an HM contains - a password to verify that the HM is allowed to gather - information. Responses to polling messages copy the - Sequence Number from the polling message and return it in - this field for identification and round-trip time - calculations. - -Checksum - - The Checksum field is the one's complement of the one's - complement sum of all the 16-bit words in the header and - data area. As with the checksum in the TCP header (see - IEN-129), the checksum also covers a 96-bit pseudo header - containing the source address, the destination address, the - protocol (20), and the length of the monitoring message in - bytes. The fields of the pseudo header are as defined for - the IP header. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -8- - - -IEN-197 September 1981 - - -4 Monitor Message Formats - -4.1 System Type 1: General Messages - -4.1.1 Message Type 1: Polling Message - -Description - - The HM will send polls to the machines it is monitoring - according to its polling algorithm. Multiple requests can - be combined in a single message, but each request is still - considered a separate poll. - - The polled machine will return a message of each type - requested; it will only answer a poll with the correct - system type and password. It will return an error message - (System Type 1; Message Type 2) if it receives a poll for - the wrong system type or an unsupported message type. - - A polling message has the following form: - - 1 0 0 0 - 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 - +---------------+---------------+ - 0 | R-Message Type| R-Subtype | - . +---------------+---------------+ - . : :\ additional - . : : > message - : :/ requests - +---------------+---------------+ - -HMP FIELDS - -System Type - - General Messages = 1 - -Message Type - - Polling Message = 1 - -Port Number - - Unused - -Sequence Number - - The sequence number identifies the polling request. An HM - will have separate sequences for each host it monitors. The - sequence number is returned in the response to a poll; the - - - -9- - - -IEN-197 September 1981 - - - HM will use this information to associate polls with their - responses and to determine round trip times. - -Password - - The monitoring password. - -POLL FIELDS - -R-Message Type - - The message type requested. - -R-Subtype - - Presently unused, this field might later be used to specify - options or include additional data in a polling message. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -10- - - -IEN-197 September 1981 - - -4.1.2 Message Type 2: Error in Poll - -Description - - This message is sent in response to a faulty poll and - specifies the nature of the error. - - An error message has the following form: - - 1 0 0 0 - 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 - +---------------+---------------+ - 0 | Error Type |\ first - +---------------+---------------+ > error - 1 | R-Message Type| R-Subtype |/ report - . +---------------+---------------+ - . : :\ additional - . : : > error - : :/ reports - +---------------+---------------+ - -HMP FIELDS - -System Type - - General Messages = 1 - -Message Type - - Error Message = 2 - -Port Number - - Unused - -Sequence Number - - A 16 bit number incremented each time an error message is - sent. - -Returned Sequence Number - - The Sequence Number of the polling message which caused the - error. - - - - - - - - - -11- - - -IEN-197 September 1981 - - -ERROR MESSAGE FIELDS - -Error Type - - This field specifies the nature of the error in the poll. - The following error types have been defined. - - - 1 = Reason unspecified. - 2 = Bad R-Message Type. - 3 = Bad R-Subtype. - -R-Message Type -R-Subtype - - These fields identify the poll request in error. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -12- - - -IEN-197 September 1981 - - -4.2 System Type 2: IMP - -4.2.1 Message Type 1: IMP Trap - -Description - - When a trap occurs, it is buffered in the IMP and sent as - soon as possible. Trap messages are unsolicited. If traps - happen in close sequence, several traps may be sent in one - message. - - Through the use of sequence numbers, it will be possible to - determine how many traps are being lost. If it is - discovered that many are lost, a polling scheme might be - implemented for traps. - - A IMP trap message has the following form: - - 1 0 0 0 - 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 - +---------------+---------------+ - 0 | # of traps lost | - +---------------+---------------+ - 1 : first : - . : trap : - . : data : - . +---------------+---------------+ - . : additional : - . : trap : - . : data : - +---------------+---------------+ - - -HMP Fields - -System Type - - IMP = 2 - -Message Type - - IMP Trap Message = 1 - -Port Number - - Unused - -Password - - Unused - - - -13- - - -IEN-197 September 1981 - - -Sequence Number - - A 16 bit number incremented each time a trap message is sent - so that the HM can order the received trap messages and - detect missed messages. - -IMP TRAP FIELDS - -# of traps lost - - Under certain conditions, an IMP may overflow its internal - trap buffers and be unable to save traps to send. This - counter keeps track of such occurrences. - -Trap Reports - - There can be several blocks of trap data in each message. - The format for each such block is below. - - - - +---------------+---------------+ - | Size | - +---------------+---------------+ - | Time | - +---------------+---------------+ - | Trap ID | - +---------------+---------------+ - : Trap : - : Data : - +---------------+---------------+ - - - Size - - Size is the number of 16 bit words in the trap, not counting - the size field. - - Time - - The time (in 640 ms. units) at which the trap occurred. - This field is used to sequence the traps in a message and - associate groups of traps. - - Trap ID - - This is usually the program counter at the trap. The ID - identifies the trap, and does not have to be a program - counter, provided it uniquely identifies the trap. - - - - -14- - - -IEN-197 September 1981 - - - Trap Data - - The IMP returns data giving more information about the trap. - There are usually two entries: the values in the accumulator - and the index register at the occurrence of the trap. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -15- - - -IEN-197 September 1981 - - -4.2.2 Message Type 2: IMP status - -Description - - The status message gives a quick summary of the state of the - IMP. Status of the most important features of the IMP are - reported as well as the current configuration of the - machine. - - The format of the status message is as follows: - - 1 0 0 0 - 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 - +---------------+---------------+ - 0 | Software Version Number | - +---------------+---------------+ - | Last Trap Message | - +---------------+---------------+ - | Hosts | Modems | - +---------------+---------------+ - | Package bits | - +---------------+---------------+ - | TIP version | - +---------------+---------------+ - 5 | restart/reload | - +---------------+---------------+ - | Host | - + + - | Test | - + + - | Results | - +---------------+---------------+ - | | - + Crash + - 10 | | - + Data + - | | - +---------------+---------------+ - | Anomalies | - +---------------+---------------+ - 13 | HIHD0 | HIHD1 | HIHD2 | HIHD3 | - . +---------------+---------------+ - . : HIHD4 | ............... : - . +---------------+---------------+ - (cont.) - - - - - - - - -16- - - -IEN-197 September 1981 - - - - - Imp Status (cont.) - - . +---------------+---------------+ - . | Modem | - . + State + - . | Data | - . +---------------+---------------+ - . : Modem State : - . : Data...... : - +---------------+---------------+ - - - -HMP FIELDS - -System Type - - IMP = 2 - -Message Type - - IMP status message = 2 - -Port Number - - Unused - -Sequence Number - - A 16 bit number incremented each time a status message is - sent. - -Password - - The password contains the sequence number of the polling - message to which this message responds. - -IMP STATUS FIELDS - -Software Version Number - - The IMP version number. - -Last Trap Message - - Contains the sequence number of the last trap message sent - to the HM. This will allow the HM to detect how many trap - messages are being lost. - - - -17- - - -IEN-197 September 1981 - - -Hosts - - The number of configured hosts in this system. - -Modems - - The number of configured modems in this system. - -Package Bits - - This is a bit encoded word that reports the set of packages - currently loaded in the system. The table below defines the - bits. - - Bit Package - (octal) - 1 VDH - 2 TIP - 4 experimental - 10 Cumulative Statistics - 20 Trace - 40 TTY - 100 DDT - 200 Store and Forward statistics - 400 End-to-end Statistics - 1000 Level measurements - -TIP version - - The TIP version number if a TIP is loaded or zero if not. - -Restart/Reload - - This word reports a restart or reload of an IMP. - - Value Meaning - 1 restarted - 2 reloaded - -Host Test Results - - These three words report the result of the host test, if - any. If a test is running, the first word will contain the - host number, the second and third will contain the number of - NOPs sent and received, respectively. If no test is - running, the first word will contain a -1. - -Crash Data - - Crash data reports the circumstances surrounding an - - - -18- - - -IEN-197 September 1981 - - - unexpected crash. The first word reports the location of - the crash and the following two are the contents of the - accumulator and index registers. - -Anomalies - - Anomalies is a collection of bit flags that indicate the - state of various switches or processes in the IMP. These - are very machine dependent and only a representative - sampling of bits is listed below. - - Bit Meaning - (octal) - 1 Sense Switch 1 ON - 2 Sense Switch 2 ON - 4 Sense Switch 3 ON - 10 Sense Switch 4 ON - 20 Override ON - 200 Trace ON - 2000 Message Generator ON - -HIHD0 - HIHDn - - Each four bit HIHD field gives the state of the - corresponding host. - - Value Meaning - 0 UP - 1 ready line down - 2 tardy - 3 non-existent - 4 VDH host not initialized - - -Modem State Data - - Modem state data contains four byte fields of data. The - first field indicates the line speed in a machine dependent - fashion; the second field is the number of line protocol - ticks covered by this report; the third is the neighbor on - the line, and the fourth is a count of missed protocol - packets over the interval specified in the second field. - - - - - - - - - - - -19- - - -IEN-197 September 1981 - - -4.2.3 Message Type 3: IMP Modem Throughput - -Description - - The modem throughput message reports traffic statistics for - each modem in the system. The IMP will collect these data at - regular intervals and save them awaiting a poll from the HM. - If a period is missed by the HM, the new results simply - overwrite the old. Two time stamps bracket the collection - interval (data-time and prev-time) and are an indicator of - missed reports. In addition, mess-time indicates the time - at which the message was sent. - - The modem throughput message will accommodate up to fourteen - modems in one packet. A provision is made to split this - into multiple packets by including a modem number for the - first entry in the packet. This field is not immediately - useful, but if machine sizes grow beyond fourteen modems or - if modem statistics become more detailed and use more than - three words per modem, this can be used to keep the message - within a single ARPANET packet. - - The format of the modem throughput message is as follows: - - 1 0 0 0 - 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 - +---------------+---------------+ - 0 | Mess-Time | - +---------------+---------------+ - | Software Version Number | - +---------------+---------------+ - | Data-Time | - +---------------+---------------+ - | Prev-Time | - +---------------+---------------+ - | Total Modems | This Modem | - +---------------+---------------+ - 5 | | - . + modem + - . | | - . + throughput + - . | | - . +---------------+---------------+ - . : modem : - . : : - . : throughput : - +---------------+---------------+ - - - - - - -20- - - -IEN-197 September 1981 - - -HMP FIELDS - - -System Type - - IMP = 2 - -Message Type - - IMP Modem Throughput message = 3 - -Port Number - - Unused - -Sequence Number - - A 16 bit number incremented at each collection interval - (i.e. when a new throughput message is assembled). The HM - will be able to detect lost or duplicate messages by - checking the sequence numbers. - -Password - - The password contains the sequence number of the polling - message to which this message responds. - -IMP MODEM THROUGHPUT FIELDS - -Mess-time - - The time (in 640ms. units) at which the message was sent to - the HM. - -Software Version Number - - The IMP version number. - -Data-Time - - Data-time is the time (in 640ms. units) when this set of - data was collected. (See Description.) - -Prev-Time - - Prev-time is the time (in 640 ms. units) of the previous - collection of data (and therefore, is the time when the data - in this message began accumulating.) - -Total Modems - - - -21- - - -IEN-197 September 1981 - - - This is the number of modems in the system. - -This Modem - - This Modem is the number of the first modem reported in this - message. Large systems that are unable to fit all their - modem reports into a single packet may use this field to - separate their message into smaller chunks to take advantage - of single packet message efficiencies. - -Modem Throughput - - Modem throughput consists of three words of data - reporting packets and words output on each modem. The - first word counts packets output and the following two - count word throughput. The double precision words are - arranged high order first. (Note also that messages from - Honeywell type machines (316s, 516s and C30s) use a fifteen - bit low order word.) The first block reports output on the - modem specified by "This Modem". The following blocks - report on consecutive modems. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -22- - - -IEN-197 September 1981 - - -4.2.4 Message Type 4: IMP Host Throughput - -Description - - The host throughput message reports traffic statistics for - each host in the system. The IMP will collect these data at - regular intervals and save them awaiting a poll from the HM. - If a period is missed by the HM, the new results simply - overwrite the old. Two time stamps bracket the collection - interval (data-time and prev-time) and are an indicator of - missed reports. In addition, mess-time indicates the time - at which the message was sent. - - The host throughput format will hold only three hosts if - packet boundaries are to be respected. A provision is made - to split this into multiple packets by including a host - number for the first entry in the packet. - - The format of the host throughput message is as follows: - - 1 0 0 0 - 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 - +---------------+---------------+ - 0 | Mess-Time | - +---------------+---------------+ - | Software Version Number | - +---------------+---------------+ - | Data-Time | - +---------------+---------------+ - | Prev-Time | - +---------------+---------------+ - | Total Hosts | This Host | - +---------------+---------------+ - 5 : host : - . : throughput : - +---------------+---------------+ - -HMP FIELDS - -System Type - - IMP = 2 - -Message Type - - IMP host Throughput message = 4 - -Port Number - - Unused - - - -23- - - -IEN-197 September 1981 - - -Sequence Number - - A 16 bit number incremented at each collection interval - (i.e. when a new throughput message is assembled). The HM - will be able to detect lost or duplicate messages by - checking the sequence numbers. - -Password - - The password contains the sequence number of the polling - message to which this message responds. - -IMP HOST THROUGHPUT FIELDS - -Mess-time - - The time (in 640ms. units) at which the message was sent to - the HM. - -Software Version Number - - The IMP version number. - -Data-Time - - Data-time is the time (in 640ms. units) when this set of - data was collected. (See Description.) - -Prev-Time - - Prev-time is the time (in 640 ms. units) of the previous - collection of data (and therefore, is the time when the data - in this message began accumulating.) - -Total Hosts - - The total number of hosts in this system. - -This Host - - This host is the number of the first host reported in this - message. Large systems that are unable to fit all their - host reports into a single packet may use this field to - separate their message into smaller chunks to take advantage - of single packet message efficiencies. - - - - - - - - -24- - - -IEN-197 September 1981 - - -Host Throughput - - Each host throughput block consists of twelve words in the - following format: - - +---------------+---------------+ - | messages to network | - +---------------+---------------+ - | messages from network | - +---------------+---------------+ - | packets to net | - +---------------+---------------+ - | packets from net | - +---------------+---------------+ - | messages to local | - +---------------+---------------+ - | messages from local | - +---------------+---------------+ - | packets to local | - +---------------+---------------+ - | packets from local | - +---------------+---------------+ - | words to imp | - | (double precision) | - +---------------+---------------+ - | words from imp | - | (double precision) | - +---------------+---------------+ - - Each host throughput message will contain several blocks of - data. The first block will contain data for the host - specified in First Host Number. Following blocks will - contain data for consecutive hosts. All counters are single - precision with the exception of the two word counters which - are double precision. The double precision words are - arranged high order first. Note also that messages from - Honeywell type machines (316s, 516s and C30s) use a fifteen - bit low order word. - - - - - - - - - - - - - - - -25- - - -IEN-197 September 1981 - - -4.3 System Type 3: TAC - -4.3.1 Message Type 1: TAC Trap Message - -Description - - When a trap occurs, it is buffered in the TAC and sent as - soon as possible. Trap messages are unsolicited. If traps - happen in close sequence, several traps may be sent in one - message. - - Through the use of sequence numbers, it will be possible to - determine how many traps are being lost. If it is - discovered that many are lost, a polling scheme might be - implemented for traps. - - A TAC trap message has the following form: - - 1 0 0 0 - 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 - +---------------+---------------+ - 0 | # of traps lost | - +---------------+---------------+ - 1 : first : - . : trap : - . : data : - . +---------------+---------------+ - . : additional : - . : trap : - . : data : - +---------------+---------------+ - - -HMP FIELDS - -System Type - - TAC = 3 - -Message Type - - TAC Trap Message = 1 - -Port Number - - Unused - -Password or Returned Sequence Number - - Unused - - - -26- - - -IEN-197 September 1981 - - -Sequence Number - - A 16 bit number incremented each time a trap message is sent - so that the HM can order the received trap messages and - detect missed messages. - -TAC TRAP FIELDS - -# of traps lost - - Under certain conditions, a TAC may overflow its internal - trap buffers and be unable to save traps to send. This - counter keeps track of such occurrences. - -Trap Reports - - There can be several blocks of trap data in each message. - - The format of the trap data is as follows: - - - +---------------+---------------+ - | Size | - +---------------+---------------+ - | Time | - +---------------+---------------+ - | Trap ID | - +---------------+---------------+ - : Trap : - : Data : - +---------------+---------------+ - - - Size - - Size is the number of 16 bit words in the trap, not counting - the size field. - - Time - - The time (in 640ms. units) at which the trap occurred. This - field is used to sequence the traps in a message and - associate groups of traps. - - Trap ID - - This is (usually) the program counter at the trap. The ID - identifies the trap, and does not have to be a program - counter, provided that it uniquely identifies the trap. - - - - -27- - - -IEN-197 September 1981 - - - Trap Data - - The TAC returns data giving more information about the trap. - There are usually two entries: the values in the accumulator - and the index register at the occurrence of the trap. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -28- - - -IEN-197 September 1981 - - -4.3.2 Message Type 2: TAC Status - -Description - - The status message gives a quick summary of the state of the - TAC. Status of the most important features of the TAC are - reported as well as the current configuration of the - machine. - - - A TAC status message has the following form: - - - 1 0 0 0 - 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 - +---------------+---------------+ - 0 | Version Number | - +---------------+---------------+ - | Last Trap Message | - +---------------+---------------+ - | Bit Flags | - +---------------+---------------+ - | Free PDB count | - +---------------+---------------+ - | Free MBLK count | - +---------------+---------------+ - 5 | # of TCP connections | - +---------------+---------------+ - | # of NCP connections | - +---------------+---------------+ - | restart/reload | - +---------------+---------------+ - | | - + Crash + - | | - + Data + - 10 | | - +---------------+---------------+ - - -HMP FIELDS - -System Type - - TAC = 3 - -Message Type - - TAC Status Message = 2 - - - - -29- - - -IEN-197 September 1981 - - -Port Number - - Unused - -Sequence Number - - A 16 bit number incremented each time a status message is - sent. - -Returned Sequence Number - - Contains the sequence number from the polling message - requesting this report. - -TAC STATUS FIELDS - -Version Number - - The TAC's software version number. - -Last Trap Message - - Contains the sequence number of the last trap message sent - to the HM. This will allow the HM to detect how many trap - messages are being lost. - -Bit Flags - - There are sixteen bit flags available for reporting the - state of various switches (hardware and software) in the - TAC. The bits are numbered as follows for purposes of the - discussion below. - - 1 1 0 0 0 - 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | | | | | | | | | | | | | | | | | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - - The bit flags report the status of the following: - - Bit Meaning - 0 0 => DDT override off; 1 => override on. - 1-4 0 => Sense Switch n is off; 1 => SSn on. - 5 0 => Extended DDT not enabled; - 1 => Extended DDT enabled. - 6 0 => Traps going to console; - 1 => Traps going to remote monitor. - 7-15 unused - - - - -30- - - -IEN-197 September 1981 - - -Free PDB count - - The number of PDBs on the free queue. - -Free MBLK count - - The number of MBLKs on the free queue. - -# of TCP connections -# of NCP connections - - The number of open connections for each protocol. - -Restart/Reload - - This word reports a restart or reload of the TAC - - Value Meaning - 1 restarted - 2 reloaded - - -Crash Data - - Crash data reports the circumstances surrounding an - unexpected crash. The first word reports the location of - the crash and the following two are the contents of the - accumulator and index registers. - - - - - - - - - - - - - - - - - - - - - - - - - -31- - - -IEN-197 September 1981 - - -4.3.3 Message Type 3: TAC Throughput - -Description - - The TAC throughput message reports statistics for the - various modules of the TAC. The TAC will collect these data - at regular intervals and save them awaiting a poll from the - HM. If a period is missed by the HM, the new results simply - overwrite the old. Two time stamps bracket the collection - interval (data-time and prev-time) and are an indicator of - missed reports. In addition, mess-time indicates the time - at which the message was sent. - - - A TAC throughput message has the following form: - - 1 0 0 0 - 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 - +---------------+---------------+ - 0 | Mess-Time | - +---------------+---------------+ - | Data-Time | - +---------------+---------------+ - | Prev-Time | - +---------------+---------------+ - | Version Number | - +---------------+---------------+ - | Last Trap Message | - +---------------+---------------+ - 5 | Bit Flags | - +---------------+---------------+ - | Free PDB count | - +---------------+---------------+ - | Free MBLK count | - +---------------+---------------+ - | # of TCP connections | - +---------------+---------------+ - | # of NCP connections | - +---------------+---------------+ ---- - 10 | Host Input Throughput | ^ - +---------------+---------------+ | - | Host Input Abort Count | | - +---------------+---------------+ | - | Host Input Garbled Count | | - +---------------+---------------+ | - | Host Output Throughput | 1822 info. - +---------------+---------------+ | - (continued) - - - - - -32- - - -IEN-197 September 1981 - - - - TAC throughput (cont.) - - +---------------+---------------+ | - | Host Output Abort Count | 1822 info. - +---------------+---------------+ | - 15 | Host Down Count | v - +---------------+---------------+ ---- - | # of datagrams sent | ^ - +---------------+---------------+ | - | # of datagrams received | | - +---------------+---------------+ IP info. - | # of datagrams discarded | | - +---------------+---------------+ | - | # of fragments received | v - +---------------+---------------+ ---- - 20 | # of segments sent | ^ - +---------------+---------------+ | - | # of segments received | | - +---------------+---------------+ | - | # of segments discarded | | - +---------------+---------------+ TCP info. - | # of octets sent | | - +---------------+---------------+ | - | # of octets received | | - +---------------+---------------+ | - 25 | # of retransmissions | v - +---------------+---------------+ ---- - | # of messages sent | ^ - +---------------+---------------+ | - | # of messages received | | - +---------------+---------------+ | - | # of messages flushed | | - +---------------+---------------+ | - | # of bytes sent | | - +---------------+---------------+ | - 30 | # of bytes received | | - +---------------+---------------+ NCP info. - | # of ERRs received | | - +---------------+---------------+ | - | # of RASs received | | - +---------------+---------------+ | - | # of RAPs received | | - +---------------+---------------+ | - | # of NXSs received | | - +---------------+---------------+ | - 35 | # of NXRs received | | - +---------------+---------------+ | - | # of RSTs received | v - +---------------+---------------+ ---- - - - -33- - - -IEN-197 September 1981 - - -HMP FIELDS - -System Type - - TAC = 3 - -Message Type - - TAC Throughput Message = 3 - -Port Number - - Unused - -Sequence Number - - A 16 bit number incremented at each collection interval - (i.e. when a new throughput message is assembled). The HM - will be able to detect lost or duplicate messages by - checking the sequence numbers. - -Returned Sequence Number - - Contains the sequence number from the polling message - requesting this report. - -TAC THROUGHPUT FIELDS - -Mess-time - - The time (in 640ms. units) at which the message was sent to - the HM. - -Data-Time - - Data-time is the time (in 640ms. units) when this set of - data was collected. (See Description.) - -Prev-Time - - Prev-time is the time (in 640 ms. units) of the previous - collection of data (and therefore, is the time when the data - in this message began accumulating.) - -Version Number - - The TAC's software version number. - - - - - - -34- - - -IEN-197 September 1981 - - -Last Trap Message - - Contains the sequence number of the last trap message sent - to the HM. This will allow the HM to detect how many trap - messages are being lost. - - - -Bit Flags - - There are sixteen bit flags available for reporting the - state of various switches (hardware and software) in the - TAC. The bits are numbered as follows for purposes of the - discussion below. - - - 1 1 0 0 0 - 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | | | | | | | | | | | | | | | | | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - - - - The bit flags report the status of the following: - - Bit Meaning - 0 0 => DDT override off; 1 => override on. - 1-4 0 => Sense Switch n is off; 1 => SSn on. - 5 0 => Extended DDT not enabled; - 1 => Extended DDT enabled. - 6 0 => Traps going to console; - 1 => Traps going to remote monitor. - 7-15 unused - - - -Free PDB count - - The number of PDBs on the free queue. - -Free MBLK count - - The number of MBLKs on the free queue. - -# of TCP connections -# of NCP connections - - The number of open connections for each protocol. - - - - -35- - - -IEN-197 September 1981 - - -1822 info. - - These six fields report statistics which concern the - operation of the 1822 protocol module, i.e. the interface - between the TAC and its IMP. - -IP info. - - These four fields report statistics which concern Internet - Protocol in the TAC. - -TCP info. - - These six fields report statistics which concern TCP - protocol in the TAC. - -NCP info. - - These eleven fields report statistics which concern NCP - protocol in the TAC. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -36- - - diff --git a/text/ien/ien198.txt b/text/ien/ien198.txt deleted file mode 100644 index 1c4be3d3..00000000 --- a/text/ien/ien198.txt +++ /dev/null @@ -1,1057 +0,0 @@ - - - - - - INDRA - Working - Paper - IEN 198 - INDRA Note 1041 - 15th. September 1981 - - - - - - - - - - - - - - - - Extended Memory MOS for a UNIX Development Host - - - - - - - Robert Cole - - - - - - - ABSTRACT: This note describes a version of the - RSRE Extended Memory MOS that can be used - with a UNIX development host. The run- - time MOS system design is explained. The - linking and loading phases are described. - Documentation is included in an appendix. - - - - - - - Department of Computer Science - University College, London - - - Extended Memory MOS for IEN 198 - a UNIX Development Host INDRA Note 1152 - - - - - C O N T E N T S - - - 1. Introduction..............................................2 - - 2. Linking on UNIX...........................................3 - - 3. Loading...................................................5 - - 4. MOS Initialisation........................................7 - - 5. MOS Runtime...............................................7 - - 6. DDT.......................................................7 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - [Robert Cole] - - - 1. Introduction - - Recently a version of MOS (Micro Operating System) was - developed at RSRE [1] which enabled the extra memory capacity - of 11/23 and 11/34 computers to be used. The development was - carefully designed to increase the buffer space available to - all processes without adding significant 'context switching' - overheads. A further development at UCL has used the same - design, but for use on a UNIX development host. Standard UNIX - software does not cater for extended memory systems to be - built by users. As a result a new linker was produced, giving - some flexibility to the resulting MOS system. It was decided - to extend the EMMOS system of RSRE by using both USER and - KERNEL addressing modes to provide extra protection and - addressing space. - - Figure 1 shows the two address mode maps that are used at - runtime. - - page - ___________ ___________ - | | | stack | - | | |---------| - | I/O | | process | - | page | 7 | buffers | - | | |---------| - | | | data | - |_________| |_________| - | | | process || write - | DDT | 6 | text || protected - |_________| |_________|| - | | | | - : : 5 : : - : shared : : : shared : - : buffers : : : buffers : - : : 2 : : - |_________| |_________| - |PCTs+DCTs| 1 |PCTs+DCTs|| - | drivers | | drivers || write - | MOS | 0 | MOS || protected - |_________| |_________|| - kernel user - Figure 1. Runtime Memory Map - - Here the I/O page is only available to the Kernel mode and - both MOS and the process instructions are protected during - process execution. The UNIX object format naturally separates - text (instructions) from data (program variables) so it is - possible to use this in our design. The last page of the user - address space is loaded with the process data at the bottom - and the process stack is created at the top. The full 8K - bytes is allocated so any space left between can be used as - - - - 2 - [Robert Cole] - - - - Extended Memory MOS for IEN 198 - a UNIX Development Host INDRA Note 1152 - - process private buffer space and managed by the system buffer - management code. - - Buffers, which are common to all processes, are set up - above the MOS Kernel and below the processes. Normally the - processes are all loaded in pages 6 and 7, however a very - large process may force this boundary down to page 5. The - size of the MOS Kernel will vary from system to system - depending on the number of processes, the number and nature of - devices, and any other code that is shared between processes. - The MOS Kernel size is rounded up to the next page boundary. - Figure 1 shows 2 pages being used for MOS. The Kernel mode - (and MOS initialisation) stack is placed at the top of the MOS - Kernel space. Thus the shared buffer area is squeezed by code - requirements, however figure 1 shows 4 x 8K of buffer space - (half the virtual address space) and is probably the worst - case. In addition most processes will have some private - buffer space. - - During MOS execution the processes are 'swapped in' by - manipulating the Memory Management Unit (MMU) registers. - Apart from loading these registers to swap in a new process - the only other overhead of the extended memory system is the - need to disable the write protection on the MOS Kernel when an - EMT from a process occurs. The protection is re-enabled when - control is returned to the process text. - - The remainder of this note describes in detail the linking, - loading, and runtime phases. The appendices contain - documentation on building the extended memory MOS. - - - 2. Linking on UNIX - - The standard UNIX linker (ld) is only capable of building a - single 64K byte module. Using a version of ld from MITRE, - which had some modifications for building an overlay, ld was - extended. From the description above it can be seen that the - MOS Kernel is in the address space of each process, but that - the process (text and data) address spaces are mutually - exclusive. This arrangement is most like an overlay system, - with the MOS Kernel as the root. The program, lk (lk for - link), was used to build the root and link in each overlay - separately. Obviously each overlay should be able to access - the root, but not vice versa. - - The lk program uses two symbol tables, one for the root, - and one for the current overlay. The overlay symbols are - purged when the overlay definition is complete and the overlay - has been linked. A mechanism was required for MOS to identify - overlay code at runtime for swapping, as well as for them to - - - - 3 - [Robert Cole] - - - Extended Memory MOS for IEN 198 - a UNIX Development Host INDRA Note 1152 - - be easily indicated from the C configuration file. The - mechanism chosen is to label each overlay by a tag symbol at - link time. The symbol is given a unique value by the linker. - The symbol itself can be used in C programs, and later in DDT, - to identify a particular overlay (process). - - An example command sequence to lk could be: - lk mos.o config.o \ - { _tag1 -n -b 0140000 -e _ent1 proc1.o lib.a } - - where - { ... } defines an overlay - _tag1 is the tag symbol, the leading underscore is - required where the symbol is referenced in C code - -b 0140000 gives the base address at which the overlay - code is to linked (page 6) - -e _ent1 defines the entry address for this overlay - - The -b flag is used to relocate the overlay code to the - top end of the address space. The -n flag causes the data to - be relocated to the next page boundary (if possible). At UCL - we use a modified version of cc, called mcc, to build the MOS - load file. Mcc will expand the "{ tagn" to become "{ tagn" - - n -b 014000" and the "}" become "-l }", thus providing - defaults. - - The object code output is organised as a number of - subfiles, one for the root, and one for each overlay. These - subfiles are packed into a single output file using the ar (V) - format. Size (I) and nm (I) have been modified to accept - files in ar format and operate on the subfiles. - - From the runtime map, fig. 1, it can be seen that DDT is in - the Kernel address space, but at the opposite end to that of - MOS. To achieve this lk recognises the tag "ddt" and marks it - as being in the root (by the magic word) but treats the module - as an overlay for linking purposes. - - The normal a.out (V) header has been modified by using the - unused word to include the tag symbol value and the base page - into which the overlay should be swapped. The format is now: - - - - - - - - - - - - - 4 - [Robert Cole] - - - - Extended Memory MOS for IEN 198 - a UNIX Development Host INDRA Note 1152 - - typedef struct filhdr { /* a.out format header */ - int magicw; - #define VMAGIC 0405 - #define FMAGIC 0407 - #define NMAGIC 0410 - #define IMAGIC 0411 - #define ROOTMAGIC 0515 /* root file in overlay system */ - #define OVNMAGIC 0525 /* overlay with separate I and D */ - #define OVFMAGIC 0535 /* overlay with contiguous I and D */ - int tsize; - int dsize; - int bsize; - int ssize; - int entrypt; - char tag, page; /* for MOS overlays */ - int relflg; - } FILHDR; - - - 3. Loading - - Once the complete MOS system has been linked and is ready - in the ar format file; it has to be loaded into the LSI or - PDP-11. To manage the MMU and set up the overlays ready for - swapping a special loader is used in the target computer. At - UCL we load this as an ordinary program using a down-line - loader. The program is then automatically started by the - primary bootstrap and continues as the (secondary) bootstrap. - - Each subfile is passed to the secondary bootstrap in two - parts, first the 16 byte a.out header, followed by the text - and data. The a.out header enables the bootstrap to see if - the file contains root code or is an overlay. - - If the subfile is a root file (magic word = 0515) it is - loaded into the 1st 6 physical pages and the MMU is not used. - Any symbols associated with the root are placed at the end of - the last physical page (page 30), the amount of space left for - the root symbols is an assembly constant shared between the - virtual bootstrap, virtual MOS and DDT. The page byte in the - a.out header allows loading to begin on any page boundary. - Note that DDT is loaded into page 6 using this mechanism. The - secondary boot operates from the very top of physical page 6 - so that DDT should not overwrite this. - - If the subfile is an overlay it is loaded above physical - location 0160000. The text and data are loaded contiguously - in 1K byte blocks from UNIX. When the text and data have been - loaded (the a.out header contains the size, this is used as a - check against the amount received) the physical address of the - - - - 5 - [Robert Cole] - - - - Extended Memory MOS for IEN 198 - a UNIX Development Host INDRA Note 1152 - - top of the 8K process page boundary is calculated. The layout - of a process is shown in Fig. 2. - - <--64---><------text-----><------8K------><--symbols--> - bytes bytes - _________________________________._____________________ - ! H ! ! . ! | - ! E ! ! D . ! | - ! A ! TEXT ! A . ! | - ! D ! ! T . ! | - ! E ! ! A . ! | - ! R ! ! . ! | - !________!________________!______.________!____________| - ! denotes a 64 byte block boundary - - Figure 2. Overlay load map. - - The a.out header is copied into the first 64 byte block, - this block is used as a control block for the overlay. The - format of this control block is: - - typedef struct { /* overlay header block structure */ - int magic; /* magic word */ - int tsize; - int dsize; - int bsize; - int ssize; - int entry; /* entry address for process */ - char tag; - char page; /* same as a.out header up to here */ - int used; /* indicates overlay already used */ - int memlo; /* address of first free loc in o/v */ - int next; /* points to next overlay header */ - int par[16]; /* MMU register contents to */ - int pdr[16]; /* 'swap' this process in */ - } OVERLAY_HEADER; - - The base of the 8K page is, of course, the first data byte. - This means there is a hole in the process address space - between the end of the text and the first word of the data. - There is no physical memory assigned to this area. If the - subfile has any symbols these are loaded above the extended - data page. When the data and text have been loaded the bss - area is set to zero, this only occurs at load time. When the - symbols have been loaded the virtual loader calculates the PAR - and PDR register contents for the process by assuming all - unloaded pages are allocated to the low physical memory and - are full (all 8K in use). The loaded pages are given the PAR - and PDR values needed to 'swap' in this process. The first - location in the process private buffer pool is calculated - (size of data + bss + 2 + 0160000) and the PAR contents - - - - 6 - [Robert Cole] - - - Extended Memory MOS for IEN 198 - a UNIX Development Host INDRA Note 1152 - - needed to access the next process control block. In this way - the first overlay control block is always at 0160000 and - subsequent overlays can be found by using the chain. The - virtual loader (and MOS) do all address calculation in PAR - content values. - - Thus the loader sets up the process, and the necessary MMU - register values, to enable MOS to use the overlay easily. - - - 4. MOS Initialisation - - Apart from some modification to the synchronous I/O code - the changes to MOS were in the once only system initialisation - code. - - The MMU is enabled as soon as MOS loads the kernel mode - registers to provide the same mapping as though the MMU was - disabled. A window page is used to map into the overlays by - loading a single PAR register with the values provided by the - loader. Any spare physical memory between the last overlay - and the MOS Kernel symbols is divided into 8K pieces and - initialised with a control block. These may be used when two - or more processes share the same text. - - The control block used for each overlay means there was no - need to increase the size of the Process Control Table (PCT), - this was convenient as the size is currently 32 bytes. - - - 5. MOS Runtime - - As pointed out in [1] it is necessary to use the shared - buffer area for all I/O and especially IORBs. This was the - only change that needs to be made to MOS processes. However, - some processes share routines and data space, these have to be - loaded in the Kernel. All the facilities described in [2] are - available. - - The synchronous I/O routines (sin, sout, bin, bout) will - copy data between the process data page and the shared - buffers, if necessary. - - - 6. DDT - - The debugging program DDT is always loaded in the extended - MOS. This has the same commands and features as the ordinary - DDT. In addition the following command will 'swap in' a - process, and its symbol table. - - - - 7 - [Robert Cole] - - - - Extended Memory MOS for IEN 198 - a UNIX Development Host INDRA Note 1152 - - $l - load an overlay - $l - load the 'normal' address space - - The should be a tag symbol used in linking. If no - tag is given; DDT itself, and the I/O page are mapped in. - Processes can be swapped randomly in DDT, this does not affect - the running of the system. - - The only (apparent) facility not readily converted is the - use of single step over RTT and RTI instructions where the - address mode is changed by that instruction. - - Note, that when DDT is entered via a break (breakpoint or - single step) PS and SP contain the values in use at the time - of the break, thus are not necessarily the SP of the mode in - which DDT is running. Also when the break occured in user - mode the address space contains the user process, not the I/O - page. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 8 - [Robert Cole] - - - - Extended Memory MOS for IEN 198 - a UNIX Development Host INDRA Note 1152 - - - - - References - - - 1. Wiseman, S.R., Davies, B.H., Memory Management Extensions - to the SRI Micro Operating System for PDP- 11/23/34/40, - IEN 136, May 1980 - - 2. Cole & Treadwell, MOS User Guide, 2nd Ed., - Indra Note 1042 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 9 - [Robert Cole] - - - - - - - - APPENDIX - - - - - - - - - - - - - - This appendix contains an example of building a virtual MOS - system using the normal mechanisms, plus the system - documentation for mcc and lk, - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Appendix 2 - [Robert Cole] - - - - Extended Memory MOS for IEN 198 - a UNIX Development Host INDRA Note 1152 - - Example of Building a vMOS System - - The vMOS system is defined in a cnf file in the same way as - an ordinary system. The difference is that the lk 'tag' is - used instead of the entry address. In our example a TCP test - system is built: - - extern monitor, control, vcs, tcp, inet, monsl; - - PCTE pcts[] { - setpcte("opcon", &control, &dt1i, &dt1o, 300, 0, 0), - setpcte("tcp", &tcp, &cty1, 0, 200, 0, 0), - setpcte("internet", &inet, 0, 0, 300, 0, 0), - setpcte("cstest", &vcs, &cty2, 0, 200, 0, 0), - setpcte("monitor",&monitor, 0, 0, 200, 0, 0), - setpcte("monslave", &monsl, 0, 0, 200, 0, 0), - }; - - Note that there is no mechanism for automatically loading - complete processes so the Internet and monitoring processes - are explicitly named. For this reason there is a special - version of the TCP process that does not attempt to spawn - those processes. - - The commands to mcc must indicate all of the procceses. In - this example a large number of routines are loaded in the - kernel to enable them to be shared amongst processes. In fact - this is to do with the monitoring and all that should be - shared is the name of the routine. - - mcc -o vtcptst tcpcnf.c vtcppnt.c monpid.c \ - inprnt.c inaddr.c vprintf.o -l1 \ - { control -e opcon opcmds.c -l1 } \ - { vcs -e cstest cstest.o } \ - { monitor -e vmontr -lv } \ - { monsl -e monslave -lv } \ - { tcp -e vtcpm -lv } \ - { inet -e inetm -lv -l1 } - - - To show how mcc expands this command the actual command - line to lk is shown below. Note that new-lines have been - inserted to improve the clarity of the example. - - - - - - - - - - - Appendix 3 - [Robert Cole] - - - - Extended Memory MOS for IEN 198 - a UNIX Development Host INDRA Note 1152 - - lk -X /ucl/mos/lib/vmos.o -o vtcptst tcpcnf.o vtcppnt.o - monpid.o inprnt.o inaddr.o vprintf.o -l1 - { _control -b 0140000 -n -e _opcon opcmds.o -l1 -l } - { _vcs -b 0140000 -n -e _cstest cstest.o -l } - { _monitor -b 0140000 -n -e _vmontr -lv -l } - { _monsl -b 0140000 -n -e _monslave -lv -l } - { _tcp -b 0140000 -n -e _vtcpm -lv -l } - { _inet -b 0140000 -n -e _inetm -lv -l1 -l } - ddtstk.o - { ddt -b 0140000 -s /ucl/mos/lib/vddt.o } - -l - - - When converting from an ordinary MOS system to a vMOS - system the 2 major problems are: - - 1. Different processes that share memory or routines, or - even addresses. - - 2. Searching libraries so that only the required routines - are built into an overlay, and not included in the - kernel. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Appendix 4 - [Robert Cole] - - - - - LK(I) 15th. September 1981 LK(I) - - - - NAME - lk - link editor for Extended Memory MOS - - SYNOPSIS - lk [ { tag ] -sulxnebo name ... [ } ] - - DESCRIPTION - Lk is a modification of ld(I) that can build an overlay - system of the type used in the Extended Memory MOS system. - All the features of ld are supported. If no overlays are - defined lk behaves exactly the same as ld, only less - efficiently. - - Overlays are defined by enclosing switches and filename - arguments between curly brackets "{}". Each overlay has to - have a name, thus the first argument after every open curly - bracket is taken as the symbol naming that overlay. The - symbol is known as the overlay tag. Each tag is given a - unique value by lk. The overlay definition syntax is: - { tag -sulxneb name... } - - Any arguments not bracketed are used to define the root. - Root arguments may appear in any position between overlay - definitions. All symbols defined in the root arguments are - available to all overlays. Symbols defined in an overlay - are purged when processing of the overlay is complete. Thus - it is not possible to have references between overlays. - - Lk produces output in ar(V) format. The root and each - overlay are separate subfiles in the output. Each subfile - is a complete a.out(V) format file with symbols if required. - The default output name is "a.out". - - Where symbols are used in the argument list (in -e, -u, and - as the overlay tag) they must be preceded by an underscore - if they are also defined in C programs. - - If any argument is a library, it is searched exactly once at - the point it is encountered in the argument list. Only - those routines defining an unresolved external reference are - loaded. If a routine from a library references another - routine in the library, the referenced routine must appear - after the referencing routine in the library. Thus the - order of programs within libraries is important. - - Lk understands several flag arguments which are written - preceded by a '-'. Except for -l, they should appear before - the file names. - - - - - 1 - - - - - - LK(I) 15th. September 1981 LK(I) - - - The options suxXneb have a local effect when used within an - overlay definition. If used outside an overlay their effect - is global, but can be overridden by other flags or values. - - -s 'squash' the output, that is, remove the symbol - table and relocation bits to save space (but impair the - usefulness of the debugger). This information can also - be removed by strip. - - -e The next argument is taken as a symbol defining the - entry address of the overlay or object output. - - -u take the following argument as a symbol and enter it - as undefined in the symbol table. This is useful for - loading wholly from a library, since initially the - symbol table is empty and an unresolved reference is - needed to force the loading of the first routine. - - -l This option is an abbreviation for a library name. - -l alone stands for 'liba.a', which is the standard - system library for MOS systems. -lx stands for 'libx.a' - where x is any character. A library is searched when - its name is encountered, so the placement of a -l is - significant. The MOS libraries are kept in the MOS - system directory and lk searches this directory for the - libraries defined by the -l switch. - - -x do not preserve local (non-.globl) symbols in the - output symbol table; only enter external symbols. This - option saves some space in the output file. - - -X Save local symbols except for those whose names - begin with 'L'. This option is used by mcc to discard - internally generated labels while retaining symbols - local to routines. - - -n Arrange that when the output file is executed, the - text portion will be read-only and shared among all - users executing the file. This involves moving the data - areas up the the first possible 4K word boundary - following the end of the text. In an overlay this has - the effect of relocating the data to the next memory - page. - - -o The next argument is taken the name of the output - file, this overrides the a.out default. - - -b The next argument is taken as a number giving the - base address at which linking is to begin. This is used - to relocate overlays above the root. An octal number - - - - 2 - - - - - - LK(I) 15th. September 1981 LK(I) - - - may be given by using a leading zero (0). - - FILES - lib?.a libraries - liba.a MOS system library - lib1.a TCP/IP/OPCON library - lib2.a X25 library - libv.a virtual MOS library - a.out output file - - SEE ALSO - as(I), ld(I), ar(I) - - BUGS - - ORIGIN - MITRE, then Robert Cole at UCL. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - MCC(I) 15th. September 1981 MCC(I) - - - - NAME - mcc - C compiler and MOS system builder - - SYNOPSIS - mcc [{ tag] [-c] [-p] [-O] [-F] [-S] [-P] file ... [}] - - DESCRIPTION - Mcc is the UNIX C compiler which is used to produce a MOS - system load file. Mcc is very similar to cc(I) except that - the command line to the loader (ld(I) or lk(I)) causes a MOS - kernel to be included and MOS system libraries to be - searched. - - Arguments whose names end with '.c' are taken to be C source - programs; they are compiled, and each object program is left - on the file whose name is that of the source with '.o' - substituted for '.c'. The '.o' file is normally deleted, - however, if a single C program is compiled and loaded all at - one go. - - If curly brackets are used in the argument list an extended - memory system (vMOS) is assumed. For building vMOS systems - mcc will call lk rather than ld for linking. Some expansion - is done by mcc for certain arguments in a vMOS system, - "{ tag" becomes "{ _tag -b 0140000 -n" - "}" becomes "-l }" - Arguments following the -e switch have an underscore - prepended to convert C symbols to overlay symbols, the - overlay tag is similarly treated. The virtual kernel is - loaded, and the DDT segment added to the lk command. - - Mcc will compare the modify dates on all source files ('.s' - or '.c') with any object files ('.o') of the same name. If - the object file has a later modify date then the source file - is not compiled. - - The following flags are interpreted by mcc. See ld(I) or - lk(I) for load-time flags. - - -c Suppress the loading phase of the compilation, and - force an object file to be produced even if only one - program is compiled. - - -p Causes a production version of the MOS kernel to be - loaded (mosp.o). The default MOS kernel is mosr.o - which includes DDT. - - -O Invoke an object-code optimizer. - - - - - 1 - - - - - - MCC(I) 15th. September 1981 MCC(I) - - - -F Force the compilation of a source file, even if - there is a later object code file available. - - -S Compile the named C programs, and leave the - assembler-language output on corresponding files - suffixed '.s'. - - -P Run only the macro preprocessor on the named C - programs, and leave the output on corresponding files - suffixed '.i'. - - Other arguments are taken to be either loader flag - arguments, or C-compatible object programs, typically - produced by an earlier cc or mcc run, or perhaps libraries - of C-compatible routines. These programs, together with the - results of any compilations specified, are loaded (in the - order given) to produce a loadable MOS system with name - a.out. - - FILES - file.c input file - file.o object file - a.out MOS system output - /tmp/ctm? temporary - /lib/c[01] compiler - /ucl/mos/lib/mos[pr].o MOS kernels - /ucl/mos/lib/liba.a MOS system library - /ucl/mos/lib/lib[12v].a MOS utility libraries - - SEE ALSO - ''Programming in C- a tutorial,'' C Reference Manual, - ld(I), lk(I), load(I) - - DIAGNOSTICS - The diagnostics produced by C itself are intended to be - self-explanatory. Occasional messages may be produced by - the assembler or loader. Of these, the most mystifying are - from the assembler, in particular ''m,'' which means a - multiply-defined external symbol (function or data). - - BUGS - - ORIGIN - UCL - Robert Cole - - - - - - - - - - 2 - diff --git a/text/ien/ien2.txt b/text/ien/ien2.txt deleted file mode 100644 index caba13b0..00000000 --- a/text/ien/ien2.txt +++ /dev/null @@ -1,709 +0,0 @@ - - - -IEN # 2 Comments on Internet Protocol and TCP - - - -IEN # 2 Jon Postel -Supercedes: None ISI -Replaces: None 15 August 1977 - - - 2.3.3.2 Comments on Internet Protocol and TCP - -Introduction - -This memo suggests an approach to protocols used in internetwork systems -somewhat different from the main thrust of the work on the Transmission -Control Protocol (TCP) [1]. The position taken here is that -internetwork communication should be view as having two components: the -hop by hop relaying of a message, and the end to end control of the -conversation. This leads to a proposal for a hop by hop oriented -internet protocol, an end to end oriented host level protocol, and the -interface between them. - -Discussion - -We are screwing up in our design of internet protocols by violating the -principle of layering. Specifically we are trying to use TCP to do two -things: serve as a host level end to end protocol, and to serve as an -internet packaging and routing protocol. These two things should be -provided in a layered and modular way. I suggest that a new distinct -internetwork protocol is needed, and that TCP be used strictly as a host -level end to end protocol. I also believe that if TCP is used only in -this cleaner way it can be simplified somewhat. A third item must be -specified as well -- the interface between the internet host to host -protocol and the internet hop by hop protocol. - - An analogy may be drawn between the internet situation and the - ARPANET. The endpoints of message transmissions are hosts in both - cases, and they exchange messages conforming to a host to host - protocol. In the ARPA subnet there is a IMP to IMP protocol that is - primarily a hop by hop protocol, to parallel this the internet system - should have a hop by hop internet protocol. In the ARPANET a host and - an IMP interact through an inteface, commonly called 1822, which - specifies the format of messages crossing the boundary, an equivalent - interface in needed in the internet system. - -In the rest of this memo i outline first a possible internet host - hop -interface, second an internet hop by hop protocol, and third some -modifications to TCP so that it can serve as an internet host level -protocol. - -Internet Host - Hop Interface - - - - - -Section 2.3.3.2 [page 1] - - 15 Aug 77 -IEN # 2 Comments on Internet Protocol and TCP -Discussion -Internet Host - Hop Interface - - - - It is difficult to present a protocol and an interface separately. In - this section i present the fields and functions used in the internet - host - hop interface. The discussion will however explain some of the - operation of the internet hop by hop protocol as well. - - I suggest an internet hop by hop protocol that provides only those - functions needed to address and route messages in an arbitrarily - structured network, to allow for fragmentation and reassembly of - fragments, to provide various types of service, and a moderate level - of error control. - - The internet host - hop interface is described by discussing the use - made of each of the fields in the interface message header. - - Version - - As time goes by the internetwork system may evolve to a point where - the interface format (or the protocol) must be changed. This field - provides the handle for simultaneously supporting two (or more) - versions of the protocol. - - Data Identifier and Acknowledgement Identifier - - When a message is sent from a host to a hop module, or between hop - modules, or from a hop module to a host, it must be acknowledged. - To allow several messages to be in transit simultaneously an - identifier is used to associate data messages and acknowledgements. - - Type of Service - - Because different applications may call for different aspects of - communication performance to be emphasised a type of service field - is necessary. For example one application may call for reliable - delivery and be willing to suffer longer delays or lower throughput - for it. Another application may not be able to tolerate the - slightest delay but be unconcerned about reliability. The type of - service field has the following assigned values: - - 0 - reliable delivery requested - - This means that at each hop the message (or fragment) is - retransmitted to the next hop until an acknowledgement is - received. - - 1 - no retransmission - - - - - -Section 2.3.3.2 [page 2] - - 15 Aug 77 -IEN # 2 Comments on Internet Protocol and TCP - Discussion -Internet Host - Hop Interface - - - - This means that at each hop the message (or fragment) is - transmitted exactly once to the next hop, if it is afflicted - with errors, too bad. - - Addresses - - Addresses are variable length strings of 4 bit chunks prefixed by a - length. As address chunks are processed they are removed from their - position at the head of the address chunk string and placed at the - end of the string. This chunk by chunk circular shifting of the - address allows each node in the hop by hop processing of a message - to examine the part of the address it consumes with out knowing how - much address preceeds or follows that part. - - Fragmentation - - Fragmentation is an internet protocol problem rather than a host - level problem. Fragmentation is necessary because of the differing - sizes of maximum message allowed by the various networks making up - the internetwork system. The possibility of a large message being - routed or delivered in a network with a smaller maximum message size - requires that the internet protocols provide for fragmentation. - - Any where along the transmission path an internet protocol node may - fragment a message (which already may be a fragment). Only at a - point where all fragments must pass can reassembly of the fragments - be done. Usually the only point that meets this constraint is the - destination host. - - To understand a little about the fragmentation information carried - in the internet protocol header we examine the information needed to - reassemble fragments and the possible ways to provide that - information. - - What does the reassembler need to know? - - What message is this a fragment of? - Message Identifier - - Where in the message does this fragment go? - Fragment Number - and Size - - Are all the fragments of this message here? - Number of - Fragments or Last Fragment Flag - - What can the fragmenter (original or intermeadiate) provide? - - - - - -Section 2.3.3.2 [page 3] - - 15 Aug 77 -IEN # 2 Comments on Internet Protocol and TCP -Discussion -Internet Host - Hop Interface - - - - It may be easier to say what it can not do: - - It can't keep a count of total fragments carried in each - fragment because some fragments may get split while others do - not in a alternate routing environment. - - It can't know what fragment identifiers have already been - used. - - It can do these things: - - It can pass on a last fragment flag. - - It can pass on fragment numbers that are hierarchial or based - of data length such as data sequence numbers. - - It can pass on a message identifier. - - It can pass on a data length. - - The difficult issue is how best to identify where this fragment - fits with respect to other fragments when trying to reassemble a - message. Two schemes seem workable: a hierachial fragment naming - scheme, and a sequence number scheme. - - The hierachial scheme would call for a fragment name to be - composed of a variable number of chunks. Each time a fragment - was split each new fragment would get a copy of the old fragment - name with an added chunk specifing the order between the just - created fragments. These fragment names would then be equivalent - to the names of the leaves of a tree. At the destination the - reassembly would proceed by combining sibling leaves and - replacing the mother node by the combined fragment. This scheme - would require a last fragment flag for each set of siblings - unless the degree of branching were fixed. The variable length - fragment names are a complexity it would be nice to avoid. - - The sequence number scheme would call for each fragment to carry - a fragment sequence number and a data length. Each original - message could start with the fragment sequence number zero. When - it was necessary to fragment a message the first fragment would - carry the original fragment sequence number, while the second - fragment would carry a fragment sequence number equal to the - fragment sequence number of the first fragment plus the data - length of the first fragment, and so on. The last fragment - - - - - -Section 2.3.3.2 [page 4] - - 15 Aug 77 -IEN # 2 Comments on Internet Protocol and TCP - Discussion -Internet Host - Hop Interface - - - - would have to carry a last fragment flag. At the reassembly - point adjacent fragments could be combined until the message was - complete. Two messages are adjacent when the fragment sequence - number of the second is equal to the fragment sequence number of - the first plus the data length of the first. - - Message Identifier - - Each message to be fragmented must have an identifier unique to - this end to end address pair, so that the fragments of one message - may be distinguished from the fragments of another message. - - There is no need to coordinate the choice of this identifier - between the source and destination. The source should choose the - identifiers on messages it sends so as to avoid having two - distinct messages to the same destination concurrently in - circulation with the same identifier. - - The choice of message identifier could be clock based or a simple - sequence and the same sequence could be spread across all outgoing - messages or separate sequences could be used for each destination - address. - - Data - - Ah the data, at last a space for the reason we are going through all - this nonsense. There is a data length field, and then that much - data. - - Error Control - - Only hop to hop error control should be attempted in the internet - protocol. Specific host level protocols such as TCP can provide for - end to end error control. The same checksum field is used to protect - the communication between the source host and the first hop, and - between the last hop and the destination host, as is used between - hops. - - - - - - - - - - - - - -Section 2.3.3.2 [page 5] - - 15 Aug 77 -IEN # 2 Comments on Internet Protocol and TCP -Discussion -Internet Host - Hop Interface - - - - Message Format - - The internet protocol message format has the following fields: - - Version - Flags - Data Identifier - Acknowledgement Identifier - Type of Service - Destination Address - Fragment Information - Message Identifier - Fragment Sequence Number - Last Fragment Flag - Data Length - Data - Checksum - - The Version field is a 4 bit field which indicates the version of - the internet protocol the remainder of the message conforms to. This - proposal describes version 0. - - The Type of Service field is a 4 bit field specifing which handling - type is desired. - - The Flags are a set of bits which specify the presence or absence of - values in certain fields, in particular there is a data flag which - indicates the data identifier field is meaningful (and that the data - length is nonzero), and a acknowledgement flag which indicates the - acknowledgement identifier field is meaningful. - - The Data Identifier is a 16 bit field that distinguishes this - message from other active messages on this host to hop, hop to hop, - or hop to host, link. - - The Acknowledgement Identifier is a 16 bit field that specifies - which message among the active messages on this host to hop, hop to - hop, or hop to host, link this acknowledgement pertains to. - - The Destination Address field is a variable length extensible - address composed of 4 bit chunks. The first chunk is the length of - the address in chunks, except that the value 0 indicates that the - next two chunks as a 8 bit number indicate the length. - - This address extension scheme actually goes on indefinitely: we - - - - - -Section 2.3.3.2 [page 6] - - 15 Aug 77 -IEN # 2 Comments on Internet Protocol and TCP - Discussion -Internet Host - Hop Interface - - - - start with the length of the length equal to one, ll=1, if the - value of the length is zero, l=0, then the next two chunks, - ll_ll+1, are taken to be the length, if that length value is zero, - l=0, then the next ll_ll+1 chunks are taken to be the length, and - so on. - - The Fragmentation Information consists of three things: the message - identifier which is a 16 bit field, the fragment sequence number - which is a 16 bit field, and the last fragment flag which requires - one bit. - - The Data Length is a 16 bit field whose value is the number of - octets in the Data field. - - The Data field is as many octets of arbitrary data as specified in - the data length field. - - The Checksum is a 16 bit field whose value is a hop by hop computed - checksum that covers the entire message. - -Internet Hop Protocol - - The internet hop by hop protocol has nearly been described, at least - by implication, in the preceeding section. In this section i will try - to add a few details about the use of the fields in the hop by hop - protocol. - - The Type of Service field specifies the handling type is desired. The - intent here is for the hop module to tailor its treatment of this - messages according to the value of this field. As previously - indicated one kind of tailoring is a trade off between delay and - reliability. I expect substantially more thought will be needed - before a reasonable set of cases can be established for type of - service. - - The Flags are bits which specify the presence or absence of values in - certain fields: - - data flag - indicates the data identifier is meaningful - - acknowledgement flag - indicates the acknowledgement identifier is - meaningful. - - The Data Identifier field distinguishes this message from other active - messages on this host to hop, hop to hop, or hop to host, link. - - - - - -Section 2.3.3.2 [page 7] - - 15 Aug 77 -IEN # 2 Comments on Internet Protocol and TCP -Discussion -Internet Hop Protocol - - - - The intention is that for each hop module to select its own data - identifier to put on a messages for transmission to the next hop - module. That each hop modules should choose identifiers to avoid - having two active messages on this link with the same identifier - should be obvious. - - The Acknowledgement Identifier specifies which message among the - active messages on this host to hop, hop to hop, or hop to host, link - this acknowledgement pertains to. - - The hop module copies the data identifier of a message, lets call it - A, it receives into the acknowledgement identifier field and sets - the acknowledgement identifier flag in a message, lets call it B, - traveling to the sender of message A to acknowledge correct receipt - and take responsibility for message A. - - The Destination Address field is processed by the hop module and the - portion of the address consumed by the hop module is (chunk by chunk) - circular shifted to the end of the address, bring the part of the - address to be processed by the next hop to the beginning of the - address string. - - Fragmentation is performed if nesessary. Reassembly is left for the - destination host. - - Fragment Handling Procedures - - Necessary Fragment Information Fields - - Message Identifier - Data Length - Fragment Sequence Number - (initially zero in each new message) - Last Fragment Flag - (initially set in each new message) - - Fragmentation Procedure - - Split the data. - - Copy the internet header from original message (or fragment) to - each fragment. - - Replace the data length field of each fragment by the new data - length. - - - - - -Section 2.3.3.2 [page 8] - - 15 Aug 77 -IEN # 2 Comments on Internet Protocol and TCP - Discussion -Internet Hop Protocol - - - - Replace the fragment sequence number in each fragment by the - correct value. - - The correct value of the fragment sequence number for fragment - N+1 is the fragment sequence number of fragment N plus the - data length of fragment N. - - Reset the last fragment flag in all but the last fragment. - - Reassembly Procedure - - If two fragments are of the same message and adjacent assemble - them. - - If a fragment has fragment sequence number zero and the last - fragment flag set then it is a whole message. - - Where assemble means form one fragment with - - fragment sequence number set to the fragment sequence number - of the first fragment - - the data length set to the data length of the first fragment - plus the data length of the second fragment - - last fragment flag set to the last fragment flag of the second - fragment - - Where adjacent means the fragment sequence number plus the data - length of the first fragment equals the fragment sequence number - of the second fragment. - - The Data Length is only modified if fragmentation is done. - - The Data field is not examined at all. - - The Checksum must be checked as the first step in processing each - message. If the checksum is not correct the message is discarded. - When a message is forwarded to the next hop the checksum is recomputed - if any change has been made. Since almost always the destination - address is changed the checksum must be recomputed. And, of course, - if a message has been fragmented a new checksum is necessary for each - fragment. - - - - - - - -Section 2.3.3.2 [page 9] - - 15 Aug 77 -IEN # 2 Comments on Internet Protocol and TCP -Discussion -Internet Hop Protocol - - - - To review, the internet hop by hop protocol message format has the - following fields: - - FIELD BITS - Version 4 - Flags - Data Identifier 1 - Acknowledgement Identifier 1 - Data Identifier 16 - Acknowledgement Identifier 16 - Type of Service 4 - Destination Address variable - Fragment Information - Message Identifier 16 - Fragment Sequence Number 16 - Last Fragment Flag 1 - Data Length 16 - Data variable - Checksum 16 - -Internet Host Protocol - - The internet host protocol is a slightly simplified TCP. The principal - simplifications are that TCP no longer concerns itself with - fragmentation, and that the addresses are of the same form as used in - the internet hop protocol. - - The TCP should use the extensible addresses used in the hop by hop - protocol. This means that the TCP need not carry a distinct copy of - the destination address since it can be reconstructed from the - internet host - hop message format. However since the TCP needs both - the source and destination addresses in each message it may be useful - to carry both in the host level header (which is treated as part of - the data by the internet hop by hop protocol). - - Since TCP is no longer concerned about fragmentation the End of Letter - flag is not necessary to any part of the TCPs internal workings. It - may be a desirable feature for purposes of the TCP - user interface - though. - -Model of Communication - - To pull all this together perhaps it would be helpful to have a - scenario of a message transversing this system. - - - - - - -Section 2.3.3.2 [page 10] - - 15 Aug 77 -IEN # 2 Comments on Internet Protocol and TCP - Discussion -Model of Communication - - - - First a source process turns some data over to a source host - protocol module. The host protocol module packages the data up in - the host level protocol. Then that package is wrapped up in the - internet interface format and forwarded to an intenet hop module. - The internet hop module then forwards the message according to the - address processing rules. - - At any hop along the way the message may be fragmented, and the - fragments separately forwarded toward the destination. - - When the message arrives at the destination it is first verified - according to the internet hop by hop protocol (i.e. is the checksum - correct?). Next the address is checked to be sure this really is - the destination. Once this initial checking is done, the next step - is to reassemble the fragments if that is necessary. Once the whole - message is assembled it can be turned over to the host protocol - module for processing. The host protocol module unpackages the data - and passes it to the destination process. - -Summary - -A model of internetwork commuication has been presented that is based on -components that separate and modularize the distinct functions of the -host to host interaction controls and the hop by hop addressing and -routing functions. An interface between these functional modules has -been specified. It is argued that this approach is more appropriate -than the attempts to make a single protocol cover both functions. - - - - - - - - - - - - - - - - - - - - - - - -Section 2.3.3.2 [page 11] - - 15 Aug 77 -IEN # 2 Comments on Internet Protocol and TCP -References - - - -References - -[1] Cerf, V. "Specification of TCP version 2," March 1977. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Section 2.3.3.2 [page 12] diff --git a/text/ien/ien200.txt b/text/ien/ien200.txt deleted file mode 100644 index 8e46e309..00000000 --- a/text/ien/ien200.txt +++ /dev/null @@ -1,323 +0,0 @@ - - - -Internet Experiment Note No. 200 - - INTERNET PROJECT RESEARCH PLANNING REPORT - David D. Clark - MIT Laboratory for Computer Science - Computer Systems and Communications Group - - -1. Introduction - This paper represents a first attempt to provide a structure to the current -and planned activities in the Internet project. It is particularly concerned -with the evolution of the protocol architecture, and the identification of new -functions which the protocol is to support. It attempts to identify the basic -decisions which must be made as part of the planning process. - - -N.B.: This document is a draft. It is distributed at this time for - comment and discussion only. Anyone using this document as a basis - for project planning at this stage is extremely misguided. - - -The changes and extensions described here are not intended to have an - impact on current host implementations of TCP and IP, except for - hosts specifically involved in future research and demonstrations. - Implementors only involved in realizing the currently defined level - of service need not be concerned with this report. - - The Internet project has reached a point where it must provide a stable and -usable service to its users. This is a painful but crucial stage in any system -project which hopes to prove its point in the real world. Thus, our planning -must now take into account two requirements, first that we provide a functional -service, and second that we develop and integrate new functions into the -existing architecture. There are several reasons why new functions must be -added to the existing architecture. First, there are additional service -requirements, which are not currently supported but which will be required -before the service meet the currently forseen needs. Second, there are -explicit research goals which have been established for the project, with -announced demonstration dates. Third, there are additional research goals -which are of interest to the participants in the project, and which are -generally perceived as being appropriate and compatible with the internet -philosophy. This last collection of topics can easily grow without bound, - 2 - -leading to a project so large as to be intractible. One of the first planning -issues to be addressed is precisely what problems we choose to solve in this -next research cycle, and what problems we choose to ignore. - -2. Possible Research Topics - The following list catalogues a number of areas in which future evolution of -the architecture has been proposed. The comments provided with each section -attempt to give some idea of the amount of thought which has already gone into -this topic, and the range of options available for approaching each topic. - - - -2.1. Types of Transport Services: - The issue here is what sort of services will the transport layers of the -architecture provide to the applications above. Currently, TCP provides the -only wide-spread service, a bidirectional, reliable data stream. It is unclear -whether TCP is the most suitable protocol for high bandwidth, high delay -occasions, such as bulk transfer of data, and it is certainly clear that TCP is -inappropriate for speech and other low delay, loss-tolerant applications. -Other functions which might be useful include multicast rather than point-to- -point data transmission. Speech is a clearly defined goal for internet -support, but it is currently being supported only outside the internet -architecture, using alternative protocols. To provide serious speech support, -IP may have to be evolved to provide the necessary support. - - Other services such as bulk, high bandwidth transfer and multi-casting are -not specifically required for demonstration or service. Thus, it may be -possible to ignore these issues. On the other hand, it is reasonable to -consider exploring these topics because it is probable that they can be -examined somewhat in isolation, without a global upheaval to the entire -architecture. - - - -2.2. Addressing and Routing: - As we proceed from an assumption of an internet with 50 nets to an internet -with 1,000 nets, substantial upheavals will occur in the architecture and its -implementations. The simple routing algorithm of sending to every gateway the -location of every net, would require exchanging tables with 1,000 entries, and -not only would this cause an overflow of limited gateway storage space, but it -would also use up a substantial part of the network bandwidth if the system -were at all responsive. Currently, the internet has a vaguely hierarchical -structure, in which at the top there are nets and beneath this level is a -substructure which is understood only by the net itself. Presumably, it will - 3 - -be necessary to generalize this structure by grouping nets into areas, which -physically encompass several nets. However, this idea of areas is counter to -an original internet goal, which is that individual networks should be -connectable together in any configuration, with all possible physical paths -being used as realizable routes through the internet. If there is a structure -to the net, than only routes that conform to the structure will be realizable. - - I feel that a restriction of this sort on the internet is quite reasonable. -An obvious structure for the internet is to imagine that there is a central -cluster of nets which provide the function of long-haul transport. These -transport nets would have connected to them additional sets of nets which -provide an access function to the internet. Typical transport nets would be -the ARPANET and SATNET: typical access nets would be local area nets and -packet radio. The implication of this structure would be that the transport -nets would never rely on the access nets for transport function. - - An additional complication of routing is the TYPE OF SERVICE field of IP. -The TOS field is presumably used to affect the service provided by the -individual nets: however, it also should serve the function of selecting among -routes at the internet level. Currently, this function is completely missing. -Adding it can only make the routing problem much more complicated. - - - -2.3. Flow and Congestion Control: - Currently, the internet has a simple mechanism for congestion control, the -Source Quench Packet, which can variously be viewed as a choke packet or as an -advisory overload packet. There is no evidence that this mechanism works very -well; indeed there are substantial indications that it probably does not. As -load builds up in the internet, and especially as we hook together networks -whose basic speeds differ by orders of magnitude, it will be necessary to -identify and implement a workable congestion mechanism. - - One decision currently undecided about the internet architecture is whether -the congestion mechanism should include the concept of "enforcement". Most -congestion mechanisms push back on their data sources in a manner that is not -advisory, but mandatory. For example, networks selectively drop packets, -disable communication, or simply refuse certain inputs. The internet can do -none of these. If an input host ignores the congestion information currently -offered, the increased degradation caused by this is not focused on the -offending host, but is randomly distributed on all the traffic in the affected -area. It would seem that some mechanism for enforcement would be appropriate. -However, enforcement is very difficult, given one of the basic assumptions of -the architecture, which is that the gateways have no state. Without state, it - 4 - -is impossible to keep track of whichthe offending host is so that it can be -discriminated against. I feel that an important idea in this respect is that -of "soft state", in which the gateways attempt to build up a model of the world -by observing the traffic passing through them. If they should crash and lose -this state information, no transport services is disrupted, but as long as the -information exists, it permits the gateway to discard selectively those packets -which appear to be violating the congestion control restrictions currently in -effect. - - - -2.4. Distributed Control: - An important question about the internet is the extent to which its ownership -and management is decentralized. It was originally a design goal that various -gateways would be implemented by different organizations, and the individual -networks out of which the internet is built were certainly expected to be -managed by separate organizations. Realistically, decentralized management is -an important goal in the long term. However, it clearly makes development and -operation much more difficult. Currently, essentially all of the central -gateways as well as the important transport nets are all operated by BBN. A -specific decision is required as to whether this situation is to be exploited, -in order to simplify the next round of implementations, or whether distributed -operation is to be deliberately injected into the system as an additional -research goal. - - A problem closely related to this is the interaction between the existing -service internet and some evolved internet being used as a testbed for these -advanced topics. It will, at a minimum, be necessary to construct some sort of -firewall between the experimental environment and the service environment, so -that they can interact without destroying each other. - - - -2.5. Partitioned Networks - This is a critical research goal, because it has been explicitly identified -for demonstration in the two to three year timeframe. The specific -demonstration involves attaching high power packet radios to the ARPANET at -appropriate locations, providing airborne packet radios which are able to -communicate with these ground based radios, and then severing the landlines in -the ARPANET and using the packet radios to reconstitute ARPANET service. - - There are two ways to approach this problem: at the network level or at the -internetwork level. The network level solution, in which the imps are taught -about the existence of the packet radio links, is clearly the simpler of the - 5 - -two. Among other things, it requires no modification of the host software. -The internetwork solution, in which knowledge of the packet radio links is -restricted to the hosts and the gateways, is a more challenging solution, but -one which is more in line with the original goals of the current cycle of -research. I propose that the problem be solved at the internetwork level, but -this requires an upgrade in the sophistication of the host routing algorithm, -so that failures to communicate with the host apparently located on the same -network trigger the kind of internet rerouting which would normally be invoked -only for a pathway known to pass through intermediate gateways. - - There are other problems that resemble net partition. The "expressway -routing" concept is that a host or gateway may select an internet path to -bypass a network, even when the net is fully functional. This sort of action -would require that the mechanisms designed to support partition be used under -normal operations, not just under crisis conditions. - - - -2.6. Improved Effectiveness: - This somewhat vague title covers a number of important topics. Currently, -the TCP specification describes logically correct operations, but makes only -limited reference to efficient operation. Issues such as window management and -the timing of acknowledgements are left as an exercise for the implementor. -Bad design decisions in this area lead to the symptoms sometimes referred to as -Silly Window Syndrome. It is important that the specification be expanded to -include sufficient information to prevent this sort of inappropriate operation. -An area in which this will become immediately visible is in the use of public -data networks to carry internet packets. Most tariffs for public nets are -based on the number of packets, and the window algorithms and acknowledgment -generation algorithms strongly influence the number of packets required to send -a given amount of data. There will be a pressing cost requirement to eliminate -inappropriate implementations. Even where cost is not measured in dollars, the -perceived effectiveness of these protocols is an important component of their -acceptability to potential users. - - - -2.7. Access Control: - Plans are already underway in the short term to provide some controls over -who can use the internet, in particular by the addition of passwords to the -TAC. However, in the long run, much more must be done. The current protection -strategy is based on the assumption that individual hosts are sufficiently -responsible to restrain their users. As long as we have large time-shared -computers, this assumption is still somewhat workable. However, we are moving - 6 - -as rapidly as possible away from this position to a position in which personal -computers are allocated to individual users, which provides no management -strategy to ensure that the individual users of these computers, who are -presumably attached to local nets over which no access control is imposed, -refrain from going through these local nets to reach long haul nets whose use -is limited. The most extreme example of this currently in the internet are the -personal computers belonging to students at universities such as M.I.T. As -part of M.I.T.'s policy toward its local net, these students are being invited -to attach to the local net as rapidly as possible. However, the local net is -attached to the ARPANET, and there is no mechanism which can prevent these -students form utilizing the ARPANET from their personal computers. Clearly, it -is ridiculous to expect the students to voluntarily refrain. The only possible -mechanism is an access control algorithm in the gateway. But by the basic -architectural assumptions of internet, this is almost impossible to provide, -because the gateway lacks the information to discriminate between legitimate -and undesirable users. The only information available to the gateway are the -original and destination addresses, but short of a complete list enumerating -all of the used addresses at M.I.T., which might potentially be very long, the -address is not a sufficient indicator of validity. A decision must be made -whether or not this problem is to be solved. If it is, some substantial work -will be required. - - Access control and routing interact in an important way in the gateway. The -access decision is not a simple yes/no control, but a selection of route based -on privilege. For some nets, it will also be necessary to collect billing -information, which requires the same sort of unforgable identification as does -access control. - - - -2.8. Performance Evaluation: - There are currently a number of activities under way to evaluate the -performance of the internet. Some of these are being done as part of -operational management of the internet. Others are being done by various users -of the internet from their particular vantage point to evaluate the service -made available to them. These projects are not especially well coordinated at -the moment, and the results they gather are not being used in other than a very -general sense to evaluate and identify problems with the internet. Currently, -it is difficult to improve the quality of the measurements being made, because -there is not space available in the gateways to improve the metering and -instrumentation which is installed there. A new version of the gateway code is -now being developed by BBN which will have more space for new code. - - At a more philosophical level, we lack even a metric against which to compare - 7 - -our work. What constitutes a "good" internet? Superficially, one thinks of -things like low delay, high bandwidth, and reliability. But actually, -depending on the class of service being used, these individual goals may or may -not be desirable. In fact, a good internet is probably one which has the -flexibility to conform to a variety of offered loads, rather than doing a -superb job of meeting exactly one application class. In the long run, it would -be worthwhile trying to identify what goal we are attempting to meet, before -rather than after we meet it. - -3. Discussion - As the preceding list suggests, it is possible to put together a wish list of -internet features which is unworkably large. One of the first problems we must -face is doing some delicate but effective pruning upon this list to bring it to -a managable size. Having done this, it will be necessary to make some rather -difficult decisions about the general structure into which our future solutions -must fit. The above list raises some very important questions about the shape -of the internet. For example, the partitioning question most clearly raises -the issue of whether or not hosts connected to each other over a single net -view themselves as being connected to a network or to an internet. It is silly -to proceed until we have an answer to that question. Two other important -questions are the extent to which constraints are imposed on the workable -topologies of the internet, and the extent to which the internet is assumed to -be owned and operated by one or many organizations. - - The short time schedule for the announced demonstrations require that -progress on this list of functions be fairly rapid. The need for quick -progress suggests two conclusions to me. We will not achieve our goals if we -attempt to get there by a series of small incremental steps from where we are -now. Many of the functional requirements listed above interact with each other -in a very strong way, and it will be necessary to take all of these -requirements into account as we do a design for the final service. An -incremental approach will only trick us into thinking that we could ignore some -of these issues and attack others first. I believe that will not work in this -case. We must attempt to stabilize the service we have now and then live with -that service for some time, perhaps a year or more, during which time we -develop the followup, which will ultimately be used for the demonstrations -scheduled in the two to three year time frame. Given this conclusion, it then -follows we should attempt to minimize those functions which we advertise as -part of the current service we are attempting to stabilize, because any effort -investigated in expanding the current service is effort which is diverted from -the long-term design problem. - 8 - -4. Milestones - It is my hope that a working version of this document will be produced not -later than the meeting of the ICCB in January. Anyone with comments is -requested to send them to DClark at MIT-Multics before that time. - -------- diff --git a/text/ien/ien201.txt b/text/ien/ien201.txt deleted file mode 100644 index 97f9d728..00000000 --- a/text/ien/ien201.txt +++ /dev/null @@ -1,325 +0,0 @@ - - - - -Internet Experiment Note No. 201 - - INTERNET SHORT-TERM SERVICE GOALS - David D. Clark - MIT Laboratory for Computer Science - Computer Systems and Communications Group - - -1. Introduction - The purpose of this document is to identify the milestones which must be met -in order to bring the current internet architecture to a stable service which -can be used while the next round of research development is undertaken. This -document describes the functionality associated with the service to be offered, -and identifies the work to be done in order to achieve that function. This -document discusses all aspects of the internet service, and is intended for -planning purposes within the internet research community. More detailed -documents are available as RFC's that discuss the specifics of host conversion -from NCP to TCP. - - This document should be viewed in the larger context of the long-term project -planning which is now underway. An assumption underlying this document is that -it is necessary to identify carefully a service which we will provide in a -stable form at this time, in parallel with which a follow-on enhanced -capability will be designed and implemented in selected hosts and gateways. -This current service should more or less mimic the quality of service provided -today on the ARPANET by the NCP protocol, in terms of supported application -protocols, reliability, responsiveness, etc. - -2. Service Milestones - There are five major milestones in the achievement of the current service -offering. Two of these relate to support of TCP on the ARPANET. The other -three relate to support of actual internet traffic. These milestones are as -follows: - - 1. First use of internet for service (now happening!) - - 2. NCP quality support for first TCP-only host on ARPANET (July 1982) - - 3. NCP quality service for internet (?) - 2 - - 4. Heavy load on internet (?) - - 5. Last NCP host removed from ARPANET (January 1983) - - These five milestones are explained and elaborated in the following -paragraphs. - -3. Milestone One: Minimal Support for Internet Service - Internet service is being used today, as part of the Fort Bragg packet radio -demonstration and by the machines at COMSAT, which are not connected directly -to the ARPANET. I would characterize the service currently available to these -users as somewhat less than minimal, in that it works only because certain -special case adjustments have been made to individual hosts. There are three -important components to this milestone: - - a. Fragmentation and reassembly must be completely implemented through - the internet. It is repeatedly brought home that the failure to - implement this portion of the protocol causes important and - substantial confusion. At the last internet meeting, the failure of - the TIU to support reassembly once again prevented machines which - sent jumbograms from being used. There is no justification for - continuing to sidestep this problem. - - b. Name tables on operational hosts must be upgraded so that they have - both the structure and capacity to name all of the hosts in the - internet. In the long term, we hope that it will not be necessary - for every host to maintain a complete internet table, since we - postulate the existence of name servers to which an individual host - can turn to convert a name to a number. However, name servers are - not currently available, and the requirement for this name conversion - is immediate. - - c. ICMP must be supported. Without ICMP, one cannot achieve even a - minimal level of error recovery. - - These subtasks must be completed quickly, because minimal service is -important for the sites in Europe who are momentarily being removed from the -ARPANET. If the only requirement of the European community is user telnet, then -the name table problem on server hosts such as TOPS 20 can be momentarily -sidestepped, but the lack of fragmentation will prove totally unworkable, as it -already has. - 3 - -4. Milestone Two: NCP Quality Support for TCP on ARPANET - Today, there exist hosts on the internet that speak only TCP. However, these -hosts are very substantially limited as to what they can do. The intent of -this milestone is to define a point at which a TCP-only host connected to the -ARPANET can obtain a level of service to all other hosts directly connected to -the ARPANET that it might achieve using NCP today. This goal is for the -ARPANET only, not the general internet. This restriction is important, because -it defines the point at which a host converting from NCP to TCP can obtain a -reasonable service to other hosts to which it previously had NCP access. - - In order to achieve this goal, there must be conversion facilities available -so that the TCP host can communicate with NCP-only hosts, and symmetric -conversion routines must be available to permit NCP only hosts to have access -to the TCP host. The exact function required for conversion in each direction -is slightly different, since the protocols available on the TCP side are -sometimes somewhat more powerful, as in SMTP, and we are interested in -providing a better level of service for the TCP only host than we are for the -unconverted NCP only host. The specific requirements for this milestone are: - - a. Telnet forwarding in both directions. This is a machine which speaks - both TCP and NCP, to which a user can log in using one protocol and - then request an outgoing telnet connection using the other protocol. - - b. FTP staging facility. It appears to be rather difficult to build an - automatic facility for linking two FTP transfers together end to end. - The FTP syntax is not rich enough so that one can describe to a - forwarder where the ultimate destination of the transmission is to - be. Thus, since this is only a transition mechanism, it seems - sufficient to create an FTP facility which is operated manually. - First the user transfers this file to an intermediate point, and then - he manually logs in to this intermediate point (or to the final - destination machine) to transfer the file to its ultimate - destination. - - c. Mail forwarding. This is a very important facility, since mail is a - very important part of the day to day business of the ARPANET, and - because it will be a highly visible means by which we will make - conversion to TCP popular. SMTP has been specifically implemented to - make possible the use of forwarders to provide automatic protocol - conversion. As originally proposed, automatic forwarding of mail was - to be implemented by causing every host on the ARPANET, whether or - not it supported TCP, to implement SMTP by this milestone. It is not - clear that universal conformence can be achieved. I propose that - this strategy be modified to permit an alternative in which a more - 4 - - sophisticated forwarder will permit mail to flow from an NCP to a TCP - host if the sender of the mail manually constructs a special - destination string which triggers forwarding. - - In order to achieve SMTP service, the following sub-milestones must - occur. First, the definition of the protocol must be stabilized. - This is now being done. Secondly, mail forwarders must be - implemented and brought to a service level. - - d. The TCP-only hosts must be identified and brought to a full, - functional level. Full function includes the following: - - -IP - - -ICMP - - -TCP - - -TELNET(User, Server) - - -FTP(User, Server) - - -SMTP(Sender, Receiver, Composer) - - As part of implementing this rather ambitious list of protocols, it - is important to identify and eliminate certain popular deficiencies - which appear in some existing implementations. For example, the - structure which exists between the protocol layers for reporting - errors must be rich enough that network conditions such as host-dead - or imp-dead correctly terminate the network connection with the - appropriate message for the user. For another example the name table - must be upgraded from an ARPANET only to an internet facility. - - There is a great deal of work implied by the above list. Currently none of -the forwarders, either TELNET, FTP, or SMTP, exist except in experimental -forms, and it is not clear that these experimental forms in fact provide the -basis for a service offering. This milestone is seven months away, and it will -require prompt effort to achieve it. - - It is not the purpose of this milestone to encourage (or permit) a -"preliminary" host implementation suitable only for the relatively benign -ARPANET environment. The host implementor should be working toward all of -these goals at once. It is in the networks that these milestones can be -distinguished. - 5 - -5. Milestone Three: NCP Level Service Over Internet - This is a somewhat vague milestone, and items which appear only on this list -have a habit of being repeatedly postponed in task schedules. Nonetheless, -this is an important goal, because it will establish the point at which we can -stop tinkering with the service we provide and proceed on to the next level of -design. It is important not to include too many items in this list, less the -list grow so big that we never complete its implementation. On the otherhand, -if we do agree to include something on this list, then we must be consistent -and sincere about implementing it in all the relevant machines. Partial -implementation is not a useful middle ground. The following functions are -nominated for this category. - - a. Robustness features. Included in this category are replication of - hardware to provide an alternative path in the case of a single - component failure. This is particularly important in the SATNET link - to Europe. Dual gateways may be required in other locations, where - important acces nets enter the transport core. - - b. Fault detection and isolation. "Dissapearing packets" are still an - overly common aspect of internet communication. It is important that - every host be equipped with suitable tools to detect and, to the - extent possible, recover from internetwork outages. At a minimum, - all hosts must use the ICMP facilities of host unreachable and - redirect to recover from gateway outages or at least notify the user - that further communication is impossible. It is also important that - tools be put in place so that proper repair procedures are instituted - properly when a portion of the internet fails. - - c. Proper handling of option fields in the protocols. Currently, - options are most commonly processed by ignoring them. We must decide - which options we are really serious about and implement them. An - obvious topic for discussion is the set of options that deal with the - source route function. This is a good example of where we must do an - all or nothing implementation. Isolated implementation of source - route is demonstrably useless. - - d. Access control. Certain mechanisms for controlling access to the - internet must be implemented as part of the interim service. At a - minimum, these include login features in the TAC. It may be - necessary to implement some further controls inside the gateway, but - as yet no one has conceived of what those mechanisms could be. This - topic requires consideration. - - e. Name servers. The number of hosts, and thus the number of names in - 6 - - the internet is much larger than that of the ARPANET. Many name - tables are overflowing. One way to avoid this problem is by providing - name servers to which a host can turn in order to translate an - unknown name into an internet address. In some respects, a namer - server is a very simple mechanism, but it is very easy to develop a - name server mechanism which is so complicated as to be unrealizable. - Some firm decision must be made as to the level of service to be - provided by name servers in the internet, and then to provide an - implementation strategy whereby name servers are universally - available. - -6. Milestone Four: Heavy Traffic Over the Internet - This is difficult milestone to quantify, since we do not know the rate at -which traffic will build up, nor what maximum traffic level we must support. -Nonetheless, it seems clear that the existing gateway implementations will not -support the expected load. There are three improvements which have been -proposed to address this topic. All of these depend on replacement of existing -gateways with C/70 gateways or recoding of the existing software, so that there -is additional space available. - - a. Upgrade the net interface software so that it shows more intelligence - about interacting with the support network. For example, the driver - for the ARPANET should count RFNMs, and the driver for the SATNET - should interact properly with the selective refusal mechanism of the - SATNET's non blocking interface. - - b. More buffers in the gateway. - - c. Improved instrumentation in the gateway, so that it is possible to - determine where bottlenecks are. - - In addition to gateway tuning, we need to achieve a minimum level of TCP -"good behavior". The occurrence of Silly Window Syndrome under heavy load must -be avoided, or the net will clog up totally. Hosts must provide sufficient -buffering to obtain reasonable throughput under long-delay situations. - - Finally, we must begin to plan for substantial congestion control problems in -the internet. The existing algorithm, which is based on a source quench -message from the gateway to the host, has not been shown to work well. In the -short run, we have not identified any alternative mechanism which will work -better. At a minimum, every host and gateway should implement ICMP, so that -source quench messages can at least be sent and received. More work is -required in this area to determine what the proper action should be. - 7 - - Milestones three and four are closely related, and could have been combined. -The distinction is that milestone three contains things that must be done even -if the offered load is small. Adequate performance may depend on new gateway -hardware, which may delay milestone four. If this is so, users will be -interested in milestone three as a separate goal. - -7. Milestone Five: NCP Service is Discontinued in the ARPANET - This milestone has occasionally been described as a very important one for -the internet implementors. In fact, most of the work necessary at the internet -level to achieve this goal will have been done as part of the previous -milestones. There are essentially two important subcomponents of this -milestone: - - a. The TCP TAC must be deployed. This is very important, and should be - done somewhat in advance of this actual milestone to allow for the - following point. - - b. Facilities for testing and debugging new TCPs must be conveniently - available on the ARPANET, so that hosts converting from NCP to TCP - can verify the correct operation. - - The major effort in achieving this milestone is the implementation of the -previously itemized list of protocols on every host attached to the ARPANET. -This task will require substantial effort, but this effort is provided by the -system maintainers for the systems in question. Our responsibility is to -provide the proper support for those implementors. - - In addition to the testing and debugging facility provided above, the other -important requirement is informal documentation that provides help and guidance -to implementors beyond the actual protocol specification. A number of ways -have been proposed to provide this informal help. One easy strategy is to -distribute a collection of TCP design documents for the TCPs that have already -been implemented. I am currently preparing a number of reports that attempt to -gather together the insights about TCP and IP which are well understood in the -implementation community but may not be obvious to first time implementors. -First topics include strategies for reassembly and packet resequencing, -management of window and acknowledgement algorithms, and proper management of -names, addresses, routes, and ports. Anyone wishing to contribute to this work -should contact me. A table of contents will be out soon. - - There are a large number of preliminary milestones associated with the -upgrade of all ARPANET hosts to TCP, such as document distribution, and -interaction with the various host maintainers, and managers. These subgoals -are not outlined in this document, but are described in a separate document -recently released by Jon Postel. - 8 - -8. Priorities - The preceding discussion of the five service milestones has presented a rough -outline of subtasks necessary to achieve these five goals. A separate project -milestone document, now being prepared, lists these individual tasks in a more -structured form, and provides dates and probabilities of success where known. - -------- diff --git a/text/ien/ien207.txt b/text/ien/ien207.txt deleted file mode 100644 index 3a36f44a..00000000 --- a/text/ien/ien207.txt +++ /dev/null @@ -1,115 +0,0 @@ - -Internet Experiment Note: 207 March 1982 - - - - -MEMORANDUM FOR SECRETARIES OF THE MILITARY DEPARTMENTS - CHAIRMAN OF THE JOINT CHIEFS OF STAFF - DIRECTORS OF THE DEFENSE AGENCIES - - - -SUBJECT: DoD Policy on Standardization of Host-to-Host - Protocols for Data Communications Networks - -Reference: (a) USDR&E Memo, "Host-to-Host Protocols for Data - Communications Networks," 23 Dec 78 (IEN-152). - - (b) DoD Standard Transmission Control Protocol - Specification, Jan 80 (IEN-129, RFC-761). - - (c) DoD Standard Internet Protocol Specification, Jan 80 - (IEN-128, RFC760). - - (d) DoD Directive 4120.3, "Department of Defense - Standardization Program," 6 June 73 - - (e) DoDI 4120.20, "Development and use of Non-Government - Specifications and Standards," 28 Dec 76 - - - -1. The purpose of this memorandum is to clarify DoD policy concerning -standardization of host-to-host protocols for data communications -networks. - -2. The policy cited in reference (a) is reaffirmed, namely: (1) the -use of DoD standard host-to-host protocols (Transmission Control -Protocol (TCP) and Internet Protocol (IP), references (b) and (c)) is -mandatory for all DoD packet-oriented data networks which have a -potential for host-to-host connectivity across network or subnetwork -boundaries; (2) the Director, Defense Communications Agency, is designated -as the Executive Agent for computer communications protocols; and (3) -case-by-case exceptions will be granted by the Executive Agent only for -networks shown to have no future requirements for interoperability. - -3. Reference (a) is not intented to replace the normal DoD -standardization procedures established by DoDD 4120.3 (reference (d)). -Rather, the Executive Agent Function is intended to place increased -emphasis and initiative on the important and currently volatile -technology of data communications protocol standardization. New -standards and modifications to existing standards will be submitted by -the Executive Agent to the Defense Department components for - - - [Page 1] - - - -IEN 207 March 1982 - - -ratification aned dissemination in accordance with the provisions of -reference (d). - -4. DoDI 4120.20 (reference (e)) also continues to apply to protocol -standards. Thus, it is desired that nongovernment protocol standards be -adopted and used in lieu of the development and promulgation of new -documents. Military requirements for interoperability, security, -reliability and survability are sufficiently pressing to have justified -the development and adoption of TCP and IP in the absence of -satisfactory nongovernment protocol standards. In the future, the -Executive Agent will determine whenever unique military requirements -justify the development and adoption of unique DoD protocol standards -after making every effort to use prevailing nongovernment standards. -Moreover, the Executive Agent will make every effort to inject DoD -requirements into the nongovernment standard development process through -participation in voluntary standards forums and through coordination -with other U.S. Government members of such forums. This influence -should be exerted with the objectives of both avoiding the need to -develop and adopt unique DoD standards and enabling eventual replacement -of unique DoD standards with functionally equivalent nongovernment -standards. - - Richard D. DeLauer - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Page 2] - diff --git a/text/ien/ien211.txt b/text/ien/ien211.txt deleted file mode 100644 index 251005f3..00000000 --- a/text/ien/ien211.txt +++ /dev/null @@ -1,564 +0,0 @@ - - -Internet Experiment Note: 211 - - - - PROTOCOL SPECIFICATION AND VERIFICATION WORK AT USC/ISI - Summary Report - August 1982 - - Carl Sunshine - - - - -1. INTRODUCTION - -For the past three years, several projects at USC/ISI, particularly the -Internet Concepts Project, have been studying formal protocol -specification and verification. This work is now coming to an end, and -we would like to present here a summary of results obtained. More -complete information is available in a research report [1]. A complete -list of references to earlier outputs is also included here. - -Section 2 presents a brief outline of the major activites undertaken -and their outputs. Sections 3-5 summarize the results obtained in each -major area. Conclusions are discussed in Section 6. - -2. MAJOR ACTIVITIES - -Our work has been divided into three major areas: survey, in-depth -studies, and standards activities. - -As might be expected, the work began in the survey area in 1979, -building on a study (jointly sponsored by ARPA and NBS) completed while -the author was still at the Rand Corp [2]. Extensions of this work -resulted in two journal publications [3,4]. A later and entirely new -survey was completed in 1981 [5], and again the results were widely -distributed in conferences, journals, and books [6,7,8,9,10]. As part -of this later survey effort, major papers in the field were selected and -collected into a reprint volume, published by Artech House [11]. - -We have also helped to organize a number of workshops bringing together -researchers in the field to discuss current state of the art, problems, -and promising future directions. The first was sponsored by ARPA in -1979 [12,13]. The next was hosted by ISI in 1980 [14]. A major effort -was made to broaden participation in 1981 with a workshop sponsored by -IFIP WG 6.1 and organized jointly with the British National Physical -Laboratory [32]. The success of this effort has led to a series of -annual IFIP workshops on this topic, organized and hosted by us in 1982 -with a published proceedings [15]. - - - - -C. Sunshine [Page 1] - -IEN 211 August 1982 - - - -We have also edited or organized several special sections on formal -modeling of protocols in journals [4,16,17]. - -Our in-depth studies have focused on the appplication of general -software engineering techniques to protocols, and particularly on -experiments with automated tools for verification. The majority of our -work has been done with AFFIRM, a system based on abstract data types -with axiomatic specifications developed at ISI. Experience with several -protocols and with various aspects of the methodology (safety, liveness, -multi-level specifications) have been reported in technical reports -[18,19,20], a conference [21], a PhD thesis [22], and a journal [18]. - -To test other approaches, we have worked with three other automated -verification systems more recently. These were the Ina Jo system [Ina -Jo is a registered trademark of the System Development Corp.] based on -abstract machine notions, the Gypsy system based on a buffer history -approach, and state deltas which employ symbolic execution. Some -preliminary results in these were reported in [23,24,25], while the -major results are in [26,1]. - -Part of our work has involved participation in standards activities in -order to promote wider use of the more rigorous specification methods we -and others have been developing. This work has included development of -specification standards within ISO SC 16 (for use with Open Systems -protocols and services), collaboration with the System Development Corp. -in their development of new IP, TCP, and Telnet protocol specifications -[27,28,29], and comments on the transport protocol being developed for -the National Bureau of Standards by Bolt Beranek and Newman [30,31]. - -3. SURVEY WORK - -Our early work in this area focused on clarifying the meaning of -specification and verification in the context of communication -protocols. This included developing the now widely accepted notion that -complete protocol specifications must include separate definitions of -(1) the service to be provided to the protocol's users, (2) the -mechanisms used within the protocol itself to accomplish those services, -and (3) the services requried from the lower layer(s) used by the -protocol [2,3,4]. - -Ideally, the protocol itself (item 2) should be specified in an abstract -fashion so that its "design" may be verified (shown to provide the -desired service), while still leaving as much freedom as possible for -implementation. Of course, this means that any implementation must also -be shown to properly implement the abstract design (in the more -conventional program verification sense). - -Protcol specification methods have traditionally developed from either a -state machine or program language point of view. State machine models - - -C. Sunshine [Page 2] - -IEN 211 August 1982 - - - -view protocols as accepting inputs and producing outputs based on an -explicit current state which serves to summarize the relevant previous -history of the system. These models include basic finite state automata -(FSA), their extension into abstract machines (with additional state -variables, not necessarily bounded), abstract data types, and graph -models such as Petri nets and their extensions or the UCLA graph model. - -The simpler forms of these have a variety of powerful analysis tools -that are avialable such as state exploration, derivation of invariants -by linear algebra, or reduction methods. Unfortunately, they also lack -the expressive power to completely model protocols of real world -complexity. The extended methods are more successful as specification -tools, but make the analysis problem more difficult. - -Program language models view protocols as just another kind of algorithm -that may be specified using a choice of several high level programming -languages. Verification is then possible by developing appropriate -assertions that reflect desired properties of the protocol, and proving -them by conventional assertion proof methods. Since protocols involve -interaction among several concurrent modules, techniques that can handle -parallel execution are required. - -Traditional program proof methods have focused more on safety properties -(only good things can happen) than liveness (good things will eventually -happen). More recent work to incorporate temporal logic into these -methods facilitates the direct expression and proof of liveness -properties. - -A third group of methods has developed in an effort to eliminate the -appearance of explicit state information in specifications, and to focus -more directly on the input/output behavior of the protocol. Formal -languages and sequencing expressions are methods to specify the allowed -sequences of events directly. Of course these have well known relations -to FSA that recognize or generate the same language. Buffer or event -histories are another technique used in several systems to facilitate -direct expression of I/O behavior. - -Of these different approaches, state machine methods seem to be most -widely used due to their wider understandability and the existence of -automated tools for their manipulation. Surprisingly useful results -have been obtained from the simpler models such as FSA and Petri nets, -with applications to such protocols as X.25, X.21, and local net token -passing documented in the literature [4,11,15]. - -The greater expressive power of abstract machines makes them popular for -more complete or complex protocol specifications. Such methods have -been proposed within ISO, CCITT, NBS, and DoD as favored approaches to -specifying their protocols. - - - -C. Sunshine [Page 3] - -IEN 211 August 1982 - - - -Other methods, particularly temporal logic and sequencing expressions, -are receiving much attention in the research community for their ability -to remedy particular shortcomings, but are still in earlier stages of -development. - -4. IN-DEPTH STUDIES - -Our in-depth studies have focused on the application of existing -automated verification systems to communication protocols. Our main -goal has been to assess the current state of the art in automated -verification and determine the potential for more widespread use of -these techniques in protocol development. - -A common set of example protocols were emplyed with each system. These -were the well-known Alternating Bit protocol (in a form including -arbitrary message loss and retransmission), and the "three-way -handshake" connection establishment protocol from the DARPA TCP. The -former served to test capabilites of the systems to handle "data -transfer" functions, while the latter served to test "control" -functions. Since these protocols are quite mature, our results were -mainly methodological, identifying strengths and shortcomings of each -system, rather than uncovering protocol bugs (although we did discover -an obscure error in TCP). - -Our major interest throughout this work has been on design verification -rather than code or implementation verification. Hence we have -attempted to develop "abstract" specifications for the services and -entities of a given protocol layer, and to prove that the combined -operation of the entitities plus the lower layer service has certain -properties, or meets some service specification. We have been less -interested in the (more traditional) problem of verifying that a -specific program or code correctly implements a protocol entity. - -Affirm - -Our deepest study has been of the Affirm system. Affirm includes a -specification language based on the theory of abstract data types, a -verification condition (VC) generator, and an interactive theorem prover -for proving properties of specifications or of programs. There is also -a library of already specified types (e.g., queues, sets) and their -properties that may be used in building new types. - -Thanks in part to collaboration with the Program Verification Project at -ISI (developers of Affirm), our experience with Affirm has been quite -successful. We were able to model abstract machines in Affirm easily, -to perform multilevel proofs (that a protocol meets its service), and to -prove some other significant properties of several protocols, including -progress properties and finding an obscure bug in TCP [18,19,20]. - - - -C. Sunshine [Page 4] - -IEN 211 August 1982 - - - -Ina Jo - -The other three systems were chosen to explore some particular features, -and received less attention. Ina Jo is specifically intended to model -hierarchies of abstract machines, with mappings from higher to lower -layers defined. The system also includes a specification language, a VC -generator, and an interactive theorem prover. - -Abstract machine type protocol specifications were very easy to write in -Ina Jo, although absence of data types and sometimes cryptic syntax were -shortcomings. But the hierarchical proofs we had hoped to perform -proved impossible due to limitations in Ina Jo's ability to handle -nondeterministic mappings between layers (needed to model protocols with -message loss). The theorem prover was also not as convenient or -flexible, especially in the handling of lemmas, driving us to carry some -proofs into the Affirm system where they could be developed more easily, -and then using the results to continue in Ina Jo. - -Gypsy - -The primary feature of Gypsy that interested us was its reliance on -buffer histories rather than state transitions for specifying process -behavior. The specification language focuses on the external or -input/output behavior of processes, with constructs to refer to the -history of messages read and written by each process in each buffer. - -Gypsy's buffer history orientation proved to be a mixed blessing. When -properties to be specified directly concerned relations between -sequences of messages, Gypsy's buffer history techniques were quite -powerful and convenient. The Alternating Bit protocol falls in this -category, and was essentially proved by transitivity of subsequence -relationships. - -For the three-way handshake, designers clearly think in terms of the -state of an entity when defining its behavior, and it was difficult to -construct meaningful external specifications of the entities. - -Instead the proof was essentially carried out at the code level where -reference to internal state variables and a conventional abstract -machine could be used. In this case, the Gypsy methodology seemed to -get in the way. - -State Deltas - -The Concurrent State Deltas system was an outgrowth of the Microcode -Verification Project at ISI and was still in an early stage of -development. The basic unit of specification is a "state delta" stating -that if a certain precondition is ever met, then eventually a given -postcondition will become true. A set of CSDs for several processors is - - -C. Sunshine [Page 5] - -IEN 211 August 1982 - - - -symbolically executed from a given initial state to determine whether a -desired final state will necessarily be reached. - -Unlike the previous proof systems that are interactive, the symbolic -execution is completely automatic and requires no user aid. In -practice, however, system resources are quickly exhausted for -specifications of any complexity, and the user must provide some -appropriate intermediate goals to force pruning of the proof tree. Thus -proofs of the simplest cases of the three way handshake (no loss or -retransmission) were easiest with CSDs since they were completed totally -automatically, but it was difficult to see how to extend these to more -complex cases. - -The CSD system is also the only one to include specific time bounds. In -simple examples (e.g., specifying that retransmission will not occur -unless no reply will arrive) time bounds effectively simplified the -proof, but including the time information makes the symbolic execution -more complex and hence was not always practical. In more general -protocols, such simple time constraints cannot be assumed anyway. - -5. STANDARDS - -Protocol development is now underway in many forums, and each of these -must select some method for the specification of protocols being -developed. Throughout this research period we have attempted -"technology transfer" by participating in several of these outside -efforts. - -The System Development Corp. (SDC) has been under contract to the -Defense Communications Engineering Center to produce more rigorous -specifications of the DARPA IP, TCP, and Telnet protocols. We -participated in the development of their specification methodology which -is based on abstract machine notions [27], and helped review the -application of this methodology to specific protocol and service -specifications [28,29]. - -Bolt Beranek and Newman (BBN) has been under contract to the National -Bureau of Standards (NBS) to develop a protocol specification technique -and several specific protocols for Federal standards. We participated -in the review of the general methodology, and its application to the -transport layer protocols and services in particular [30,31]. - -The International Standards Organization (ISO) SC 16 has developed the -now widely known Open Systems Interconnection Architecture, and is now -in the process of specifying protocols and services for the various -layers. A subgroup on Formal Definition Techniques has been in -operation within WG 1 for about two years, and we have participated in -their development of guidelines to be used by the other groups actually -developing protocols. These include a specification language based on - - -C. Sunshine [Page 6] - -IEN 211 August 1982 - - - -abstract machine notions much like those in use by BBN, SDC, and others. -The linear form has Pascal language syntax in many places, while a -graphical form based on the CCITT SDL language is likely to be adopted. - -6. CONCLUSIONS - -In the area of specification, it is clear that abstract machine models -are realtively mature, and are in wide use by more ambitious -specification projects. In addition to their benefit in simply defining -a protocol, there are also a number of automated tools that can check -for correct syntax, completeness, and partially validate the -interactions of such specifications, and produce partial -implementations. This technology appears to be ready for more -widespread use, and indeed has already been applied in the work on DoD -protocol standards mentioned above. - -Shortcomings of abstract machine methods in the areas of insufficient -abstraction and handling progress as well as safety are being tackled by -several methods that are in earlier stages of development, such as -sequencing expressions and temporal logic. We expect this work will -have to continue for several years before the results are ready for more -widespread use. - -In the area of verification, based on our experiments with four systems, -we can report that none of the systems has all the features desired, and -none of them is ready for routine and/or mechanical application to -real-world protocols. Affirm was by far the more polished system, but -even there the proof process remained very tedious. - -Surprisingly (to us at least), the major contribution of automated -verification systems does NOT seem to be in reducing the amount of human -ingenuity required to accomplish a proof. Rather, they do seem to -increase the certainty of correctness. If the user has the ingenuity to -formulate the problem in a tractable fashion, and the stamina to follow -through all the tedium, the formally verified conclusion does seem to be -far more reliably correct than with hand proofs. - -Beyond user interfaces and robustness, which certainly need attention in -all but Affirm, each system is lacking some key abilities such as -composition of independent modules, handling progress properties, -redoing portions of proofs, supporting hierarchical verification, or -more automatic proof discovery. Several years' work and a second -generation of verification systems incorporating the best features of -all will be necessary before formal verification of realistic protocols -can be accomplished by other than expert researchers with very large -investments of time. - - - - -C. Sunshine [Page 7] - -IEN 211 August 1982 - - - -REFERENCES - -[1] Sunshine, C., "Automated Protocol Verification", USC Information -Sciences Inst., Research Report, September 1982. - -[2] Sunshine, C., "Formal Methods for Communciation Protocol Specifica- -tion and Verification," Rand Corp., N-1429-ARPA/NBS, November 1979. - -[3] Sunshine, Carl A., "Formal Techniques for Protocol Specification and -Verification", Computer 12, 9, September 1979. - -[4] Bochmann, G., and C. Sunshine, "Formal Methods in Communication -Protocol Design", IEEE Trans. on Communication, COM-28, 4, April 1980. - -[5] Sunshine, C., "Formal Modeling of Communication Protocols", USC -Information Sciences Inst., RR-81-89, March 1981. - -[6] Sunshine, C., "Formal Modeling of Communication Protocols", in -Proc. Conference on Communication in Distributed Data Processing -Systems, Technical University Berlin, January 1981. - -[7] Sunshine, C., "Formal Protocol Specification", State of the Art -Report on Network Architectures, C. Solomonides, editor, Pergamon -Infotech, 1982. - -[8] Sunshine, C., "Local Network Protocols", Proceedings of the Local -Networks and Distributed Office Systems Conference, London, England, -Online Conferences Ltd., May 1981. - -[9] Sunshine, C., "Protocol Verification", talk presented at Nordic -Universities Networking Conference (Nordunet), Copenhagen, Denmark, -June 1981. - -[10] Sunshine, C., Formal Modeling of Communication Protocols", Computer -Networks and Simulation II, S. Schoemaker, editor, North-Holland -Publishing, September 1982. - -[11] Sunshine, C., editor, "Communication Protocol Modeling", Artech -House, Dedham, Massachusetts, 1981. - -[12] Sunshine, C., "The Meaning of Protocol Specification and -Verification", ARPA Protocol Verification Workshop, March 1979. - -[13] Postel, J., "Issues in Protocol Verification", ARPA Protocol -Verification Workshop, March 1979. - -[14] Sunshine, C., "Problem Areas in Protocol Specification and -Verification", ISI Internal Memo, July 1980. - - -C. Sunshine [Page 8] - -IEN 211 August 1982 - - - -[15] Sunshine, C., editor, Proc. 2nd Int. Workshop on Protocol Specifi- -cation, Testing, and Verification, North-Holland Publishing, May 1982. - -[16] Sunshine, C., editor, special issue on Protocol Specification, -Testing, and Verification, to appear in Computer Networks, early 1983. - -[17] Sunshine, C., editor, special issue on Protocol Specification, -Testing, and Verification, to appear in IEEE Trans. on Communications, -December 1982. - -[18] Thompson, D., C. Sunshine, R. Erickson, S. Gerhart, D. Schwabe, -"Specification and Verification of Communication Protocols in AFFIRM -Using State Transition Models", USC Information Sciences Institute, -RR-81-88, March 1981. Also to appear in IEEE Transactions on Software -Engneering, September 1982. - -[19] Schwabe, D., "Formal Specification and Verification of a -Connection-Establishment Protocol", USC Information Sciences Institute, -RR-81-91, April 1981. - -[20] Berthomieu, B., "Algebraic Specification of Communication -Protocols", USC Information Sciences Institute, RR-81-98, December 1981. - -[21] Schwabe, D., "Formal Specification and Verification of a Connection -Establishment Protocol", Proc. 7th Data Communications Symp., Mexico -City, Mexico, IEEE, October 1981. - -[22] Schwabe, D., Formal Techniques for the Specification and -Verification of Protocols, Report No. CSD-810401, UCLA, (PhD Thesis), -April 1981. - -[23] Sunshine, C., "The Restaurant Example Revisited," USC Information -Sciences Institute, Affirm Memo 52, September 1981. - -[24] Sunshine, C., "Experience with Four Automated Verification -Systems", Proc. 2nd Int. Workshop on Protocol Specification, Testing, -and Verification, C. Sunshine, editor, North-Holland Publishing, -May 1982. - -[25] Overman, W., and S. Crocker, "Verification of Concurrent Systems: -Function and Timing", Proc. 2nd Int. Workshop on Protocol Specification, -Testing, and Verification, C. Sunshine, editor, North-Holland -Publishing, May 1982. - -[26] Overman, W., "Verification of Concurrent Systems: Function and -Timing", PhD thesis, UCLA, 1981. - - -C. Sunshine [Page 9] - -IEN 211 August 1982 - - - -[27] Simon, G.A., "DCEC Protocols Standardization Program/ Protocol -Specification Report," System Development Corp., TM-7038/204/00, -July 1981. - -[28] Bernstein, M., "DCEC Protocols Standardization Program: Proposed -DoD Internet Protocol Standard", Systems Development Corp., -TM-7038/205/01, December 1981. - -[29] Bernstein, M., "DCEC Protocols Standardization Program: Proposed -DoD Transmission Control Protocol Standard", Systems Development Corp., -TM-7038/207/01, December 1981. - -[30] Sunshine, C., "Comments on the NBS Transport Protocol Proposal", -USC Information Sciences Inst., IEN-195, August 1981. - -[31] Sunshine, C., "Comments on 'Formal Service Specification of the -Transport Protocol Services'" (April 1982 draft by Bolt Beranek and -Newman for the National Bureau of Standards), USC/ISI memo, June 1982. - -[32] Sunshine, C., "Protocol Workshop Report", Computer Communication -Review, Special Interest Group on Data Communication, ACM, July#1981. -Also in Computer Networks, V.5, N.4, July 1981. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -C. Sunshine [Page 10] diff --git a/text/ien/ien212.txt b/text/ien/ien212.txt deleted file mode 100644 index 7b7130fc..00000000 --- a/text/ien/ien212.txt +++ /dev/null @@ -1,755 +0,0 @@ - - - - - IP - Local Area Network Addressing Issues - - - - IEN - 212 - - - - - - - - - Robert Gurwitz - Robert Hinden - - - - - - Bolt Beranek and Newman Inc. - 10 Moulton St. - Cambridge, Massachusetts 02238 - - - - - - - - - September 1982 - - - - - - - - - prepared for - Defense Advanced Research Projects Agency - Information Processing Techniques Office - 1400 Wilson Boulevard - Arlington, Virginia 22209 - - - - - - - - - - - IP-Local Area Net Addressing September 1982 - IEN-212 - - - - Table of Contents - - - - - 1 Introduction.......................................... 1 - - 2 IP to Local Network Address Mapping................... 2 - - 3 Broadcast Addressing.................................. 7 - - Appendix A - Revised Information Reply Message............ 9 - - References............................................... 11 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -i- - - - - - - - IP-Local Area Net Addressing September 1982 - IEN-212 - - - - 1 Introduction - - - This note discusses several issues in Internet Protocol (IP) - - addressing in local area networks, such as Ethernet [1]. Such - - networks typically have addressing characteristics and features - - that are different from earlier network implementations, such as - - the ARPANET. Specifically, we describe approaches for handling - - IP to local network address mapping and broadcast. The methods - - described below are meant to integrate these features of local - - networks into the DARPA internet within the spirit of IP, in a - - general manner that is not tied to a particular network - - implementation. The goal here is to minimize the need for - - changes to IP, by adopting conventions and methods that use - - existing mechanisms. - - - Of course, the approaches described here are not unique. - - Other methods have been described which are similar in spirit to - - that presented here. The purpose of this note is to stimulate - - discussion of these issues, with the goal of arriving at a - - consensus on how to resolve these and possibly other issues - - relating to the use of local area networks in the internet. - - - - - - - - - -1- - - - - - - IP-Local Area Net Addressing September 1982 - IEN-212 - - - - 2 IP to Local Network Address Mapping - - - Ethernet differs from other networks in the internet in that - - it uses local addresses which are larger (48 bits) than IP - - addresses (32 bits). With other networks having smaller local - - address formats, the mapping from local network address to IP - - address is simple: embed the entire local address in the - - appropriate class of IP address. For example, in the ARPANET - - which has 24-bit addresses, the mapping to a class A IP address, - - which has 24-bits of local host address, is direct: - - - Host A on IMP B -> 10.A.B(hi).B(lo) - - - where 10 is the class A network number for the ARPANET, the host - - portion of the local address is an 8-bit value, and the IMP - - portion is a 16-bit value whose high order 8 bits are usually - - zero. Note that mapping a 24-bit ARPANET address to a non-class - - A address, would require some other approach, like truncation - - (say, dropping the high order 8 bits of the IMP part) or table - - lookup. - - - A similar, but more severe, problem occurs with 48-bit - - Ethernet addresses. In this case, there may be no simple direct - - mapping (like truncation) to the 32-bit IP address, since the - - - - - -2- - - - - - - IP-Local Area Net Addressing September 1982 - IEN-212 - - - - address of an individual Ethernet controller is a unique 48-bit - - value assigned by the manufacturer that could conceivably - - conflict with other addresses on the local network if a subset of - - the 48-bits is used to form the local host part of the IP - - address. - - - To solve this potential conflict, we choose a mapping that - - depends on table lookup. Each host on the local network is - - assigned an IP address with a unique local host part for that - - network. The IP module in that host "knows" its own IP address - - and uses it to send and receive IP datagrams. Other hosts on the - - local network (including gateways), maintain tables which map the - - IP addresses of the other hosts to their corresponding local - - addresses. - - - This table may be "hardwired" into the IP modules or - - initialized when the host comes up. A better implementation - - would be to maintain the table as a cache, whose entries are - - updated dynamically while the host is active. To do this, we can - - make use of a feature supported by many local area networks, - - "broadcast addressing". This feature allows messages to be - - received by all hosts on the local network, by sending them to a - - specially designated broadcast address (in Ethernet the broadcast - - - - - -3- - - - - - - IP-Local Area Net Addressing September 1982 - IEN-212 - - - - address is "all ones"). To map a given IP address to its - - corresponding local address, the IP address is used to look up - - the local address in the mapping table. If the mapping is found, - - the local address is used in the local network header. - - Otherwise, if no mapping is found in the table: - - 1) Send the datagram which was not in the mapping table to the - local broadcast address (see figure 1). All hosts on the - network including the correct one (the one specified by - destination IP address in the datagram) will receive the - datagram. - - --------------------- - | local src addr -A | - +-------------------- - | broadcast address | - --------------------- - | IP src addr - A | - --------------------- - | IP dst addr - B | - --------------------- - | Datagram needing | - | mapping | - --------------------- - - Figure 1 . Broadcast Datagram - - - - 2) The host on the network that recognizes its IP address in - the datagram and notices that the datagram was received on - the local network bradcast address sends an ICMP information - reply message to the host that broadcast the request, with - its local address filled in and its local network address in - the data portion of the message (see figure 2). ** It also - _______________ - ** Currently, there is no data area defined in the ICMP - Information Reply message. We propose to add one for the purpose - described in the document. Appendix A contains the format of - ICMP Information Reply message with the data area. - - - - -4- - - - - - - IP-Local Area Net Addressing September 1982 - IEN-212 - - - - accepts this broadcast datagram since it contains its IP - address as the destination. - - --------------------- - | local src addr -B | - +-------------------- - | local dst addr -A | - --------------------- - | IP src addr - B | - --------------------- - | IP dst addr - A | - --------------------- - | ICMP information | - | reply | - --------------------- - - Figure 2 . Mapping Reply Format - - - - 3) When an ICMP information reply is received, an entry is made - in the mapping table, using the local address found in the - data portion of the message. - - - Finally, there must be some way of invalidating table entries, to - - handle cases like a host on the local network changing addresses: - - Whenever a host on the local net comes up, it broadcasts an - ICMP information reply with its source IP and local network - addresses (figure 3). Other hosts on the network can use - this information to update their tables. - - - This message contains the notion of an "IP broadcast address". - - This is simply a means of mapping an IP address to the local - - network broadcast address. It has the effect that any IP module - - on a particular network should accept datagrams with the - - broadcast address as the IP destination. The IP broadcast address - - - - -5- - - - - - - IP-Local Area Net Addressing September 1982 - IEN-212 - - - - - --------------------- - | local src address | - +-------------------- - | broadcast address | - --------------------- - | IP src address | - --------------------- - | IP broadcast addr | - --------------------- - | ICMP information | - | reply | - --------------------- - - Figure 3 . Mapping Initialization Format - - - is discussed further below. Note that the use of this message - - also lowers the chances of hosts not having the mapping in their - - table, and reduces the number of broadcast mapping requests. - - - This approach has several advantages. 1) It is general - - enough to work on all local networks that support broadcast - - addressing. 2) It fits into IP without any major changes such as - - increasing the size of the addresses. 3) Hosts which do not - - implement this approach will still get all of their datagrams (at - - the cost of high overhead for all others on the net). 4) It - - allows hosts on the local network to assign their own local - - portion of their IP addresses and the mapping between their IP - - address and their local network address. - - - - - - - -6- - - - - - - IP-Local Area Net Addressing September 1982 - IEN-212 - - - - On the negative side, it can potentially cause adverse - - network and host performance when many hosts on the net are - - coming up, because of the use of broadcast packets. Also, - - performance can be degraded by hosts which do not implement the - - scheme fully, causing more broadcast packets to be sent. However, - - we expect the use of broadcast mapping requests to be a low - - frequency occurance. - - - - - 3 Broadcast Addressing - - - The scheme described above introduced the concept of IP - - broadcast address. We believe this is a generally useful notion, - - since it allows IP hosts to take advantage of an additional - - addressing capability supported by some local area networks. We - - propose to define the IP broadcast address to be the IP address - - in each class with all its local host part bits on. (E.G., - - A.255.255.255 for class A, A.B.255.255 for class B, and A.B.C.255 - - for class C.) In each case, the address would map to the local - - network broadcast address if broadcast addressing was supported. - - On messages coming from other networks, the mapping would be done - - in the gateway. If a network did not support broadcast - - addressing, an ICMP destination unreachable message would be - - - - - -7- - - - - - - IP-Local Area Net Addressing September 1982 - IEN-212 - - - - returned. The only "cost" of this mechanism is that it reserves - - one IP address from each class. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -8- - - - - - - IP-Local Area Net Addressing September 1982 - IEN-212 - - - - Appendix A - Revised Information Reply Message - - - 0 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Type | Code | Checksum | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Identifier | Sequence Number | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - | Data ..... - +-+-+-+-+-+- - - IP Fields: - - Addresses - - The address of the source in a information request message - will be the destination of the information reply message. - To form a information reply message, the source and - destination addresses are simply reversed, the type code - changed to 16, and the checksum recomputed. - - ICMP Fields: - - Type - - 15 for information request message; - 16 for information reply message. - - Code - - 0 for normal information request/reply - 1 for information reply with local network address in data - portion. - - Checksum - - The checksum is the 16-bit ones's complement of the one's - complement sum of the ICMP message starting with the ICMP - Type. For computing the checksum, the checksum field should - be zero. This checksum may be replaced in the future. - - Identifier - - - - -9- - - - - - - IP-Local Area Net Addressing September 1982 - IEN-212 - - - - If code = 0, an identifier to aid in matching request and - replies, may be zero. - - Sequence Number - - If code = 0, a sequence number to aid in matching request - and replies, may be zero. - - Description - - Code 0: - Code 0 may be received from a gateway or a host. - - This message may be sent with the source network in the - IP header source and destination address fields zero - (which means "this" network). The replying IP module - should send the reply with the addresses fully - specified. This message is a way for a host to find - out the number of the network it is on. - - The identifier and sequence number may be used by the - echo sender to aid in matching the replies with the - requests. For example, the identifier might be used - like a port in TCP or UDP to identify a session, and - the sequence number might be incremented on each - request sent. The destination returns these same - values in the reply. - - Code 1: - - This message (Information Reply only) is used by a - local area network host to inform another host what its - local network address in relation to its IP address. - The hosts local network address is sent in the data - portion of the message. - - - - - - - - - - - - - -10- - - - - - - IP-Local Area Net Addressing September 1982 - IEN-212 - - - - References - - [1] "The Ethernet, A Local Area Network: Data Link Layer and - Physical Layer Specifications", Version 1.0, Digital - Equipment Corp., Intel, Xerox, Sept. 30, 1980. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -11- - - - - diff --git a/text/ien/ien23.txt b/text/ien/ien23.txt deleted file mode 100644 index f3326870..00000000 --- a/text/ien/ien23.txt +++ /dev/null @@ -1,232 +0,0 @@ - - - - - - Jan 23, 1978 - Danny Cohen -IEN: 23 -Notebook Section 2.3.3.7 - - - - - On Names, Addresses and Routings - -------------------------------- - - - -DESTINATIONs and SOURCEs of communication have names. These -destinations and sources are processes which exist outside the -communication subnet (e.g., in HOSTs) or inside it (e.g., in GATEWAYs, -NET-NODEs, etc). - -Names are not necessarily unique to destinations. Certain processes may -have more than a single name. There are two kinds of names, names which -specify a unique process and names which specify a set of processes -(e.g., by capability). - -A name tells WHO (or WHAT) the process is. - -It is conceivable the names are arbitrary alphanumeric string suited for -human readability. - -In addition to names, processes have addresses which indicate WHERE they -are. Again, it is possible that several different names share the same -address, and also that the same name has several addresses. - -In order to move messages from sources to destinations, not only the -address of the destination (i.e., where it is) has to be known, but also -HOW-TO-GET-THERE. This knowledge is the ROUTING. - -It is, obviously, possible that the same address can be reached by more -than one route. - -These beautiful definitions of NAMEs (what), ADDRESSes (where) and -ROUTING (how-to-get-there) are borrowed from John Shoch. - -To summarize: destinations and sources have names. Names are -"converted" into addresses, and addresses into routings. However, none -of the above mappings is a one-to-one correspondence. - -Names have to be unambiguous within a certain environment. - -From outside of this environment, the environment, too, has to be -specified in order to complete the name specification i.e., to -disambiguate it completely. This is the essence of hierarchical naming. -A very similar argument holds for addresses. Within a certain -environment addresses are unique, outside of it, the environment has to - - Page 2 - - - -be specified ("addressed") too. Obviously, environments have -names/addresses which are unique within some bigger super-environment, -out of which, the super-environment has to be specified, too. And so -on. - -Note that in general address (and names) are hierarchical. The -non-hierarchical case (or the "flat" situation) is a special case of -hierarchy, with depth equal to one, and width equal to the total number -of addresses. - -The mapping of names to addresses cannot be computed, and can be -resolved only by reference to directories. Hence names from which -addresses can be computed are not names in the true sense, but addresses -in disguise. - -These directories may be implemented in various ways, ranging from -off-line distributed directories (like paper based telephone -directories) to online centralized services (like 411) even by or -utilizing some broadcasting techniques. - -The sole purpose of addressing is to support routing. The address which -tells where the destination is, is only important for determining the -routing (i.e., how to get there). - -The key question is who performs the mapping of addresses into routing. - -Several avenues can be pursued. (1) Sources supplying the entire -routing from source to destination (source-routing), or (2) source -supplying only the name (or address) of the destination, and the -communication subsystem performing the routing (communication-routing), -and (3) a hybrid of the above, by the source supplying some intermediate -destinations along the route, such that the communication subsystem can -perform the routing between these given destinations. - -Note that (3) is a generalization of both (1) and (2). If done right, -it should have the advantages of both, else it may have their combined -disadvantages. - -There are too many (obvious) problems associated with a complete -source-routing, (1), which are amplified in dynamically changed -networks. Basically, the user is faced with the need to specify -completely the routing whenever a message is sent. Since most of the -information needed for finding the routing is originated in the -communication subsystem, this is an undue burden which should be -minimized. - -On the other hand the other extreme, the communication-routing, (2) , is -not problem-free either. - -In the case of flat address-spaces too much knowledge has to be -maintained, with all the problems associated with this requirement. -Therefore, it is preferred to implement hierarchical addressing and -hierarchical routing, which matches it in a unique way. As a matter of - - Page 3 - - - -fact, it seems that the most "natural" avenue is to follow the -well-debugged paradigm of the telephone system, and have both -hierarchical names, which are uniquely mapped into hierarchical -addresses. - -One of the bigger drawbacks of this scheme is that it will not support -an application of INTERnet fast facilities in order to expedite INTRAnet -traffic, like using satellite links (which belong to SATnet) in order to -expedite internal coast-to-coast ARPAnet traffic. - -Since the flat address space is a special case of the hierarchical one, -we would like to treat all address spaces as hierarchical ones, and -consider the argument of flat vs. hierarchical as optimizing the -depth/width combination. - -The disadvantage of a big flat name/address subspace (as opposed to a -hierarchical one) is that it requires that large table of addresses be -maintained, that names/addresses be cleared before being put into use -and that everyone knows about everyone, a requirement which is not -feasible to fulfill when the dimension of this space keeps increasing. - -An example for a very flat name space is the social security number, as -opposed to telephone numbers and mailing addresses. Note that this -space is a subspace of a bigger space which includes also SSNs (or other -unique IDs) of people in other countries. - -Note that both telephone numbers and mailing addresses are a kind of -routing of the 3rd flavor. It is supplied by the source, and may have -as much (or as little) information to get to the environment where the -next piece of routing is nonambiguous. - -An example of source-routing, (1), is calling from a centrex system to a -centrex system in another area code. - -An example of communication-routing, (2), is the interHOST traffic -within the ARPAnet. - -An example of user-assisted-routing, (3), is an operator-assisted person -to person call without knowing the number. For example, one has to tell -the communication subsystem (here, a sequence of operators) that the -other person is (a) in Massachusetts, (b) in Cambridge, (c) at MIT, and -finally (d) the final destinations name. In this case the source -supplied the sub-destination "Masachusetts" (or 617) but the -communication system was free to choose the optimal route there. - -Another example is a call which is placed from a military base to -another. Normally the AUTOVON system is used, but many times at the -discretion of the individuals, they use the AUTOVON system to get -outside to the commercial network, and back to the destination base, -where the AUTOVON system is used again for the terminal contact. This -is a example of an INTRAnet (AUTOVON) call which for quality, -convenience and similar reasons, uses INTERnet facilities. - - Page 4 - - -Another interesting observation about the telephone systems. Telephone -addresses are of variable length. This does not mean only that -different addresses may have different lenghts, but that the same -address may have several lenghts, depending from where it is refered to. -For example inside most organizations extensions may be reached by -dialing about 4 digits only. from outside the organization, but still -in the neighborhood 7 digits are usually needed, from a larger -neighborhood it is 8, then 10, and so on. This is to be expected since -telephone numbers are the basis for the hybrid routing used. Telephone -numbers are parsed sequentially, and can traverse hierarchies up and -down because of the prefixes used to indicate the "up" direction (like -the 9 for outside, and the 1 for area code). - -It seems to me that we might like to implement a very similar structure -for addressing. - -One way to implement such a user assisted routing is to implement a -special FORWARDER process (on a well-known PORT), whose function is to -receive messages, retrieve the "next-address" from its data and resubmit -it for transportation to the next sub-destination, while doing the right -things to acknowledgments, duplicates and the like. These processes do -not have to be implemented on all systems, but only on a certain subset, -where this capability is needed. This would eliminate the need for -making all processes able to handle variable length multilevel -addressing. - -SUMMARY - -The address space should be hierarchical, because it is more general -than the flat space, and mainly because it may be not practical to have -everyone knowing about all the other participants in this space. - -The format of the ADDRESS should be made more general (extensible). - -Routing which follows the hierarchy of the address space has -difficulties in utilizing internet resources for intranet traffic. - -The distribution of all the knowledge needed to support routing which is -entirely performed by the communication subsystem may also turn out to -be impractical. Relying always on the source to supply the entire -routing has its obvbious problems. - -Therefore we highly recommend that the hybrid approach will be used. - -ACKNOWLEDGMENT - -Recent discussions with John Shoch and David Boggs were a very -educational experience for me, and helped me to understand these issues -better. This note and John Shoch's note on the same subject (both are -prepared for the same January 1978 TCP meeting) cover similar issues, -and are basically in agreement about most issues. However, minor -differences between the them seem to justify their existance separately. - - - diff --git a/text/ien/ien3.txt b/text/ien/ien3.txt deleted file mode 100644 index 7a5d338a..00000000 --- a/text/ien/ien3.txt +++ /dev/null @@ -1,736 +0,0 @@ - - - -IEN # 3 Jon Postel -Supercedes: None ISI -Replaces: None 18 August 1977 - - - 1.4.1 INTERNET Meeting Notes - 15 August 1977 - -Editors Remarks - - Here are some notes from the Internet meeting held at ISI on 15 August - 1977. The notes are incomplete, and remarks attributed to individuals - may be in error. - -Agenda - - Opening Remarks - Danny Cohen - Meeting Objectives - Vint Cerf - Current Internet Plans - Vint Cerf - Issues in Internetting - Andrew Hinchley & Chris Bennett - Gateway Monitoring - Bob Bressler - International Standards - Vint Cerf - X.25 Gateway Interface Experiment - Peter Kirstein - Type of Service Issues - Danny Cohen - Internet Mail Service - Steve Crocker - Wrap Up - Vint Cerf - Future Meetings - Vint Cerf - -Opening Remarks - Danny Cohen - - Cohen discussed the agenda and the rules of the meeting, Danny is - moderator and can recognize people to speak or cut people off if - necessary. - -Meeting Objectives - Vint Cerf - - Cerf presented the following meeting objectives: - - Review the current internet plans - Raise and discuss internet research issues - Compose a list of objectives of internet research - Prepare a prioritized list of internet tasks - Prepare a prioritized list of internet experiments - - - -Section 1.4.1 [page 1] - - 18 Aug 77 -IEN # 3 INTERNET Meeting Notes - - - -Current Internet Plans - Vint Cerf - - Cerf reviewed the current (FY 78) Internet Plan: - - TCP Development - - UCLA - 360/91 - MIT - Multics - BBN - Tenex, Tops 20, Unix - SRI - LSI-11 - NDRE - NORD-10 - UCL - PDP-9 (?) - - Network Development - - BBN - ARPANET (gateway routing, flow control, broadcasting) - MIT/LCS - LCSNET, CHAOSNET - Collins & BBN - Packet Radio Network Broadcasting - MIT/EE - Theory (spanning trees...) - - Gateways - - BBN - Packet Radio / ARPANET - BBN - Packet Satellite / ARPANET - BBN - ARPANET / RCCNET - BBN - Gateway Control Center - XEROX - Packet Radio / Ethernet - MIT - ARPANET / LCSNET(s) - UCL - EPSS / ARPANET - UCL - EPSS / Packet Satellite - UCL - X.25 Net Issues - BBN - Gateway flow control, routing, reporting, checks and - balances, etc. - UCLA - Internet performance modelling and analysis, gateway flow - and congestion control - MIT/EE - Relibility of internetworking, alternate routing - ISI - Fast network deployment, addressing, authentication - - - - - -Section 1.4.1 [page 2] - - 18 Aug 77 -IEN # 3 INTERNET Meeting Notes - - - - Internet Performance Measurement - - UCLA - Internet Measurement Center - UCL - Internet Gateway traffic generation and performance - measurement - - Internet Services - - ISI - Internet Mail - - Protocol Development - - ISI - Internet Types of Service (TOS) - ISI - Conferencing, multi-connection synchronization - LL - Packet Satellite / internet speech [NDRE, UCL, LL, BBN, - LPCMs] - SRI - Impact of TOS on Packet Radio - ISI - Protocol Modelling and Testing/Evaluation System - - Cerf: We need a specification for a gateway so that other - inplementations will come out the same. - - Cerf reviews related working groups: - - TCP working group ( V. Cerf - ARPA) focuses on TCP as an end to end - protocol in an internet environment, technical orentation. - - Packet Radio working group (D. Neilson - SRI) - - Packet Satellite working group (I. Jacobs - Linkabit) - - Internet working group (D. Cohen - ISI) focuses on network - interconnection problems and plans internetwork experiments. - - - - - - - - - -Section 1.4.1 [page 3] - - 18 Aug 77 -IEN # 3 INTERNET Meeting Notes - - - - Cerf reviews the "number czars" for various note series etc: - - PSPWNs - Lin-Nan Lee (Linkabit) [JACOBS@ISIE] - PRTNs - Ron Kunzelman (SRI) [PRSETD@ISIC] - IENs - Jon Postel (ISI) [POSTEL@ISIB] - Network Identifiers - Jon Postel (ISI) [POSTEL@ISIB] - Internet Messages Types - Jon Postel (ISI) [POSTEL@ISIB] - - Cerf reviews the forecast of events in interneting: - - TCP Development - - Sep 77 - Experimental small-machine Top20 TCP - Oct 77 - Unix TCP - Nov 77 - Operational small-machine Tops20 TCP - Dec 77 - Nord 10 TCP - Jan 78 - Tenex TCP - May 78 - large-machine Tops20 TCP - Jul 78 - 360/91 TCP - - Network Development - - Sep 77 - 2 node PR test cell in Boston - Jan 78 - LCS Net - Jun 78 - PR Net Broadcast - Dec 78 - ARPANET Broadcast - - Gateways - - Oct 77 - Ethernet/PR net - Dec 77 - Gateway monitoring center - Jan 78 - LCSNet/ARPANET - Jan 78 - X.25 Epss interface / SATNET - Apr 78 - Gateway flowcontrol, routing etc specification - Oct 78 - Gateway flow control, routing, etc. Pass 1 implemented - Jan 79 - PR Net in Army C2 test bed - - - - - - -Section 1.4.1 [page 4] - - 18 Aug 77 -IEN # 3 INTERNET Meeting Notes - - - - Performance Measurements - - May 78 - SATNET/ARPANET/EPSS/PRNET performance tests (UCL) - Oct 78 - Internet Measurement Center (UCLA) - Jan 79 - Internet performance tests - Mar 79 - Rapid deployment tests - - Protocol Development - - Sep 77 - TCP 2.5 specification - Jan 78 - Unix telnet - Mar 78 - Tenex & Tops20 Telnet - Apr 78 - Draft TOS Specification - May 78 - Prototype FAX specification from UCL - Jul 78 - Prototype internet mail service - Aug 78 - Tenex & Tops20 FTP - Sep 78 - Internet speech conferencing specification - Oct 78 - 360/91 telnet & ftp - Mar 79 - Internet speech conferencing tests - Jun 79 - Speech & Video conferencing specification - - Demos - - Sep 77 - Point to point raw internet speech demo - May 79 - Internet services demo - - Cerf: We need a specification of how a gateway should behave to - cooperate with a gateway control center. - - Kirstein: EPSS and SATNET will have X.25 interfaces but there is no - plan for an X.25 interface to the ARPANET. - - Cerf: The issue of secure internetting is postponed. - - Cerf: There is consideration of an effort to develop a new ftp, but - there is no plan as yet. - - Kirstein: FAX might be worked into the speech and video conferencing - system. - - - -Section 1.4.1 [page 5] - - 18 Aug 77 -IEN # 3 INTERNET Meeting Notes - - - - Kirstein: Are LLL or Commercial nets to be involved in internet - experiments? - - Cerf: LLL is interested in TCP for the local to Livermore Octopus net - not the CTR net. - - Cerf: No current plans to get commerical nets involved. - - Kirstein: What is happening about AUTODIN II and ARPANET as described - at TCP Meeting? - - Cerf: That plan is no longer active, and it is not expected that there - will be any move to get people off the ARPANET until 1980, after that - AUTODIN II service may be offered instead of ARPANET on a customer by - customer basis. - - Kirstein: It seems more likely that university type users will have to - go to a commerical net than get on AUTODIN II, so shouldn't we be - exploring internetting with commercial nets now? - -Issues in Internetting - Andrew Hinchley & Chris Bennett - - Hinchley & Bennett discussed the paper (PSPWN 76, INDRA 637) "Issues - in the Interconnection of Datagram Networks" that was distributed - prior to the meeting. - - Hinchley: there are three catagories of interconnections: - - 1) ARPA like datagram networks, - - 2) PTTs X.25 networks, note that the PTTs are moving very fast with - a model of an internetwork system composed of a small number of very - large national networks, - - 3) Interconnection of private networks via public X.25 networks. - - The SATNET experience is the basis for these (PSPWN 76) comments. - - Cerf: Is a gateway a piece of hardware physically connected to two or - - - -Section 1.4.1 [page 6] - - 18 Aug 77 -IEN # 3 INTERNET Meeting Notes - - - - more networks, or is it pair(s) of software modules connected by - physically complicated networks ? - - Kirstein: We should be more aware of what is going to be possible with - PTT provided "virtual call networks". - - Bennett: Addressing is a topic discussed in the memo. - - Cerf: Up to now we have not had names for gateways, but now we may - need names if gateway control centers are to communicate directly with - gateways. - - Cerf and Crocker discuss gateway models, one point was that one should - try a model with a three or more connected gateways since sometimes a - two connected model may make things seem simpler than they really are, - another point is that a gateway is a kind of a forwarder, and Crocker - argues that the forwarder is logically a network. - - Postel: An address is just a string of bits, with each address parser - consuming part of the string, to give a gateway an address reserve one - value of the set of values representable in the bits the gateway - parses, that reserved value means "here". - - Kirstein expressed concern about the address space in the individual - networks. Also concerned about translations necessary when going - between datagram and virtual call networks. - - Cerf: Does the way a thing is named specify the way one gets to it? - Especially if a thing is multi-hommed? - - Shoch: One way is all gates are in the same net and have exactly one - address. Another way is that a gateway has distinct host address on - each net it is connected to. - - Cerf: If the gateway control center has to talk to the gateway and the - gateway has two names, which name does the control center use? - - Shoch: Someone has to take responsibility for choosing. - - Jacobs: Where do the global unique names come from? - - -Section 1.4.1 [page 7] - - 18 Aug 77 -IEN # 3 INTERNET Meeting Notes - - - - Postel: They are external. We always have a unique description, - usually by location, for objects. The gateway control center will have - to have for each gateway a unique (external) name, and associated with - that a list of internal addresses. - - Cerf designates that there be a committee to study addressing and - naming of gateways to (1) figure out what things there are, and (2) - figure out how to address them. Crocker is chairman. - - Bennett: Routing in the Internet is discussed in PSPWN 76. The main - ideas are that adaptive routing in internet is not likely to be much - good due to the larger delays in information propagation. Fixed - routing with a number of alternatives (this is also called "Explicit - Path Routing") might be useful. [Naylor says this is explored by IBM - Zurich.] Could use alternate routing in a event driven form to recover - from service outages. One issue is what to base the adaptation on. - - Postel: Most of the things normally used could get washed out by local - traffic. - - Crocker: Perhaps there are some things... - - Postel: for example queue lengths in the gateways. - - Cerf: Adaptive routing is not a substitute for congestion control. - - Jacobs: The information available to a gateway includs both facts - about its directly attached networks and information received from - other gateways. - - Cerf: Gatways may have to exchange information about what paths are - viable. If one packet from a gateway to a host in the ARPANET results - in a "host dead" error what does the gateway do about other packets to - the ARPANET? We should avoid having a lot of state information in the - gateways. - - Postel: What happens when the ARPANET says to a gateway "host dead"? - - Jacobs: Nothing. - - - -Section 1.4.1 [page 8] - - 18 Aug 77 -IEN # 3 INTERNET Meeting Notes - - - - Cerf: Try to pass an error message back to source TCP. We have no - conventions for this as yet. - - Mathis: Out thinking has been: Gateways do routing; TCPs do not do - routing. - - Cohen: Routing algorithms need to be smarter. - - Hinchley: Flow Control Possibilities - - 1) No control at gateway level (expect end-to-end control to take - care of any problems) - - 2) Gatway to Gateway control - - 3) Terminating Gateway Control (source - desination gateways - control flow) - - 4) X7X virtual circuit control - - This is a range of possibilities. - - Postel favors a hop by hop (that is gate by gate) flow control. - - Cohen: Why should there be a single type of flow control? The type of - service (drops, streams, floods) should get different kinds of flow - control. - - Jacobs: In SATNET there are a whole rage of stratagies from try once - to try very hard to get a message through. - - There occured at this point a discussion of the cost of hop by hop - acknowledgements. - - Jacobs: This should all be in terms of bump to bump, that is a - gateway consist of a bump for each connected network and a core, any - network is between a pair of bumps, and the bumps should decide how - much error control etc is needed across that network. - - There was a discussion of status information, particularly error - - -Section 1.4.1 [page 9] - - 18 Aug 77 -IEN # 3 INTERNET Meeting Notes - - - - reports. If a gateway has a problem then it is an internet error and - "the internet" ought to tell the source about it. If a destination - host has a problem then a service center could know the problem and a - query to the services center could tell the source what is happening. - - Hinchley: Gateway Control, Once gateways get above a certain level of - complexity there needs to be a control function, that suggest that the - reshould be a gateway control language which is standard throught the - internet. - -Gateway Monitoring - Bob Bressler - - Bressler described the current gateway monitoring center as a fairly - simple program that summarized reports from the SIMP and some other - gateway. The information reported was: - - number of messages sent and received on each port of each gateway - and the number of messages dropped by the gateway - - The gateways spontaneously generate the reports to the control center, - the control center curently sends no messages to the gateways. There - are data generators and data sinks in the gateways now controled by - XNET a ddt like cross net debugger. - - Kirstein: One of the simplest services one could provide is reliable - delivery but allow duplicates to be delivered as well. - - Hinchley: What common functions can be listed? - - restart - reload - run a diagnostic - update routing information - - Shoch: Gateways exchange routing tables perodically gratuitously. Many - processes in a gateway for example time server, name lookup server, - boot loaders, measurement process, echo server, source, sink, trace. - - Shoch: There is a distinction between Routing, Addressing, and Naming. - - - -Section 1.4.1 [page 10] - - 18 Aug 77 -IEN # 3 INTERNET Meeting Notes - - - - Kirstein: There will need to be several monitoring centers. There may - be a central control center that forwards suggestion for control to - national control centers. - - Burchfiel: No gateway in the ARPANET currently does fragmentation. - -International Standards - Vint Cerf - - Cerf reviews international standards organizations: - - ITU - International Telecommunications Union (established by treaty) - CCIR - International Radio Consultative Committee (issues - recommendations on the use of electromagnetic spectrum) - CCITT - International Telegraph and Telephone Consultative - Committee (issues recommendations on telephone and telegraph - communication) - PTTs - Government operated Post, Telephone & Telegraph Systems - ATT - American Telephone and Telegraph Corporation - IFIP - International Federation for Information Processing - ANSI - American National Standards Institute - cats & dogs - common carriers - manufacturers - EIA - Electronic Industry Association - government - NBS - National Bureau of Standards - DCA - Defense Communications Agency - ISO - International Standards Organization - ANSI - PTTs - manufacturers - IFIP - CEPT - - UK - France - DBP - - - - - - -Section 1.4.1 [page 11] - - 18 Aug 77 -IEN # 3 INTERNET Meeting Notes - - - - ECMA - European Computer Manufacturers Association - CII - HB - Phillips - ICL - - Cerf reviews relevent standards activity: - - Analog - - V.24 (CCITT recomendation) = RS232C (EIA) - - Digital - - X.21 <-> RS232C - - HDLC (ISO) <-> [SDLC (IBM), UDLC (Univac), ADCCP (ANSI)] - - X.25 packet network interface, virtual call, asymetric - - X.C PAD control - - X.7X packet net / packet net interface (virtual circuit) - -X.25 Gateway Interface Experiment - Peter Kirstein - - Kirstein discussed the work UCL is going to be doing with EPSS and - X.25 interfaces. - - - - - - - - - - - - - - -Section 1.4.1 [page 12] - - 18 Aug 77 -IEN # 3 INTERNET Meeting Notes - - - -Type of Service Issues - Danny Cohen - - Cohen discussed Type of Service issues. He suggests the following - dimensions to service selection: - - priority - relibility/cost - delay/cost - Floods / Streams / Drops - Message/Wire - Sort Messages - Acknowledgement / Negative acknowledgement/ No acknowledgement - Security - Synchronization - Multidestination addressing - End of Letter - Buffer Runout - Receiver Wakeup - - Cohen: Whether ACK or NACK or both or neither are used should depend - on statistics. - - Jacobs: The Host-SIMP protocol paper may be relevant. - - Hoversten: Is the user helping the network by telling it what type of - demands the user is going to make? - -Internet Mail Service - Steve Crocker - - Crocker discussed a model of how to make mail services available in - the internet system in a straightforward way. Also of interest is - possibility for authentication and privacy. - - - - - - - - - - -Section 1.4.1 [page 13] - - 18 Aug 77 -IEN # 3 INTERNET Meeting Notes - - - -Wrap Up - Vint Cerf - - Binders for an Internet Notebook were distributed, and Cerf explaind - the intention to use it to collect the current information for - internet experements. Jon Postel is the Notebook coordinator. - - Cerf summarized as follows: - - Addressing alternatives need to be written down - assigned Steve - Crocker to coordinate. Please supply him with your thoughts. What - objects exist and what names should they have. John Shoch will - provide a one page note on nomenclature. A Gateway Specification is - to be prepared by Bob Bressler. Cerf will distribute a current - version of the X.25 specification. Kirstein will distribute a - document on the UCL X.25 experiments. - -Future Meetings - Vint Cerf - - Cerf reviewed the plans for future meetings: - - 15 Aug 77 - Internet meeting at ISI - 17-19 Aug 77 - PSPWG meeting at Linkabit - 13-14 Oct 77 - TCP meeting at SRI - 31Oct-2Nov77 - PSPWG meeting at BBN - 3 Nov 77 - Internet meeting at BBN - 30-31 Jan 78 - TCP meeting at ISI - 1- 2 Feb 78 - PSPWG meeting at UCLA - 3 Feb 78 - Internet meeting at UCLA - 20-21 Apr 78 - TCP meeting at BBN - 1- 2 May 78 - Internet meeting at UCL - 3- 5 May 78 - PSPWG meeting at UCL - 13-14 Jul 78 - TCP meeting at PARC - 2- 3 Aug 78 - Internet meeting at LL - 4 Aug 78 - PSPWG meeting at LL - 12-13 Oct 78 - TCP meeting at LCS - 2- 3 Nov 78 - Internet meeting at SRI - - - - - - -Section 1.4.1 [page 14] - - 18 Aug 77 -IEN # 3 INTERNET Meeting Notes - - - -Attendees: - - Chris Bennett UCL UKSAT@ISIE (01)387-7059 - Bob Bressler BBN BRESSLER@BBN (617)491-1850 - Jerry Burchfiel BBN BURCHFIEL@BBNA (617)491-1850 - Vint Cerf ARPA CERF@ISI (202)694-3049 - Danny Cohen ISI COHEN@ISIB (213)822-1511 - Steve Crocker ISI CROCKER@ISI (213)822-1511 - Jin Forgie MIT-LL FORGIE@BBN (617)862-5500x7191 - Andrew Hinchley UCL UKSAT@ISIE (01)387-7050x817 - Estil Hoversten COMSAT HOVERSTEN@ISI (202)554-6092 - Irwin Mark Jacobs LINKABIT JACOBS@ISIE (714)453-7007 - Peter Kirstein UCL KIRSTEIN@ISI (01)387-7050 - Ron Kunzelman SRI KUNZELMAN@ISIC (415)326-6200x4118 - Jim Mathis SRI MATHIS@SRI-KL (415)326-6200x5150 - Bill Naylor UCLA NAYLOR@ISI (213)825-4864 - Jon Postel ISI POSTEL@ISIB (213)822-1511 - John Shoch XEROX-PARC SHOCH@PARC (415)494-4000 - Paal Spilling NDRE PAAL@SRI-KA - Dan Wilhelm SAMSO SAMSO@ISI (213)643-0131 - - - - - - - - - - - - - - - - - - - - - - -Section 1.4.1 [page 15] diff --git a/text/ien/ien31.txt b/text/ien/ien31.txt deleted file mode 100644 index f8fda8a9..00000000 --- a/text/ien/ien31.txt +++ /dev/null @@ -1,624 +0,0 @@ - - - - - -IEN #31 - On Names, Addresses and Routings (II) - -Dan Cohen -ISI -28 April 1978 - - - 2.3.3.11 On Names, Addresses and Routings (II) - - -SUMMARY - -This note deals with internetwork addressing and routing. - -It suggests the following: - - (1) Some systems have a tree-like hierarchical Universal-Address - (UA) space. - - (2) The communication connectivity is a superset of this tree. - - (3) The postal system, the telephone and the ARPANET are such - systems. - - (4) The address of a process tells where it is located (or - connected to) by specifying the route to it from the root of - the universal addressing tree. - - (5) The default routing to any address (unless a better one is - specifically known) is up the UA-tree, from the source, and - down the tree to the destination. - - In the case of networks like the ARPANET, the set of all the - IMPs (the subnet) is considered as a single process, known as - {ARPANET}. - - (6) Since the set of all networks is not connected, it cannot be - tree structured. However, for ease of name-management it is - possible to introduce (e.g., administratively) any arbitrary - hierarchy to the address space of all networks. This - hierarchy is "artificial" because it is not a subset of the - communication connectivity. - - (7) Since there is no hierarchical structure to the space of all - networks, there is no tree-like hierarchical internetwork - Universal-Addressing scheme. - - In particular, the notion of extending addresses like - - {NET}-[HOST]-(PORT) or {NET}-/IMP/-[HOST]-(PORT) - - 2 - - - - upward to include METANETs, SUPERNETs and GIGANETs suffers - from the lack of corresponding underlying communication - structure. - - (8) Since the set of all networks is too big to be captured in - local tables, and since routing cannot be derived in general - from the addresses, it should always either be apriori known, - or supplied by the source. This apriori knowledge does not - include every step (e.g., the sequence of intermediate IMPs or - PRUs). It has to include only a sequence of addresses such - that the routing between them is locally known. - - (9) The corollary of this note is - - OPTIONAL SOURCE ROUTING SHOULD BE IMPLEMENTED. - -This note explains in great detail several aspects of the addressing -schemes used by the postal and telephone systems. It also mentions the -ARPANET addressing. - -These examples are used to support the arguments which are summarized in -paragraphs (1)-(9) above. - -Unless one is very interested in the details of these systems and their -relevance to the internetwork environment, or in the details of the -arguments, there is no need to continue reading this note beyond this -point. - - -INTRODUCTION - -Before discussing the internet addressing/routing issues let us -summarize the basic concepts: - - - Processes (not hardware pieces) have names and addresses. - - - A process may have more than one name, and one address, - but addresses and names correspond uniquely to processes. - - - The name tells WHAT the process is. - - - The address tells WHERE the process is. - - - The route tells HOW-TO-GET-THERE. - -The last three beautiful definitions are borrowed (with appreciation) -from John Shoch. - -More detailed discussion of names and addresses may be found in -"Internetwork Naming, Addressing, and Routing" [Internet Notebook -Section 2.3.3.5, IEN 19] by John Shoch, and in "On Names, Addresses and -Routings" [Internet Notebook Section 2.3.3.7, IEN 23] by Danny Cohen. - - 3 - - - -Generally the concept of address is well understood, but the concept of -routing is much more complex. Who performs the address-to-routing -mapping? How is it performed? These and similar problems are the topic -of this note. - -Most of us are familiar with the postal, the telephone, and the ARPANET -addressing schemes. We also have a very good understanding of the -routing processes performed for these networks. In this note we discuss -the similarity of these addressing schemes, and argue that the -internetwork environment violates the basic axiom which is common to -them, and therefore the internetwork environment requires a different -addressing and routing philosophy. - -This is why we have so much trouble with internet addressing -- it is -different. Our experience cannot be used as a model. - - -ON OTHER ADDRESSING/ROUTING SCHEMES - -Three addressing/routing schemes are discussed: the postal, the -telephone, and the ARPANET schemes. - -The postal addressing scheme is a UA-scheme. It is defined for human -processing, and therefore may tolerate a fair amount of redundancy which -improves the robustness of the scheme with respect to errors and to -partial losses (like stains on envelopes). - -At the top level of the hierarchy there is the country name, and -underneath it there are as many addressing schemes as there are -countries. Some countries use ZIP codes which identify major post -offices, and require more information to identify the terminal -addressee. Other countries use the ZIP code (or its equivalent) to -identify the individual letter-carriers, and require less additional -information to identify the terminal addressee. In some cases, a street -address is sufficient. In others, suite number and names are required. - -In summary, the postal addressing tree is of variable depth (or: postal -addresses are of variable length). Its top level (the country level) -has a complete connectivity, since every country knows how to route mail -to any other one. - -Letters are routed, either directly to the destination or to one of its -ancestors. This is performed by POs either directly or via their -ancestors. - -Since the address and routing processing is not fully automated, human -intelligence is used for resolving ambiguities, for coping with unknown -addresses, for redundancy handling and the like. Missing information is -usually supplied by using common sense and defaults. As a result, a -great amount of variability in addresses can be tolerated. - -For example, while at Tech, I received letters addressed to - - 4 - - - - Danny (I was the only Danny there) - 256-80 (The Computer Science Mail-stop) - 91125 (The zip code for Caltech) - -I also received letters addressed to: - - Dr. Dan Cohen - Computer Science, Mail-Stop 256-80 - California Institute of Technology - Pasadena, California 91125 - -The first address contains all the needed information, but requires -delicate handling. If any of the digits is mistyped, there is very -little chance that the letter would be delivered to the right -destination. The second address, which has about six times more -characters, is more robust, and can cope with the multi-Danny situation, -which (even though undesirable) is still very probable. The terse -address has to be modified if another Danny joins this Mail-Stop. - -The phone addressing is considered next. Like the postal system, each -telephone station has a UA. It always starts with the country code, and -usually continues with a Numbering-Plan-Area (NPA, which is the familiar -Area-Code, AC), continues through a Central Office (CO) number and -terminates with the station number. Even though the above fields are of -variable length, the total length never exceeds 12 digits. However, -when private networks are connected to the universal phone system, the -entire address length may exceed this limit. - -For example, my current phone number is 12138221511105, which is 14 -digits long. The first "1" is the USA code, and the last "105" is my -station (extension) number. - -At the top level of the hierarchy there is the country code, and -underneath it there are as many addressing schemes as there are -countries. All countries know how to communicate with any other -country. In both systems addresses are of variable length, and by -looking at an arbitrary address one cannot parse it into fields without -knowing the specifics of each national addressing scheme. - -Here are some examples of telephone addresses and their correct parsing -as COUNTRY-NPA-CO-station: - - 1-213-822-1511 (USA, LA) - 44-1-387-3400 (UK, London) - 44-31-332-2424 (UK, Edinburgh) - 44-745-58-3301 (UK, Wales) - 972-4-25-2690 (Israel, Haifa) - 972-67-4-0777 (Israel, Kiryat Shmona) - -Obviously, the number of fields to be dialed depends on "distance" from -the destination. - - 5 - - - -Since the telephone routing is performed by (relatively) simple minded -automated equipment, no variability in dialing a number is allowed -(except in very unusual situations). - -Like the postal addresses, phone dialing sequences are of variable -length, as a function of the distance to the destination. While adding -the country code ("USA") would not hurt either of the postal addresses -shown above, adding the local AC and country code is not allowed for -local phone calls. - -The reason is that one does not dial the address (telephone numbers), -but dials the routing! The purpose of the telephone number is to be used -for accounting and for deriving routing, but not for verbatim-dialing. - -The actual telephone routing (i.e., hop-by-hop) is very efficient and -deserves attention. The key to it is the existence of more -communication lines than branches in the UA tree. - -The USA is divided into 10 regions, which subsequently are divided into -sections and areas. The grouping of areas into sections and regions -cannot be simply deduced from the ACs but has to be found by a table -lookup operation. This is because the ACs were most cleverly assigned -to areas by population size and not geographically like the ZIP codes. - -The routing is performed by each center assigning each call to a line -known to be connected (or enroute) to the destination central-office. -This is performed by looking at the first six digits of the address -(AC+CO). - -If such a line does not exist, then the call is assigned to a line known -to be connected to the principal city of the destination NPA. If such a -line does not exist either, the call is forwarded to the center above -this one. Since at the top all regions are interconnected, this process -is guaranteed to terminate. - -In addition to the SIX digits recognition, the system is designed such -that in many cases CO numbers do not conflict across NPAs. This -eliminated the need to dial an AC of a neighboring town, across a state -line, which is necessarily in a different NPA. This allows, for -example, dialing from Washington, D.C., (AC=202) to Alexandria, Va., -(AC=703) and to Potomac, Md., (AC=301) without dialing the AC. - -The third addressing scheme is the one used in the ARPANET. - -Addresses on the ARPANET are of processes which are either NCP-like in -actual hosts or of other types in "fake" hosts. It is logical to extend -the address notion "down" to include the port, too. - -Conceptually, one can consider the ARPANET as a single process or as a -star network. The fact that this single process is implemented in a -very clever way by a multitude of IMPs is irrelevant, from a functional -point of view. This allows treating this entire network as a single -addressable process, the {ARPANET}, if so required. - - 6 - - - -Each IMP knows how to forward messages to any other, and therefore all -IMPs constitute the top-level (and the only level) for routing. - -In the ARPANET all the connections are between centers (nodes) of the -same (and only) level. This is in contrast to the telephone network, -which has several levels of centers, partially connected at all levels -(except the top, where they are fully connected) and also partially -connected between levels. - -An ARPANET address is of the form {ARPANET}-[HOST]-(PORT), which one may -consider as {ARPANET}-/IMP/-[HOST]-(PORT). Adding the /IMP/ field may -help in the ARPANET situation, though some generality will be lacking. - -This is a valid address, since the {ARPANET}-process (which is the set -of all IMPs) can forward messages to all hosts, and hosts can give -messages to PORTs. Therefore, routing every message up to the {ARPANET} -and then down through the host to the destination port is a good default -routing strategy. - - -INTERNETWORK ADDRESSING - -After this (very) long introduction, let's return to the Internet -Addressing situation. - -But first, let's introduce some more formality: - - * An address is a string (i.e., an ordered set) of symbols - taken from a given alphabet (e.g., ASCII, {0,1}, - {1,2,...9,0}). - - * In a UA tree the level of a given address is its depth in - the tree. The level of the address A is denoted by L(A). - - * Address concatenation (extended to the right) will be - used. The concatenation is denoted by a "-". - - * If both A1 and A2 are addresses of the same process P, - then - - (1) L(A1) and L(A2) may differ, and - - (2) The addresses (A1)-(X) and (A2)-(X) are - necessarily addresses of the same process. - - * Addresses should always be decodable in a strictly - left-to-right sequential manner (prefix coding). - -What is the ARPANET address of my mailbox? - -In the TENEX environment it is [ISI]-(MAILBOX)-. But in another -environment, in the host [X], it could be [X]--(MAILBOX). Or -maybe in the form [X]-/TCP/-(MAIL.DEPO)-. - - 7 - - - -Obviously we want to expand it upwards, to allow for other networks. We -could simply add in front of these addresses a network field and get - - {ARPANET}-[ISI]-(MAILBOX)- - -and similar addresses. In other networks the value of the NETWORK-field -may be {PRNET-SF}, {PRNET-BOS}, {SATNET}, etc. - -What is the relation between these nets? Do they all belong to the same -parent like USA or USA-DoD? - -This could be a solution, and if adopted my mail address may be upward -expanded in the UA scheme to be like: - -{GALAXY-573}-[SOLAR.SYS]-(EARTH)--{ARPANET}-[ISI]-(MAILBOX)- -With a clever use of defaults, the first several fields may be omitted -from most of the intraglobal communication. - -The extension of this address upward, to include METANETs, SUPERNETs and -GIGANETs, is very elegant. This is the prevailing popular approach -expressed in a series of notes and papers, such as Ken Harrenstien's -note, and various other communications between the members of -[SRI-KL]FIELD-ADDRESS.LIST. The intelligent reader probably -has noticed by now that this note does not subscribe to the same -philosophy. - -This solution suffers from several problems. What is a network? Is -every bus to which several processes are connected a network? If not, -why? What is the relation between networks? - -In order to stress the difference between the structure of the internet -address and of the other universal addressing schemes, let's consider -the following example. One of the ARPANET hosts, [PARC-MAXC], is tied -to a private network. This network is actually a very rich internetwork -environment, with about 14 networks and about 400 hosts, but for -simplicity let us consider it functionally as a single {XEROX-net}. One -of the hosts on this net is [RIG], the University of Rochester -Intelligent Gateway to the internal {U-of-R-net}. This description is -not accurate, since [RIG] is actually connected directly to the -{ARPANET}, not to {XEROX-net}. But for the sake of the argument let us -assume this connectivity. We preferred not to use other actual examples -for several reasons. A poet's-license is nice to have.... - -One of the hosts on the {U-of-R-net} is, say, [NOVA-3]. What is its -address? Obviously it is - - {ARPANET}-[PARC-MAXC]-{XEROX-Net}-[RIG]-{U-of-R-Net}-[NOVA-3]. - -By the way, whenever an intermediate host in such a specification (i.e., -a gateway) is between two networks only, there is no need to specify the -destination network, since it is uniquely defined by context. However, -this is not a good practice, since addresses have to be changed when -this host is connected to more networks. - - 8 - - - -What is [ISI]'s address? Obviously {ARPANET}-[ISI]. - -"Not so!" scream the U-of-R people. The addresses of [NOVA-3] and of -[ISI] are quite different from the point of view of [NOVA-2]. According -to it, the address of [NOVA-3] is simply {U-of-R-Net}-[NOVA-3] but of -[ISI] is {U-of-R-Net}-[RIG]-{XEROX-Net}- [PARC-MAXC]-{ARPANET}-[ISI]. - -Who is right? Neither!! Either approach is equally wrong. Neither of -these addresses is above the other in the UA scheme. All the networks -involved in the interconnection of these networks are of equal level, -unless we decide otherwise for administrative reasons. The internet -communication environment does not have up-and-down relations, except in -the eyes of some users, which may be very subjective. - - -INTERNETWORK ADDRESSES ARE DIFFERENT - -Telephone stations are always connected to the system network, and their -position in it dictates their addresses. Not so with computer networks -which spring into an independent existence until they are interconnected -to others, if ever. Therefore, their addresses cannot be deduced from -their positions (geographically or connection-wise) and vice versa. - -Therefore, the network ID is an arbitrary string. Who assigns it and -makes sure that no conflicts occur? Is it NBS? Jon Postel? Another Czar? - -At this point we suggest that: - - * There is no universal hierarchy of networks, in contrast - to the telephone and the postal systems. - - * There are too many networks to be named and/or addressed - in a single flat name/address space. - - * Therefore, some naming/addressing hierarchy has to be - introduced. However, this addressing tree does not serve - as a basis (or underlying structure) for the - communication connectivity. - - * Routing cannot be computed from any point to any point - from the addresses alone. - -How should internetwork routing be performed? There are obviously -several possibilities. It could be performed entirely by the networks -involved (i.e., the communication system), by the source, or by any -combination of the communication system and the source. - -It is always desirable to distribute the knowledge about possible -destinations to the various centers (gateways?), such that their "sphere -of knowledge" is as large as possible, though uniformity should not be -required. More knowledge should be kept about frequent destinations -than about less frequent ones. - - 9 - - - -Since this information must be limited due to practicalities (such as -finite storage and updating procedures), it is impossible that all -sources always know about all possible destinations. - -What should be done about unknown destinations? - -Several possibilities may be considered. - - o Having a `supernet' of default sub destinations with the - hope that they know how to find a way to the terminal - destination (like the phone and the postal systems), - - o providing internetwork-wide directory services, or - - o refusal of service. - -Let's consider each of these three possibilities. - -Having both -{ARPANET} and -{XEROX-Net-3} does not guarantee -the existence of the path {ARPANET}===={XEROX-Net-3}. Therefore, -the supernet (metanet?) is not a part of the underlying communication -structure as in the phone and postal situations. - -In order for this approach to work, one has to create this supernet and -keep it updated about all changes of the entire internetwork -environment. Both the storage and the updating procedures seem to be -impractical. - -The second approach, the network-wide-directory-help, is a very -reasonable one. It has a major drawback in the necessity to maintain -centers with indefinite knowledge radius. Note that the telephone -directory services are structured according to the addressing hierarchy -of NPA-CO, and are not flat as may be suggested for the internetwork -environment. In essence, this second approach has all the problems of -the first one. - -The third approach, namely, refusal of service to unknown destinations, -is consistent, to say the least. Admittedly, it seems like an -inconvenience to users. It should be supplemented by ways of "learning" -about the unknown destinations, such that refusal should never occur, or -at most, only in very rare situations. Directory services could be -helpful. - -Hence, this approach supports serving only destinations to which the -routing is either apriori known or supplied. Note how similar this is -to the telephone system philosophy. - -In summary: The internet routing problem is different from the routing -problems of other systems because the internet environment does not have -a communication connectivity which supports a UA scheme, and therefore -the addresses cannot support a direct address-to-routing mapping by -using only a definite amount of knowledge. - - 10 - - - -I HATE TO ADMIT IT, BUT ... - -At the beginning of this note, and in an earlier note, I used a great -line telling that "names tell what the processes are, and addresses tell -where they are." It continues by "routings tell how to get there." - -I hate to admit that by now I have some reservations about this -definition. My name is "Danny." My address is "ISI." When I was at -Tech, my name was the same, but the address was different. This -supports the definition. How about the addresses in a broadcasting -media network? When a host changes its position (location) on the same -Ethernet, its address does not change. Well, maybe these addresses are -not real addresses, according to the definition. Admittedly, this is an -uncomfortable thought. - -I believe that there is a better explanation. I suggest that an address -is "the canonic routing from the root of the addressing-tree." It sounds -recursive, doesn't it? - -To be more precise, an addressing scheme is a hierarchical organization -of elements, with code assignment such that each element has a unique -set of codes, corresponding to its position in the hierarchy. - -The notion that the address tells how-to-get-there from the root of the -tree is very similar to the notion that absolute coordinates are really -relative, with respect to the origin. - -Since we know (by default) how to get from the source to the UA root, -and since the address tells how to get to the destination from the root, -the address tells how to get from the source to the destination. - -Hence, by definition, addresses are routings. - -This leaves us only with names and routings. This should not surprise -us now, since we already discovered that the telephone system has only -names and routings. - -Since the general internet environment does not have a hierarchy, the -notion of addresses suffers. Since the addresses are "routing from the -root," and since there is no root of the entire system, our conclusion -is that there are no addresses, only names and routing. In other words, -what we are used to call an address is actually a routing (even though -it is of higher level than the hop-by-hop routing). In a well defined -(and tightly controlled) environment, such as the {ARPANET}, this -address/routing is a well defined string. In general, it may be of -indefinite length and structure. - -If the destination is in the neighborhood, such as the same network, the -same nets-cluster, the same agency (even on different net), the system -may have a built-in knowledge of how to get to it. Otherwise the -routing information needed should be supplied by the sender. - - 11 - - - -PROPOSAL FOR ADDRESSING AND ROUTING - -Our proposal for addressing and routing is as follows: - - * Establish a UA scheme, of variable level structure. - - * Disseminate as much knowledge to each participating node - as deemed practical. - - * Allow the option of routing to be included in the headers - of the messages. - - * Refuse delivery of messages to a destination with unknown - routing - - * Establish internet-directory-assistance service. - -The proper use of the optional routing is to supply a set of -subdestinations which may be as far apart as the networks can handle -without help. This is very much like source routing for telephone -connections, where a sequence of switching-centers is designated by a -user, but the communication subsystem is free to optimize the hop-by-hop -routing between these centers. - -As long as the number of participating networks in the internetwork -environment is small, it is possible to have each of them know about -routing to all the others. However, we already have a large community -of networks, including several PRNETs, networks in universities, about -15 networks at Xerox, the commercial and the national ones, many in DoD, -all the DEC-Nets, and many others. In addition, each big modern -substantial computing system is a network. - -One may be advised to expect the number of networks to grow, and the -internet connectivity to get more and more obscure. - -Therefore, optional source routing seems to be the most sensible, and -the only, alternative. This does not exclude the notion that internet -clusters of any size optimize their internal routing by any scheme, for -example by ARPANET-like dynamic routing scheme. - -We recommend that the optional source routing will be composed of self -level-identifying fields. Note that this is like the telephone dialing -sequence. - -The self-identifying fields could be implemented either by -codes-exclusion (like the telephone system) or by identification -subfields. Obviously these two schemes are equivalent, and the choice -between them is just a matter of convenience. - diff --git a/text/ien/ien32.txt b/text/ien/ien32.txt deleted file mode 100644 index e96e3850..00000000 --- a/text/ien/ien32.txt +++ /dev/null @@ -1,2350 +0,0 @@ - - - -IEN 32 -Section 2.3.3.12 - -Title: Catenet Monitoring and Control: A Model for the Gateway Component - -Author: John Davidson [Davidson@BBNE] - -Note: This document contains figures which are not included in this on line -version, the figures may be obtained in hardcopy from the author. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - CATENET MONITORING AND CONTROL: - - A MODEL FOR THE GATEWAY COMPONENT - - John Davidson - - Bolt Beranek and Newman, Inc. - - IEN #32 - - Internet Notebook Section 2.3.3.12 - - April 28, 1978 - - - - - - - Catenet Monitoring and Control: - - A Model for the Gateway Component - - - - - -1. INTRODUCTION - - - At the last Internet meeting, some concern was expressed - -that we don't have a real "model" for what a gateway is, what it - -does, and how it does it, and that without such a model it is - -somewhat dificult to describe the kinds of activities which - -should be monitored or controlled by a Gateway Monitoring and - -Control Center (GMCC). To respond to that concern, we have - -written this note to express our recent thoughts about a gateway - -model. Although the note centers primarily around the topic of a - -gateway model, we have also included a few thoughts about - -possible models for the other components of a general - -internetwork structure. - - The note proceeds as follows. In Section 2 we try to - -establish a reason for wanting a model of a given internetwork - -component, and present a brief overview of the potential benefits - -of Monitoring and Control. This presentation is largely - -pedagogical since it is assumed that this document will, for a - -while at least, be the only introduction to the topic available. - - In Section 3 we discuss the fundamental kinds of activities - -which must be performed by any internet component if it is to - -participate in Monitoring and Control. This section establishes - -motivation for some of the mechanisms discussed in the rest of - -the paper. - - - 1 - - - - - - - - In Section 4 we discuss the roles which the hosts, local - -Packet Switching Networks (PSNs), and the Gateway Monitoring and - -Control Centers (GMCCs) may have to play in Monitoring and - -Control for the internet. - - Then, in Section 5, we finally begin to discuss the - -principle characteristics of a possible gateway model. We - -examine first a list of practical constraints which influence the - -way in which the model is being designed, and then, suitably - -constrained, we begin the task of developing the model itself. A - -complete modelling has not yet been performed, and is likely to - -take quite a while to complete. Section 5, however, gives a - -suitable indication of the way in which the model will be - -developed, and of the alternative interpretations available to - -gateway designers who pattern their implementations after the - -model. - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - -2. CONTEXT F OR MODELING - - It is assumed that gateways exist to make communication - -possible between hosts on different packet switching networks. In - -this regard, they actually serve to make a single network out of - -several diverse, disjoint networks. Thus gateways can be said to - -form the nodes of a super-network, called a Catenet, whose - -"links" are the individual packet switching networks, and whose - -"hosts" are simply the individual hosts of the constituent PSNs. - -As the nodes of this super-net, the gateways will be responsible - -in part or in whole for tasks like routing, fragmentation, flow - -control, reassembly, retransmission, and perhaps data - -transformation (e.g. encryption/decryption), access control, and - -even authentication. - - We can assume that there are benefits to be derived from - -having the Catenet operate in a coordinated fashion. However, - -coordination is not achieved by default, because the Catenet is - -being constructed in pieces, with each piece potentially under - -the control of a distinct administrator, each gateway implemented - -in a unique processor, and each program conforming to a different - -programmer's view of the workings of a gateway. - - - The Internetworking group brought together by ARPA is - -serving as the coordinating authority for the development of many - -of the components of the Catenet. To make the important - -administrative and technical decisions associated with Catenet - -construction, however, this group must be provided with technical - -inputs. Many of these inputs can come from theoretical studies, - - - - - 3 - - - - - - - -protocol investigations, and pre-construction experiments, - -modeling, and simulation during Catenet development. But the - -most important source of technical inputs will ultimately be the - -Catenet itself. If the true operational characteristics of the - -net can be readily (and continually) determined, then the - -administrative issues associated with Catenet performance - -(questions like "why is the throughput not as predicted", "what - -components are proving unreliable", "should the net be expanded - -or reconfigured", etc) can be adequately resolved by appeal to - -the recorded statistics; collection and recording of these - -operational statistics form a part of what we refer to as Catenet - -"Monitoring". Also, since the Catenet will sometimes be the - -"target" of the Internet group or ARPA administrative policy, - -then, insofar as policy affects the operation of the net (e.g. - -such "policy" decisions as "failed components should be dumped, - -reloaded, and restarted ASAP"), technical tools must be provided - -which help implement the policy; these kinds of tools form a - -part of what we refer to as Catenet "Control". (Some readers may - -prefer to think of this as "Coordination" rather than "Control" - -which unfortunately may carry other undesirable connotations.) - - In order to be able to Monitor and Control the operation of - -the Catenet in accordance with administrative policy, in the - -presence of the diverse component implementations, some model for - -the network as a whole should be developed. Futher, models for - -each of the component types (gateways, packet switching nets, - -hosts) should be developed. These model implementations should - -then be instrumented in a way that makes it possible to - - - - 4 - - - - - - - -accumulate the technical inputs and to effect the operational - -policy desired by Catenet administrators. If the model - -implementations are appropriately general, then it is reasonable - -to dictate that individual implementations adhere to these basic - -models. - - - BBN is currently pursuing the development of a model for the - -gateway component of the Catenet. In particular, we are trying - -to define how the model should be instrumented to provide the - -appropriate kinds of Monitoring and Control capabilities. Most - -of the capabilities we think are needed are similar in function - -to the capabilities already developed for the ARPANET and its - -Network Control Center, NCC. We are proposing, and in fact have - -actually begun, the construction of a Gateway Monitoring and - -Control Center (GMCC) patterned after the NCC (and currently - -sharing resources with it, since the NCC is already accessible to - -internetwork traffic and since the scope of the current GMCC is - -at this time quite modest). - - - - - - - - - - - - - - - - - - - - - - - 5 - - - - - - - -3. FUNDAMENTALS OF MONITORING AND CONTROL - - We assert that all of the Catenet components should be - -properly instrumented in software (and if necessary, in hardware) - -to measure the service which the Catenet as a whole provides, and - -to enhance the maintainability of the net as a whole. The - -instrumentation should provide us with all the mechanisms - -required to perform - - - Performance Monitoring - - - Event Recording - - - Functional Testing - - - Component Maintenance - - - -Here, by Performance Monitoring, we intend that the status of _______________________ - -Catenet components (both the binary "working/not-working" - -indication and the status of internal operational components) be - -made available to the GMCC. This will require that the Catenet - -components have a mechanism for communicating periodic status - -reports and instantaneous error reports "back" to the GMCC. This - -mechanism may or may not require that the reports from the - -various net components be synchronized in order to enable the - -GMCC to obtain a "snapshot" of the network as a whole; if - -synchronization is required, a synchronizing mechanism will be - -required as well. It is also undetermined whether a protected - -path (e.g. one using encryption to prevent spoofing) is required - -for communicating this information through the Catenet. - - - - 6 - - - - - - - - There should also be a mechanism by which the GMCC can - -request performance data from a Catenet component in the case of - -non-recurring measurements. The set of monitoring mechanisms - -installed in any particular component may differ from the set - -installed in any other component, depending on the granularity of - -measurement which is desired in each case. - - By Event Recording, we intend that the raw statistical data _______________ - -on, say, the number of messages or packets passing through a - -given component be made available to the GMCC in a standard way. - -Not only must there be a standard way of collecting the event - -statistics, but there must also be a way for a designated - -authority like the GMCC to reset the event counters, say, or turn - -on or off the event recording mechanisms. We shall have more to - -say on what events are significant in a subsequent section. - - By Functional Testing we intend that the GMCC be able to ___________________ - -direct the activities of the Catenet components either directly - -(by commanding performance of some task like message generation) - -or indirectly (by sending, or directing other components to send, - -messages through a given component) in order to exercise - -component mechanisms for error analysis or load testing. A - -useful mechanism in the ARPANET is the ability to isolate failed - -hardware components by forcing a loopback under software control - -at each of the component boundaries. The analogue of this scheme - -in the Catenet is probably simpler, since the boundaries are - -logically in software (e.g. in the gateway software in cases - -where a local PSN or another nearby gateway is being tested) or - -associated with the local PSN which may have reasonably flexible - - - - 7 - - - - - - - -control of the interface which connects it to a network host or - -to a gateway. Looping performed within a component should also - -be possible. - - To make use of these testing facilities, we need the ability - -to generate artificial traffic (and to discard it) and to reflect - -it (or turn it around) as required. Reflecting messages at - -gateways can, for example, give a measure of the throughput of - -Catenet links. - - - By Component Maintenance, we intend that the GMCC have the _____________________ - -ability to coordinate, and in some cases perform, the analysis of - -failure for failed components, the restoration of failed - -components, the institution of program fixes, and the - -distribution of new releases. It is not clear that Component - -Maintenance can be the responsibility of just a single GMCC, of - -course, but if it is to be the responsibility of any GMCC-like - -component, then the mechanisms by which the failed component is - -to be handled, and how it is to be of use in the maintenance - -activity, should be adequately modelled for each component in - -question. In this regard, we see a potential need for - -incorporating mechanisms for self diagnosis in the component - -models, for enabling the GMCC (or some other network host in - -conjunction with or in place of the GMCC) to read and write - -arbitrary locations in a component's memory, etc. - - Note too that the gateway programs will be provided by - -various implementers. These implementers may in some cases be - -willing to allow a given GMCC to handle reloads and restarts of - - - - - 8 - - - - - - - -their component when it fails. Both the implementer and the GMCC - -staff may have to be involved in debugging the component if the - -gateway's model debugging facility (which presumes the use of a - -GMCC) is all the original implementers have for accessing their - -component remotely. It might prove useful for the GMCC to be - -able to copy the contents of a failed component into a file for - -later inspection by the original implementers in case they are - -unavailable to copy the contents themselves at the time of - -malfunction. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 9 - - - - - - - -4. MODELS FOR THE PRINCIPLE CATENET COMPONENTS - - - This note is principally about gateway modelling. However, - -we have asserted throughout, the need to model the other - -components of the general Catenet as well, so that we can use - -them in Monitoring and Control applications where they are needed - -and where they can be useful. Here we describe briefly the goals - -we have for modelling the other components. - - -4.1 The GMCC - - The functions of a GMCC should be able to be performed by - -any host in the composite net. In view of this, a high level - -description, or model, of the way a GMCC operates should be - -created. Both the GMCC program(s) and its data base(s) should be - -described in a way which allows Catenet users to reproduce the - -GMCC functions (this basically requires coding of the GMCC - -programs in a high order language) and to interrogate or - -duplicate the accumulated data base(s) as required for their own - -special purposes. - - Because each gateway, host, or local PSN component of the - -composite Catenet is potentially the property of a distinct - -administrative authority, it is conceivable that each might - -actually be monitored or controlled by a distinct GMCC. This - -would not necessarily be the best arrangement for purposes of - -overall net maintainability, but nonetheless must be allowed for. - -What is more likely, however, is that a given administrator will - -give permission to some approved Catenet GMCC to perform the - -Monitoring and Control activities associated with Performance - - - - 10 - - - - - - - -Monitoring, say, or with Event Recording, but reserve for itself - -the ability to perform the activities associated with Functional - -Testing and Component Maintenance. In this case, the - -Administrator's host will have to understand and be able to - -duplicate the model GMCC functions, and the Catenet component - -will have to know to respond to one or the other GMCC depending - -on the function being requested. Since different authorities - -might exist for each different function, this capability should - -be modelled. Further, the mechanism for changing the name or - -address of the various designated authorities should also be - -modelled. Then the fact that each Catenet component knows the - -name of the authority designated to perform a given function - -makes it possible to restrict arbitrary hosts from abusing their - -ability to emulate a GMCC. - - -4.2 The Hosts - - - Members of the ARPANET NCC staff have asserted that "a key - -factor in network maintainability is the centralization of the - -responsibility for providing adequate user service. Since - -service is best defined at the man/machine interface, a - -significant gain in maintainability would come about if the user - -interface were completely at the man/machine boundary. By - -including a host within the sphere of responsibility of network - -maintenance, there could be more uniform and speedier resolution - -of problems within that host. Since the network design allows - -for dissimilar node programs, not much additional complexity is - -required to maintain a set of dissimilar service hosts. (Thus) - - - - 11 - - - - - - - -the scope of the network should be expanded to providing user - -services with corresponding benefits for both unified design and - -maintainability." - - This may be an extreme position, and may not actually be as - -easy as anticipated by the NCC staff, but nevertheless it is a - -position which has at least some validity, especially in view of - -the fact that gateways are themselves just hosts, and much of the - -modelling performed for gateways can thus be applied to other - -general purpose hosts. - - Consider what Monitoring and Control might be possible if - -some small component of the host's network software, such as the - -TCP program, were instrumented to allow Performance Monitoring, - -Event Recording, etc. under control of a GMCC. The - -instrumentation would simply provide that the TCP keep track of - -its events of interest and arrange for them to be made available - -in a convenient way to some other protocol module (perhaps) for - -transmission to the GMCC. In addition, if there is to be Control - -of a TCP, some internal means should be provided for a process to - -direct certain actions of the TCP (for example the resetting of - -accounting statistics). - - Certain other capabilities might also prove useful. The TCP - -should be able to report to the GMCC any errors it observes in - -packet formats, packet delivery, etc. so that host personnel with - -a reliable TCP implementation need not be concerned about error - -analysis for newly added, undebugged hosts, say. The GMCC is - -certainly in the appropriate position to be able to correlate - -abnormal TCP interactions with Catenet component outages and be - - - - 12 - - - - - - - -able to explain the abnormal behavior to the host via messages to - -the TCP. The TCP should be able to be instructed to discard - -certain messages or to echo them back to their source. It should - -perhaps be able to timestamp and trace various messages. These - -kinds of activities would all be possible given an appropriate - -and uniform instrumentation of the various TCP implementations. - - -4.3 The PSNs - - - The links of the Catenet are the local PSNs. Unlike usual - -network links, these links are equipped with a processing - -capability in the form of their own node computers or their own - -NCC hosts, etc. Whatever form this processing capability takes, - -it can presumably be made to communicate with other Catenet - -components using the protocols for GMCC-to-component and - -component-to-GMCC communication. The local PSNs should be able - -to report errors in interfacing which occur at the PSN/gateway - -interface; they can also report gateway ups and downs as they - -observe them; they might be instrumented to assist in tracing and - -looping of messages sent to or through them; they could keep - -track of the length of gateway outages; and since the PSN is the - -only component with hardware (in most cases) connections to the - -gateway and host components, it can perhaps help in the restart - -or reload of these components. The techniques for performing any - -of these activities should be carefully and completely modelled. - - - - - - - - - - 13 - - - - - - - -5. A MODEL FOR THE GATEWAY COMPONENT - - - The principle thing we expect a gateway to do is to perform - -message routing; a suggested routing mechanism is presented in - -IEN No. 30, "Gateway Routing: An Implementation Specification", - -by Strazisar and Perlman. Beyond this, there are several - -secondary activities in which the gateway must play a role, and - -the large majority of these can be clustered under the general - -heading of Monitoring and Control. These are the activities we - -are most concerned with here. As discussed earlier, the gateway - -component, like any other component, should be instrumented to - -include mechanisms which allow it to cooperate with a GMCC in - -providing Performance Monitoring, Event Recording, Functional - -Testing, and Component (i.e. gateway) Maintenance. It is the - -role of the model to identify the mechanisms which should be used - -within the gateway to provide these various functions. - - -5.1 Considerations Affecting the Design - - - The intent of this section is to give some insight into the - -process by which the model for the gateway component will be - -developed. There are a number of fundamental considerations - -which should be stated beforehand because of their impact on the - -way we want to think of gateways as an entity and thus on the way - -we think of the necessarily composed. The first of these is that - -a gateway should be considered to have a net-independent part and - -one or more net-dependent parts. The net-independent part should - -be considered the heart of the gateway -- the place where the - - - - - 14 - - - - - - - -common functions of routing, flow control, etc. are actually - -performed; this part is hopefully divorced from considerations of - -the networks to which the gateway is attached. The net-dependent - -parts on the other hand may all be different, since the networks - -in most cases will be different, but each should have the same - -eessential structure: there will be modules which gate messages - -to and from the attached net, and modules which append or remove - -local headers to or from internet (and other) messages, etc. One - -of the challenges for the model designer and gateway implementer - -is to carefully design the boundary between the net-dependent and - -net-independent functions. - - - - The gateway model should be able to accommodate more than - -one type of gateway implementation. That is, it should - -accurately describe or apply to implementations such as: - - - the conventional gateway. This is a single processor - performing gateway functions only and connected to only two - nets. - - - a two- or multi-processor gateway. This is a distributed - implementation of the gateway, such as the "half-gateway" - model once considered; the mechanisms used by the separate - processors to communicate with each other should not affect - the model design. - - - gateways within general purpose host processors where the - gateway program is just one of several that may want access - to the network. - - - gateways connected to three or more networks. - - - gateways using only a single net interface. Such an - arrangement might result if, for example, a single medium - were used by two different nets. readdressing, say, .... - - - both big and small (in terms of power, size, cost, - capability) gateways (including very simple - perhaps purely - hardware - implementations). - - - - 15 - - - - - - - - - existing ARPANET gateways. - - - existing othernet (sic) gateways. - - - the gateway module which sits between a host TCP, say, and - the network, and whose job it is to select a destination - gateway consistent with the destination host. - - - a gateway with two or more interfaces to a single network. - - - a gateway which is (either always or sometimes) unwilling or - unable to participate in Monitoring and Control exercises. - - - gateways which are responsible for access control or - authentication. The need for these special functions may - impact the form of certain mechanisms proposed for use in - the model implementation. - - - gateways which need to perform fragmentation or reassembly - of encrypted data messages, or which need to be able to - understand special packet formats associated with secure - data transmissions. - - - gateways which may without warning turn into "one-way" paths - only for such applications as military EMCON. - - - - - - -5.2 The Beginnings of a Model - - - - There are several kinds of information which the gateway - -should be able to exchange with the GMCC in support of its - -Monitoring and Control activities. Among them are: - - Administrative Information - - This is information that identifies the gateway uniquely - among all the components of the composite Catenet. To get a - proper picture of the net at any given time, a GMCC would - like to be able to discern, among other things, - - the computer type - the memory size - the gateway characterization (conventional, ARPANET, ...) - the Administrator's name, address, phone number - the program size, release number, release date and time - - - - 16 - - - - - - - - the addresses of hosts serving as GMCCs - the names of connected nets, etc. - - Information such as this may best be sent unsolicited to a - special service host when a gateway first comes up on the - net after some outage; interested experimenters could then - retrieve the information from the host much as is currently - done in the ARPANET for retrieving Host status information. - - Measurement Information - - This information is simply the collective set of statistics - accumulated by the gateway during its operation. They - reflect the processing performed by the gateway in servicing - internet traffic. - - Monitoring Information - - This is primarily the "up/down", "up for how long", "planned - outages", "recent crash explanation", "net interface reset", - etc. kinds of information which dictates to the GMCC the - status and health of the gateway component. - - Control Information - - This is either the information sent by the GMCC to cause the - gateway to enter a test, reload, or, restart mode, or the - information sent by the gateway to the GMCC to report the - results of component testing, to dump some of its memory, - etc. - - Debugging Information - - Patterned after a general purpose time sharing host's DDT - program which has complete control over the execution of - subservient programs, the information associated with - debugging includes commands to read or write a cell, to set - or reset (pseudo) breakpoints, to search memory, etc. and - the responses to these commands. Two kinds of DDTs may have - to be accommodated in any given gateway implementation, one - to be used by experimenters, say, and one, like XNET, to be - used during initial debugging. - - Descriptive Information - - This is the information which conveys to the GMCC the list - of capabilities possessed by the gateway; it includes a - listing of the kinds of information collected and reported - by the gateway, a characterization of queue capacities, a - list of settable operational parameters, a description of - the histograms maintained by the gateway, a list of the - protocols supported, etc. It responds to the GMCC's - questions about "what can you do", "how much can you do", - etc. - - - 17 - - - - - - - - Experimental Information - - This is the information associated with the manipulation of - the component by experimenters. It is in part descriptive - (experimenters can ask what experiments are supported, what - parameters are allowed, what range on parameters is - accepted, etc.), in part control (they can request - initiation of an experiment), and in part measurement (they - can request operational statistics associated with the - experiment), but it seems reasonable to distinguish it as - distinct from these other operational aspects insofar as - possible; not all gateways which provide descriptive, - control, and measurement information will also support - experimental use. - - Accounting Information - - This information is basically the set of raw statistics - which should be used by an administrator for charging for - gateway utilization. It is reasonable to distinguish this - information from pure measurement information since it is - not necessarily of interest to a GMCC worrying about - functional capabilities, and will likely have to be reported - to some special host rather than a general purpose community - GMCC. - - Operational Information - - This is included here just as a reminder that in addition to - manipulating all the information associated with Monitoring - and Control activities, the gateway will also want to - occassionally handle internet messages, routing messages, - and the rest of the information that is its "reason for - being" in the first place! - - - - Note that it is possible to consider that each individual - -kind of information is associated with a particular kind of - -"event" which occurs within a gateway. Thus we may have - -Measurement events, Monitoring events, and even Administrative - -events within a functioning gateway. It is also the role of the - -gateway model to specify how these events are to be recognized, - -recorded, reported, caused, prevented, suspended, continued, etc. - - - - - - - 18 - - - - - - - - At least three notions are central to our discusionss at - -this point. First, we have the four basic functions that we - -have discussed in detail before: Performance Monitoring, Event - -Recording, Functional Testing, and Component Maintenance. From a - -suitable, high level external viewpoint, these are the functions - -that the gateway is involved in. Second, we have the different - -kinds of information which must be recorded by the gateway and - -transported between the gateway and the GMCC. Each different - -kind of information implies possibly a distinct formatting - -requirement, distinct collection mechanism, etc. Finally, there - -are the several different mechanisms which must exist inside the - -gateway that can be used to collect, record, and report the - -different kinds of information. The most apparent mechanisms - -which exist in the gateway implementations are processes. - -Processes are the addressable resources which carry on dialogues - -with the GMCC and with each other in some cases. In addition to - -the distinct processes, there are other mechanisms which we will - -just label as "routines". Routines are best thought of as - -utility functions which may be invoked by any of the gateway - -processes to help each get its collecting, recording, and - -reporting done. An example of a utility routine might be one - -which formats a message according to gateway-to-GMCC protocol - -specifications and adds it to a queue of messages to be sent. - -Examples of processes are - - - the monitoring process which generates the periodic and - spontaneous reports to the GMCC describing the - operational status of the gateway. - - - - - - 19 - - - - - - - - - the measurement process which delivers cumulative - statistics to the GMCC. - - - the echoing process which returns all received messages - to the source from which they originated. - - - the memory transport process which moves portions of - the gateway memory (programs or data) to or from the - GMCC. - - - the terminal handling process which excanges ASCII - character streams between the gateway's terminal (if - one is present) and a specified internetwork source or - destination. - - - the debugging process. - - - the message generator process. - - - etc. - - - - - It should be obvious that processes do not deal one-to-one - -with the kinds of information we discussed above. A given - -process, such as the measurement process, may be used to report - -the cumulative statistics of each of several kinds of - -information. Alternatively, it may take more than one process to - -deal with all the information of any particular kind; for example - -experimental information as discussed above. And it is certainly - -likely that multiple distinct processes will have a need to share - -a single common routine whenever their processing requirements - -are identical; for example, tracing of messages sent from the - -GMCC to the debugger, to the echoer, or to the terminal handler - -should be done by having each process (conceptually) invoke the - -single trace mechanism. It may also be the case that two - -processes can be cascaded for the purpose of combining different - -kinds of information into a single net message. - - - - 20 - - - - - - - -5.3 A Sample Modeling - - - We will develop the gateway model in terms of a general - -purpose host's implementation, since this allows inclusion of as - -much mechanism as may be useful for the more general - -implementation. The figure below shows the principle components - -of the input handler for a net-dependent part of a general - -purpose gateway. - - -First there is a hardware component which represents the physical - -interface between the network and the gateway processor. - -Obviously this interface will be different for different nets and - -for different processors, but as a model component should always - -correspond to some real chunk of hardware in any implementation. - - -Second, there is a piece of code which serves to control the - -input portion of the net interface hardware. Its basic function - -is to effect the reading of messages from the network into - -gateway memory. In the process, it may perform intermediate - -parsing, do checksum and consistency processing, etc. - - -Third, there is a message queue where unparsed messages reside - -after they have been received by the net interface routine but - -before they have been processed by any other gateway routine. - -This queue may be implemented in any of several ways, and may - -only have room for a single message in some implementations. (A - -"higher" level routine may perform queue management in this case, - -using a different data structure.) - - - - - - 21 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 22 - - - - - - - -Fourth, there is a second routine depicted whose job it is to - -parse the received messages one-by-one and distribute them - -individually to new message queues based on the contents of their - -local network header. - - -Finally, there are several model components (including both data - -structures and routines) which are not pictured, but still must - -be modelled; a subsequent and more complete modelling effort will - -certainly include them. These are data structures like buffer - -pools and routines like buffer managers, etc. - - - - Associated with these model components are a large number of - -parameters, both static and operational. These are the things - -we've been calling "events". In the following we give a sampling - -of the events of interest for each of the event types we - -identified before. The sampling is not complete, but it is - -representative of the kinds of information we might be interested - -in for purposes of Monitoring and Control in the gateway - -modelling. Of course, not all of the events are of equal - -interest or value; as modelers, we should attempt to identify as - -many as we can, and leave to the individual implementers the - -selection of which events they really want to record, report, - -etc. - - -Events of Interest: - - Administrative - - - the name and manufacturer of the hardware interface - - - - - - 23 - - - - - - - - Measurement - - - a histogram of log[base 2] message sizes - message counts for each distinct local header type - - - Monitoring - - - cumulative uptime - number of interface errors - - - Control - - - reset counters - place a message on the input queue - - - Debugging - - - read the hardware status register - - - Descriptive - - - Fan out for local headers - queue size - maximum message size - - - Experimental - - - discard every second message at the interface - - - Accounting - - - total bits received at the interface - - - - - - - -5.4 Continuing the Sample Modeling - - - In this section we continue the sample model introduced - -above by showing how certain of the data paths might be extended - -to account for subsequent message processing. It should be easy - - - - 24 - - - - - - - -to identify the events of interest in this extension given a - -little thought. Subsequent attempts at modelling will enumerate - -these in detail. Note that there are probably several - -alternative ways of depicting these later stages of message - -processing; this fact is compounded by the fact that this is the - -point in message processing where the - -net-dependent/net-independent boundary may be crossed. Further - -discussion of alternatives to this part of the model is postponed - -to the section entitled "Issues". - - - - Figure 2 shows the extension to the model. It begins where - -the previous figure left off. First, note that at this point we - -have separated the various types of messages arriving at the net - -interface into unique queues according to indicators in the local - -header. For this figure we will follow only a single path -- the - -one followed by internet messages which carry the normal internet - -traffic. These internet packets are removed from their queue by - -a routine which separates them again, this time according to the - -version bit, into a queue of messages which employ the previous - -internet formatting conventions and a queue of messages which - -employ the current conventions. - - -From this latter queue, the messages are sent to another routine - -whose job is to initiate the option processing. In Figure 2, we - -have represented the options as subroutines without further - -elaboration; subsequent versions of the model should provide the - -elaboration. - - - - - 25 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 26 - - - - - - - -Finally, after option processing, the messsages are separated - -again into individual queues according to the values in the - -protocol field. Here, separate queues may be formed for - -unrecognized protocols, previous and current versions of TCP, - -gateway routing messages, and eventually the Monitoring and - -Control messages, the Datagram Protocol, the Real-Time Protocol, - -etc. - - - As stated, we will not elaborate here on the events of - -interest for this part of the model; some should be obvious. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 27 - - - - - - - -5.5 Unresolved Issues - - - In this section we want to address a number of issues which - -are not yet resolved in the modelling of the gateway component. - -Their resolution will probably depend on prolonged discussions in - -certain cases, on snap decisions in others; possibly in some - -cases a satisfactory resolution will not be possible, and - -whatever alternative solutions are proposed will all have to be - -included in a generalized modelling to make sure the modelling is - -comprehensive enough. - - At any rate, the topics which need further investigation are - -presented below. - - - - - -5.5.1 Are the Event Types Correct - - - First there needs to be some general agreement that the - -event types (information types) we have identified are sufficient - -for modelling purposes. It is probably the case that they are - -correct enough for a beginning, and that no particularly - -disruptive perturbation of the model would be caused if another - -event type had to someday be accommodated or an existing event - -type had to be deleted. However, the omission of an XNET - -information type (not to be confused with the distinct - -"debugging" type) may have to be remedied before too long. - - - - - - - - - - 28 - - - - - - - -5.5.2 What Information Should be Communicated to the GMCC - - - Here there is a lot of room for varying opinion. The next - -cut at the model will try to identify as many potential events of - -interest as possible. Obviously, not all these events will be of - -interest to all implementers; that's why the Monitoring and - -Control mechanisms must be sure to allow for only partial - -participation on the part of any particular implementation. - -However, it may also be the case that we omit some event that is - -of particular interest to some gateway implementer, or the - -information which we choose to record about the event is not - -quite what is needed for some implementer's needs. Our - -collection mechanism must be flexible enough to accommodate - -extensions at any time. - - Here the real issue may be how to control, administratively, - -the selection of events of interest so that all parties are - -satisfied with the set selected. - - - -5.5.3 How Should Information be Communicated to the GMCC - - - We are of the opinion that in most cases, the basic - -gateway-to-GMCC communication facility should be datagram - -oriented on the basis that (1) connection overhead may be too - -expensive for certain gateway implementations, that (2) no flow - -control is probably needed since the gateways will not be - -generating data too frequently and since GMCCs will generally - -have substantially greater storage and processing capabilities - -than will the gateways, and that (3) a practical reporting scheme - - - - 29 - - - - - - - -can probably be developed in which lost messages will not - -necessarily represent lost information, merely delayed delivery - -of information, since the contents of lost messages can be - -inferred from later messages, (this is the case for cumulative - -statistics for example); on the other hand, the datagrams should - -carry sequencing information, and will of course employ standard - -Internet Headers. - - Datagram service will be satisfactory in most cases, we - -hope. In certain instances, however, reliable transmissions may - -be extremely important; for these instances, some additional - -capability may have to be added. As yet, we have no real feel - -for the capabilities required; thus this is still an open issue. - -Also at issue is the decision as to whether internet messages - -directed at the various gateway processes should all carry a - -single protocol designator, or whether each different message - -type should command a distinct designator. It is not yet clear - -whether minimal gateway implementations would find it easier to - -process messages formatted in one way vs. the other, or whether - -it is too wasteful of the Internet Header's protocol field, or - -whether it is easier one way or the other to subsequently add or - -delete new message formats. - - Beyond these basic issues, there is also the issue of - -message formats and message content. Two alternatives present - -themselves as regards event reporting. We assume that event - -counters can be maintained in 16-bit words, say. We can insist - -that messages contain a fixed number of counters in a fixed - -order, and thus eliminate the need to transmit descriptive - - - - 30 - - - - - - - -information with each reporting message. Or, we can allow for - -every counter to be accompanied by another word which names the - -counter. Tradeoffs between the two strategies are not yet - -properly understood. - - - -5.5.4 Addressing Processes from Outside the Gateway - - - Each of the gateway processes responsible for some activity - -of Monitoring and Control has a unique identity, or name, within - -the Catenet. But because the gateway is attached to multiple - -nets, it is possible for each process to have multiple distinct - -addresses. We can assume that one reasonable modelling for the - -net-dependent input handler requires the input handler to - -recognize at the net interface all the messages addressed to - -processes which share its own net (and host) address. This is - -the case for example in a general purpose implementation of the - -gateway, since the general purpose input handler doesn't normally - -receive messages for processes that don't share its own net - -address. It probably should not be the responsibility of a given - -net-dependent input handler to be aware that it is playing a role - -in a gateway implementation, and thus to be cognizant of the - -alternative internet addresses of the gateway processes it thinks - -of as its own; i.e. the net-dependent code should not have to - -know what other nets the gateway is connected to. Therefore, if - -a message arrives at one net interface that specifies a resource - -(process) whose net address is different from that of the input - -handler, then the message should simply be handed off to a - - - - - 31 - - - - - - - -special process which can effect the proper disposition for the - -message without further involvement of the input handler. - - Figure 3 depicts this arrangement. - - -Here, each network has its own interface to a common copy of the - -gateway process, so that it can communicate with it directly - -whenever a message arrives which addresses the process via the - -appropriate net. However, when a message is received for a - -destination not known to the input handler, the message is simply - -handed to the special process, which in this figure is referred - -to as the "Postman". Note that the Postman can effect delivery - -to the processes via its own interface, so that successful - -delivery does not depend on the route taken by the message. - -(Note that the model might want to specify that the Postman be - -able to add messages to the input queues of the net-dependent - -input handlers as a means for effecting delivery in a uniform - -way.) The Postman here also has the responsibility for - -performing the tasks associated with the routing of messages to - -distant locations. That is, messages input at the gateway which - -are only passing through should be routed by the general gateway - -routing algorithms; these can be implemented by the Postman, or - -by some other process to which the Postman interfaces. - - - There is, of course, another way to model the - -net-dependent/net-independent boundary. Figure 4 shows this - -other way. - - - - - - - - 32 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 33 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 34 - - - - - - - -Basically the difference here is that the net-dependent input - -handlers no longer have their own interfaces to the gateway - -processes. Instead, they simply pass all received messages to - -the internal Postman and allow it to effect delivery. This is an - -acceptable approach even if in the general purpose host - -implementation the net-dependent input handlers still have to - -worry about interfacing processes which aren't using Internet - -Headers. However, in this model, the Postman and the affected - -processes must be sure to not lose the destination address by - -which they were reached, lest they not be able to use the same - -address for the source in the header of their response messages. - -(We are somehow assuming that the recipient of a message whose - -source address does not match the destination address which was - -used for transmission, will not be anxious to perform the - -required reverse lookup to map the source address into a resource - -name. If we were to model this capability, it is not clear where - -the processing for this lookup would be performed.) - - At issue here then is just exactly which of these two models - -should be assumed for "the" model implementation. - - - -5.5.5 Addressing Processes from Inside the Gateway - - - Here is an issue which has certainly been touched on in - -other internet meetings; it is basically a discussion of the need - -for high level protocols to carry their own addressing - -information. - - - - - - - 35 - - - - - - - - Gateway processes will have occassion to communicate with - -other processes in support of gateway routing or gateway - -Monitoring and Control. Traffic between two gateway processes - -may be intrahost, intranet, or internet, depending on the - -relative locations of the source and destination processes. At - -issue is whether in all cases a single data transport protocol - -should be used to effect message delivery. We have already - -"concluded" in the discussion of event reporting that gateway - -Monitoring and Control messages should employ Internet Headers in - -all cases. And it would certainly seem on the surface that this - -scheme is ideal. However, in certain cases this may not be true. - - We are struck by an inconsistency which arises when we try - -to attain symmetry in modelling the gateway's internal - -organization. At one point in the model, we have a process whose - -job it is to route messages through a given local net. Whenever _________ - -it is handed an internet message, it analyzes the header of the - -message in order to determine the desired destination, and hence - -what local address to specify in the net-dependent data transport - -protocol. - - The inconsistency is found because we don't have a - -corresponding process whose job it is to analyze higher level - -protocol headers in order to route messages through the internet ________ - -(using the internet data transport protocol). This means either - -that each of our Monitoring and Control processes must make up an - -Internet Header itself, or that, if some common process is to do - -it, the common process must be handed the addressing information - -by some "out-of-band" path (such as a shared memory control - - - - 36 - - - - - - - -block). This may not be easy to provide for a distributed - -gateway implementation, say. - - The real issue here, of course, is inspired by the problems - -we see for, say, TCP users, if the Internet and TCP Headers - -recently proposed are adopted for use in the Catenet. The fact - -that higher level protocols are being designed which don't carry - -their own addressing information means that these protocols will - -be practically unusable in any instance where the data transport - -protocol used to carry the messages is different from the data - -transport protocol embodied in the Internet Header. TCP, for - -example, would probably not be usable without Internet Headers in - -the ARPANET, since port addressing would be impossible. - - Although it is probably the case that we will not opt to - -include addressing information in the messages which adhere to - -our higher level Monitoring and Control protocols, and will thus - -in fact choose to use the Internet Header to provide addressing, - -we nevertheless wonder if it is wise to arbitrarily restrict - -these protocols to use with only a single data transport - -protocol. - - - - - - - - - - - - - - - - - - - - 37 - - \ No newline at end of file diff --git a/text/ien/ien35.txt b/text/ien/ien35.txt deleted file mode 100644 index 5980847c..00000000 --- a/text/ien/ien35.txt +++ /dev/null @@ -1,892 +0,0 @@ - - - - - -INDRA Note 674 -PSPWN ** -IEN 35 - - - - - - - - - - - SATNET and the Provision of Transnet Service - - P. T. Kirstein and C. J. Bennett - - - - - - - - - - - ABSTRACT: This note discusses the problem - of providing service to ARPANET from the - UK via SATNET after the existing direct - ARPANET link disappears. A general - approach is outlined. The solution - offered attempts to make as much use of - current hardware and software as possible. - Areas where problems are anticipated, or - where insufficient information is - available, are indicated. - - - - - - - - - - - INDRA Research Group - Department of Statistics and Computer Science - University College London - -SATNET and the Provision of Transnet Service Page 1 - - - - - - - - - - - - - - CONTENTS - - - - - -1. Introduction - - - -2. Overview - - 2.1 Configuration - 2.2 Service Support - 2.3 Stages of Development - - - -3. Detailed Requirements - - 3.1 UCL TIP - 3.2 UCL PDP9: Access to EPSS - 3.3 UCL PDP-11 - 3.4 UCL PDP9: Access to X25 - 3.5 UCL LSI-11 - 3.6 Gateway LSI-11s - 3.7 TCP Service Gateway in the ARPANET - - - -4. Conclusions - -SATNET and the Provision of Transnet Service Page 2 - - - -1. Introduction - - With the transition of SATNET to a service role and the impending -demise of our direct connection to the ARPANET, University College is -faced with the problem of how to provide access to the ARPANET for the -many UK users who have come to rely on it. There are two aspects to -this problem. Users who connect through our site in London must be -given terminal access to both ARPANET and EPSS (and possibly the future -public PSS, currently due in mid 1979). Other UK users accessing -ARPANET through EPSS and ARPANET users accessing EPSS hosts (including -the UCL service to Culham, RSRE etc) must be given adequate support at -the transport and terminal level to make this possible. - - Our solution to this must be based on our assessment of the current -state of techniques for implementing transnet services. The most -significant development in this area has been the development of a -number of network-independent protocols. Providing network-independent -process-to-process transport service has had the most attention -initially. The TCP is the result which is most familiar to members of -the ARPANET community. Another network-independent transport protocol -is the INWG 96 proposal. There has been a lot of discussion in Europe -on protocols for higher level services which are network-independent -(beyond the description of basic transport facilities required) and -there are several proposals around for virtual terminal protocols, none -of which has yet met with general acceptance. Recently the UK Higher -Level Protocol Group has published a proposal for a network-independent -file transfer protocol, available as INWG Protocol Note 86, which has -gained fairly wide approval in the UK and is now being publicised in -various international groups. This protocol is a development of the -file transfer protocol used on EPSS, and is being implemented on many -sites on that network, hence in this document it will be referred to as -the EPSS FTP. - - Ideally, then, we would like to implement our future -ARPANET/SATNET/EPSS connection within this context, and assume that -connecting lines and machines and providing software to support these -network independent protocols is a sufficient solution to the problem. -In practise, of course, such an attitude is utopian. It assumes that -everyone who wants internet services will adopt network-independent -protocols to do it, and they will be perfectly happy to do this -themselves. There are some very good practical reasons why this will -not happen. Firstly, it means putting a great deal of effort into -developing a new solution to a problem which has already been solved. -ARPANET users have for many years been using the ARPANET file transfer -protocol quite happily, and they are not going to implement a completely -different and incompatible one just to enable European users to access -their files. Secondly, in order to achieve network-independence, the -protocols make the minimal assumptions possible about the nature of the -underlying network services, which means that they end up duplicating -many aspects of those services. For this reason it is unlikely, for -instance, that TCP or INWG 96 will be seen initially as an attractive -solution for providing transport services in an X25 environment - much - -SATNET and the Provision of Transnet Service Page 3 - - - -of the emphasis of TCP is on providing end-to-end liaisons in a datagram -environment, which many people argue will involve a near duplication of -features of the X25 virtual call, to take just one example. - - Therefore, we foresee the development of transnet services as -taking place at a limited number of network sites within the -concatenated networks, and it is unlikely that these services will be -integrated at any one particular site. A generalised view of the -transnet world under this scheme is given in Figure 1. The sites at -which the network-independent protocols are implemented have been -christened 'service gateways' as they are providing transnet access for -particular services. Note that this concept is quite distinct from the -gateways which physically connect two networks, providing packet -encapsulation, fragmentation, internet routing etc. The service -gateways need not stand in any particular physical relationship to each -other or to the physical gateways. Clearly there will be strong -functional relations between the physical and service gateways, and -there is a hierarchy of service gateways. One major research interest -of the concept is in establishing just what these functional relations -are and how best they should be implemented. - - While the immediate aim of our network interconnection project is -simply to provide communication between the UK and ARPANET through -SATNET, the design chosen is one which will facilitate the provision of -future services across many networks using the service gateway concept. -Section 2 gives an overview of the proposed connection. Section 3 gives -a more detailed survey of the software needed in each crucial machine to -support the service, relates this survey to our understanding of the -existing state of the hardware and software for these machines, and -summarises the modifications to existing developments needed to realise -the system. Section 4 summarises our main conclusions. - -SATNET and the Provision of Transnet Service Page 4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Figure 1 - The service gateway concept. - -SATNET and the Provision of Transnet Service Page 5 - - - -2. Overview. - -2.1 Configuration - - The proposed future UCL configuration is given in Figure 2. The -principal points to note about this diagram are summarised below. - - i) The PDP-11, currently the gateway machine, will become a - transnet access host on the TIP, connected via the VDH - interface currently connected to a PDP9, and probably running - under a standard operating system such as UNIX. It will - support terminal and file transfer access to and from ARPANET - via SATNET through TCP. - - ii) An alternate route for EPSS-ARPANET traffic will pass - through the other PDP9 and the LSI-11 via the X25 connection. - The PDP9 will lose its current VDH connection to the TIP. The - X25 connection has been so constructed that the LSI will be - seen by users as an X25 host; EPSS sees the X25 interface as a - process on the PDP9. This LSI will also support TCP to - provide access to the ARPANET. - - iii) The (physical) gateways to SATNET will be replaced by - LSI-11s. As indicated, the UCL gateway will have two 1822 - interfaces and a VDH interface whereas the gateway on the - ARPANET side (presumably the BBN gateway) may only have one - 1822 interface. Special hardware for the LSI-11 may be - required to handle 50kb on the VDH line across a DMA - interface; this will (presumably!) be done by BBN. - - iv) A transport-level service gateway supporting TCP will - terminate the connection on the ARPANET side. This may be a - TENEX (or TOPS), or another PDP-11. Further terminal access - will be developed via ARPANET Telnet; support for other - services, such as transnet file transfer will also be provided - at this point. - - -SATNET and the Provision of Transnet Service Page 6 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Figure 2 - Proposed UCL Configuration - -SATNET and the Provision of Transnet Service Page 7 - - - -2.2 Service Support - - - The two major service requirements are the provision of terminal -access and of file transfer capability. Terminal access requires the -mapping of various terminal protocols at the appropriate points, rather -like the current SWITCH approach. Mappings between the ARPANET standard -Telnet and the TCP-based Telnet will be required in the transport -gateway in ARPANET and in the PDP-11 at UCL. The TCP-based Telnet will -map into the X25 VPT in the UCL LSI-11, and the ARPA Telnet will map -into the EPSS VPT in the PDP9 connected to the TIP. Much of the -complexity of this problem comes from linking up two connections when -one is being set up by the rather complex procedures of ICP. It is not -clear whether TCP-Telnet goes through a similar port-allocation -procedure. - - The situation with regard to FTP is not so clear. The TCP group is -intending to implement a TCP-based FTP, but this is still in the -planning stages. If this becomes available at the right time, then for -service purposes we would perform analogous FTP mappings at the same -places. This mapping can be done either on a real-time basis, as we -have attempted to do for the EPSS and ARPANET FTPs on our PDP9, or on a -staged basis, with the file being stored on some mass-storage device and -forwarded to the next stage only when it has all arrived. Based on our -past experience, the staged solution is probably preferable when it is -possible. The status of the TCP FTP is one of the major question which -needs to be followed up. It may not actually be necessary to do a -detailed mapping of FTPs in the TCP transport gateways, as both the -source and destination of the transfer will be using the standard ARPA -FTP. It may only be necessary to map certain low-level features of the -FTPs, such as control and data sockets being mapped into TCP ports. -This is an option which we should also investigate. - - If mappings of file transfers have to be done, it is desirable that -we keep these to a minimum, and it would be preferable to do them on a -large system, such as TENEX. If TCP-based FTPs are to be used, several -mappings are involved, none of them on systems of this type. Since in -any case it seems that a TCP FTP may not be available in time, an -alternative strategy of implementing the EPSS File Transfer Protocol on -ARPANET could be adopted. This protocol is specifically designed to be -network and transport protocol independent, and so this is an attractive -proposition. If transnet file transfer were done this way, this -protocol would be implemented in the PDP-11 at UCL, interfacing to both -TCP and NCP, and at the transport gateway, interfacing to TCP (or, -indeed, at some other site in ARPANET, in which case it would interface -to NCP). In this case, the only FTP mapping required is at the site in -ARPANET which has the EPSS FTP installed. The transport gateways (i.e. -the TCP site in ARPANET, the PDP-11 at UCL, the LSI-11 at UCL, and the -PDP9s at UCL) will then be supporting an end-to-end protocol between the -FTP service gateway in ARPANET and the destination site in EPSS (or at -UCL), and they will perform the classic gateway services of -address-mapping, connection-establishment, flow-control, etc. - -SATNET and the Provision of Transnet Service Page 8 - - - -2.3 Stages of Development - - The work needed for this development will obviously not be done -overnight. We see the project taking place in three main stages. - - i) As much work as possible will be done in the current - configuration. Development of software for the PDP-11 at UCL - will probably be carried out on a PDP-11 in the ARPANET - (exactly which one is to be decided; see sections 3.3 and - 3.7). The TCP/X25 LSI-11 will be developed as a terminal host - on a local host port on the TIP (see section 3.5). This - situation will continue until either the Norway line to - ARPANET disappears or LSI-11 gateways are ready. We expect - that the direct connection to ARPANET will not disappear - before the LSI gateways are ready, and this document is based - on that assumption; should events happen otherwise, - alternative means of continuing development will have to be - found. - - ii) Once the LSI-gateways are ready and installed, the - configuration of Figure 2 can be set up. It is not necessary - that both paths become operational at once, but we expect that - the TIP-based path will be ready for use at that point, i.e. - there will be an operational TCP-based terminal system on the - UCL PDP-11. The TCP/X25 LSI-11-based path will be strictly - for experimental development at this point, investigating the - nature of the connections needed to support the appropriate - services. It is not clear whether XNET can be used - satisfactorily across SATNET, and any development strategy - based on XNET may have to be reconsidered at this point. - - iii) When the X25/TCP path is ready for service use it will - become the main service route between EPSS and ARPA. Either - now, or at some other time, the PDP-11 could be directly - connected to the LSI-11 gateway, and at some time it will - probably support multiple terminals directly. When all these - conditions are fulfilled, the TIP could be removed completely. - No doubt this possibility will be looked at more closely when - the time comes. - -SATNET and the Provision of Transnet Service Page 9 - - - -3. Detailed Requirements - - - This section describes the software needed in the various machines -to support the service outlined above. This is done machine by machine. -The proposals try to make the minimum changes needed to existing systems -or to current plans. Attention is drawn to points on which we need more -information, or which we know or believe to be incompletely developed, -and also to areas in which problems are expected. - -3.1 UCL TIP - - No functional changes are envisaged for this machine, which will -continue to support terminal access as at present. The major change -will be updating the routing tables to reflect the absolute isolation -the TIP will experience. The major problem which BBN will encounter -will be in providing the same remote maintenance and monitoring -facilities it has at present. One possibility is to retain the direct -lines that ARPA currently maintains to the SIMPs (e.g. the 9.6 kb line -between London and Goonhilly), as this is the simplest way to provide -direct access to our isolated TIP. However, this is a problem for -forces beyond our control. - -3.2 UCL PDP9 Access to EPSS - - No major functional modifications to the existing SWITCH system are -expected here for providing terminal-level access. Other services can -be set up as concatenated terminal streams. If the EPSS File Transfer -Protocol is adopted for transnet service, this will be sufficient to -provide an adequate. If not, then the current EPSS FTP/ARPA FTP mapping -will be used. The resulting configuration is shown in Figure 3. - - There is some question as to how much work the full PDP9 system can -support simultaneously. If serious overloading occurs, some of the -special systems supported (e.g. the Culham link) may be removed from -the standard system; if even this is inadequate, then the position of -the FTP facilities may be reconsidered. - -SATNET and the Provision of Transnet Service Page 10 - - - - - - - - - - - - - - - - - - - - - - - -Figure 3 - Terminal Access to EPSS via the PDP9 - -3.3 UCL PDP-11 - - The PDP-11 is the first machine considered which will require -significant effort to bring up. Much of the new software required has -either already been developed or is currently under development by BBN, -notably TCP, TCP-Telnet, and these can be run under ELF, which we at UCL -have some experience with. ELF has some disadvantages as an operating -system to support user services, however. The principal one is that, to -the best of our knowledge, it does not support either the NCP or the -standard ARPA FTP. This point should be checked. The lack of an FTP -would be unimportant if the EPSS File Transfer Protocol is adopted; -however the lack of adequate NCP facilities is critical. Also, we would -prefer to use an operating system with terminal drivers capable of -handling multiple users, as we ultimately expect to be using this -machine as a terminal concentrator to replace the TIP. The main new -item which has to be tackled in this system is providing a connection -between NCP-based Telnet sockets and TCP-Telnet ports. As a gateway -between two transport protocols (TCP and NCP) this machine will also -have to handle the usual readdressing, flow control and reassembly -problems handled by gateways. - - The configuration under consideration is illustrated in Figure 4. -The existing local host interface will not be used, and connection to -the TIP will be via the VDH, as the two local host ports on the TIP are -taken up by the PDP9 gateway to EPSS and the LSI-11 gateway to SATNET. -The looped nature of the traffic may create some unusual flow control -problems when there are heavy traffic rates. For this reason, when the -file transfer facilities are developed for this machine, onward transfer -to EPSS will be done in a staged fashion, with the file being -temporarily stored on the RK05 disc. - -SATNET and the Provision of Transnet Service Page 11 - - - - Since we have not been directly involved with the work, one major -question on which we lack hard facts is the question of choosing an -appropriate operating system. As we have indicated, ELF does not seem -to be suitable for a major service role of the kind implied here. The -major PDP-11 operating systems that seem to be suitable, both because -the expertise is available in the department and because TCP -developments are taking place on them are UNIX and RSX-11M. TCP version -2.5s have been developed by BBN under UNIX and ELF; version 3 of TCP is -currently being developed by DTI under UNIX and by CCA under RSX-11M. -The only system under which a TCP-Telnet seems to be developing is ELF. -Further information must be obtained about these points. - - Two other points are relevant here. The first is that it would be -highly desirableable to be able to use the same operating system here as -we do on the remote transport gateway (see section 3.7) if this is to be -a PDP-11; this would considerably speed up the development of the whole -system. Secondly, we have to investigate the cross-net loading -facilities. The great advantage of ELF is the fact that it is -specifically tailored to run with XNET. With other operating systems we -will almost certainly require a special bootstrap to be able to use XNET -at all, and it is unlikely that we will be able to use its full -facilities even then. For debugging purposes this is not so serious, -but for cross-net loading it is vital. - - - - - - - - - - - - - - - - - - - - -Figure 4 - PDP-11 Configuration - -3.4 UCL PDP9 - Access to X25 - - Here, the anticipated course is that the current system will -develop along its existing lines, with the complete excision of the -current ARPANET software. For transnet communication an EPSS user will -access the X25 port, which will also support incoming connections from -ARPANET. The present SWITCH system running on this machine, supporting - -SATNET and the Provision of Transnet Service Page 12 - - - -the EPSS VPT and FTP, will be the standard system on the PDP9 which is -connected to the TIP. Both Level 2 and Level 3 of X25 are currently -available, and although it is designed basically as a DCE we anticipate -no great difficulty in turning it into a DTE if required. This point, -however, requires more detailed study. Calls coming in from EPSS will -automatically be forwarded to the LSI-11 if no EPSS address is included -in the data field. In the reverse direction, calls being forwarded to -EPSS will require an EPSS address in the data field, but these must be -provided by the LSI-11. This scheme fits into the current context very -well, and we see no reason not to retain it. - - - - - - - - - - - - - - - - - - - - -Figure 5 - UCL PDP9 - X25 Access - -3.5 UCL LSI-11 - - Essentially, this machine will consist of an X25 terminal and a TCP -terminal connecting an HDLC interface on the one side to a BBN 1822 -interface on the other through a number of mapping modules. The basic -structure is shown in Figure 6. The X25 hardware for this configuration -has recently been completed, and the 1822 interface is nearly ready. -The software, however, is in a rather more uncertain state, and it is -expected that this terminal will remain an experimental link for some -time. - - As with the PDP-11, it is not clear what operating system this -machine will use, although the alternatives are fewer: either the -current TCP terminal, available under MOS, is altered to run under -RSX-11, or the current X25 terminal, available under RSX-11, is altered -to run under MOS. RSX-11 will support development in a high-level -language (RTL2), but it is doubtful whether this is advantageous, as the -generated code is large. Also, whichever system used will initially -have to support crossnet loading (and possibly development) of the -TCP-terminal software. This question is an unknown for both systems, -and urgently needs resolution. - -SATNET and the Provision of Transnet Service Page 13 - - - - The TCP side of the terminal is based on the packet-radio TCP -terminal developed at SRI. The major difference is the replacement of -the DSP, which is packet-radio dependent, by an XNCP-like module for -communication with the gateway. This raises two problems. The first is -the unorthodox nature of the 1822 connection, in that neither side of -the HOST/IMP interface supports what would normally be understood as an -IMP. There is, however, a precedent for this situation, as COMSAT has -built a similarly non-standard connection between its 360 and its PDP-11 -gateway, so we should be able to consult them for guidance for potential -problems. Moreover, 1822 is a highly symmetric interface, so major -problems are not anticipated. The second problem is that this module -will initially only support a single TCP port, whereas there is a strong -requirement for supporting several ports for different services. -However, creating a multiplexing 'XNCP' is not the whole solution to the -problem, as we will then be able to support several TCP connections only -if they go to different hosts. Unfortunately, we need to support -several connections to one particular host (i.e. the remote transport -gateway in ARPANET - see section 3.7). This will require modifications -to the TCP itself. - - Our current X25 is written in RTL2 or in assembler versions derived -from it, and is rather large in its RTL2 version. The VPT is a larger -RTL2 program. While the generated assembly code is believed not to be -highly system dependent, this aspect has not been analysed in detail - -the driver for the HDLC chip is a particularly important question here. -On the face of it, therefore, it would seem to be easier to put X25 -under MOS than to put TCP (written in MACRO) under RSX-11 from the point -of view of aiding development. The RTL2 code has been written so that -it can be run as both as X25 DTE and a DCE, and one problem under -investigation concerns deciding when it should be one or the other. A -study of the incorporation of the X25 software into MOS should be -undertaken very soon. - - Finally, there is the connection between the X25 side and the TCP -side. At this stage, it is not possible to say much more about this -than to state the functional requirements. Terminal access will require -a mapping between the X25-VPT and the TCP-Telnet; this will undoubtedly -be based on our experience with similar problems in the PDP9 SWITCH -systems. File transfer may also need to be mapped, and will certainly -require support of high-throughput connections on both sides; the -evolution of suitable strategies to match the flow will have to be -evolved. These modules will also have to solve the questions of forward -addressing and routing. In the service gateway context, these functions -become more important than the mappings. - - The question of how this code is to be developed has still not been -satisfactorily resolved. There are two main options. The first is to -develop it in our PDP-11, using XNET to load in the system. This -requires a MOS-based VDH driver for a DMA interface, which is currently -being written. The second option is to load the LSI-11 directly, using -one of our local host ports on the TIP. This requires the completion of -the 1822 interface, which is proceeding rapidly. Other options, such as -storing the software on floppy discs, are basically variants of these. - -SATNET and the Provision of Transnet Service Page 14 - - - - - - - - - - - - - - - - - - - - - - - -Figure 6. UCL LSI-11: TCP Access Configuration - -3.6 Gateway LSI-11s - - No special role is envisaged for these gateways, as end-to-end -transport is being provided entirely by TCP at this point. It is not -clear how far development on LSI-11 gateways has progressed, as opposed -to PDP-11 gateways; this is a question which must raised with BBN. One -problem that may well affect the schedule is that our preliminary -calculations suggest that access to the VDH line will have to be via a -DMA interface if high throughput is desired and the machine is not to -spend up to 50% of its time servicing interrupts from the interface. -Critical questions for this machine, then, are the development of -MOS-drivers for DMA VDH interfaces, and the ability of the gateway to -handle more than two nets - the 'nets' here being SATNET, the TCP/NCP -PDP-11, and the TCP/X25 LSI-11. - - It is conceivable, if TCP develops concepts of selecting grades of -service from local nets, that we may become interested in developing our -ideas in these gateways as well as the ones already discussed, but this -does not seem to be on the current schedule of TCP development and in -any case would have to be coordinated very closely with BBN. - -SATNET and the Provision of Transnet Service Page 15 - - - - - - - - - - - - - - - - - - - - - - - -Figure 7 - UCL SATNET Gateway Configuration - -3.7 TCP Service Gateway in the ARPANET - - Finally, a site in the ARPANET must be selected to provide the far -end of the TCP pipeline. The development needed here is very similar to -that discussed in section 3.3, and developing both ends simultaneously -on PDP-11s under the same operating system, as we did for GNOME, could -speed up the process considerably. However, the system support and -system resources we could draw on are likely to be limited unless -coupled with a TENEX. Differences between the two sites will emerge at -later stages in the development. These will be mainly connected with -addressing and routing problems: this machine will act as a service site -for the whole US ARPANET, whereas the UCL PDP-11 will only service EPSS -traffic through the PDP9. - - The other alternative is to use a TENEX or TOPS-20 system for this -end of the connection, as TCP and TCP-Telnet are both available, and -they have proved and extensive resources for such work. However, this -will mean developing two versions of the new software, and will also -involve experimenting with special versions of standard software (such -as ARPA-Telnet, FTP, NCP) which may lead to organisational problems, as -these are machines supporting large user populations. This question -will again have to be gone into more deeply. - -SATNET and the Provision of Transnet Service Page 16 - - - - - - - - - - - - - - - - - - - - - - - -Figure 8 - TCP Service Gateway Configuration - -SATNET and the Provision of Transnet Service Page 17 - - - -4. Conclusions - - - In this note future ARPANET service is considered from several -points of view. Firstly, there is the problem of providing UCL users -with terminal access to ARPANET via SATNET. Secondly, access has to be -provided between EPSS and ARPANET for a variety of services. Initially, -this will be of the terminal mapping type already in use, but the design -proposed has hooks for extension towards a more sophisticated concept of -supporting service gateways. Where possible, the scheme uses existing -systems, or systems already under development. Obviously, there will be -problems in modifying these to meet the new requirements, but the scheme -outlined has attempted to minimise these, and at the very least to -identify them. - - Integration of the various components into a unified system -requires most software work at the points where various layers of -trsnsport protocol terminate and have to be connected to the next level. -The two most critical points for providing a general transnet transport -service are in the TCP service gateway in ARPANET and the TCP/X25 LSI-11 -at UCL. A similar critical point occurs in the PDP-11 at UCL. The PDP9 -giving terminal access to EPSS from UCL is not critical as this problem -has already been solved. Again, a solution for the transport connection -between the EPSS Bridge and X25 is already in existence to the point -where the LSI-11 will be seen as a host on EPSS when it is connected to -the PDP9. - - Specific areas where we anticipate difficulties with existing -software are: the remote loading (and debugging) of non-ELF operating -systems for the PDP-11; the choice of an operating system for the -LSI-11; the nonstandard nature of the 1822 interface connecting this -machine to the gateway LSI-11; the use of XNET across SATNET; and the -provision of a DMA VDH interface on the gateway LSI-11s, to connect them -to SATNET. Areas on which we need further information include: the -status of TCP and TCP-Telnet under various standard PDP-11 operating -systems; the current status (or even the existence!) of the TCP-FTP; the -current status of LSI-11 gateways; and information that we can get about -activities such as the non-standard 1822 connections which have been -undertaken by other groups. - - In short, the components required to connect UCL and EPSS to -ARPANET via SATNET are on the whole either already in existence or -already under development. The new work is in sticking them together in -such a way as to provide adequate transnet service. - \ No newline at end of file diff --git a/text/ien/ien39.txt b/text/ien/ien39.txt deleted file mode 100644 index de503f69..00000000 --- a/text/ien/ien39.txt +++ /dev/null @@ -1,280 +0,0 @@ - - 17 May 78 -INTERNET Notebook - - - -IEN: 39 J. Postel -Section: 2.5.3.4.2 ISI - 17 May 1978 - - NSW Data Representation (NSWB8) - -Data transmitted between NSW processes is encoded into a standard form. -This standard form, called NSWB8, is based on a few atomic data types -and a list data type. - -Data Structure Types and Encoding - - EMPTY - - TYPE (1 byte) = 1 - - VALUE (none) empty - - BOOLEAN - - TYPE (1 byte) = 2 - - VALUE (1 byte) boolean - - FALSE=0 - - TRUE=1 - - INDEX - - TYPE (1 byte) = 3 - - VALUE (2 bytes) index - - The value represents a positive integer in the range 0 through - 2**16 - 1. - - The most significant byte is first. - - INTEGER - - TYPE (1 byte) = 4 - - VALUE (4 bytes) two's complement integer - - The most significant byte is first. [If we don't use (2**32-1) - it will be easier on one's complement machines.] - - -Postel [page 1] - - 17 May 78 -INTERNET Notebook -NSW Data Representation (NSWB8) - - - - BITSTR - - TYPE (1 byte) = 5 - - COUNT (2 bytes) - - VALUE (count bits) left adjusted in (count+7)/8 bytes - - CHARSTR - - TYPE (1 byte) = 6 - - COUNT (2 bytes) - - VALUE (count bytes) ASCII text - - LIST - - TYPE (1 byte) = 7 - - COUNT (2 bytes) - - Count Data Structures - - PAD - - TYPE (1 byte) = 9 - - VALUE (none) - - Any PAD elements should be completely ignored. They are not to - be counted (for example as elements of a LIST). The concept of - a PAD element has been useful in forming data structures, - especially when the structure cannot be built sequentially. - - The first byte of a data structure is a type code. The following - bytes depend on the type code. The type code zero is reserved. The - type code 8 is reserved for possible use as REPEAT (data compression) - element. - - - - - - - - - -Postel [page 2] - - 17 May 78 -INTERNET Notebook -NSW Data Representation (NSWB8) - - - -Data Structure Format - - element - - *-----* - empty * 1 * - *-----* - 1 - - *-----*--------* - boolean * 2 * 0 or 1 * 0 for FALSE or 1 for TRUE - *-----*--------* - 1 1 - - *-----*-------* - index * 3 * index * small nonnegative integer - *-----*-------* - 1 2 - - *-----*--------* - integer * 4 *integer * two's complement integer - *-----*--------* - 1 4 - - *-----*-------*------* - bitstr * 5 * count * bits * - *-----*-------*------* - 1 2 count (count+7)/8 bytes) - - *-----*-------*------* - charstr * 6 * count * text * Network ASCII - *-----*-------*------* - 1 2 count - - *-----*-------*------------------* - list * 7 * count * count-structures * - *-----*-------*------------------* - 1 2 - - - - - - - - - - -Postel [page 3] - - 17 May 78 -INTERNET Notebook -NSW Data Representation (NSWB8) - - - -Examples - - Empty - - *-----* - * 1 * - *-----* - - Boolean "TRUE" - - *-----*-----* - * 2 * 1 * - *-----*-----* - - Index "7" - - *-----*-----*-----* - * 3 * 0 * 7 * - *-----*-----*-----* - - Integer "-3" - - *-----*-----*-----*-----*-----* - * 4 * 255 * 255 * 255 * 253 * - *-----*-----*-----*-----*-----* - - Bit string "10001111101011" - - *-----*-----*-----*-----*-----* - * 5 * 0 * 14 * 143 * 172 * - *-----*-----*-----*-----*-----* - - Character string "ABCDE" - - *-----*-----*-----*-----*-----*-----*-----*-----* - * 6 * 0 * 5 * A * B * C * D * E * - *-----*-----*-----*-----*-----*-----*-----*-----* - - - - - - - - - - - -Postel [page 4] - - 17 May 78 -INTERNET Notebook -NSW Data Representation (NSWB8) - - - - List of a character string "ABC" and a boolean "FALSE". - - *-----*-----*-----*-----*-----*-----* - * 7 * 0 * 2 * 6 * 0 * 3 * - *-----*-----*-----*-----*-----*-----* - - *-----*-----*-----*-----*-----* - * A * B * C * 2 * 0 * - *-----*-----*-----*-----*-----* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [page 5] \ No newline at end of file diff --git a/text/ien/ien42.txt b/text/ien/ien42.txt deleted file mode 100644 index 341b18b5..00000000 --- a/text/ien/ien42.txt +++ /dev/null @@ -1,342 +0,0 @@ - - -IEN: 42 Winston Edmond -Section: 2.2.2.5.1 BBN - 12 June 1978 - - SATNET Information - -Addresses - - Definitions - - The internet gateway is that part of the PDP-11 code which passes - messages between networks. It is a Host on two different nets. - - The speech host is a different piece of PDP-11 code. - - The internal gateway is part of the SIMP code which performs - limited gateway functions. It is a Host both on SATNET and one - other network. - - List of Hosts on SATNET. - - At Etam: - - The BBN gateway is ARPANET Host 3 on IMP 40 and is SATNET Host - 61 (75 octal). - The PDP-11 speech Host is SATNET Host 31. - There is an internal gateway, ARPANET Host 4 on IMP 39 (SDAC) - and SATNET Host 32. - - At Goonhilly: - - The UCL gateway is ARPANET Host 3 on IMP 42 (LONDON), and is - SATNET Host 60 (74). - The PDP-11 speech Host is SATNET Host 32. - - At Tanum: - - The NDRE gateway is ARPANET Host 3 on IMP 41 (NORSAR), and is - SATNET Host 38 (46). - The PDP-11 speech host is SATNET Host 33. - - At Clarksburg: - - The PDP-11 internet gateway is SATNET Host 39. - The PDP-11 speech Host is SATNET Host 34. - There is an internal gateway, RCCNET (Net 3) Host 1 on IMP 51 - (63), and SATNET Host 30 (36). - - - - - - - -Winston Edmond [page 1] - -IEN: 42 12 June 78 -SATNET Information - - - - In summary then: - - -SATNET ! ETAM ! Goonhilly ! Tanum ! Clarksburg ! ------------------!------------!------------!------------!------------! -Internet Gateway ! 61 (75) ! 60 (74) ! 38 (46) ! 39 (47) ! -Speech Host ! 31 (37) ! 32 (40) ! 33 (41) ! 34 (42) ! -Internal Gateway ! 21 (25) ! - ! - ! 30 (36) ! - - - The notation "xx (yy)" indicates the Host number where xx is - the decimal value and yy is the octal value. - - -ARPANET ! ETAM ! Goonhilly ! Tanum ! Clarksburg ! ------------------!------------!------------!------------!------------! -Internet Gateway ! 40-3 ! 42-3 ! 41-3 ! - ! -Speech Host ! - ! - ! - ! - ! -Internal Gateway ! 39-4 ! - ! - ! RCC-51-1 ! - - - The notation "xx-y" means IMP xx and Host y on that IMP - (both expressed in decimal). - - There are also some permanently assigned group names which may be - used to broadcast a message. These group names are valid as - Destination addresses, but are not valid as Source addresses. - - Group ID Rate Members - ---------- ---- ------- - 128. (200) 16K E G T C - 129. (201) 64K E G T - 130. (202) 16K E G C - 131. (203) 16K E T C - 132. (204) 16K G T C - 133. (205) 64K E G - 134. (206) 64K E T - 135. (207) 16K E C - 136. (210) 64K G T - 137. (211) 16K G C - 138. (212) 16K T C - 140. (214) 16K Etam and Clarksburg, internal gateways - - For groups 128 to 138, it is the PDP-11 Host that is the member of - the group at the specified location. For example, group ID 134 - sends a message to the PDP-11 at Etam and the PDP-11 at Tanum. The - - - - -Winston Edmond [page 2] - -IEN: 42 12 June 78 -SATNET Information - - - - PDP-11 will determine which of its internal parts is to process - the message. - - Note that when the Host-SIMP protocol arrives, the message will be - delivered to the destination with the group ID in the destination - field. - -Buffer Size - - The current size of the buffer used for satellite channel - communication is 425 (octal) words. Of this, 400 (256.) words are - for data. "Data" is considered to begin immediately following the - three word Host-SIMP leader, and continues to the last word of the - message. The Internet-Header, if any, is counted as part of the data - area. For those who think in terms of bits, 256. words = 4096 bits. - -Timestamps - - Below is a description of each timestamp implemented in SIMP 3. The - order is the order in which a message would ordinarily be stamped. - - 1. VDH interface (Input from Host to SIMP) - - (A) Implementation - - When the hardware detects the end of a packet, it initiates an - interrupt at level 2 (0 is highest priority, 7 is lowest). - Very shortly after the interrupt happens, local time (10us - clock) is read, and the time is saved with the incoming packet. - The packet is then passed down to a lower processing level. - - A little while later, the lower level will take the packet. If - it should turn out that this packet was the last packet of a - message (and if the message was not previously rejected by the - Host-SIMP protocol) then the local time will be converted to - global time and written as the value of the timestamp. - - This stamp is called level 3. - - (B) Comments - - If the message is more than one VDH packet long, the earlier - packets may have already been copied over into chunk buffers by - the time the last packet arrives. This means the stamp ignores - the time the SIMP has already spent on the message. This time - will show up as a general processing delay. If the VDH line is - continuously receiving messages, the intermessage delay time - - - -Winston Edmond [page 3] - -IEN: 42 12 June 78 -SATNET Information - - - - may be used to estimate the time spent. If the message fits - entirely in one packet (SIMP 3.1) the problem vanishes. - - It would not be too difficult to timestamp the message with the - arrival time of the first packet, if this should prove - preferable. - - 2. Satellite channel output - - (A) Implementation - - The time that the message is to be sent out is known in advance - by the chosen protocol. That time is used for the timestamp. - It is the time when the satellite channel will be turned on for - the sending of the message. - - This stamp is called level 0. - - (B) Notes. - - The message is timestamped only the first time it is sent. - Retransmissions will not cause additional stamping. - - 3. Satellite channel input. - - (A) Implementation - - When the first sixteen data bits of an incoming message have - been received from the satellite channel, the hardware records - the time. This time is later noted and kept with the incoming - message. - If the message is from the leader, global time will be updated. - This means the relationship between local and global time may - change! This change will cause the local SIMP's global time to - be brought into line with that of the leader, if it was not - already. - The hardware receive time of the message is then converted to - global time, and this value is used for the timestamp. - - This stamp is called level 0. - - (B) Notes - - To figure out when the packet has fully arrived in the SIMP, - one must add the packet transmission time to the declared - receive time. In the case of a mixed rate incoming message, - this calculation may be moderately complex. - - - -Winston Edmond [page 4] - -IEN: 42 12 June 78 -SATNET Information - - - - 4. VDH transmit side -- SIMP to Host. - - (A) Implementation - - When the message is removed from the Host output queue, global - time is computed and written as the value of the timestamp. - - This stamp is called level 3. - - (B) Notes - - The following events occur after the timestamp time: - - 1) Host-SIMP to 1822 leader conversion; - - 2) Copying message from chunk buffer to VDH packets; - - 3) Sending packets across VDH line. - - Items (2) and (3) occur in parallel. Processing for the next - message may be begun when the last packet of the previous - message has been queued (software) for eventual output. - - 5. Message Received - - (A) Implementation - - When a message is received from the satellite channel, it is in - a contiguous buffer. If the message is not destined for a Host - on this SIMP, it is thrown away. If kept, it is passed to a - lower interrupt level. There the message is copied into chunk - buffers and some processing of poda header info occurs. The - chunk buffer message is then taken off the queue by the - background code, the current time in global time is computed, - and this value is used for the timestamp. It is timestamp level - 2. - - After the message is stamped, the message's checksum will be - computed. The message is discarded if the checksum test fails. - An ACK will then be created, if one is wanted, to acknowledge - the correct receipt of the message. Finally, the message will - be handed to Delivery, in the Host protocol module. - - (B) Notes - - This timestamp may be used to estimate: - - - - -Winston Edmond [page 5] - -IEN: 42 12 June 78 -SATNET Information - - - - 1) when the SIMP has finally decided to accept the message; - - 2) when the ACK for the message is entered; - - 3) when the message is given to the HPM. - -Host Status Measurements - - There is a cryptic printout in the Host Status line printed by MON25. - Perhaps this will clarify what's happening. - - "PS=1/45" means "packets sent". Specifically, the SIMP VDH sent 45 - total data packets, 1 of which was a retransmission, during the last - reporting interval (approx. one minute intervals). - - "PR=2/67" means "packets received". During the last reporting - interval, the SIMP VDH received 67 good packets other than - Hello/I-heard-You packets. Two packets arrived with hardware - checksum errors, and it is unknown what type of packet these might - have been originally. - - "HI=67/66" means "Hello/I-Heard-You". These packets are required by - the VDH protocol. They are used to determine that the VDH connection - works well enough to send real data. They are also used to detect - the other host going down in the absence of other traffic. In the - example, during the last reporting interval, the reporting SIMP - received 67 Hellos and received 66 I-Heard-You's. - - - - - - - - - - - - - - - - - - - - - - - -Winston Edmond [page 6] \ No newline at end of file diff --git a/text/ien/ien45.txt b/text/ien/ien45.txt deleted file mode 100644 index 623b45a0..00000000 --- a/text/ien/ien45.txt +++ /dev/null @@ -1,740 +0,0 @@ -IEN 45 -Section 2.4.4.5 - - - - - - - - - - - - - - - - - TCP Checksum Function Design - - - - William W. Plummer - - - Bolt Beranek and Newman, Inc. - 50 Moulton Street - Cambridge MA 02138 - - - 5 June 1978 - - - - -Internet Experiment Note 45 5 June 1978 -TCP Checksum Function Design William W. Plummer - - - - -1. Introduction - -Checksums are included in packets in order that errors -encountered during transmission may be detected. For Internet -protocols such as TCP [1,9] this is especially important because -packets may have to cross wireless networks such as the Packet -Radio Network [2] and Atlantic Satellite Network [3] where -packets may be corrupted. Internet protocols (e.g., those for -real time speech transmission) can tolerate a certain level of -transmission errors and forward error correction techniques or -possibly no checksum at all might be better. The focus in this -paper is on checksum functions for protocols such as TCP where -the required reliable delivery is achieved by retransmission. - -Even if the checksum appears good on a message which has been -received, the message may still contain an undetected error. The -probability of this is bounded by 2**(-C) where C is the number -of checksum bits. Errors can arise from hardware (and software) -malfunctions as well as transmission errors. Hardware induced -errors are usually manifested in certain well known ways and it -is desirable to account for this in the design of the checksum -function. Ideally no error of the "common hardware failure" type -would go undetected. - -An example of a failure that the current checksum function -handles successfully is picking up a bit in the network interface -(or I/O buss, memory channel, etc.). This will always render the -checksum bad. For an example of how the current function is -inadequate, assume that a control signal stops functioning in the -network interface and the interface stores zeros in place of the -real data. These "all zero" messages appear to have valid -checksums. Noise on the "There's Your Bit" line of the ARPANET -Interface [4] may go undetected because the extra bits input may -cause the checksum to be perturbed (i.e., shifted) in the same -way as the data was. - -Although messages containing undetected errors will occasionally -be passed to higher levels of protocol, it is likely that they -will not make sense at that level. In the case of TCP most such -messages will be ignored, but some could cause a connection to be -aborted. Garbled data could be viewed as a problem for a layer -of protocol above TCP which itself may have a checksuming scheme. - -This paper is the first step in design of a new checksum function -for TCP and some other Internet protocols. Several useful -properties of the current function are identified. If possible - - - - 1 - - - - - -Internet Experiment Note 45 5 June 1978 -TCP Checksum Function Design William W. Plummer - - -these should be retained in any new function. A number of -plausible checksum schemes are investigated. Of these only the -"product code" seems to be simple enough for consideration. - - -2. The Current TCP Checksum Function - -The current function is oriented towards sixteen-bit machines -such as the PDP-11 but can be computed easily on other machines -(e.g., PDP-10). A packet is thought of as a string of 16-bit -bytes and the checksum function is the one's complement sum (add -with end-around carry) of those bytes. It is the one's -complement of this sum which is stored in the checksum field of -the TCP header. Before computing the checksum value, the sender -places a zero in the checksum field of the packet. If the -checksum value computed by a receiver of the packet is zero, the -packet is assumed to be valid. This is a consequence of the -"negative" number in the checksum field exactly cancelling the -contribution of the rest of the packet. - -Ignoring the difficulty of actually evaluating the checksum -function for a given packet, the way of using the checksum -described above is quite simple, but it assumes some properties -of the checksum operator (one's complement addition, "+" in what -follows): - - - (P1) + is commutative. Thus, the order in which - the 16-bit bytes are "added" together is - unimportant. - - (P2) + has at least one identity element (The - current function has two: +0 and -0). This - allows the sender to compute the checksum - function by placing a zero in the packet checksum - field before computing the value. - - (P3) + has an inverse. Thus, the receiver may - evaluate the checksum function and expect a zero. - - (P4) + is associative, allowing the checksum field - to be anywhere in the packet and the 16-bit bytes - to be scanned sequentially. - -Mathematically, these properties of the binary operation "+" over -the set of 16-bit numbers forms an Abelian group [5]. Of course, -there are many Abelian groups but not all would be satisfactory -for use as checksum operators. (Another operator readily - - - - 2 - - - - - -Internet Experiment Note 45 5 June 1978 -TCP Checksum Function Design William W. Plummer - - -available in the PDP-11 instruction set that has all of these -properties is exclusive-OR, but XOR is unsatisfactory for other -reasons.) - -Albeit imprecise, another property which must be preserved in any -future checksum scheme is: - - (P5) + is fast to compute on a variety of machines - with limited storage requirements. - -The current function is quite good in this respect. On the -PDP-11 the inner loop looks like: - - LOOP: ADD (R1)+,R0 ; Add the next 16-bit byte - ADC R0 ; Make carry be end-around - SOB R2,LOOP ; Loop over entire packet. - - ( 4 memory cycles per 16-bit byte ) - - -On the PDP-10 properties P1-4 are exploited further and two -16-bit bytes per loop are processed: - - - LOOP: ILDB THIS,PTR ; Get 2 16-bit bytes - ADD SUM,THIS ; Add into current sum - JUMPGE SUM,CHKSU2 ; Jump if fewer than 8 carries - LDB THIS,[POINT 20,SUM,19] ; Get left 16 and carries - ANDI SUM,177777 ; Save just low 16 here - ADD SUM,THIS ; Fold in carries - CHKSU2: SOJG COUNT,LOOP ; Loop over entire packet - - ( 3.1 memory cycles per 16-bit byte ) - -The "extra" instruction in the loops above are required to -convert the two's complement ADD instruction(s) into a one's -complement add by making the carries be end-around. One's -complement arithmetic is better than two's complement because it -is equally sensitive to errors in all bit positions. If two's -complement addition were used, an even number of 1's could be -dropped (or picked up) in the most significant bit channel -without affecting the value of the checksum. It is just this -property that makes some sort of addition preferable to a simple -exclusive-OR which is frequently used but permits an even number -of drops (pick ups) in any bit channel. RIM10B paper tape format -used on PDP-10s [10] uses two's complement add because space for -the loader program is extremely limited. - - - - - 3 - - - - - -Internet Experiment Note 45 5 June 1978 -TCP Checksum Function Design William W. Plummer - - -Another property of the current checksum scheme is: - - (P6) Adding the checksum to a packet does not change - the information bytes. Peterson [6] calls this a - "systematic" code. - - -This property allows intermediate computers such as gateway -machines to act on fields (i.e., the Internet Destination -Address) without having to first decode the packet. Cyclical -Redundancy Checks used for error correction are not systematic -either. However, most applications of CRCs tend to emphasize -error detection rather than correction and consequently can send -the message unchanged, with the CRC check bits being appended to -the end. The 24-bit CRC used by ARPANET IMPs and Very Distant -Host Interfaces [4] and the ANSI standards for 800 and 6250 bits -per inch magnetic tapes (described in [11]) use this mode. - -Note that the operation of higher level protocols are not (by -design) affected by anything that may be done by a gateway acting -on possibly invalid packets. It is permissible for gateways to -validate the checksum on incoming packets, but in general -gateways will not know how to do this if the checksum is a -protocol-specific feature. - -A final property of the current checksum scheme which is actually -a consequence of P1 and P4 is: - - (P7) The checksum may be incrementally modified. - -This property permits an intermediate gateway to add information -to a packet, for instance a timestamp, and "add" an appropriate -change to the checksum field of the packet. Note that the -checksum will still be end-to-end since it was not fully -recomputed. - - -3. Product Codes - -Certain "product codes" are potentially useful for checksuming -purposes. The following is a brief description of product codes -in the context of TCP. More general treatment can be found in -Avizienis [7] and probably other more recent works. - -The basic concept of this coding is that the message (packet) to -be sent is formed by transforming the original source message and -adding some "check" bits. By reading this and applying a -(possibly different) transformation, a receiver can reconstruct - - - - 4 - - - - - -Internet Experiment Note 45 5 June 1978 -TCP Checksum Function Design William W. Plummer - - -the original message and determine if it has been corrupted -during transmission. - - Mo Ms Mr - - ----- ----- ----- - | A | code | 7 | decode | A | - | B | ==> | 1 | ==> | B | - | C | | 4 | | C | - ----- |...| ----- - | 2 | check plus "valid" flag - ----- info - - Original Sent Reconstructed - - -With product codes the transformation is Ms = K * Mo . That is, -the message sent is simply the product of the original message -Mo and some well known constant K . To decode, the received -Ms is divided by K which will yield Mr as the quotient and -0 as the remainder if Mr is to be considered the same as Mo . - -The first problem is selecting a "good" value for K, the "check -factor". K must be relatively prime to the base chosen to -express the message. (Example: Binary messages with K -incorrectly chosen to be 8. This means that Ms looks exactly -like Mo except that three zeros have been appended. The only -way the message could look bad to a receiver dividing by 8 is if -the error occurred in one of those three bits.) - -For TCP the base R will be chosen to be 2**16. That is, every -16-bit byte (word on the PDP-11) will be considered as a digit of -a big number and that number is the message. Thus, - - Mo = SIGMA [ Bi * (R**i)] , Bi is i-th byte - i=0 to N - - Ms = K * Mo - - -Corrupting a single digit of Ms will yield Ms' = Ms +or- -C*(R**j) for some radix position j . The receiver will compute -Ms'/K = Mo +or- C(R**j)/K. Since R and K are relatively prime, -C*(R**j) cannot be any exact multiple of K. Therefore, the -division will result in a non-zero remainder which indicates that -Ms' is a corrupted version of Ms. As will be seen, a good -choice for K is (R**b - 1), for some b which is the "check -length" which controls the degree of detection to be had for - - - - 5 - - - - - -Internet Experiment Note 45 5 June 1978 -TCP Checksum Function Design William W. Plummer - - -burst errors which affect a string of digits (i.e., 16-bit bytes) -in the message. In fact b will be chosen to be 1, so K will -be 2**16 - 1 so that arithmetic operations will be simple. This -means that all bursts of 15 or fewer bits will be detected. -According to [7] this choice for b results in the following -expression for the fraction of undetected weight 2 errors: - - f = 16(k-1)/[32(16k-3) + (6/k)] where k is the message length. - -For large messages f approaches 3.125 per cent as k goes to -infinity. - -Multiple precision multiplication and division are normally quite -complex operations, especially on small machines which typically -lack even single precision multiply and divide operations. The -exception to this is exactly the case being dealt with here -- -the factor is 2**16 - 1 on machines with a word length of 16 -bits. The reason for this is due to the following identity: - - Q*(R**j) = Q, mod (R-1) 0 <= Q < R - -That is, any digit Q in the selected radix (0, 1, ... R-1) -multiplied by any power of the radix will have a remainder of Q -when divided by the radix minus 1. - -Example: In decimal R = 10. Pick Q = 6. - - 6 = 0 * 9 + 6 = 6, mod 9 - 60 = 6 * 9 + 6 = 6, mod 9 - 600 = 66 * 9 + 6 = 6, mod 9 etc. - - More to the point, - - rem(31415/9) = rem((30000+1000+400+10+5)/9) - = (3 mod 9) + (1 mod 9) + (4 mod 9) + (1 mod 9) + (5 mod 9) - = (3+1+4+1+5) mod 9 - = 14 mod 9 - = 5 - -So, the remainder of a number divided by the radix minus one can -be found by simply summing the digits of the number. Since the -radix in the TCP case has been chosen to be 2**16 and the check -factor is 2**16 - 1, a message can quickly be checked by summing -all of the 16-bit words (on a PDP-11), with carries being -end-around. If zero is the result, the message can be considered -valid. Thus, checking a product coded message is exactly the -same complexity as with the current TCP checksum! - - - - - 6 - - - - - -Internet Experiment Note 45 5 June 1978 -TCP Checksum Function Design William W. Plummer - - -In order to form Ms, the sender must multiply the multiple -precision "number" Mo by 2**16 - 1. Or, Ms = (2**16)Mo - Mo. -This is performed by shifting Mo one whole word's worth of -precision and subtracting Mo. Since carries must propagate -between digits, but it is only the current digit which is of -interest, one's complement arithmetic is used. - - (2**16)Mo = Mo0 + Mo1 + Mo2 + ... + MoX + 0 - - Mo = - ( Mo0 + Mo1 + ......... + MoX) - --------- ---------------------------------- - Ms = Ms0 + Ms1 + ... - MoX - -A loop which implements this function on a PDP-11 might look -like: - - LOOP: MOV -2(R2),R0 ; Next byte of (2**16)Mo - SBC R0 ; Propagate carries from last SUB - SUB (R2)+,R0 ; Subtract byte of Mo - MOV R0,(R3)+ ; Store in Ms - SOB R1,LOOP ; Loop over entire message - - ( 8 memory cycles per 16-bit byte) - -Note that the coding procedure is not done in-place since it is -not systematic. In general the original copy, Mo, will have to -be retained by the sender for retransmission purposes and -therefore must remain readable. Thus the MOV R0,(R3)+ is -required which accounts for 2 of the 8 memory cycles per loop. - -The coding procedure will add exactly one 16-bit word to the -message since Ms < (2**16)Mo . This additional 16 bits will be -at the tail of the message, but may be moved into the defined -location in the TCP header immediately before transmission. The -receiver will have to undo this to put Ms back into standard -format before decoding the message. - -The code in the receiver for fully decoding the message may be -inferred by observing that any word in Ms contains the -difference between two successive words of Mo minus the carries -from the previous word, and the low order word contains minus the -low word of Mo. So the low order (i.e., rightmost) word of Mr is -just the negative of the low order byte of Ms. The next word of -Mr is the next word of Ms plus the just computed word of Mr -plus the carry from that previous computation. - -A slight refinement of the procedure is required in order to -protect against an all-zero message passing to the destination. -This will appear to have a valid checksum because Ms'/K = 0/K - - - - 7 - - - - - -Internet Experiment Note 45 5 June 1978 -TCP Checksum Function Design William W. Plummer - - -= 0 with 0 remainder. The refinement is to make the coding be -Ms = K*Mo + C where C is some arbitrary, well-known constant. -Adding this constant requires a second pass over the message, but -this will typically be very short since it can stop as soon as -carries stop propagating. Chosing C = 1 is sufficient in most -cases. - -The product code checksum must be evaluated in terms of the -desired properties P1 - P7. It has been shown that a factor of -two more machine cycles are consumed in computing or verifying a -product code checksum (P5 satisfied?). - -Although the code is not systematic, the checksum can be verified -quickly without decoding the message. If the Internet -Destination Address is located at the least significant end of -the packet (where the product code computation begins) then it is -possible for a gateway to decode only enough of the message to -see this field without having to decode the entire message. -Thus, P6 is at least partially satisfied. The algebraic -properties P1 through P4 are not satisfied, but only a small -amount of computation is needed to account for this -- the -message needs to be reformatted as previously mentioned. - -P7 is satisfied since the product code checksum can be -incrementally updated to account for an added word, although the -procedure is somewhat involved. Imagine that the original -message has two halves, H1 and H2. Thus, Mo = H1*(R**j) + H2. -The timestamp word is to be inserted between these halves to form -a modified Mo' = H1*(R**(j+1)) + T*(R**j) + H2. Since K has -been chosen to be R-1, the transmitted message Ms' = Mo'(R-1). -Then, - - Ms' = Ms*R + T(R-1)(R**j) + P2((R-1)**2) - - = Ms*R + T*(R**(j+1)) + T*(R**j) + P2*(R**2) - 2*P2*R - P2 - -Recalling that R is 2**16, the word size on the PDP-11, -multiplying by R means copying down one word in memory. So, -the first term of Ms' is simply the unmodified message copied -down one word. The next term is the new data T added into the -Ms' being formed beginning at the (j+1)th word. The addition is -fairly easy here since after adding in T all that is left is -propagating the carry, and that can stop as soon as no carry is -produced. The other terms can be handle similarly. - - - - - - - - 8 - - - - - -Internet Experiment Note 45 5 June 1978 -TCP Checksum Function Design William W. Plummer - - - - -4. More Complicated Codes - -There exists a wealth of theory on error detecting and correcting -codes. Peterson [6] is an excellent reference. Most of these -"CRC" schemes are designed to be implemented using a shift -register with a feedback network composed of exclusive-ORs. -Simulating such a logic circuit with a program would be too slow -to be useful unless some programming trick is discovered. - -One such trick has been proposed by Kirstein [8]. Basically, a -few bits (four or eight) of the current shift register state are -combined with bits from the input stream (from Mo) and the result -is used as an index to a table which yields the new shift -register state and, if the code is not systematic, bits for the -output stream (Ms). A trial coding of an especially "good" CRC -function using four-bit bytes showed showed this technique to be -about four times as slow as the current checksum function. This -was true for both the PDP-10 and PDP-11 machines. Of the -desirable properties listed above, CRC schemes satisfy only P3 -(It has an inverse.), and P6 (It is systematic.). Placement of -the checksum field in the packet is critical and the CRC cannot -be incrementally modified. - - -Although the bulk of coding theory deals with binary codes, most -of the theory works if the alphabet contains q symbols, where -q is a power of a prime number. For instance q taken as 2**16 -should make a great deal of the theory useful on a word-by-word -basis. - - -5. Outboard Processing - -When a function such as computing an involved checksum requires -extensive processing, one solution is to put that processing into -an outboard processor. In this way "encode message" and "decode -message" become single instructions which do not tax the main -host processor. The Digital Equipment Corporation VAX/780 -computer is equipped with special hardware for generating and -checking CRCs [13]. In general this is not a very good solution -since such a processor must be constructed for every different -host machine which uses TCP messages. - -It is conceivable that the gateway functions for a large host may -be performed entirely in an "Internet Frontend Machine". This -machine would be responsible for forwarding packets received - - - - 9 - - - - - -Internet Experiment Note 45 5 June 1978 -TCP Checksum Function Design William W. Plummer - - -either from the network(s) or from the Internet protocol modules -in the connected host, and for reassembling Internet fragments -into segments and passing these to the host. Another capability -of this machine would be to check the checksum so that the -segments given to the host are known to be valid at the time they -leave the frontend. Since computer cycles are assumed to be both -inexpensive and available in the frontend, this seems reasonable. - -The problem with attempting to validate checksums in the frontend -is that it destroys the end-to-end character of the checksum. If -anything, this is the most powerful feature of the TCP checksum! -There is a way to make the host-to-frontend link be covered by -the end-to-end checksum. A separate, small protocol must be -developed to cover this link. After having validated an incoming -packet from the network, the frontend would pass it to the host -saying "here is an Internet segment for you. Call it #123". The -host would save this segment, and send a copy back to the -frontend saying, "Here is what you gave me as #123. Is it OK?". -The frontend would then do a word-by-word comparison with the -first transmission, and tell the host either "Here is #123 -again", or "You did indeed receive #123 properly. Release it to -the appropriate module for further processing." - -The headers on the messages crossing the host-frontend link would -most likely be covered by a fairly strong checksum so that -information like which function is being performed and the -message reference numbers are reliable. These headers would be -quite short, maybe only sixteen bits, so the checksum could be -quite strong. The bulk of the message would not be checksumed of -course. - -The reason this scheme reduces the computing burden on the host -is that all that is required in order to validate the message -using the end-to-end checksum is to send it back to the frontend -machine. In the case of the PDP-10, this requires only 0.5 -memory cycles per 16-bit byte of Internet message, and only a few -processor cycles to setup the required transfers. - - -6. Conclusions - -There is an ordering of checksum functions: first and simplest is -none at all which provides no error detection or correction. -Second, is sending a constant which is checked by the receiver. -This also is extremely weak. Third, the exclusive-OR of the data -may be sent. XOR takes the minimal amount of computer time to -generate and check, but is not a good checksum. A two's -complement sum of the data is somewhat better and takes no more - - - - 10 - - - - - -Internet Experiment Note 45 5 June 1978 -TCP Checksum Function Design William W. Plummer - - -computer time to compute. Fifth, is the one's complement sum -which is what is currently used by TCP. It is slightly more -expensive in terms of computer time. The next step is a product -code. The product code is strongly related to one's complement -sum, takes still more computer time to use, provides a bit more -protection against common hardware failures, but has some -objectionable properties. Next is a genuine CRC polynomial code, -used for checking purposes only. This is very expensive for a -program to implement. Finally, a full CRC error correcting and -detecting scheme may be used. - - -For TCP and Internet applications the product code scheme is -viable. It suffers mainly in that messages must be (at least -partially) decoded by intermediate gateways in order that they -can be forwarded. Should product codes not be chosen as an -improved checksum, some slight modification to the existing -scheme might be possible. For instance the "add and rotate" -function used for paper tape by the PDP-6/10 group at the -Artificial Intelligence Laboratory at M.I.T. Project MAC [12] -could be useful if it can be proved that it is better than the -current scheme and that it can be computed efficiently on a -variety of machines. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 11 - - - - - -Internet Experiment Note 45 5 June 1978 -TCP Checksum Function Design William W. Plummer - - -References - - -[1] Cerf, V.G. and Kahn, Robert E., "A Protocol for Packet - Network Communications," IEEE Transactions on Com- - munications, vol. COM-22, No. 5, May 1974. - -[2] Kahn, Robert E., "The Organization of Computer Resources - into a Packet Radio Network", IEEE Transactions on - Communications, vol. COM-25, no. 1, pp. 169-178, January 1977. - -[3] Jacobs, Irwin, et al., "CPODA - A Demand Assignment - Protocol for SatNet", Fifth Data Communications - Symposium, September 27-9, 1977, Snowbird, Utah - -[4] Bolt Beranek and Newman, Inc. "Specifications for the - Interconnection of a Host and an IMP", Report 1822, January - 1976 edition. - -[5] Dean, Richard A., "Elements of Abstract Algebra", - John Wyley and Sons, Inc., 1966 - -[6] Peterson, W. Wesley, "Error Correcting Codes", M.I.T. Press - Cambridge MA, 4th edition, 1968. - -[7] Avizienis, Algirdas, "A Study of the Effectiveness of - Fault-Detecting Codes for Binary Arithmetic", Jet - Propulsion Laboratory Technical Report No. 32-711, - September 1, 1965. - -[8] Kirstein, Peter, private communication - -[9] Cerf, V. G. and Postel, Jonathan B., "Specification - of Internetwork Transmission Control Program Version 3", - University of Southern California Information Sciences - Institute, January 1978. - -[10] Digital Equipment Corporation, "PDP-10 Reference Handbook", - 1970, pp. 114-5. - -[11] Swanson, Robert, "Understanding Cyclic Redundancy Codes", - Computer Design, November, 1975, pp. 93-99. - -[12] Clements, Robert C., private communication. - -[13] Conklin, Peter F., and Rodgers, David P., "Advanced Minicomputer - Designed by Team Evaluation of Hardware/Software Tradeoffs", - Computer Design, April 1978, pp. 136-7. - - - - 12 - - diff --git a/text/ien/ien46.txt b/text/ien/ien46.txt deleted file mode 100644 index 971c7262..00000000 --- a/text/ien/ien46.txt +++ /dev/null @@ -1,704 +0,0 @@ - -Internet Notebook Section 2.3.3.15 Clark, Cohen -IEN No. 46 June, 1978 - - - - - - - - -A PROPOSAL FOR ADDRESSING AND ROUTING IN THE INTERNET - -David D. Clark -Laboratory for Computer Science -Massachusetts Institute of Technology - -Danny Cohen -USC/Information Sciences Institute - - - - - -1. Introduction - - Within the internet, there is a need for both addressing and routing - -information as part of every packet. Using the distinction articulated by - -John Shoch (1), we take the address of a packet to be where the packet is - -destined, and the route, the specification of how the packet will get there. - -Currently, an internet header contains only an address, and the route is - -derived implicitly from that address. That addressing/routing strategy is - -quite suitable given the current internet topology, but two problems may arise - -as the internet continues to grow. First, unless the internet experiment is - -truncated artificially, it can be expected to continue, as has the ARPANET, - -for some period of time, in which case the number of networks involved may - -grow to exceed the size of the field allocated to number them. Second, as the - -topology grows more complex, it may not always be possible to deduce the - -desired or effective route from the address. This proposal attempts to - -address those two problems. - - -Internet Notebook Section 2.3.3.15 Clark, Cohen -IEN No. 46 June, 1978 - - -2. Addressing of Networks - - The current internet header has space to name 256 networks. The - -assumption, at least for the time being, is that any network entering the - -internet will be assigned one of these numbers. While it is not likely that a - -great number of large nets, such as the ARPANET, will join the internet, the - -trend toward local area networking suggests that a very large number of small - -networks can be expected in the internet in the not too distant future. We - -should thus begin to prepare for the day when there are more than 256 networks - -participating in the internet. - - To cope with this problem, we propose that the top level entity named in - -an internet address not be a single network, but, optionally, an aggregate of - -networks which we will refer to as a region. Thus, an address now begins with - -a region number, perhaps followed by a network number, in turn followed by - -network dependent fields. Large networks, such as the ARPANET, will - -presumably continue to be a region unto themselves. In fact, all of the - -currently existing networks in the internet can be viewed as regions, which - -means that no reimplementation is required if the concept of regions is - -accepted. However, in the future, as more and more nets enter the internet, - -we can, at our discression, lump various networks together into regions. Put - -another way, a network can only join the internet by first joining a region. - - In fact, the concept of a region was always available to the internet, - -although in an informal manner. The structure of a network address was - -unspecified except that it began with a fixed size field naming the network. - -It was always permissible to use the component of the internet address next - -after the network field to identify a subnet of the named network. Making - -more explicit this hierarchy of regions and networks is important because, as - - - 2 - -Internet Notebook Section 2.3.3.15 Clark, Cohen -IEN No. 46 June, 1978 - - -we discussed above, the address is used not only as an address but as a basis - -for deriving a default route. We must thus consider how, using the addressing - -structure of regions and nets within regions, the address can be used to - -generate an effective and unambiguous route. - - -3. Default Routing - - Currently, every gateway in the internet knows how to generate a route to - -every network. If the number of networks grows substantially above 100 or - -200, the gateways can no longer be expected to understand this much - -information. One of the major purposes of the region concept is to control - -the amount of information which every gateway must know. This scheme would - -imply that an arbitrary gateway now only need to know how to reach every - -region, but need not be concerned with routing to the individual network - -within a distant region. Only for gateways connected to or completely inside - -a particular region would be necessary to understand how to route packets to - -all of the networks within the region. - - Let us consider an example of how these regions might be used. There are - -already two local networks at M.I.T., with more on the way. These might quite - -properly be considered as one region. That would imply that a gateway located - -in England need not be concerned with the internal structure of the local - -networks at M.I.T. If M.I.T. were one region, such a gateway would merely - -need to know how to reach M.I.T. Only when the packet has reached a gateway - -connecting to one of the nets at M.I.T., would it be necessary to begin to - -worry about how to reach the correct local network. It is possible that - -deriving the route in this manner will not produce the optimum route; the - -packet may arrive at a gateway to M.I.T. which leads to the wrong local - - - - 3 - -Internet Notebook Section 2.3.3.15 Clark, Cohen -IEN No. 46 June, 1978 - - -network, but presumably this is an acceptable inefficiency. (We will return - -later to consider what might be done if it is not an acceptable inefficiency.) - -More generally, this example suggests that the success of deriving routes from - -addresses depends critically on the way networks are grouped together to form - -regions. A region containing two networks, one in California and the other in - -England, is not structured in such a way that effective routes can be derived - -from the network address alone. A naive gateway, routing its packet only to - -the region without regard to the particular network for which the packet is - -destined, may discover that the packet has been routed to the wrong side of - -the world. In fact, it is probable, in most cases, that regions should be - -connected. If not, it may be impossible to get a packet from one part of the - -region to the other, since the packet will have to leave the region in order - -to do so and may encounter a gateway which, not understanding anything about - -the network structure of the region, blindly sends the packet back to the part - -of the region from which it came. If, however, the appropriate gateways can - -be specially trained, there is nothing to prevent a disjoint region, and in - -particular circumstances it may be quite appropriate. - - -4. Source Routing - - In the previous section, it was shown that an internet address of the - -form could be used to derive a default route for a - -packet, much as a route is now derived by the gateways from the current - -internetwork address. Can we presume that this route will always be - -sufficient, even if it is not optimal? Unfortunately, in a few cases we - -cannot. First, it is easy to imagine circumstances in which the default route - -is hopelessly inefficient. A network may be connected by gateways to several - - - - 4 - -Internet Notebook Section 2.3.3.15 Clark, Cohen -IEN No. 46 June, 1978 - - -regions, even though for addressing purposes it is identified as belonging to - -one particular region. To send a packet to that region in order to reach the - -network may grossly lengthen the path of the packet. As we said before, this - -problem can be minimized by proper use of the region mechanism, but we cannot - -expect the region mechanism to be perfect. Second, it may be necessary to - -route a packet in such a way that it explicitly does not go through certain - -networks. For example, speech packets may be hopelessly delayed if they - -inadvertantly travel by a network involving a satellite. It may be necessary - -to ensure that speech packets travel by some network with lower bandwidth but - -better response characteristics. - - How can the internet come up with better routing information in those - -cases where it is required? In many cases, additional intelligence can be - -built into the gateways. What is required is that gateways not immediately - -adjacent to a region be prepared to understand the network field as well as - -the region field of packets destined to that region. This is analogous to - -something which happened in the telephone system, where a central office - -originating a phone call will usually examine only the area code in order to - -generate a route, but may, if it detects a particular area code, then further - -examine the destinations central office to discover if use of a particular - -optomized route is applicable. Building this additional routing knowledge - -into the gateways is very desirable in general, since it means that it will - -apply to all packets. However, we cannot expect all routing information to be - -embedded in the gateways. First, in order to solve the problem offered above - -of properly routing the speech packet, it would be necessary for the gateways - -to base their routing decisions on type of service information. This sounds - -like a rather complex decision for the gateways, especially since type of - - - 5 - -Internet Notebook Section 2.3.3.15 Clark, Cohen -IEN No. 46 June, 1978 - - -service is not well understood. Second, network topology will change with - -time, and it is not reasonable to expect that all gateways will be constantly - -updated. Thus, we can expect the situation where only the originator of the - -packet has sufficient information to specify the proper route. - - The solution which has been proposed in the past to cope with this is to - -replace the address in the packet whith a route, called a source route since - -it is provided by the source of the packet. The disadvantage of having a - -route in a packet instead of an address is that the concept of an address is - -very useful one. For example, for accounting purposes it may be necessary to - -note the source and destination of a packet as it passes through a transit - -net. Clearly, it is desirable that the source and destination be uniquely - -identified for this purpose, something not easily done if the source and - -destination are specified only by a route. Thus, we propose that the address - -continue to be the primary piece of information in the packet, but that it be - -possible to include, in addition, an optional source route. This new internet - -option field will, if present, be used by the gateways instead of the default - -route which would normally be derived from the address. - - We do not propose, in this report, a specific syntax for the option - -field. However, we make the following general observations. The source route - -should be structured in such a way that it need not contain more information - -than that required to augment the defficiencies in the default route. Thus, - -for example, it should be possible to source route a packet into a particular - -region, then specify that the default route should be used to get from there - -to some other region, and then specify additional explicit source information. - -In a later section we propose a particular semantics for source routes. - - - - - 6 - -Internet Notebook Section 2.3.3.15 Clark, Cohen -IEN No. 46 June, 1978 - - -5. Migration - - What is the relationship between the scheme proposed here and the current - -internet header with a fixed size address field? Happily, adoption of the - -addressing strategy involving regions together with the optional internet - -source route implies no immediate upheaval to packet formats or gateway code. - -Currently, every network is a region, and every gateway thus contains code for - -doing inter-region routing. Eventually, gateways will want to be modified as - -follows. When a region finally is defined which contains more than one - -network, then gateways inside that region will need to understand an - -additional component of the internet address. Presumably, since different - -regions may have a different number of networks, we can expect the size of the - -network field to differ between regions. Thus, unless gateway code is - -rewritten for different regions, it will be necessary to write code which can - -deal, eventually, with a variable size component of the address. The address - -itself, however, can reasonably be a fixed size, since it is merely an address - -and not a route. In fact, it seems that the field as specified for the - -current internet header is sufficient in size, although perhaps marginally so. - -Given that certain implementations of this header already exist, I would - -suggest that the correct field size in 3.1 be accepted unless strong - -complaints are heard from someone in the near future. - - The next step in adopting this scheme, after the gateways have learned - -that for certain regions they must also look at some additional address bits, - -is to arrange that gateways selectively use this additional information, even - -when it is for a region for which they are not immediately adjacent. This - -facility, discussed above, can be used to provide more efficient routing than - -the default which would otherwise result from simplistic use of the address - - - 7 - -Internet Notebook Section 2.3.3.15 Clark, Cohen -IEN No. 46 June, 1978 - - -information. The technical problem here is not implementation of additional - -gateway code for address manipulation, but rather the development of proper - -policies for dissemination of routing information so that the appropriate - -gateways are correctly informed of the routing decisions to make. - - The third and final step in adoption of this scheme is the implementation - -in the gateways and hosts of the new internet option which specifies explicit - -source routes. Presumably, the general mechanism for dealing with internet - -option fields will already exist, so this is not a major upheaval of the code - -which parses an internet header. The only issue related to parsing is that, - -as the packet flows from gateway to gateway the source route will need to be - -modified to indicate which portion has already been used. This can either be - -done by physically rewriting the route into the option field, or by providing - -a pointer into the field as part of the option. The pointer field has the - -advantage that it does not destroy the route, so that it can be used to - -backtrack to the source, which is an important feature. - - There are two reasons why it is desirable to be able to use a source route - -in reverse. First, the recipient of the packet may have no idea how to get - -back to the source. Second, and more relevant, if the route has been formed - -incorrectly, a gateway may receive a packet and have no idea how to forward - -it, because the next component of the route is nonsense. If that intermediate - -gateway cannot figure out how to get an error message back to the originating - -host, packets sent with malformed routes will appear to fall into black holes. - -It is very difficult to debug systems with black holes. Thus, reversability - -of routes is very important. - - The need for modification implies the option should not be checksummed as - -part of an end-to-end checksum. The packet will also contain an address which - - - 8 - -Internet Notebook Section 2.3.3.15 Clark, Cohen -IEN No. 46 June, 1978 - - -can be used by the eventual recipient to confirm that the packet is indeed - -destined for him. The address field can be checksummed, and under certain - -circumstances even encrypted. - - -6. Semantics of Source Routes - - We view the internet as being composed of three physical entities: - -networks, gateways, and hosts, and one logical entity, a region, which is an - -aggregate of networks. The default route algorithm examines the region and, - -optionally, the network within this region, and selects from a table the - -appropriate network and gateway on that network to which to send the packet. - -Thus, if the route followed by a packet were written out in advance, it would - -be an alternating concatination of network names and gateway names, finally - -terminating with a network name followed by a host name. For symmetry, one - -should also precede the source route with the name of the originating host, to - -allow the route to be used in reverse. Thus, an initial structure for - -internet source routes might look as follows: - - - H,N,G,N,G,N,G,N,...,G,N,H - - where H is a host identifier, - - N is a network identifier, - - G is a gateway identifier. - -Each gateway, on receiving this route, finds his position in the route using - -the pointer into the route, updates the pointer to indicate the next gateway - -which is to receive the packet, and then routes the packet through the - -specified network to the next gateway. - - The source route as shown above always specifies the complete route. For - -many cases this degree of specificity is not necessary. For example, once a - - - 9 - -Internet Notebook Section 2.3.3.15 Clark, Cohen -IEN No. 46 June, 1978 - - -packet has been routed part of its way, the default route may then be - -effective. This generalization means that instead of specifying the - -particular network which is used as we pass from one gateway to the next, a - -default route can be used between two particular points in the route. Thus, - -we propose a more general form of a source route, as follows: - - - :=... - - - The source route takes the packet from the source to a sequence of - -gateways to the destination. The progress from each of these specified points - -to the next is a step. - - - :=| - - := RNG - - - If we are concerned with the exact route between one gateway and the - -next, we specify the step in this form, naming the particular network that is - -to be used. A sequence of explicit route steps can thus connect two gateways - -not immediately adjacent. - - - :=G - - ,:= RN - - - If the particular route to the next specified point is not critical, then - -the default route step is used. The originating gateway will generate a route - -to the network addressed by . That net may be any distance away - -in the internet; intermediate gateways in this step will again generate the - -default route from until the specified gateway G is reached, - -which will end the step. is required so that the route can be - - - 10 - -Internet Notebook Section 2.3.3.15 Clark, Cohen -IEN No. 46 June, 1978 - - -used in reverse. It must specify the network address of the gateway, - -originating this step. - - - := RNH|RNRNH - - - The destination is in fact the final step and as such can be either - -explicit or default. Thus it has two forms, with the interpretation of the - -step with the equivalent form. - - Note that while the string representing the source route is generated as - -a sequence of "forward" steps, there is another grammar that generates the - -same strings as a sequence of "reverse" steps. Also, in the , the intervening network is identified using a full network address, - -including the region. In fact, any shorthand network identifier can be used, - -so long as it is unambiguously interpretable by the gateway at each end of the - -step. - - -7. Uniqueness of Names - - Hosts will often be attached to more than one network. Thus, hosts may - -have more than one internet address. As long as the only routing algorithm is - -default routes based on addresses, there will be a strong desire to use these - -additional names to generate better routes. While this is fine in the short - -run, functions such as accounting will be easier to implement if hosts have a - -single unique address. To this end, when the route option is implemented we - -expect that it will be appropriate to address a host in only one way, and - -specify a route additionally. - - - - - - - - 11 - -Internet Notebook Section 2.3.3.15 Clark, Cohen -IEN No. 46 June, 1978 - - -REFERENCES: - - - (1) Shoch, J.F., "A Note on Inter-Networking Naming, Addressing, and - Routing," Xerox Palo Alto Research Center, Palo Alto, California, - INTERNET Notebook, Note No. 19, Section 2.3.3.5, January 1978. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 12 - \ No newline at end of file diff --git a/text/ien/ien48.txt b/text/ien/ien48.txt deleted file mode 100644 index 4257a182..00000000 --- a/text/ien/ien48.txt +++ /dev/null @@ -1,600 +0,0 @@ - - -IEN 48 - - - - - - - - - - - THE CATENET MODEL FOR - INTERNETWORKING - - - - - - - Vint Cerf - DARPA/IPTO - - - - - - July 1978 - - - - The Catenet Model for Internetworking - -Introduction - -The term "catenet" was introduced by L. Pouzin in 1974 in his -early paper on packet network interconnection [1]. The U.S. -DARPA research project on this subject has adopted the term to -mean roughly "the collection of packet networks which are -connected together." This is, however, not a sufficiently -explicit definition to determine, for instance, whether a new -network is in conformance with the rules for network -interconnection which make the catenet function as confederation -of co-operating networks. This paper attempts to define the -objectives and limitations of the ARPA-internetworking project -and to make explicit the catenet model on which the -internetworking strategy is based. - -Objectives - -The basic objective of this project is to establish a model and a -set of rules which will allow data networks of widely varying -internal operation to be interconnected, permitting users to -access remote resources and to permit intercomputer communication -across the connected networks. - -One motivation for this objective is to permit the internal -technology of a data network to be optimized for local operation -but also permit these locally optimized nets to be readily -interconnected into an organized catenet. The term "local" is -used in a loose sense, here, since it means "peculiar to the -particular network" rather than "a network of limited geographic -extent." A satellite-based network such as the ARPA packet -satellite network therefore has "local" characteristics (e.g., -broadcast operation) even though it spans many thousands of -square miles geographically speaking. - -A second motivation is to allow new networking technology to be -introduced into the existing catenet while remaining functionally -compatible with existing systems. This allows for the phased -introduction of new and obsolescence of old networks without -requiring a global simultaneous change. - -Assumptions - -One of the first questions which must be settled in a project of -this sort is "what types of data networks should be included in -the catenet model?" The answer to this question is rooted in the -basic functionality of each candidate network. Each network is -assumed to support the attachment of a collection of programmable -computers. Our essential assumption is that any participating -data network can carry a datagram containing no less than 1000 - - - 1 - - - -bits of data not including a local network header containing -local control information. Furthermore, it is assumed that the -participating network allows switched access so that any source -computer can quickly enter datagrams for successive and different -destination computers with little or no delay (i.e., on the order -of tens of milliseconds or less switching time). - -Under these assumptions, we can readily include networks which -offer "datagram" interfaces to subscribing host computers. That -is, the switching is done by the network based on a destination -address contained in each datagram passing across the host to -network interface. - -The assumptions do not rule our virtual circuit interface -networks, nor do they rule out very fast digital circuit -switching networks. In these cases, the important functionality -is still that a datagram can be carried over a real or virtual -circuit from source to destination computer, and that the -switching delay is below a few tens of milliseconds. - -An important administrative assumption is that the format of an -internet datagram can be commonly agreed, along with a common -internet addressing plan. The basic assumption regarding -datagram transport within any particular network is that the -datagram will be carried, embedded in one or more packets, or -frames, across the network. If fragmentation and reassembly of -datagrams occurs within a network it is invisible for purposes of -the catenet model. Provision is also made in the datagram format -for the fragmentation of datagrams into smaller, but identically -structured datagrams which can be carried independently across -any particular network. No a priori position is taken regarding -the choice between internal (invisible) fragmentation and -reassembly or external (visible) fragmentation. This is left to -each network to decide. We will return to the topic of datagram -format and addressing later. - -It is very important to note that it is explicitly assumed that -datagrams are not necessarily kept in the same sequence on -exiting a network as when they entered. Furthermore, it is -assumed that datagrams may be lost or even duplicated within the -network. It is left up to higher level protocols in the catenet -model to recover from any problems these assumptions may -introduce. These assumptions do not rule out data networks which -happen to keep datagrams in sequence. - -It is also assumed that networks are interconnected to each other -by means of a logical "gateway." As the definition of the -gateway concept unfolds, we will see that certain types of -network interconnections are "invisible" with respect to the -catenet model. All gateways which are visible to the catenet -model have the characteristic that they can interpret the address - - - 2 - - - -fields of internet datagrams so as to route them to other -gateways or to destinations within the networks directly attached -to (or associated with) the gateway. To send a datagram to a -destination, a gateway may have to map an internet address into a -local network address and embed the datagram in one or more local -network packets before injecting it into the local network for -transport. - -The set of catenet gateways are assumed to exchange with each -other at least a certain minimum amount of information to enable -routing decisions to be made, to isolate failures and identify -errors, and to exercise internet flow and congestion control. -Furthermore, it is assumed that each catenet gateway can report a -certain minimum amount of status information to an internetwork -monitoring center for the purpose of identifying and isolating -catenet failures, collecting minimal performance statistics and -so on. - -A subset of catenet gateways may provide access control -enforcement services. It is assumed that a common access control -enforcement mechanism is present in any catenet gateway which -provides this service. This does not rule out local access -control imposed by a particular network. But to provide globally -consistent access control, commonality of mechanism is essential. - -Access control is defined, at the catenet gateway, to mean -"permitting traffic to enter or leave a particular network." The -criteria by which entrance and exit permission are decided are -the responsibility of network "access controllers" which -establish access control policy. it is assumed that catenet -gateways simply enforce the policy of the access controllers. - -The Catenet Model - -It is now possible to offer a basic catenet model of operation. -Figure 1 illustrates the main components of the model. Hosts are -computers which are attached to data networks. The host/network -interfaces are assumed to be unique to each network. Thus, no -assumptions about common network interfaces are made. A host may -be connected to more than one network and it may have more than -one connection to the same network, for reliability. - -Gateways are shown as if they were composed of two or more -"halves." Each half-gateway has two interfaces: - - 1. A interface to a local network. - - 2. An interface to another gateway-half. - - - - - - 3 - - - -One example is given of a gateway with three "halves" connecting -networks A, B, and C. For modelling purposes, it is appropriate -to treat this case as three pairs of gateway halves, each pair -bilaterally joining a pair of networks. - -The model does not rule out the implementation of monolithic -gateways joining two or more nets, but all gateway functions and -interactions are defined as if the gateways consisted of halves, -each of which is associated with a specific network. - -A very important aspect of this model is that no a priori -distinction is made between a host/network interface and a -gateway/network interface. Such distinctions are not ruled out, -but they are not relevant to the basic catenet model. - -As a consequence, the difference between a host which is -connected to two networks and a monolithic gateway between -networks is entirely a matter of whether table entries in other -gateways identify the host as a gateway, and whether the standard -gateway functionality exists in the host. If no other gateway or -host recognizes the dual net host as a gateway or if the host -cannot pass datagrams transparently from one net to the next, -then it is not considered a catenet gateway. - -The model does not rule out the possibility of implementing a -gateway-half entirely as part of a network switching node (e.g., -as software in an ARPANET IMP). The important aspect of -gateway-halves is the procedure and protocol by which the -half-gateways exchange datagrams and control information. - -The physical interface between directly connected gateway halves -is of no special importance. For monolithic gateways, it is -typically shared memory or an interprocess communication -mechanism of some kind; for distinct gateway halves, it might be -HDLC, VDH, any other line control procedure, or inter-computer -buss mechanism. - -Hidden Gateways - -No explicit network hierarchy is assumed in this model. Every -network is known to all catenet gateways and each catenet gateway -knows how to route internet datagrams so they will eventually -reach a gateway connected to the destination network. - - - - - - - - - - - 4 - - - -The absence of an explicit hierarchical structure means that some -network substructures may be hidden from the view of the catenet -gateways. If a network is composed of a hierarchy of internal -networks connected together with gateways, these "hidden -gateways" will not be visible to the catenet gateways unless the -internal networks are assigned global network addresses and their -interconnecting gateways co-operate in the global routing and -network flow control procedures. - -Figure 2 illustrates a simple network hierarchy. For purposes -of, identification, the three catenet gateways have been labelled -G(AX), G(BX) and G(CX) to indicate that these gateways join -networks A and X, B and X and C and X, respectively. Only G(AX), -G(BX) , and G(CX) are considered catenet gateways. Thus they -each are aware of networks A, B, C and X and they each exchange -routing and flow-control information in a uniform way between -directly connected halves. - -Network X is composed of three internal networks labelled u, v -and w. To distinguish them from the catenet gateways, the -"hidden gateways" of net X are labelled HG(nm) where "nm" -indicate which nets the hidden gateways join. For example, -HG(vw) joins nets v and w. The notation for HG is symmetric, -i.e., HG(vw)=HG(wv). - -Gateways G(AX), G(BX), G(CX) exchange connectivity and other flow -control information among themselves, via network X. To do this, -each gateway half must know an address, local to network X, which -will allow network X to route datagrams from G(AX) to G(BX), for -example. - -From the figure, it is plain that G(BX) is really a host on -network B and network v. But network v is not one of the -globally recognized networks. Furthermore, traffic from G(AX) to -G(BX) may travel from net u to net v or via nets u and w to net -v. To maintain the fiction of a uniform network X, the gateway -halves of G(AX), G(BX) and G(CX) attached to net X must be aware -of the appropriate address strings to use to cause traffic to be -routed to each catenet gateway on net X. In the next section, we -outline a basic internet addressing philosophy which permits such -configurations to work. - -Local Gateways - -Another element of the catenet model is a "local gateway" -associated with each host. The local gateway is capable of -reassembling fragmented internet datagrams, if necessary, and is -responsible for encapsulation of internet datagrams in local -network packets. The local gateway also selects internet -gateways through which to route internet traffic, and responds to - - - - 5 - - - -routing and flow control advice from the local network and -attached catenet gateways. - -For example, a local gateway might encapsulate and send an -internet datagram to a particular gateway on its way to a distant -network. The catenet gateway might forward the packet to another -gateway and send an advisory message to the local gateway -recommending a change in its catenet gateway routing table. -Local gateways do not participate in the general routing -algorithm executed among the catenet gateways. - -Internet Addressing - -The basic internet datagram format is shown in Figure 3. By -assumption, every network in the catenet which is recognized by -the catenet gateways has a unique network number. Every host in -each network is identified by a 24 bit address which is prefixed -by the network number. The same host may have several addresses -depending on how many nets it is connected to or how many network -access lines connect it to a particular network. - -For the present, it is assumed that internet addresses have the -form: Net.Host. "Net" is an 8 bit network number. "Host" is a -24 bit string identifying a host on the "Net," which can be -understood by catenet and possibly hidden gateways. - -The catenet gateways maintain tables which allow internet -addresses to be mapped into local net addresses. Local gateways -do likewise, at least to the extent of mapping an -"out-of-network" address into the local net address of a catenet -gateway. - -In general, catenet gateways maintain a table entry for each -"Net" which indicates to which gateway(s) datagrams destined for -that net should be sent. For each "Net" to which the gateway is -attached, the gateway maintains tables, if necessary, to permit -mapping from internet host addresses to local net host addresses. -The typical case is that a gateway half is connected to only one -network and therefore only needs to maintain local address -information for a single network. - -It is assumed that each network has its own locally specific -addressing conventions. To simplify the translation from -internet address to local address, it is advantageous, if -possible, to simply concatenate a network identifier with the -local "host" addresses to create an internet address. This -strategy makes it potentially trivial to translate from internet -to local net addresses. - - - - - - 6 - - - -More elaborate translations are possible. For example, in the -case of a network with a "hidden" infrastructure, the "host" -portion of the internet address could include additional -structure which is understood only by catenet or hidden gateways -attached to that net. - -In order to limit the overhead of address fields in the header, -it was decided to restrict the maximum length of the host portion -of the internet address to 24 bits. The possibility of true, -variable-length addressing was seriously considered. At one -point, it appeared that addresses might be as long as 120 bits -each for source and destination. The overhead in the higher -level protocols for maintaining tables capable of dealing with -the maximum possible address sizes was considered excessive. - -For all the networks presently expected to be a part of the -experiment, 24 bit host addresses are sufficient, even in cases -where a transformation other than the trivial concatenation of -local host address with network address is needed to form the 32 -bit internet host address. - -One of the major arguments in favor of variable length -"addressing" is to support what is called "source-routing." The -structure of the information in the "address" really identifies a -route (e.g., through a particular sequence of networks and -gateways). Such a capability could support ad hoc network -interconnections in which a host on two nets could serve as a -private gateway. Though it would not participate in catenet -routing or flow control procedures, any host which knows of this -private gateway could send "source-routed" internet datagrams to -that host. - -To support experiments with source routing, the internet datagram -includes a special option which allows a source to specify a -route. The option format is illustrated in Figure 4. The option -code identifies the option and the length determines its extent. -The pointer field indicates which intermediate destination -address should be reached next in the source-selected route. - -Source routing can be used to allow ad hoc network -interconnections to occur before a new net has been assigned a -global network identifier. - -In general, catenet gateways can only interpret internet -addresses of the form Net.Host. Private gateways could interpret -other, local addresses for desired destinations. If a source -knew the local addresses of each intermediate private gateway, it -could construct a source-route which is the concatenation of the -local addresses of each intermediate host. - - - - - 7 - - - -Local and internet addresses could be inter-mixed in a single -source route as long as catenet gateways only had to interpret -full internet addresses when the source-routed datagram appeared -for servicing. Private gateways could interpret local and -internet addresses, as desired. - -Since the source or destination of a source-routed datagram may -not have an internet address, it may be necessary to provide a -return route for replies. This might be done by modifying the -content of the original route to contain "back Pointer" to -intermediate destinations. Note that the local address of a -private gateway in one network is usually different from its -local address in the adjacent network. - -Typically, a source would create a route which contains first the -internet address of the host or gateway nearest to the desired -destination. The next address in the route would be the local -address of the destination. Figure 5 illustrates this notion. -Host A.a wants to communicate with host Z. But Z is not attached -to a formally recognized network. - -To achieve its goal, host A.a can emit source-routed packets with -the route: "B.y, Z." B.y identifies the host (private gateway) -between net B and the new network as the first intermediate stop. -The private gateway uses the "Z" information to deliver the -datagram to the destination. When the datagram arrives, its -route should contain "y,A.a" if the private gateway knows how to -interpret A.a or "y, W, A.a" if the private gateway only knows -about addresses local to network B. - -Other Issues - -The catenet model should provide for error messages originating -within a network to be carried usefully back to the source. A -global encoding of error messages or status messages is needed. - -It is assumed that the gateway halves of a given network have a -common status reporting, flow and congestion control mechanism. -However, the halves on different nets may operate differently. -There should be a defined interface between gateway halves which -permits internet flow, congestion and error control to be -exercised. - - - - - - - - - - - - 8 - - - -A gateway monitoring center [3] is postulated which can collect, -correlate and display current gateway status. Such a center -should not be required for the internet protocols to function, -but could be used to manage an internet environment. - -Accounting, accountability and access control procedures should -be defined for the global catenet. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 9 - - - -References - -1. Pouzin, L., "A Proposal for Interconnecting Packet Switching -Networks," Proceedings of EUROCOMP, Bronel University, May 1974, -pp. 1023-36. - -2. Postel, J. "Internetwork Datagram Protocol Specification," -Version 4, Internetwork Experiment Note No. 41, Section 2.3.2.1, -Internet Experiment Notebook, June 1978. - -3. Davidson, John, "CATENET MONITORING AND CONTROL: A model for -the Gateway Component," IEN #32, Section 2.3.3.12, Internet -Notebook, April 1978. - - - - - - -NOTE: The figures are not included in the online version. They -may be obtained from: - - Jon Postel - USC - Information Sciences Institute - Suite 1100 - 4676 Admiraly Way - Marina del Rey, California 90291 - - Phone: (213) 822-1511 - - ARPANET Mailbox: POSTEL@ISIF - - - - - - - - - - - - - - - - - - - - - - - 10 - diff --git a/text/ien/ien51.txt b/text/ien/ien51.txt deleted file mode 100644 index ae708411..00000000 --- a/text/ien/ien51.txt +++ /dev/null @@ -1,297 +0,0 @@ - - - - - -INDRA Note 680 -IEN 51 -21st July 1978 - - - - - - - - - - - Types of Service in the Catenet - - C. J. Bennett - - - - - - - - - - - ABSTRACT: The three main traffic types each require - different types of service support in the catenet. - The impact of offering support for particular - services on the catenet architecture is discussed. - The major problem identified is supporting bulk - transfer, due to the lack of gateway to gateway flow - control. - - - - - - - - - - - INDRA Research Group - Dept of Statistics and Computer Science - University College London - - 1 - - - -Introduction - - The last internet meeting raised the question of how the internet -datagram protocol can support various kinds of service. At that -meeting, the three standard traffic types were identified as defining -the types of service we wished to support by their characteristics. The -aim of this note is to identify in more detail services needed to -support these traffic types, and to point out the areas of the internet -and gateway protocols which will be affected by the need to support -them. - -Interactive Traffic. - - Interactive traffic is characterised by short packets sent at -irregular intervals, and requiring a response within a time determined -by a user's tolerance threshold - typically, a second or so. Hence the -prime constraint that must be satisfied for an interactive service is -simply that the packets be delivered with the minimum delay. - - The internet protocol as it currently stands does not guarantee -delivery (Postel78), and the proposed form of gateway congestion control -is simply gateway blocking (Cerf77). Hence, flow control is maintained -by the routing algorithm. Thus supporting a minimum delay requirement -means in operational terms that the traffic should be routed along -minimal delay paths. This can be done by requiring the gateways to use -minimum delay as the objective function of the routing algorithm. This -is in fact the basis of the dynamic routing scheme suggested in -(Strazisar78), and so support of low-delay traffic simply requires the -catenet to operate in its normal mode, once this dynamic routing is -installed. - - On the other hand, the catenet cannot offer classes of minimal -delay service on this basis. This needs minimisation of queueing delays -rather than tranmission delays, which makes its operation very similar -to priority classes. As we shall see in the next section, priority -classes also play an important role in supporting stream traffic. - -Stream Traffic - - The second traffic type requiring service support is stream -traffic. Typically, this will consist of a steady flow of data such as -voice or telemetry data. The data will usually contain a high degree of -redundancy, and so a degree of packet loss is tolerable. However, -significant congestion leading to the loss of a large contiguous section -of the data should be avoided. Often the traffic source will be of low -intelligence, so techniques for retaining end-to-end reliability may not -be possible in any case. Different applications of stream traffic will -have different requirements on the catenet. Traffic voice, for -instance, has a strong requirement for minimising end-to-end delay, -though the main requirement is that the inter-arrival time of the -packets should not exceed some value. Telemetry applications will -normally be adding data to a large data base for later offline - - 2 - - - -processing, in which case delay is not a significant factor, although in -some cases a fast response may be required. Processing efficiency will -be achieved, however, if the updating process can be scheduled regularly -with a high probability of there being data available to process; this -applies to both telemetry and voice data. - - Stream traffic, therefore, can best be serviced by ensuring that -the regularity of the data flow is maintained. The role of the catenet -is to avoid congestion in the gateways (and elsewhere in the catenet -where possible), by giving these stream packets priority in the gateway -queues. A consequence of this definition of stream traffic support is -that it becomes meaningful for the catenet to offer a number of distinct -priority classes, rather than simply flagging the packet as 'priority', -as priority becomes a defined function of the gateways. The gateways -may well attempt to support priority classes within a network in -addition. In this case, the map between the standard internet priority -classes and the local priority classes will be a matter for the -implementation of the gateway half for the local net. - - Priority is not, in itself, a guarantee that the packets will be -delivered with an acceptable degree of packet loss. The gateway -blocking techniques of (Cerf77) are not allied with any mechanisms for -signalling other gateways, and hence it is likely that packet loss will -occur in bursts. As I noted above, such bursts should be avoided; this -requires more sophisticated flow control procedures than are currently -used between the gateways. - -Bulk Transfer Traffic - - This traffic type is characterised by the movement of a continuous -stream of large packets, all of which must be delivered reliably from -end to end. One requirement of the catenet which has been proposed is -that this stream be delivered from end to end in the shortest possible -time (Cohen78). At first sight, this is the same requirement that -interactive traffic has. However, there are a number of critical -differences connected with the size of the transfer. Firstly, the delay -constraint is much less stringent than it is for interactive traffic; -the requirement is that the whole body of data be transferred in the -minimum time rather than that any portion of it be so transferred. -Moreover, in many circumstances the bulk transfer will be run as a batch -process, in which case there may be no delay constraint at all. The -potential volume of data involved also means that the capacities of the -channels available do become a significant limitation on the transfer -time, as they govern the point at which delays for individual packets -start to increase as traffic builds up. For this reason, a throughput -measure is a significant figure for bulk transfer traffic - it -represents the normal operating conditions of the network. - - Underlying both these comments is the fact that the service -requirement for bulk transfer traffic is not packet based - it refers to -the whole of the transfer. This is very different from the stream and -interactive cases, where one can define service support on a per-packet - - 3 - - - -basis. Depending on the particular application we may wish to select -priority and delay classes. However, the feature of the catenet that -uniquely affects bulk transfer is the capacity of the networks and -gateways. In a virtual circuit situation, this might lead us to set up -a circuit based on maximum capacity paths, but with dynamic routing in -the catenet, this is not possible. - - Within the current protocols, the best support we can give to aid -bulk transfers is to minimise packet overhead using the "Don't Fragment" -option. This has the disadvantage, however, that packets must either be -dropped, rerouted, or fragmented according to a private protocol if they -encounter a net whose packet size is too small (Shoch78). Since the -internet protocol makes no guarantee of reliability (Postel78), such -packets will most likely be dropped unless the routing algorithm is -modified to meet this restriction. That is, for packets with the "Don't -Fragment" bit set, the routing algorithm should only consider routes -contained entirely within the subset of nets within the catenet which -have packet sizes such that fragmentation is not necessary. This -clearly has a major effect on the routing algorithm, as it means that -the gateways have to keep track of all possible paths, as well as a -record of the maximum packet sizes. Moreover, for packets larger than -some critical size, there may never be a path in the catenet which is -capable of supporting the packets without fragmentation. In this case, -the maximum packet size supportable by the catenet on an unfragmented -basis is a parameter which must be known by the end processes. In the -worst case, in fact, this number may differ depending on the two -terminal networks involved. - - If the network dependency introduced by the "Don't Fragment" bit -ever does become a serious problem, it is most likely to be with bulk -traffic, as this service uses the largest possible packet sizes. It is -not a general solution to supporting efficient internet transmission. -In practise, however, the problem can be mitigated by making use of -private fragmentation/reassembly protocols at the right points, which -will have the effect of disguising the maximum packet sizes. Where the -limiting maximum packet size is governed by a long-haul backbone -network, such as the ARPANET, such a private protocol will be absolutely -necessary to permit a reasonable end-to-end service. - - An alternative is to formalise the existence of gateway-to-gateway -fragmentation and reassembly by allocating an option bit "Attempt -Reassembly" in the internet protocol, which will be an instruction to -gateways to attempt to reassemble the fragments of a packet into larger -units, where possible. This option implies that all fragments of a -packet must be sent to the same gateway on each internet hop. It also -requires that fragments must be stored in the gateway for a certain -period before being forwarded, if a gateway decides that reassembly may -be possible. Depending on the likely instability of a particular -internet route, the first requirement may or may not be a stringent one. -The second constraint is more serious in its implications. To be -operated effectively it requires that the gateways take steps to avoid -congestion and packet loss forcing end-to-end retransmissions, which - - 4 - - - -would defeat the purpose of minimising packet overheads. In short, it -is essential for an "Attempt Reassembly" strategy that there exists -effective gateway-to-gateway flow control. - - Neither option is entirely satisfactory as a way of supporting -efficient transfer in a catenet with the current procedures. The -question needs further study. - -Conclusions - - The three traffic types may be given service support in ways -particular to each type. This support may be summarised as follows: - - Interactive Traffic - Minimise delay - Stream Traffic - Minimise congestion - Bulk Traffic - Minimise packet overheads - -Each of these will directly affect a particular area of the catenet -structure, respectively: choice of object function for the routing -algorithm; packet queueing techniques inside the gateways; and the -fragmentation and reassembly of internet packets. The area in which -service support is most unclear is bulk traffic. Further study of the -tradeoffs between possible techniques is needed here. - - Ultimately, of course, types of service offered will be chosen by -the user both on the needs of his application and on his willingness to -pay the charges incurred. Because the services required are application -dependent, it is important that service types be offered explicitly as -minimising delay etc rather than tying them directly to a particular -traffic type. In this way the user will be able to choose the -combination that best suits his needs. While there is a simple way of -providing standard internet priority classes, it is not clear that this -can be done so easily with delay classes, while with efficiency it is -not clear that anything can be done in terms of grades of service - only -an all-or-nothing service has been discussed here. - - One point that emerges clearly is that support of internet services -depends heavily on the existence of gateway-to-gateway flow control, to -produce acceptable rates of packet loss for stream traffic and to permit -the tying up of gateway buffers for intermediate reassembly strategies. -The need for flow control and exchange of status information between -gateways was argued in (Bennett77). The high rates of packet loss in -both the gateways and the gateway/SIMP VDH links at high data rates in -the SATNET gateways (Treadwell78) is directly attributable to the -absence of gateway-to-gateway flow control. Such subnet effects can -only degrade internet performance still further. - - 5 - - - -References - - -Bennett77 - C. J. Bennett, A. J. Hinchley, S. W. Edge, "Issues in - the Interconnection of Datagram Networks" IEN 1 - -Cerf77 - V. G. Cerf, "Gateways and Network Interfaces" IEN 6 - -Cohen78 - D. Cohen, Private discussion - -Postel78 -J. Postel, "Internet Protocol Specification" IEN 41 - -Shoch78 - J. Shoch, "Inter-Network Fragmentation and the TCP" IEN 20 - -Strazisar78 - V. Strazisar, "Gateway Dynamic Routing" IEN 25 - -Treadwell78 - S. W. Treadwell, "SATNET Gateway Calibration - Measurements" PSPWN, number to be assigned - \ No newline at end of file diff --git a/text/ien/ien52.txt b/text/ien/ien52.txt deleted file mode 100644 index 708af42e..00000000 --- a/text/ien/ien52.txt +++ /dev/null @@ -1,236 +0,0 @@ - - -IEN 52 D. Cohen -Notebook Section 2.3.3.18 USC-ISI - 11 August 1978 - - - - Some Thoughts About the Multiplexing Issue in Networks - ------------------------------------------------------ - - - - -For several years we have enjoyed the beauty and the structure offered -by the modular approach to protocols. This approach leads to the -separation of communication layers (headers, etc) according to their -originating and receiving agencies (processes, protocols etc). - -It is very unfortunate that an undesired by-product of this approach is -the failure to merge communication units (messages) which have a great -deal of common communication attributes, even when they have some small -differences. - -A case in point is the inability to introduce multiplexing arbitrarily -into the protocol-tree stucture. - -It is intuitive that it is very desirable to be able to merge TELNET -messages between the same source/destination hosts pair, especially when -a small number of characters are communicated in each message. - -Similarly, NCP and TCP messages which are addressed to the same -destination host, could be merged even though they are between different -protocols. - -The same approach applies on ALL levels. - -It is important to be able to use this kind of multiplexing in order to -share (and therefore save) headers, or parts of headers, and in order to -save switching time. - -Consider a simple example, voice communication, using NVP through TCP -(just for the example), and internetting through the SATNet. The voice -data rate is R, and a message is sent every T time. - -The amount of voice data in each message is RxT, added to that is the -NVP header of length Lv, the TCP header of length Lt, the IN header of -length Li, and the HOST/SIMP header of length Ls. - -Hence, the communication efficiency is: - - R x T - eff = --------------------------- - R x T + Lv + Lt + Li + Ls - - - - -Cohen [Page 1] - - -IEN 52 11 August 1978 -Multiplexing - - - -Assume the following numbers: - - R = 2,400 bps - T = 200 milliseconds, for interactive communication - RxT = 480 bits, for a packet of voice data - Lv = 48 bits, including local-extension, time-stamp, parcels count - and silence indication. - Lt = 160 bits, including the PORT. - Li = 160 bits, (without the optional OPTIONS field) - Ls = 96 bits, according to PSPWN-100 - -For these numbers the efficiency is: - - 480 480 - eff = --------------------------- = ----- = 50.8% - 480 + 48 + 160 + 160 + 96 944 - -If N voice communications between different "extensions" in the same -hosts pair are multiplexed, then the efficiency (again, at the -interface, not in the communication media) is: - - R x T - eff = --------------------------------- - R x T + Lv + (Lt + Li + Ls) / N - -Which for N=2 is 65.2% and for N=3 is 72.0%. It is obvious that the -efficiency increases with N, and that in this case its limit is 90.9%. - -This is, obviously, the efficiency over the HOST/SIMP interface. The -more important is the efficiency over the communication media, which is -lower than that, due to the SIMP-to-SIMP communication overhead. - -Another, more familiar, example is sending a single character over the -ARPANET. In this case the payload is 8 bits, which are preceeded by 40 -bit NCP header and the 96 bit HOST/IMP header. This results in -eff=8/(8+40+96)=5.5% over the interface, and even lower over the 50kbps -lines. - -Just think what is the efficiency of sending a single character, or even -a few, over the SATNet... The numbers cannot be very encouraging... - -Next Subject: Multi-address ---------------------------- - -For certain applications there is a case for multi-address, namely, -asking the communication system to deliver the same message-body to -several addresses. Mailing-lists and conferences are just two examples. - - - - -Cohen [Page 2] - - -IEN 52 11 August 1978 -Multiplexing - - - -The multi-address issue is the dual of the multiplexing which was -discussed earlier. Multi-address is one message-body with several -message-headers, whereas the previous muliplexing is one message-header -with several message-bodies. - - Multi-address is: - - = + - - Multiplexing is: - - = + - -Let's be (sort of) formal -------------------------- - - (1) Protocol nesting is: - - ::= - ::= "type" "addr" - ::= "data" ! - - (2) Multiplexing is: - - ::= - ::= "type" "addr" - ::= "data" ! - ::= ! - - (3) Multi-addressing is: - - ::= - ::= "type" "addr" ! "addr" ::= "data" - - (4) Obviously the most general system is: - - ::= - ::= "type" "addr" ! "addr" ::= "data" ! - ::= ! - - Please consider (4) as a proposal. - - - - - - - - - - -Cohen [Page 3] - - -IEN 52 11 August 1978 -Multiplexing - - - -The point is twofold: - - (1) Save overhead to reduce the number of BITs. - - (2) Save overhead to reduce the number of PACKETs. - -3Mbit/sec at 500 bits/packet is 6,000 packets/sec. - -Today's gateways can handle 6 packets/sec, with the hope to double it by -next year..... The factor of 1,000 between these two numbers should -serve as a warning light. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Cohen [Page 4] \ No newline at end of file diff --git a/text/ien/ien61.txt b/text/ien/ien61.txt deleted file mode 100644 index 1d27ff5b..00000000 --- a/text/ien/ien61.txt +++ /dev/null @@ -1,457 +0,0 @@ - - - - -IEN 61 -Section 2.5.6.1 - - - Internet Name Server - - - - - - Jon Postel - - - - - - - - - - - - - - - - - - 27 October 1978 - - - - - - Information Sciences Institute - University of Southern California - 4676 Admiralty Way - Marina del Rey, California 90291 - - (213) 822-1511 - - - - - - - - - - - - - - - - - INTERNET NAME SERVER - -------------------- - -NAME SYNTAX - -It is strongly recommended that the use of host names in programs be -consistent for both input and output across all hosts. To promote such -consistency of the internet level, the following syntax is specified: - -The SYNTAX of names as presented to the user and as entered by the user -is: - - ! NET ! REST - - where: - - NET is a network name or number as defined in [1] - - and - - REST is a host name within that network expressed as a character - string or as a number. When a number is used, it is expressed in - decimals and is prefixed with a sharpsign (e.g., #1234). - - Note that this syntax has minimal impact on the allowable character - strings for host names within a network. The only restriction is that - a REST string cannot begin with an exclaimation point (!). - - The !NET! may be omitted when specifying a host in the local network. - That is "!" indicates the network portion of a name string. - -NAME SERVER - -To aid in the translation of names to internet addresses, several name -server processes will be provided. The name server process will accept -a name in the above form and will return a name, address pair. - -The name server processes will have well-known addresses; addresses that -are constant over long periods of time and published in documents such -as [1]. - -A request sent to a name server is sent as an internet datagram [2] with -the following content: - - +--------+--------+--------+--------+--------+--------+---\\---+ - ! ! ! ! - ! NAME ! LENGTH ! NAME STRING ! - ! ! ! ! - +--------+--------+--------+--------+--------+--------+---\\---+ - - - - - -Postel [page 1] - - - 27 Oct 78 -Internet Name Server IEN 61 - - - - where: - - NAME is a one octet code indicating that the following is a name, - - LENGTH is a one octet count of the number of octets in the name - string, and - - NAME STRING is an ASCII character string of the form ! NET ! REST. - -A reply to a successful translation is sent as an internet datagram with -the following content: - - +--------+--------+--------+--------+--------+--------+---\\---+ - ! ! ! ! - ! NAME ! LENGTH ! NAME STRING ! - ! ! ! ! - +--------+--------+--------+--------+--------+--------+---\\---+ - ! ! ! ! - ! ADDRESS! LENGTH ! INTERNET ADDRESS ! - ! ! ! ! - +--------+--------+--------+--------+--------+--------+ - - where: - - ADDRESS is a one octet code indicating that the following is an - internet address, - - LENGTH is a one octet count (=4) of the length of the internet - address, and - - INTERNET ADDRESS is the internet address. - -Actually a particular name might map to several internet addresses, in -this case the response would include a list of internet addresses. - - - - - - - - - - - - - - - -[page 2] Postel - - -27 Oct 78 -IEN 61 Internet Name Server - - - -When a name is not found, an error is reported via an internet datagram -as follows: - - +--------+--------+--------+--------+--------+--------+---\\---+ - ! ! ! ! - ! NAME ! LENGTH ! NAME STRING ! - ! ! ! ! - +--------+--------+--------+--------+--------+--------+---\\---+ - ! ! ! ERROR ! ! - ! ERROR ! LENGTH ! CODE ! ERROR STRING ! - ! ! ! ! ! - +--------+--------+--------+--------+--------+--------+---\\---+ - - where: - - ERROR CODE specifies the error. - - ERROR STRING explains the error. - -Error Codes - - The following error codes are defined: - - CODE MEANING - ---- ------- - 0 Undetermined or undefined error - 1 Name not found - 2 Improper name syntax - 3 Name not found, but the following similar names exist - - Note Error 3 is followed by a list of name strings. - -Communication with a Name Server Process - - Communication with a name server process is via internet datagrams. - Internet datagrams do not guarantee reliable communication. Thus, - some requests or replies may be lost. - - The name server process is a transaction oriented process; - furthermore, the nature of the transactions allows them to be - processed in any order and even to be duplicated. This allows the use - of a very simple communication protocol. - - If a request is made to the name server process and no response is - received within a reasonable time, then the requestor should make the - - - - -Postel [page 3] - - - 27 Oct 78 -Internet Name Server IEN 61 - - - - request again. This recovers from communication errors which cause - the loss of either the request or the reply. - - In order to use this simple strategy, care must be taken to allow - replies to be properly matched with requests. The name server process - does this by including in each reply a copy of the entire request. - - The internet datagram does not even guarantee the correctness of the - data. The name server protocol must provide measures to prevent - incorrect data from being used. For example, an interent address - field could be affected by transmission errors. - - For this reason, the name server protocol includes a checksum over the - information of the requests and replies. The checksum algorithm is - the same as is used in the internet protocol (which covers only the - internet header). - -Format - - The requests and replies to and from a name server process are encoded - as "items". An item consists of an item-code an item-length and the - item-data. - - Item := Item-Code Item-Length Item-Data - - +--------+--------+--------+--------+--------+--------+---\\---+ - ! ! ! ! - ! Item ! Item ! Item ! - ! Code ! Length ! Data ! - ! ! ! ! - +--------+--------+--------+--------+--------+--------+---\\---+ - - A request is typically one item, and a reply is typically two items. - In any case the items communicated at one time are grouped into a - "block". A block consists of an octet of zero, an octet identifying - this as an name server block, a two octet block length, a two octet - checksum field, and some items. - - Block := BHead Items - BHead := Zero NS-id Block-Length Checksum - Items := Item ! Items Item - - - - - - - - -[page 4] Postel - - -27 Oct 78 -IEN 61 Internet Name Server - - - - +--------+--------+-----------------+ - ! ! Name ! Block ! - ! Zero ! Server ! Length ! - +-----------------+--------+--------+ - ! Checksum !ItemCode!Item Len! - +--------+--------+--------+--------+ - ! ........... Item Data ........... ! - +--------+--------+--------+--------+ - ! ......... Item Data cont ........ ! - +--------+--------+--------+--------+ - ! Item Data cont. !ItemCode!Item Len! - +--------+--------+--------+--------+ - ! ........... Item Data ........... ! - +--------+--------+--------+--------+ - - This format is chosen to be compatible with the proposed multiplexing - format for internet protocol. Also the name server is one application - using raw internet datagrams as the transmission media, so the - internet header protocol field should carry the value indicating raw - datagram. An additional field is needed somewhere to multiplex the - various applications using raw datagrams. - -Item Code Value Assignments: - - NAME = 1 - - ADDRESS = 2 - - ERROR = 3 - -Example - - a typical request: - - +--------+--------+-----------------+ - ! ! NAME ! ! - ! 0 ! SERVER ! 14 ! - +-----------------+--------+--------+ - ! CHECKSUM ! 1 ! 10 ! - +--------+--------+--------+--------+ - ! ! ! A ! R ! P ! - +--------+--------+--------+--------+ - ! A ! ! ! I ! S ! - +--------+--------+--------+--------+ - ! I ! B ! - +--------+--------+ - - - -Postel [page 5] - - - 27 Oct 78 -Internet Name Server IEN 61 - - - - and the reply: - - +--------+--------+-----------------+ - ! ! NAME ! ! - ! 0 ! SERVER ! 20 ! - +-----------------+--------+--------+ - ! CHECKSUM ! 1 ! 10 ! - +--------+--------+--------+--------+ - ! ! ! A ! R ! P ! - +--------+--------+--------+--------+ - ! A ! ! ! I ! S ! - +--------+--------+--------+--------+ - ! I ! B ! 2 ! 4 ! - +--------+--------+--------+--------+ - ! 10 ! 3 ! 0 ! 52 ! - +--------+--------+--------+--------+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[page 6] Postel - - -27 Oct 78 -IEN 61 Internet Name Server - References - - - -References - -[1] J. Postel. "Assigned Numbers," RFC 750, NIC 45500, 26 September - 1978. - -[2] J. Postel. "Internetwork Protocol Specification -- Version 4," - IEN 54, USC-Information Sciences Institute, September 1978. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [page 7] diff --git a/text/ien/ien72.txt b/text/ien/ien72.txt deleted file mode 100644 index a7b9d982..00000000 --- a/text/ien/ien72.txt +++ /dev/null @@ -1,348 +0,0 @@ - -IEN-72 - - - - - - - - Multiplexing Protocol - - - - - - Jonathan B. Postel - - - - - - - - - - - - - - - - - 23 January 1979 - - - - - - Information Sciences Institute - University of Southern California - 4676 Admiralty Way - Marina del Rey, California 90291 - - (213) 822-1511 - - - - - - - - - - - - - - - - - - - - -IEN-72 J. Postel - ISI - 23 January 1979 - - - - Multiplexing Protocol - -Introduction - -This Multiplexing Protocol is defined to allow the combining of -transmission units of different higher level protocols in one -transmission unit of a lower level protocol in packet-switched computer -communication in the environment of an interconnected set of computer -networks. This protocol assumes that the Internet Protocol [1] is used -as the underlying protocol. - -Format - - - 0 15 16 31 - +--------+--------+----------------+ - ! ! ! ! - ! Zero !Protocol! Length ! - ! ! ! ! - +--------+--------+----------------+ - - Multiplexing Header Format - -Fields - -Zero is always zero. - -Protocol is the number of the following lower level protocol. - -Length is the length in octets of the following protocol block. - - - - - - - - - - - - - -Postel [page 1] - - - - 23 January 1979 -Multiplexing Protocol IEN-72 -Example - - - -Example - - - 0 15 16 31 - +--------+--------+--------+--------+ - ! Zero !Protocol! Length ! - +--------+--------+--------+--------+ - ! a transmission unit ! - ! of some protocol ! - +--------+--------+--------+--------+ - ! Zero !Protocol! Length ! - +--------+--------+--------+--------+ - ! a transmission unit ! - ! of some protocol ! - +--------+--------+--------+--------+ - ! Zero !Protocol! Length ! - +--------+--------+--------+--------+ - ! a transmission unit ! - ! of some protocol ! - +--------+--------+--------+--------+ - - Multiplexing Protocol Concept - - - - - - - - - - - - - - - - - - - - - - - - - - -[page 2] Postel - - - -23 January 1979 -IEN-72 Multiplexing Protocol - Example - - - - - 0 15 16 31 - +--------+--------+--------+--------+ - ! Zero !datagram! Length = 16 ! ----+ - +--------+--------+--------+--------+ ! - ! source socket ! dest. socket ! ! - +--------+--------+--------+--------+ ! - ! length = 8 ! checksum ! ! - +--------+--------+--------+--------+ ! - ! data ! ! - +--------+--------+--------+--------+ ! - ! data ! ! - +--------+--------+--------+--------+ <---+ - ! Zero ! TCP ! Length = 28 ! ----+ - +--------+--------+--------+--------+ ! - ! source port ! destination port! ! - +--------+--------+--------+--------+ ! - ! sequence number ! ! - +--------+--------+--------+--------+ ! - ! acknowledgment number ! ! - +--------+--------+--------+--------+ ! - !offset control! window ! ! - +--------+--------+--------+--------+ ! - ! checksum ! urgent pointer ! ! - +--------+--------+--------+--------+ ! - ! data ! ! - +--------+--------+--------+--------+ ! - ! data ! ! - +--------+--------+--------+--------+ <---+ - ! Zero !datagram! Length = 12 ! ----+ - +--------+--------+--------+--------+ ! - ! source socket ! dest. socket ! ! - +--------+--------+--------+--------+ ! - ! length = 4 ! checksum ! ! - +--------+--------+--------+--------+ ! - ! data ! ! - +--------+--------+--------+--------+ <---+ - - Multiplexing Protocol Example - -Protocol Application - -The major use of this protocol is to allow several transmission units -from differing (or the same) higher level protocols to be combined into -one transmission unit of a lower level protocol. - - - -Postel [page 3] - - - - 23 January 1979 -Multiplexing Protocol IEN-72 -Protocol Number - - - -Protocol Number - -This is protocol 18 (22 octal) when used in the Internet Protocol. -Other protocol numbers are listed in [2]. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[page 4] Postel - - - -23 January 1979 -IEN-72 Multiplexing Protocol - References - - - -References - -[1] Postel, J., "Internetwork Protocol Specification -- Version 4," - IEN-54, USC-Information Sciences Institute, September 1978. - -[2] Postel, J., "Assigned Numbers," USC-Information Sciences - Institute, RFC-750, NIC-45500, September 1978. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [page 5] - - diff --git a/text/ien/ien74.txt b/text/ien/ien74.txt deleted file mode 100644 index 1785d72f..00000000 --- a/text/ien/ien74.txt +++ /dev/null @@ -1,439 +0,0 @@ - -IEN-74 - - - - - - - - - - - Sequence Number Arithmetic - - - - William W. Plummer - - - Bolt Beranek and Newman, Inc. - 50 Moulton Street - Cambridge MA 02138 - - - 21 September 1978 - - - - -Internet Experiment Note 74 21 September 1978 -Sequence Number Arithmetic William W. Plummer - - -1. Introduction - -TCP deals with 32-bit numbers for sequencing and acknowledging data. A -basic concept is that of a "window", a range of sequence numbers which -begins at a "left" pointer and ends at a "right" pointer. Because a window -may contain sequence number zero, deciding whether a given number is within -a window is somewhat complicated. This paper describes some techniques for -dealing with sequence numbers as they apply to TCP. - - -2. Representation - -The space of 2**32 sequence numbers will be shown as a (rough) circle: - - - 0 - | 2**32 - 1 - ..... - . . - Increasing | . . - Numbers | . . - V . . - . . - ..... - -Segments of sequence numbers will be shown as: - - ........************.........> - Increasing numbers - - ^ ^ - | | - Left Right - -Note that Left is the the first number within the segment. Right is not -included. That is, the segment is semi-open. If Left = Right, the segment -is considered to have zero length, not 2**32. - - - -3. The CheckWindow Function - - -Because the sequence number space is actually a ring and arithmetic is done -modulo 2**32, there is no concept of one sequence number being greater (or -less) than another. The fundamental function for comparing sequence -numbers is CheckWindow(Left, Sequence, Right). This function returns true -if Sequence is contained in the semi-open segment between Left and Right. - - - - 1 - - - - - -Internet Experiment Note 74 21 September 1978 -Sequence Number Arithmetic William W. Plummer - - -For machines with word sizes greater than 32-bits or using unsigned -arithmetic on 32-bit machines, the definition of CheckWindow is: - - CheckWindow(L, S, R) := (L le R) => - L le S and S lt R , - not ( R le S and S lt L) - -The second branch of the conditional is expressed in a way that it is the -complement of the first branch when L and R are interchanged. Advantage -is taken of this symmetry in the PDP-10 code which implements CheckWindow. -Otherwise the second branch may be expressed as (R gt S) or (S ge L). - -The first branch of the conditional is explained by the following diagram: - - 0 - | 2**32 - 1 - | - |oooo - xxx o - x | o - x ..... o - x . . o - x . . o - x . . o <--- Right - Left --> o x * * x o - o x * * x o - o x ***** x o - o x x o - o xxxxxxx o - o o - oooooooooo - - Key: ...... Basic sequence space - - ****** Segment between Left and Right - - xxxxxx Sequence space where Sequence lt Right - - oooooo Sequence space where Sequence ge Left - - - - - - - - - - - - - 2 - - - - - -Internet Experiment Note 74 21 September 1978 -Sequence Number Arithmetic William W. Plummer - - -The second branch of the conditional is the case where the segment crosses -zero: - 0 - | 2**32 - 1 - | - |oooo - xxxx o - x | o - x ***** o - x * * o - x * * o - x * * o - Right --> . * o <-- Left - . . - ..... - - - Key: ..... Sequence space - - ***** Segment between Left and Right - - ooooo Sequence numbers ge Left - - xxxxx Sequence numbers lt Right - - -A useful identity is: CheckWindow(L, S, R) = not CheckWindow(R, S, L). -This says that either S is in the segment between L and R or it is -not. - - - - -4. OverLap(L1, R1, L2, R2) - -OverLap(L1, R1, L2, R2) is a predicate which tells if the two segments L1 -to R1 and L2 to R2 have at least one point in common. If an overlap -exists, then one segment must have its Left end within the other: - - OverLap(L1, R1, L2, R2) := - - CheckWindow(L1, L2, R1) or CheckWindow(L2, L1, R2) - -Either L2 is within segment one or it is not. So either CheckWindow(L1, -L2, R1) or not CheckWindow(L2, L1, R2) is true. In the first case there -is an overlap even if it is just at the point L2. The second term can be -rewritten: - - - - - 3 - - - - - -Internet Experiment Note 74 21 September 1978 -Sequence Number Arithmetic William W. Plummer - - - not CheckWindow(L2, L1, R2) = CheckWindow(R2, L1, L2). - -Since L2 is outside segment one, it is the position of R2 which determines -whether an overlap exists. R2 can be either between L2 and L1 or it can -be between L1 and L2. Thus, there are two subcases: either -CheckWindow(L2, R2, L1) or CheckWindow(L1, R2, L2) must be true. In the -first case there is no overlap and segment one does not contain R2. If -the first case is not true then the second case must be since it is the -complement of the first with the first and third arguments switched. - - - -5. Include(L1, R1, L2, R2) - - -Include is true if segment one includes all of segment two. This is true -only if the complement of segment one does not contain any of segment two. - - Include(L1, R1, L2, R2) := not Overlap(R1, L1, L2, R2) - - = CheckWindow(L1, L2, R1) and CheckWindow(R2, R1, L2) - -The expansion states that L2 must lie in segment one and that the -complement of segment two must contain the right end of segment one. - - - -6. Uses Within a TCP - -The functions CheckWindow, Overlap, and Include have many uses within the -TCP. A few of these are described below. Some definitions are needed. A -TCB contains a Send.Left cell, a Send.Window, and Send.Sequence having to -do with packet generation. Send.Right does not exist explicitly but may be -computed by adding Send.Left and Send.Window (mod 2**32). - -The receive side of a connection has the cells Recv.Left and Recv.Window . -Again, Recv.Right may be easily computed. - -Each packet has its sequence number Pkt.Seq and an acknowledgement number -Pkt.AckSeq. The number called Pkt.End may be computed by counting one for -each control bit and data byte in the packet and adding this to Pkt.Seq mod -2**32. Note that Pkt.End is actually the sequence number following the -packet. Currently only SYN and FIN occupy sequence space and these occur -only at the start and end of a connection; otherwise, all sequence space is -occupied by data only. - - - - - - - 4 - - - - - -Internet Experiment Note 74 21 September 1978 -Sequence Number Arithmetic William W. Plummer - - -These variables define several segments. The send window between Send.Left -and Send.Right, the receive window between Recv.Left and Recv.Right, and -the packet segment between Pkt.Seq and Pkt.End. All of these segments are -semi-open and are suitable for manipulation by the previously described -functions such as CheckWindow. - -The Retransmitter uses OverLap(Send.Left, Send.Right, Pkt.Seq, Pkt.End) to -tell if a packet has anything transmittable in it. Note that Send.Right -may lie within the segment between Send.Left and Send.Seq. This indicates -that the window shrank due to Send.Right having moved "backwards". In this -case data between Send.Right and Send.Seq is (temporarily) not -retransmittable. - -The InputProcessor makes heavy use of all of the functions. The basic -acceptance test for packets arriving on an ESTABLISHED connection is -OverLap(Recv.Left, Recv.Right, Pkt.Seq, Pkt.End). If this is not true, the -packet is assumed to be either from the future or a duplicate from the -past. - -Processing the Acknowledgement field of a packet involves a scan of the -retransmission queue to see which packets may be deleted. For each packet -on the queue CheckWindow(Send.Left, Pkt.End-1, Acknowledgement) is true if -the packet has been acknowledged. Pkt.End-1 is the sequence number of the -last byte in the packet. Note that any packet on the retransmission queue -must occupy at least one sequence number and therefore no special case -checks must be made worry about Pkt.End-1 being less than Pkt.Seq . - -TCP11 sends each newly typed character in a separate packet. -Retransmissions carry all unacknowledged data. TCP for the PDP-10/20 tries -to minimize internal storage requirements by saving a retransmitted packet -and releasing the storage for the original transmissions. Given a incoming -packet InPkt, the following test is performed against each packet queued -for action by the buffer reassembler: Include(InPkt.Seq, InPkt.End, -QdPkt.Seq, QdPkt.End) means that the incoming packet contains at least as -much as the already queued packet and that the latter may be released. - - - - - - - - - - - - - - - - - 5 - - - - - -Internet Experiment Note 74 21 September 1978 -Sequence Number Arithmetic William W. Plummer - - -7. Sample Code - -The following routines have been excerpted from the hand coded TCP for -TENEX and TOPS20. They have been included here to provide an indication of -complexity. Note that the PDP-10 has a 36-bit word size and thus 32-bit -numbers are always positive. Operations such as CAM which are signed -compares on 36-bit quantites are unsigned operations on 32-bit numbers as -required. - - -; CheckWindow(Left, Sequence, Right) - -; Test "Sequence" to see if it is between "Left" (inclusive) and "Right" -; (not incl.). Sequence numbers are modulo MAXSEQ and are always -; positive when represented in a 36-bit word. - -;T1/ Left -;T2/ Sequence -;T3/ Right -; -; CALL CHKWND -;Ret+1: always. T1 non-zero if Sequence is in the window - -CHKWND::TEMP ; Give names to T1, T2, T3, T4 - MOVEM T1,LEFT ; Make T1 available for value - SETO VAL, ; Init value to TRUE - CAMG LEFT,RIGHT ; Crosses 0? - TDZA VAL,VAL ; No. Set VAL to FALSE. - EXCH LEFT,RIGHT ; Yes. Reverse Left and Right. - CAMGE SEQ,RIGHT - CAMGE SEQ,LEFT - CAIA - SETCA VAL, ; Complement VAL. - RESTORE - RET - -By way of comparison, the BCPL expression for this compiles into -approximately 40 instructions on the PDP-10. This expression is: - - let CheckWindow(L, S, R) := (L le R) => (L le S < R), (R le S < L) - - - - - - - - - - - - 6 - - - - - -Internet Experiment Note 74 21 September 1978 -Sequence Number Arithmetic William W. Plummer - - -; Test to see if two sequence number segments have one or more common -; points. The two segments are semi-open on the right, similar -; to CHKWND. - -;T1/ Left1 -;T2/ Right1 -;T3/ Left2 -;T4/ Right2 -; -; CALL OVRLAP -;Ret+1 always, T1 non-zero if overlap exists - -OVRLAP::LOCAL ; Define some local ACs. - MOVEM T1,LEFT1 - DMOVEM T3,LEFT2 ; T3,T4 to LEFT2,RIGHT2 - EXCH T2,T3 - CALL CHKWND - JUMPN T1,OVRLAX - MOVE T1,LEFT2 - MOVE T2,LEFT1 - MOVE T3,RIGHT2 - CALL CHKWND -OVRLAX: RESTORE - RET - - - - - - - - - - - - - - - - - - - - - - - - - - - - 7 - - diff --git a/text/ien/ien82.txt b/text/ien/ien82.txt deleted file mode 100644 index 38878459..00000000 --- a/text/ien/ien82.txt +++ /dev/null @@ -1,255 +0,0 @@ - - - - M.I.T. Lab. for Computer Science Network Implementation Note No. 5 - - February 15, 1979 -IEN-82 - - - - LCS Net Address Format - - Noel Chiappa - David Clark - David Reed - - - - - - - - This note defines the current format of addresses in the LCS - Local Net and their translation into LCS hardware headers as well - as InterNet addresses and CHAOS Net addresses. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - _________________________________________________________________ - This note is an informal working paper of the M.I.T. Laboratory - for Computer Science. It should not be reproduced without the - author's permission, and it should not be cited in other - publications. - February 15, 1979 - - - This note defines the current format of addresses in the LCS - Local Net and their translation into LCSNet hardware headers as - well as CHAOS addresses and InterNet addresses. Address and - protocol numbers specific to the LCSNet are also temporaily - defined in this note. - - - Note that the proposal stated in this is not final, but is - motivated by other considerations. The LNI as currently designed - contains sophisticated name matching facilities of unknown worth. - It is not yet clear whether this hardware is useful or not, but - we felt that we should at least explore the possibilities, and - have thus designed the protocol to take maximum advantage of the - hardware's features. Depending on the results of our preliminary - work with the name matching hardware, we may or may not keep< it - in future versions of the LNI. - - - The basic hardware format of a LCS-LN packet is as follows: - - - DPNM 31 0 - |________________________________| - - DPN 31 0 - |________________________________| - - OPN 31 0 - |________________________________| - - LEN 15 0 - |________________| - - DATA 8n-1 0 - |________________| - - - - (Unless others stated, all bit numbers are in decimal and - all others are in octal.) - - - The DPNM, DPN, OPN and LEN fields are all defined by the - hardware. The DATA field contains LEN bytes of data. The DPNM - (Destination Process Name Mask) together with the DPN - (Destination Process Name) specify the destination address, and - the OPN (Originating Process Name) is the sender's address. This - field is actually unused by the hardware, but is reserved for - future use. The workings of the DPNM and DPN are as follows: in - every LNI there is an array of sofware loadable names (the Name - Table, NT), each with a DPNM and a DPN. The name matching - algorithm is a follows: for each bit in the name, if the two bits - in the DPN's are equivalent or if either DPNM bit is on, then - February 15, 1979 - - - that bit matched. If all the bits matched, then the name matched. - - - The basic format of the headers (imposed by the sotware) is - as follows: - - - DPNM 31 Type 23 0 - |________|________________________| - - DPN 31 Rsd 23 0 - |________|________________________| - - OPN 31 Reserved 0 - |________________________________| - - LEN 15 0 - |________________| - - DATA 8n-1 0 - |________________| - - - "Rsd" stands for "Reserved" and "Type" is the Local Type. As a - general rule the value of 0 for any field is reserved for fixing - catastrophes not yet visible to the eye. The following - conventions are to be used in assigning type numbers: types 1 - through 077 have a common address format, specified below, types - 100 through 277 are reserved, and types 301 through 377 are - available for (experimental) protocols which may use the next 24 - bits of address as they see fit. - - - The intention of the above is that bridges be able to easily - recognize, via the top bit(s) whether or not the address field - fits a common format. Clearly there are enormous advantages, in - the building of bridges and other areas, where it is desirable to - have a common address format, but it is obviously also desirable - not to hamstring the development of other very different - protocols (such as a distributed process system or a distributed - file system) which would fit poorly into the classical addressing - system. - - - For types that use the common address format, the address - format is: - - - 00 Type SNet Rsd Host - 31 29 23 15 7 0 - |__|______|________|________|________| - February 15, 1979 - - - The field marked "Rsd" is reserved for future use. It is intended - that it be used for address expansion should it become necessary, - but it may be used for whatever appears appropiate, such as a - "Flag" field. - - - SubNet numbers and Host Numbers (per SubNet) are currently - being assigned in common with the AI Lab's CHAOS Net in an - attempt to maintain an MIT wide addressing unity. The main - repository for these numbers is in the online file - AI:SYSENG;HOSTS > on MIT-AI. numbers specific to our net are: - - - Number SubNet - - 0 Reserved - 1-7 Unassigned - 10 LCS LN - 11-377 Unassigned - - Subnet 10 - Number Host - - 0 Reserved - 1 - 7 Unassigned - 10 CSR 11/40 - 11 DSSR 11/70 - 12 - 17 Unassigned - 20 VAX - 21 - 377 Unassigned - - - It is not intended that this note be the official source for host - and subnet numbers; rather, there will be an online database - which at the moment is the specified ITS file. - - - The assigned protocol types are: - - - Type Use - - 0 Reserved - 1 InterNet Datagram (Internal) - 2 CHAOS Packet - 3-77 Unassigned - 100-277 Reserved - 300 Reserved - 301 InterNet Datagram (Outbound) - 302-377 Unassigned - February 15, 1979 - - - In all cases the specified header is followed immediately by - a packet of the specified type as defined in the appropriate - reference. [1,2] At the moment, the format of outbound InterNet - packets is as follows: - - - 11 000 Rsd Ext Net - 31 29 23 7 0 - |__|______|________________|________| - - - where "Ext Net" is the major net number of the destination. In - internal InterNet packets, the mapping from InterNet Headers to - MIT addresses is simple; the 24 bits of "Address" after "Net - Number" in the InterNet header have the same format as the - adddress of a common address format packet, and are copied - directly into the header. In the future, some attempt may be made - to support variable address format addresses on inbound packets. - February 15, 1979 - - - References - - - [1] Postel, Jonathan B., "InterNetwork Protocol Specification, - Version IV," Information Sciences Institute, University of - Southern California, IEN 54, September 1978. - - [2] Greenblatt, Richard G., and Moon, David, "CHAOS Protocol - Specification," Artificial Intelligence Laboratory, M.I.T., 1978. -  diff --git a/text/ien/ien83.txt b/text/ien/ien83.txt deleted file mode 100644 index aab876a4..00000000 --- a/text/ien/ien83.txt +++ /dev/null @@ -1,11 +0,0 @@ - This note is not available on line, please request copies from the - author. - - IEN 83 - - Title: Addressing through Port Expanders - - Author: Peter Kirstein and Chris Bennett - - Mailbox: Kirstein@ISIA - diff --git a/text/ien/ien85.txt b/text/ien/ien85.txt deleted file mode 100644 index af76799e..00000000 --- a/text/ien/ien85.txt +++ /dev/null @@ -1,3643 +0,0 @@ - - March 1979 - -IEN: 85 -RFC: 753 - - - - - - - INTERNET MESSAGE PROTOCOL - - - - Jonathan B. Postel - - - - - - - - - - - - - - - - - - March 1979 - - - - - Information Sciences Institute - University of Southern California - 4676 Admiralty Way - Marina del Rey, California 90291 - - (213) 822-1511 - - -< INC-PROJECT, MAIL-MAR-79.NLS.38, >, 31-Mar-79 19:50 JBP ;;;; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 0] Postel - - -March 1979 - Internet Message Protocol - - - - TABLE OF CONTENTS - - PREFACE ........................................................ iii - -1. INTRODUCTION ..................................................... 1 - - 1.1. Motivation ................................................... 1 - 1.2. Scope ........................................................ 1 - 1.3. The Internetwork Environment ................................. 2 - 1.4. Operation .................................................... 2 - 1.5. Interfaces ................................................... 3 - -2. FUNCTIONAL DESCRIPTION ........................................... 5 - - 2.1. Relation to Other Protocols .................................. 5 - 2.2. Terminology ................................................. 5 - 2.3. Assumptions .................................................. 6 - 2.4. General Specification ........................................ 7 - 2.5. Mechanisms .................................................. 11 - -3. DETAILED SPECIFICATION .......................................... 13 - - 3.1. Overview of Message Structure ............................... 13 - 3.2. Data Elements ............................................... 13 - 3.3. Message Objects ............................................. 16 - 3.4. Command ..................................................... 23 - 3.5. Document .................................................... 31 - 3.6. Message Structure ........................................... 33 - 3.7. MPM Organization ............................................ 36 - 3.8. Interfaces .................................................. 39 - -4. EXAMPLES & SCENARIOS ............................................ 41 - - Example 1: Message Format ........................................ 41 - Example 2: Delivery and Acknowledgment ........................... 43 - -GLOSSARY ............................................................ 49 - -REFERENCES .......................................................... 51 - -APPENDICES .......................................................... 53 - - - - - - - - - - -Postel [Page i] - - - March 1979 -Internet Message Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page ii] Postel - - -March 1979 - Internet Message Protocol - - - - PREFACE - - - -This is the first edition of this specification and should be treated as -a request for comments, advice, and suggestions. A great deal of prior -work has been done on computer aided message systems and some of this is -listed in the reference section. This specification was shaped by many -discusions with members of the ARPA research community, and others -interested in the development of computer aided message systems. This -document was prepared as part of the ARPA sponsored Internetwork -Concepts Research Project at ISI, with the assistance of Greg Finn, Alan -Katz, Paul Mockapetris, and Mamie Chew. - - Jon Postel - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page iii] - - - March 1979 -Internet Message Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page iv] Postel - - -March 1979 -IEN: 85 J. Postel -RFC: 753 USC-ISI - March 1979 - - - - - INTERNET MESSAGE PROTOCOL - - - - 1. INTRODUCTION - -This document describes an internetwork message system. The system is -designed to transmit messages between message processing modules -according to formats and procedures specified in this document. The -message processing modules are processes in host computers. Message -processing modules are located in different networks and together -constitute an internetwork message delivery system. - -This document is intended to provide all the information necessary to -implement a compatible cooperating module of this internetwork message -system. - -1.1. Motivation - - As computer supported message processing activities grow on individual - host computers and in networks of computers, there is a natural desire - to provide for the interconnection and interworking of such systems. - This specification describes the formats and procedures of a general - purpose internetwork message system, which can be used as a standard - for the interconnection of individual message systems, or as a message - system in its own right. - - We also provide for the communication of data items beyond the scope - of contemporary message systems. Messages can include typed segments - which could represent drawings, or facsimile images, or digitized - speech. One can imagine message stations equipped with speakers and - microphones (or telephone hand sets) where the body of a message or a - portion of it is recorded digitized speech. The output terminal could - include a graphics display, and the message might present a drawing on - the display, and verbally (via the speaker) describe certain features - of the drawing. This specification provides basic data elements for - the transmission of structured binary data, as well as providing for - text transmission. - -1.2. Scope - - The Internet Message Protocol is intended to be used for the - transmission of messages between networks. It may also be used for - the local message system of a network or host. This specification was - developed in the context of the ARPA work on the interconnection of - networks, but it is anticipated that it has a more general scope. - - -Postel [Page 1] - - - March 1979 -Internet Message Protocol -Introduction - - - - The focus here is on the internal mechanisms to transmit messages, - rather than the external interface to users. It is assumed that a - number of user interface programs will exist. These will be both new - programs designed to work with system and old programs designed to - work with earlier systems. - -1.3. The Internetwork Environment - - The internetwork message environment consists of processes which run - in hosts which are connected to networks which are interconnected by - gateways. Each individual network consists of many different hosts. - The networks are tied together through gateways. The gateways are - essentially hosts on two (or more) networks and are not assumed to - have much storage capacity or to "know" which hosts are on the - networks to which they are attached [5]. - -1.4. Operation - - The model of operation is that this protocol is implemented in a - process. Such a process is called a Message Processing Module or MPM. - The MPMs exchange messages by establishing full duplex communication - and sending the messages in a fixed format described in this document. - The MPM may also communicate other information by means of commands - described here. - - A message is formed by a user interacting with a User Interface - Program or UIP. The user may utilize several commands to create - various fields of the message and may invoke an editor program to - correct or format some or all of the message. Once the user is - satisfied with the messages it is "sent" by placing it in a data - structure shared with the MPM. - - The MPM discovers the unprocessed input data (either by a specific - request or by a general background search), examines it, and using - routing tables determines which outgoing link to use. The destination - may be another user on this host, a user on another host in this - network, or a user in another network. - - In the first case, another user on this host, the MPM places the - message in a data structure shared with the destination user, where - that user's UIP will look for incoming messages. - - In the second case, the user on another host in this network, the MPM - transmits the message to the MPM on that host. That MPM then repeats - the routing decision, and discovering the destination is local to it, - places the messages in the data structure shared with the destination - user. - - - -[Page 2] Postel - - -March 1979 - Internet Message Protocol - Introduction - - - - In the third case, the user on a host in another network, the MPM - transmits the messages to an MPM in that network if it knows how to - establish a connection directly to it, otherwise the MPM transmits the - message to an MPM that is "closer" to the destination. An MPM might - not know of direct connections to MPMs in all other networks, but it - must be able to select a next MPM to handle the message for each - possible destination network. - - A MPM might know a way to establish direct connections to each of a - few MPMs in other nearby networks, and send all other messages to a - particular big brother MPM that has a wider knowledge of the internet - environment. - - A individual network's message system may be quite different from the - internet message system. In this case, intranet messages will be - delivered using the network's own message system. If a message is - addressed outside the network, it is given to a MPM which then sends - it through the appropriate gateways via internet procedures and format - to (or toward) the MPM in the destination network. Eventually, the - message gets to a MPM on the network of the recipient of the message. - The message is then sent via the local message system to that host. - - When local message protocols are used, special conversion programs are - required to transform local messages to internet format when they are - going out, and to transform internet messages to local format when - they come into the local environment. Such transformations are - potentially information lossy. The internet message format attempts - to provide features to capture all the information any local message - system might use. However, a particular local message system is - unlikely to have features equivalent to all the possible features of - the internet message system. Thus, in some cases the transformation - of an internet message to a local message discard of some of the - information. For example, if an internet message carrying mixed text - and speech data in the body is to be delivered in a local system which - only carries text, the speech data may be replaced by the text string - "There was some speech here". Such discarding of information is to be - avoided when at all possible, and to be defered as long as possible, - still the possibility remains, that in some cases, it is the only - reasonable thing to do. - -1.5. Interfaces - - The MPM calls on a reliable communication procedure to communicate - with other MPMs. This is a Transport Level protocol such as the TCP - [20]. The interface to such a procedure conventionally provides calls - to open and close connections, send and receive data on a connection, - and some means to signal and be notified of special conditions (i.e., - interrupts). - - -Postel [Page 3] - - - March 1979 -Internet Message Protocol -Introduction - - - - The MPM receives input and produces output through data structures - that are produced and consumed respectively by user interface (or - other) programs. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 4] Postel - - -March 1979 - Internet Message Protocol - - - - 2. FUNCTIONAL DESCRIPTION - -2.1. Terminology - - The basic unit transferred between networks is called a message. A - message is made up of a transaction identifier (a number which - uniquely identifies the message), a command list (which contains the - necessary information for delivery), and the document list. The - document list consists of a header and a body, which contains the - actual data of the message. - - For a personal letter the document body corresponds to the contents - the a letter, the document header corresponds to the the address and - return address on the envelope. - - For an inter-office memo the document body corresponds to the text, - the document header corresponds to the header of the memo. - - The commands correspond to the information used by the Post Office or - the mail room to route the letter or memo. - - The messages are routed by a process called the message processing - module or MPM. Messages are created and consumed by User Interface - Programs (UIPs) in conjunction with users. - - Please see the Glossary section for a more complete list of - terminology. - -2.2. Assumptions - - The following assumptions are made about the internetwork environment: - - It is in general not known what format intranet addresses will assume. - Since no standard addressing scheme would suit all networks, it is - safe to assume there will be several and that they will change with - time. Thus, frequent software modification throughout all internet - MPMs would be required if such MPMs were to know about the formats on - many networks. Therefore, each MPM which handles internet messages is - required to know only the minimum necessary to deliver them. - - We require each MPM to know completely only the addressing format of - its own network. In addition, the MPM must be able to select an - output link for each message addressed to another network or host. - This does not preclude more intelligent behavior on the part of a - given MPM, but at least this minimum is necessary. Each network has a - unique name and number. - - Each MPM will have a unique internet address. This feature will - - - -Postel [Page 5] - - - March 1979 -Internet Message Protocol -Functional Description - - - - enable every MPM to place a unique "handling-stamp" on a message which - passes through it en-route to delivery. - -2.3. General Specification - - There are several aspects to a distributed service to be specified. - First there is the service to be provided, that is, the - characteristics of the service as seen by its users. Second there is - the service it uses, that is, the characteristics it assumes to be - provided by some lower level service. And, third there is the - protocol used between the modules of the distributed service. - - User User - \ / - \ / - \ / - --+----------------------------------------+-- Service - ! \ / ! Interface - ! +--------+ +--------+ ! - ! ! Module ! <--Protocol--> ! Module ! ! - ! +--------+ +--------+ ! - ! \ / ! - ! +-----------------------+ ! - ! ! Communication Service ! ! - ! +-----------------------+ ! - ! ! - +----------------------------------------+ - - Message Service - - Figure 1. - - The User/Message Service Interface - - The service the message delivery system provides is to accept - messages conforming to a specified format and to attempt to deliver - those messages, and to report on the success or failure of the - delivery attempt. This service is provided in the context of an - interconnected system of networks, and may involve relaying a - message through several intermediate MPMs utilizing different - communication services. - - The Message/Communication Service Interface - - The message delivery system calls on a communication service to - transfer information from one MPM to another. There may be - different communication services used between different pairs of - - - -[Page 6] Postel - - -March 1979 - Internet Message Protocol - Functional Description - - - - MPMs, though all communication services must meet the following - service characteristics. - - It is assumed that the communication service provides a reliable two - way data stream. Such a data stream can usually be obtained in - computer networks from the transport level protocol, for example, - the Transmission Control Protocol (TCP) [20]. In any case the - properties the communication service must provide are: - - o Logical connections for two way simultaneous data flow of - arbitrary data (i.e., no forbidden codes). Data is delivered - in the order sent with no gaps. - - o Simple commands to open and close the connections, and to send - and receive data on the connections. - - o A way to signal and be notified "out-of-band" (such as TCP's - urgent) is available so that some messages can be labeled "more - important" than others. - - o Controlled flow of data so that data is not transmitted faster - that the receiver chooses to consume it (on the average). - - o Transmission errors are corrected without user notification or - involvement. Complete breakdown on communication is reported - to the user. - - The Message-Message Protocol - - The protocol used between the distributed modules of the message - delivery system, that is, the MPMs is a small set of commands which - convey requests and replies. These commands are encoded in a highly - structured and rigidly specified format. - -2.4. Mechanisms - - MPMs are processes which use some communication service. A pair of - MPMs which can communicate reside in a common interprocess - communication environment. A MPM might exist in two (or more) - interprocess communication environments, and such an MPM might act to - relay messages between MPMs in the environments. - - - - - - - - - -Postel [Page 7] - - - March 1979 -Internet Message Protocol -Functional Description - - - - User User - \ / - \ / - \ / - +---------------------------------------------------------+ - ! \ / ! - ! +-----+ +-----+ +-----+ ! - ! ! MPM ! <--Protocol--> ! MPM ! <--Protocol--> ! MPM ! ! - ! +-----+ +-----+ +-----+ ! - ! ! / \ ! ! - ! +-----------------------+ +-----------------------+ ! - ! !Communication Service A! !Communication Service B! ! - ! +-----------------------+ +-----------------------+ ! - ! ! - +---------------------------------------------------------+ - - Message Service with Internal Relaying - - Figure 2. - - The transfer of data between UIPs and MPMs is conceived of as the - exchange of data structures which encode messages. The transfer of - data between MPMs is also in terms of the transmission of structured - data. - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 8] Postel - - -March 1979 - Internet Message Protocol - Functional Description - - - - +-----+ DATA +-----+ - USER-->! UIP !-->STRUCTURES-->! MPM !-->other - +-----+ +-----+ +-----+ MPMs - ! ! - ! +-----+ - +--! ! - ! +-----+ - +--! ! - ! ! - +-----+ - - +-----+ DATA +-----+ - other-->! MPM !-->STRUCTURES-->! UIP !-->USER - MPMs +-----+ +-----+ +-----+ - ! ! - ! +-----+ - +--! ! - ! +-----+ - +--! ! - ! ! - +-----+ - - Message Flow - - Figure 3. - - In the following, a message will be described as a structured data - object represented in a particular kind of typed data elements. This - is how a message is presented when transmitted between MPMs or - exchanged between an MPM and a UIP. Internal to a MPM (or a UIP), a - message may be represented in any convenient form. As the following - figure shows, when a message is ready for transmission, it moves from - the processing routines to be encoded in the typed data elements and - then to a data compression routine, and is finally transmitted. On - the receiving side, the message is first decompressed then decoded - from the data element representation to the local representation for - the processing routines. - - - - - - - - - - - - - -Postel [Page 9] - - - March 1979 -Internet Message Protocol -Functional Description - - - - +------------------------------------------------+ - ! ! - ! processing DATA DATA ! - ! routines ---> ENCODER ---> COMPRESSOR ---> ! - ! ! - +------------------------------------------------+ - Send MPM - - +------------------------------------------------+ - ! ! - ! DATA DATA processing ! - ! ---> DECOMPRESSOR ---> DECODER ---> routines ! - ! ! - +------------------------------------------------+ - Receive MPM - - Detailed View - - Figure 4. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 10] Postel - - -March 1979 - Internet Message Protocol - Functional Description - - - -2.5. Relation to Other Protocols - - The following diagram illustrates the place of the message protocol in - the protocol hierarchy: - - - +------+ +-----+ +-------+ +-----+ +-----+ - !Telnet! ! FTP ! !Message! !Voice! ... ! ! Application Level - +------+ +-----+ +-------+ +-----+ +-----+ - \ ! / ! ! - +-----+ +-----+ +-----+ - ! TCP ! ! RTP ! ... ! ! Host Level - +-----+ +-----+ +-----+ - ! ! ! - +-------------------------------+ - ! Internet Protocol ! Gateway Level - +-------------------------------+ - ! - +---------------------------+ - ! Local Network Protocol ! Network Level - +---------------------------+ - ! - - - - Protocol Relationships - - Figure 5. - - The message protocol interfaces on one side to user interface programs - and on the other side to a reliable transport protocol such as TCP. - - - - - - - - - - - - - - - - - - - -Postel [Page 11] - - - March 1979 -Internet Message Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 12] Postel - - -March 1979 - Internet Message Protocol - - - - 3. DETAILED SPECIFICATION - -The presentation of the information in this section is difficult since -everything depends on everything, and since this is a linear media it -has to come in some order. In this attempt, a very brief overview of -the message structure is given, then a radical switch is made to -defining the basic building blocks, and finally using the building -blocks to reach the overall structure again. - -3.1. Overview of Message Structure - - In general a message is composed of three parts: the identification, - the command, and the document. Each part is in turn composed of - message objects. - - The identification part is composed of a transaction number assigned - by the originating MPM, and the internet host number of that MPM. - - The command part is composed of an operation type, an operation code, - an argument list, an error list, the destination mailbox, and a stamp. - The stamp is a list of the MPMs that have handled this message. - - The document part is composed of a header and a body. The message - delivery system does not depend on the contents of the document part, - but this specification does make some recommendations for the document - header. - - The following sections define the representation of a message as a - structured object composed of other objects. Objects in turn are - represented using a set of basic data elements. - -3.2. Data Elements - - The data elements defined here are similar to the data structure and - encoding used in NSW [18]. - - Each of the diagrams which follow represent a sequence of octets. - Field boundaries are denoted by the "!" character, octet boundaries by - the "+" character. The diagrams are presented in left to right order. - Each element begins with a one octet code. - - - - - - - - - - - -Postel [Page 13] - - - March 1979 -Internet Message Protocol -Specification - - - - - Code Type Representation - ---- ---- -------------- - - - +------+ - 0 No Operation ! 1 ! - +------+ - - - +------+------+------+------+------ - 1 Padding ! 0 ! octet count ! Data ... - +------+------+------+------+------ - - - +------+------+ - 2 Boolean ! 2 ! 1/0 ! - +------+------+ - - - +------+------+------+ - 3 Index ! 3 ! Data ! - +------+------+------+ - - - +------+------+------+------+------+ - 4 Integer ! 4 ! Data ! - +------+------+------+------+------+ - - - +------+------+------+------+------ - 5 Bit String ! 5 ! bit count ! Data ... - +------+------+------+------+------ - - - +------+------+------+------+------ - 6 Text String ! 6 ! octet count ! Data ... - +------+------+------+------+------ - - - +------+------+------+------+------+------+----- - 7 List ! 7 ! octet count ! item count ! Data - +------+------+------+------+------+------+----- - - - +------+------+------+------+------ - 8 Proplist ! 8 ! octet count ! Data ... - +------+------+------+------+------ - - -[Page 14] Postel - - -March 1979 - Internet Message Protocol - Specification - - - - Element code 0 (NOP) is an empty data element used for padding when it - is necessary. It is ignored. - - Element code 1 (PAD) is used to transmit large amounts of data with a - message for test or padding purposes. No action is taken with this - data but the count of dummy octets must be correct to indicate the - next element code. - - Element code 2 (BOOLEAN) is a boolean data element which has the value - 1 for True and 0 for False. - - Element code 3 (INDEX) is a 16-bit unsigned integer datum. Element - code 3 occupies only 3 octets. - - Element code 4 (INTEGER) is a signed 32-bit integer datum. This will - always occupy five octets. Representation is two's complement. - - Element code 5 (BITSTR) is a bit string element for binary data. The - bit string is padded on the right with zeros to fill out the last - octet if the bit string does not end on an octet boundary. This data - type must have the bit-count in the two octet count field instead of - the number of octets. - - Element code 6 (TEXT) is used for the representation of text. Seven - bit ASCII characters are used, right justified in the octet. The high - order bit in the octet is zero. - - Element code 7 (LIST) can be used to create structures composed of - other elements. The item-count contains the number of elements which - follow. Any element may be used including List itself. The octet - count specifies the number of octets in the whole list. A null or - empty List, one with no elements, has an item-count of zero (0). - - - - - - - - - - - - - - - - - - -Postel [Page 15] - - - March 1979 -Internet Message Protocol -Specification - - - - Element code 8 (PROPLIST) is the Property-List element. It has the - following form: - - - +------+------+------+------+------+ - ! 8 ! octet ! pair ! - ! ! count ! count! - +------+------+------+------+------+ - +------+------+------+---------+---------+ - ! name ! value ! name ! value ! - repeated ! count! count ! ...! ...! - +------+------+------+---------+---------+ - - The Property-List structure consists of a set of unordered name/value - pairs. The pairs are a one octet name count and a two octet value - count followed by the name and value strings. The counts specify the - length in octets of the name and value strings. Each string has a - length in octets which agrees with its respective count. The count of - octets until the next pair in the property list is 1 + 2 + name count - + value count octets. The entire Property-List is of course equal in - length to the octet count of the element itself. Immediately - following the octet count for the entire element is a one octet pair - count field which contains the total number of name/value pairs in the - Proplist. - -3.3. Message Objects - - In the composition of messages we use a set of objects such as - address, or date. These objects are encoded in the basic data - elements. The message objects are built of data elements. - - While data elements are typed, message objects are not. This is - because messages are structured to the extent that only one kind of - message object may occur in any position of a message structure. - - The following is a list of some of the objects used in messages. The - object descriptions are grouped by the section of the message in which - they normally occur. - - - - - - - - - - - - -[Page 16] Postel - - -March 1979 - Internet Message Protocol - Specification - - - - Identification - - Internet Host Number (ihn) - - This identifies a host in the internetwork environment. When used - as a part of tid, it identifies the originating host of a message. - The ihn is a 32 bit number, the higher order 8 bits identify the - network, and the lower order 24 bits identify the host on that - network. - - INTEGER - - Transaction Identifier (tid) - - This is the transaction identifier associated with a particular - command. It is a list of the transaction number and the internet - host number of the originating host. - - LIST ( tn , ihn ) - - Transaction Number (tn) - - This is a number which is uniquely associated with this - transaction by the originating host. It identifies the - transaction. (A transaction is a message and acknowledgment, this - is discussed in more detail in later sections.) A tn must be - unique for the time which the message (a request or reply) - containing it could be active in the network. - - INDEX - - Command - - Address - - This is very similar to Mailbox in that it also is the "address" - of a user. However, Address is intended to contain the minimum - information necessary for delivery, and no more. - - PROPLIST ( --- ) - - Answer - - A yes (true) or no (false) answer to a question. - - BOOLEAN - - - - -Postel [Page 17] - - - March 1979 -Internet Message Protocol -Specification - - - - Arguments - - This is the argument to many of the operations. It consists of a - List of different data types. The List will have form and data - relevant with the particular operation. - - LIST ( --- ) - - Command-Type - - Gives the type of a command (e.g., request, reply, alarm). - - INDEX - - Error-List - - The error list contains information concerning an error which has - occured. It is a List comprised of the two objects error-class - and error-string. - - LIST ( error class, error string ) - - Error-Class - - A code for the class of the error. - - INDEX - - Error-String - - A text string explaining the error. - - TEXT - - How-Delivered - - A comment on the delivery of a messages, for instance a message - could be delivered, forwarded, or turned over to general delivery. - - LIST ( TEXT ) - - - - - - - - - - -[Page 18] Postel - - -March 1979 - Internet Message Protocol - Specification - - - - Mailbox - - This is the "address" of a user of the internetwork mail system. - Mailbox contains information such as net, host, location, and - local user-id of the recipient of the message. Some information - contained in Mailbox may not be necessary for delivery. - - As an example, when one sends a message to someone for the first - time, he may include many items which are not necessary simply to - insure delivery. However, once he gets a reply to this message, - the reply could contain an Address (as opposed to Mailbox) which - the user will use from then on. - - A mailbox is a PROPLIST. A mailbox might contain the following - name-value pairs: - - name element description - ---- ------- ----------- - IA INTEGER internet address - NET TEXT network name - HOST TEXT host name - USER TEXT user name - CITY TEXT city - COUNTRY TEXT country - STATE TEXT state - ZIP TEXT zip code - PHONE TEXT phone number - - PROPLIST ( --- ) - - Operation - - This names the operation or procedure to be performed. - - TEXT - - Options - - REGULAR for normal delivery, FORWARD for message forwarding, - GENDEL for general delivery, or other options which may be defined - later. - - LIST ( TEXT, ... ) - - - - - - - -Postel [Page 19] - - - March 1979 -Internet Message Protocol -Specification - - - - Reasons - - These could be mailbox does not exist, mailbox full, etc. - - LIST ( TEXT ) - - Stamp - - Each MPM that handles the message must add a unique identifier - (ihn, see above) to the list. This will prevent messages from - being sent back and forth through the internet mail system without - eventually either being delivered or returned to the sender. - - LIST ( ihn, ihn, ... ) - - Trail - - When a message is sent through the internetwork environment, it - acquires a list of MPMs that have handled the message in "Stamp". - This list is then carried as "Trail" upon reply or acknowledgment - of that message. More simply, requests and replies always have a - "Stamp" and each MPM adds its ihn to this "Stamp." Replies, in - addition, have a "Trail" which is the complete "Stamp" of the - original message. - - LIST ( ihn, ihn, ... ) - - Type - - The command type, e.g., request or reply. - - INDEX - - Document - - In this section, we define some objects useful in message document - headers. The ones we use are taken from the current ARPANET message - syntax standard [6,8]. - - CC - - When copies of a message are sent to others in addition to the - addresses in the To object, those to whom the copies are sent will - have their addresses recorded here. CC will be a single TEXT - element. - - TEXT - - - -[Page 20] Postel - - -March 1979 - Internet Message Protocol - Specification - - - - Date - - The date and time are represented according to the International - Standards Organization (ISO) recommendations [13,14,15]. Taken - together the ISO recommendations 2014, 3307, and 4031 result in - the following representation of the date and time: - - yyyy-mm-dd-hh:mm:ss,fff+hh:mm - - Where yyyy is the 4 digit year, mm is the two digit month, dd is - the two digit day, hh is the two digit hour in 24 hour time, mm is - the two digit minute, ss is the two digit second, and fff is the - decimal fraction of the second. To this basic date and time is - appended the offset from Greenwich as plus or minus hh hours and - mm minutes. - - TEXT - - Document-Body - - The document body will contain that portion of the message - commonly thought of as the text portion. It will be composed of a - list of elements. This will allow transmission of data other than - pure text if such capabilities are needed. We can, for instance, - envision digital voice communication through the transmission of - BITSTR element, or transmission of graphic data, etc. Information - regarding control of such features could be included in the header - for cooperating sites, or in the body itself but such protocols - would depend upon agreement among those sites involved. It is - expected of course that the majority of messages will contain body - portions comprised of TEXT elements. - - LIST ( --- ) - - Document-Header - - The document header contains the memo header presented to the - user. In principle this may be of any style or structure. In - this specification it is recommended that a PROPLIST be used and - that the name-value pairs correspond to the header fields of - RFC 733 [6]. - - PROPLIST ( --- ) - - - - - - - -Postel [Page 21] - - - March 1979 -Internet Message Protocol -Specification - - - - From - - The From is meant to be the name of the author of a document. It - will be one TEXT element. - - TEXT - - Reply-To - - Sometimes it will be desired to direct the replies of a message to - some address other than the From or the Sender. In such a case - the Reply-To object can be used. - - TEXT - - Sender - - The Sender will contain the address of the individual who sent the - message. In some cases this is NOT the same as the author of the - message. Under such a condition, the author should be specified in - the From object. The Sender is a single TEXT element. - - TEXT - - Subject - - The subject of the message. - - TEXT - - To - - To identifies the addressees of the message. The To object is one - TEXT element. - - TEXT - - - - - - - - - - - - - - -[Page 22] Postel - - -March 1979 - Internet Message Protocol - Specification - - - -3.4. Command - - This section describes the commands which processes in the internet - message system can use to communicate. Several aspects of the command - structure are based on the NSW Transaction Protocol [19]. The - commands come in pairs, with each request having a corresponding - reply. - - A command is a list: - - LIST ( mailbox, stamp, type, operation, arguments, error-list ) - - The arguments are described generally here and more specifically, if - necessary, in the description of each command. - - mailbox: PROPLIST - - This is the "to" specification of the message. Mailbox takes the - form of a property list of general information, some of which is - the essential information for delivery, and some of which could be - extra information which may be helpful for delivery. Mailbox is - different from address in that address is a very specific list - without extra information. - - stamp: LIST ( INTEGER, ... ) - - This is a list of the MPMs that have handled the message. Each - MPM must add its 32 bit Internet Host Number (ihn) to the LIST. - - type: INDEX - - type=1 a REQUEST operation. - - type=2 a REPLY operation. - - type=3 an ALARM operation. (A high priority message.) - - type=4 a RESPONSE to an alarm operation. - - operation: TEXT - - Operation is the name of the operation or procedure to be - performed. This string must be interpreted in an upper/lower case - independent manner. - - - - - - -Postel [Page 23] - - - March 1979 -Internet Message Protocol -Specification - - - - arguments: LIST - - This is a list of arguments to the above operation. - - error-list: LIST - - If message is type 1 or 3 (a request or an alarm): - - LIST ( ) (a zero length list) - - If message is a type 2 or 4 (a response or response to alarm) - - LIST ( error-class, error-string ) indicates what,if any, error - occured - - error-class: INDEX - - =0: indicates success, no error - =1: partial results returned. - This error class is used when several steps are performed by - one operation and some of them fail. - =2: failure, resources unavailable. - =3: failure, user error. - =4: failure, MPM error. Recoverable. - =5: failure, MPM error. Fatal. - =6: User abort requested - - error-string: TEXT - - This is a human readable character string describing the error. - - Possible errors: - - error-string error-class - - No errors 0 - Command not implemented 2 - Syntax error, command unrecognized 3 - Syntax error, in arguments 3 - Server error, try again later 4 - No service available 5 - User requested abort 6 - - - - - - - - -[Page 24] Postel - - -March 1979 - Internet Message Protocol - Specification - - - - command: DELIVER - - type: 1 - - function: Sends message to a mailbox - - reply: The reply is ACKNOWLEDGE - - arguments: LIST ( options ) - - options: one or more of the following - - "REGULAR" regular delivery - - "FORWARD" message forwarding - - "GENDEL" general delivery - - other options which may be defined later - - argument structure: - - LIST ( LIST ( TEXT, ... )) - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 25] - - - March 1979 -Internet Message Protocol -Specification - - - - command: ACKNOWLEDGE - - type: 2 - - function: reply to DELIVER - - arguments: LIST ( tid, trail, answer, reasons, how-delivered ) - - tid: tid of the originating message - - trail: the stamp from the deliver command - - answer: yes if delivered successfully, - no if error in delivery. - - reasons: if the answer is yes, the reason is "ok", if the answer - is no the reason could be one of "no such user", "no such host", - "no such network", "address ambiguous", or a similar response - - how-delivered: one or more of the following: - - "FORWARD" message was accepted for forwarding - - "GENDEL" message was accepted for general delivery - - "ACCEPT" message was accepted for normal delivery - - other types of delivery may be defined later - - argument structure: - - LIST ( LIST ( INDEX, INTEGER ), - LIST ( INTEGER, ... ), - BOOLEAN, - LIST ( TEXT ), - LIST ( TEXT )) - - - - - - - - - - - - - - -[Page 26] Postel - - -March 1979 - Internet Message Protocol - Specification - - - - command: PROBE - - type: 1 - - function: finds out if specified mailbox (specified in mailbox of - the command) exists at a host - - reply: the reply is RESPONSE - - arguments: LIST ( --none-- ) - - argument structure: - - LIST ( ) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 27] - - - March 1979 -Internet Message Protocol -Specification - - - - command: RESPONSE - - type: 2 - - function: reply to PROBE - - arguments: LIST ( tid, trail, answer, address OR reasons ) - - tid: the tid which came from the originating PROBE - - trail: the stamp which came from the originating PROBE - - answer: Yes if mailbox found, or no for invalid mailbox - - if answer is yes the fourth argument is address - if answer is no it is reasons - - address: a specific address in the network - - reasons: a reason why mailbox is invalid - - Possible reasons include: - - "Mailbox doesn't exist" - - "Mailbox full" - - "Mailbox has moved, try this new location", address - - address is a new address to try - - argument structure: - - if answer is yes - - LIST ( LIST ( INDEX, INTEGER ), - LIST ( INTEGER, ... ), - BOOLEAN, - PROPLIST ) - - if answer is no - - LIST ( LIST ( INDEX, INTEGER ), - LIST ( INTEGER, ... ), - BOOLEAN, - LIST ( TEXT )) - - - - -[Page 28] Postel - - -March 1979 - Internet Message Protocol - Specification - - - - command: CANCEL - - type: 3 - - function: abort request for specified transaction - - reply: The reply is CANCELED - - arguments: LIST ( tid ) - - tid of transaction to be cancelled - - argument structure: - - LIST ( LIST ( INDEX, INTEGER )) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 29] - - - March 1979 -Internet Message Protocol -Specification - - - - command: CANCELED - - type: 4 - - function: reply to CANCEL - - arguments: LIST ( tid, trail, answer ) - - tid: tid of transaction to be cancelled - - trail: the stamp of the CANCEL command - - answer: yes if the command was canceled, no if not. - - argument structure: - - LIST ( LIST ( INDEX, INTEGER ), - LIST ( INTEGER, ... ), - BOOLEAN ) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 30] Postel - - -March 1979 - Internet Message Protocol - Specification - - - - To summarize again, a command consists of a LIST of the following - objects: - - name element - ---- ------- - mailbox PROPLIST - stamp LIST ( INTEGER, ... ) - type INDEX - operation TEXT - arguments LIST ( --- ) - error LIST ( INDEX, TEXT ) - -3.5. Document - - The actual document follows the command list. It contains a header - which usually contains such information as From, To, Date, CC, etc.; - and the actual body of the message. The message delivery system does - not depend on the document. The following section should be taken as - a recommendation for common practice, not as a requirement. - - Document Header - - For the same reason that it is impossible to for see the many forms - that intranet addresses will take, standardizing of document headers - would also be a mistake. The approach we suggest is to lay the - groundwork for a set of basic document header functions and provide - for enough extensibility to allow nets to add whatever header - features they desire. Features added in this fashion, however, may - not be understood by other networks. It is suggested that subset - defined here be implemented by all networks. - - This subset is taken from the current ARPANET standard for message - headers in the text oriented computer message system [6,8]. - - The document header will precede the document body portion of the - message and will consist of a proplist data element. The document - header is meant to be used by individual networks to tailor the - header to suit their individual needs. As an example, consider the - ARPA network. Typically, the receiver's name is taken to be his - network address. It often prints in the document header in just - that form: Frank@SITEX. Such a salutation is unacceptable in some - more formal modes of communication. Some network might choose to - place into header proplist the name-value pair ("SALUTATION:", "Mr. - Frank Hacker"). Upon receipt of the message, the document handling - program would then be able to scan the header proplist looking for - such a pair and so be able to correctly address the recipient by - name instead of by network address. However, other networks or - - - -Postel [Page 31] - - - March 1979 -Internet Message Protocol -Specification - - - - sites within the network may not understand such specific - information. Under such a condition it should be ignored. - - The minimum header is a PROPLIST of the following name-value pairs: - - Name Value - ---- ----- - DATE TEXT - FROM TEXT - - A normal header is a PROPLIST containing the following name-value - pairs: - - Name Value - ---- ----- - DATE TEXT - SENDER TEXT - FROM TEXT - TO TEXT - CC TEXT - SUBJECT TEXT - - Document Body - - The Body of the message is just a sequence of data elements which - contains the actual document. Much of the time this will be a - single TEXT element, but for some applications other data elements - may be utilized. - - LIST ( --- ) - - - - - - - - - - - - - - - - - - - - -[Page 32] Postel - - -March 1979 - Internet Message Protocol - Specification - - - -3.6. Message Structure - - An internet message is composed of three parts. The first is the tid - which identifies the transaction; the second is the Command List; and - the third part is the Document List, which is itself comprised of a - Document-Header and a Document-Body. - - When shipped between two MPMs, a message will take the form of a LIST: - - Message is: - - LIST ( tid, Command-List, Document-List ) - - It is convenient to batch several messages together shipping them as - a unit from one MPM to another. Such a group of messages is called - a message-bag. - - A message-bag will be a LIST of Messages, each Message is of the - form described above. - - Thus, a message-bag is: - - LIST ( Message1, Message2, ... ) - - Message Sharing - - When messages are batched for delivery, it may often be the case - that the same Document will be sent to more than one recipient. - Since the Document portion can usually be expected to be the major - parts of the message, much repeated data would be sent if a copy of - the Mail for each recipient were to be shipped in the message-bag. - - To avoid this redundancy, messages are assembled in the message-bag - so that actual data appears first and references to it appear later - in the message-bag. Since each message has a unique tid, the - references will indicate the tid of the actual data. In this sense, - all references to copied data may be thought of as pointing earlier - in the message-bag. The data to be retrieved can be thought of as - indexed by tid. Note that the semantics require such references to - point to data already seen. - - When a portion is Shared, that portion is determined by its position - within a message, i.e., if the Command list was to be Shared, then - its position within a Message would contain the tid of the message - already seen whose Command list was identical to it. The same is - true of the Document Header and the Document Body. Only a complete - Command, Header, or Body may be Shared, never a partial one. - - - -Postel [Page 33] - - - March 1979 -Internet Message Protocol -Specification - - - - If an encryption scheme is used, that portion of the message which - is encrypted can not be shared. This is due to the fact that - encrypting keys will be specific between two individuals. - - Internal Message Organization - - The tid - - This is the transaction identifier. It is assigned by the - originating MPM. - - The Command List - - The command-list is a LIST which contains two elements, content - and command. - - Content is one item of element type INDEX. If content=0, the item - is not shared and the next element of the LIST is the command. If - content=1 the item is shared. In this case, the second element - will contain the tid of the command to share from. The tid must - be of a prior message in the current message-bag. Other values of - content may be defined later for different data structures. - - Thus, command-list is: - - LIST ( content, tid ) if content=1 - - Or, - - LIST ( content, command ) if content=0 - - content is: - - INDEX which is 0 if there is no sharing - and is 1 if sharing occurs - - tid is: - - the tid of the message to be shared from - - command is: - - LIST ( mailbox, stamp, type, operation, arguments, error-list ) - - The document-list - - The document portion of an internet message is optional and when - present is comprised of a LIST containing two elements: - - -[Page 34] Postel - - -March 1979 - Internet Message Protocol - Specification - - - - document-list is: - - LIST ( header-list, body-list ) - - While either the header-list or the body-list may be shared, both - elements must appear in the m. - - The document-header - - The header-list will be a List which will always contain two - elements. The first element will be content to indicate whether - or not the header is to be shared. The second element will either - be the tid of the header to be copied (if content=1) or it will be - the document-header (which is a PROPLIST) containing the actual - header information (if content=0). The tid must point to a - document-header already seen in the message-bag. - - The header-list is either: - - LIST ( content, tid ) if content=1 - - Or, - - LIST ( content, document-header ) if content=0 - - document-header is: - - PROPLIST which contains header information - - The document-body - - The body-list will be a LIST of two elements. The first element - will again be content, indicating whether or not the body is to be - shared. If it is shared, the second element will be tid - indicating which body to copy. This tid must be of a message - already seen in the message-bag. If content indicates no sharing, - then the second item is a document-body. - - body-list is: - - LIST ( content, tid ) if content=1 - - Or, - - LIST ( content, document-body ) if content=0 - - - - - -Postel [Page 35] - - - March 1979 -Internet Message Protocol -Specification - - - - document-body is: - - LIST ( items comprising the body ... ) - - Message Fields - - message := ( tid, command-list, document-list ) - - tid := ( tn, ihn ) - - command-list := ( content, command ) - - command := ( mailbox, stamp, type, operation, - arguments, error-list ) - - document-list := ( header-list, body-list ) - - header-list := ( content, document-header ) - - body-list := ( content, document-body ) - -3.7. MPM Organization - - Introduction - - The heart of the internet message system is the MPM which is - responsible for routing and delivering message between the networks. - Each network must have at least one MPM. These MPMs are connected - together, and internet mail is always transferred along channels - between them. The system interfaces with the already existent local - message system. - - Since the local network message system may be very different from - the internet system, special programs may be necessary to convert - incoming internet messages to the local format. Likewise, messages - outgoing to other networks may be converted to the internet format. - - The MPM - - Messages in the internet mail system are shipped in "bags," each bag - containing one or more messages. Each bag is addressed to a - specific MPM and contains messages for the hosts on that MPM's - network. - - Each MPM is expected to implement functions which will allow it to - deliver local messages it receives and to forward non-local ones to - other MPMs presumably closer to the message's destination. - - - -[Page 36] Postel - - -March 1979 - Internet Message Protocol - Specification - - - - Loosely, each MPM can be separated into five components: - - 1--Acceptor - - Receives incoming Message-Bags, from other MPMs, from UIPs, or - from conversion programs. - - 2--Message-Bag Processor - - Splits a Bag into these three portions: - - a. Local Host Messages - b. Local Net Messages - c. Foreign Net Messages - - 3--Local Net Delivery - - Delivers local net and local host messages, may call on - conversion program. - - 4--Foreign Net Router - - Creation of new Message-Bags for forwarding to other MPMs, - determines route. - - 5--Foreign Net Shipper - - Activates foreign shipping channels and ships Message-Bag to - foreign MPMs. Performs data compression while shipping bags. - - All of these components can be thought of as independent. Of the - five, the Acceptor, the Local-Net Delivery, and the Message-Bag - Processor are fully self-contained and communicate with each other - only through a queue, the Bag-Input Queue. The function of the - Acceptor is to await incoming Message-Bags and to insert them into - the Bag-Input Queue. - - That queue is the input to the Message-Bag Processor component which - will separate and deliver suitable portions of the Message-Bags it - retrieves from the queue to one of three queues: - - a. Local-Host Queue - b. Local-Net Queue - c. Foreign Net Queue - - When a MPM decides to forward a message to another MPM, it must add - its own identification (i.e., its ihn) to the stamp field of the - command. The stamp then becomes a record of the route the message - - -Postel [Page 37] - - - March 1979 -Internet Message Protocol -Specification - - - - has taken. An MPM should examine the stamp field to see if the - message is in a routing loop. Some commands require the return of - the stamp as a trail in the matching reply command. - - All of these queues have as elements complete Message-Bags (some of - which may have been portions of the original Bag). - - The Local-Host and Local-Net queues serve as input to the Local-Net - Delivery process. This component is responsible for delivering - messages to its local host and other hosts on its local net to which - it is connected. It must be capable of handling whatever error - conditions the local net might return, including the ability to - retransmit. It may call on conversion program to reformat the - messages into a form the local protocol will accept. This will - probably involve such things as copying shared information. - - The other two processes are more closely coupled. The Foreign Net - Router takes its input Bags from the Foreign Net Queue. From the - internal information it contains, it determines which one of the - MPMs to which it is connected should receive the Bag. - - It then places the Bag along with the routing information into the - Shippable Mail Queue. The Foreign Net Shipper retrieves it from - that queue and transmits it across a channel to the intended foreign - MPM. - - The Foreign Net Router should be capable of receiving external input - to its routing information table. This may come from the Foreign - Net Shipper in the case of a channel going down, requiring a - decision to either postpone delivery or to determine a new route. - - The Router is responsible for maintaining sufficient topological - information to determine where to forward any incoming Message-Bag. - Decisions concerning the return of undeliverable Bags are made by - the Router. - - It should be stressed here that message delivery should be reliable. - In the event that delivery is impossible, the message should be - returned to the sender along with information regarding the reason - for not delivering it. - - Implementation Recommendations - - Transaction numbers can be assigned sequentially with wrap around - when the highest value is reached. This should ensure that no - message with a particular transaction number from this source is in - the network when another instance of this transaction number is - chosen. - - -[Page 38] Postel - - -March 1979 - Internet Message Protocol - Specification - - - -3.8. Interfaces - - User Interface - - It is assumed that the interface between the MPM and the UIP - provides for passing data structures which represent the document - portion of the message. In addition this interface must pass the - delivery address information (which becomes the information in the - mailbox field of the command). It is weakly assumed that the - information is passed between the UIP and the MPM via shared files, - but this is not the only possible mechanism. These two processes - may be more strongly coupled (e.g., by sharing memory), or less - strongly coupled (e.g., by communicating via logical channels). - - Communication Interface - - It is assumed here that the MPM use an underlying communication - system, and TCP [20] has been taken as the model. Again, this is - not intended to limit the implementation choices, other forms of - interprocess communication are allowed and other types of physical - interconnection are permitted. One might even use dial telephone - calls to interconnect MPMs (using suitable protocols to provide - reliable communication). - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 39] - - - March 1979 -Internet Message Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 40] Postel - - -March 1979 - Internet Message Protocol - - - - 4. EXAMPLES & SCENARIOS - -Example 1: Message Format - - Suppose we want to send the following message: - - Date: 1979-03-29-11:46-08:00 - From: Jon Postel - Subject: Meeting Thursday - To: Dave Crocker - CC: Mamie - - Dave: - - Please mark your calendar for our meeting Thursday at 3 pm. - - --jon. - - It will be encoded in the structured format. The following will - present successive steps in the top down generation of this message. - - 1. message - - 2. ( tid, command-list, document-list ) - - 3. ( ( tn, ihn ), - ( content, command ), - ( header-list, body-list ) ) - - 4. ( ( tn, ihn ), - ( content, - ( mailbox, stamp, type, operation, - arguments, error-list ) ), - ( ( content, document-header ), - ( content, document-body ) ) ) - - 5. ( ( 37, 167772404 ), - ( 0, ( - ( IA: 167772359, NET: arpa, HOST: rand-unix, - USER: DCrocker ), - ( 167772404 ), - 1 - DELIVER - ( ( REGULAR ) ), - ( ) ) ), - ( ( 0, ( - Date: 1979-03-29-11:46-08:00 - From: Jon Postel - Subject: Meeting Thursday - - -Postel [Page 41] - - - March 1979 -Internet Message Protocol -Examples & Scenarios - - - - To: Dave Crocker - CC: Mamie ) ), - ( 0, ( Dave: - - Please mark your calendar for our meeting - Thursday at 3 pm. - - --jon. ) ) ) ) - - - 6. LIST( LIST( INDEX=37, INTEGER=167772404 ), - LIST( INDEX=0, - command LIST( PROPLIST( IA: 167772359, - NET: arpa, - mailbox HOST: rand-unix, - USER: DCrocker ), - stamp LIST( INTEGER=167772404 ), - type INDEX=1 - operation TEXT="DELIVER" - arguments LIST( LIST( TEXT="REGULAR" )), - error-list LIST( ) ) ), - LIST( LIST( INDEX=0, - document-header PROPLIST( - DATE: 1979-03-29-11:46-08:00 - FROM: Jon Postel - SUBJECT: Meeting Thursday - TO: Dave Crocker - CC: Mamie ) ), - LIST( INDEX=0, - document-body LIST( TEXT= - "Dave: - - Please mark your calendar for - our meeting Thursday at 3 pm. - - --jon." ) ) ) ) - - - - - - - - - - - - - - -[Page 42] Postel - - -March 1979 - Internet Message Protocol - Examples & Scenarios - - - -Example 2: Delivery and Acknowledgment - - The following is four views of the message of example 1 during the - successive transmission from the origination MPM, through a relay MPM, - to the destination MPM, and the return of the acknowledgment, through - a relay MPM, to the originating MPM. - - +-----------------------------------------------------------------+ - ! 1 2 ! - ! sending --> originating --> relay --> destination --> receiving ! - ! user MPM MPM MPM user ! - ! ! - ! 4 3 ! - ! originating <-- relay <-- destination ! - ! MPM MPM MPM ! - +-----------------------------------------------------------------+ - - Transmission Path - - Figure 6. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 43] - - - March 1979 -Internet Message Protocol -Examples & Scenarios - - - - 1. Between the originating MPM and the relay MPM. - - LIST( LIST( INDEX=37, INTEGER=167772404 ), - LIST( INDEX=0, - command LIST( PROPLIST( IA: 167772359, - NET: arpa, - mailbox HOST: rand-unix, - USER: DCrocker ), - stamp LIST( INTEGER=167772404 ), - type INDEX=1 - operation TEXT="DELIVER" - arguments LIST( LIST( TEXT="REGULAR" )), - error-list LIST( ) ) ), - LIST( LIST( INDEX=0, - document-header PROPLIST( - DATE: 1979-03-29-11:46-08:00 - FROM: Jon Postel - SUBJECT: Meeting Thursday - TO: Dave Crocker - CC: Mamie ) ), - LIST( INDEX=0, - document-body LIST( TEXT= - "Dave: - - Please mark your calendar for - our meeting Thursday at 3 pm. - - --jon." ) ) ) ) - - The originating MPM sends the message of example 1 to a relay MPM. - - - - - - - - - - - - - - - - - - - - -[Page 44] Postel - - -March 1979 - Internet Message Protocol - Examples & Scenarios - - - - 2. Between the relay MPM and the destination MPM. - - LIST( LIST( INDEX=37, INTEGER=167772404 ), - LIST( INDEX=0, - command LIST( PROPLIST( IA: 167772359, - NET: arpa, - mailbox HOST: rand-unix, - USER: DCrocker ), - stamp LIST( INTEGER=167772404, - INTEGER=167772246 ), - type INDEX=1 - operation TEXT="DELIVER" - arguments LIST( LIST( TEXT="REGULAR" )), - error-list LIST( ) ) ), - LIST( LIST( INDEX=0, - document-header PROPLIST( - DATE: 1979-03-29-11:46-08:00 - FROM: Jon Postel - SUBJECT: Meeting Thursday - TO: Dave Crocker - CC: Mamie ) ), - LIST( INDEX=0, - document-body LIST( TEXT= - "Dave: - - Please mark your calendar for - our meeting Thursday at 3 pm. - - --jon." ) ) ) ) - - The relay MPM adds its ihn to the stamp, but otherwise the message - is unchanged. - - - - - - - - - - - - - - - - - - -Postel [Page 45] - - - March 1979 -Internet Message Protocol -Examples & Scenarios - - - - 3. Between the destination MPM and the relay MPM. - - LIST( LIST( INDEX=1993, INTEGER=167772359 ), - LIST( INDEX=0, - command LIST( PROPLIST( IA: 167772404, - mailbox USER: *MPM* ), - stamp LIST( INTEGER=167772359 ), - type INDEX=2 - operation TEXT="ACKNOWLEDGE" - arguments LIST( LIST( INDEX=37, - tid INTEGER=167772404 ), - LIST( INTEGER=167772404, - trail INTEGER=167772246, - INTEGER=167772359 ), - answer BOOLEAN=TRUE, - reason LIST( TEXT="OK" ), - how-delivered LIST( TEXT="ACCEPT" ) ), - error-list LIST( INDEX=0, - TEXT="No Errors") ), - document LIST( ) ) - - The destination MPM delivers the message to the user's UIP, and - composes an acknowledgment. The acknowledgment is addressed to - the originating MPM. Note that the trail is the stamp of the - incoming message plus the ihn of the destination MPM. - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 46] Postel - - -March 1979 - Internet Message Protocol - Examples & Scenarios - - - - 4. Between the relay MPM and the originating MPM. - - LIST( LIST( INDEX=1993, INTEGER=167772359 ), - LIST( INDEX=0, - command LIST( PROPLIST( IA: 167772404, - mailbox USER: *MPM* ), - stamp LIST( INTEGER=167772359 - INTEGER=167772246), - type INDEX=2 - operation TEXT="ACKNOWLEDGE" - arguments LIST( LIST( INDEX=37, - tid INTEGER=167772404 ), - LIST( INTEGER=167772404, - trail INTEGER=167772246, - INTEGER=167772359 ), - answer BOOLEAN=TRUE, - reason LIST( TEXT="OK" ), - how-delivered LIST( TEXT="ACCEPT" ) ), - error-list LIST( INDEX=0, - TEXT="No Errors") ), - document LIST( ) ) - - The relay MPM adds its ihn to the stamp and forwards the - acknowledgment. - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 47] - - - March 1979 -Internet Message Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 48] Postel - - -March 1979 - Internet Message Protocol - - - - GLOSSARY - - - -1822 - BBN Report 1822, "The Specification of the Interconnection of - a Host and an IMP". The specification of interface between a - host and the ARPANET. - -Command List - The part of a message used by the MPMs to determine the - processing action to be taken. - -datagram - A logical unit of data, in particular an internet datagram is - the unit of data transfered between the internet module and a - higher level module. - -Destination - The destination address, an internet header datagram protocol - field. - -Document List - The part of the message created by or delivered to a user. - -header - Control information at the beginning of a message, segment, - datagram, packet or block of data. - -IMP - The Interface Message Processor, the packet switch of the - ARPANET. - -Internet Address - A four octet (32 bit) source or destination address consisting - of a Network field and a Local Address field. - -internet datagram - The unit of data exchanged between a pair of internet modules - (includes the internet header). - -Local Address - The address of a host within a network. The actual mapping of - an internet local address on to the host addresses in a - network is quite general, allowing for many to one mappings. - - - - - - -Postel [Page 49] - - - March 1979 -Internet Message Protocol -Glossary - - - -message - The unit of information transmitted between users of message - systems. As transmitted between MPMs a message consists of a - Transaction Identifier, a Command List, and a Document List. - -module - An implementation, usually in software, of a protocol or other - procedure. - -MPM - A Message Processing Module, the process which implements this - internet message protocol. - -octet - An eight bit byte. - -Rest - The 3 octet (24 bit) local address portion of an Internet - Address. - -RTP - Real Time Protocol: A host-to-host protocol for communication - of time critical information. - -Source - The source address, an internet header field. - -TCP - Transmission Control Protocol: A host-to-host protocol for - reliable communication in internetwork environments. - -Transaction Identifier - The unique identifier of a message. - -Type of Service - An internet datagram protocol header field which indicates the - type (or quality) of service for this internet packet. - -UIP - A User Interface Program, a program which presents message - data to a user and accepts message data from a user. A - program which interacts with the user in the composition and - examination of messages. - -XNET - A cross-net debugging protocol. - - - - -[Page 50] Postel - - -March 1979 - Internet Message Protocol - - - - REFERENCES - - - -[1] Barber, D., and J. Laws, "A Basic Mail Scheme for EIN," INWG 192, - February 1979. - -[2] Bhushan, A., K. Progran, R. Tomlinson, and J. White, - "Standardizing Network Mail Headers," RFC 561, NIC 18516, 5 - September 1973. - -[3] Bolt Beranek and Newman, "Specification for the Interconnection of - a Host and an IMP," BBN Technical Report 1822, May 1978 (Revised). - -[4] Braaten, O., "Introduction to a Mail Protocol," Norwegian - Computing Center, INWG 180, August 1978. - -[5] Cerf, V., "The Catenet Model for Internetworking," Information - Processing Techniques Office, Defense Advanced Research Projects - Agency, IEN 48, July 1978. - -[6] Crocker, D., J. Vittal, K. Progran, and D. Henderson, "Standard - for the Format of ARPA Network Text Messages," RFC 733, NIC 41952, - 21 November 1977. - -[7] Crocker, D., E. Szurkowski, and D. Farber, "Components of a - Channel-independent Memo Transmission System," Department of - Electrical Engineering, University of Delaware,, February 1979. - -[8] Feinler, E. and J. Postel, eds., "ARPANET Protocol Handbook," - NIC 7104, for the Defense Communications Agency by the Network - Information Center of SRI International, Menlo Park, California, - Revised January 1978. - -[9] Harrenstien, K., "Field Addressing," ARPANET Message, SRI - International, October 1977. - -[10] Haverty, J., "MSDTP -- Message Services Data Transmission - Protocol," RFC 713, NIC 34739, April 1976. - -[11] Haverty, J., "Thoughts on Interactions in Distributed Services," - RFC 722, NIC 36806, 16 September 1976. - -[12] Haverty, J., D. Henderson, and D. Oestreicher, "Proposed - Specification of an Inter-site Message Protocol," 8 July 1975. - -[13] ISO-2014, "Writing of calendar dates in all-numeric form," - Recommendation 2014, International Organization for - Standardization, 1975. - - -Postel [Page 51] - - - March 1979 -Internet Message Protocol -References - - - -[14] ISO-3307, "Information Interchange -- Representations of time of - the day," Recommendation 3307, International Organization for - Standardization, 1975. - -[15] ISO-4031, "Information Interchange -- Representation of local time - differentials," Recommendation 4031, International Organization - for Standardization, 1978. - -[16] Myer, T., and D. Henderson, "Message Transmission Protocol," - RFC 680, NIC 32116, 30 April 1975. - -[17] Postel, J. "Internetwork Datagram Protocol, Version 4," USC - Information Sciences Institute, IEN 80, February 1979. - -[18] Postel, J. "NSW Data Representation (NSWB8)," IEN 39, May 1978. - -[19] Postel, J. "NSW Transaction Protocol (NSWTP)," IEN 38, May 1978. - -[20] Postel, J. "Transmission Control Protocol, TCP, Version 4," USC - Information Sciences Institute, IEN 81, February 1979. - -[21] Postel, J., "Assigned Numbers," RFC 750, NIC 45500, - 26 September 1978. - -[22] Postel, J., "Message System Transition Plan," JBP 64, - USC-Information Sciences Institute, February 1979. - -[23] Rivest, R. L. "A Method for Obtaining Digital Signatures and - Public-Key Cryptosystems" Communications of the ACM, Vol. 21, - Number 2, February 1978. - -[24] Shoch, J., "A Note On Inter-Network Naming, Addressing, and - Routing," Xerox Palo Alto Research Center, IEN 19, January 1978. - -[25] Thomas, R., "Providing Mail Services for NSW Users," BBN NSW - Working Note 24, Bolt Beranek and Newman, October 1978. - -[26] White, J., "A Proposed Mail Protocol," RFC 524, NIC 17140, 13 June - 1973. - -[27] White, J., "Description of a Multi-Host Journal," NIC 23144, - 30 May 1974. - -[28] White, J., "Journal Subscription Service," NIC 23143, 28 May 1974. - - - - - - -[Page 52] Postel - - -March 1979 - Internet Message Protocol - - - - APPENDICES - -A. Encryption - - It would be straightforward to add the capability to have the document - portion of messages either wholly or partially encrypted. The - approach is to define an additional basic data element to carry - encrypted data. The data within this element could be composed of - other elements, but that could only be perceived after the data was - decrypted. - - - +------+------+------+------+------- - 9 Encrypt ! 9 ! octet count ! Data ... - +------+------+------+------+-------- - - Element code 9 (ENCRYPT) is Encrypt. The format is the one octet type - code, the three octet type count, and count octets of data. Use of - this element indicates that the data it contains is encrypted. The - encryption scheme is yet to be decided but will probably be the Public - Key Encryption technique [23] due to the capacity for coded - signatures. - - To process this, the user is asked for the appropriate key the first - time an encryption block is seen for a particular message. The - encrypted data is then decrypted. The data thus revealed will be in - the form of complete data type fields. Encryption cannot occur over a - partial field. The revealed data is then processed normally. - - Note that there is no reason why all fields of a document could not be - encrypted including all document header information such as From, - Date, etc. - - - - - - - - - - - - - - - - - - - -Postel [Page 53] - - - March 1979 -Internet Message Protocol -Appendices - - - -B. Data Compression - - When message-bags are shipped between MPMs the data should be - compressed according to the following scheme: - - shipping-unit := compression-type message-bag - - compression-type := A one octet compression type indicator. - - compression-type value description - ---------------------- ----------- - 0 no compression used - 1 basic compression - - basic compression - - This basic compression procedure is the same as that defined for - use with the ARPANET FTP [8]. Three types of compression-units - may be formed, sequence-units, replication-units, and - filler-units. The data is formed into a series of - compression-units independent of the structure or object and - element boundaries. - - sequence-unit - - A sequence-unit is a one octet flag and count followed by that - many data octets. - - +-+-------+--------+--------+---- - !0! n ! n data octets ... - +-+-------+--------+--------+---- - - The flag and count octet has its high order bit zero and the - remaining bits indicate the count (in the range 0 to 127) of - following data octets. - - replication-unit - - A replication-unit is a one octet flag and count followed by one - data octet, which is to be replicated count times. - - +--+------+--------+ - !10! n ! data ! - +--+------+--------+ - - The flag and count octet has its high order two bits equal - one-zero and the remaining six bits indicate the count (in the - range 0 to 63) of number of time to replicate the data octet. - - -[Page 54] Postel - - -March 1979 - Internet Message Protocol - Appendices - - - - filler-unit - - A filler-unit is a one octet flag and count, indicating that a - filler octet is to be inserted count times. - - +--+------+ - !11! n ! - +--+------+ - - The flag and count octet has its high order two bits equal - one-one and the remaining six bits indicate the count (in the - range 0 to 63) of number of time to insert the filler octet. - - The filler octet is zero, the octet with all bits zero. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 55] - - - March 1979 -Internet Message Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 56] Postel - diff --git a/text/ien/ien88.txt b/text/ien/ien88.txt deleted file mode 100644 index 7d4f129f..00000000 --- a/text/ien/ien88.txt +++ /dev/null @@ -1,216 +0,0 @@ - - - -IEN 88 - - - - - - - User Datagram Protocol - - - - - - - Jonathan B. Postel - - - - - - - - - - - - - - - 2 May 1979 - - - - - Information Sciences Institute - University of Southern California - 4676 Admiralty Way - Marina del Rey, California 90291 - - (213) 822-1511 - -IEN-88 J. Postel - ISI - 2 May 1979 - - - - User Datagram Protocol - ---------------------- - -Introduction ------------- - -This User Datagram Protocol is defined to make available a datagram mode -of packet-switched computer communication in the environment of an -interconnected set of computer networks. This protocol assumes that the -Internet Protocol (IN) [1] is used as the underlying protocol. - -This protocol provides a procedure for application programs to send -messages to other programs with a minimum of protocol mechanism. The -messages delivery is unordered and unreliable. Applications requiring -ordered reliable delivery of streams of data should use the Transmission -Control Protocol (TCP) [2]. - -Format ------- - - - 0 15 16 31 - +---------------+---------------+ - ! Source ! Destination ! - ! Port ! Port ! - +---------------+---------------+ - ! ! ! - ! Length ! Checksum ! - +---------------+---------------+ - ! - ! data octets ..... - +------------ ... - - User Datagram Header Format - -Fields ------- - -Source Port is an optional field, when meaningful, it indicates the port -of the sending process, and may be assumed to be the port to which a -reply should be addressed in the absence of any other information. If -not used, a value of zero is inserted. - -Destination Port has a meaning within the context of a particular -internet destination address. - - - -Postel [page 1] - - - 2 May 1979 -User Datagram Protocol IEN-88 -Fields - - - -Length is the length in octets of this user datagram including this -header and the data. (This means the minimum value of the length is -four.) - -Checksum is the 16-bit one's complement of the one's complement sum of -the source address and destination address fields from the internet -header, the fields above, and the data, padded with zero octets at the -end to make a multiple of two octets. - -If the computed checksum is zero, it is transmitted as all ones (the -equivalent in one's complement arithmetic). An all zero transmitted -checksum value means that the transmitter generated no checksum (for -debugging or for higher level protocols that don't care). - -User Interface --------------- - -A user interface should allow - - the creation of new receive ports, - - receive operations on the receive ports that return the data octets - and an indication of source port, if any, - - and an operation that allows a datagram to be sent, specifying the - data and source port to be sent. - -Protocol Application --------------------- - -The major use of this protocol is the Internet Name Server [3]. - -Protocol Number ---------------- - -This is protocol 17 (21 octal) when used in the Internet Protocol. -Other protocol numbers are listed in [4]. - - - - - - - - - - - - -[page 2] Postel - - -2 May 1979 -IEN-88 User Datagram Protocol - References - - - -References ----------- - -[1] Postel, J., "Internet Datagram Protocol -- Version 4," IEN-80, - USC-Information Sciences Institute, February 1979. - -[2] Postel, J., "Transmission Control Protocol -- Version 4," - IEN-81, USC-Information Sciences Institute, February 1979. - -[3] Postel, J., "Internet Name Server," USC-Information Sciences - Institute, IEN-89, May 1979. - -[4] Postel, J., "Assigned Numbers," USC-Information Sciences - Institute, RFC-755, IEN-93, May 1979. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [page 3] - diff --git a/text/ien/ien89.txt b/text/ien/ien89.txt deleted file mode 100644 index 1f0c89bc..00000000 --- a/text/ien/ien89.txt +++ /dev/null @@ -1,448 +0,0 @@ - - - -IEN 89 - - - Internet Name Server - - - - - Jon Postel - - - - - - - - - - - - - - - - - - - - - 2 May 1979 - - - - - Information Sciences Institute - University of Southern California - 4676 Admiralty Way - Marina del Rey, California 90291 - - (213) 822-1511 - -IEN-89 J. Postel - ISI - 2 May 1979 - - - - INTERNET NAME SERVER - -------------------- - -INTRODUCTION ------------- - -This memo defines the procedure to access an Internet Name Server. Such -a server provides the actual addresses of hosts in the internet when -supplied with a host name. An Internet Name Server is a dynamic -name-to-number translation service. - -This server utilizes the User Datagram Protocol (UDP) [2], which in turn -calls on the Internet Protocol (IN) [3]. - -NAME SYNTAX ------------ - -It is strongly recommended that the use of host names in programs be -consistent for both input and output across all hosts. To promote such -consistency of the internet level, the following syntax is specified: - -The SYNTAX of names as presented to the user and as entered by the user -is: - - | NET | REST - - where: - - NET is a network name or number as defined in [1] - - and - - REST is a host name within that network expressed as a character - string or as a number. When a number is used, it is expressed in - decimals and is prefixed with a sharp sign (e.g., #1234). - - Note that this syntax has minimal impact on the allowable character - strings for host names within a network. The only restriction is that - a REST string cannot begin with an exclamation point (|). - - The |NET| may be omitted when specifying a host in the local network. - That is "|" indicates the network portion of a name string. - - - - - - -Postel [page 1] - - - 2 May 1979 -Internet Name Server IEN 89 - - - -NAME SERVER ------------ - -To aid in the translation of names to internet addresses, several name -server processes will be provided. The name server process will accept -a name in the above form and will return a name, address pair. - -The name server processes will have well-known addresses; addresses that -are constant over long periods of time and published in documents such -as [1]. - -A request sent to a name server is sent as a user datagram [2] with the -following content: - - +--------+--------+--------+--------+--------+--------+---\\---+ - | | | | - | NAME | LENGTH | NAME STRING | - | | | | - +--------+--------+--------+--------+--------+--------+---\\---+ - - where: - - NAME is a one octet code indicating that the following is a name, - - LENGTH is a one octet count of the number of octets in the name - string, and - - NAME STRING is an ASCII character string of the form | NET | REST. - -A reply to a successful translation is sent as a user datagram with the -following content: - - +--------+--------+--------+--------+--------+--------+---\\---+ - | | | | - | NAME | LENGTH | NAME STRING | - | | | | - +--------+--------+--------+--------+--------+--------+---\\---+ - | | | | - | ADDRESS| LENGTH | INTERNET ADDRESS | - | | | | - +--------+--------+--------+--------+--------+--------+ - - - - - - - - - -[page 2] Postel - - -2 May 1979 -IEN 89 Internet Name Server - - - - where: - - ADDRESS is a one octet code indicating that the following is an - internet address, - - LENGTH is a one octet count (=4) of the length of the internet - address, and - - INTERNET ADDRESS is the internet address. - -Actually a particular name might map to several internet addresses, in -this case the response would include a list of internet addresses. - -When a name is not found, an error is reported via a user datagram as -follows: - - +--------+--------+--------+--------+--------+--------+---\\---+ - | | | | - | NAME | LENGTH | NAME STRING | - | | | | - +--------+--------+--------+--------+--------+--------+---\\---+ - | | | ERROR | | - | ERROR | LENGTH | CODE | ERROR STRING | - | | | | | - +--------+--------+--------+--------+--------+--------+---\\---+ - - where: - - ERROR CODE specifies the error. - - ERROR STRING explains the error. - -Error Codes - - The following error codes are defined: - - CODE MEANING - ---- ------- - 0 Undetermined or undefined error - 1 Name not found - 2 Improper name syntax - 3 Name not found, but the following similar names exist - - Note Error 3 is followed by a list of name strings. - - - - - - -Postel [page 3] - - - 2 May 1979 -Internet Name Server IEN 89 - - - -Communication with a Name Server Process - - Communication with a name server process is via user datagrams. User - datagrams do not guarantee reliable communication. Thus, some - requests or replies may be lost. - - The name server process is a transaction oriented process; - furthermore, the nature of the transactions allows them to be - processed in any order and even to be duplicated. This allows the use - of a very simple communication protocol. - - If a request is made to the name server process and no response is - received within a reasonable time, then the requester should make the - request again. This recovers from communication errors which cause - the loss of either the request or the reply. - - In order to use this simple strategy, care must be taken to allow - replies to be properly matched with requests. The name server process - does this by including in each reply a copy of the entire request. - - The user datagram protocol does provide a checksum for the detection - of errors. - -Format - - The requests and replies to and from a name server process are encoded - as "items". An item consists of an item-code an item-length and the - item-data. The item-length includes in its count the item-count and - the item-length octets. - - Item := Item-Code Item-Length Item-Data - - +--------+--------+--------+--------+--------+--------+---\\---+ - | | | | - | Item | Item | Item | - | Code | Length | Data | - | | | | - +--------+--------+--------+--------+--------+--------+---\\---+ - - A request is typically one item, and a reply is typically two items. - - - - - - - - - - -[page 4] Postel - - -2 May 1979 -IEN 89 Internet Name Server - - - - - +--------+--------+--------+--------+ - |ItemCode|Item Len|... Item Data ...| - +--------+--------+--------+--------+ - | ......... Item Data cont ........ | - +--------+--------+--------+--------+ - | Item Data cont. |ItemCode|Item Len| - +--------+--------+--------+--------+ - | ........... Item Data ........... | - +--------+--------+--------+--------+ - -Item Code Value Assignments: - - NAME = 1 - - ADDRESS = 2 - - ERROR = 3 - -Example - - a typical request: - - - +-----------------+--------+--------+ - | 1 | 12 | | | A | - +--------+--------+--------+--------+ - | R | P | A | | | - +--------+--------+--------+--------+ - | I | S | I | B | - +--------+--------+--------+--------+ - - - - - - - - - - - - - - - - - - - -Postel [page 5] - - - 2 May 1979 -Internet Name Server IEN 89 - - - - and the reply: - - - +-----------------+--------+--------+ - | 1 | 12 | | | A | - +--------+--------+--------+--------+ - | R | P | A | | | - +--------+--------+--------+--------+ - | I | S | I | B | - +--------+--------+--------+--------+ - | 2 | 6 | 10 | 3 | - +--------+--------+--------+--------+ - | 0 | 52 | - +--------+--------+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[page 6] Postel - - -2 May 1979 -IEN 89 Internet Name Server -References - - - -References ----------- - -[1] J. Postel. "Assigned Numbers," RFC 755, IEN 93, May 1979. - -[2] J. Postel. "User Datagram Protocol," IEN 88, USC-Information - Sciences Institute, May 1979. - -[3] J. Postel. "Internet Datagram Protocol -- Version 4," IEN 80, - USC-Information Sciences Institute, February 1979. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [page 7] - diff --git a/text/ien/ien9.txt b/text/ien/ien9.txt deleted file mode 100644 index 4aec8961..00000000 --- a/text/ien/ien9.txt +++ /dev/null @@ -1,130 +0,0 @@ -IEN # 9 Radia Perlman -Supercedes: None BBN -Replaces: None 26 August 1977 - -Section: 2.2.2.5 - - The Host Simp Protocol Module - - A rough design specification - - Radia Perlman - - - HOSIMP, the host SIMP protocol module, is basically a - -multiplexor, allowing fake hosts and a gateway to all talk to the - -same SIMP. In addition it can, if desired, do some functions that - -otherwise would have to be duplicated by all processes using it, - -such as recognizing a restart condition or resending packets - -which were refused. - - A fake host will communicate with HOSIMP by first - -executing an EMT which HOSIMP will define, passing parameters - -identifying the fake host, and possibly some flags telling HOSIMP - -how to treat that host, and HOSIMP will return IPP numbers over - -which the host can send and receive data to and from HOSIMP. A - -read on the IPP from HOSIMP to the fake host will complete when - -the SIMP sends data addressed to that host, either a packet or - -information about one of the host's previous packets. A packet - -written on the IPP port from the fake host to HOSIMP will be sent - -on to the SIMP, after HOSIMP assigns the next sequential host - -reference number in place of the 7 bit reference number assigned - -by the host. When HOSIMP receives an accepted message, HOSIMP - -will translate the host reference number into the 7 bit number - -originally assigned by the host. Other than that HOSIMP could - -conceivably just send everything through to the host. - - - - - - -The Gateway/HOSIMP interface - - HOSIMP receives and queues packets from the gateway and - -sends them on to the SIMP after substituting the next sequential - -host reference number for the number supplied by the gateway. - -Refused packets are placed back in the queue of packets to be - -sent, whereas accepted packets are discarded. HOSIMP does not - -send any control information back to the gateway. The gateway is - -not concerned with restarts, it does not use any of the options - -that return control information (like SENT messages), and HOSIMP - -drops any packet for which it receives any REFUSED message (other - -than resources busy). - - -Fake Host/HOSIMP interface--option 1 - - In this option HOSIMP behaves as it does with the - -gateway, but it passes all control messages (except for - -REFUSED--resources busy) back to the fake host. - - -Fake Host/HOSIMP interface--option 2 - - In this option HOSIMP does not requeue refused - -messages. HOSIMP, except for substituting a different host - -reference number, merely passes packets and control information - -through. The fake host maintains its own queue of packets. - -However, the packet it sends to HOSIMP does get queued, because - -it must compete with other traffic sources and the packets HOSIMP - -has queued for retransmission. - - The fake host chooses which option it wants by passing - -a parameter in the original EMT it executes. - - - - - - - -Queuing algorithm - - The method of ordering queued packets has yet to be - -resolved. One method is giving gateway traffic the highest - -priority. Another is to send packets in the order they are - -received. Another would be to simulate as closely as possible the - -algorithm the SIMP uses for ordering packets. - \ No newline at end of file diff --git a/text/ien/ien90.txt b/text/ien/ien90.txt deleted file mode 100644 index 7f217092..00000000 --- a/text/ien/ien90.txt +++ /dev/null @@ -1,391 +0,0 @@ - -2 May 1979 - - -IEN 90 - - - - - - - Multiplexing Protocol - - - - - Danny Cohen - - Jon Postel - - - - - - - - - - - - - - - 2 May 1979 - - - - - Information Sciences Institute - University of Southern California - 4676 Admiralty Way - Marina del Rey, California 90291 - - (213) 822-1511 - - - - - -IEN-90 D. Cohen - J. Postel - ISI - 2 May 1979 - - - - Multiplexing Protocol - --------------------- - -Introduction ------------- - -This Multiplexing Protocol is defined to allow the combining of -transmission units of different higher level protocols in one -transmission unit of a lower level protocol. Only messages with the -same Internet Protocol (IN) [1] header, with the possible exception of -the protocol field may be combined. For example, the msg (H1, B1) and -the message (H2, B2), where Hi and Bi are the headers and the bodies of -the messages, respectively, may be combined (multiplexed) only if -H=H1=H2. The combined messages are either (H, B1, B2) or (H, B2, B1). - -Since (H,D1)+(H,D2)=(H,D1+D2) resembles the notion of factoring, we -sometime refer to this process as "factoring". - -The receiver of this combined message should treat it as if the two -original messages, (H,D1), and (H,D2), arrived separately, in either -order. - -The multiplexing is achieved by combining the individual messages, -(H,B1) through (H,Bn), into a single message. This single message has -an IN header which is equal to H, but having in the PROTOCOL field the -value 18 which is the protocol number of the multiplexing protocol. -This IN header is followed by all the message bodies, B1 through Bn. -Each message body, Bi, is preceeded by a 4 octet multiplexing link. -This link contain the number of the protocol to which this body is -addressed. It also contain the total length of this portion (message -body), including this multiplexing link. Since this link is not -otherwise protected by a checksum, it also includes a checksum field -which covers this multiplexing link. - -If an error is discovered in a checksum of some multiplexing header, the -rest of the message, starting there, is ignored. - -If an unknown PROTOCOL field is discovered in any multiplexing header, -this section, and only this one, is ignored. - - - - -Cohen & Postel [page 1] - - - 2 May 1979 -Multiplexing Protocol IEN-90 -Introduction - - - -The demultiplexing routine should be able to handle recursively -multiplexed messages. This is to allow higher level protocol to -demultiplex their own messages if they can be combined. Since such a -multiplexed message may be multiplexed again by the IN level, a -multi-level multiplexing results. - -This protocol assumes that the Internet Protocol is used as the -underlying protocol. - -Format ------- - - - 0 7 8 15 16 31 - +--------+--------+----------------+ - | | | | - | CS |Protocol| Length | - | | | | - +--------+--------+----------------+ - - Multiplexing Header Format - -Fields ------- - -CS is a checksum covering only this 32 bit multiplexing header. Until -further notice, it is the exclusive OR of the other three octets in this -header. - -Protocol is the number of the following protocol. - -Length is the length in octets of this header and the following protocol -block. Hence, it must be at least 4. - - - - - - - - - - - - - - - - -[page 2] Cohen & Postel - - -2 May 1979 -IEN-90 Multiplexing Protocol - Example - - - -Example -------- - - - 0 15 16 31 - +--------+--------+--------+--------+ - | CS |Protocol| Length | - +--------+--------+--------+--------+ - | a transmission unit | - | of some protocol | - +--------+--------+--------+--------+ - | CS |Protocol| Length | - +--------+--------+--------+--------+ - | a transmission unit | - | of some protocol | - +--------+--------+--------+--------+ - | CS |Protocol| Length | - +--------+--------+--------+--------+ - | a transmission unit | - | of some protocol | - +--------+--------+--------+--------+ - - Multiplexing Protocol Concept - - - - - - - - - - - - - - - - - - - - - - - - - - -Cohen & Postel [page 3] - - - 2 May 1979 -Multiplexing Protocol IEN-90 -Example - - - - - 0 15 16 31 - +--------+--------+--------+--------+ - | CS |datagram| Length = 20 | ----+ - +--------+--------+--------+--------+ | - | source socket | dest. socket | | - +--------+--------+--------+--------+ | - | length = 8 | checksum | | - +--------+--------+--------+--------+ | - | data | | - +--------+--------+--------+--------+ | - | data | | - +--------+--------+--------+--------+ <---+ - | CS | TCP | Length = 32 | ----+ - +--------+--------+--------+--------+ | - | source port | destination port| | - +--------+--------+--------+--------+ | - | sequence number | | - +--------+--------+--------+--------+ | - | acknowledgment number | | - +--------+--------+--------+--------+ | - |offset control| window | | - +--------+--------+--------+--------+ | - | checksum | urgent pointer | | - +--------+--------+--------+--------+ | - | data | | - +--------+--------+--------+--------+ | - | data | | - +--------+--------+--------+--------+ <---+ - | CS |datagram| Length = 16 | ----+ - +--------+--------+--------+--------+ | - | source socket | dest. socket | | - +--------+--------+--------+--------+ | - | length = 4 | checksum | | - +--------+--------+--------+--------+ | - | data | | - +--------+--------+--------+--------+ <---+ - - Multiplexing Protocol Example - -Protocol Application --------------------- - -The major use of this protocol is to allow several transmission units -from differing (or the same) higher level protocols to be combined into -one transmission unit of a lower level protocol. - - - -[page 4] Cohen & Postel - - -2 May 1979 -IEN-90 Multiplexing Protocol - Protocol Number - - - -Protocol Number ---------------- - -This is protocol 18 (22 octal) when used in the Internet Protocol. -Other protocol numbers are listed in [2]. - -Notes ------ - -- If so desired, one has the option of applying this multiplexing - protocol recursively. - -- The receiving process should never be able to tell if its messages - were multiplexed or not. The multiplexing is totally transparent to - the higher lever protocols. - -- Information from the external header (e.g., the IN header) is - available to each protocol in the multiplexed message. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Cohen & Postel [page 5] - - - 2 May 1979 -Multiplexing Protocol IEN-90 -References - - - -References ----------- - -[1] Postel, J., "Internet Datagram Protocol -- Version 4," IEN-80, - USC-Information Sciences Institute, February 1979. - -[2] Postel, J., "Assigned Numbers," USC-Information Sciences - Institute, RFC-755, IEN 93, May 1979. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[page 6] Cohen & Postel - diff --git a/text/ien/ien91.txt b/text/ien/ien91.txt deleted file mode 100644 index 023c6637..00000000 --- a/text/ien/ien91.txt +++ /dev/null @@ -1,222 +0,0 @@ - - - - IEN 91 - - - - - - - Address Mappings - - - - - - - Jonathan B. Postel - - - - - - - - - - - - - - - 2 May 1979 - - - - - Information Sciences Institute - University of Southern California - 4676 Admiralty Way - Marina del Rey, California 90291 - - (213) 822-1511 - - - J. Postel -IEN 91 ISI - 2 May 1979 - - - - ADDRESS MAPPINGS - ---------------- - - - -Internet Address ----------------- - - This memo describes the relationship between address fields used in - the Internet Protocol (IN) [1] and several specific networks. - - An internet address is a 32 bit quantity, divided into an 8 bit - network number and a 24 bit local address as shown below. - - +--------+--------+--------+--------+ - ! Net ! Local Address ! - +--------+--------+--------+--------+ - - The local address carries information to address a host in the - network identified by the network number. Since each network has a - particular address format and length, the following section describes - the mapping between internet local addresses and the actual address - format used in the particular network. - -Internet to Local Net Address Mappings --------------------------------------- - - The following transformations are used to convert internet addresses - to local net addresses and vice versa: - - ARPANET - ------- - - The ARPANET (with 96 bit leaders) has 24 bit addresses. The 24 - bits are assigned to host, logical host, and IMP fields as - illustrated below. These 24 bit addresses are used directly - for the 24 bit local address of the internet address. - - The network number of the ARPANET is 10. - - +--------+--------+--------+ - ! HOST ! LH ! IMP ! - +--------+--------+--------+ - 8 8 8 - - - - - -Postel [Page 1] - - - 2 May 1979 -IEN 91 Address Mappings - - - - SATNET - ------ - - The Atlantic Satellite Packet Network has 16 bit addresses for - hosts. These addresses may be assigned independent of location - (i.e., ground station). It is also possible to assign several - addresses to one physical host, so the addresses are logical - addresses. The 16 bit SATNET address is located in the 24 bit - internet local address as shown below. - - The network number of the SATNET is 4. - - +--------+----------------+ - ! ZERO ! HOST ! - +--------+----------------+ - 8 16 - - PRNET - ----- - - The Packet Radio networks use 16 bit addresses. These are - independent of location (indeed the hosts may be mobile). The - 16 bit PRNET addresses are located in the 24 bit internet local - address as shown below. - - The network numbers of the PRNETs are: - - BBN-PR 1 - SF-PR-1 2 - SILL-PR 5 - SF-PR-2 6 - BRAGG-PR 9 - DC-PR 20 - - +--------+----------------+ - ! ZERO ! HOST ! - +--------+----------------+ - 8 16 - - LCSNET - ------ - - The LCS NET at MIT's Laboratory for Computer Science uses 32 - bit addresses of several formats. Please see [2] for more - details. The most common format locates the low order 24 bits - of the 32 bit LCS NET address in the 24 bit internet local - address, as shown below. - - The network number of the LCS NET is 18. - - - -Postel [Page 2] - - - 2 May 1979 -IEN 91 Address Mappings - - - - +--------+--------+--------+ - ! SUB !RESERVED! HOST ! - ! NET ! ! ! - +--------+--------+--------+ - 8 8 8 - - EDN - --- - - The Experimental Data Network at the Defense Communication - Engineering Center (DCEC) uses the old 1822 32 bit leader, and - so has 8 bit addresses. These 8 bit EDN addresses are located - in the 24 bit internet local address as shown below. - - The network number of the EDN is 21. - - +------+--+----------+------+ - ! ! H! ! ! - ! ZERO ! O! ZERO ! IMP ! - ! ! S! ! ! - ! ! T! ! ! - +------+--+----------+------+ - 6 2 10 6 - -References ----------- - - [1] Jonathan B. Postel, "Internetwork Datagram Protocol - Version - 4," Information Sciences Institute, IEN 80, February 1979. - - [2] Noel Chiappa, David Clark, David Reed, "LCS Net Address - Format," M.I.T. Laboratory for Computer Science Network - Implementation, Note No.5, IEN 82, February 1979. - - - - - - - - - - - - - - - - - - - -Postel [Page 3] - diff --git a/text/ien/ien92.txt b/text/ien/ien92.txt deleted file mode 100644 index 336edde0..00000000 --- a/text/ien/ien92.txt +++ /dev/null @@ -1,568 +0,0 @@ - - - - -IEN 92 - - - Protocol Options - - - - - - Jon Postel - - - - - - - - - - - - - - - - - - - 2 May 1979 - - - - - - Information Sciences Institute - University of Southern California - 4676 Admiralty Way - Marina del Rey, California 90291 - - (213) 822-1511 - - - - -IEN-92 J. Postel - ISI - 2 May 1979 - - - - PROTOCOL OPTIONS - ---------------- - -Introduction ------------- - -This memo collectes the definition of the various options used in the -Internet protocols, in particular the options from Internet -Protocol (IN) [1] and Transmission Control Protocol (TCP) [2]. - -Internet Protocol Options -------------------------- - -The option field is variable in length. The format is an option-type -octet, an option-length octet, and the actual option-data octets. There -are two special case options which have only the option-type octet. - -The option-length octet, which follows, includes the option-type octet -and the option-length octet in the octet count of the option length. - -The option-type octet can be viewed as having 3 fields: - - 1 bit reserved, must be zero - 2 bits option class, - 5 bits option number. - -The option classes are: - - 0 = control - 1 = internet error - 2 = experimental debugging and measurement - 3 = reserved for future use - - - - - - - - - - - - - - - - -Postel [page 1] - - - - 2 May 1979 -Protocol Options IEN 92 - - - -The following internet options are defined: - - CLASS NUMBER LENGTH DESCRIPTION - ----- ------ ------ ----------- - 0 0 - End of Option list. This option occupies only 1 - octet; it has no length octet. - 0 1 - No Operation. This option occupies only 1 octet; - it has no length octet. - 0 2 4 S/P/T. Used to carry Security, Precedence, and - user group (TCC) information compatible with - AUTODIN II requirements. - 0 3 var. Source Routing. Used to route the internet packet - based on information supplied by the source. - 0 4 var. BCR Open. - 0 5 var. BCR Close. - 0 6 var. BCR other. - 0 7 var. Return Route. Used to record the route taken by - an internet packet. - 1 1 var. General Error Report. Used to report errors in - internet packet processing. - 2 4 4 Internet Timestamp. Used to carry timestamping - information. - 2 5 4 Satellite Timestamp. Used as above for - special satellite network testing. - -Specific Option Definitions - - End of Option List - - +--------+ - |00000000| - +--------+ - Type=0 - - This option indicates the end of the option list. This might not - coincide with the end of the internet header according to the - internet header length. This is used at the end of all options, not - the end of each option, and need only be used if the end of the - options would not otherwise coincide with the end of the internet - header. - - - - - - - - - -[page 2] Postel - - - -2 May 1979 -IEN 92 Protocol Options - - - - No Operation - - +--------+ - |00000001| - +--------+ - Type=1 - - This option may be used between options, for example, to align the - beginning of a subsequent option on a 32 bit boundary. - - S/P/T - - This option provides a way for AUTODIN II hosts to send security, - precedence, and TCC (closed user groups) parameters through networks - whose transport leader does not contain fields for this information. - The format for this option is as follows: - - +--------+--------+---------+--------+ - |00000010|00000100|Prec|Sec | TCC | - +--------+--------+---------+--------+ - Type=2 Length=4 - - Precedence: 4 bits - - Specifies one of 16 levels of precedence - - Security: 4 bits - - Specifies one of 16 levels of security - - Transmission Control Code: 8 bits - - Provides a means to compartmentalize traffic and define controlled - communities of interest among subscribers. - - This option might be used between hosts on the AUTODIN II network - and other networks, such as the EDN at DCEC. - - - - - - - - - - - - -Postel [page 3] - - - - 2 May 1979 -Protocol Options IEN 92 - - - - Source Route - - +--------+--------+--------+---------//--------+ - |00000011| length | source route | - +--------+--------+--------+---------//--------+ - Option=3 - - The source route option provides a means for the source of an - internet datagram to supply routing information to be used by the - gateways in forwarding the datagram to the destination. - - The option begins with the option type code. The second octet is - the option length which includes the option type code and the length - octet, as well as length-2 octets of source route data. - - A source route is composed of a series of internet addresses. Each - internet address is 32 bits or 4 octets. The length defaults to - two, which indicates the source route is empty and the remaining - routing is to be based on the destination address field. - - If the address in destination address field has been reached and the - length is not two, the next address in the source route replaces the - address in the destination address field, and that address is - deleted from the source route and the length is reduced by four. - - Return Route - - +--------+--------+--------+---------//--------+ - |00000111| length | return route | - +--------+--------+--------+---------//--------+ - Option=7 - - The return route option provides a means to record the route of an - internet datagram. - - The option begins with the option type code. The second octet is - the option length which includes the option type code and the length - octet, as well as length-2 octets of return route data. - - A return route is composed of a series of internet addresses. The - length defaults to two, which indicates the return route is empty. - - When an internet module routes a datagram it checks to see if the - return route option is present. If it is, it inserts its own - internet address as known in the environment into which this - - - - -[page 4] Postel - - - -2 May 1979 -IEN 92 Protocol Options - - - - datagram is being forwarded into the return route at the front of - the address string and increments the length by four. - - BCR Options - - BCR OPEN - - +--------+--------+------ - |00000100| length | data - +--------+--------+------ - Type=4 - - BCR CLOSE - - +--------+--------+------ - |00000101| length | data - +--------+--------+------ - Type=5 - - BCR OTHER - - +--------+--------+------ - |00000110| length | data - +--------+--------+------ - Type=6 - - These options are used with the BCR. - - General Error Report - - +--------+--------+--------+--------+--------//--------+ - |00100001| length |err code| id | | - +--------+--------+--------+--------+--------//--------+ - Type=33 - - The general error report is used to report an error detected in - processing an internet packet to the originator of that packet. The - "err code" indicates the type of error detected and the "id" is - copied from the identification field of the packet in error, - additional octets of error information may be present depending on - the err code. - - ERR CODE: - - 0 - Undetermined Error, used when no information is available - about the type of error or the error does not fit any defined - - - -Postel [page 5] - - - - 2 May 1979 -Protocol Options IEN 92 - - - - class. Following the id should be as much of the datagram as fits - in the option space. - - No err codes have been defined for specific classes as yet. - - Internet Timestamp - - +--------+--------+--------+--------+--------+--------+ - |01000100|00000100| time in milliseconds | - +--------+--------+--------+--------+--------+--------+ - Type=68 Length=4 - - The data of the timestamp is a 32 bit time measured in milliseconds. - - Satellite Timestamp - - +--------+--------+--------+--------+--------+--------+ - |01000101|00000100| time in milliseconds | - +--------+--------+--------+--------+--------+--------+ - Type=69 Length=4 - - The data of the timestamp is a 32 bit time measured in milliseconds. - -The options are just that, optional. That is, the presence or absence -of an option is the choice of the sender, but each internet module must -understand how to process every option. - -Transmission Control Protocol Options -------------------------------------- - -Options may occupy space at the end of the TCP header and are a multiple -of 8 bits in length. All options are included in the checksum. An -option may begin on any octet boundary. All options have the same basic -format: - - Option kind: 8 bits - - Option length: 8 bits - - Length in octets (including the two octets of length and kind - information) - - There are two special cases for options. - - The first is the End-of-Options option. Only one octet is - associated with this option, the kind octet itself. - - - -[page 6] Postel - - - -2 May 1979 -IEN 92 Protocol Options - - - - The second is the No-Operation option and is also one octet long. - - Note that the list of options may be shorter than the data offset - field might imply. The content of the header beyond the End-of-Option - option should be header padding (i.e., zero). - -Currently defined options include (kind indicated in octal): - - Kind Length Meaning - ---- ------ ------- - 0 - End of option list. - 1 - No-Operation. - 100 - Reserved. - 105 4 Buffer Size. - - -Specific Option Definitions - - End of Option List - - +--------+ - |00000000| - +--------+ - Kind=0 - - This option code indicates the end of the option list. This might - not coincide with the end of the TCP header according to the Data - Offset field. This is used at the end of all options, not the end - of each option, and need only be used if the end of the options - would not otherwise coincide with the end of the TCP header. - - No-Operation - - +--------+ - |00000001| - +--------+ - Kind=1 - - This option code may be used between options, for example, to align - the beginning of a subsequent option on a word boundary. There is - no guarantee that senders will use this option, so receivers must be - prepared to process options even if they do not begin on a word - boundary. - - - - - - -Postel [page 7] - - - - 2 May 1979 -Protocol Options IEN 92 - - - Buffer Size - - +--------+--------+---------+--------+ - |01000101|00000100| buffer size | - +--------+--------+---------+--------+ - Kind=105 Length=4 - - Buffer Size Option Data: 16 bits - - If this option is present, then it communicates the receive buffer - size at the TCP which sends this segment. This field should only - be sent in segments with the SYN control bit set. If this option - is not used, the default buffer size of one octet is assumed. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[page 8] Postel - - - -2 May 1979 -IEN 92 Protocol Options - References - - - -References ----------- - -[1] Postel, J., "Internetwork Datagram Protocol -- Version 4," - IEN 80, USC-Information Sciences Institute, February 1979. - -[2] Postel, J., "Transmission Control Protocol -- Version 4," - IEN 81, USC-Information Sciences Institute, February 1979. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [page 9] - diff --git a/text/ien/ien93.txt b/text/ien/ien93.txt deleted file mode 100644 index b0d5505b..00000000 --- a/text/ien/ien93.txt +++ /dev/null @@ -1,696 +0,0 @@ - - - - - - - -Network Working Group J. Postel -Request for Comments: 755 USC-ISI -IEN: 93 3 May 1979 - -Obsoletes: 750, -739, 604, 503, 433, 349 - - - - ASSIGNED NUMBERS - - - - -This Network Working Group Request for Comments documents the currently -assigned values from several series of numbers used in network protocol -implementations. This RFC will be updated periodically, and in any case -current information can be obtained from Jon Postel. The assignment of -numbers is also handled by Jon. If you are developing a protocol or -application that will require the use of a link, socket, etc. please -contact Jon to receive a number assignment. - - Jon Postel - USC - Information Sciences Institute - 4676 Admiralty Way - Marina del Rey, California 90291 - - phone: (213) 822-1511 - - ARPANET mail: POSTEL@ISIB - -Most of the protocols mentioned here are documented in the RFC series of -notes. The more prominent and more generally used are documented in the -Protocol Handbook [1] prepared by the Network Information Center (NIC). -In the lists that follow a bracketed number, e.g. [1], off to the right -of the page indicates a reference for the listed protocol. - - - - - - - - - - - - - -Postel [Page 1] - - -RFC 755 3 May 1979 -IEN 93 Assigned Numbers -Link Numbers - - - - ASSIGNED LINK NUMBERS - - The word "link" here refers to a field in the original ARPANET - Host/IMP interface leader. The link was originally defined as an 8 - bit field. Some time after the ARPANET Host-to-Host (AHHP) protocol - was defined and, by now, some time ago the definition of this field - was changed to "Message-ID" and the length to 12 bits. The name link - now refers to the high order 8 bits of this 12 bit message-id field. - The low order 4 bits of the message-id field are to be zero unless - specifically specified otherwise for the particular protocol used on - that link. The Host/IMP interface is defined in BBN report 1822 [2]. - - Link Assignments: - - Decimal Octal Description References - ------- ----- ----------- ---------- - 0 0 AHHP Control Messages [1,3] - 1 1 Reserved - 2-71 2-107 AHHP Regular Messages [1,3] - 72-151 110-227 Reserved - 152 230 PARC Universal Protocol - 153 231 TIP Status Reporting - 154 232 TIP Accounting - 155-158 233-236 Internet Protocol [35,36,42,43,44] - 159-191 237-277 Measurements [28] - 192-195 300-303 Message Switching Protocol [4,5] - 196-255 304-377 Experimental Protocols - 224-255 340-377 NVP [1,39] - - - - - - - - - - - - - - - - - - - - - -Postel [Page 2] - - -RFC 755 3 May 1979 -IEN 93 Assigned Numbers -Socket Numbers - - - - ASSIGNED SOCKET NUMBERS - - Sockets are used in the AHHP [1,3] to name the ends of logical - connections which carry long term conversations. For the purpose of - providing services to all callers an Initial Connection Procedure ICP - [1,34] is used between the user process and the server process. This - list specifies the socket used by the server process as its contact - socket. - - Socket Assignments: - - General Assignments: - - Decimal Octal Description - ------- ----- ----------- - 0-63 0-77 Network Wide Standard Function - 64-127 100-177 Hosts Specific Functions - 128-223 200-337 Reserved for Future Use - 224-255 340-377 Any Experimental Function - - Specific Assignments: - - Network Standard Functions - - Decimal Octal Description References - ------- ----- ----------- ---------- - 1 1 Old Telnet [6] - 3 3 Old File Transfer [7,8,9] - 5 5 Remote Job Entry [1,10] - 7 7 Echo [11] - 9 11 Discard [12] - 11 13 Who is on or SYSTAT - 13 15 Date and Time - 15 17 Who is up or NETSTAT - 17 21 Short Text Message - 19 23 Character generator or TTYTST [13] - 21 25 New File Transfer [1,14,15] - 23 27 New Telnet [1,16,17] - 25 31 Distributed Programming System [18,19] - 27 33 NSW User System w/COMPASS FE [20] - 29 35 MSG-3 ICP [21] - 31 37 MSG-3 Authentication [21] - 33 41 DPS ICP [18,19] - 35 43 IO Station Spooler - 37 45 Time Server [1,22] - 39 47 NSW User System w/SRI FE [20] - - - -Postel [Page 3] - - -RFC 755 3 May 1979 -IEN 93 Assigned Numbers -Socket Numbers - - - - 41 51 Graphics [1,26] - 42-63 52-77 unassigned - - Host Specific Functions - - Decimal Octal Description References - ------- ----- ----------- ---------- - 65 101 Speech Data Base at LL-TX-2 [23] - 67 103 Datacomputer at CCA [24] - 69 105 CPYNET - 71 107 NETRJS (EBCDIC) at UCLA-CCN [1,25] - 73 111 NETRJS (ASCII-68) at UCLA-CCN [1,25] - 75 113 NETRJS (ASCII-63) at UCLA-CCN [1,25] - 77 115 any private RJE server - 79 117 Name or Finger [1,40] - 81 121 Network BSYS - 83 123 MIT ML Device - 85 125 MIT ML Device - 86-94 126-136 unassigned - 95 137 SUPDUP [33] - 97 141 Datacomputer Status - 98-127 142-136 unassigned - - Reserved for Future Use - - Decimal Octal Description References - ------- ----- ----------- ---------- - 128-223 200-337 reserved - - Experimental Functions - - Decimal Octal Description References - ------- ----- ----------- ---------- - 224-231 340-347 unassigned - 232-237 350-355 Authorized Mailer at BBN - 239 357 unassigned - 241 361 NCP Measurement [27,28] - 243 363 Survey Measurement [28,29,30] - 245 365 LINK [31] - 247 367 TIPSRV - 249-255 371-377 RSEXEC [31,32] - - - - - - - - -Postel [Page 4] - - -RFC 755 3 May 1979 -IEN 93 Assigned Numbers -Network Numbers - - - - ASSIGNED NETWORK NUMBERS - - This list of network numbers is used in the internetwork protocols - now under development, the field is 8 bits in size. - - Assigned Network Numbers - - Decimal Octal Name Network References - ------- ----- ---- ------- ---------- - 0 0 Reserved - 1 1 BBN-PR BBN Packet Radio Network - 2 2 SF-PR-1 SF Bay Area Packet Radio Network (1) - 3 3 BBN-RCC BBN RCC Network - 4 4 SATNET Atlantic Satellite Network - 5 5 SILL-PR Ft. Sill Packet Radio Network - 6 6 SF-PR-2 SF Bay Area Packet Radio Network (2) - 7 7 CHAOS CHAOS Network - 8 10 BBN-SAT-TEST BBN SATNET Test Network - 9 11 BRAGG-PR Ft. Bragg Packet Radio Network - 10 12 ARPANET ARPANET [1,2] - 11 13 UCLNET University College London Network - 12 14 CYCLADES CYCLADES - 13 15 NPLNET National Physical Laboratory - 14 16 TELENET TELENET - 15 17 EPSS British Post Office EPSS - 16 20 DATAPAC DATAPAC - 17 21 TRANSPAC TRANSPAC - 18 22 LCSNET LCS Network [37,38] - 19 23 TYMNET TYMNET - 20 24 DC-PR Washington D.C. Packet Radio Network - 21 25 EDN DCEC EDN - 22 26 DIALNET DIALNET [47,48] - 23 27 MITREK MITREK Cable Network - 24 30 BBN-LOCAL BBN Local Network - 25 31 RSRE-PPSN RSRE / PPSN - 26-254 32-376 Unassigned - 255 377 Reserved - - - - - - - - - - - - -Postel [Page 5] - - -RFC 755 3 May 1979 -IEN 93 Assigned Numbers -Internet Message Versions - - - - ASSIGNED INTERNET MESSAGE VERSIONS - - In the internetwork protocols there is a field to identify the - version of the internetwork general protocol. This field is 4 bits - in size. - - Assigned Internet Message Versions - - Decimal Octal Version References - ------- ----- ------- ---------- - 0 0 March 1977 version [35] - 1 1 January 1978 version [36] - 2 2 February 1978 version A [42] - 3 3 February 1978 version B [43] - 4 4 February 1979 version 4 [44] - 5-14 5-16 Unassigned - 15 17 Reserved - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 6] - - -RFC 755 3 May 1979 -IEN 93 Assigned Numbers -Internet Protocol Numbers - - - - ASSIGNED INTERNET PROTOCOL NUMBERS - - In the internet protocol (IN) [44] there is a field to identify the - the next level protocol. This field is 8 bits in size. This field - is called Protocol in the IN header. - - Assigned Internet Protocol Numbers - - Decimal Octal Protocol Numbers References - ------- ----- ---------------- ---------- - 0 0 Reserved - 1 1 raw internet datagrams [44] - 2 2 TCP-3 [36] - 3 3 Gateway-to-Gateway [49] - 4 4 Gateway Monitoring Message [41] - 5 5 TCP-3.1 [45] - 6 6 TCP-4 [46] - 7 7 UCL - 8 10 DSP [37,38] - 9 11 Secure - 10 12 TCP-2 [35] - 11-12 13-14 Unassigned - 13 15 Pluribus - 14 16 Telenet - 15 17 XNET - 16 20 Chaos - 17 21 UDP [50] - 18 22 Multiplexing [51] - 19-254 23-376 Unassigned - 255 377 Reserved - - - - - - - - - - - - - - - - - - - -Postel [Page 7] - - -RFC 755 3 May 1979 -IEN 93 Assigned Numbers -Internet Message Types - - - - ASSIGNED INTERNET MESSAGE TYPES - - In the March 1977 internetwork protocol [35] there is a field to - identify the type of the message. This field is 4 bits in size. - - Assigned Internet Message Types - - Decimal Octal Type References - ------- ----- ---- ---------- - 0 0 Raw Internet Packet - 1 1 TCP-2 [35] - 2 2 Secure - 3 3 Gateway - 4 4 Measurement - 5 5 DSP [37,38] - 6 6 UCL - 7-12 7-14 Reserved - 13 15 Pluribus - 14 16 Telenet - 15 17 Xnet - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 8] - - -RFC 755 3 May 1979 -IEN 93 Assigned Numbers -References - - - - REFERENCES - - [1] Feinler, E. and J. Postel, eds., "ARPANET Protocol Handbook," - NIC 7104, for the Defense Communications Agency by SRI - International, Menlo Park, California, Revised January 1978. - - [2] BBN, "Specifications for the Interconnection of a Host and an - IMP," Report 1822, Bolt Beranek and Newman, Cambridge, - Massachusetts, January 1976. - - [3] McKenzie,A. "Host/Host Protocol for the ARPA Network," - NIC 8246, January 1972. Also in [1]. - - [4] Walden, D. " A System for Interprocess Communication in a - Resource Sharing Network," RFC 62, NIC 4962, 3 August 1970. - Also published in Communications of the ACM, volume 15, - number 4, April 1972. - - [5] Bressler, B. "A Proposed Experiment with a Message Switching - Protocol," RFC 333, NIC 9926, 15 May 72. - - [6] Postel, J. "Telnet Protocol," RFC 318, NIC 9348, 3 April 1972. - - [7] McKenzie, A. "File Transfer Protocol," RFC 454, NIC 14333, - 16 February 1973. - - [8] Clements, R. "FTPSRV -- Extensions for Tenex Paged Files," - RFC 683, NIC 32251, 3 April 1975. Also in [1]. - - [9] Harvey, B. "One More Try on the FTP," RFC 691, NIC 32700, - 6 June 1975. - - [10] Bressler, B. "Remote Job Entry Protocol," RFC 407, NIC 12112, - 16 October 72. Also in [1]. - - [11] Postel, J. "Echo Process," RFC 347, NIC 10426, 30 May 1972. - - [12] Postel, J. "Discard Process," RFC 348, NIC 10427, - 30 May 1972. - - [13] Postel, J. "Character Generator Process," RFC 429, NIC 13281, - 12 December 1972. - - [14] Neigus, N. "File Transfer Protocol," RFC 542, NIC 17759, - 12 July 1973. Also in [1]. - - - - -Postel [Page 9] - - -RFC 755 3 May 1979 -IEN 93 Assigned Numbers -References - - - - [15] Postel, J. "Revised FTP Reply Codes," RFC 640, NIC 30843, - 5 June 1974. Also in [1]. - - [16] McKenzie, A. "Telnet Protocol Specification," NIC 18639, - August 1973. Also in [1]. - - [17] McKenzie, A. "Telnet Option Specification," NIC 18640, - August 1973. Also in [1]. - - [18] White, J. "A High Level Framework for Network-Based Resource - Sharing," RFC 707, NIC 34263, 14 January 1976. Also in NCC - Proceedings, AFIPS, June 1976. - - [19] White, J. "Elements of a Distributed Programming System," - RFC 708, NIC 34353, 28 January 1976. - - [20] COMPASS. "Semi-Annual Technical Report," CADD-7603-0411, - Massachusetts Computer Associates, 4 March 1976. Also as, - "National Software Works, Status Report No. 1," - RADC-TR-76-276, Volume 1, September 1976. And COMPASS. "Second - Semi-Annual Report," CADD-7608-1611, Massachusetts Computer - Associates, 16 August 1976. - - [21] NSW Protocol Committee, "MSG: The Interprocess Communication - Facility for the National Software Works," CADD-7612-2411, - Massachusetts Computer Associates, BBN 3237, Bolt Beranek and - Newman, Revised 24 December 1976. - - [22] Harrenstien, K. "Time Server," RFC 738, NIC 42218, - 31 October 1977. Also in [1]. - - [23] Armenti, A., D. Hall, and A. Stone. "Lincoln Speech Data - Facility," SUR Note 37, NIC 10917, 14 July 1972. - - [24] CCA, "Datacomputer Version 1 User Manual," Computer - Corporation of America, August 1975. - - [25] Braden, R. "NETRJS Protocol," RFC 740, NIC 42423, - 22 November 1977. Also in [1]. - - [26] Sproull, R, and E. Thomas. "A Networks Graphics Protocol," - NIC 24308, 16 August 1974. Also in [1]. - - [27] Cerf, V., "NCP Statistics," RFC 388, NIC 11360, - 23 August 1972. - - - - -Postel [Page 10] - - -RFC 755 3 May 1979 -IEN 93 Assigned Numbers -References - - - - [28] Cerf, V., "Formation of a Network Measurement Group (NMG)," - RFC 323, NIC 9630, 23 March 1972. - - [29] Bhushan, A., "A Report on the Survey Project," RFC 530, - NIC 17375, 22 June 1973. - - [30] Cantor, D., "Storing Network Survey Data at the Datacomputer," - RFC 565, NIC 18777, 28 August 1973. - - [31] Bressler, R., "Inter-Entity Communication -- An Experiment," - RFC 441, NIC 13773, 19 January 1973. - - [32] Thomas, R. "A Resource Sharing Executive for the ARPANET," - AFIPS Conference Proceedings, 42:155-163, NCC, 1973. - - [33] Crispin, M. "SUPDUP Protocol," RFC 734, NIC 41953, - 7 October 1977. Also in [1]. - - [34] Postel, J. "Official Initial Connection Protocol," NIC 7101, - 11 June 1971. Also in [1]. - - [35] Cerf, V. "Specification of Internet Transmission Control - Program -- TCP (version 2)," March 1977. - - [36] Cerf, V. and J. Postel, "Specification of Internetwork - Transmission Control Program -- TCP Version 3," - USC-Information Sciences Institute, January 1978. - - [37] Reed, D. "Protocols for the LCS Network," Local Network Note - 3, Laboratory for Computer Science, MIT, 29 November 1976. - - [38] Clark, D. "Revision of DSP Specification," Local Network Note - 9, Laboratory for Computer Science, MIT, 17 June 1977. - - [39] Cohen, D. "Specifications for the Network Voice Protocol - (NVP)," NSC Note 68, 29 January 1976. Also as USC-Information - Sciences Institute RR-75-39, March 1976, and as RFC 741, - NIC 42444, 22 November 1977. Also in [1]. - - [40] Harrenstien, K. "Name/Finger," RFC 742, NIC 42758, - 30 December 1977. Also in [1]. - - [41] Cole, J. "Gateway Monitoring Messages," BBN, 1 February 1978. - - [42] Postel, J. "Draft Internetwork Protocol Specification -- - Version 2," USC-Information Sciences Institute, February 1978. - - - -Postel [Page 11] - - -RFC 755 3 May 1979 -IEN 93 Assigned Numbers -References - - - - [43] Cerf, V. "A Proposed New Internet Header Format," Advanced - Research Projects Agency, IEN 26, 14 February 1978. - - [44] Postel, J. "Internet Datagram Protocol -- Version 4," IEN-80, - USC-Information Sciences Institute, February 1979. - - [45] Cerf, V. "A Proposal for TCP Version 3.1 Header Format," - Advanced Research Projects Agency, IEN 26, 14 February 1978. - - [46] Postel, J., "Transmission Control Protocol -- Version 4," - IEN-81, USC-Information Sciences Institute, February 1979. - - [47] McCarthy, J. and L. Earnest, "DIALNET," Stanford University - Artificial Intelligence Laboratory, Undated. - - [48] Crispin, M. and I. Zabala, "DIALNET Protocols," Stanford - University Artificial Intelligence Laboratory, July 1978. - - [49] Strazisar, V, and R. Perlman, "Gateway Routing, An - Implementation Specification," IEN-30, Bolt Berenak and - Newman, April 1978. - - [50] Postel, J., "User Datagram Protocol," IEN-88, USC-Information - Sciences Institute, May 1979. - - [51] Cohen, D. and J. Postel, "Multiplexing Protocol," IEN-90, - USC-Information Sciences Institute, May 1979. - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 12] - \ No newline at end of file diff --git a/text/ien/ien94.txt b/text/ien/ien94.txt deleted file mode 100644 index 23969d08..00000000 --- a/text/ien/ien94.txt +++ /dev/null @@ -1,57 +0,0 @@ - J. Postel -IEN 94 ISI - 2 May 1979 - - - - Internet Protocol Handbook - - - - - Table of Contents - - - - -Gateway Level - - Internet Datagram Protocol IEN-80 - - Gateway Routing: An Implementation Specification IEN-30 - -Host Level - - User Datagram Protocol IEN-88 - - Transmission Control Protocol IEN-81 - - Multiplexing Protocol IEN-90 - -Application Level - - Name Server Protocol IEN-89 - - Internet Message Protocol IEN-85 - -Appendices - - Protocol Options IEN-92 - - Address Mappings IEN-91 - - Assigned Numbers IEN-93 - - - - - - - - - - - - -Postel [Page 1] - diff --git a/text/ien/ien95.txt b/text/ien/ien95.txt deleted file mode 100644 index 9fec4739..00000000 --- a/text/ien/ien95.txt +++ /dev/null @@ -1,338 +0,0 @@ - - - - -IEN 95 - - - Source Routing - - - - - - Danny Cohen - - Jon Postel - - - - - - - - - - - - - - - - - 2 May 1979 - - - - - - Information Sciences Institute - University of Southern California - 4676 Admiralty Way - Marina del Rey, California 90291 - - (213) 822-1511 - - - - - - -IEN-95 D. Cohen - J. Postel - ISI - 2 May 1979 - - - - SOURCE ROUTING - -------------- - -Introduction ------------- - -This memo discusses source routing. Source routing allows (or requires) -the source of a message to supply information with the message that will -influence the route of that message as it passes through the -communication system. - -Discussion ----------- - -The Internet Protocol (IN) [1] header may contain both destination -address field and a source route string. - -There are 3 possible relations between them: - - (1) The terminal destination address (TDA) is always in the IN - destination address field (DAF), - - (1A) The source route is included in an advisory capacity only. It - is used if there is no known route to the TDA. Once the - message arrives to where route to the TDA is known, the source - route may be ignored. - - (1B) The source route is mandatory and has to be followed until the - TDA is reached. - - (2) The DAF contains the address of the next leg of the source - routing. Only when it is reached, the source routing option - field has to be checked again. Hence, a source routed message - can pass through intermediate gateways and nodes which are not - capable of handling source routing, and only those nodes which - are specifically mentioned in the source route (with the - possible exception of the terminal destination) have to be able - to handle the source routing option. - -The most reasonable of these three possibilities is (2). It has the -same flavor as (1B), by forcing the message to traverse the specified -source route, which is important for (i) reaching obscure destinations, -(ii) security, and (iii) measurements. - - - - -Cohen & Postel [page 1] - - - - 2 May 1979 -Source Routing IEN 95 - - - -The (2) possibility, unlike either (1A) and (1B), has the advantage that -it does not require that all the involved gateways should be able to -process the source routing options. - -This is also a more efficient way to handle the source routing, because -even in the case that all gateways can handle the source routing, only -the ones specifically included in it, has to examine this option. - -It is likely that if A has to source route to B, then B would need to -source route to A. Since the source route from B to A may not be known, -it is desired to figure it by "tracking" the messages from A to B. - -This can be done by using the Construct-Return-Route (CRR) option. When -this option is included, each participating gateway adds to this option -field its own name, as known in the environment to which to message is -forwarded. - -For example: - - S----1A----2B----3C----4D----R - N1 N2 N3 N4 N5 - -The first gateway is known as "1" in the N1 network, and as "A" in the -N2 net. Similarly, the second gateway is "2" for the N2 network and "B" -for the next one. And so on. S may source-route a message to R as -[N2:2, N4:4, N5:R] provided that its interface can route messages to -N2, (but probably not to N3 and beyond), that the gateway 2B can route -messages to N4, and so on. - -For the return route, [N5:D, N3:B, N1:S] should be used. - -In order to construct the return route, each process participating in -the source route (by being included in the list) adds its -"return-address" IN-FRONT of the return-route which is found in the CRR -option field. - -It is recommended to use this option only for initiating a -communication, and to save time by not repeating the CRR request in -every message thereafter. - -Note, the source route cannot be used to constructing hierarchical -addressing where not expected. - - - - - - - -[page 2] Cohen & Postel - - - -2 May 1979 -IEN 95 Source Routing - - - -Here are 3 possible formats for the SR (S1, S2, S3), and 2 possible -formats for the CRR (C1, C2). - - S -----> mM -----> nN -----> R - -----------+-----------+-----------+-----------+ - DAF | R | R | R | - S1 SR | 3,1,m,n,R | 3,2,m,n,R | 3,3,m,n,R | - -----------+-----------+-----------+-----------+ - DAF | m | n | R | - S2 SR | 3,1,m,n,R | 3,2,m,n,R | 3,3,m,n,R | - -----------+-----------+-----------+-----------+ - DAF | m | n | R | - S3 SR | 2,n,R | 1,R | 0 | - -----------+-----------+-----------+-----------+ - SAF | S | S | S | - C1 RR | 0 | 1,M | 2,M,N | - -----------+-----------+-----------+-----------+ - SAF | S | S | | - C2 RR | 1,S | 2,S,M | 3,S,M,N | - -----------+-----------+-----------+-----------+ - - - Legend - ------ - for S1, S2 the SR format is "count,pointer,a1,a2,..." - for S3, C1, C2 the SR or RR format is "count,a1,a2,..." - -S3/C1 is the method selected. - -Source Route Option -------------------- - -+--------+--------+--------+---------//--------+ -|00000011| length | source route | -+--------+--------+--------+---------//--------+ -Option=3 - -The source route option provides a means for the source of an internet -datagram to supply routing information to be used by the gateways in -forwarding the datagram to the destination. - -The option begins with the option type code. The second octet is the -option length which includes the option type code and the length octet, -as well as length-2 octets of source route data. - -A source route is composed of a series of internet addresses. Each - - - -Cohen & Postel [page 3] - - - - 2 May 1979 -Source Routing IEN 95 - - - -internet address is 32 bits or 4 octets. The length defaults to two, -which indicates the source route is empty and the remaining routing is -to be based on the destination address field. - -If the address in destination address field has been reached and the -length is not two, the next address in the source route replaces the -address in the destination address field, and that address is deleted -from the source route and the length is reduced by four. - -Return Route Option -------------------- - -+--------+--------+--------+---------//--------+ -|00000111| length | return route | -+--------+--------+--------+---------//--------+ -Option=7 - -The return route option provides a means to record the route of an -internet datagram. - -The option begins with the option type code. The second octet is the -option length which includes the option type code and the length octet, -as well as length-2 octets of return route data. - -A return route is composed of a series of internet addresses. The -length defaults to two, which indicates the return route is empty. - -When an internet module routes a datagram it checks to see if the return -route option is present. If it is, it inserts its own internet address -as known in the environment into which this datagram is being forwarded -into the return route at the front of the address string and increments -the length by four. - - - - - - - - - - - - - - - - - -[page 4] Cohen & Postel - - - -2 May 1979 -IEN 95 Source Routing - References - - - -References ----------- - -[1] Postel, J., "Internet Datagram Protocol -- Version 4," IEN 80, - USC-Information Sciences Institute, February 1979. - -[2] Postel, J., "Transmission Control Protocol -- Version 4," - IEN 81, USC-Information Sciences Institute, February 1979. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Cohen & Postel [page 5] - diff --git a/text/ien/ien96.txt b/text/ien/ien96.txt deleted file mode 100644 index 59c4ec4a..00000000 --- a/text/ien/ien96.txt +++ /dev/null @@ -1,520 +0,0 @@ -IEN: 96 - - - - - - The MITRE Cablenet Project - - - - - - April 1979 - - - - prepared for - - Defense Communication Agency - WWMCCS ADP Directorate - Command and Control Technical Center - 11440 Isaac Newton Square - Reston, Va. 22090 - - - - - by - - Anita P. Skelton - Steven F. Holmgren - David C. Wood - - - - - - - - - - - - - - MITRE Corporation - 1820 Dolley Madision Blvd. - McLean Va. 22102 - - - The MITRE Cablenet Project - - - -Introduction - - MITRE has initiated a local network and internetting -research project, which is supported by the Defense Communica- -tions Agency. The intent of the project is to investigate the -advisability of connecting major Command Center components with a -cable-bus, and the interconnection of these Command Centers to -eachother. A cable-bus network (Cablenet) has been installed at -MITRE, and is being attached to the ARPANET, to establish a -test-bed for experimentation. One of the major areas of investi- -gation is a determination of what protocols are best suited to a -local network broadcast environment, and how these protocols -interwork with the protocols in the global packet- switched net- -work. The cable-bus architecture will be compared with alterna- -tive configurations for a local network, such as a centralized -architecture, from the viewpoint of security, performance, and -other characteristics important in a command center environment. - - - -The Command Center Environment - - An understanding of this project is incomplete without a -very short digression on our view of the Command Center com- -ponents to be connected. Present and future Command Centers con- -sist of a number of devices which for many reasons aren't easily -inter-connected. During the latter 1980's, the World Wide Mili- -tary Command and Control System (WWMCCS) Command Center is likely -to include the present WWMCCS Honeywell 6000 computers, a future -generation WWMCCS system, an Automated Text Message Handling -(ATMH) system, which provides electronic mail, an intelligent -terminals, dumb terminals, a data base machine for information -retrieval, and possibly an intelligence system. In addition, ac- -cess will be needed to long-haul networks, such as AUTODIN II. -Each of the components may be a single machine, a group of -machines, or a simple peripheral device which contributes to the -component function. - - The role of the cable-bus is to provide a "friendly" inter- -face to each of these devices so that they may be unified into a -more useful tool without unduly affecting component performance. -This implies that in some sense the cable-bus must be all things -to all devices. It should be able to emulate terminals, RJE sta- -tions, and simple twisted pair communications wires. The versa- -tility of the cable-bus interface unit and its capability for -complex data transformation are the keys to the cable-bus success -in these roles. - - - - - - Page -1- - - - - - -The Cable-Bus System - - The MITRE/Washington Cablenet system is based on a technolo- -gy developed at MITRE/Bedford. Similar cable-bus systems are in -operation at a number of government sites, e.g. Walter Reed Army -Hospital, and the NASA Johnson Space Center, but these are all -standalone, local-only networks. - - The system uses standard Community Antenna Television (CATV) -coaxial cable and microprocessor based Bus Interface Units (BIUs) -to connect subscriber computers and terminals to the cable. -Coaxial cable as a transmission medium is very attractive for a -number of reasons: it is relatively inexpensive, approximately -$500/mile; it can support multimegabit transmissions; and is re- -latively immune to noise. It is well suited for the transmission -of digital, as well as analog signal. The cable bus consists of -two parallel coaxial cables, one inbound and the other outbound. -The inbound cable and outbound cable are connected at one end, -the headend, and electrically terminated at their other ends. -This architecture takes advantage of the well developed unidirec- -tional CATV components. The topology is dendritic (i.e. branched -like a tree). - - The BIU is designed to transmit on the inbound cable and re- -ceive on the outbound cable. Each BIU implements a contention -algorithm, reliable packet communication, and user device inter- -face firmware. Other functions, such as intra-net routing, are -either inherent in the broadcast nature of the cable-bus, or im- -plemented by the user device. Certain BIUs directly interface -terminals to the cable-bus. - - - A broadcast contention scheme is used on the cable, with all -subscribers concurrently competing for the transmission media. -The BIU uses a Carrier Sense Multiple Access (CSMA) mechanism to -detect a busy cable. It also uses a Listen-While-Talk (LWT) -scheme to detect concurrent transmissions (collisions). Due to -signal propagation delay, it is possible for a BIU to start -transmitting without detecting the presence of a concurrent -transmission on the channel. The LWT technique minimizes the -time lost when a BIU has to abort a transmission due to colli- -sions. A transmitting BIU reads the initial portion of its own -transmission (listens while talking) from the outbound channel, -and compares it with the information sent on the inbound channel: -if the comparison indicates that the transmission has not been -interferred with, the BIU assumes that the cable-bus has been ac- -quired, disables its receivers, and continues transmission; if -the comparision indicates that a collision has occurred, the BIU -backs off for a pseudo-random amount of time, and then attempts -to retransmit. - - - - Page -2- - - - The coaxial cable (JA-3412) consists of a copper clad alumi- -num center conductor, polystyrene dialectric, and an aluminum -sheath shield. It has a loss figure of 1.6dB per hundred feet. -Analog signals can be effectively transmitted in a frequency -range of from 5MHz to 300MHz. The BIUs contain Radio Frequency -(RF) modems which modulate a carrier signal to transmit digital -information using 1MHz of the available bandwidth in the 24Mhz -frequency range. The remainder of the 294MHz bandwidth can be -used to carry other information channels, such as off-the-air TV, -FM, closed circuit TV, or a voice telephone system, or, other di- -gital channels. The data rate of our test-bed system is -307.2kbps. - - The central processing unit of the BIU is a MOS Technology -MCS6502A microprocessor. The 6502A has a cycle time of 500 -nanoseconds. It has a bidirectional 8-bit data bus which is in- -terfaced to a MCS6522 Versatile Interface Adapter (VIA); this VIA -has 2 - 8-bit parallel ports and dual interval timers, and is -used for high-speed parallel transfers from computers. Addition- -ally, there are two Motorola 6950 Asynchronous Communications In- -terface Adapters (ACIAs): one of these ACIAs allows terminal ac- -cess to the network via an RS-232-C port, with a selectable baud -rate from 75-9600 bits per second; the other ACIA is used for -very high-speed communication with the cable. - - The 6502 is capable of addressing 65K bytes of memory. Peri- -pheral control and data registers are addressed as memory loca- -tions. There are 2K bytes of Random Access Memory (RAM) in low -order memory. The first 512 bytes are used for variable storage -and stack, and the remaining 1.5K bytes are used for packet -buffers. The upper 2K of memory is Programmable Read Only Memory -(PROM) which contains the BIU firmware. - - - -The Design Goals - - The next generation of microprocessors (e.g., Zilog 8000, -Motorola 68000, Intel 8086), the increasing availability of -larger, faster memories, and the longer term (5-10 yrs.) availa- -bility of Josephson junction and three-dimensional logic, make it -increasingly attractive to off-load specialized processing func- -tions from the WWMCCS H6000 computer to other separate computers -within a command center. Our test bed is being designed to pro- -vide the required inter-connection capability for the command -center of the future, which takes advantage of this technological -trend. With this in mind the following goals have been defined: - - o There should be inordinately large amounts - of processing power at each node. - - o The cost of a bus interface unit should - not be prohibitive. - - - - Page -3- - - - - o The construction should be modular to - enable stepwise replacement of functions - with advancing technology. - - o The cable-bus should provide a full range - of layered protocols (e.g. datagram, - virtual circuit, virtual terminal, mail, - teleconferencing, file transfer, and user - defined) which embody state-of-the-art - networking mechanisms (e.g. flow control, - routing, addressing). Furthermore, the layers - should provide interfaces promoting extensible - higher level usage. - - o The bus interface units should be able - to support a wide variety of backend devices - and communications line disciplines (e.g. RS232, - parallel, HDLC, X.25). - - o The resulting architecture should be - fundamentaly securable so that information - classified at various levels and - compartments can be transported - simultaneously. - - - Our investigation of the applicability of the cable-bus to -the Command Center environment will encompass an assessment of -the extent to which these characteristics apply to the MITRE -cable-bus system. Where feasible, the system will be improved to -more closely meet those goals. An assessment will be made to -discover any advantages in a distributed cable-bus inter- -connection archtecture over a star inter-connection architecture. - - The result of our efforts will be a cable-bus system that -embodies a substantial number of the goals defined above. The -cable-bus system will: (1) provide the required nodal process- -ing capability, (2) implement cleanly layered transport and vir- -tual circuit protocols (the significance of this statement cannot -be underestimated), (3) interface to parallel and RS232 devices -with the capability for development of other user device communi- -cation disciplines, (4) result in a bus interface unit that is in -the early stages of program verification, and (5) effectively -communicate with other networks via network gateways. - - - -The Test Bed - - Our MITRE cable-bus test-bed includes a PDP-11/70 minicom- -puter running the Network UNIX operating system, and three -LSI-11s. The Network UNIX system will contain implementations of - - - - Page -4- - - -the Transmission Control Protocol (TCP) Version 4.0 and a modi- -fied version of the Internet Protocol (c.f. Realignment of Bus -Interface Unit Protocols). The gateway functions will be -minimal. The modified Internet Protocol will pass through pack- -ets to hosts on the ARPANET and cable. These hosts are expected -to contain the necessary higher level protocol software to estab- -lish and maintain direct communications circuits. The LSI-11 mi- -crocomputers will be paired with three bus interface units to -provide the futuristic nodal processing capabilities. The archi- -tecture of the test bed is shown in figure 1. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Page -5- - - - - -------------->-----[ ]---------| - | | - | -----------<-------[ ]-------| - | | | | - | | |-----| - | | | | - | | | BIU | - | | |-----| - | | | - | | |---------| - | | | | - | | |Tektronix| - | | | 4027 | - | | |---------| -|----| outbound | | -|Head|----->---[ ]--------------------[ ]----------[ ]-----[ ]--->-----| -| | | | | | -|End |-----<-----[ ]---------------------[ ]----[ ]----------[ ]--<----| -|----| | | inbound | | | | - | | | | | | - |-----| | | |-----| - | | | | | | - | BIU | | | | BIU | - |-----| | | |-----| - | | | | - |------------| | | |-------| - | |--- | | | |--- - | PDP-11/70 |--- TTYs | | | LSI-11|--- TTYs - | |--- | | |-------| - | | | | - |------------| | --[ ]--------------| - | | | - | |------[ ]------------| - |----------| | | - |Local Host| |-----| - | Port | | | - |..........| | BIU | - | TIP | |-----| - |----------| | - / \ |--------| - / \ |Terminal| - To ARPA |--------| - - - Figure 1. Cablenet Architecture - - - - - - - - - - - Page -6- - - -Initial Areas of Concentration - - Realignment of Bus Interface Unit Protocols. MITRE's exist- -ing BIU-BIU protocols are ad hoc in nature. Various problems, -such as, inadequate addressing structure, missing or antiquated -flow control mechanisms, and missing out-of-band signaling, -prevent interfacing the cable-bus to long-haul networks in any -reasonable manner. Transport and virtual circuit protocols suit- -ed to the high speed cable bus are needed to provide the func- -tions for interfacing to existing long- haul networks. - - Using the TCP version 4.0 and the Internetwork Protocol as a -starting point, a Flexible Datagram Protocol (FDP) has been -designed (See IEN-97). The FDP is motivated by a need to support -a cable-bus user community with widly varying transport protocol -requirements. It should be emphasized that the generation of a -new set of protocols was not our intent. However the urgent need -for a flexible transport protocol on the cable, and the feeling -that the state-of-the-art in local area networking protocols is -such that no existing protocols may be adopted as a whole, led to -the conceptual merging of the local network protocol layer with -the internet layer, to yield a transport datagram protocol which -can be layered under TCP. In its simplest form, FDP can function -in a local broadcast environment, and in its expanded form, the -FDP assumes all the characteristics of the Internet Protocol. - - Internet Software Development. In order to achieve a full -internetworking capability between the Cablenet and ARPANET, TCP -4.0 and the FDP will be installed on the 11/70 and on the -LSI-11s. (We are adopting BBN's UNIX "C"/TCP and SRI's MOS/TCP in -an attempt to get these internetworking capabilities operating as -expeditiously as possible.) - - High-speed 11/70 - Cable Interface. The 11/70 is interfaced -to the cable-bus with a low speed (9600 baud) terminal line. All -terminals accessing the 11/70 via the cable are multiplexed over -this line. To test the bandwidth and throughput of the cable-bus -system, a high-speed interface between the PDP11/70 and the -cable-bus is being installed. The interface bandwidth must be -greater than the basic cable bandwidth so as not to bottleneck -data and affect measurements. - - A UMC-Z80, from Associated Computer Consultants, will be -used to provide the hardware interface between the cable-bus and -the PDP-11 UNIBUS. Data transfer rates on the order of 500 Kbits -should be available through the UMC-Z80. Since the basic data -rate of the existing cable-bus is approximately 300 Kbits, it is -believed that bottleneck problems associated with the PDP-11 to -cable interface will be non-existent. - - Security. No secure cable-bus installations currently ex- -ist. Particular attention is being given to investigating ways -of securing a cable-bus to meet the security requirements of a - - - - Page -7- - - -command center. The following areas have been identified for -study: - - 1. The use of DES and Public Key encryption systems to - provide secure virtual circuit data paths. - - 2. BIU software verification. - - 3. Methods for physically securing the BIU and the cable. - - 4. A suggested architecture for an integrated network - control center and security officers station. - -Because of the "intelligence" of each BIU, a number of security -measures are possible that are difficult to implement in other -architectures. Dynamic key modification, logical address assign- -ment, carrier frequency hopping, and distributed specifications -of interconnectivity, are all measures that strengthen the -overall cable-bus security. The extent to which each of these -measures is needed is part of our research. - - Performance Analysis and Experimentation. There is a long -standing need for a knowledge of the end-to-end speed of the ex- -isting MITRE cable-bus system. Our initial measurement of -bandwidth and throughput will satisfy this need, as well as to -provide a metric for our newly implemented transport and virtual -circuit protocols. Subsequent measurements will not only focus -on our evolved transport and virtual circuit protocols, but will -deal with the internet environment. - - - -The Cablenet of the Future - - Our ultimate goal is a cable-bus design that is capable of -high-speed transmission (greater than 1Mbps), extensible, secure, -and supports both voice and video transmissions which are fully -integrated with the digital data. A voice message system coupled -with interactive TV/graphics displays are some of the elements of -our postulated fully automated command center. The next genera- -tion cable-bus interface units will support a multitude of dev- -ices, including page oriented and color graphics terminals; we -will implement a virtual terminal protocol in an expanded BIU. - - We are interested in developing the capability to dynamical- -ly regulate resource access and machine loading, and we envision -a fully-distributed prototype cable-bus network being installed -at a command center site to test these resource sharing concepts. - - - - - - - - - Page -8- diff --git a/text/ien/ien97.txt b/text/ien/ien97.txt deleted file mode 100644 index b15891ff..00000000 --- a/text/ien/ien97.txt +++ /dev/null @@ -1,1397 +0,0 @@ - -IEN: 97 - - - - - - FLEXIBLE DATAGRAM PROTOCOL - - - Version 1 - - - - April 1979 - - - - prepared for - - Defense Communication Agency - WWMCCS ADP Directorate - Command and Control Technical Center - 11440 Isaac Newton Square - Reston, Va. 22090 - - - - - by - - MITRE Corporation - 1820 Dolley Madision Blvd. - McLean Va. 22102 - - - - - - - - - - - - -April 1979 Flexible Datagram Protocol - - TABLE OF CONTENTS - - Page - -PREFACE . . . . . . . . . . . . . . . . . . . . . . . ii - -INTRODUCTION . . . . . . . . . . . . . . . . . . . . 1 - - Motivation . . . . . . . . . . . . . . . . . . . 1 - Scope . . . . . . . . . . . . . . . . . . . . . . 1 - Interfaces . . . . . . . . . . . . . . . . . . . 2 - -OVERVIEW . . . . . . . . . . . . . . . . . . . . . . 2 - - Framework . . . . . . . . . . . . . . . . . . . 2 - Protocol Mechanisms . . . . . . . . . . . . . . . 2 - Network Addressing . . . . . . . . . . . . . 2 - Host Addressing . . . . . . . . . . . . . . . 2 - Reliability . . . . . . . . . . . . . . . . . 3 - Flow Control . . . . . . . . . . . . . . . . 3 - Fragmentation . . . . . . . . . . . . . . . . 3 - Higher Protocol Layer . . . . . . . . . . . . 3 - Type of Service . . . . . . . . . . . . . . . 3 - Options . . . . . . . . . . . . . . . . . . . 4 - -SPECIFICATION . . . . . . . . . . . . . . . . . . . 5 - - Header Format . . . . . . . . . . . . . . . . . . 5 - -ATTRIBUTES . . . . . . . . . . . . . . . . . . . . . . 7 - - Network Addressing . . . . . . . . . . . . . . . . 7 - Host Addressing . . . . . . . . . . . . . . . . . 8 - Reliability . . . . . . . . . . . . . . . . . . . 9 - Flow Control . . . . . . . . . . . . . . . . . . . 10 - Fragmentation . . . . . . . . . . . . . . . . . . 11 - Higher Protocol Layer . . . . . . . . . . . . . . 12 - Type of Service . . . . . . . . . . . . . . . . . 13 - Options . . . . . . . . . . . . . . . . . . . . . 14 - -ADDRESSING OPERATION . . . . . . . . . . . . . . . . 17 - -FLOW CONTROL OPERATION . . . . . . . . . . . . . . . . 18 - -FRAGMENTATION OPERATION . . . . . . . . . . . . . . . 20 - -REFERENCES . . . . . . . . . . . . . . . . . . . . . . 21 - - - - [Page i] - -Flexible Datagram Protocol April 1979 - - Preface - -This is not a formal protocol specification. As such there are -descriptions that are weak and open to interpretation. This is a -working document describing the kinds of functions that we feel -will be needed in a cable-bus transport level protocol. As our -implementation progresses, certain functions may be done away -with completely or may be subsumed into other higher level proto- -cols. If the implementation is successful, and if there is suf- -ficient interest, a less ambiguous version will follow. - - A description of the project which will use this protocol -is contained in [1]. Reference 1 is recommended as a closely -coupled companion to this IEN. - - The protocol was constructed by taking pieces from other -definitions. The Internet Datagram Protocol [2] and the -Transmission Control Protocol [3] were used as models both in -terms of mechanisms and document format. Many thanks to the ori- -ginators of those documents. - - Steve Holmgren - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page ii] - -April 1979 Flexible Datagram Protocol - - Introduction - - The Flexible Datagram Protocol (FDP) defines a set of -rules to govern the transport of blocks of data, called da- -tagrams, over interconnected cable-bus networks with binary de- -grees of reliability, flow control, addressing, and other common -transport level protocol mechanisms. FDP uses variable length -datagram headers. Each header contains a bit-map specifying the -"shape" or attributes of the remaining portion of the header. -These attributes are groups of data fields which, if specified, -cause the protocol mechanisms referred to above to be invoked. -If an attribute is not specified, default processing mechanisms -will be invoked and attribute data fields are not placed in the -header. - -Motivation - - A protocol may be viewed as a collection of mechanisms to -support a specific service. Traditional mechanisms include: flow -control, addressing, and reliability (e.g. checksums, parity -etc.). Newer mechanisms include datagram fragmentation and -reassembly to enable their passage through "smaller-sized" net- -works, and handling of a datagram security level. - - The Flexible Datagram Protocol is motivated by a need to -support a cable bus user community with widely varying transport -protocol requirements. The user community ranges from cable- -based telephone users who need audio, and soon video, capabili- -ties, to the somewhat classic terminal-to-computer and computer- -to-computer users. - - The FDP meets these needs by allowing a user to dynami- -cally specify the mechanisms to be applied to a datagram. If a -user requires a mechanism to support a particular type of data -transfer, the price is paid in terms of header overhead and pro- -cessing cycles. No penality is paid if a user has no need for a -particular mechanism. - -Scope - - The Flexible Datagram Protocol is intended to provide a -full range of mechanisms to support the communication of packets -of data, called datagrams, between low-level nodes of intercon- -nected cable-busses. This version defines the selection of the -following protocol mechanisms: - - 1. network addressing, - 2. host addressing, - 3. data reliability, - 4. flow control, - 5. datagram fragmentation, - 6. higher protocol layer, - 7. type of service, and - 8. options. - - [Page 1] - -Flexible Datagram Protocol April 1979 - -Each of the mechanisms is described below. - -Interfaces - - On one side, FDP interfaces to a higher level protocol; -possibly a virtual circuit protocol such as Transmission Control -Protocol. On the other side it interfaces directly with the -lowest level software to transfer a datagram between itself and a -cable-bus. - - OVERVIEW - - This section gives an overview of the framework used to -select the mechanisms to be applied to a datagram and then an -overview of the operation of the mechanisms. - -Framework - - The framework consists of a bit map, called an Attribute -Specification, and a pre-defined sequence in which a fixed-format -group of data fields, called attributes, are processed. The -Attribute Specification defines whether an attribute has been -placed in the header. If the specification indicates that an -attribute is in the header, the appropriate number of bytes are -handed to the cooresponding protocol mechanism for processing. -If an attribute is not in the header, default processing takes -place. The next attribute in the pre-defined sequence is then -checked. This cycle continues until the Attribute Specification -is exhausted. - -Protocol Mechanisms - - Attributes are processed in the same sequence in which -they are described in this section. - - Network Addressing. The Network Address Attribute is -provided to allow users to address sites on a remote network via -a gateway or series of gateways which interconnect two or more -networks. - - The Network Addressing Attribute fields specify the -source and destination networks for the datagram. Since the -cable-bus is broadcast in nature, all gateways to other networks -will "see" any request for transmission to a remote network. The -gateway(s) to the specified network is (are) responsible for -accepting the datagram, processing the Attribute specification -and performing the appropriate routing of the remaining portion -of the datagram to the remote network. - - Host Addressing. The Host Addressing Attribute is neces- -sarily provided to allow users to address datagrams to specific -destinations. - - The Host Addressing Attribute fields specify the source - -[Page 2] - -April 1979 Flexible Datagram Protocol - -and destination host numbers for the datagram. - - Reliability. The Reliability Attribute is provided to -insure that datagrams are delivered without enroute damage. - - The Reliability Attribute has a checksum field and a -length field. The checksum is the complement of the sum of the -datagram octets. The length field specifies the number of all -octets in the datagram. - - Flow Control. The Flow Control Attribute allows a re- -ceiver to control the speed at which a transmitter may send da- -tagrams. It uses a sliding window acknowledgement strategy to -acknowledge previously received datagrams and to detect duplicate -and out-of-sequence datagrams. - - Each flow controlled datagram contains a sequence number -ordering the datagram in relation to previous and future da- -tagrams, an acknowledgement field acknowledging datagrams previ- -ously received by the transmitter, and a window field specifying -a range of acceptable per datagram sequence numbers. - - Fragmentation. The Fragmentation Attribute is included -to allow the transmission of large (greater than 256 octets) mes- -sages as a series of datagrams which are reassembled at the des- -tination before delivery to a user. Further, it enables a more -direct interconnection of cable bus systems with "small-sized" -networks. - - The Fragmentation Attribute contains a sequence number -defining the relationship between previous and future fragments -of a larger message, a message id relating fragments of a mes- -sage, a flags field controlling further fragmentation and last -fragment indications, and a life time specification which is -decremented as the datagram passes through different internetwork -gateways. If the life time field reaches zero, the datagram is -assumed to be looping through a sequence of gateways and is dis- -carded. - - Higher Protocol Layer. The Higher Protocol Layer Attri- -bute specifies the next layer of protocol which is to receive the -datagram. It is included to allow the use of FDP by several -higher level protocol implementations within the same host. By -specifying the next protocol layer within a lower layer, the for- -mat of the headers of the higher level protocols are not res- -tricted to a common preamble which would be required to demulti- -plex messages. - - Type of Service. The Type of Service Attribute is in- -cluded to allow the user to give some indication of the priority -which is to be applied to a datagram. Initially, the priority -may be restricted to linkage of datagrams to the front of inter- -nal queues so that immediate attention is given to their process- -ing. Later, this may be expanded to the notion of preemptive - - [Page 3] - -Flexible Datagram Protocol April 1979 - -allocation of resources, and selection of higher speed, less -congested transmission channels. - - The Type of Service Attribute contains a field to specify -the priority of the message (lowest to highest), and a field to -specify the requested speed of the message (again highest to -lowest) within the priority level. - - Options. The Options Attribute provides control func- -tions needed or useful in some situations but unnecessary for -routine communications. It is also provided to support experi- -mental mechanisms that at some point may be elevated to Attribute -status. - - The Options Attribute includes provisions for special -routing, error messages, protocol version specification, datagram -security level, and special low-level signals such as reset. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 4] - -April 1979 Flexible Datagram Protocol - - SPECIFICATION - -Header Format - - The header contains an Attribute Specification followed -by a variable number of attributes. Each attribute is a group of -data fields. This is the format of a header specifying all at- -tributes. The brackets attempt to delineate attribute boun- -daries. - - 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - ! Att. Spec. ! Att. Spec. ! [ Dest. Net. ! Src. Net ] ! - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - ! [ Dest. Host ! Src. Host ] ! - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - ! [ Chksum ! Len ] ! [ Ack ! Window ! - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - ! Seq. Num. ] ! [ Flags ! Life Time ! - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - ! Frag. Offset ! Msg. Id ] ! - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - ![ Nxt. Proto. ]![Type of Serv.]! [ Options ] ! - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - ! Data ! - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - - Note that each tick mark corresponds to a bit position. - - -Attribute Specification: 8 bits (replicated) - - Each bit in the Attribute Specification determines wheth- -er an attribute is present in the header. The order in which the -attributes are processed corresponds to the bit positions in the -Attribute Specification. The order in which the attribute fields -are stored in the header is shown in the figure above. Note that -the Attribute Specification is repeated in the header so that -damage to it may be detected. If a damaged Attribute Specifica- -tion is detected, the datagram is discarded. - - The figure below shows the correspondence between Attri- -bute Specification bits and attributes. - - 0 1 2 3 4 5 6 7 - +-+-+-+-+-+-+-+-+ - !N H R F F P T O! - !A A E L R R O P! - !D D L O G O S T! - +-+-+-+-+-+-+-+-+ - - NAD: Network Addressing FRG: Fragmentation - HAD: Host Addressing PRO: Next Level Protocol - - [Page 5] - -Flexible Datagram Protocol April 1979 - - REL: Reliability TOS: Type of Service - FLO: Flow Control OPT: Options - -If a bit is on in the Attribute Specification, the attribute -fields will be found in the header. If a bit is off, the attri- -bute fields are not present in the header. The following example -shows a header with Host Address and Reliability Attributes. The -brackets deliniate attribute boundaries. - - 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - !0 1 1 0 0 0 0 0!0 1 1 0 0 0 0 0! [ Dest Host ! - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - ! Src. Host ] ! [ Chksum ! Len ] ! - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - ! Data ! - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 6] - -April 1979 Flexible Datagram Protocol - - ATTRIBUTES - -Network Addressing: (Bit 0) - - The Network Addressing Attribute has a Destination and a -Source Network field. - - If not specified the datagram is not routed outside the -local network. See Addressing Operation below. - - Dest. Net. (Destination Network): 8 bits - Contains the number of the network to - which the datagram is to be routed. - - Src. Net. (Source Network): 8 bits - Contains the number of the network from - which the datagram originated. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Page 7] - -Flexible Datagram Protocol April 1979 - -Host Addressing: (Bit 1) - - The Host Addressing Attribute has a Destination and -Source Host field. - - If not specified, the datagram is a broadcast message to -all hosts. See Addressing Operation below. - - Dest. Host. (Destination Host): 16 bits - Contains the number of the host to which - the datagram is to be routed. - - Src. Host (Source Host): 16 bits - Contains the number of the host which - originated the datagram. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 8] - -April 1979 Flexible Datagram Protocol - -Reliability: (Bit 2) - - The Reliability Attribute contains a checksum and a -length field. - - If not specified, the datagram is assumed to be undamaged -and its length is obtained from the hardware interface. - - Chksum (Checksum): 8 bits - The Checksum field contains the one's - complement of the one's complement byte - sum of the datagram. The Checksum field - is set to zero while the checksum is - being computed. - - Len. (Length): 8 bits - The Length field specifies the number of - octets in the datagram. This field - counts all header and data octets. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Page 9] - -Flexible Datagram Protocol April 1979 - -Flow Control: (Bit 3) - - The Flow Control Attribute contains an Acknowledgement -field, a Window field, and a Sequence Number field. - - If not specified, the datagram is not subject to flow -control considerations. See Flow Control Operation below. - - Ack. (Acknowledgement): 8 bits - The Acknowledgement field contains a - sequence number greater than or equal - (cyclically) to the sequence numbers of - all successfully received datagrams. - - Window: 8 bits - The Window field contains the number of - datagrams beyond the sequence number in - the Acknowledgement field which the - sender of the datagram is willing to - accept. - - Seq. Num. (Sequence Number): 16 bits - The Sequence Number field contains the - sequence number of the datagram. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 10] - -April 1979 Flexible Datagram Protocol - -Fragmentation: (bit 4) - - The Fragmentation Attribute contains a Flags field, a -Life Time field, a Fragment Offset field, and a Message iden- -tifer. - - If the Fragmentation Attribute is not specified, gateways -are free to fragment the datagram into smaller messages if re- -quired by the destination network. See Fragmentation Operation -below. - - Flags: 8 bits - Various Control Flags. - 0 1 2 3 4 5 6 7 - +-+-+-+-+-+-+-+-+ - !0 D M 0 0 0 0 0! - !0 F F 0 0 0 0 0! - +-+-+-+-+-+-+-+-+ - - Bit 0: reserved, must be zero. - Bit 1: Don't Fragment This Datagram (DF). - Bit 2: More Fragments Field (MF). - Bit 3: Unused, must be zero. - Bit 4: Unused, must be zero. - Bit 5: Unused, must be zero. - Bit 6: Unused, must be zero. - Bit 7: Unused, must be zero. - - Life Time: 8 bits - This field is decremented for each hop - taken through the internetwork system. - If it decrements to zero, the datagram is - presumed to be in an internetwork loop - and should be discarded. - - Frag. Offset (Fragmentation Offset): 16 bits - This field relates the datagram to previ- - ous and future fragments. Each fragment - datagram is given a sequence number. - This field orders the fragment in rela- - tion to other fragments. - - Msg. Id. (Message Identifer): 16 bits - This field is an arbitrary identifer for - the message that was fragmented. Each - message fragment contains the identifer - to be used as an aid in reassembling the - fragments of the message. - - - - - - - - [Page 11] - -Flexible Datagram Protocol April 1979 - -Next Higher Level Protocol: (bit 5) - - This attribute contains the Next Protocol field. - - If this attribute is not specified, a default higher lev- -el protocol receives the datagram. - - Nxt. Proto. (Next Protocol): 8 bits - This field contains an identifier of the - next higher level protocol which is to - receive that contents of the data portion - of the datagram. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 12] - -April 1979 Flexible Datagram Protocol - -Type of Service: (bit 6) - - This attribute contains the Type of Service field. This -field, if present, defines the priority and relative speed re- -quirements within the priority which the sender wishes to attach -to the datagram. - - If not specified, no special handling is given to the -datagram. - - Type of Serv. (Type of Service): 8 bits - The Type of Service field contains two - sub-fields with define the priority of - the datagram and the speed which is to be - applied to the datagram. - - 0 1 2 3 4 5 6 7 - +-+-+-+-+-+-+-+-+ - ! Pri ! Spd ! - +-+-+-+-+-+-+-+-+ - - Priority Speed - 0 - Lowest 0 - Slowest - 31 - Highest 7 - Fastest - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Page 13] - -Flexible Datagram Protocol April 1979 - -Options: (bit 7) - - This attribute contains a variable number of fields. The -format is an option-type octet, an option-length octet, and the -actual option-data octets. There are two special case options -which have only the option-type octet (End of Options List and -Nop). - - The option-length octet includes the option-type octet -and the option-length octet in the octet count of the option -length. - - The option-type octet can be viewed as having three -fields: - - 1 bit reserved, must be zero - 2 bits option class - 5 bits option number - -The option classes are: - - 0 = control - 1 = internet error - 2 = experimental debugging and measurement - 3 = reserved for future use - - If not specified, no special option processing is re- -quested. - -The following options are defined: - - Class Number Length Description - 0 0 - End of Option List. - 0 1 - No Operation - 0 2 4 S/P/T. Security, Precidence, TCC - 0 3 var. Source Routine. - 0 31 4 Reset - 0 30 var. Status - 1 1 var. General Error Report. - 2 4 var. Internet Timestamp - 2 5 var. Satellite Timestamp - - -Specific Option Definitions - - End of Option List. This option indicates the end of -option list. It is always used to terminate the list of all -options. - - +--------+ - !00000000! - +--------+ - - No Operation. This option may be used between options to - -[Page 14] - -April 1979 Flexible Datagram Protocol - -align the beginning of a subsequent option on a 32 bit boundary. - - +--------+ - !00000001! - +--------+ - - S/P/T. This option provides a way for AUTODIN II hosts -to send security, precedence, and TCC (closed user groups) param- -eters through networks whose transport leader does not contain -fields for this information. - - +--------+--------+--------+--------+ - !00000010!00000100!Prec!Sec! TCC ! - +--------+--------+--------+--------+ - - Precedence: 4 bits - Specifies one of 16 levels of precedence. - - Security: 4 bits - Specifies one of 16 levels of security. - - Transmission Control Code (TCC): 8 bits - Provides a means to compartmentalize traffic - and define controlled communities of interest - among subscribers. - - Source Routing. The source routing option provides a -means for the source of a datagram to supply routing information -to be used by gateways in forwarding the datagram to the destina- -tion. - - A source route is composed of a series of internet ad- -dresses. The pointer is initially zero, which indicates the -first octet of the source route. The segment is routed to the -address in the source route indicated by the pointer. At the -internet module the pointer is advanced to the next address in -the source route. This routing and pointer advancement is re- -peated until the source address is exhausted. At that point, the -destination may have been reached, if not, the protocol module -must attempt to route the packet to the destination in the desti- -nation address field by the ordinary routing procedure. - - +--------+---------+--------+--------+-----/ /-----+ - !00000011! length ! pointer! source route ! - +--------+---------+--------+-------------/ /------+ - - Reset. The reset option allows a host on a network to -signal other hosts that its network operations have been restart- -ed. The data field contains the address of the restarted host. - - +--------+--------+--------+--------+ - !00011111!00000100! Host Address ! - +--------+--------+--------+--------+ - - - [Page 15] - -Flexible Datagram Protocol April 1979 - - Status. The status option allows a host to transmit -status information to a remote host. The conditions for elicit- -ing the information and the content of the data fields are net- -work dependent. - - +--------+--------+---------+--------/ /------+ - !00011110! length ! Status Info ! - +--------+--------+---------+-------/ /-------+ - - General Error Report. The general error report is used -to report an error detected in the processing of a datagram to -the originator of the datagram. The "err code" indicates the -type of error detected and the "id" is copied from the message id -field of the datagram, if it exists. Additional octets of error -information may be present depending on the error code. - - Err Code: - 0 - Undetermined Error Used when no in- - formation is available about the type of - error or the error does not fit in any - defined class. - - No error codes for specific classes have - been defined. - - +--------+--------+--------+--------+----/ /------+ - !00100001! length !err code! id ! ! - +--------+--------+--------+--------+-----/ /-----+ - - Internet Timestamp. No information is available on the -specific format of Timestamps. - - +--------+--------+--------+--------+-----/ /-----+ - !01000100! length ! ! - +--------+--------+--------+--------+----/ /------+ - - Satellite Timestamp. No information is available on the -specific format of Timestamps. - - +--------+--------+---------+--------+---/ /-----+ - !01000101! length ! ! - +--------+--------+---------+--------+---/ /-----+ - - - - - - - - - - - - - -[Page 16] - -April 1979 Flexible Datagram Protocol - - Addressing Operation - - A distinction is made between names, addresses, and -routes [4]. A name indicates what we seek. An address indicates -where it is. A route indicates how to get there. The Flexible -Datagram Protocol deals only with addresses. It is the task of -higher level protocols to make the mapping from names to ad- -dresses. It is the task of lower level procedures (i.e. internet -gateways) to make the mapping from addresses to routes. - - When the Network Address Attribute is specified, the net- -work fields have values obtained from reference [5]. When a mes- -sage is transmitted to the cable-bus, all internet gateways watch -for messages with destination networks to which they have access. -If a match is found, the remaining attributes of the header are -processed according to specified convention. The datagram is -then passed along the route to the remote network after possible -fragmentation. - - When the Host Address Attribute is specified, hosts com- -pare the destination host field with their address. If a match -is found, and the destination network number (if specified) -matches the local network number, the host processes the remain- -ing Attributes in the header of the datagram and passes the data -portion of the datagram to the next higher level protocol. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Page 17] - -Flexible Datagram Protocol April 1979 - - Flow Control Operation - - Flow control regulates the transfer of data. Each re- -ceiver controls the amount of data a transmitter may send. Each -receiver can dynamically update this control without loss or -duplication of data. - - Each datagram containing the Flow Control Attribute is -assigned a sequence number. The sequence numbers range from 0 to -65535 and are used cyclically; i.e. 0 follows 65535. The se- -quence number for each datagram is placed in the header of each -outgoing datagram containing the Flow Control Attribute. The -first sequence number used is zero. - - The Ack field contains the sequence number of the last -datagram accepted by the transmitter. The receiver can consider -all sequence numbers (cyclically) less than or equal to the -number in the Ack field to have been received by the other end -and can free buffers accordingly. - - The Window field contains the number of datagrams, beyond -that denoted by the Ack field, the transmitter is currently -prepared to accept. The datagrams will have sequence numbers -(Ack + 1) through (Ack + Window) cyclically calculated. A window -value of zero indicates that the transmitter is not prepared to -accept any datagrams until further notice. This does not mean -that a transmitter may not send a datagram. It means that re- -transmission intervals should be increased significantly. - - The sending of a datagram with a non-zero window does not -irrevocably commit a transmitter to accept that number of da- -tagrams. Changing conditions may cause an untimely reduction in -the window size. These conditions may prevail at the same time -other transmitters are sending datagrams (for which they were -given a non-zero window) to the afflicted host. Sequences of -this kind can generate duplicate and discarded datagrams. - - A receiver must be able to detect and discard duplicate -datagrams. In order for duplicate detection to be possible, the -Window field must not contain a value greater than half the se- -quence number space (i.e. 32768) and no more than 32768 datagrams -may be unacknowledged at any time. A receiver may identify du- -plicate datagrams as those with sequence numbers in the range - - ((last acknowledged) - 32767) through (last acknowledged) - -A receiver should discard any datagrams with sequence numbers in -this range. - - Sending a window size greater than 32768 is prohibited. -Receiving a window size greater than 32768 should be adjusted to -32768. - - Certain combinations of events can generate the receipt - -[Page 18] - -April 1979 Flexible Datagram Protocol - -of datagrams out of sequence. A receiver may discard out-of- -sequence datagrams or it may save them for later insertion into -the proper sequence. - - It is possible for datagrams to arrive for which a window -does not currently exist. A receiver may discard these da- -tagrams. - - A transmitter should be aware of these situations and -have sufficient mechanisms to retransmit a datagram after a rea- -sonable time has elapsed. Various strategies for defining "rea- -sonable" are under study. - - The simplest strategy a receiver can employ is to accept -only the next datagram in sequence and discard all others. This -works if the receiver employs a somewhat linear window policy. - - Acknowledgements should be sent as soon as possible. -They may be carried by datagrams flowing the other way. If no -datagram is available for carrying the response after a "reason- -able" time a datagram containing appropriate Address Attributes -and the Flow Control Attribute should be artifically constructed -and transmitted. It may be reasonable to employ a time-out -mechanism controlling generation of "acknowledgement only" da- -tagrams. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Page 19] - -Flexible Datagram Protocol April 1979 - - Fragmentation Operation - - Fragmentation of a datagram may be necessary when it ori- -ginates in a remote network that allows a large datagram size and -must traverse the local network which limits datagrams to a -smaller size. - - The Message Identification field is used together with -the source and destination address (if present), and the Next -Protocol field (if present) to identify fragments for reassembly. - - The More Fragments flag bit (MF) is set if the datagram -is not the last fragment. The Fragment Offset field identifies -the fragment number relative to the beginning of the original -unfragmented datagram; zero is the first fragment, one the second -and so on. - - When fragmentation occurs, options are generally not -copied, but remain with the first fragment. Some options, such -as source routing, must be copied. - - The fields which may be affected by fragmentation in- -clude: - - (1) options field - (2) more fragments flag - (3) fragment offset - (4) checksum (if present) - - If the Don't Fragment flag (DF) bit is set then fragmen- -tation of the datagram is not permitted, although it may be dis- -carded. This is used where the receiving host does not have -resources to reassemble fragments. - - The choice of Message Identifier for a datagram is based -on the need to provide a way to uniquely identify the fragments -of a particular datagram. The protocol module assembling frag- -ments judges fragments to belong ot the same datagram if they -have the same source, destination, Next Higher Level Protocol (if -present), and Message Identifier. Thus, the sender must choose -the Identifier to be unique for this source and destination pair -and protocol over the time the datagram (or any fragment of it) -could be alive in the internetwork. - - It is appropriate for some higher level protocols to -choose the identifier. For example, TCP modules may retransmit -an identical TCP segment, and the probability for correct recep- -tion would be enhanced if the retransmission carried the same -identifier as the original transmission since fragments of either -datagram could be used to reconstruct a correct TCP segment. - - - - - -[Page 20] - -April 1979 Flexible Datagram Protocol - - REFERENCES - -[1] Skelton, A.P., Holmgren, S.F., "The MITRE - Cablenet Project", IEN 96, April 1979 - -[2] Information Sciences Institute, "Internet Datagram Protocol", - Version 4, IEN 80, February 1979 - -[3] Information Sciences Institute, "Transmission Control Protocol", - Version 4, IEN 81, February 1979 - -[4] Shoch, J., "A Note On Inter-Network Naming, Addressing, and - Routing," Xerox Palo Alto Research Center, IEN 19, January 1978. - -[5] Postel, J., "Assigned Numbers," RFC 750, NIC 45500, - 26 September 1978. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Page 21] diff --git a/text/ien/ien98.txt b/text/ien/ien98.txt deleted file mode 100644 index a244cf03..00000000 --- a/text/ien/ien98.txt +++ /dev/null @@ -1,1204 +0,0 @@ - - - - -IEN 98 - - - TCP Implementation Status - - - - - - Jon Postel - - Mike Wingfield - - Norm Abramovitz - - Bob Braden - - Gary Grossman - - Bill Plummer - - Jim Mathis - - Aage Stensby - - Dave Clark - - - 3 May 1979 - - - - - - Information Sciences Institute - University of Southern California - 4676 Admiralty Way - Marina del Rey, California 90291 - - (213) 822-1511 - - -IEN-98 J. Postel - ISI - 3 May 1979 - - - - TCP IMPLEMENTATION STATUS - ------------------------- - -Introduction ------------- - -This is a collection of reports on the status of implementations of the -Transmission Control Protocol (TCP) [1]. The systems and reporters are: - - BBN Unix -- Mike Wingfield - Ford KSOS -- Norm Abramovitz - UCLA 360 -- Bob Braden - DTI Unix -- Gary Grossman - BBN Tenex -- Bill Plummer - Tops-20 - SRI LSI-11 -- Jim Mathis - NDRE NORD-10 -- Aage Stensby - MIT Multics -- Dave Clark - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [page 1] - - - - 3 May 1979 -TCP Implementation Status IEN 98 -BBN Unix - - - -BBN Unix Report - Michael A. Wingfield ---------------- - -The following is a status report on the TCP developed at BBN for DCA -under contract DCA100-78-C-0011. - -Implementation Language - - C - -Memory requirements - - Bytes: 22000 instr, 15000 data - -Number of connections - - 10 currently, but a compile time parameter - -Operating System - - Unix with BBN IPC additions - -Hardware - - PDP-11 - -Status - - TCP has been completed since March 15, 1979. - -User Programs - - There is a THP user and server available, as well as a Telnet user and - server. A trivial ftp user and server for the raw movement of bytes - between files exists and has been used to move files between a Unix on - the ARPANET and a Unix on the RCCNET. There is also a test package - for exercising TCP. - -Bandwidth - - 12Kb - 13Kb looped through the IMP, 20Kb internally looped. - -Programming Effort - - 6 man-months - - - -[page 2] Wingfield - - - -3 May 1979 -IEN 98 TCP Implementation Status - BBN Unix - - - -Documentation - - "TCP/PSIP Development Report" which describes the user interface to - TCP and high level design. A software documentation report is - required under the contract but is not available yet. - -Accessibility - - TCP is always available on link 155 at BBN-Unix (Host 0, Imp 63). A - THP server is always listening. TCP and THP are also available at - EDN-Unix when their machine is on the net (Host 3, Imp 20). All - numbers are decimal. - -Additional Features - - This TCP implements the AUTODIN II security, precedence, and TCC - features specified in the SRI TCP report. The gateway/2 program can - forward incoming segments to other destinations if necessary. A - flakiness simulator in the gateway can be made to drop, duplicate, - reorder, and break different percentages of outgoing segments for - testing purposes. These parameters can be changed dynamically. - - - - - - - - - - - - - - - - - - - - - - - - - - - -Wingfield [page 3] - - - - 3 May 1979 -TCP Implementation Status IEN 98 -Ford KSOS - - - -Ford KSOS Report - Norm Abramovitz ----------------- - -Implementation Language - - C and Modula - -Memory Requirements - - ?? - -Number of Simultaneous Connections - - will depend on system capacity (not table space limited) - -Operating System - - KSOS Kernel - -Hardware - - PDP-11/70, 11/45(?) - -Status - - Currently in detail design, implementation to start circa 1 May 79. - -Higher Level Protocols - - none yet. (Server protocols for multi-level secure systems need some - serious research work yet.) - -Other Features - - Design envisages support for a multi-level secure network, although no - specific support is included. Internet datagram layer is supported - including fragment reassembly. - -Point of Contact - - Jay McCauley or Norm Abramovitz (chief designer/KSOS TCP) - - - - - - - -[page 4] Abramovitz - - - -3 May 1979 -IEN 98 TCP Implementation Status - UCLA 360 - - - -UCLA 360 Report - Bob Braden ------------ - -Philosophical Remarks - - This implementation of the Internet and TCP protocols is designed to - meet the following general objectives: - - (a) operate within the existing NCP system job, sharing code and - control-block formats wherever possible; - - (b) be compatible at the system-call level with the existing - user-level protocol modules; - - (c) implement the Internet protocol as a distinct layer, with - interfaces designed to expedite the implementation of other - higher-level internet protocols in addition to TCP; - - (d) require minimum NCP resources when internet protocol is not in - use. - -Hardware - - IBM 360/370, with a Santa Barbara interface to the IMP. - -Operating System - - OS/MVT, Release 21.8, with the addition of several user-written - Supervisor-call routines (including the Exchange program). The UCLA - NCP operates as a system job, with its own internal multiprogramming - and resource management mechanism. - -Implementation Language - - BAL (IBM's macro assembly language) - -Code Size (addition to existing NCP code) - - Resident Control Process 4K bytes - - Internet Protocol Layer 8K bytes (transient) - - TCP Protocol Layer 9K bytes (transient) - - - - - -Braden [page 5] - - - - 3 May 1979 -TCP Implementation Status IEN 98 -UCLA 360 - - - -Fixed Table Space - - The limited fixed table space is included in the code (above). - -Connections Supported - - Only practical limitation is amount of memory available in NCP region - for buffers and per-connection control blocks (see following). - -Cost per Connection - - Control blocks - - For each connection, the internet and TCP layers require control - blocks totaling 256 bytes. - - (*)Receive - - Segment reassembly buffer= max segment size - min internet header - length + 16= 572 bytes per buffer. - - (*)Send - - 128 bytes per unacknowledged segment. - - Note: The actual data being sent is not counted here, as it occupies - buffer space belonging to the appropriate user-level protocol module. - - (*)Note: There is a dynamic pool of these objects, shared among all - active connections. The pool grows and shrinks dynamically with the - number of connections; it is probably reasonable to expect an average - of one segment reassembly buffer and one unacknowledged segment (total - of 700 bytes) per TCP connection. - - In addition to this TCP-specific memory, there is the memory to - support the user-level protocol. For example, a server-Telnet session - to TSO requires control blocks and buffers totaling about 1800 bytes; - this is identical for TCP and for the ARPANET Host-Host protocol. - -Performance - - No information available yet - - - - - - -[page 6] Braden - - - -3 May 1979 -IEN 98 TCP Implementation Status - UCLA 360 - - - -Operational Status - - In debugging - -Implementation Time - - Approximately 20 man-months - -User-Level Protocols Available - - User and Server Telnet - -Documentation - - In progress - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Braden [page 7] - - - - 3 May 1979 -TCP Implementation Status IEN 98 -DTI Unix - - - -DTI Unix Report - Gary Grossman ---------------- - -Background - - Digital Technology Incorporated (DTI) is constructing an IOC Network - Front End (INFE) to connect WWMCCS hosts and terminals to the AUTODIN - II network. As part of the INFE effort, DTI has developed a version 3 - TCP which will be updated to a version 4 TCP when Government direction - is forthcoming. - -Implementation Language - - PDP-11 Version 6 Unix C - -Instruction Space Memory Required - - 9.6K 16-bit words of PDP-11 instructions - -Buffer and Table Memory Space Required - - Fixed - - 4K 16-bit words - - Per-connection - - Words of tables, etc. - - 100 - - Words of buffer space - - None (uses user process buffers) - -Connections Supported - - Order of 50 - -Operating System - - Version 6 Unix as modified for the INFE by the addition of a special - interprocess communication mechanism. - - - - - -[page 8] Grossman - - - -3 May 1979 -IEN 98 TCP Implementation Status - DTI Unix - - - -Hardware - - DEC PDP-11/70 and PDP-11/45 (Code not machine-dependent; could run - on other machines given appropriate C compiler and operating - system, but there may be address space problems on machines with - a single 16-bit address space per process.) - -Operational Status - - Has been run extensively with identical implementations only. - -Telnet Availability - - None - -Other Protocols Available - - Terminal-to-Host Protocol (THP) as specified in - - Postel, J., Garlick, L., and Rom, R., Terminal-to-Host Protocol - Specification, Stanford Research Institute, Menlo Park, 15 July - 1976. - -Measured Bandwidth - - Maximum bandwidth on a single connection through the DTI H516 IMP is - 60K bits/second. - -Measured Packet Processing Rate - - Order of 40 packets/second - -Implementation Time - - Six (6) man-months - -Documentation - - Described in - - Healy, D.C. and Buford, W.E., Transmission Control Protocol and - Pseudo Segment Interface Protocol Program Maintenance Manual, DTI - Document Number 78020.C-INFE.3, Digital Technology Incorporated, - Champaign, Illinois, 18 December 1978, 207 pp. - - - - -Grossman [page 9] - - - - 3 May 1979 -TCP Implementation Status IEN 98 -DTI Unix - - - - There is also extensive documentation in the source. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[page 10] Grossman - - - -3 May 1979 -IEN 98 TCP Implementation Status - BBN TENEX/TOPS20 - - - -BBN TENEX/TOPS20 Report - William W. Plummer ------------------------ - -Background Information - - There are several TCP implementations for TENEX and TOPS20. The first - such version was written in (the compiler language) BCPL and ran in - user mode. Later a MACRO-10 (assembly language) version was written - which has been included in the monitors. The BCPL version tracked all - protocol changes through TCP 2.5.2 and the assembly language version - started with TCP 2.4. The BCPL TCP has now been retired and assembly - language version are available for versions 2.5.2, 4.0 and 4.0(ver 1) - (see below). - - It should be noted that the higher level protocols such as Telnet were - implemented originally for the BCPL TCP. Since only minor changes - have been made to the user interface, it is these same programs which - are still in use with the monitors TCP. - - Bandwidth figures are rather hard to give because of variations in the - operating systems, networks, setting of various parameters in the TCP - during the measurement runs, and the continuing evolution of the TCP - code itself. The bench mark used for the figures below is TCPTST, a - program which sends 1000. packets to itself. This program attempts to - keep 8 packets outstanding and thus something between 125. and 1000. - acknowledge packets will flow in the reverse direction. - -BCPL TCP 2.5.2 - - Code size - - 20,000. words - - Data space - - 16,000. words - - Environment - - KA10 processor - - TENEX operating system - - JSYS traps used to simulate monitor calls SNDIM/RCVIM to communicate - with ARPANET - - - -Plummer [page 11] - - - - 3 May 1979 -TCP Implementation Status IEN 98 -BBN TENEX/TOPS20 - - - - Implementation time - - Basic protocol module - - 4 man-months, coding 6 man-months, debugging - - Each server - - 1 man-month, coding 1 man-month, debugging - - Higher-level protocols implemented - - Telnet server - Telnet user - ECHO - SINK - PRDATA (measurement program for PR Net) - - Bandwidth bench mark - - 438 seconds - - Status - - Retired, but could easily be revived. - - Comments - - Debugging was relatively easy since it was done in user mode. On - the other hand only on other host was available to talk to. Many - debugging feature such as a packet tracer were incorporated which - helped considerably. Being in BCPL, the TCP implementors - occasionally found themselves at the mercy of the compiler - implementors. - -Assembly language TCP 2.5.2 - - Code size - - 5,000. words - - Data space - - 4,000. words on TOPS20 101B 16,000. words on TENEX - 16,000. words on TOPS20 3A on 2020 - - - -[page 12] Plummer - - - -3 May 1979 -IEN 98 TCP Implementation Status - BBN TENEX/TOPS20 - - - - Environment - - KA10 processor running TENEX or, Model A KL10/20 running TOPS20 101B - or, Model 2020 running TOPS20 3A. - - Implementation time - - Basic protocol module - - 2 man-months, coding 6 man-months, debugging - - Each server - - None. (Same programs used) - - Higher-level protocols implemented - - Same as above. - - Bandwidth bench marks - - 46 seconds on KA10 67 seconds on 2020 30 seconds on KL10 with cache - - Status - - Currently available on BBNC, ISIC, and SRI-KA. Secure version - running on BBNE and ISIA. - - Comments - - Last version 2.5 implementation. Many intermediate version 2.X - steps were taken over a relatively long time. Debugging hampered by - lack of stand alone computer time for monitor debugging. - -TCP 4.0 - - This is the first of the version 4 implementations. The code was - derived from the version 2.5.2 sources in approximately 2 weeks. - Bandwidth and size figures are the same. - - Status - - Running on BBNB - - - - - -Plummer [page 13] - - - - 3 May 1979 -TCP Implementation Status IEN 98 -BBN TENEX/TOPS20 - - - -TCP 4.0(ver 1) - - TCP 4.0(ver 1) is derived from TCP 4. Internally it is somewhat - different and offers more features to users. Most notable is a set of - JSYS calls by which users may access the Internet layer in order to - experiment with private Internet protocols. The mechanism by which - TCP transfers data between user buffers and Internet packets is - considerably different than it was in 4.0 and is much faster. Also - the free storage management package has been streamlined. The major - task underway is embedding the Telnet server in the monitor along with - the TCP itself. - - Code size - - 5,200 words - - Data space - - 256,000 words on KL20 TOPS20 3A 16,000 words on TENEX, 2020, TOPS20 - 101B - - Environment - - Development System - - KL2040 processor - TOPS20 3A monitor - (Should work with TENEX and other versions of TOPS20, but this has - not been tried yet.) - - Bandwidth bench mark - - 26 seconds (2040 without cache) 43 seconds (2020) - - Status - - Running on BBNF by arrangement - - - - - - - - - - - -[page 14] Plummer - - - -3 May 1979 -IEN 98 TCP Implementation Status - SRI LSI-11 - - - -SRI LSI-11 Report - Jim Mathis ------------------ - -Implementation Language - - PDP-11 MACRO assembler - -Hardware - - LSI-11 or PDP-11 in user mode - - Note: The software was developed to run on the MOS operating system - for LSI-11s, but should be transportable with minor changes to other - real-time operating systems that provide an interprocess communication - and signaling mechanism. An earlier version of the software (version - 2.5) has been transported to RSX-11, ELF, and Unix. - -Instruction Space Requirements - - TCP - - approximately 1800 decimal words - - Internet Protocol - - approximately 1000 decimal words - - Note: The TCP and Internet protocol operate from a network - characteristics table that simplifies conversion from use on one - packet-switched network to another. The software currently supports - attachment to the ARPANET or the Packet Radio Network. The software - is structured to allow attachments to multiple networks, although this - feature has not been tested. - -Simultaneous Connections - - limited only by CPU loading and the amount of buffer space available - - The state information for each TCP connection is maintained in a - connection block of approximately 50 words; but a minimum of 100-500 - words of buffer space is recommended for each connection in active - use. - - - - - - -Mathis [page 15] - - - - 3 May 1979 -TCP Implementation Status IEN 98 -SRI LSI-11 - - - -Comment - - The TCP and Internet software were developed for the Packet Radio - Terminal Interface Unit to provide terminal access to internetwork - hosts (a function similar to that provided by the TIPS for ARPANET - hosts). Because the TIU is not a timesharing machine, the only higher - level protocols available are Telnet. The Telnet will operate, by - manual command, in either the active (user) or passive (server) mode. - -Status - - TCP - - - in preliminary release stage and undergoing further debugging - - - has undergone functional tests with other TCP version 4 sites - - Internet - - - has undergone functional tests with other TCP version 4 sites - -Implementation Time - - The effort expended to design and code the TCP and Internet software - is difficult to estimate; the software has been evolving for the last - 3 years. Reconstruction of the software from scratch would probably - require about 6 to 10 man-months. - - - - - - - - - - - - - - - - - - - - - -[page 16] Mathis - - - -3 May 1979 -IEN 98 TCP Implementation Status - NDRE NORD-10 - - - -NDRE NORD-10 Report - Aage Stensby -------------------- - -TCP STATUS - - Philosophical Remarks - - Due to the idiosyncrasies of the operating system, it has been a - goal to keep the number of processes as low as possible without - complicating the internal logic of the program. Accordingly, there - is one process for input handling and one process for output - handling. In addition, it has been necessary to include a separate - retransmission process. The code has been tested rather thoroughly - routine by routine and connections have been opened and closed a - number of times in loop mode. The TCP does not yet support urgent - or rubber EOL. - - Hardware - - The TCP runs on a NORD-10 with 64K memory. - - Operating System - - SINTRAN III, version 77.05.17c - - Implementation Language - - NORD PL, which is a machine oriented medium level language. - - Code Size - - 7k words(16 bit) This includes the present internet module. - - Buffer Space - - Dynamically allocated, maximum 7k which may be extended. - - Connections Supported - - No strict limit, but probably in the order of 4-5 due to available - processing power. - - Cost per Connection - - ? - - - -Stensby [page 17] - - - - 3 May 1979 -TCP Implementation Status IEN 98 -NDRE NORD-10 - - - - Delay per Packet - - Not measured - - Bandwidth - - Not measured - - CPU Utilization - - Not estimated - -INTERNET STATUS - - The internet code is not separated from the TCP code. It is planned - to gather it in a separate process with a well-defined interface to - the TCP. Reassembling of fragments is not yet done. Maximum - acceptable segment size is 1008 bytes. - - The internet address is: - - IMP LH HOST - - 51 0 1 - - - - - - - - - - - - - - - - - - - - - - - - -[page 18] Stensby - - - -3 May 1979 -IEN 98 TCP Implementation Status - MIT Multics - - - -MIT Multics Report - Dave Clark ------------------- - -Implementation Language - - PL/I - -Memory Space (in 36 bit words) - - TCP 13.6k, IN 5.5k - -Table Space - - About 40 words per connection - -Buffer Space - - In virtual memory, no relevant limit in size - -Hardware/Operating System - - H68/80, Multics - -Operational Status - - Currently available about half time for experimentation, up as - experimental service in week or so. - -Other Protocols - - Datagram protocol, name server, user Telnet, server Telnet (The server - Telnet is a kludge and requires programming by Honeywell before it can - be considered really useable. Performance: No relevant data - available yet. In a subjective test, Telnet is useable, but sometimes - sluggish. - -Implementation Time - - I have no idea. It has been worked on by several people at the 10% - level, so the total time invested is quite unclear. - - - - - - - - -Clark [page 19] - - - - 3 May 1979 -TCP Implementation Status IEN 98 -References - - - -References ----------- - - - -[1] J. Postel. "Transmission Control Protocol -- Version 4," IEN 81, - USC-Information Sciences Institute, February 1979. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[page 20] Postel - diff --git a/text/ien/ien99.txt b/text/ien/ien99.txt deleted file mode 100644 index 1fb52919..00000000 --- a/text/ien/ien99.txt +++ /dev/null @@ -1,207 +0,0 @@ - - - - - - - - - - - -INDRA Note 753 -IEN 99 -May 3rd 1979 - - - - - - - - - - - NI FTP: Summary and Assessment - - P. L. Higginson - C. J. Bennett - - - - - - - - - - - ABSTRACT: This note is a brief summary of - the NI FTP, its design aims, and the ways - in which those aims are achieved. A - comparison of the NI FTP and the DIN FTP - proposed for AUTODIN II is contained in - IEN 100. - - 2 - - - -1. The NI FTP Protocol - - This section is a brief summary of the important features of the NI -FTP protocol. - - The NI FTP was written by a committee of people from eight -different organisations in the UK who between them used a wide variety -of computer systems and hardware. Computers used by the group were -manufactured, among others, by DEC, IBM, ICL, GEC, PRIME and CTL. -Drafts were widely circulated and discussed outside the design group. -While the initial aim was to produce a protocol for transferring files -across EPSS, "network independence" became an overriding aim. This was -because it was realised that EPSS would shortly be replaced by a -different, X25-based network, and because most of the eight -organisations had multiple systems or their own local networks, and the -ability to use the FTP in all these areas was desired. There are about -15 implementations in progress, of which 3 have so far exchanged files. -UCL has a TOPS20/TENEX implementation which has transferred files across -the ARPANET, and tests have begun on interworking with implementations -in EPSS. - - The NI FTP is a two-party file transfer protocol. The transfer -occurs in two phases. In the first, the transfer is defined and the -attributes of the data to be transferred are negotiated. In the second, -the data is actually transferred. Three levels of protocol are -recognised: level 0, which covers the negotiation of file transfer -parameters; level 1, which handles error and flow control during the -transfer, along with any data or time dependent changes in the file; and -level 2, which is the actual transfer of data. - - The negotiation phase is simply structured to be an exchange of -file attributes between the two sides. These attributes define a common -definition of the file and the transfer within a "conceptual filestore" -supported by the two sides. During this phase, agreement is reached on -such things as character code, file size, file name and access rights, -all of which are regarded as attributes of the file within the -conceptual file store. It is up to the two ends to map these attributes -into locally acceptable forms for their actual filestores; if this -cannot be done, the transfer may be rejected. - - The currently defined attributes cover a basic set of properties of -sequential files. This set can be easily extended, and facilities are -provided to enable implementations to grow in an upwards compatible -manner. Every attribute has a default value, which allows an -implementor to construct a transfer facility as simple or as complex as -desired, in the knowledge that his facility will be able to interact -easily with more complex ones. This is possible because quoting an -unknown attribute or unacceptable value for an attribute need not of -itself cause a protocol error. During the negotiation phase, the more -complex implementation will reduce its attribute set to one acceptable -to the simpler one. - - 3 - - - - The data transfer phase can treat the data totally transparently, -but does provide a user record structure for text files if desired. It -allows for data compression as an option, which can significantly reduce -the amount of data actually transferred. Even if this is not used, the -protocol overhead can be as low as 1 byte in 64. For text files, the -existence of different degrees of formatting sophistication is -recognised by allowing a set of common format effectors to be agreed in -the negotiation phase. The data can be in a variety of codes, as agreed -during the negotiation phase, and the particular code in use can be -changed during the transfer phase, thus allowing the protocol to handle -special files such as job output files, graphics files with embedded -text, or symbolic files produced by a compiler for debugging purposes. -Binary files can use byte sizes of any arbitrary size as agreed in -advance. - - Error control is provided by the use of data checkpoints. These -are inserted by the sender at suitable points, and may be matched to the -characteristics of the file source or destination storage devices. The -acknowledgement of a data mark implies that the data has been securely -stored by the receiver. The use of a data window of unacknowledged data -marks enables the sender to detect problems at the receiving end which -will cause it to suspend the flow of data. On recovery (or in any -appropriate circumstance), the receiver can ask the sender to resume the -transfer starting from any mark after the last mark acknowledged. This -facility also protects the transfer against loss of data within the -network, and can even be used to resume an interrupted transfer in a -separate session. - - Flow control is provided by allowing the receiver to request the -sender to suspend the flow of data, and to tell it when to resume. This -is primarily intended to cover device interruptions (eg mounting a -magnetic tape). The use of these options is again subject to prior -agreement during the initial negotiation phase, as with all the other -attributes. - - The mechanics of the data transfer is left to the transport -mechanism. The protocol is defined so as to make minimal assumptions -about the transport service. These are: the transport service will -provide a synchronised sequential bytestream between the two sides with -an acceptably low rate of error, and that if an unrecoverable error does -occur, there exists some way for the transport service to notify the -application process. Recovery would then be handled by the error -control mechanism described above. - - - - - 4 - - - -2. Assessment of the NI FTP. - -The design of the NI FTP was governed by four basic objectives: - - (i) The protocol should be independent of the communication medium. - - (ii) It should be flexible enough to satisfy a diverse variety of - applications. - - (iii) It should be able to interface easily to a wide range of - operating systems. - - (iv) It should allow "escape routes" such that special features of - a particular operating system can be exploited where necessary. - -The following features of the protocol were designed to meet these -objectives: - - (i) The minimal requirements necessary from a transport service - were identified and adhered to, along with the recognition that - unrecoverable errors (at transport level) may occur. - - (ii) The definition of the file is in terms of a conceptual file - store. No restrictions were placed on the mapping of this file - store to the local file store, either in the attributes - specification or in the definition of the negotiation process. The - inclusion of option sets and relational operators in the attribute - specification allows extensions to be easily incorporated into - existing implementations and into the protocol itself. A number of - parameters provide the required "escape routes" for areas where - operating system dependent peculiarities are anticipated. - - (iii) Complete transparency for naming files and for data transfer - is possible. - - (iv) The "records" of data transfer used within the protocol enable - mixing of control and data within a single connection. They need - have no relation to the record structure (if any) used within the - file, unless the user so desires. The only restriction is that the - communication medium should deliver eight bit bytes of data in - sequence. - - (v) The formats of control commands and attributes are standardised - in a machine-oriented form. The action of the protocol is defined - as a single file transfer transaction. Hence the dominant need for - flexible command formats occurs in the negotiation phase, and the - level 0 commands are very loosely structured to allow indefinite - extension. Only a very small number of commands must be exchanged - during the data transfer; for this reason, a more rigid structure - was adopted for level 1 commands to ease processing overhead. - diff --git a/text/ien/scanned/README b/text/ien/scanned/README deleted file mode 100644 index c1ed895f..00000000 --- a/text/ien/scanned/README +++ /dev/null @@ -1,2 +0,0 @@ -Scanned IENs, obtained from Bill Manning 13 Oct5 2008 - diff --git a/text/std/.message b/text/std/.message deleted file mode 100644 index a2b85c38..00000000 --- a/text/std/.message +++ /dev/null @@ -1,6 +0,0 @@ -*====================================================================* -* * -* This directory is maintained by the RFC Editor. If you experience * -* any problems, please report them to rfc-editor@rfc-editor.org. * -* * -*====================================================================* diff --git a/text/std/std-index.txt b/text/std/std-index.txt deleted file mode 120000 index 602961ca..00000000 --- a/text/std/std-index.txt +++ /dev/null @@ -1 +0,0 @@ -../std-index.txt \ No newline at end of file diff --git a/text/std/std-retrieval.txt b/text/std/std-retrieval.txt deleted file mode 100644 index 4b4bd213..00000000 --- a/text/std/std-retrieval.txt +++ /dev/null @@ -1,51 +0,0 @@ - - Where and how to get STDs - ========================= - -The IAB Internet Standards are documented in a small subset of the -RFCs. Once you know the RFC number of the document describing an -STD you may obtain that document by getting the RFC (see -ways_to_get_rfcs). - -For convenience these documents are also grouped and listed by their -STD numbers. - -The STDs may be obtained via EMAIL or FTP from STD Repositories. - -Many of these repositories also now have World Wide Web servers. Try -the following URL as a starting point: - - http://www.rfc-editor.org - - -1. FTP.RFC-EDITOR.ORG - -STDs are available via anonymous FTP from FTP.RFC-EDITOR.ORG, with the -pathname: in-notes/std/stdNN.txt (where "NN" is the number of the STD. -For example STD2.TXT is the current Assigned Numbers document. Login -with FTP username "anonymous" and password "ftp". - -STDs can also be obtained via electronic mail from FTP.RFC-EDITOR.ORG -by using the RFC-INFO service. Address the request to -"rfc-info@rfc-editor.org" with a message body of: - - Retrieve: STD - Doc-ID: STDnnnn - -(Where "nnnn" refers to the number of the STD (always use 4 digits, so -STD 2 is STD0002 in the RFC-INFO service). The RFC-INFO@RFC-EDITOR.ORG -server provides other ways of selecting STDs based on date ranges and -such; for more information send a message to "rfc-info@rfc-editor.org" -with the message body "help: help". - -Note that STDs may be very large (greater than 100,000 characters), the -RFC-INFO service will return large documents in sections of less than -50,000 characters each. - -contact: rfc-editor@rfc-editor.org - - -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Changes to this file "std-retrieval.txt" should be sent to -RFC-EDITOR@RFC-EDITOR.ORG -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/text/std/std1.txt b/text/std/std1.txt deleted file mode 120000 index 0292dee8..00000000 --- a/text/std/std1.txt +++ /dev/null @@ -1 +0,0 @@ -../rfc5000.txt \ No newline at end of file diff --git a/text/std/std10.txt b/text/std/std10.txt deleted file mode 100644 index 88e3a841..00000000 --- a/text/std/std10.txt +++ /dev/null @@ -1,5577 +0,0 @@ - -[Note that this file is a concatenation of more than one RFC.] - - RFC 821 - - - - - - SIMPLE MAIL TRANSFER PROTOCOL - - - - Jonathan B. Postel - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - August 1982 - - - - Information Sciences Institute - University of Southern California - 4676 Admiralty Way - Marina del Rey, California 90291 - - (213) 822-1511 - - - - -RFC 821 August 1982 - Simple Mail Transfer Protocol - - - - TABLE OF CONTENTS - - 1. INTRODUCTION .................................................. 1 - - 2. THE SMTP MODEL ................................................ 2 - - 3. THE SMTP PROCEDURE ............................................ 4 - - 3.1. Mail ..................................................... 4 - 3.2. Forwarding ............................................... 7 - 3.3. Verifying and Expanding .................................. 8 - 3.4. Sending and Mailing ..................................... 11 - 3.5. Opening and Closing ..................................... 13 - 3.6. Relaying ................................................ 14 - 3.7. Domains ................................................. 17 - 3.8. Changing Roles .......................................... 18 - - 4. THE SMTP SPECIFICATIONS ...................................... 19 - - 4.1. SMTP Commands ........................................... 19 - 4.1.1. Command Semantics ..................................... 19 - 4.1.2. Command Syntax ........................................ 27 - 4.2. SMTP Replies ............................................ 34 - 4.2.1. Reply Codes by Function Group ......................... 35 - 4.2.2. Reply Codes in Numeric Order .......................... 36 - 4.3. Sequencing of Commands and Replies ...................... 37 - 4.4. State Diagrams .......................................... 39 - 4.5. Details ................................................. 41 - 4.5.1. Minimum Implementation ................................ 41 - 4.5.2. Transparency .......................................... 41 - 4.5.3. Sizes ................................................. 42 - - APPENDIX A: TCP ................................................. 44 - APPENDIX B: NCP ................................................. 45 - APPENDIX C: NITS ................................................ 46 - APPENDIX D: X.25 ................................................ 47 - APPENDIX E: Theory of Reply Codes ............................... 48 - APPENDIX F: Scenarios ........................................... 51 - - GLOSSARY ......................................................... 64 - - REFERENCES ....................................................... 67 - - - - -Network Working Group J. Postel -Request for Comments: DRAFT ISI -Replaces: RFC 788, 780, 772 August 1982 - - SIMPLE MAIL TRANSFER PROTOCOL - - -1. INTRODUCTION - - The objective of Simple Mail Transfer Protocol (SMTP) is to transfer - mail reliably and efficiently. - - SMTP is independent of the particular transmission subsystem and - requires only a reliable ordered data stream channel. Appendices A, - B, C, and D describe the use of SMTP with various transport services. - A Glossary provides the definitions of terms as used in this - document. - - An important feature of SMTP is its capability to relay mail across - transport service environments. A transport service provides an - interprocess communication environment (IPCE). An IPCE may cover one - network, several networks, or a subset of a network. It is important - to realize that transport systems (or IPCEs) are not one-to-one with - networks. A process can communicate directly with another process - through any mutually known IPCE. Mail is an application or use of - interprocess communication. Mail can be communicated between - processes in different IPCEs by relaying through a process connected - to two (or more) IPCEs. More specifically, mail can be relayed - between hosts on different transport systems by a host on both - transport systems. - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 1] - - - -August 1982 RFC 821 -Simple Mail Transfer Protocol - - - -2. THE SMTP MODEL - - The SMTP design is based on the following model of communication: as - the result of a user mail request, the sender-SMTP establishes a - two-way transmission channel to a receiver-SMTP. The receiver-SMTP - may be either the ultimate destination or an intermediate. SMTP - commands are generated by the sender-SMTP and sent to the - receiver-SMTP. SMTP replies are sent from the receiver-SMTP to the - sender-SMTP in response to the commands. - - Once the transmission channel is established, the SMTP-sender sends a - MAIL command indicating the sender of the mail. If the SMTP-receiver - can accept mail it responds with an OK reply. The SMTP-sender then - sends a RCPT command identifying a recipient of the mail. If the - SMTP-receiver can accept mail for that recipient it responds with an - OK reply; if not, it responds with a reply rejecting that recipient - (but not the whole mail transaction). The SMTP-sender and - SMTP-receiver may negotiate several recipients. When the recipients - have been negotiated the SMTP-sender sends the mail data, terminating - with a special sequence. If the SMTP-receiver successfully processes - the mail data it responds with an OK reply. The dialog is purposely - lock-step, one-at-a-time. - - ------------------------------------------------------------- - - - +----------+ +----------+ - +------+ | | | | - | User |<-->| | SMTP | | - +------+ | Sender- |Commands/Replies| Receiver-| - +------+ | SMTP |<-------------->| SMTP | +------+ - | File |<-->| | and Mail | |<-->| File | - |System| | | | | |System| - +------+ +----------+ +----------+ +------+ - - - Sender-SMTP Receiver-SMTP - - Model for SMTP Use - - Figure 1 - - ------------------------------------------------------------- - - The SMTP provides mechanisms for the transmission of mail; directly - from the sending user's host to the receiving user's host when the - - - -[Page 2] Postel - - - -RFC 821 August 1982 - Simple Mail Transfer Protocol - - - - two host are connected to the same transport service, or via one or - more relay SMTP-servers when the source and destination hosts are not - connected to the same transport service. - - To be able to provide the relay capability the SMTP-server must be - supplied with the name of the ultimate destination host as well as - the destination mailbox name. - - The argument to the MAIL command is a reverse-path, which specifies - who the mail is from. The argument to the RCPT command is a - forward-path, which specifies who the mail is to. The forward-path - is a source route, while the reverse-path is a return route (which - may be used to return a message to the sender when an error occurs - with a relayed message). - - When the same message is sent to multiple recipients the SMTP - encourages the transmission of only one copy of the data for all the - recipients at the same destination host. - - The mail commands and replies have a rigid syntax. Replies also have - a numeric code. In the following, examples appear which use actual - commands and replies. The complete lists of commands and replies - appears in Section 4 on specifications. - - Commands and replies are not case sensitive. That is, a command or - reply word may be upper case, lower case, or any mixture of upper and - lower case. Note that this is not true of mailbox user names. For - some hosts the user name is case sensitive, and SMTP implementations - must take case to preserve the case of user names as they appear in - mailbox arguments. Host names are not case sensitive. - - Commands and replies are composed of characters from the ASCII - character set [1]. When the transport service provides an 8-bit byte - (octet) transmission channel, each 7-bit character is transmitted - right justified in an octet with the high order bit cleared to zero. - - When specifying the general form of a command or reply, an argument - (or special symbol) will be denoted by a meta-linguistic variable (or - constant), for example, "" or "". Here the - angle brackets indicate these are meta-linguistic variables. - However, some arguments use the angle brackets literally. For - example, an actual reverse-path is enclosed in angle brackets, i.e., - "" is an instance of (the - angle brackets are actually transmitted in the command or reply). - - - - - -Postel [Page 3] - - - -August 1982 RFC 821 -Simple Mail Transfer Protocol - - - -3. THE SMTP PROCEDURES - - This section presents the procedures used in SMTP in several parts. - First comes the basic mail procedure defined as a mail transaction. - Following this are descriptions of forwarding mail, verifying mailbox - names and expanding mailing lists, sending to terminals instead of or - in combination with mailboxes, and the opening and closing exchanges. - At the end of this section are comments on relaying, a note on mail - domains, and a discussion of changing roles. Throughout this section - are examples of partial command and reply sequences, several complete - scenarios are presented in Appendix F. - - 3.1. MAIL - - There are three steps to SMTP mail transactions. The transaction - is started with a MAIL command which gives the sender - identification. A series of one or more RCPT commands follows - giving the receiver information. Then a DATA command gives the - mail data. And finally, the end of mail data indicator confirms - the transaction. - - The first step in the procedure is the MAIL command. The - contains the source mailbox. - - MAIL FROM: - - This command tells the SMTP-receiver that a new mail - transaction is starting and to reset all its state tables and - buffers, including any recipients or mail data. It gives the - reverse-path which can be used to report errors. If accepted, - the receiver-SMTP returns a 250 OK reply. - - The can contain more than just a mailbox. The - is a reverse source routing list of hosts and - source mailbox. The first host in the should be - the host sending this command. - - The second step in the procedure is the RCPT command. - - RCPT TO: - - This command gives a forward-path identifying one recipient. - If accepted, the receiver-SMTP returns a 250 OK reply, and - stores the forward-path. If the recipient is unknown the - receiver-SMTP returns a 550 Failure reply. This second step of - the procedure can be repeated any number of times. - - - -[Page 4] Postel - - - -RFC 821 August 1982 - Simple Mail Transfer Protocol - - - - The can contain more than just a mailbox. The - is a source routing list of hosts and the - destination mailbox. The first host in the - should be the host receiving this command. - - The third step in the procedure is the DATA command. - - DATA - - If accepted, the receiver-SMTP returns a 354 Intermediate reply - and considers all succeeding lines to be the message text. - When the end of text is received and stored the SMTP-receiver - sends a 250 OK reply. - - Since the mail data is sent on the transmission channel the end - of the mail data must be indicated so that the command and - reply dialog can be resumed. SMTP indicates the end of the - mail data by sending a line containing only a period. A - transparency procedure is used to prevent this from interfering - with the user's text (see Section 4.5.2). - - Please note that the mail data includes the memo header - items such as Date, Subject, To, Cc, From [2]. - - The end of mail data indicator also confirms the mail - transaction and tells the receiver-SMTP to now process the - stored recipients and mail data. If accepted, the - receiver-SMTP returns a 250 OK reply. The DATA command should - fail only if the mail transaction was incomplete (for example, - no recipients), or if resources are not available. - - The above procedure is an example of a mail transaction. These - commands must be used only in the order discussed above. - Example 1 (below) illustrates the use of these commands in a mail - transaction. - - - - - - - - - - - - - - -Postel [Page 5] - - - -August 1982 RFC 821 -Simple Mail Transfer Protocol - - - - ------------------------------------------------------------- - - Example of the SMTP Procedure - - This SMTP example shows mail sent by Smith at host Alpha.ARPA, - to Jones, Green, and Brown at host Beta.ARPA. Here we assume - that host Alpha contacts host Beta directly. - - S: MAIL FROM: - R: 250 OK - - S: RCPT TO: - R: 250 OK - - S: RCPT TO: - R: 550 No such user here - - S: RCPT TO: - R: 250 OK - - S: DATA - R: 354 Start mail input; end with . - S: Blah blah blah... - S: ...etc. etc. etc. - S: . - R: 250 OK - - The mail has now been accepted for Jones and Brown. Green did - not have a mailbox at host Beta. - - Example 1 - - ------------------------------------------------------------- - - - - - - - - - - - - - - - - -[Page 6] Postel - - - -RFC 821 August 1982 - Simple Mail Transfer Protocol - - - - 3.2. FORWARDING - - There are some cases where the destination information in the - is incorrect, but the receiver-SMTP knows the - correct destination. In such cases, one of the following replies - should be used to allow the sender to contact the correct - destination. - - 251 User not local; will forward to - - This reply indicates that the receiver-SMTP knows the user's - mailbox is on another host and indicates the correct - forward-path to use in the future. Note that either the - host or user or both may be different. The receiver takes - responsibility for delivering the message. - - 551 User not local; please try - - This reply indicates that the receiver-SMTP knows the user's - mailbox is on another host and indicates the correct - forward-path to use. Note that either the host or user or - both may be different. The receiver refuses to accept mail - for this user, and the sender must either redirect the mail - according to the information provided or return an error - response to the originating user. - - Example 2 illustrates the use of these responses. - - ------------------------------------------------------------- - - Example of Forwarding - - Either - - S: RCPT TO: - R: 251 User not local; will forward to - - Or - - S: RCPT TO: - R: 551 User not local; please try - - Example 2 - - ------------------------------------------------------------- - - - - -Postel [Page 7] - - - -August 1982 RFC 821 -Simple Mail Transfer Protocol - - - - 3.3. VERIFYING AND EXPANDING - - SMTP provides as additional features, commands to verify a user - name or expand a mailing list. This is done with the VRFY and - EXPN commands, which have character string arguments. For the - VRFY command, the string is a user name, and the response may - include the full name of the user and must include the mailbox of - the user. For the EXPN command, the string identifies a mailing - list, and the multiline response may include the full name of the - users and must give the mailboxes on the mailing list. - - "User name" is a fuzzy term and used purposely. If a host - implements the VRFY or EXPN commands then at least local mailboxes - must be recognized as "user names". If a host chooses to - recognize other strings as "user names" that is allowed. - - In some hosts the distinction between a mailing list and an alias - for a single mailbox is a bit fuzzy, since a common data structure - may hold both types of entries, and it is possible to have mailing - lists of one mailbox. If a request is made to verify a mailing - list a positive response can be given if on receipt of a message - so addressed it will be delivered to everyone on the list, - otherwise an error should be reported (e.g., "550 That is a - mailing list, not a user"). If a request is made to expand a user - name a positive response can be formed by returning a list - containing one name, or an error can be reported (e.g., "550 That - is a user name, not a mailing list"). - - In the case of a multiline reply (normal for EXPN) exactly one - mailbox is to be specified on each line of the reply. In the case - of an ambiguous request, for example, "VRFY Smith", where there - are two Smith's the response must be "553 User ambiguous". - - The case of verifying a user name is straightforward as shown in - example 3. - - - - - - - - - - - - - - -[Page 8] Postel - - - -RFC 821 August 1982 - Simple Mail Transfer Protocol - - - - ------------------------------------------------------------- - - Example of Verifying a User Name - - Either - - S: VRFY Smith - R: 250 Fred Smith - - Or - - S: VRFY Smith - R: 251 User not local; will forward to - - Or - - S: VRFY Jones - R: 550 String does not match anything. - - Or - - S: VRFY Jones - R: 551 User not local; please try - - Or - - S: VRFY Gourzenkyinplatz - R: 553 User ambiguous. - - Example 3 - - ------------------------------------------------------------- - - - - - - - - - - - - - - - - - -Postel [Page 9] - - - -August 1982 RFC 821 -Simple Mail Transfer Protocol - - - - The case of expanding a mailbox list requires a multiline reply as - shown in example 4. - - ------------------------------------------------------------- - - Example of Expanding a Mailing List - - Either - - S: EXPN Example-People - R: 250-Jon Postel - R: 250-Fred Fonebone - R: 250-Sam Q. Smith - R: 250-Quincy Smith <@USC-ISIF.ARPA:Q-Smith@ISI-VAXA.ARPA> - R: 250- - R: 250 - - Or - - S: EXPN Executive-Washroom-List - R: 550 Access Denied to You. - - Example 4 - - ------------------------------------------------------------- - - The character string arguments of the VRFY and EXPN commands - cannot be further restricted due to the variety of implementations - of the user name and mailbox list concepts. On some systems it - may be appropriate for the argument of the EXPN command to be a - file name for a file containing a mailing list, but again there is - a variety of file naming conventions in the Internet. - - The VRFY and EXPN commands are not included in the minimum - implementation (Section 4.5.1), and are not required to work - across relays when they are implemented. - - - - - - - - - - - - - -[Page 10] Postel - - - -RFC 821 August 1982 - Simple Mail Transfer Protocol - - - - 3.4. SENDING AND MAILING - - The main purpose of SMTP is to deliver messages to user's - mailboxes. A very similar service provided by some hosts is to - deliver messages to user's terminals (provided the user is active - on the host). The delivery to the user's mailbox is called - "mailing", the delivery to the user's terminal is called - "sending". Because in many hosts the implementation of sending is - nearly identical to the implementation of mailing these two - functions are combined in SMTP. However the sending commands are - not included in the required minimum implementation - (Section 4.5.1). Users should have the ability to control the - writing of messages on their terminals. Most hosts permit the - users to accept or refuse such messages. - - The following three command are defined to support the sending - options. These are used in the mail transaction instead of the - MAIL command and inform the receiver-SMTP of the special semantics - of this transaction: - - SEND FROM: - - The SEND command requires that the mail data be delivered to - the user's terminal. If the user is not active (or not - accepting terminal messages) on the host a 450 reply may - returned to a RCPT command. The mail transaction is - successful if the message is delivered the terminal. - - SOML FROM: - - The Send Or MaiL command requires that the mail data be - delivered to the user's terminal if the user is active (and - accepting terminal messages) on the host. If the user is - not active (or not accepting terminal messages) then the - mail data is entered into the user's mailbox. The mail - transaction is successful if the message is delivered either - to the terminal or the mailbox. - - SAML FROM: - - The Send And MaiL command requires that the mail data be - delivered to the user's terminal if the user is active (and - accepting terminal messages) on the host. In any case the - mail data is entered into the user's mailbox. The mail - transaction is successful if the message is delivered the - mailbox. - - - -Postel [Page 11] - - - -August 1982 RFC 821 -Simple Mail Transfer Protocol - - - - The same reply codes that are used for the MAIL commands are used - for these commands. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 12] Postel - - - -RFC 821 August 1982 - Simple Mail Transfer Protocol - - - - 3.5. OPENING AND CLOSING - - At the time the transmission channel is opened there is an - exchange to ensure that the hosts are communicating with the hosts - they think they are. - - The following two commands are used in transmission channel - opening and closing: - - HELO - - QUIT - - In the HELO command the host sending the command identifies - itself; the command may be interpreted as saying "Hello, I am - ". - - ------------------------------------------------------------- - - Example of Connection Opening - - R: 220 BBN-UNIX.ARPA Simple Mail Transfer Service Ready - S: HELO USC-ISIF.ARPA - R: 250 BBN-UNIX.ARPA - - Example 5 - - ------------------------------------------------------------- - - ------------------------------------------------------------- - - Example of Connection Closing - - S: QUIT - R: 221 BBN-UNIX.ARPA Service closing transmission channel - - Example 6 - - ------------------------------------------------------------- - - - - - - - - - - -Postel [Page 13] - - - -August 1982 RFC 821 -Simple Mail Transfer Protocol - - - - 3.6. RELAYING - - The forward-path may be a source route of the form - "@ONE,@TWO:JOE@THREE", where ONE, TWO, and THREE are hosts. This - form is used to emphasize the distinction between an address and a - route. The mailbox is an absolute address, and the route is - information about how to get there. The two concepts should not - be confused. - - Conceptually the elements of the forward-path are moved to the - reverse-path as the message is relayed from one server-SMTP to - another. The reverse-path is a reverse source route, (i.e., a - source route from the current location of the message to the - originator of the message). When a server-SMTP deletes its - identifier from the forward-path and inserts it into the - reverse-path, it must use the name it is known by in the - environment it is sending into, not the environment the mail came - from, in case the server-SMTP is known by different names in - different environments. - - If when the message arrives at an SMTP the first element of the - forward-path is not the identifier of that SMTP the element is not - deleted from the forward-path and is used to determine the next - SMTP to send the message to. In any case, the SMTP adds its own - identifier to the reverse-path. - - Using source routing the receiver-SMTP receives mail to be relayed - to another server-SMTP The receiver-SMTP may accept or reject the - task of relaying the mail in the same way it accepts or rejects - mail for a local user. The receiver-SMTP transforms the command - arguments by moving its own identifier from the forward-path to - the beginning of the reverse-path. The receiver-SMTP then becomes - a sender-SMTP, establishes a transmission channel to the next SMTP - in the forward-path, and sends it the mail. - - The first host in the reverse-path should be the host sending the - SMTP commands, and the first host in the forward-path should be - the host receiving the SMTP commands. - - Notice that the forward-path and reverse-path appear in the SMTP - commands and replies, but not necessarily in the message. That - is, there is no need for these paths and especially this syntax to - appear in the "To:" , "From:", "CC:", etc. fields of the message - header. - - If a server-SMTP has accepted the task of relaying the mail and - - - -[Page 14] Postel - - - -RFC 821 August 1982 - Simple Mail Transfer Protocol - - - - later finds that the forward-path is incorrect or that the mail - cannot be delivered for whatever reason, then it must construct an - "undeliverable mail" notification message and send it to the - originator of the undeliverable mail (as indicated by the - reverse-path). - - This notification message must be from the server-SMTP at this - host. Of course, server-SMTPs should not send notification - messages about problems with notification messages. One way to - prevent loops in error reporting is to specify a null reverse-path - in the MAIL command of a notification message. When such a - message is relayed it is permissible to leave the reverse-path - null. A MAIL command with a null reverse-path appears as follows: - - MAIL FROM:<> - - An undeliverable mail notification message is shown in example 7. - This notification is in response to a message originated by JOE at - HOSTW and sent via HOSTX to HOSTY with instructions to relay it on - to HOSTZ. What we see in the example is the transaction between - HOSTY and HOSTX, which is the first step in the return of the - notification message. - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 15] - - - -August 1982 RFC 821 -Simple Mail Transfer Protocol - - - - ------------------------------------------------------------- - - Example Undeliverable Mail Notification Message - - S: MAIL FROM:<> - R: 250 ok - S: RCPT TO:<@HOSTX.ARPA:JOE@HOSTW.ARPA> - R: 250 ok - S: DATA - R: 354 send the mail data, end with . - S: Date: 23 Oct 81 11:22:33 - S: From: SMTP@HOSTY.ARPA - S: To: JOE@HOSTW.ARPA - S: Subject: Mail System Problem - S: - S: Sorry JOE, your message to SAM@HOSTZ.ARPA lost. - S: HOSTZ.ARPA said this: - S: "550 No Such User" - S: . - R: 250 ok - - Example 7 - - ------------------------------------------------------------- - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 16] Postel - - - -RFC 821 August 1982 - Simple Mail Transfer Protocol - - - - 3.7. DOMAINS - - Domains are a recently introduced concept in the ARPA Internet - mail system. The use of domains changes the address space from a - flat global space of simple character string host names to a - hierarchically structured rooted tree of global addresses. The - host name is replaced by a domain and host designator which is a - sequence of domain element strings separated by periods with the - understanding that the domain elements are ordered from the most - specific to the most general. - - For example, "USC-ISIF.ARPA", "Fred.Cambridge.UK", and - "PC7.LCS.MIT.ARPA" might be host-and-domain identifiers. - - Whenever domain names are used in SMTP only the official names are - used, the use of nicknames or aliases is not allowed. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Postel [Page 17] - - - -August 1982 RFC 821 -Simple Mail Transfer Protocol - - - - 3.8. CHANGING ROLES - - The TURN command may be used to reverse the roles of the two - programs communicating over the transmission channel. - - If program-A is currently the sender-SMTP and it sends the TURN - command and receives an ok reply (250) then program-A becomes the - receiver-SMTP. - - If program-B is currently the receiver-SMTP and it receives the - TURN command and sends an ok reply (250) then program-B becomes - the sender-SMTP. - - To refuse to change roles the receiver sends the 502 reply. - - Please note that this command is optional. It would not normally - be used in situations where the transmission channel is TCP. - However, when the cost of establishing the transmission channel is - high, this command may be quite useful. For example, this command - may be useful in supporting be mail exchange using the public - switched telephone system as a transmission channel, especially if - some hosts poll other hosts for mail exchanges. - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 18] Postel - - - -RFC 821 August 1982 - Simple Mail Transfer Protocol - - - -4. THE SMTP SPECIFICATIONS - - 4.1. SMTP COMMANDS - - 4.1.1. COMMAND SEMANTICS - - The SMTP commands define the mail transfer or the mail system - function requested by the user. SMTP commands are character - strings terminated by . The command codes themselves are - alphabetic characters terminated by if parameters follow - and otherwise. The syntax of mailboxes must conform to - receiver site conventions. The SMTP commands are discussed - below. The SMTP replies are discussed in the Section 4.2. - - A mail transaction involves several data objects which are - communicated as arguments to different commands. The - reverse-path is the argument of the MAIL command, the - forward-path is the argument of the RCPT command, and the mail - data is the argument of the DATA command. These arguments or - data objects must be transmitted and held pending the - confirmation communicated by the end of mail data indication - which finalizes the transaction. The model for this is that - distinct buffers are provided to hold the types of data - objects, that is, there is a reverse-path buffer, a - forward-path buffer, and a mail data buffer. Specific commands - cause information to be appended to a specific buffer, or cause - one or more buffers to be cleared. - - HELLO (HELO) - - This command is used to identify the sender-SMTP to the - receiver-SMTP. The argument field contains the host name of - the sender-SMTP. - - The receiver-SMTP identifies itself to the sender-SMTP in - the connection greeting reply, and in the response to this - command. - - This command and an OK reply to it confirm that both the - sender-SMTP and the receiver-SMTP are in the initial state, - that is, there is no transaction in progress and all state - tables and buffers are cleared. - - - - - - - -Postel [Page 19] - - - -August 1982 RFC 821 -Simple Mail Transfer Protocol - - - - MAIL (MAIL) - - This command is used to initiate a mail transaction in which - the mail data is delivered to one or more mailboxes. The - argument field contains a reverse-path. - - The reverse-path consists of an optional list of hosts and - the sender mailbox. When the list of hosts is present, it - is a "reverse" source route and indicates that the mail was - relayed through each host on the list (the first host in the - list was the most recent relay). This list is used as a - source route to return non-delivery notices to the sender. - As each relay host adds itself to the beginning of the list, - it must use its name as known in the IPCE to which it is - relaying the mail rather than the IPCE from which the mail - came (if they are different). In some types of error - reporting messages (for example, undeliverable mail - notifications) the reverse-path may be null (see Example 7). - - This command clears the reverse-path buffer, the - forward-path buffer, and the mail data buffer; and inserts - the reverse-path information from this command into the - reverse-path buffer. - - RECIPIENT (RCPT) - - This command is used to identify an individual recipient of - the mail data; multiple recipients are specified by multiple - use of this command. - - The forward-path consists of an optional list of hosts and a - required destination mailbox. When the list of hosts is - present, it is a source route and indicates that the mail - must be relayed to the next host on the list. If the - receiver-SMTP does not implement the relay function it may - user the same reply it would for an unknown local user - (550). - - When mail is relayed, the relay host must remove itself from - the beginning forward-path and put itself at the beginning - of the reverse-path. When mail reaches its ultimate - destination (the forward-path contains only a destination - mailbox), the receiver-SMTP inserts it into the destination - mailbox in accordance with its host mail conventions. - - - - - -[Page 20] Postel - - - -RFC 821 August 1982 - Simple Mail Transfer Protocol - - - - For example, mail received at relay host A with arguments - - FROM: - TO:<@HOSTA.ARPA,@HOSTB.ARPA:USERC@HOSTD.ARPA> - - will be relayed on to host B with arguments - - FROM:<@HOSTA.ARPA:USERX@HOSTY.ARPA> - TO:<@HOSTB.ARPA:USERC@HOSTD.ARPA>. - - This command causes its forward-path argument to be appended - to the forward-path buffer. - - DATA (DATA) - - The receiver treats the lines following the command as mail - data from the sender. This command causes the mail data - from this command to be appended to the mail data buffer. - The mail data may contain any of the 128 ASCII character - codes. - - The mail data is terminated by a line containing only a - period, that is the character sequence "." (see - Section 4.5.2 on Transparency). This is the end of mail - data indication. - - The end of mail data indication requires that the receiver - must now process the stored mail transaction information. - This processing consumes the information in the reverse-path - buffer, the forward-path buffer, and the mail data buffer, - and on the completion of this command these buffers are - cleared. If the processing is successful the receiver must - send an OK reply. If the processing fails completely the - receiver must send a failure reply. - - When the receiver-SMTP accepts a message either for relaying - or for final delivery it inserts at the beginning of the - mail data a time stamp line. The time stamp line indicates - the identity of the host that sent the message, and the - identity of the host that received the message (and is - inserting this time stamp), and the date and time the - message was received. Relayed messages will have multiple - time stamp lines. - - When the receiver-SMTP makes the "final delivery" of a - message it inserts at the beginning of the mail data a - - - -Postel [Page 21] - - - -August 1982 RFC 821 -Simple Mail Transfer Protocol - - - - return path line. The return path line preserves the - information in the from the MAIL command. - Here, final delivery means the message leaves the SMTP - world. Normally, this would mean it has been delivered to - the destination user, but in some cases it may be further - processed and transmitted by another mail system. - - It is possible for the mailbox in the return path be - different from the actual sender's mailbox, for example, - if error responses are to be delivered a special error - handling mailbox rather than the message senders. - - The preceding two paragraphs imply that the final mail data - will begin with a return path line, followed by one or more - time stamp lines. These lines will be followed by the mail - data header and body [2]. See Example 8. - - Special mention is needed of the response and further action - required when the processing following the end of mail data - indication is partially successful. This could arise if - after accepting several recipients and the mail data, the - receiver-SMTP finds that the mail data can be successfully - delivered to some of the recipients, but it cannot be to - others (for example, due to mailbox space allocation - problems). In such a situation, the response to the DATA - command must be an OK reply. But, the receiver-SMTP must - compose and send an "undeliverable mail" notification - message to the originator of the message. Either a single - notification which lists all of the recipients that failed - to get the message, or separate notification messages must - be sent for each failed recipient (see Example 7). All - undeliverable mail notification messages are sent using the - MAIL command (even if they result from processing a SEND, - SOML, or SAML command). - - - - - - - - - - - - - - - -[Page 22] Postel - - - -RFC 821 August 1982 - Simple Mail Transfer Protocol - - - - ------------------------------------------------------------- - - Example of Return Path and Received Time Stamps - - Return-Path: <@GHI.ARPA,@DEF.ARPA,@ABC.ARPA:JOE@ABC.ARPA> - Received: from GHI.ARPA by JKL.ARPA ; 27 Oct 81 15:27:39 PST - Received: from DEF.ARPA by GHI.ARPA ; 27 Oct 81 15:15:13 PST - Received: from ABC.ARPA by DEF.ARPA ; 27 Oct 81 15:01:59 PST - Date: 27 Oct 81 15:01:01 PST - From: JOE@ABC.ARPA - Subject: Improved Mailing System Installed - To: SAM@JKL.ARPA - - This is to inform you that ... - - Example 8 - - ------------------------------------------------------------- - - SEND (SEND) - - This command is used to initiate a mail transaction in which - the mail data is delivered to one or more terminals. The - argument field contains a reverse-path. This command is - successful if the message is delivered to a terminal. - - The reverse-path consists of an optional list of hosts and - the sender mailbox. When the list of hosts is present, it - is a "reverse" source route and indicates that the mail was - relayed through each host on the list (the first host in the - list was the most recent relay). This list is used as a - source route to return non-delivery notices to the sender. - As each relay host adds itself to the beginning of the list, - it must use its name as known in the IPCE to which it is - relaying the mail rather than the IPCE from which the mail - came (if they are different). - - This command clears the reverse-path buffer, the - forward-path buffer, and the mail data buffer; and inserts - the reverse-path information from this command into the - reverse-path buffer. - - SEND OR MAIL (SOML) - - This command is used to initiate a mail transaction in which - the mail data is delivered to one or more terminals or - - - -Postel [Page 23] - - - -August 1982 RFC 821 -Simple Mail Transfer Protocol - - - - mailboxes. For each recipient the mail data is delivered to - the recipient's terminal if the recipient is active on the - host (and accepting terminal messages), otherwise to the - recipient's mailbox. The argument field contains a - reverse-path. This command is successful if the message is - delivered to a terminal or the mailbox. - - The reverse-path consists of an optional list of hosts and - the sender mailbox. When the list of hosts is present, it - is a "reverse" source route and indicates that the mail was - relayed through each host on the list (the first host in the - list was the most recent relay). This list is used as a - source route to return non-delivery notices to the sender. - As each relay host adds itself to the beginning of the list, - it must use its name as known in the IPCE to which it is - relaying the mail rather than the IPCE from which the mail - came (if they are different). - - This command clears the reverse-path buffer, the - forward-path buffer, and the mail data buffer; and inserts - the reverse-path information from this command into the - reverse-path buffer. - - SEND AND MAIL (SAML) - - This command is used to initiate a mail transaction in which - the mail data is delivered to one or more terminals and - mailboxes. For each recipient the mail data is delivered to - the recipient's terminal if the recipient is active on the - host (and accepting terminal messages), and for all - recipients to the recipient's mailbox. The argument field - contains a reverse-path. This command is successful if the - message is delivered to the mailbox. - - The reverse-path consists of an optional list of hosts and - the sender mailbox. When the list of hosts is present, it - is a "reverse" source route and indicates that the mail was - relayed through each host on the list (the first host in the - list was the most recent relay). This list is used as a - source route to return non-delivery notices to the sender. - As each relay host adds itself to the beginning of the list, - it must use its name as known in the IPCE to which it is - relaying the mail rather than the IPCE from which the mail - came (if they are different). - - This command clears the reverse-path buffer, the - - - -[Page 24] Postel - - - -RFC 821 August 1982 - Simple Mail Transfer Protocol - - - - forward-path buffer, and the mail data buffer; and inserts - the reverse-path information from this command into the - reverse-path buffer. - - RESET (RSET) - - This command specifies that the current mail transaction is - to be aborted. Any stored sender, recipients, and mail data - must be discarded, and all buffers and state tables cleared. - The receiver must send an OK reply. - - VERIFY (VRFY) - - This command asks the receiver to confirm that the argument - identifies a user. If it is a user name, the full name of - the user (if known) and the fully specified mailbox are - returned. - - This command has no effect on any of the reverse-path - buffer, the forward-path buffer, or the mail data buffer. - - EXPAND (EXPN) - - This command asks the receiver to confirm that the argument - identifies a mailing list, and if so, to return the - membership of that list. The full name of the users (if - known) and the fully specified mailboxes are returned in a - multiline reply. - - This command has no effect on any of the reverse-path - buffer, the forward-path buffer, or the mail data buffer. - - HELP (HELP) - - This command causes the receiver to send helpful information - to the sender of the HELP command. The command may take an - argument (e.g., any command name) and return more specific - information as a response. - - This command has no effect on any of the reverse-path - buffer, the forward-path buffer, or the mail data buffer. - - - - - - - - -Postel [Page 25] - - - -August 1982 RFC 821 -Simple Mail Transfer Protocol - - - - NOOP (NOOP) - - This command does not affect any parameters or previously - entered commands. It specifies no action other than that - the receiver send an OK reply. - - This command has no effect on any of the reverse-path - buffer, the forward-path buffer, or the mail data buffer. - - QUIT (QUIT) - - This command specifies that the receiver must send an OK - reply, and then close the transmission channel. - - The receiver should not close the transmission channel until - it receives and replies to a QUIT command (even if there was - an error). The sender should not close the transmission - channel until it send a QUIT command and receives the reply - (even if there was an error response to a previous command). - If the connection is closed prematurely the receiver should - act as if a RSET command had been received (canceling any - pending transaction, but not undoing any previously - completed transaction), the sender should act as if the - command or transaction in progress had received a temporary - error (4xx). - - TURN (TURN) - - This command specifies that the receiver must either (1) - send an OK reply and then take on the role of the - sender-SMTP, or (2) send a refusal reply and retain the role - of the receiver-SMTP. - - If program-A is currently the sender-SMTP and it sends the - TURN command and receives an OK reply (250) then program-A - becomes the receiver-SMTP. Program-A is then in the initial - state as if the transmission channel just opened, and it - then sends the 220 service ready greeting. - - If program-B is currently the receiver-SMTP and it receives - the TURN command and sends an OK reply (250) then program-B - becomes the sender-SMTP. Program-B is then in the initial - state as if the transmission channel just opened, and it - then expects to receive the 220 service ready greeting. - - To refuse to change roles the receiver sends the 502 reply. - - - -[Page 26] Postel - - - -RFC 821 August 1982 - Simple Mail Transfer Protocol - - - - There are restrictions on the order in which these command may - be used. - - The first command in a session must be the HELO command. - The HELO command may be used later in a session as well. If - the HELO command argument is not acceptable a 501 failure - reply must be returned and the receiver-SMTP must stay in - the same state. - - The NOOP, HELP, EXPN, and VRFY commands can be used at any - time during a session. - - The MAIL, SEND, SOML, or SAML commands begin a mail - transaction. Once started a mail transaction consists of - one of the transaction beginning commands, one or more RCPT - commands, and a DATA command, in that order. A mail - transaction may be aborted by the RSET command. There may - be zero or more transactions in a session. - - If the transaction beginning command argument is not - acceptable a 501 failure reply must be returned and the - receiver-SMTP must stay in the same state. If the commands - in a transaction are out of order a 503 failure reply must - be returned and the receiver-SMTP must stay in the same - state. - - The last command in a session must be the QUIT command. The - QUIT command can not be used at any other time in a session. - - 4.1.2. COMMAND SYNTAX - - The commands consist of a command code followed by an argument - field. Command codes are four alphabetic characters. Upper - and lower case alphabetic characters are to be treated - identically. Thus, any of the following may represent the mail - command: - - MAIL Mail mail MaIl mAIl - - This also applies to any symbols representing parameter values, - such as "TO" or "to" for the forward-path. Command codes and - the argument fields are separated by one or more spaces. - However, within the reverse-path and forward-path arguments - case is important. In particular, in some hosts the user - "smith" is different from the user "Smith". - - - - -Postel [Page 27] - - - -August 1982 RFC 821 -Simple Mail Transfer Protocol - - - - The argument field consists of a variable length character - string ending with the character sequence . The receiver - is to take no action until this sequence is received. - - Square brackets denote an optional argument field. If the - option is not taken, the appropriate default is implied. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -[Page 28] Postel - - - -RFC 821 August 1982 - Simple Mail Transfer Protocol - - - - The following are the SMTP commands: - - HELO - - MAIL FROM: - - RCPT TO: - - DATA - - RSET - - SEND FROM: - - SOML FROM: - - SAML FROM: - - VRFY - - EXPN - - HELP [ ] - - NOOP - - QUIT - - TURN - - - - - - - - - - - - - - - - - - - - -Postel [Page 29] - - - -August 1982 RFC 821 -Simple Mail Transfer Protocol - - - - The syntax of the above argument fields (using BNF notation - where applicable) is given below. The "..." notation indicates - that a field may be repeated one or more times. - - ::= - - ::= - - ::= "<" [ ":" ] ">" - - ::= | "," - - ::= "@" - - ::= | "." - - ::= | "#" | "[" "]" - - ::= "@" - - ::= | - - ::= - - ::= | - - ::= | - - ::= | | "-" - - ::= | "." - - ::= | - - ::= """ """ - - ::= "\" | "\" | | - - ::= | "\" - - ::= "." "." "." - - ::= | - - ::= - - - - -[Page 30] Postel - - - -RFC 821 August 1982 - Simple Mail Transfer Protocol - - - - ::= the carriage return character (ASCII code 13) - - ::= the line feed character (ASCII code 10) - - ::= the space character (ASCII code 32) - - ::= one, two, or three digits representing a decimal - integer value in the range 0 through 255 - - ::= any one of the 52 alphabetic characters A through Z - in upper case and a through z in lower case - - ::= any one of the 128 ASCII characters, but not any - or - - ::= any one of the ten digits 0 through 9 - - ::= any one of the 128 ASCII characters except , - , quote ("), or backslash (\) - - ::= any one of the 128 ASCII characters (no exceptions) - - ::= "<" | ">" | "(" | ")" | "[" | "]" | "\" | "." - | "," | ";" | ":" | "@" """ | the control - characters (ASCII codes 0 through 31 inclusive and - 127) - - Note that the backslash, "\", is a quote character, which is - used to indicate that the next character is to be used - literally (instead of its normal interpretation). For example, - "Joe\,Smith" could be used to indicate a single nine character - user field with comma being the fourth character of the field. - - Hosts are generally known by names which are translated to - addresses in each host. Note that the name elements of domains - are the official names -- no use of nicknames or aliases is - allowed. - - Sometimes a host is not known to the translation function and - communication is blocked. To bypass this barrier two numeric - forms are also allowed for host "names". One form is a decimal - integer prefixed by a pound sign, "#", which indicates the - number is the address of the host. Another form is four small - decimal integers separated by dots and enclosed by brackets, - e.g., "[123.255.37.2]", which indicates a 32-bit ARPA Internet - Address in four 8-bit fields. - - - -Postel [Page 31] - - - -August 1982 RFC 821 -Simple Mail Transfer Protocol - - - - The time stamp line and the return path line are formally - defined as follows: - - ::= "Return-Path:" - - ::= "Received:" - - ::= ";" - - - ::= "FROM" - - ::= "BY" - - ::= [] [] [] [] - - ::= "VIA" - - ::= "WITH" - - ::= "ID" - - ::= "FOR" - - ::= The standard names for links are registered with - the Network Information Center. - - ::= The standard names for protocols are - registered with the Network Information Center. - - ::=