Difference between revisions of "RFC1005"

From RFC-Wiki
imported>Admin
(Created page with " Network Working Group Atul Khanna, Andy Malis Request for Comments: 1005 BBN Communications Corp. ...")
 
Line 1: Line 1:
 
+
Network
 
 
 
 
 
 
 
 
 
 
Network Working Group                            Atul Khanna, Andy Malis
 
Request for Comments: 1005                      BBN Communications Corp.
 
                                                            May 1987
 
 
 
 
 
    The ARPANET AHIP-E Host Access Protocol (Enhanced AHIP)
 
 
 
 
 
== Status of this Memo ==
 
 
 
This RFC is a proposed specification for the encoding of Class A
 
IP addresses for use on ARPANET-style networks such as the Milnet
 
and Arpanet, and for enhancements to the ARPANET AHIP Host Access
 
Protocol (AHIP; formerly known as 1822).  These enhancements
 
increase the size of the PSN field, allow ARPANET hosts to use
 
logical names to address each other, allow for the communication
 
of type-of-service information from the host to the PSN and
 
enable the PSN to provide congestion feedback to the host on a
 
connection basis. Distribution of this memo is unlimited.
 
Comments on this RFC should be sent to the netmail address
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
                          Table of Contents
 
 
 
 
 
    1  INTRODUCTION.......................................... 4
 
 
 
    2  IP ISSUES............................................. 6
 
    2.1  Current Interpretation of Class A IP Address
 
          Fields
 
            ................................................... 6
 
    2.2  Requirements and Constraints Affecting New
 
          Class A Mapping
 
            ................................................... 7
 
    2.3  New Interpretation of IP Address Fields............. 8
 
    2.4  Discussion of the New Mapping.......................10
 
    2.5  Interoperability between Current AHIP and
 
          AHIP-E
 
            ...................................................11
 
 
 
    3  LOGICAL ADDRESSING................................... 13
 
    3.1  Addresses and Names................................ 13
 
    3.2  Name Translations.................................. 14
 
    3.2.1  Authorization and Effectiveness.................. 15
 
    3.2.2  Translation Policies............................. 16
 
    3.2.3  Reporting Destination Host Downs................. 17
 
    3.3  Establishing Host-PSN Communications............... 18
 
    3.4  Name Server........................................ 19
 
 
 
    4  OTHER CHANGES........................................ 20
 
    4.1  Type-of-Service Specification...................... 20
 
    4.2  Subnet Congestion Feedback......................... 21
 
    4.3  Precedence Level Information....................... 21
 
 
 
    5  FORMATS FOR NEW AHIP-E MESSAGES...................... 23
 
    5.1  Host-to-PSN AHIP-E Leader Format................... 23
 
    5.2  PSN-to-Host AHIP-E Leader Format................... 27
 
 
 
    6  AHIP-E VERSIONS...................................... 33
 
 
 
    7  REFERENCES........................................... 34
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
                              FIGURES
 
 
 
    2.1  IP Class A Mapping................................... 6
 
    2.2  New Class A IP Address Interpretation................ 8
 
    2.3  AHIP-E Address and Name.............................. 9
 
    3.1  Current AHIP Address Format......................... 13
 
    3.2  AHIP-E Address Format............................... 14
 
    3.3  Logical Name Format................................. 14
 
    5.1  Host-to-PSN AHIP-E Leader Format.................... 23
 
    5.2  NDM Message Format.................................. 25
 
    5.3  PSN-to-Host AHIP-E Leader Format.................... 27
 
    5.4  Name Server Reply Format............................ 30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1  INTRODUCTION
 
 
 
This RFC is a proposed specification for the encoding of Class A
 
IP addresses for use on ARPANET-style networks such as the Milnet
 
