home *** CD-ROM | disk | FTP | other *** search
/ Handbook of Infosec Terms 2.0 / Handbook_of_Infosec_Terms_Version_2.0_ISSO.iso / text / rfcs / rfc0878.txt < prev    next >
Text File  |  1996-05-07  |  79KB  |  2,639 lines

  1.  
  2.  
  3.  
  4.  
  5.       Request for Comments: 878      Obsoletes RFCs: 851, 802 
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.                    The ARPANET 1822L Host Access Protocol 
  14.  
  15.  
  16.  
  17.                                   RFC 878 
  18.  
  19.  
  20.  
  21.  
  22.  
  23.                               Andrew G. Malis                        ARPANET Mail: malis@bbn-unix 
  24.  
  25.  
  26.  
  27.  
  28.  
  29.                          BBN Communications Corp.                               50 Moulton St.                            Cambridge, MA  02238 
  30.  
  31.  
  32.  
  33.  
  34.  
  35.                                December 1983 
  36.  
  37.  
  38.  
  39.  
  40.  
  41.      This RFC specifies the ARPANET 1822L Host Access Protocol,  which      is  a successor to the existing 1822 Host Access Protocol.  1822L      allows ARPANET hosts to use  logical  names  as  well  as  1822's      physical port locations to address each other. 
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.      1822L Host Access Protocol                          December 1983      RFC 878 
  56.  
  57.  
  58.  
  59.                              Table of Contents 
  60.  
  61.  
  62.  
  63.  
  64.  
  65.      1   INTRODUCTION.......................................... 1 
  66.  
  67.      2   THE ARPANET 1822L HOST ACCESS PROTOCOL................ 3      2.1   Addresses and Names................................. 5      2.2   Name Translations................................... 7      2.2.1   Authorization and Effectiveness................... 7      2.2.2   Translation Policies............................. 11      2.2.3   Reporting Destination Host Downs................. 13      2.2.4   1822L and 1822 Interoperability.................. 15      2.3   Uncontrolled Packets............................... 16      2.4   Establishing Host-IMP Communications............... 19      2.5   Counting RFNMs When Using 1822L.................... 20      2.6   1822L Name Server.................................. 23 
  68.  
  69.      3   1822L LEADER FORMATS................................. 25      3.1   Host-to-IMP 1822L Leader Format.................... 26      3.2   IMP-to-Host 1822L Leader Format.................... 34 
  70.  
  71.      4   REFERENCES........................................... 42 
  72.  
  73.      A   1822L-IP ADDRESS MAPPINGS............................ 43 
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.                                    - i - 
  98.  
  99.  
  100.  
  101.  
  102.      1822L Host Access Protocol                          December 1983      RFC 878 
  103.  
  104.  
  105.  
  106.                                   FIGURES 
  107.  
  108.  
  109.  
  110.       2.1  1822 Address Format.................................. 5      2.2  1822L Name Format.................................... 6      2.3  1822L Address Format................................. 6      3.1  Host-to-IMP 1822L Leader Format..................... 27      3.2  NDM Message Format.................................. 30      3.3  IMP-to-Host 1822L Leader Format..................... 35      3.4  Name Server Reply Format............................ 38      A.1  1822 Class A Mapping................................ 44      A.2  1822L Class A Mapping............................... 44      A.3  1822L Class B Mapping............................... 45      A.4  1822L Class C Mapping............................... 46 
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.                                    - ii - 
  145.  
  146.  
  147.  
  148.  
  149.      1822L Host Access Protocol                          December 1983      RFC 878 
  150.  
  151.  
  152.  
  153.      1  INTRODUCTION 
  154.  
  155.       This RFC specifies the ARPANET 1822L Host Access Protocol,  which 
  156.  
  157.      will allow hosts to use logical addressing (i.e., host names that 
  158.  
  159.      are independent of their physical location  on  the  ARPANET)  to 
  160.  
  161.      communicate  with  each  other.  This new host access protocol is 
  162.  
  163.      known as the ARPANET 1822L (for Logical)  Host  Access  Protocol, 
  164.  
  165.      and  is  a  successor  to  the  current  ARPANET 1822 Host Access 
  166.  
  167.      Protocol, which is described in  sections  3.3  and  3.4  of  BBN 
  168.  
  169.      Report  1822  [1].   Although  the  1822L protocol uses different 
  170.  
  171.      Host-IMP leaders than the 1822 protocol, the IMPs  will  continue 
  172.  
  173.      to support the 1822 protocol, and hosts using either protocol can 
  174.  
  175.      readily communicate with each other (the  IMPs  will  handle  the 
  176.  
  177.      translation automatically). 
  178.  
  179.       The RFC's terminology is consistent  with  that  used  in  Report 
  180.  
  181.      1822, and any new terms will be defined when they are first used. 
  182.  
  183.      Familiarity  with  Report  1822  (section  3  in  particular)  is 
  184.  
  185.      assumed.   As could be expected, the RFC makes many references to 
  186.  
  187.      Report 1822.  As a result, it uses, as a convenient abbreviation, 
  188.  
  189.      "see 1822(x)" instead of "please refer to Report 1822, section x, 
  190.  
  191.      for further details". 
  192.  
  193.       This RFC updates, and obsoletes, RFC 851.  The changes from  that 
  194.  
  195.      RFC are: 
  196.  
  197.  
  198.  
  199.                                     - 1 - 
  200.  
  201.  
  202.  
  203.  
  204.      1822L Host Access Protocol                          December 1983      RFC 878 
  205.  
  206.  
  207.  
  208.      o Section 2.2.4 was rewritten for clarity. 
  209.  
  210.       o Section 2.5 was expanded to  further  discuss  the  effects  of 
  211.  
  212.        using 1822L names on host-to-host virtual circuits. 
  213.  
  214.       o In section 3.2, the type 1  IMP-to-host  message  has  two  new 
  215.  
  216.        subtypes,  the type 9 message has one new subtype, and the type 
  217.  
  218.        15, subtype 4 message is no longer defined. 
  219.  
  220.       o An appendix describing the  mapping  between  1822L  names  and 
  221.  
  222.        internet (IP) addresses has been added. 
  223.  
  224.       All of these changes to RFC 851 are marked by revision  bars  (as  | 
  225.  
  226.      shown here) in the right margin.                                   | 
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.                                    - 2 - 
  255.  
  256.  
  257.  
  258.  
  259.      1822L Host Access Protocol                          December 1983      RFC 878 
  260.  
  261.  
  262.  
  263.      2  THE ARPANET 1822L HOST ACCESS PROTOCOL 
  264.  
  265.       The ARPANET 1822L Host Access  Protocol  allows  a  host  to  use 
  266.  
  267.      logical  addressing  to  communicate  with  other  hosts  on  the 
  268.  
  269.      ARPANET.  Basically, logical addressing allows hosts to refer  to 
  270.  
  271.      each  other  using  an  1822L  name  (see  section  2.1) which is 
  272.  
  273.      independent of a host's physical location in  the  network.   IEN 
  274.  
  275.      183  (also  published  as  BBN  Report 4473) [2] gives the use of 
  276.  
  277.      logical  addressing  considerable   justification.    Among   the 
  278.  
  279.      advantages it cites are: 
  280.  
  281.       o The ability to refer to each host on  the  network  by  a  name 
  282.  
  283.        independent of its location on the network. 
  284.  
  285.       o Allowing different hosts to share  the  same  host  port  on  a 
  286.  
  287.        time-division basis. 
  288.  
  289.       o Allowing a host to use multi-homing (where a single  host  uses 
  290.  
  291.        more than one port to communicate with the network). 
  292.  
  293.       o Allowing several hosts that provide the same service  to  share 
  294.  
  295.        the same name. 
  296.  
  297.       The main differences between the 1822 and 1822L protocols are the 
  298.  
  299.      format of the leaders that are used to introduce messages between 
  300.  
  301.      a host and an IMP, and the specification in those leaders of  the 
  302.  
  303.      source  and/or  destination  host(s).   Hosts  have the choice of 
  304.  
  305.  
  306.  
  307.                                    - 3 - 
  308.  
  309.  
  310.  
  311.  
  312.      1822L Host Access Protocol                          December 1983      RFC 878 
  313.  
  314.  
  315.  
  316.      using the 1822 or the 1822L protocol.  When a host comes up on an 
  317.  
  318.      IMP,  it  declares  itself to be an 1822 host or an 1822L host by 
  319.  
  320.      the type of NOP message (see section  3.1)  it  uses.   Once  up, 
  321.  
  322.      hosts  can  switch  from  one protocol to the other by issuing an 
  323.  
  324.      appropriate NOP.  Hosts that do not use the 1822L  protocol  will 
  325.  
  326.      still  be  addressable by and can communicate with hosts that do, 
  327.  
  328.      and vice-versa. 
  329.  
  330.       Another difference between the two protocols  is  that  the  1822 
  331.  
  332.      leaders are symmetric, while the 1822L leaders are not.  The term 
  333.  
  334.      symmetric means that in the 1822 protocol, the exact same  leader 
  335.  
  336.      format  is used for messages in both directions between the hosts 
  337.  
  338.      and IMPs.  For example, a leader sent from a host  over  a  cable 
  339.  
  340.      that  was  looped  back onto itself (via a looping plug or faulty 
  341.  
  342.      hardware) would arrive back at the host and appear to be a  legal 
  343.  
  344.      message  from  a  real host (the destination host of the original 
  345.  
  346.      message).  In contrast, the 1822L headers are not symmetric,  and 
  347.  
  348.      a  host  can  detect  if  the  connection to its IMP is looped by 
  349.  
  350.      receiving a message with the wrong leader  format.   This  allows 
  351.  
  352.      the host to take appropriate action upon detection of the loop. 
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.                                     - 4 - 
  365.  
  366.  
  367.  
  368.  
  369.      1822L Host Access Protocol                          December 1983      RFC 878 
  370.  
  371.  
  372.  
  373.      2.1  Addresses and Names 
  374.  
  375.       The 1822 protocol defines one form of host specification, and the 
  376.  
  377.      1822L  protocol  defines  two additional ways to identify network 
  378.  
  379.      hosts.  These three forms are 1822 addresses,  1822L  names,  and 
  380.  
  381.      1822L addresses. 
  382.  
  383.       1822 addresses are  the  24-bit  host  addresses  found  in  1822 
  384.  
  385.      leaders.  They have the following format: 
  386.  
  387.              1              8 9                              24            +----------------+---------------------------------+            |                |                                 |            |  Host number   |           IMP number            |            |                |                                 |            +----------------+---------------------------------+ 
  388.  
  389.                              1822 Address Format                                 Figure 2.1 
  390.  
  391.  
  392.  
  393.      These fields are quite large, and the ARPANET will never use more 
  394.  
  395.      than  a  fraction of the available address space.  1822 addresses 
  396.  
  397.      are used in 1822 leaders only. 
  398.  
  399.       1822L names are 16-bit unsigned numbers that serve as  a  logical 
  400.  
  401.      identifier  for  one  or  more  hosts.   1822L  names have a much 
  402.  
  403.      simpler format: 
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.                                     - 5 - 
  412.  
  413.  
  414.  
  415.  
  416.      1822L Host Access Protocol                          December 1983      RFC 878 
  417.  
  418.  
  419.  
  420.  
  421.  
  422.                      1                             16                     +--------------------------------+                     |                                |                     |           1822L name           |                     |                                |                     +--------------------------------+ 
  423.  
  424.                               1822L Name Format                                 Figure 2.2 
  425.  
  426.  
  427.  
  428.      The 1822L names are just 16-bit  unsigned  numbers,  except  that 
  429.  
  430.      bits  1  and  2 are not both zeros (see below).  This allows over 
  431.  
  432.      49,000 hosts to be specified. 
  433.  
  434.       1822 addresses cannot be used in 1822L leaders, but there may  be 
  435.  
  436.      a  requirement for an 1822L host to be able to address a specific 
  437.  
  438.      physical host port or IMP fake host.  1822L  addresses  are  used 
  439.  
  440.      for  this  function.   1822L addresses form a subset of the 1822L 
  441.  
  442.      name space, and have both bits 1 and 2 off. 
  443.  
  444.                      1   2  3          8 9             16                   +---+---+------------+----------------+                   |   |   |            |                |                   | 0 | 0 |   host #   |   IMP number   |                   |   |   |            |                |                   +---+---+------------+----------------+ 
  445.  
  446.                             1822L Address Format                                 Figure 2.3 
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.                                    - 6 - 
  455.  
  456.  
  457.  
  458.  
  459.      1822L Host Access Protocol                          December 1983      RFC 878 
  460.  
  461.  
  462.  
  463.      This format allows 1822L hosts to directly address hosts 0-63  at 
  464.  
  465.      IMPs  1-255  (IMP  0 does not exist).  Note that the highest host 
  466.  
  467.      numbers are reserved  for  addressing  the  IMP's  internal  fake 
  468.  
  469.      hosts.   At  this  writing, the IMP has seven fake hosts, so host 
  470.  
  471.      numbers 57-63 address the IMP fake hosts, while host numbers 0-56 
  472.  
  473.      address  real  hosts  external  to the IMP.  As the number of IMP 
  474.  
  475.      fake hosts changes, this boundary point will also change. 
  476.  
  477.  
  478.  
  479.       2.2  Name Translations 
  480.  
  481.       There are a number of factors that determine how an 1822L name is 
  482.  
  483.      translated  by  the  IMP  into a physical address on the network. 
  484.  
  485.      These factors include which translations are legal; in what order 
  486.  
  487.      different  translations  for  the  same name should be attempted; 
  488.  
  489.      which  legal  translations  shouldn't  be  attempted  because   a 
  490.  
  491.      particular  host  port  is down; and the interoperability between       1822  and  1822L  hosts.   These  issues  are  discussed  in  the 
  492.  
  493.      following sections. 
  494.  
  495.  
  496.  
  497.       2.2.1  Authorization and Effectiveness 
  498.  
  499.       Every host on a C/30 IMP, regardless of whether it is  using  the 
  500.  
  501.      1822  or  1822L  protocol  to access the network, can have one or 
  502.  
  503.      more 1822L names (logical addresses).  Hosts using 1822L can then 
  504.  
  505.  
  506.  
  507.                                    - 7 - 
  508.  
  509.  
  510.  
  511.  
  512.      1822L Host Access Protocol                          December 1983      RFC 878 
  513.  
  514.  
  515.  
  516.      use  these  names to address the hosts in the network independent 
  517.  
  518.      of their  physical  locations.   Because  of  the  implementation 
  519.  
  520.      constraints mentioned in the introduction, hosts on non-C/30 IMPs 
  521.  
  522.      cannot be assigned 1822L names.  To circumvent this  restriction, 
  523.  
  524.      however,  1822L  hosts can also use 1822L addresses to access all 
  525.  
  526.      of the other hosts. 
  527.  
  528.       At this point, several questions  arise:   How  are  these  names 
  529.  
  530.      assigned,  how  do  they  become  known  to  the  IMPs  (so  that 
  531.  
  532.      translations to physical addresses can be made), and how  do  the 
  533.  
  534.      IMPs know which host is currently using a shared port?  To answer 
  535.  
  536.      each question in order: 
  537.  
  538.       Names are assigned by a central network administrator.  When each 
  539.  
  540.      name  is  created, it is assigned to a host (or a group of hosts) 
  541.  
  542.      at one or more specific host ports.  The host(s) are  allowed  to 
  543.  
  544.      reside at those specific host ports, and nowhere else.  If a host 
  545.  
  546.      moves, it will keep the same name, but the administrator  has  to 
  547.  
  548.      update  the  central  database  to  reflect  the  new  host port. 
  549.  
  550.      Changes to this database are  distributed  to  the  IMPs  by  the 
  551.  
  552.      Network  Operations  Center  (NOC).  For a while, the host may be 
  553.  
  554.      allowed to reside at either of (or both) the new and  old  ports. 
  555.  
  556.      Once  the  correspondence  between  a  name and one or more hosts 
  557.  
  558.      ports where it  may  be  used  has  been  made  official  by  the 
  559.  
  560.      administrator,   that  name  is  said  to  be  authorized.  1822L 
  561.  
  562.  
  563.  
  564.                                    - 8 - 
  565.  
  566.  
  567.  
  568.  
  569.      1822L Host Access Protocol                          December 1983      RFC 878 
  570.  
  571.  
  572.  
  573.      addresses, which actually  refer  to  physical  host  ports,  are 
  574.  
  575.      always authorized in this sense. 
  576.  
  577.       Once a host has been assigned one or more names, it  has  to  let 
  578.  
  579.      the  IMPs  know  where it is and what name(s) it is using.  There 
  580.  
  581.      are two cases to consider, one for 1822L hosts  and  another  for 
  582.  
  583.      1822  hosts.   The following discussion only pertains to hosts on 
  584.  
  585.      C/30 IMPs. 
  586.  
  587.       When an IMP sees an 1822L host come up on a host  port,  the  IMP 
  588.  
  589.      has  no way of knowing which host has just come up (several hosts 
  590.  
  591.      may share the same port, or one host may prefer to  be  known  by 
  592.  
  593.      different  names  at different times).  This requires the host to 
  594.  
  595.      declare itself to the IMP before it can actually send and receive 
  596.  
  597.      messages.   This  function  is  performed  by  a  new host-to-IMP 
  598.  
  599.      message, the Name Declaration  Message  (NDM),  which  lists  the 
  600.  
  601.      names  that  the  host would like to be known by.  The IMP checks 
  602.  
  603.      its tables to see if each of the names is authorized,  and  sends 
  604.  
  605.      an  NDM  Reply  to  the  host  saying  which  names were actually 
  606.  
  607.      authorized and can now be used for sending and receiving messages 
  608.  
  609.      (i.e.,  which  names  are  effective). A host can also use an NDM 
  610.  
  611.      message to change its list of effective names (it can add to  and 
  612.  
  613.      delete  from  the  list) at any time.  The only constraint on the 
  614.  
  615.      host is that any names it wishes to use can become effective only 
  616.  
  617.      if they are authorized. 
  618.  
  619.  
  620.  
  621.                                    - 9 - 
  622.  
  623.  
  624.  
  625.  
  626.      1822L Host Access Protocol                          December 1983      RFC 878 
  627.  
  628.  
  629.  
  630.      In the second case, if a host comes up on a C/30  IMP  using  the 
  631.  
  632.      1822 protocol, the IMP automatically makes the first name the IMP 
  633.  
  634.      finds in its tables  for  that  host  become  effective  when  it 
  635.  
  636.      receives the first 1822 NOP from the host.  Thus, even though the 
  637.  
  638.      host is using the 1822 protocol, it can  still  receive  messages 
  639.  
  640.      from  1822L  hosts  via  its  1822L name.  Of course, it can also 
  641.  
  642.      receive messages from an 1822L host  via  its  1822L  address  as 
  643.  
  644.      well.    (Remember,  the  distinction  between  1822L  names  and 
  645.  
  646.      addresses is that the addresses correspond to physical  locations 
  647.  
  648.      on   the   network,   while   the   names  are  strictly  logical 
  649.  
  650.      identifiers).  The IMPs translate between the  different  leaders 
  651.  
  652.      and send the proper leader in each case (see section 2.2.4). 
  653.  
  654.       The third question above has by now already been answered.   When 
  655.  
  656.      an  1822L  host comes up, it uses the NDM message to tell the IMP 
  657.  
  658.      which host it is (which names it is known by).  Even if this is a 
  659.  
  660.      shared port, the IMP knows which host is currently connected. 
  661.  
  662.       Whenever a host goes down, its names  automatically  become  non- 
  663.  
  664.      effective.   When it comes back up, it has to make them effective 
  665.  
  666.      again. 
  667.  
  668.  
  669.  
  670.  
  671.  
  672.  
  673.  
  674.  
  675.  
  676.  
  677.  
  678.                                   - 10 - 
  679.  
  680.  
  681.  
  682.  
  683.      1822L Host Access Protocol                          December 1983      RFC 878 
  684.  
  685.  
  686.  
  687.      2.2.2  Translation Policies 
  688.  
  689.       Several hosts can share the same 1822L name.  If more than one of 
  690.  
  691.      these  hosts  is  up  at the same time, any messages sent to that 
  692.  
  693.      1822L name will be delivered to just one  of  the  hosts  sharing 
  694.  
  695.      that  name,  and  a RFNM will be returned as usual.  However, the 
  696.  
  697.      sending host will  not  receive  any  indication  of  which  host 
  698.  
  699.      received  the  message,  and subsequent messages to that name are 
  700.  
  701.      not guaranteed to be sent to the  same  host.   Typically,  hosts 
  702.  
  703.      providing  exactly  the  same  service could share the same 1822L 
  704.  
  705.      name in this manner. 
  706.  
  707.       Similarly, when a host is multi-homed, the same  1822L  name  may 
  708.  
  709.      refer  to  more  than  one  host  port (all connected to the same 
  710.  
  711.      host).  If the host is up on only one of those ports,  that  port 
  712.  
  713.      will be used for all messages addressed to the host.  However, if 
  714.  
  715.      the host were up on more than one  port,  the  message  would  be 
  716.  
  717.      delivered  over  just  one  of  those ports, and the subnet would 
  718.  
  719.      choose which port to use.  This port selection could change  from 
  720.  
  721.      message  to  message.   If  a  host wanted to insure that certain 
  722.  
  723.      messages were delivered to it on specific ports,  these  messages 
  724.  
  725.      could  use  either  the  port's 1822L address or a specific 1822L 
  726.  
  727.      name that referred to that port alone. 
  728.  
  729.  
  730.  
  731.  
  732.  
  733.  
  734.  
  735.                                   - 11 - 
  736.  
  737.  
  738.  
  739.  
  740.      1822L Host Access Protocol                          December 1983      RFC 878 
  741.  
  742.  
  743.  
  744.      Three different address selection policies are available for  the 
  745.  
  746.      name mapping process.  When translated, each name uses one of the 
  747.  
  748.      three policies  (the  policy  is  pre-determined  on  a  per-name 
  749.  
  750.      basis).  The three policies are: 
  751.  
  752.       o  Attempt each translation in the order in  which  the  physical 
  753.  
  754.         addresses  are listed in the IMP's translation tables, to find 
  755.  
  756.         the first reachable  physical  host  address.   This  list  is 
  757.  
  758.         always  searched  from the top whenever an uncontrolled packet 
  759.  
  760.         is to be sent or a new virtual circuit connection  has  to  be 
  761.  
  762.         created  (see  section  2.5).   This is the most commonly used 
  763.  
  764.         policy. 
  765.  
  766.       o  Selection of the closest  physical  address,  which  uses  the 
  767.  
  768.         IMP's   routing   tables   to  find  the  translation  to  the 
  769.  
  770.         destination  IMP  with  the  least  delay  path  whenever   an 
  771.  
  772.         uncontrolled  packet  is  to  be sent or a new virtual circuit 
  773.  
  774.         connection has to be created. 
  775.  
  776.       o  Use load leveling. This is similar to the second  policy,  but 
  777.  
  778.         differs  in  that  searching  the  address  list  for  a valid 
  779.  
  780.         translation starts at the address following where the previous 
  781.  
  782.         translation search ended whenever an uncontrolled packet is to 
  783.  
  784.         be sent or a new virtual circuit connection has to be created. 
  785.  
  786.         This  attempts to spread out the load from any one IMP's hosts 
  787.  
  788.  
  789.  
  790.                                    - 12 - 
  791.  
  792.  
  793.  
  794.  
  795.      1822L Host Access Protocol                          December 1983      RFC 878 
  796.  
  797.  
  798.  
  799.         to the various host ports associated with a  particular  name. 
  800.  
  801.         Note  that this is NOT network-wide load leveling, which would 
  802.  
  803.         require a distributed algorithm and tables. 
  804.  
  805.  
  806.  
  807.       2.2.3  Reporting Destination Host Downs 
  808.  
  809.       As was explained in report 1822, and  as  will  be  discussed  in 
  810.  
  811.      greater detail in section 2.5, whenever regular messages are sent 
  812.  
  813.      by a host, the IMP opens a virtual  circuit  connection  to  each 
  814.  
  815.      destination  host  from  the source host.  A connection will stay 
  816.  
  817.      open at least as long as there are  any  outstanding  (un-RFNMed) 
  818.  
  819.      messages  using it and both the source and destination hosts stay 
  820.  
  821.      up. 
  822.  
  823.       However, the destination host may go down for some reason  during 
  824.  
  825.      the  lifetime of a connection.  If the host goes down while there 
  826.  
  827.      are no outstanding messages  to  it  in  the  network,  then  the 
  828.  
  829.      connection  is  closed  and  no  other  action is taken until the 
  830.  
  831.      source host submits the next message for  that  destination.   At 
  832.  
  833.      that time, ONE of the following events will occur: 
  834.  
  835.      A1.  If 1822 or an 1822L address is being  used  to  specify  the 
  836.  
  837.           destination host, then the source host will receive a type 7 
  838.  
  839.           (Destination Host Dead) message from the IMP. 
  840.  
  841.      A2.  If an 1822L name is being used to  specify  the  destination 
  842.  
  843.  
  844.  
  845.                                    - 13 - 
  846.  
  847.  
  848.  
  849.  
  850.      1822L Host Access Protocol                          December 1983      RFC 878 
  851.  
  852.  
  853.  
  854.           host,  and  the  name maps to only one authorized host port, 
  855.  
  856.           then a type 7 message will also be sent to the source host. 
  857.  
  858.      A3.  If an 1822L name is being used to  specify  the  destination 
  859.  
  860.           host,  and  the  name  maps to more than one authorized host 
  861.  
  862.           port, then the IMP attempts to open a connection to  another 
  863.  
  864.           authorized  and  effective  host  port for that name.  If no 
  865.  
  866.           such connection can be made, the host will receive a type 15 
  867.  
  868.           (1822L  Name  or  Address  Error),  subtype  5 (no effective 
  869.  
  870.           translations) message (see section 3.2).  Note that a type 7 
  871.  
  872.           message  cannot be returned to the source host, since type 7 
  873.  
  874.           messages refer to a particular destination  host  port,  and 
  875.  
  876.           the name maps to more than one destination port. 
  877.  
  878.       Things get a bit more complicated if there  are  any  outstanding 
  879.  
  880.      messages  on  the connection when the destination host goes down. 
  881.  
  882.      The connection will be closed, and  one  of  the  following  will 
  883.  
  884.      occur: 
  885.  
  886.      B1.  If 1822 or an 1822L address is being  used  to  specify  the 
  887.  
  888.           destination host, then the source host will receive a type 7 
  889.  
  890.           message for each outstanding message. 
  891.  
  892.      B2.  If an 1822L name is being used to  specify  the  destination 
  893.  
  894.           host, then the source host will receive a type 9 (Incomplete  | 
  895.  
  896.           Transmission), subtype 6  (message  lost  due  to  logically  | 
  897.  
  898.           addressed  host  going  down)  message  for each outstanding  | 
  899.  
  900.  
  901.  
  902.                                    - 14 - 
  903.  
  904.  
  905.  
  906.  
  907.      1822L Host Access Protocol                          December 1983      RFC 878 
  908.  
  909.  
  910.  
  911.           message.  The next time  the  source  host  submits  another 
  912.  
  913.           message   for  that  same  destination  name,  the  previous 
  914.  
  915.           algorithm will be used (either step A2 or step A3). 
  916.  
  917.       The above two algorithms also apply when a  host  stays  up,  but 
  918.  
  919.      declares  the  destination  name for an existing connection to no 
  920.  
  921.      longer be effective.  In this case, however, the type 7  messages 
  922.  
  923.      above will be replaced by type 15, subtype 3 (name not effective) 
  924.  
  925.      messages. 
  926.  
  927.       Section 2.3 discusses how destination host downs are handled  for 
  928.  
  929.      uncontrolled packets. 
  930.  
  931.  
  932.  
  933.       2.2.4  1822L and 1822 Interoperability 
  934.  
  935.       As  has  been  previously  stated,  1822  and  1822L  hosts   can 
  936.  
  937.      intercommunicate,  and  the  IMPs  will  automatically handle any 
  938.  
  939.      necessary leader and address format  conversions.   However,  not 
  940.  
  941.      every   combination   of   1822   and  1822L  hosts  allows  full 
  942.  
  943.      interoperability with regard to the use  of  1822L  names,  since 
  944.  
  945.      1822 hosts are restricted to using physical addresses. 
  946.  
  947.       There are two possible situations where any incompatibility could  | 
  948.  
  949.      arise:                                                             | 
  950.  
  951.  
  952.  
  953.  
  954.  
  955.                                    - 15 - 
  956.  
  957.  
  958.  
  959.  
  960.      1822L Host Access Protocol                          December 1983      RFC 878 
  961.  
  962.  
  963.  
  964.      o  An 1822 host sending a message to an  1822L  host:   The  1822  | 
  965.  
  966.         host  specifies the destination host by its 1822 address.  The  | 
  967.  
  968.         destination host will receive the message with an 1822L leader  | 
  969.  
  970.         containing  the  1822L addresses of the source and destination  | 
  971.  
  972.         hosts.                                                          | 
  973.  
  974.       o  An 1822L host sending a message to an 1822  host:   The  1822L  | 
  975.  
  976.         host  can  use  1822L  names  or addresses to specify both the  | 
  977.  
  978.         source and  destination  hosts.   The  destination  host  will  | 
  979.  
  980.         receive  the  message  with an 1822 leader containing the 1822  | 
  981.  
  982.         address of the source host.                                     | 
  983.  
  984.  
  985.  
  986.       2.3  Uncontrolled Packets 
  987.  
  988.       Uncontrolled packets (see 1822(3.6)) present a unique problem for 
  989.  
  990.      the  1822L protocol.  Uncontrolled packets use none of the normal 
  991.  
  992.      ordering and error-control mechanisms in the IMP, and do not  use 
  993.  
  994.      the  normal  virtual circuit connection facilities.  As a result, 
  995.  
  996.      uncontrolled packets need to carry all  of  their  overhead  with 
  997.  
  998.      them, including source and destination names.  If 1822L names are 
  999.  
  1000.      used when sending an uncontrolled packet, additional  information 
  1001.  
  1002.      is  now required by the subnetwork when the packet is transferred 
  1003.  
  1004.      to the destination IMP.  This means that less  host-to-host  data 
  1005.  
  1006.      can  be  contained  in  the  packet than is possible between 1822 
  1007.  
  1008.  
  1009.  
  1010.                                    - 16 - 
  1011.  
  1012.  
  1013.  
  1014.  
  1015.      1822L Host Access Protocol                          December 1983      RFC 878 
  1016.  
  1017.  
  1018.  
  1019.      hosts. 
  1020.  
  1021.       Uncontrolled packets that are sent between 1822 hosts may contain 
  1022.  
  1023.      not  more  than  991 bits of data.  Uncontrolled packets that are 
  1024.  
  1025.      sent to and/or from 1822L hosts are limited to 32 bits  less,  or 
  1026.  
  1027.      not  more  than  959  bits.  Packets that exceed this length will 
  1028.  
  1029.      result in an error indication to the host, and  the  packet  will 
  1030.  
  1031.      not  be sent.  This error indication represents an enhancement to 
  1032.  
  1033.      the previous level of service provided by the  IMP,  which  would 
  1034.  
  1035.      simply   discard  an  overly  long  uncontrolled  packet  without 
  1036.  
  1037.      notification. 
  1038.  
  1039.       Other enhancements that  are  provided  for  uncontrolled  packet 
  1040.  
  1041.      service  are  a  notification  to the host of any errors that are 
  1042.  
  1043.      detected by the host's IMP when it receives the packet.   A  host 
  1044.  
  1045.      will  be  notified if an uncontrolled packet contains an error in 
  1046.  
  1047.      the 1822L  name  specification,  such  as  if  the  name  is  not 
  1048.  
  1049.      authorized or effective, if the remote host is unreachable (which 
  1050.  
  1051.      is indicated by none of its names being  effective),  if  network 
  1052.  
  1053.      congestion control throttled the packet before it left the source 
  1054.  
  1055.      IMP, or for any other reason the source IMP was not able to  send 
  1056.  
  1057.      the packet on its way. 
  1058.  
  1059.       In most cases, the host will not be notified if the  uncontrolled 
  1060.  
  1061.      packet  was  lost  once  it  was  transmitted  by the source IMP. 
  1062.  
  1063.  
  1064.  
  1065.                                    - 17 - 
  1066.  
  1067.  
  1068.  
  1069.  
  1070.      1822L Host Access Protocol                          December 1983      RFC 878 
  1071.  
  1072.  
  1073.  
  1074.      However, the IMP will attempt to notify  the  source  host  if  a 
  1075.  
  1076.      logically-addressed  uncontrolled packet was mistakenly sent to a 
  1077.  
  1078.      host that the source IMP thought was effective, but which  turned 
  1079.  
  1080.      out  to  be  dead  or non-effective at the destination IMP.  This 
  1081.  
  1082.      non-delivery notice  is  sent  back  to  the  source  IMP  as  an 
  1083.  
  1084.      uncontrolled  packet from the destination IMP, so the source host 
  1085.  
  1086.      is not guaranteed to receive this indication. 
  1087.  
  1088.       If the source IMP successfully receives the non-delivery  notice, 
  1089.  
  1090.      then  the  source  host  will  receive  a  type 15 (1822L Name or 
  1091.  
  1092.      Address Error), subtype 6 (down or non-effective  port)  message. 
  1093.  
  1094.      If  the  packet  is  resubmitted or another packet is sent to the 
  1095.  
  1096.      same destination name,  and  there  are  no  available  effective 
  1097.  
  1098.      translations,  then  the  source  host  will  receive  a type 15, 
  1099.  
  1100.      subtype 5 (no effective translations) message if the  destination 
  1101.  
  1102.      name  has  more than one mapping; or will receive either a type 7 
  1103.  
  1104.      (Destination Host Dead)  or  a  type  15,  subtype  3  (name  not 
  1105.  
  1106.      effective)   message   if  the  destination  name  has  a  single 
  1107.  
  1108.      translation. 
  1109.  
  1110.       Those enhancements to the uncontrolled packet  service  that  are 
  1111.  
  1112.      not  specific  to  logical  addressing will be available to hosts 
  1113.  
  1114.      using 1822 as well as 1822L.  However, uncontrolled packets  must 
  1115.  
  1116.      be  sent  using  1822L leaders in order to receive any indication 
  1117.  
  1118.      that the packet was lost once it has left the source IMP. 
  1119.  
  1120.  
  1121.  
  1122.                                   - 18 - 
  1123.  
  1124.  
  1125.  
  1126.  
  1127.      1822L Host Access Protocol                          December 1983      RFC 878 
  1128.  
  1129.  
  1130.  
  1131.      2.4  Establishing Host-IMP Communications 
  1132.  
  1133.       When a host comes up on an IMP, or after there has been  a  break 
  1134.  
  1135.      in   the  communications  between  the  host  and  its  IMP  (see 
  1136.  
  1137.      1822(3.2)), the orderly flow of messages between the host and the 
  1138.  
  1139.      IMP  needs  to  be properly (re)established.  This allows the IMP 
  1140.  
  1141.      and host to recover from most any failure  in  the  other  or  in 
  1142.  
  1143.      their communications path, including a break in mid-message. 
  1144.  
  1145.       The first messages that a host should send to its IMP  are  three 
  1146.  
  1147.      NOP  messages.   Three  messages  are  required to insure that at 
  1148.  
  1149.      least one message will be properly read by the IMP (the first NOP 
  1150.  
  1151.      could be concatenated to a previous message if communications had 
  1152.  
  1153.      been broken in mid-stream, and the third provides redundancy  for 
  1154.  
  1155.      the   second).    These   NOPs   serve  several  functions:  they 
  1156.  
  1157.      synchronize the IMP with the host, they tell  the  IMP  how  much 
  1158.  
  1159.      padding  the  host  requires  between  the message leader and its 
  1160.  
  1161.      body, and they also tell the IMP whether the host will  be  using 
  1162.  
  1163.      1822 or 1822L leaders. 
  1164.  
  1165.       Similarly, the IMP will send three  NOPs  to  the  host  when  it 
  1166.  
  1167.      detects  that  the host has come up.  Actually, the IMP will send 
  1168.  
  1169.      six NOPs, alternating three 1822  NOPs  with  three  1822L  NOPs. 
  1170.  
  1171.      Thus, the host will see three NOPs no matter which protocol it is 
  1172.  
  1173.      using.   The  NOPs  will  be  followed  by  two  Interface  Reset 
  1174.  
  1175.  
  1176.  
  1177.                                    - 19 - 
  1178.  
  1179.  
  1180.  
  1181.  
  1182.      1822L Host Access Protocol                          December 1983      RFC 878 
  1183.  
  1184.  
  1185.  
  1186.      messages,  one of each style.  If the IMP receives a NOP from the 
  1187.  
  1188.      host while the above sequence is occurring,  the  IMP  will  only 
  1189.  
  1190.      send  the  remainder  of  the NOPs and the Interface Reset in the 
  1191.  
  1192.      proper style.  The 1822 NOPs will contain the 1822 address of the 
  1193.  
  1194.      host interface, and the 1822L NOPs will contain the corresponding 
  1195.  
  1196.      1822L address. 
  1197.  
  1198.       Once the IMP  and  the  host  have  sent  each  other  the  above 
  1199.  
  1200.      messages, regular communications can commence.  See 1822(3.2) for 
  1201.  
  1202.      further details concerning the ready line,  host  tardiness,  and 
  1203.  
  1204.      other issues. 
  1205.  
  1206.  
  1207.  
  1208.       2.5  Counting RFNMs When Using 1822L 
  1209.  
  1210.       When a host submits a regular message using an 1822  leader,  the 
  1211.  
  1212.      IMP  checks  for  an  existing simplex virtual circuit connection 
  1213.  
  1214.      (see 1822(3.1)) from the source host to the destination host.  If 
  1215.  
  1216.      such  a  connection already exists, it is used.  Otherwise, a new 
  1217.  
  1218.      connection from the source host port to the destination host port 
  1219.  
  1220.      is  opened.   In either case, there may be at most eight messages 
  1221.  
  1222.      outstanding on that connection  at  any  one  time.   If  a  host 
  1223.  
  1224.      submits  a  ninth message on that connection before it receives a 
  1225.  
  1226.      reply for the first message, then the host will be blocked  until 
  1227.  
  1228.      the reply is sent for the first message. 
  1229.  
  1230.  
  1231.  
  1232.                                    - 20 - 
  1233.  
  1234.  
  1235.  
  1236.  
  1237.      1822L Host Access Protocol                          December 1983      RFC 878 
  1238.  
  1239.  
  1240.  
  1241.      Such connections can stay open for some time, but are  timed  out 
  1242.  
  1243.      after  three minutes of no activity, or can be closed if there is 
  1244.  
  1245.      contention for the connection blocks  in  either  the  source  or 
  1246.  
  1247.      destination  IMP.   However, a connection will never be closed as 
  1248.  
  1249.      long as there are any outstanding messages on it.  This allows  a 
  1250.  
  1251.      source  host  to  count the number of replies it has received for 
  1252.  
  1253.      messages to each destination host address in order to avoid being 
  1254.  
  1255.      blocked   by  submitting  a  ninth  outstanding  message  on  any 
  1256.  
  1257.      connection. 
  1258.  
  1259.       When a host submits a regular message using an  1822L  leader,  a 
  1260.  
  1261.      similar process occurs, except that in this case, connections are 
  1262.  
  1263.      distinguished by the  source  port/source  name/destination  name 
  1264.  
  1265.      combination.   When  the message is received from a host, the IMP 
  1266.  
  1267.      first looks for an open connection for that same port and  source 
  1268.  
  1269.      name/destination  name pair.  If such a connection is found, then 
  1270.  
  1271.      it is used, and no further name translation  is  performed.   If, 
  1272.  
  1273.      however,  no open connection was found, then the destination name 
  1274.  
  1275.      is translated, and a connection opened to the physical host port. 
  1276.  
  1277.      As  long  as there are any outstanding messages on the connection 
  1278.  
  1279.      it will stay open, and it will have  the  same  restriction  that 
  1280.  
  1281.      only  eight messages may be outstanding at any one time.  Thus, a 
  1282.  
  1283.      source host can still count replies to avoid being  blocked,  but 
  1284.  
  1285.      they must be counted on a source port and source name/destination  
  1286.  
  1287.  
  1288.  
  1289.                                   - 21 - 
  1290.  
  1291.  
  1292.  
  1293.  
  1294.      1822L Host Access Protocol                          December 1983      RFC 878 
  1295.  
  1296.  
  1297.  
  1298.      name pair basis, instead of just by source port  and  destination 
  1299.  
  1300.      host address as before. 
  1301.  
  1302.       Since connections are based on the source name  as  well  as  the 
  1303.  
  1304.      destination  name,  this  implies that there may be more than one 
  1305.  
  1306.      open connection from physical host port A to physical  host  port 
  1307.  
  1308.      B,   which   would   allow   more  than  8  outstanding  messages 
  1309.  
  1310.      simultaneously from the first to the second port.   However,  for 
  1311.  
  1312.      this  to  occur, either the source or destination names, or both, 
  1313.  
  1314.      must differ from one connection to the next.  For example, if the 
  1315.  
  1316.      names  "543"  and  "677" both translate to physical port 3 on IMP 
  1317.  
  1318.      51, then the host on that port could  open  four  connections  to 
  1319.  
  1320.      itself  by  sending  messages  from "543" to "543", from "543" to 
  1321.  
  1322.      "677", from "677" to "543", and from "677" to "677". 
  1323.  
  1324.       As has already been stated,  the  destination  names  in  regular 
  1325.  
  1326.      messages  are  only translated when connections are first opened. 
  1327.  
  1328.      Once a connection is open, that connection, and  its  destination 
  1329.  
  1330.      physical  host port, will continue to be used until it is closed. 
  1331.  
  1332.      If, in the meantime, a "better" destination host  port  belonging 
  1333.  
  1334.      to  the  same  destination name became available, it would not be 
  1335.  
  1336.      used until the next time a  new  connection  is  opened  to  that 
  1337.  
  1338.      destination name. 
  1339.  
  1340.  
  1341.  
  1342.  
  1343.  
  1344.  
  1345.  
  1346.                                   - 22 - 
  1347.  
  1348.  
  1349.  
  1350.  
  1351.      1822L Host Access Protocol                          December 1983      RFC 878 
  1352.  
  1353.  
  1354.  
  1355.      Also, the act of making an 1822L name be non-effective  will  not  | 
  1356.  
  1357.      automatically cause any connections using that name to be closed.  | 
  1358.  
  1359.      However, they will be closed  after  at  most  three  minutes  of  | 
  1360.  
  1361.      inactivity.  A host can, if it wishes, make all of its names at a  | 
  1362.  
  1363.      port be noneffective and close all of its connections to and from  | 
  1364.  
  1365.      the port by flapping the host's ready line to that IMP port.       | 
  1366.  
  1367.  
  1368.  
  1369.       2.6  1822L Name Server 
  1370.  
  1371.       There may  be  times  when  a  host  wants  to  perform  its  own 
  1372.  
  1373.      translations,  or  might need the full list of physical addresses 
  1374.  
  1375.      to which a particular name maps.  For example, a connection-based 
  1376.  
  1377.      host-to-host  protocol  may  require  that the same physical host 
  1378.  
  1379.      port on a multi-homed host be used for all  messages  using  that 
  1380.  
  1381.      host-to-host  connection, and the host does not wish to trust the 
  1382.  
  1383.      IMP to always deliver messages using a destination  name  to  the 
  1384.  
  1385.      same host port. 
  1386.  
  1387.       In these cases, the host  can  submit  a  type  11  (Name  Server 
  1388.  
  1389.      Request)  message to the IMP, which requests the IMP to translate 
  1390.  
  1391.      the destination 1822L name and return a list of the addresses  to 
  1392.  
  1393.      which  it maps.  The IMP will respond with a type 11 (Name Server 
  1394.  
  1395.      Reply) message, which contains the selection policy  in  use  for 
  1396.  
  1397.      that  name,  the  number of addresses to which the name maps, the 
  1398.  
  1399.  
  1400.  
  1401.                                    - 23 - 
  1402.  
  1403.  
  1404.  
  1405.  
  1406.      1822L Host Access Protocol                          December 1983      RFC 878 
  1407.  
  1408.  
  1409.  
  1410.      addresses  themselves,  and  for  each  address,  whether  it  is 
  1411.  
  1412.      effective and its routing distance from the IMP.  See section 3.2 
  1413.  
  1414.      for a complete description of the message's contents. 
  1415.  
  1416.       Using this information, the source host could  make  an  informed 
  1417.  
  1418.      decision  on which of the physical host ports corresponding to an 
  1419.  
  1420.      1822L name to use and then send the messages to that port, rather 
  1421.  
  1422.      than to the name. 
  1423.  
  1424.       The IMP also supports a different type of name service.   A  host 
  1425.  
  1426.      needs  to issue a Name Declaration Message to the IMP in order to 
  1427.  
  1428.      make its names effective, but it may not wish to keep  its  names 
  1429.  
  1430.      in  some table or file in the host.  In this case, it can ask the 
  1431.  
  1432.      IMP to tell it which names it is authorized to use. 
  1433.  
  1434.       In this case, the host submits a  type  12  (Port  List  Request) 
  1435.  
  1436.      message to the IMP, and the IMP replies with a type 12 (Port List 
  1437.  
  1438.      Reply) message.  It contains, for the host port  over  which  the 
  1439.  
  1440.      IMP  received the request and sent the reply, the number of names 
  1441.  
  1442.      that map to the port, the list of names, and whether or not  each 
  1443.  
  1444.      name  is  effective.   The  host can then use this information in 
  1445.  
  1446.      order  to  issue  the  Name  Declaration  Message.   Section  3.2 
  1447.  
  1448.      contains a complete description of the reply's contents. 
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.                                    - 24 - 
  1457.  
  1458.  
  1459.  
  1460.  
  1461.      1822L Host Access Protocol                          December 1983      RFC 878 
  1462.  
  1463.  
  1464.  
  1465.      3  1822L LEADER FORMATS 
  1466.  
  1467.       The following sections describe the formats of the  leaders  that 
  1468.  
  1469.      precede  messages  between  an 1822L host and its IMP.  They were 
  1470.  
  1471.      designed to be as compatible with the 1822 leaders  as  possible. 
  1472.  
  1473.      The  second,  fifth,  and  sixth  words  are identical in the two 
  1474.  
  1475.      leaders, and all  of  the  existing  functionality  of  the  1822 
  1476.  
  1477.      leaders  has  been  retained.   In  the  first word, the 1822 New 
  1478.  
  1479.      Format Flag is now also used to identify the two types  of  1822L 
  1480.  
  1481.      leaders, and the Handling Type has been moved to the second byte. 
  1482.  
  1483.      The third and fourth words contain  the  Source  and  Destination 
  1484.  
  1485.      1822L Name, respectively. 
  1486.  
  1487.  
  1488.  
  1489.  
  1490.  
  1491.  
  1492.  
  1493.  
  1494.  
  1495.  
  1496.  
  1497.  
  1498.  
  1499.  
  1500.  
  1501.  
  1502.  
  1503.  
  1504.  
  1505.  
  1506.  
  1507.  
  1508.  
  1509.  
  1510.  
  1511.  
  1512.  
  1513.                                    - 25 - 
  1514.  
  1515.  
  1516.  
  1517.  
  1518.      1822L Host Access Protocol                          December 1983      RFC 878 
  1519.  
  1520.  
  1521.  
  1522.      3.1  Host-to-IMP 1822L Leader Format 
  1523.  
  1524.  
  1525.  
  1526.                      1      4 5      8 9             16                    +--------+--------+----------------+                    |        |  1822L |                |                    | Unused |  H2I   | Handling Type  |                    |        |  Flag  |                |                    +--------+--------+----------------+                     17    20 21 22 24 25            32                    +--------+-+------+----------------+                    |        |T|Leader|                |                    | Unused |R|Flags |  Message Type  |                    |        |C|      |                |                    +--------+-+------+----------------+                     33                              48                    +----------------------------------+                    |                                  |                    |           Source Host            |                    |                                  |                    +----------------------------------+                     49                              64                    +----------------------------------+                    |                                  |                    |         Destination Host         |                    |                                  |                    +----------------------------------+                     65                     76 77    80                    +-------------------------+--------+                    |                         |        |                    |       Message ID        |Sub-type|                    |                         |        |                    +-------------------------+--------+                     81                              96                    +----------------------------------+                    |                                  |                    |              Unused              |                    |                                  |                    +----------------------------------+ 
  1527.  
  1528.                        Host-to-IMP 1822L Leader Format                                 Figure 3.1 
  1529.  
  1530.  
  1531.  
  1532.  
  1533.  
  1534.                                   - 26 - 
  1535.  
  1536.  
  1537.  
  1538.  
  1539.      1822L Host Access Protocol                          December 1983      RFC 878 
  1540.  
  1541.  
  1542.  
  1543.      Bits 1-4: Unused, must be set to zero. 
  1544.  
  1545.       Bits 5-8: 1822L Host-to-IMP Flag: 
  1546.  
  1547.           This field is set to decimal 13 (1101 in binary). 
  1548.  
  1549.       Bits 9-16: Handling Type: 
  1550.  
  1551.           This  field  is  bit-coded  to  indicate  the   transmission 
  1552.  
  1553.           characteristics  of  the connection desired by the host. See 
  1554.  
  1555.           1822(3.3). 
  1556.  
  1557.           Bit 9: Priority Bit: 
  1558.  
  1559.                Messages with this bit on will be treated  as  priority 
  1560.  
  1561.                messages. 
  1562.  
  1563.           Bits 10-16: Unused, must be zero. 
  1564.  
  1565.       Bits 17-20: Unused, must be zero. 
  1566.  
  1567.       Bit 21: Trace Bit: 
  1568.  
  1569.           If equal to one, this message is designated for  tracing  as 
  1570.  
  1571.           it proceeds through the network.  See 1822(5.5). 
  1572.  
  1573.       Bits 22-24: Leader Flags: 
  1574.  
  1575.           Bit 22: A flag available for use by  the  destination  host. 
  1576.  
  1577.                See 1822(3.3) for a description of its use by the IMP's 
  1578.  
  1579.                TTY Fake Host. 
  1580.  
  1581.           Bits 23-24: Reserved for future use, must be zero. 
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.                                    - 27 - 
  1588.  
  1589.  
  1590.  
  1591.  
  1592.      1822L Host Access Protocol                          December 1983      RFC 878 
  1593.  
  1594.  
  1595.  
  1596.      Bits 25-32: Message Type: 
  1597.  
  1598.           Type 0: Regular Message  -  All  host-to-host  communication 
  1599.  
  1600.                occurs  via  regular  messages, which have several sub- 
  1601.  
  1602.                types, found in bits 77-80.  These sub-types are: 
  1603.  
  1604.                0: Standard - The IMP uses its full message  and  error 
  1605.  
  1606.                     control facilities, and host blocking may occur. 
  1607.  
  1608.                3: Uncontrolled  Packet  -  The  IMP  will  perform  no 
  1609.  
  1610.                     message-control   functions   for   this  type  of 
  1611.  
  1612.                     message, and network flow and  congestion  control 
  1613.  
  1614.                     may  cause loss of the packet.  Also see 1822(3.6) 
  1615.  
  1616.                     and section 2.3. 
  1617.  
  1618.                1-2,4-15: Unassigned. 
  1619.  
  1620.           Type 1: Error Without Message ID - See 1822(3.3). 
  1621.  
  1622.           Type 2: Host Going Down - see 1822(3.3). 
  1623.  
  1624.           Type 3: Name Declaration Message (NDM)  -  This  message  is 
  1625.  
  1626.                used by the host to declare which of its 1822L names is 
  1627.  
  1628.                or is not effective (see section 2.2.1), or to make all 
  1629.  
  1630.                of  its  names non-effective.  The first 16 bits of the 
  1631.  
  1632.                data portion of the NDM message, following  the  leader 
  1633.  
  1634.                and  any  leader  padding, contains the number of 1822L 
  1635.  
  1636.                names contained in the message.  This  is  followed  by 
  1637.  
  1638.                the 1822L name entries, each 32 bits long, of which the 
  1639.  
  1640.                first 16 bits is a 1822L name and the  second  16  bits 
  1641.  
  1642.                contains  either  of  the  integers  zero or one.  Zero 
  1643.  
  1644.  
  1645.  
  1646.                                   - 28 - 
  1647.  
  1648.  
  1649.  
  1650.  
  1651.      1822L Host Access Protocol                          December 1983      RFC 878 
  1652.  
  1653.  
  1654.  
  1655.                indicates that the name should not  be  effective,  and 
  1656.  
  1657.                one  indicates  that the name should be effective.  The 
  1658.  
  1659.                IMP will reply with a NDM Reply  message  (see  section 
  1660.  
  1661.                3.2)  indicating  which  of the names are now effective 
  1662.  
  1663.                and which are not.  Pictorially, a NDM message has  the 
  1664.  
  1665.                following   format  (including  the  leader,  which  is 
  1666.  
  1667.                printed  in  hexadecimal,  and   without   any   leader 
  1668.  
  1669.                padding): 
  1670.  
  1671.  
  1672.  
  1673.  
  1674.  
  1675.  
  1676.  
  1677.  
  1678.  
  1679.  
  1680.  
  1681.  
  1682.  
  1683.  
  1684.  
  1685.  
  1686.  
  1687.  
  1688.  
  1689.  
  1690.  
  1691.  
  1692.  
  1693.  
  1694.  
  1695.  
  1696.  
  1697.  
  1698.  
  1699.  
  1700.  
  1701.  
  1702.  
  1703.  
  1704.  
  1705.                                   - 29 - 
  1706.  
  1707.  
  1708.  
  1709.  
  1710.      1822L Host Access Protocol                          December 1983      RFC 878 
  1711.  
  1712.  
  1713.  
  1714.  
  1715.  
  1716.                  1             16 17            32 33            48                 +----------------+----------------+----------------+                 |                |                |                |                 |      0D00      |      0003      |      0000      |                 |                |                |                |                 +----------------+----------------+----------------+                  49            64 65            80 81            96                 +----------------+----------------+----------------+                 |                |                |                |                 |      0000      |      0000      |      0000      |                 |                |                |                |                 +----------------+----------------+----------------+                  97           112 113          128 129          144                 +----------------+----------------+----------------+                 |                |                |                |                 |  # of entries  |  1822L name #1 |     0 or 1     |                 |                |                |                |                 +----------------+----------------+----------------+                 145           160 161          176                 +----------------+----------------+                 |                |                |                 |  1822L name #2 |     0 or 1     |       etc.                 |                |                |                 +----------------+----------------+ 
  1717.  
  1718.                              NDM Message Format                                 Figure 3.2 
  1719.  
  1720.  
  1721.  
  1722.                An  NDM  with  zero  entries  will  cause  all  current 
  1723.  
  1724.                effective names for the host to become non-effective. 
  1725.  
  1726.           Type 4: NOP - This allows the IMP to  know  which  style  of 
  1727.  
  1728.                leader  the  host wishes to use.  A 1822L NOP signifies 
  1729.  
  1730.                that the host wishes to use 1822L leaders, and an  1822 
  1731.  
  1732.                NOP signifies that the host wishes to use 1822 leaders. 
  1733.  
  1734.                All of the other remarks concerning the NOP message  in 
  1735.  
  1736.  
  1737.  
  1738.                                    - 30 - 
  1739.  
  1740.  
  1741.  
  1742.  
  1743.      1822L Host Access Protocol                          December 1983      RFC 878 
  1744.  
  1745.  
  1746.  
  1747.                1822(3.3)  still  hold.   The  host should always issue 
  1748.  
  1749.                NOPs in groups of three to insure proper  reception  by 
  1750.  
  1751.                the IMP.  Also see section 2.4 for a further discussion 
  1752.  
  1753.                on the use of the NOP message. 
  1754.  
  1755.           Type 8: Error with Message ID - see 1822(3.3). 
  1756.  
  1757.           Type 11: Name Server Request - This allows the host  to  use 
  1758.  
  1759.                the  IMP's  logical addressing tables as a name server. 
  1760.  
  1761.                The destination name in the 1822L leader is translated, 
  1762.  
  1763.                and  the  IMP replies with a Name Server Reply message, 
  1764.  
  1765.                which lists the physical host addresses  to  which  the 
  1766.  
  1767.                destination name maps. 
  1768.  
  1769.           Type 12: Port List Request - This allows the  physical  host 
  1770.  
  1771.                to  request the list of names that map to the host port 
  1772.  
  1773.                over which this request was received by the  IMP.   The 
  1774.  
  1775.                IMP replies with a Port List Reply message, which lists 
  1776.  
  1777.                the names that map to the port. 
  1778.  
  1779.           Types 5-7,9-10,13-255: Unassigned. 
  1780.  
  1781.       Bits 33-48: Source Host: 
  1782.  
  1783.           This field contains one of the  source  host's  1822L  names 
  1784.  
  1785.           (or,  alternatively,  the 1822L address of the host port the 
  1786.  
  1787.           message  is  being  sent   over).    This   field   is   not 
  1788.  
  1789.           automatically filled in by the IMP, as in the 1822 protocol, 
  1790.  
  1791.           because the host may be known by several names and may  wish 
  1792.  
  1793.  
  1794.  
  1795.                                    - 31 - 
  1796.  
  1797.  
  1798.  
  1799.  
  1800.      1822L Host Access Protocol                          December 1983      RFC 878 
  1801.  
  1802.  
  1803.  
  1804.           to use a particular name as the source of this message.  All 
  1805.  
  1806.           messages from the same host need not use the  same  name  in 
  1807.  
  1808.           this  field.   Each  source  name, when used, is checked for 
  1809.  
  1810.           authorization, effectiveness, and actually belonging to this 
  1811.  
  1812.           host.  Messages using names that do not satisfy all of these 
  1813.  
  1814.           requirements will not be delivered, and will instead  result 
  1815.  
  1816.           in  an  error  message being sent back into the source host. 
  1817.  
  1818.           If the host places its 1822L  address  in  this  field,  the 
  1819.  
  1820.           address is checked to insure that it actually represents the 
  1821.  
  1822.           host port where the message originated. 
  1823.  
  1824.       Bits 49-64: Destination Host: 
  1825.  
  1826.           This field  contains  the  1822L  name  or  address  of  the 
  1827.  
  1828.           destination  host.   If it contains a name, the name will be 
  1829.  
  1830.           checked for effectiveness, with an error message returned to 
  1831.  
  1832.           the source host if the name is not effective. 
  1833.  
  1834.       Bits 65-76: Message ID: 
  1835.  
  1836.           This is a host-specified identification used in all  type  0 
  1837.  
  1838.           and  type  8  messages, and is also used in type 2 messages. 
  1839.  
  1840.           When used in type 0 messages, bits 65-72 are also  known  as 
  1841.  
  1842.           the  Link  Field,  and  should  contain  values specified in 
  1843.  
  1844.           Assigned  Numbers  [3]  appropriate  for  the   host-to-host 
  1845.  
  1846.           protocol being used. 
  1847.  
  1848.  
  1849.  
  1850.  
  1851.  
  1852.                                   - 32 - 
  1853.  
  1854.  
  1855.  
  1856.  
  1857.      1822L Host Access Protocol                          December 1983      RFC 878 
  1858.  
  1859.  
  1860.  
  1861.      Bits 77-80: Sub-type: 
  1862.  
  1863.           This field is used as a modifier by message types 0,  2,  4, 
  1864.  
  1865.           and 8. 
  1866.  
  1867.       Bits 81-96: Unused, must be zero. 
  1868.  
  1869.  
  1870.  
  1871.  
  1872.  
  1873.  
  1874.  
  1875.  
  1876.  
  1877.  
  1878.  
  1879.  
  1880.  
  1881.  
  1882.  
  1883.  
  1884.  
  1885.  
  1886.  
  1887.  
  1888.  
  1889.  
  1890.  
  1891.  
  1892.  
  1893.  
  1894.  
  1895.  
  1896.  
  1897.  
  1898.  
  1899.  
  1900.  
  1901.  
  1902.  
  1903.  
  1904.  
  1905.  
  1906.  
  1907.  
  1908.  
  1909.                                    - 33 - 
  1910.  
  1911.  
  1912.  
  1913.  
  1914.      1822L Host Access Protocol                          December 1983      RFC 878 
  1915.  
  1916.  
  1917.  
  1918.      3.2  IMP-to-Host 1822L Leader Format 
  1919.  
  1920.  
  1921.  
  1922.                      1      4 5      8 9             16                    +--------+--------+----------------+                    |        |  1822L |                |                    | Unused |  I2H   | Handling Type  |                    |        |  Flag  |                |                    +--------+--------+----------------+                     17    20 21 22 24 25            32                    +--------+-+------+----------------+                    |        |T|Leader|                |                    | Unused |R|Flags |  Message Type  |                    |        |C|      |                |                    +--------+-+------+----------------+                     33                              48                    +----------------------------------+                    |                                  |                    |           Source Host            |                    |                                  |                    +----------------------------------+                     49                              64                    +----------------------------------+                    |                                  |                    |         Destination Host         |                    |                                  |                    +----------------------------------+                     65                     76 77    80                    +-------------------------+--------+                    |                         |        |                    |       Message ID        |Sub-type|                    |                         |        |                    +-------------------------+--------+                     81                              96                    +----------------------------------+                    |                                  |                    |          Message Length          |                    |                                  |                    +----------------------------------+ 
  1923.  
  1924.                        IMP-to-Host 1822L Leader Format                                 Figure 3.3 
  1925.  
  1926.  
  1927.  
  1928.  
  1929.  
  1930.                                   - 34 - 
  1931.  
  1932.  
  1933.  
  1934.  
  1935.      1822L Host Access Protocol                          December 1983      RFC 878 
  1936.  
  1937.  
  1938.  
  1939.      Bits 1-4: Unused and set to zero. 
  1940.  
  1941.       Bits 5-8: 1822L IMP-to-Host Flag: 
  1942.  
  1943.           This field is set to decimal 14 (1110 in binary). 
  1944.  
  1945.       Bits 9-16: Handling Type: 
  1946.  
  1947.           This has the value assigned by the source host (see  section 
  1948.  
  1949.           3.1).   This field is only used in message types 0, 5-9, and 
  1950.  
  1951.           15. 
  1952.  
  1953.       Bits 17-20: Unused and set to zero. 
  1954.  
  1955.       Bit 21: Trace Bit: 
  1956.  
  1957.           If equal to one, the source host designated this message for 
  1958.  
  1959.           tracing as it proceeds through the network.  See 1822(5.5). 
  1960.  
  1961.       Bits 22-24: Leader Flags: 
  1962.  
  1963.           Bit 22: Available as a destination host flag. 
  1964.  
  1965.           Bits 23-24: Reserved for future use, set to zero. 
  1966.  
  1967.       Bits 25-32: Message Type: 
  1968.  
  1969.           Type 0: Regular Message  -  All  host-to-host  communication 
  1970.  
  1971.                occurs  via  regular  messages, which have several sub- 
  1972.  
  1973.                types.  The sub-type field (bits 77-80) is the same  as 
  1974.  
  1975.                sent in the host-to-IMP leader (see section 3.1). 
  1976.  
  1977.           Type 1: Error in Leader - See 1822(3.4).  In addition to its  | 
  1978.  
  1979.                already  defined  sub-types,  this  message has two new  | 
  1980.  
  1981.  
  1982.  
  1983.                                   - 35 - 
  1984.  
  1985.  
  1986.  
  1987.  
  1988.      1822L Host Access Protocol                          December 1983      RFC 878 
  1989.  
  1990.  
  1991.  
  1992.                sub-types:                                               | 
  1993.  
  1994.                4: Illegal Leader Style - The host submitted  a  leader  | 
  1995.  
  1996.                     in  which  bits  5-8 did not contain the value 13,  | 
  1997.  
  1998.                     14, or 15 decimal.                                  | 
  1999.  
  2000.                5: Wrong Leader Style - The  host  submitted  an  1822L  | 
  2001.  
  2002.                     leader  when the IMP was expecting an 1822 leader,  | 
  2003.  
  2004.                     or vice-versa.                                      | 
  2005.  
  2006.           Type 2: IMP Going Down - See 1822(3.4). 
  2007.  
  2008.           Type 3: NDM Reply - This is a reply to the  NDM  host-to-IMP 
  2009.  
  2010.                message  (see  section  3.1).   It  will  have the same 
  2011.  
  2012.                number of entries as the  NDM  message  that  is  being 
  2013.  
  2014.                replying  to,  and  each  listed  1822L  name  will  be 
  2015.  
  2016.                accompanied by a zero or a one  (see  figure  3.2).   A 
  2017.  
  2018.                zero  signifies  that  the name is not effective, and a 
  2019.  
  2020.                one means that the name is now effective. 
  2021.  
  2022.           Type 4: NOP - The host should discard this message.   It  is 
  2023.  
  2024.                used    during    initialization    of   the   IMP/host 
  2025.  
  2026.                communication.  The Destination Host field will contain 
  2027.  
  2028.                the  1822L  Address of the host port over which the NOP 
  2029.  
  2030.                is being sent.  All other fields are unused. 
  2031.  
  2032.           Type 5: Ready for Next Message (RFNM) - See 1822(3.4). 
  2033.  
  2034.           Type 6: Dead Host Status - See 1822(3.4). 
  2035.  
  2036.           Type 7: Destination Host or IMP  Dead  (or  unknown)  -  See 
  2037.  
  2038.                1822(3.4). 
  2039.  
  2040.  
  2041.  
  2042.                                   - 36 - 
  2043.  
  2044.  
  2045.  
  2046.  
  2047.      1822L Host Access Protocol                          December 1983      RFC 878 
  2048.  
  2049.  
  2050.  
  2051.           Type 8: Error in Data - See 1822(3.4). 
  2052.  
  2053.           Type  9:  Incomplete  Transmission  -  See  1822(3.4).    In  | 
  2054.  
  2055.                addition to its already defined sub-types, this message  | 
  2056.  
  2057.                has one new sub-type:                                    | 
  2058.  
  2059.                6: Logically Addressed Host Went  Down  -  A  logically  | 
  2060.  
  2061.                     addressed  message was lost in the network because  | 
  2062.  
  2063.                     the  destination  host  to  which  it  was   being  | 
  2064.  
  2065.                     delivered   went  down.   The  message  should  be  | 
  2066.  
  2067.                     resubmitted by the source host, since there may be  | 
  2068.  
  2069.                     another  effective  host port to which the message  | 
  2070.  
  2071.                     could be delivered (see section 2.2.3).             | 
  2072.  
  2073.           Type 10: Interface Reset - See 1822(3.4). 
  2074.  
  2075.           Type 11: Name Server Reply - This reply to the  Name  Server 
  2076.  
  2077.                Request  host-to-IMP  message  contains,  following the 
  2078.  
  2079.                leader  and  any  leader  padding,  a  word  with   the 
  2080.  
  2081.                selection  policy  and the number of physical addresses 
  2082.  
  2083.                to which the destination name  maps,  followed  by  two 
  2084.  
  2085.                words  per physical address: the first word contains an 
  2086.  
  2087.                1822L address, and  the  second  word  contains  a  bit 
  2088.  
  2089.                signifying  whether  or not that particular translation 
  2090.  
  2091.                is effective and the routing distance (expected network 
  2092.  
  2093.                transmission  delay,  in 6.4 ms units) to the address's 
  2094.  
  2095.                IMP.  In figure 3.4, which includes the leader  without 
  2096.  
  2097.                any  leader  padding,  EFF is 1 for effective and 0 for 
  2098.  
  2099.  
  2100.  
  2101.                                   - 37 - 
  2102.  
  2103.  
  2104.  
  2105.  
  2106.      1822L Host Access Protocol                          December 1983      RFC 878 
  2107.  
  2108.  
  2109.  
  2110.                non-effective, and POL is a two-bit  number  indicating 
  2111.  
  2112.                the selection policy for the name (see section 2.2.2): 
  2113.  
  2114.                0: First reachable. 
  2115.  
  2116.                1: Closest physical address. 
  2117.  
  2118.                2: Load leveling. 
  2119.  
  2120.                3: Unused. 
  2121.  
  2122.  
  2123.  
  2124.                  1             16 17            32 33            48                 +----------------+----------------+----------------+                 |                |                |                |                 |      0E00      |      000B      |      0000      |                 |                |                |                |                 +----------------+----------------+----------------+                  49            64 65            80 81            96                 +----------------+----------------+----------------+                 |                |                |                |                 |   dest. name   |      0000      |      0000      |                 |                |                |                |                 +----------------+----------------+----------------+                  97           112 113          128 129          144                 +-+--------------+----------------+-+--------------+                 |P|              |                |E|              |                 |O|  # of addrs  |  1822L addr #1 |F| routing dist |                 |L|              |                |F|              |                 +-+--------------+----------------+-+--------------+                 145           160 161          176                 +----------------+-+--------------+                 |                |E|              |                 |  1822L addr #2 |F| routing dist |       etc.                 |                |F|              |                 +----------------+-+--------------+ 
  2125.  
  2126.                           Name Server Reply Format                                 Figure 3.4 
  2127.  
  2128.  
  2129.  
  2130.  
  2131.  
  2132.  
  2133.  
  2134.                                    - 38 - 
  2135.  
  2136.  
  2137.  
  2138.  
  2139.      1822L Host Access Protocol                          December 1983      RFC 878 
  2140.  
  2141.  
  2142.  
  2143.           Type 12: Port List Reply - This is the  reply  to  the  Port 
  2144.  
  2145.                List  Request  host-to-IMP  message.   It  contains the 
  2146.  
  2147.                number of names that map to this  physical  host  port, 
  2148.  
  2149.                followed by two words per name: the first word contains 
  2150.  
  2151.                an 1822L name that maps to this port,  and  the  second 
  2152.  
  2153.                contains  either a zero or a one, signifying whether or 
  2154.  
  2155.                not that  particular  translation  is  effective.   The 
  2156.  
  2157.                format  is  identical  to  the type 3 NDM Reply message 
  2158.  
  2159.                (see figure 3.2). 
  2160.  
  2161.           Type 15: 1822L Name or Address Error - This message is  sent 
  2162.  
  2163.                in  response  to  a  type  0  message  from a host that 
  2164.  
  2165.                contained an erroneous Source Host or Destination  Host 
  2166.  
  2167.                field.  Its sub-types are: 
  2168.  
  2169.                0: The Source Host 1822L name is not authorized or  not 
  2170.  
  2171.                     effective. 
  2172.  
  2173.                1: The Source Host 1822L address  does  not  match  the 
  2174.  
  2175.                     host port used to send the message. 
  2176.  
  2177.                2: The Destination Host 1822L name is not authorized. 
  2178.  
  2179.                3:  The  physical  host  to  which  this   singly-homed 
  2180.  
  2181.                     Destination Host name translated is authorized and 
  2182.  
  2183.                     up, but not effective.  If the host  was  actually 
  2184.  
  2185.                     down,  a  type  7 message would be returned, not a 
  2186.  
  2187.                     type 15. 
  2188.  
  2189.                5: The multi-homed Destination Host name is authorized, 
  2190.  
  2191.  
  2192.  
  2193.                                   - 39 - 
  2194.  
  2195.  
  2196.  
  2197.  
  2198.      1822L Host Access Protocol                          December 1983      RFC 878 
  2199.  
  2200.  
  2201.  
  2202.                     but has no available effective translations. 
  2203.  
  2204.                6: A logically-addressed uncontrolled packet  was  sent 
  2205.  
  2206.                     to a dead or non-effective host port.  However, if 
  2207.  
  2208.                     it is resubmitted, there may be another  effective 
  2209.  
  2210.                     host  port to which the IMP may be able to attempt 
  2211.  
  2212.                     to send the packet. 
  2213.  
  2214.                7: Logical addressing is not in use in this network. 
  2215.  
  2216.                8-15: Unassigned. 
  2217.  
  2218.           Types 4,13-14,16-255: Unassigned. 
  2219.  
  2220.       Bits 33-48: Source Host: 
  2221.  
  2222.           For type 0 messages, this field contains the 1822L  name  or 
  2223.  
  2224.           address  of  the  host  that  originated  the  message.  All 
  2225.  
  2226.           replies to the message should be sent to the host  specified 
  2227.  
  2228.           herein.   For  message types 5-9 and 15, this field contains 
  2229.  
  2230.           the source host field used in a previous type 0 message sent 
  2231.  
  2232.           by this host. 
  2233.  
  2234.       Bits 49-64: Destination Host: 
  2235.  
  2236.           For type 0 messages, this field contains the 1822L  name  or 
  2237.  
  2238.           address  that  the  message  was  sent  to.  This allows the 
  2239.  
  2240.           destination host to detect  how  it  was  specified  by  the 
  2241.  
  2242.           source  host.   For  message  types  5-9  and 15, this field 
  2243.  
  2244.           contains the destination host field used in a previous  type 
  2245.  
  2246.           0 message sent by this host. 
  2247.  
  2248.  
  2249.  
  2250.                                   - 40 - 
  2251.  
  2252.  
  2253.  
  2254.  
  2255.      1822L Host Access Protocol                          December 1983      RFC 878 
  2256.  
  2257.  
  2258.  
  2259.      Bits 65-76: Message ID: 
  2260.  
  2261.           For message types 0, 5, 7-9,  and  15,  this  is  the  value 
  2262.  
  2263.           assigned  by  the  source  host to identify the message (see 
  2264.  
  2265.           section 3.1).  This field is also used by  message  types  2 
  2266.  
  2267.           and 6. 
  2268.  
  2269.       Bits 77-80: Sub-type: 
  2270.  
  2271.           This field is used as a modifier by message types 0-2,  5-7, 
  2272.  
  2273.           9, and 15. 
  2274.  
  2275.       Bits 81-96: Message Length: 
  2276.  
  2277.           This field is contained in type 0, 3, 11,  and  12  messages 
  2278.  
  2279.           only,  and  is  the  actual  length  in  bits of the message 
  2280.  
  2281.           (exclusive of leader, leader padding, and hardware  padding) 
  2282.  
  2283.           as computed by the IMP. 
  2284.  
  2285.  
  2286.  
  2287.  
  2288.  
  2289.  
  2290.  
  2291.  
  2292.  
  2293.  
  2294.  
  2295.  
  2296.  
  2297.  
  2298.  
  2299.  
  2300.  
  2301.  
  2302.  
  2303.  
  2304.  
  2305.  
  2306.  
  2307.                                   - 41 - 
  2308.  
  2309.  
  2310.  
  2311.  
  2312.      1822L Host Access Protocol                          December 1983      RFC 878 
  2313.  
  2314.  
  2315.  
  2316.      4  REFERENCES 
  2317.  
  2318.       [1]  "Specifications for the Interconnection of  a  Host  and  an 
  2319.  
  2320.           IMP", BBN Report 1822, December 1981 Revision. 
  2321.  
  2322.       [2]  E.  C.   Rosen   et.   al.,   "ARPANET   Routing   Algorithm 
  2323.  
  2324.           Improvements",   Internet   Experimenter's  Note  183  (also 
  2325.  
  2326.           published as BBN Report 4473, Vol. 1), August 1980, pp.  55- 
  2327.  
  2328.           107. 
  2329.  
  2330.       [3]  J. Reynolds and J. Postel, "Assigned Numbers",  Request  For 
  2331.  
  2332.           Comments 870, October 1983, p. 14. 
  2333.  
  2334.       [4]  J. Postel, ed., "Internet Protocol - DARPA Internet  Program 
  2335.  
  2336.           Protocol Specification", Request for Comments 791, September 
  2337.  
  2338.           1981. 
  2339.  
  2340.       [5]  J. Postel, "Address Mappings",  Request  for  Comments  796, 
  2341.  
  2342.           September 1981. 
  2343.  
  2344.  
  2345.  
  2346.  
  2347.  
  2348.  
  2349.  
  2350.  
  2351.  
  2352.  
  2353.  
  2354.  
  2355.  
  2356.  
  2357.  
  2358.  
  2359.  
  2360.                                    - 42 - 
  2361.  
  2362.  
  2363.  
  2364.  
  2365.      1822L Host Access Protocol                          December 1983      RFC 878 
  2366.  
  2367.  
  2368.  
  2369.                                 APPENDIX A 
  2370.  
  2371.                           1822L-IP ADDRESS MAPPINGS 
  2372.  
  2373.  
  2374.  
  2375.      Once logical addressing is in active  (or  universal)  use  in  a  | 
  2376.  
  2377.      network,  to  the extent that the "official" host tables for that  | 
  2378.  
  2379.      network specify hosts by their logical names rather than by their  | 
  2380.  
  2381.      physical  network  addresses,  it would be desirable for hosts on  | 
  2382.  
  2383.      other networks to also be able to use the same logical  names  to  | 
  2384.  
  2385.      specify these hosts when sending traffic to them via the internet  | 
  2386.  
  2387.      [4].                                                               | 
  2388.  
  2389.       Happily, there exists a natural mapping between logical names and  | 
  2390.  
  2391.      internet  addresses  that  fits  very  nicely  with  the  already  | 
  2392.  
  2393.      standard ARPANET-style address mapping as specified in  RFC  796,  | 
  2394.  
  2395.      Address  Mappings [5].  The current ARPANET-style class A mapping  | 
  2396.  
  2397.      is as follows (from RFC 796):                                      | 
  2398.  
  2399.  
  2400.  
  2401.  
  2402.  
  2403.  
  2404.  
  2405.  
  2406.  
  2407.  
  2408.  
  2409.  
  2410.  
  2411.  
  2412.  
  2413.  
  2414.  
  2415.  
  2416.  
  2417.                                   - 43 - 
  2418.  
  2419.  
  2420.  
  2421.  
  2422.      1822L Host Access Protocol                          December 1983      RFC 878 
  2423.  
  2424.  
  2425.  
  2426.  
  2427.  
  2428.              +--------+ +--------+--------+              |  HOST  | |  ZERO  |  IMP   |    1822 Address              +--------+ +--------+--------+                  8          8        8 
  2429.  
  2430.              +--------+--------+--------+--------+              | net #  |  HOST  |   LH   |  IMP   |   IP Address              +--------+--------+--------+--------+                  8        8        8        8 
  2431.  
  2432.                             1822 Class A Mapping                                 Figure A.1 
  2433.  
  2434.  
  2435.  
  2436.      For 1822L names and addresses, the mapping would be:               | 
  2437.  
  2438.  
  2439.  
  2440.              +--------+--------+              | upper  | lower  |     1822L Name or Address              +--------+--------+                  8        8 
  2441.  
  2442.              +--------+--------+--------+--------+              | net #  | upper  |   LH   | lower  |   IP Address              +--------+--------+--------+--------+                  8        8        8        8 
  2443.  
  2444.                             1822L Class A Mapping                                 Figure A.2 
  2445.  
  2446.  
  2447.  
  2448.      For 1822L addresses,  this  mapping  is  identical  to  the  1822  | 
  2449.  
  2450.      mapping.   For  1822L  names,  the  IP address would appear to be  | 
  2451.  
  2452.      addressing a high-numbered (64-255) 1822 host.  Although  the  LH  | 
  2453.  
  2454.      (logical  host)  field  is still defined, its use is discouraged;  | 
  2455.  
  2456.      multiple logical names should now be used to  multiplex  multiple  | 
  2457.  
  2458.  
  2459.  
  2460.                                   - 44 - 
  2461.  
  2462.  
  2463.  
  2464.  
  2465.      1822L Host Access Protocol                          December 1983      RFC 878 
  2466.  
  2467.  
  2468.  
  2469.      functions onto one physical host port.                             | 
  2470.  
  2471.       This mapping extends to class B networks:                          | 
  2472.  
  2473.  
  2474.  
  2475.              +--------+--------+              | upper  | lower  |     1822L Name or Address              +--------+--------+                  8        8 
  2476.  
  2477.              +----------------+--------+--------+              | network number | upper  | lower  |   IP Address              +----------------+--------+--------+                      16            8        8 
  2478.  
  2479.                             1822L Class B Mapping                                 Figure A.3 
  2480.  
  2481.  
  2482.  
  2483.      Finally, logical addressing will allow IMP-based class C networks  | 
  2484.  
  2485.      for  the  first  time.   Previously,  it  was very hard to try to  | 
  2486.  
  2487.      divide the 8 bits of host specification into some number of  host  | 
  2488.  
  2489.      bits  and  some  number  of  IMP  bits.   However,  if ALL of the  | 
  2490.  
  2491.      internet-accessible hosts on  the  network  have  logical  names,  | 
  2492.  
  2493.      there is no reason why networks with up to 256 such logical names  | 
  2494.  
  2495.      cannot now use class C addresses, as follows:                      | 
  2496.  
  2497.  
  2498.  
  2499.  
  2500.  
  2501.  
  2502.  
  2503.  
  2504.  
  2505.  
  2506.  
  2507.  
  2508.  
  2509.                                    - 45 - 
  2510.  
  2511.  
  2512.  
  2513.  
  2514.      1822L Host Access Protocol                          December 1983      RFC 878 
  2515.  
  2516.  
  2517.  
  2518.  
  2519.  
  2520.              +--------+--------+              |01000000| lower  |     1822L Name              +--------+--------+                  8        8 
  2521.  
  2522.              +------------------------+--------+              |     network number     | lower  |   IP Address              +------------------------+--------+                          24                8 
  2523.  
  2524.                             1822L Class C Mapping                                 Figure A.4 
  2525.  
  2526.  
  2527.  
  2528.      Those hosts on the network  desiring  internet  access  would  be  | 
  2529.  
  2530.      assigned  logical  names in the range 40000 to 40377 (octal), and  | 
  2531.  
  2532.      the  gateway(s)  connected  to  that  network  would   make   the  | 
  2533.  
  2534.      translation  from IP addresses to 1822L names as specified above.  | 
  2535.  
  2536.      Note that the network could have many more than 256 hosts, or 256  | 
  2537.  
  2538.      defined  names;  the  only  restriction is that hosts that desire  | 
  2539.  
  2540.      internet support or access be addressable by a name in the  range  | 
  2541.  
  2542.      40000  -  40377.   Traffic that was strictly local to the network  | 
  2543.  
  2544.      could use other names or even 1822L addresses.                     | 
  2545.  
  2546.  
  2547.  
  2548.  
  2549.  
  2550.  
  2551.  
  2552.  
  2553.  
  2554.  
  2555.  
  2556.  
  2557.  
  2558.  
  2559.  
  2560.                                   - 46 - 
  2561.  
  2562.  
  2563.  
  2564.  
  2565.      1822L Host Access Protocol                          December 1983      RFC 878 
  2566.  
  2567.  
  2568.  
  2569.                                    INDEX 
  2570.  
  2571.  
  2572.  
  2573.  
  2574.  
  2575.       1822...................................................... 3      1822 address.............................................. 5      1822 host................................................. 4      1822L..................................................... 3      1822L address............................................. 6      1822L and 1822 interoperability.......................... 15      1822L host................................................ 4      1822L name................................................ 5      address selection policy................................. 12      authorized................................................ 8      blocking................................................. 20      closest physical address................................. 12      connection............................................... 20      destination host..................................... 32, 40      effective............................................. 9, 23      first reachable.......................................... 12      handing type......................................... 27, 35      host downs............................................... 13      interoperability......................................... 15      leader flags......................................... 27, 35      link field............................................... 32      load leveling............................................ 12      logical addressing........................................ 3      message ID........................................... 32, 41      message length........................................... 41      message type......................................... 28, 35      multi-homing.............................................. 3      name server...................................... 23, 31, 37      NDM................................................... 9, 28      NDM reply............................................. 9, 36      NOC....................................................... 8      NOP........................................... 4, 19, 30, 36      priority bit............................................. 27      regular message...................................... 28, 35      RFNM................................................. 20, 36      source host.......................................... 31, 40      standard message......................................... 28      sub-type............................................. 33, 41      symmetric................................................. 4      trace bit............................................ 27, 35 
  2576.  
  2577.  
  2578.  
  2579.                                   - 47 - 
  2580.  
  2581.  
  2582.  
  2583.  
  2584.      1822L Host Access Protocol                          December 1983      RFC 878 
  2585.  
  2586.  
  2587.  
  2588.      uncontrolled packet.................................. 16, 28      virtual circuit connection............................... 20 
  2589.  
  2590.  
  2591.  
  2592.  
  2593.  
  2594.  
  2595.  
  2596.  
  2597.  
  2598.  
  2599.  
  2600.  
  2601.  
  2602.  
  2603.  
  2604.  
  2605.  
  2606.  
  2607.  
  2608.  
  2609.  
  2610.  
  2611.  
  2612.  
  2613.  
  2614.  
  2615.  
  2616.  
  2617.  
  2618.  
  2619.  
  2620.  
  2621.  
  2622.  
  2623.  
  2624.  
  2625.  
  2626.  
  2627.  
  2628.  
  2629.  
  2630.  
  2631.  
  2632.  
  2633.  
  2634.  
  2635.  
  2636.                                    - 48 - 
  2637.  
  2638.  
  2639.