and Arpanet, and for enhancements to the AHIP Protocol (AHIP is the
 
preferred term for what has previously
 

Revision as of 22:26, 22 September 2020

Network Working Group Atul Khanna, Andy MalisRequest for Comments: 1005 BBN Communications Corp. May 1987 The ARPANET AHIP-E Host Access Protocol (Enhanced AHIP)1. Status of this Memo This RFC is a proposed specification for the encoding of Class A IP addresses for use on ARPANET-style networks such as the Milnet and Arpanet, and for enhancements to the ARPANET AHIP Host Access Protocol (AHIP; formerly known as 1822). These enhancements increase the size of the PSN field, allow ARPANET hosts to use logical names to address each other, allow for the communication of type-of-service information from the host to the PSN and enable the PSN to provide congestion feedback to the host on a connection basis. Distribution of this memo is unlimited. Comments on this RFC should be sent to the netmail address "[email protected]".Khanna & Malis [Page 1]RFC 1005 May 1987 Table of Contents 1 INTRODUCTION.......................................... 4 2 IP ISSUES............................................. 6 2.1 Current Interpretation of Class A IP Address Fields ................................................... 6 2.2 Requirements and Constraints Affecting New Class A Mapping ................................................... 7 2.3 New Interpretation of IP Address Fields............. 8 2.4 Discussion of the New Mapping.......................10 2.5 Interoperability between Current AHIP and AHIP-E ...................................................11 3 LOGICAL ADDRESSING................................... 13 3.1 Addresses and Names................................ 13 3.2 Name Translations.................................. 14 3.2.1 Authorization and Effectiveness.................. 15 3.2.2 Translation Policies............................. 16 3.2.3 Reporting Destination Host Downs................. 17 3.3 Establishing Host-PSN Communications............... 18 3.4 Name Server........................................ 19 4 OTHER CHANGES........................................ 20 4.1 Type-of-Service Specification...................... 20 4.2 Subnet Congestion Feedback......................... 21 4.3 Precedence Level Information....................... 21 5 FORMATS FOR NEW AHIP-E MESSAGES...................... 23 5.1 Host-to-PSN AHIP-E Leader Format................... 23 5.2 PSN-to-Host AHIP-E Leader Format................... 27 6 AHIP-E VERSIONS...................................... 33 7 REFERENCES........................................... 34Khanna & Malis [Page 2]RFC 1005 May 1987 FIGURES 2.1 IP Class A Mapping................................... 6 2.2 New Class A IP Address Interpretation................ 8 2.3 AHIP-E Address and Name.............................. 9 3.1 Current AHIP Address Format......................... 13 3.2 AHIP-E Address Format............................... 14 3.3 Logical Name Format................................. 14 5.1 Host-to-PSN AHIP-E Leader Format.................... 23 5.2 NDM Message Format.................................. 25 5.3 PSN-to-Host AHIP-E Leader Format.................... 27 5.4 Name Server Reply Format............................ 30Khanna & Malis [Page 3]RFC 1005 May 19871 INTRODUCTIONThis RFC is a proposed specification for the encoding of Class AIP addresses for use on ARPANET-style networks such as the Milnetand Arpanet, and for enhancements to the AHIP Protocol (AHIP is thepreferred term for what has previously been known as the 1822protocol). These enhancements and modifications are partiallymotivated by a need to overcome the current address limitationof 256 PSNs per network and by a desire to allow hosts to takeadvantage of logical addressing with minimal change to their AHIPsoftware. This enhanced AHIP protocol will be referred to as"AHIP-E". These enhancements will: 1. Increase the size of the PSN field to 10 bits. 2. Allow hosts to use logical names (i.e., host names that are independent of physical location on the network) in addition to physical port addresses to communicate with each other. 3. Enable the host to specify a type-of-service to the PSN. 4. Provide a mechanism for the PSN to communicate subnetwork congestion information to the host on a destination host basis. This will give the host an opportunity to selectively reduce its congesting flows, thus preventing all of its flows from being blocked b y the network. Currently, a host has no way of knowing which of its flows is experiencing congestion; consequently, it is possible that one congesting flow can result in the blocking of all the host's flows . 5. Enable the PSN to inform the host about changes in precedence cutoff levels and about precedence level violations.A host can take advantage of the extended and logical addressingcapabilities without making substantial changes to its AHIPimplementation. In particular, the specification provides threeversions of AHIP-E: version 0 is current AHIP with no changes; version 1allows use of logical and extended addressing with minimal change tocode; version 2 constitutes full-fledged AHIP-E. This is described infurther detail in chapter 6.This RFC's terminology is consistent with that used in BBN Report 1822[1], and any new terms are defined when they are first used.Familiarity with Report 1822 (section 3 in particular) is assumed. Ascould be expected, the RFC makes many references to Report 1822. As aresult, it uses, as a convenient abbreviation, "see 1822(x)" instead of"please refer to Report 1822, section x, for further details".Khanna & Malis [Page 4]RFC 1005 May 1987The rest of this RFC is organized as follows. Chapter 2 describes thenew mapping between IP class A addresses and subnetwork hosts. Chapter3 discusses logical addressing. Chapter 4 describes the enhancementsrelated to type-of-service and reliability specification and tocongestion and precedence feedback. Chapter 5 includes a specificationof the new message types and their formats. Finally, chapter 6describes the AHIP-E version numbering scheme.Khanna & Malis [Page 5]RFC 1005 May 19872 IP ISSUESThis section discusses the changes to the mapping between Class A IPaddresses [5] and subnet addresses. These changes are made necessaryby: 1. The introduction of logical names. 2. The expansion of the PSN-number field.Note that this RFC does not affect Class B and C mappings [5].2.1 Current Interpretation of Class A IP Address FieldsClass A IP addresses are 32 bits in length, with 8 bits devoted tonetwork number and 24 to the local address. In particular, they are ofthe form n.h.l.i, where n,h,l and i are decimal integers less than 256.AHIP addresses are 24 bits in length. The current ARPANET-style class Amapping is as follows (from RFC 796): 0 7 8 15 16 23 24 31 +--------+--------+-------+---------+ | net # | HOST | LH | PSN | IP Address +--------+--------+-------+---------+ 8 8 8 8 8 8 8 +--------+--------+--------+ | HOST | ZERO | PSN | AHIP Physical Address +--------+--------+--------+ 41 48 49 56 57 64 (bit positions in the AHIP leader) IP Class A Mapping Figure 2.1The LH (logical host) field is used by the hosts only and is not passedto the network.Khanna & Malis [Page 6]RFC 1005 May 19872.2 Requirements and Constraints Affecting New Class A MappingThis section discusses some of the requirements and constraints thatwere considered significant in determining the new address mapping. 1. Address Mapping Stability Requirement: Any current IP physical address with l (logical host) = 0 should remain unchanged under the new design. For example, the binary string corresponding to 10.0.0.51 should continue to refer to sri-nic.arpa (assuming, of course, that sri-nic continues to reside on psn 51, port 0). This requirement is motivated by a desire to avoid a network-wide address switchover. 2. Existing implementation compatibility: Existing compliant implementations of AHIP should continue to function for destinations with addresses fitting the restrictions in 1. In other words, such addresses should continue to refer to their original destinations, not only with the AHIP-E implementation (which is the condition in 1), but also with current ones. 3. Compatibility between X.25's IP address to subnet host mapping and AHIP's IP address to subnet host mapping: The AHIP-E IP to host mapping should be able to co-exist in some sense with the IP to host mapping specified by the DDN X.25 Specification [6]. In particular, restricted use of the revised IP to DDN host mapping should produce addresses that are consistent with the current X.25 mapping. In other words, there should be a set that includes "sufficiently many" logical names and physical addresses, with the property that each address/name in the set maps onto the same host under both the AHIP and X.25 mappings. 4. Maximum number of PSNs that can be supported: The new design should support a maximum of more than 256 PSNs per network.Khanna & Malis [Page 7]RFC 1005 May 19872.3 New Interpretation of IP Address FieldsThe following is the new interpretation of the IP address field, in thecontext of ARPANET-style networks: Proposed IP Address Interpretation 8 8 1 5 10 +--------+--------+-+-----+----------+ | net # | HOST |0|XXXXX| PSN | Physical Address +--------+--------+-+-----+----------+ 0 7 8 15 17 21 22 31 8 8 2 6 8 +--------+--------+--+------+--------+ | net # | UPPER |11|XXXXXX| LOWER | Logical Name +--------+--------+--+------+--------+ 0 7 8 15 18 23 24 31 16 2 14 +-----------------+--+---------------+ | |10| | Reserved Format +-----------------+--+---------------+ 0 15 18 31 (X = don't care) New Class A IP Address Interpretation Figure 2.2The fields have the following meanings: HOST = host-number PSN = 10 bit PSN-number field UPPER = upper 8 bits of the 16-bit logical name LOWER = lower 8 bits of the 16-bit logical nameKhanna & Malis [Page 8]RFC 1005 May 1987AHIP-E physical addresses and logical names have the following formats: 8 1 5 10 +--------+-+-----+----------+ | HOST |0|XXXXX| PSN | Physical Address +--------+-+-----+----------+ 41 48 55 64 (bit positions in the AHIP leader) (X = don't care) 8 2 6 8 +--------+--+------+--------+ | UPPER |11|XXXXXX| LOWER | Logical Name +--------+--+------+--------+ 41 48 57 64 (bit positions in the AHIP leader) +--------+--+---------------+ | |10| | Reserved Address Format +--------+--+---------------+ 41 48 51 64 (bit positions in the AHIP leader) AHIP-E Address and Name Figure 2.3The reserved address format is currently undefined and will be rejectedby the PSN, which will return an error message (message type 6, subtype3) to the host. ----------------------------------------------------------------- |This design does not require the AHIP-E host to do any processing| |of the address -- the host need only copy bits 8-31 of the IP | |address into bits 41-64 of the AHIP leader. The host no longer | |needs to zero out bits 49-56 of the AHIP leader. The PSN will | |take care of the AHIP to subnet address conversion. In other | |words, bits 8-31 of the IP address field should be passed | |unchanged to the PSN, which interprets them exactly as shown in | |figure 2.3. | -----------------------------------------------------------------Khanna & Malis [Page 9]RFC 1005 May 19872.4 Discussion of the New MappingThis section presents an evaluation of the design in terms of therequirements in section 2.2 1. Address mapping stability requirement: Current physical IP addresses will not have to be changed, as long as they have been following the convention of setting LH = 0. This ensures that bit 16 is set to 0, indicating that the address is physical, and that the PSN number comes out right. 2. Existing implementation compatibility: The design meets this requirement, as the address that gets to the PSN has its second octet = 0, which results in its correct interpretation as a physical address. 3. Compatibility with the current X.25 IP address to DDN host mapping: The current X.25 IP to HOST mapping [6] is as follows: If h < 64, the address is considered physical, i.e., it refers to host h on PSN i. If h >= 64, the address is considered logical, i.e., it refers to the host whose logical name is h concatenated with i. The design is compatible in a limited sense with the current X.25 logical addressing implementation, as long as logical names are assigned such that host-number > 63 (also PSN-number < 256 which is automatic, given the 16-bit size of the logical name field) and physical addresses are in the range host- number < 64 and PSN- number < 256, with the appropriate setting of bits 16 and 17 of the IP address field. This works because the X.25 mapping ignores the value of the l field, i.e., the third IP address octet. Given the desire to be able to address more than 64 hosts physically and for PSN numbers > 255, this address assignment restriction should not be considered permanent, but rather as an interim compromise until the hosts' X.25 implementations are revised to incorporate the new mapping between IP and DDN addresses.Khanna & Malis [Page 10]RFC 1005 May 1987 4. Maximum number of PSNs that can be supported: The design allows addressing of up to 1024 PSNs per network.2.5 Interoperability between Current AHIP and AHIP-EThis section discusses the interoperability between hosts using currentAHIP and AHIP-E. It also discusses the general issue of current AHIPhost operation in the AHIP-E addressing environment.The proposed modifications to AHIP have been designed with backwardcompatibility in mind. However, note that bits 41-64 of the PSN-to-hostleader (see 1822(3.4)) will always contain the physical address of thesource host. This means that an error could occur when a host on a PSNnumbered greater than 255 attempts to send a message to a host running acurrent AHIP implementation, which interprets the address of the sourcehost as one with PSN-number < 256.There are other possibilities for errors, caused by incorrect addresstranslation between IP and current AHIP: 1. A host running current AHIP cannot physically address any host on a PSN numbered greater than 255 (see Figure 3.1). Consequently, an error will result if the host attempts to use an address from the NIC host table that has PSN-number > 255. 2. If a host running current AHIP attempts to use a logical name that it might have in its host table, an error will occur. This is because the logical name flag bits 16 and 17 of the IP address, bits 49 and 50 of the AHIP leader. Recal that bits 49 - 56 of the AHIP leader get set to zero with current AHIP (see figure 2.1).Since these errors cannot be detected by the subnetwork, it is essentialthat all hosts implement at least version 1 AHIP-E (see chapter 6)before PSN numbers over 255 and logical names are assigned.Khanna & Malis [Page 11]RFC 1005 May 1987Another aspect of interoperability has to do with the IP LH field, whichis currently used by a handful of Arpanet hosts to demultiplex a singlehost port. The 5 don't-care bits of the physical IP address (bits 17-21) and the 6 don't-care bits of the IP logical name (bits 18-23) can beused for this purpose -- in particular, the use of these bits is dividedbetween the network and external devices, based on administrativeagreement. At the very least, the IP addresses of such hosts will haveto change to reflect the changed position of the LH field. However, thepreferred way to demultiplex a single host port is via the mechanism oflogical names. The only change this involves is to get the portexpander implementation to look at the entire IP address, rather thanjust the LH field.Khanna & Malis [Page 12]RFC 1005 May 19873 LOGICAL ADDRESSINGThe modifications to AHIP allow a host to use logical addressing tocommunicate with other hosts on the network. Basically, logicaladdressing allows hosts to refer to each other using a logical name (seesection 3.1) which is independent of a host's physical location in thenetwork. IEN 183 (also published as BBN Report 4473) [2] gives the useof logical addressing considerable justification. Among the advantagesit cites are:o The ability to refer to each host on the network by a name independent of its location in the network (especially important if the host has to move to another physical port).o Allowing different hosts to share the same host port on a time-division basis.o Allowing a host to use multi-homing (where a single host uses more than one port to communicate with the network).o Allowing several hosts that provide the same service to share the same name.o Allowing a host to provide services that have their own unique names.3.1 Addresses and NamesThe AHIP-E protocol allows two forms of host specification. The firstis a slightly modified version of the form used by the current AHIPprotocol, the physical address. The second form is the logical name(the terms "name", "logical name" and "logical address" are usedinterchangeably in this document).Current AHIP addresses are the 24-bit host addresses found in AHIPleaders. They have the following format: 8 8 8 +-------------+--------+------------+ | host-number |00000000| PSN-number | +-------------+--------+------------+ 41 48 49 56 57 64 (bit positions in the AHIP leader) Current AHIP Address Format Figure 3.1Khanna & Malis [Page 13]RFC 1005 May 1987AHIP-E addresses have the following format: 8 1 5 10 +--------+-+-----+----------+ | HOST |0|XXXXX| PSN | Physical Address +--------+-+-----+----------+ 41 48 55 64 (bit positions in the AHIP leader) (X = don't care) AHIP-E Address Format Figure 3.2Logical names are 16-bit unsigned numbers that serve as a logicalidentifier for one or more hosts. A logical name is the concatenationof two separate octets in the AHIP leader, bits 41-48 (Upper 8) and 57-64 (Lower 8) in particular. 8 2 6 8 +--------+--+------+--------+ | UPPER |11|XXXXXX| LOWER | +--------+--+------+--------+ 41 48 57 64 (bit positions in the AHIP leader) (X = don't care) Logical Name Format Figure 3.33.2 Name TranslationsThere are a number of factors that determine how a logical name istranslated by the PSN into a physical address on the network. Thesefactors include which translations are legal; in what order differenttranslations for the same name should be attempted; and which legaltranslations should not be attempted because a particular host port isdown. These issues are discussed in the following sections.Khanna & Malis [Page 14]RFC 1005 May 19873.2.1 Authorization and EffectivenessEvery host on a PSN, regardless of whether it is using the AHIP orAHIP-E protocol to access the network, can have one or more logicalnames. Hosts using AHIP-E can then use these names to address the hostsin the network independent of their physical locations.At this point, several questions arise: How are these names assigned,how do they become known to the PSNs (so that translations to physicaladdresses can be made), and how do the PSNs know which host is currentlyusing a shared port? To answer each question in order:Names are assigned by a central network administrator. When each nameis created, it is assigned to a host (or a group of hosts) at one ormore specific host ports. The host(s) are allowed to reside at thosespecific host ports, and nowhere else. If a host moves, it will keepthe same name, but the administrator has to update the central databaseto reflect the new host port. Changes to this database are distributedto the PSNs by the Monitoring Center (MC). For a while, the host may beallowed to reside at either of (or both) the new and old ports. Oncethe correspondence between a name and one or more hosts ports where itmay be used has been made official by the administrator, that name issaid to be authorized. Physical addresses, which actually refer tophysical host ports, are always authorized in this sense.When the PSN detects that a host has come up on one of its ports, itmakes effective the default name(s), if any, for that host. Thisdefault action is specified in the configuration table for that host,and can be one of the following: Enable All Names, Enable No Names,Enable One Particular Name. In the case of an AHIP-E host, the defaultname might not be the one that the host desires to be known as (recallthat several hosts may share the same port, or one host may prefer to beknown by different names at different times). This requires that anAHIP-E host be able to declare its name to the PSN. This function isperformed by a new host-to-PSN message, the Name Declaration Message(NDM), which lists the names that the host would like to be known by.The PSN checks its tables to see if each of the names is authorized, andsends an NDM Reply to the host saying which names were actuallyauthorized and can now be used for sending and receiving messages (i.e.,which names are effective). A host can also use an NDM message tochange its list of effective names (it can add to and delete from thelist) at any time. The only constraint on the host is that any names itwishes to use can become effective only if they are authorized.If a host is using the current AHIP protocol, it can still receivemessages from hosts via its logical name. Of course, it can alsoreceive messages from a current AHIP host via its physical address aswell. (Remember, the distinction between logical names and physicalKhanna & Malis [Page 15]RFC 1005 May 1987addresses is that the addresses correspond to physical locations on thenetwork, while the names are strictly logical identifiers).The third question above has by now already been answered. An AHIP-Ehost can use the NDM message to tell the PSN which host it is (whichnames it is known by). Thus, even if this is a shared port, the PSNknows which host is currently connected.WHENEVER A HOST GOES DOWN, ITS NAMES AUTOMATICALLY BECOME NON-EFFECTIVE. When it comes back up, the default action (from the host'sconfiguration) is taken. If the host wishes to be known by a name otherthan the default, it will have to issue a NDM. It will also have to dothis upon receipt of reset NOPS from the PSN.3.2.2 Translation PoliciesSeveral hosts can share the same logical name. If more than one ofthese hosts is up at the same time, any messages sent to that logicalname will be delivered to just one of the hosts sharing that name, and aRFNM will be returned as usual. However, the sending host will notreceive any indication of which host received the message, andsubsequent messages to that name are not guaranteed to be sent to thesame host. Typically, hosts providing exactly the same service couldshare the same logical name in this manner.Similarly, when a host is multi-homed, the same logical name may referto more than one host port (all connected to the same host). If thehost is up on only one of those ports, that port will be used for allmessages addressed to the host. However, if the host were up on morethan one port, the message would be delivered over just one of thoseports, and the subnet would choose which port to use. This portselection could change from message to message. If a host wanted toinsure that certain messages were delivered to it on specific ports,these messages could use either the port's physical address or aspecific logical name that referred to that port alone.Three different address selection policies are available for the namemapping process. When translated, each name uses one of the threepolicies (the policy is administratively pre-determined on a per-namebasis). The three policies are:o Attempt each translation in the order in which the physical addresses are listed in the PSN's translation tables, to find the first reachable physical host address. This list is always searched from the top whenever a new virtual circuit connection has to be created. This is the most commonly used policy.Khanna & Malis [Page 16]RFC 1005 May 1987o Selection of the closest physical address, which uses the PSN's internal routing tables to find the translation to the destination PSN with the least cost path for the particular type-of-service whenever a new virtual circuit connection has to be created.o Use load leveling. This is similar to the first policy, but differs in that searching the address list for a valid translation starts at the address following where the previous translation search ended whenever a new virtual circuit connection has to be created. This attempts to spread out the load from any one PSN's hosts to the various host ports associated with a particular name. Note that this is NOT network-wide load leveling, which would require knowledge about flows throughout the network.3.2.3 Reporting Destination Host DownsAs is explained in Report 1822, whenever regular messages are sent by ahost, the PSN opens a virtual circuit connection to each destinationhost from the source host. A new connection is opened for each newsource-address/destination-name (or address, as the case mightbe)/handling-type/type-of-service combination. A connection will stayopen at least as long as there are any outstanding (un-RFNMed) messagesusing it and both the source and destination hosts stay up. Connectionsare also closed after a period of inactivity.However, the destination host may go down for some reason during thelifetime of a connection. If the host goes down while there are nooutstanding messages to it in the network, then the connection is closedand no other action is taken until the source host submits the nextmessage for that destination. At that time, ONE of the following eventswill occur:A1. If a physical address is being used to specify the destination host, then the source host will receive a type 7, subtype 0 (Destination Host Dead) message from the PSN.A2. If a logical name is being used to specify the destination host, and the name maps to only one authorized host port,then a type 7, subtype 0 message will be sent to the source host.A3. If a logical name is being used to specify the destination host, and the name maps to more than one authorized host port, then the PSN attempts to open a connection to another authorized and effective host port for that name. If no such connection can be made, the host will receive a typeKhanna & Malis [Page 17]RFC 1005 May 1987 15 (AHIP Name or Address Error), subtype 5 (no effective translations) message (see section 5.2). Note that a type 7 message cannot be returned to the source host, since type 7 messages refer to a particular destination host port, and the name maps to more than one destination port. However, in the case of a version 0 or 1 host, a type 7, subtype 0 message will be returned for each outstanding message. See chapter 6 for further details on version numbers.Things get a bit more complicated if there are any outstanding messageson the connection when the destination host goes down. The connectionwill be closed, and one of the following will occur:B1. If a physical address is being used to specify the destination host, then the source host will receive a type 7 message for each outstanding message.B2. If a logical name is being used to specify the destination host, then the source host will receive a type 9 (Incomplete Transmission), subtype 6 (message lost due to logically addressed host going down) message for each outstanding message. The next time the source host submits another message for that same destination name, the previous algorithm will be used (either step A2 or step A3). However,in the case of a version 0 or 1 host, a type 7,subtype 0 message will be returned for each outstanding message. See chapter 6 for further details on version numbers.3.3 Establishing Host-PSN CommunicationsWhen a host comes up on a PSN, or after there has been a break in thecommunications between the host and its PSN (see 1822 (3.2)),the orderlyflow of messages between the host and the PSN needs to be properly (re-)established. This allows the PSN and host to recover from almost anyfailure in the other or in their communications path, including a breakin mid-message.The first messages that a host should send to its PSN are three NOPs.Three messages are required to ensure that at least one message will beproperly read by the PSN (the first NOP could be concatenated to aprevious message if communications had been broken in mid-stream, andthe third provides redundancy for the second). These NOPs serve tosynchronize the PSN with the host, to inform the PSN about how muchpadding the host requires between the message leader and its body and tospecify the host's AHIP-E version number to the PSN (see chapter 6).Similarly, the PSN will send three NOPs to the host when it detects thatKhanna & Malis [Page 18]RFC 1005 May 1987the host has come up. The NOPs will be followed by an Interface Resetmessage. These NOPs will contain the physical address of the hostinterface.Once the PSN and the host have sent each other the above messages,regular communications can commence. See 1822(3.2) for further detailsconcerning the ready line, host tardiness, and other issues.3.4 Name ServerThere may be times when a host wants to perform its own translations, ormight need the full list of physical addresses to which a particularname maps. For example, a connection- based host-to-host protocol mayrequire that the same physical host port on a multi-homed host be usedfor all messages using that host-to-host connection, and the host doesnot wish to trust the PSN to always deliver messages using a destinationname to the same host port.In these cases, the host can submit a type 11 (Name Server Request)message to the PSN, which requests the PSN to translate the destinationname and return a list of the addresses to which it maps. The PSN willrespond with a type 11 (Name Server Reply) message, which contains theselection policy in use for that name, the number of addresses to whichthe name maps, the addresses themselves, and for each address, whetherit is effective and its routing distance (for the particular type-of-service specified in the Name Server Request message) from the PSN. Seesection 5.2 for a complete description of these messages' contents.Using this information, the source host could make an informed decisionon which of the physical host ports corresponding to a logical name touse and then send the messages to that port, rather than to the name.The PSN also supports a different type of name service. A host needs toissue a Name Declaration Message to the PSN in order to change itseffective names, but it may not wish to keep its names in some table orfile in the host. In this case, it can ask the PSN to tell it whichnames it is authorized to use.In this case, the host submits a type 12 (Port List Request) message tothe PSN, and the PSN replies with a type 12 (Port List Reply) message.It contains, for the host port over which the PSN received the requestand sent the reply, the number of names that map to the port, the listof names, and whether or not each name is effective. The host can thenuse this information in order to issue the Name Declaration Message.Section 5.2 contains a complete description of the reply's contents.Khanna & Malis [Page 19]RFC 1005 May 19874 OTHER CHANGESThis section describes the enhancements to the AHIP protocol involvingtype-of-service specification, subnet congestion feedback and networkprecedence level feedback. Note that only version 2 hosts will receivethe congestion and precedence messages described in this section.4.1 Type-of-Service SpecificationBits 9 and 10 of the AHIP leader, currently unused, will be used by thehost to specify desired delay and throughput characteristics to the PSN.Bit 11, also currently unused, will be used to specify reliability. Thebits have the following meaning:Bit 9: delay bit 0 -- normal delay 1 -- low delayBit 10: throughput bit 0 -- normal throughput 1 -- high throughputBit 11: reliability bit 0 -- normal reliability 1 -- high reliabilityThe values of these bits are consistent with those of IP, and bits 11,12 and 13 of the IP header can be copied directly into bits 9, 10 and 11of the AHIP leader.The type-of-service bits should be considered as extensions of the"Handling Type" field (bits 33-40 of the AHIP leader -- see 1822 (3.3)).Messages from host A to host B using the same destination name and ofthe same handling type and type-of- service will use the sameconnection, while those that differ in either type-of-service,destination name or handling type will use separate connections. Inother words, for a given source host and destination name pair, a newconnection will be established whenever a message with a new handling-type/type-of- service combination is received.Khanna & Malis [Page 20]RFC 1005 May 19874.2 Subnet Congestion FeedbackThis section describes the new messages that are part of the mechanismused by the PSN to communicate subnetwork congestion information to thehost. Note that a host will be blocked by the PSN when its share ofbuffers in the PSN is used up. Thus, this information, which iscommunicated on a connection basis, will give the host an opportunity toselectively reduce its congesting flows, thus preventing all of itsflows from getting blocked. Currently, a host has no way of knowingwhich of its flows is experiencing congestion; consequently, it ispossible that one congesting flow can result in the blocking of all thehost's flows.Three new PSN-to-host messages have been created. These messages are: 1. STOP: Blocking Imminent -- Stop Sending on this Connection (Message type 13) 2. SLOW: Subnet Congestion -- Send at Slow Rate on this Connection (Message type 14) -- Maintain Window Size of 1, i.e., do not send a new message to this destination host with this type-of-service and handling type until all previous messages have been acknowledged by RFNMs. 3. GO: Congestion Subsided -- Send at Regular Rate on this Connection (Message type 16) -- Maintain Window Size of 8These messages may be sent in any order and correspond to states, nottransitions. A participating host should support three states witheffective windows of 8, 1 and 0. The format of these messages can befound in section 5.2.4.3 Precedence Level InformationTwo new messages have been created: 1. Network Not Accepting Messages at this Precedence Level (Message type 9, subtype 7). 2. Network Precedence Level Cutoff Change (Message type 17).The first message will be generated whenever the host attempts to send amessage at a precedence level lower than the cutoff. The cutoffrepresents a precedence level below which no traffic may be submittedKhanna & Malis [Page 21]RFC 1005 May 1987into the subnetwork; note that a cutoff set to the lowest possibleprecedence level implies that no precedence restrictions are in effect.If the host has chosen not to receive the new AHIP-E messages, then thePSN will send a type 7, sub-type 3 message (communication with thedestination host is administratively prohibited) instead. The secondmessage will be generated whenever the network precedence level cutoffchanges. Both messages contain the network precedence cutoff value.The format of these messages can be found in section 5.2.Khanna & Malis [Page 22]RFC 1005 May 19875 FORMATS FOR NEW AHIP-E MESSAGESThe following sections describe the formats of the leaders that precedemessages between an AHIP-E host and its PSN. The formats are almostidentical to those of AHIP (see 1822(3.3) and 1822(3.4)). New messagetypes are marked by margin bars (as shown | here).5.1 Host-to-PSN AHIP-E Leader Format 1 4 5 8 13 16 17 20 21 22 24 25 32+---------+--------+-+-+-+-+------+--------+-+------+----------------+| | FORMAT |D|T|R|U| | |T|LEADER| || UNUSED | FLAG |E|H|E|N| VERS | UNUSED |R|FLAGS | MESSAGE TYPE || | (15) |L|R|L|U| | |C| | |+---------+--------+-+-+-+-+------+--------+-+------+----------------+ 33 40 41 64+----------------------+----------------------------------------------+| | || HANDLING TYPE | DESTINATION HOST || | |+----------------------+----------------------------------------------+ 65 76 77 80 81 96+-------------------------+--------+----------------------------------+| | | || MESSAGE ID |SUB-TYPE| UNUSED || | | |+-------------------------+--------+----------------------------------+ Host-to-PSN AHIP-E Leader Format Figure 5.1Bits 1-4: Unused, must be set to zero.Bits 5-8: Format Flag This field is set to decimal 15 (1111 in binary).Bits 9-11: Type-of-Service Bit 9: Delay Bit: 0 -- normal delay 1 -- low delay Bit 10: Throughput Bit: 0 -- normal throughput 1 -- high throughput Bit 11: Reliability Bit:Khanna & Malis [Page 23]RFC 1005 May 1987 0 -- normal reliability 1 -- high reliabilityBit 12: Unused, must be set to zero.Bits 13-16: AHIP-E Version number Ignored by the PSN except in the case of a NOP -- see chapter 6.Bits 17-20: Unused, must be set to zero.Bit 21: Trace Bit: If equal to one, this message is designated for tracing as it proceeds through the network. See 1822(5.5).Bits 22-24: Leader Flags: Bit 22: A flag available for use by the destination host. See AHIP(3.3) for a description of its use by the PSN's TTY Fake Host. Bits 23-24: Reserved for future use, must be zero.Bits 25-32: Message Type: Type 0: Regular Message - All host-to-host communication occurs via regular messages, which have several sub- types, found in bits 77-80. These sub-types are: 0: Standard - The PSN uses its full message and error control facilities, and host blocking may occur. 3: Uncontrolled Packet - The PSN will perform no message-control functions for this type of message, and network flow and congestion control may cause loss of the packet. Also see 1822(3.6). 1-2,4-15: Unassigned. Type 1: Error Without Message ID - See 1822(3.3). Type 2: Host Going Down - see 1822(3.3). Type 3: Name Declaration Message (NDM) - This message is | used by the host to declare which of its logical names | is or is not effective (see section 3.2.1), or to make | all of its names non-effective. The first 16 bits of | the data portion of the NDM message, following the | leader and any leader padding, contains the number of | logical names contained in the message. This is | followed by the logical name entries, each 32 bits |Khanna & Malis [Page 24]RFC 1005 May 1987 long, of which the first 16 bits is a logical name and | the second 16 bits contains either of the integers | zero or one. Zero indicates that the name should not | be effective, and one indicates that the name should be | effective. Note that only the names explicitly in the | NDM will remain enabled after the NDM is processed | (assuming that they are authorized). The PSN will | reply with a NDM Reply message (see section 5.2) | indicating which of the names are now effective and | which are not. Pictorially, a NDM message has the | following format including the leader, which is printed | in hexadecimal, and without any leader padding): | 1 16 17 32 33 48 +----------------+----------------+----------------+ | | | | | 0F00 | 0003 | 0000 | | | | | +----------------+----------------+----------------+ 49 64 65 80 81 96 +----------------+----------------+----------------+ | | | | | 0000 | 0000 | 0000 | | | | | +----------------+----------------+----------------+ 97 112 113 128 129 144 +----------------+----------------+----------------+ | | | | | # of entries | name #1 | 0 or 1 | | | | | +----------------+----------------+----------------+ 145 160 161 176 +----------------+----------------+ | | | | name #2 | 0 or 1 | etc. | | | +----------------+----------------+ NDM Message Format Figure 5.2Khanna & Malis [Page 25]RFC 1005 May 1987 An NDM with zero entries will cause all current effective names for the host to become non-effective. Type 4: NOP -- see 1822(3.3). Bits 13-16 of the NOP leader | are used to determine the host's AHIP-E version -- see | chapter 6. | Type 8: Error with Message ID - see 1822(3.3). Type 11: Name Server Request - This allows the host to use | the PSN's logical addressing tables as a name server. | The destination name in the AHIP-E leader is | translated, and the PSN replies with a Name Server | Reply message, which lists the physical host addresses | to which the destination name maps. The type-of- | service bits (bits 9-11) should be set correctly by | the host, as the Name Server Reply message contains | information about characteristics of the subnetwork | route(s) to that destination, which will depend on the | type-of-service. | Type 12: Port List Request - This allows the physical host | to request the list of names that map to the host port | over which this request was received by the PSN. The | PSN replies with a Port List Reply message, which | lists the names that map to the port. | Types 5-7,9-10,13-255: Unassigned. Bits 33-40: Handling Type: The top two bits (33 and 34) specify the precedence of the connection. There are 4 precedence levels, level 3 being the highest and level 0 the lowest. Bits 35-40 are used to specify up to 64 separate connections at a particular precedence level and type-of-service. Bits 41-64: Destination Host: This field contains the name or address of the destination host, as described in figures 3.3 and 3.2 respectively. If it contains a name, the name will be checked for effectiveness, with an error message returned to the source host if the name is not effective. Bits 65-76: Message ID: This is a host-specified identification used in all type 0 and type 8 messages, and is also used in type 2 messages. When used in type 0 messages, bits 65-72 are also known as the Link Field, and should contain values specified inKhanna & Malis [Page 26]RFC 1005 May 1987 Assigned Numbers [3] appropriate for the host-to-host protocol being used. Bits 77-80: Sub-type: This field is used as a modifier by message types 0, 2, 4, and 8. Bits 81-96: Unused5.2 PSN-to-Host AHIP-E Leader Format 1 4 5 8 12 16 17 20 21 22 24 25 32+--------+--------+-+-+-+--------+--------+-+------+----------------+| | FORMAT |D|T|R| | |T|LEADER| || UNUSED | FLAG |E|H|E| UNUSED | UNUSED |R|FLAGS | MESSAGE TYPE || | (15) |L|R|L| | |C| | |+--------+--------+-+-+-+--------+--------+-+------+----------------+ 33 40 41 64+----------------------+----------------------------------------------+| | || HANDLING TYPE | SOURCE HOST || | |+----------------------+----------------------------------------------+ 65 76 77 80 81 96+-------------------------+--------+----------------------------------+| | | || MESSAGE ID |SUB-TYPE| MESSAGE LENGTH || | | |+-------------------------+--------+----------------------------------+ PSN-to-Host AHIP-E Leader Format Figure 5.3Bits 1-4: Unused and set to zero.Bits 5-8: Format Flag This field is set to decimal 15 (1111 in binary).Bits 9-11: Type-of-Service Specified by the source host (see section 5.1).Bits 12-20: Unused, must be set to zero.Bit 21: Trace Bit:Khanna & Malis [Page 27]RFC 1005 May 1987 If equal to one, the source host has designated this message for tracing as it proceeds through the network. See 1822(5.5).Bits 22-24: Leader Flags: Bit 22: Available as a destination host flag. Bits 23-24: Reserved for future use, set to zero.Bits 25-32: Message Type: Type 0: Regular Message - All host-to-host communication occurs via regular messages, which have several sub- types. The sub-type field (bits 77-80) is the same as that sent in the host-to-PSN leader (see section 5.1). Type 1: Error in Leader - See 1822(3.4). Type 2: PSN Going Down - See 1822(3.4). Type 3: NDM Reply - This is a reply to the NDM host-to-PSN | message (see section 5.1). It has the same number of | entries as the NDM message to which it replies, and | each listed name is accompanied by a zero or a one | (see figure 5.2). A zero signifies that the name is | not effective, and a one means that the name is now | effective. | Type 4: NOP - The host should discard this message. It is used during initialization of the PSN/host communication. The Destination Host field will contain the physical address of the host port over which the NOP is being sent. All other fields are unused. Type 5: Ready for Next Message (RFNM) - See 1822(3.4). Type 6: Dead Host Status - See 1822(3.4). Type 7: Destination Host or PSN Dead (or unknown) - See 1822(3.4). Type 8: Error in Data - See 1822(3.4). Type 9: Incomplete Transmission - See 1822(3.4). In addition to its already defined sub-types, this message has two new sub-types: 6: Logically Addressed Host Went Down - A logically |Khanna & Malis [Page 28]RFC 1005 May 1987 addressed message was lost in the network because | the destination host to which it was being | delivered went down. The message should be | resubmitted by the source host, since there may | be another effective host port to which the | message could be delivered (see section 2.2.3). | 7: Network Not Accepting Messages at this Precedence | Level - bits 33 and 34 encode the minimum | precedence level currently being accepted by the | network. See section 4.3. Type 10: Interface Reset - See 1822(3.4). Type 11: Name Server Reply - This reply to the Name Server | Request host-to-PSN message contains, following the | leader and any leader padding, a word with the | selection policy and the number of physical addresses | to which the destination name maps, followed by five | octets per physical address: the first three octets | contain an AHIP-E address, and the last two contain a | bit signifying whether or not that particular | translation is effective and the routing distance | (expected network transmission delay, in 6.4 ms units) | to the address's PSN for the type-of-service specified | in the Name Server Request being replied to. This | type-of-service will be included in the Name Server | Reply leader. In figure 5.4, which includes the | leader without any leader padding and has type-of | -service set to 000, EFF is 1 for effective and 0 | for non-effective, the destination name is in the format | of figure 3.3, and POL is a two-bit number indicating | the selection policy for the name (see section 3.2.2): | 0: First reachable. 1: Closest physical address. | 2: Load leveling. | 3: Unused.Khanna & Malis [Page 29]RFC 1005 May 1987 1 16 17 32 33 40 +----------------+----------------+--------+ | | | | | 0F00 | 000B | 00 | | | | | +----------------+----------------+--------+ 41 64 65 80 +------------------------+-----------------+ | | | | Destination name | 0000 | | | | +------------------------+-----------------+ 81 96 97 112 +----------------+-+--------------+ | |P| | | 0000 |O| # of addrs | | |L| | +----------------+-+--------------+ 113 136 137 152 +--------------------------+-+-------------+ | |E| | | AHIP-E addr #1 |F| routing dist| | |F| | +--------------------------+-+-------------+ 153 176 177 192 +--------------------------+-+-------------+ | |E| | | AHIP-E addr #2 |F| routing dist| etc. | |F| | +--------------------------+-+-------------+ Name Server Reply Format Figure 5.4 Type 12: Port List Reply - This is the reply to the Port | List Request host-to-PSN message. It contains the | number of names that map to this physical host port, | followed by two words per name: the first word | contains a logical name that maps to this port, and | the second contains either a zero or a one, | signifying whether or not that particular translation | is effective. The format is identical to the type 3 | NDM Reply message(see figure 5.2). | Type 13: STOP -- Stop Sending on this Connection. See |Khanna & Malis [Page 30]RFC 1005 May 1987 section 4.2. | Type 14: SLOW -- maintain window size of 1 on this | connection. See section 4.2. | Type 15: Name or Address Error - This message is sent in | response to a type 0 message from a host that | contained an erroneous Destination Host field. Its | sub-types are: | 2: The Destination Host name is not authorized. | 3: The physical host to which this singly-homed | Destination Host name translated is authorized | and up, but not effective. If the host was | actually down, a type 7 message would be | returned, not a type 15. | 5: The multi-homed Destination Host name is | authorized but has no available effective | translations. | 6: A logically-addressed uncontrolled packet was sent | to a dead or non-effective host port. However, | if it is resubmitted, there may be another | effective host port to which the PSN may be able | to attempt to send the packet. | 7: Logical addressing is not in use. | The PSN has no table of mappings from logical | addresses to physical host ports. | 0, 1, 4, 8-15: Unassigned | Type 16: GO -- maintain window size of 8 on this | connection. See section 4.2. | Type 17: Network Precedence Level Cutoff Change -- bits 33 | and 34 encode the minimum precedence level currently | being accepted by the network. See section 4.3. Types 18-255: Unassigned.Bits 33-40: Handling Type: This has the value assigned by the source host (see 1822(3.1)). This field is only used in message types 0, 5- 9, and 13-16.Bits 41-64: Source Host: See 1882(3.4). For type 0 messages this contains the physical address of the source host, in the format detailed in figure 3.2. For type 4 messages, this contains the physical address of the local host. For messages of type 5-9, 11 and 13-16 which are responses to messages from theKhanna & Malis [Page 31]RFC 1005 May 1987 local host, this contains the destination name as specified in the message from the local host.Bits 65-76: Message ID: For message types 0, 5, 7-9, and 15, this is the value assigned by the source host to identify the message (see section 5.1). This field is also used by message types 2 and 6.Bits 77-80: Sub-type: This field is used as a modifier by message types 0-2, 5-7, 9, and 15.Bits 81-96: Message Length: This field is contained in type 0 messages only, and is the actual length in bits of the message (exclusive of leader, leader padding, and hardware padding) as computed by the PSN.Khanna & Malis [Page 32]RFC 1005 May 19876 AHIP-E VERSIONSThis specification provides three versions of AHIP-E and allows a hostto specify its version in bits 13-16 of the leader of the NOP. The PSNwill set the version of a host based on the value contained in the mostrecent NOP that it has received from the host. Thus, a host can changethe PSN's idea of its version by issuing a NOP containing a differentversion value. Note that the version field in all other host-to-PSNmessages will be ignored by the PSN.Version 0:A host that doesn't change its current AHIP implementation willpresumably have the version bits in the AHIP leader set to zero.Version 0, thus, is nothing but current AHIP.A version 0 host will not receive any of the new AHIP-E messages fromthe PSN, nor will the PSN expect any of the new host-to-PSN messagetypes from the host. The type-of-service bits will always be set tozero in the PSN-to-host leader.Version 1:A version 1 host will be able to use logical names to address otherhosts, will be able to use the 10-bit PSN field, will be able to specifydesired type-of-service to the PSN, but will not receive any of the newAHIP-E messages from the PSN. The PSN will not expect any of the newhost-to-PSN message types from the host either.To implement version 1, a host need only make the following changes toits AHIP implementation: 1. Set the version number field to 1 when sending type 4 messages (NOPs). 2. When sending type 0 messages, copy IP address bits 8-31 into bits 41-64 of the AHIP leader. 3. When sending type 0 messages, copy IP header bits 11-13 to AHIP leader bits 9-11.Version 2:A version 2 host is one that is fully compliant with the AHIP-E protocolas described in this document. In addition to being able to takeadvantage of the features described under version 1 above, it should beable to send and receive all the new AHIP-E messages described in thisdocument.Khanna & Malis [Page 33]RFC 1005 May 19877 REFERENCES [1] "Specifications for the Interconnection of a Host and an PSN", BBN Report 1822, as found in "DDN Protocol Handbook", December 1985, vol. 3, section 3.10. [2] E. C. Rosen et. al., "ARPANET Routing Algorithm Improvements", Internet Experimenter's Note 183 (also published as BBN Report 4473, Vol. 1), August 1980, pp. 55- 107. [3] J. Reynolds and J. Postel, "Assigned Numbers", Request For Comments 990, November 1986. [4] J. Postel, ed., "Internet Protocol -- DARPA Internet Program Protocol Specification", Request for Comments 791, September 1981. [5] J. Postel, "Address Mappings", Request for Comments 796, September 1981, as found in "DDN Protocol Handbook", vol. 3, section 3.4. [6] "Defense Data Network X.25 Host Interface Specification", pp. 497-498, DDN protocol handbook, vol. 1, December 1985.Khanna & Malis [Page 34]