Skip to main content

11. Transition

The transition scheme for Pip has two major components, 1) translation, and 2) encapsulation. Translation is required to map the Pip Address into the IP address and vice versa. Encapsulation is used for one Pip router (or host) to exchange packets with another Pip router (or host) by tunneling through intermediate IP routers. The Pip transition scheme is basically a set of techniques that allows existing IP "stuff" and Pip to coexist, but within the limitations of IP address depletion (though not within the limitations of IP scaling problems). By this I mean that an IP-only host can only exchange packets with other hosts in a domain where IP numbers are unique. Initially this domain includes all IP hosts, but eventually will include only hosts within a private domain. The IP "stuff" that can exist includes 1) whole IP domains, 2) individual IP hosts, 3) IP-oriented TCPs, and 4) IP-oriented applications.

11.1. Justification for Pip Transition Scheme​

Note that all transition to a bigger address require translation. It cannot be avoided. The major choices one must make when deciding on a translation scheme are:

  1. Will we require a contiguous infrastructure consisting of the new protocol, or will we allow tunneling through whatever remains of the existing IP infrastructure at any point in time?
  2. Will we allow global connectivity between IP machines after IP addresses are no longer globally unique, or not? (In other words, will we use a NAT scheme or not? [15])

Concerning question number 1; while it is desirable to move as quickly as possible to a contiguous Pip (or SIP or whatever) infrastructure, especially for purposes of improved scaling, it is fantasy to think that the whole infrastructure will cut over to Pip quickly. Furthermore, during the testing stages of Pip, it is highly desirable to be able to install Pip in any box anywhere, and by tunneling through IP, create a virtual Pip internet. Thus, it seems that the only reasonable answer to question number 1 is to allow tunneling. Concerning question number 2; it is highly desirable to avoid using a NAT scheme. A NAT (Network Address Translation) scheme is one whereby any two IP hosts can communicate, even though IP addresses are not globally unique. This is done by dynamically mapping non-unique IP addresses into unique ones in order to cross the infrastructure. NAT schemes have the problems of increased complexity to maintain the mappings, and of translating IP addresses that reside within application data structures (such as the PORT command in FTP). This having been said, it is conceivable that the new protocol will not be far enough along when IP addresses are no longer unique, and therefore a NAT scheme becomes necessary. It is possible to employ a NAT scheme at any time in the future without making it part of the intended transition scheme now. Thus, we can plan for a NATless transition now without preventing the potential use of NAT if it becomes necessary.

11.2. Architecture for Pip Transition Scheme​

The architecture for Pip Transition is that of a Pip infrastructure surrounded by IP-only "systems". The IP-only "systems" surrounding Pip can be whole IP domains, individual IP hosts, an old TCP in an otherwise Pip host, or an old application running on top of a Pip-

The Pip infrastructure will initially get its internal connectivity by tunneling through IP. Thus, any Pip box can be installed anywhere, and become part of the Pip infrastructure by configuration over a "virtual" IP. Of course, it is desirable that Pip boxes be directly connected to other Pip boxes, but very early on this is the exception rather than the rule. Two neighbor Pip systems tunneling through IP simply view IP as a "link layer" protocol, and encapsulate Pip over IP just as they would encapsulate Pip over any other link layer protocol. In particular, the hop-count field of Pip is not copied into the Time-to-Live field of IP. There is no automatic configuration of neighbor Pip systems over IP. Manual configuration (and careful "virtual topology" engineering) is required. Note that ICMP messages from a IP router in a tunnel is not translated into a PCMP message and sent on. ICMP messages are sinked at the translating router at the head of the tunnel. The information learned from such ICMP messages, however, may be used to determine unreachability of the other end of the tunnel, and may there result in PCMP message on later packets. In the remainder of this section, we do not distinguish between a virtual Pip infrastructure on IP, and a pure Pip infrastructure. Given the model of a Pip infrastructure surrounded by IP, there are 5 possible packet paths:

  1. IP - IP
  2. IP - Pip - IP
  3. IP - Pip
  4. Pip - IP
  5. Pip - Pip

The first three paths involve packets that originate at IP-only hosts. In order for an IP host to talk to any other host (IP or not), the other host must be addressable within the context of the IP host's 32-bit IP address. Initially, this "IP-unique" domain will include all IP hosts. When IP addresses become no longer unique, the IP-unique domain will include a subset of all hosts. At a minimum, this subset will include those hosts in the IP-host's private domain. However, it makes sense also to arrange for the set of all "public" hosts, basically anonymous ftp servers and mail gateways, to be in this subset. In other words, a portion of IP address space should be

address space are being reused.

11.3. Translation between Pip and IP packets​

Paths 2 and 4 involve translation from Pip to IP. This translation is straightforward, as all the information needed to create the IP addresses is in the Pip header. In particular, Pip IDs have an encoding that allows them to contain an IP address (again, one that is unique within an IP-unique domain). Whenever a packet path involves an IP host on either end, both hosts must have IP addresses. Thus, translating from Pip to IP is just a matter of extracting the IP addresses from the Pip IDs and forming an IP header. Translating from an IP header to a Pip header is more difficult, because the 32-bit IP address must be "translated" into a 64-bit Pip ID and a Pip Address. There is no algorithm for making this translation. A table mapping IP addresses (or, rather, network numbers) to Pip IDs and Pip Addresses is required. Since such a table must potentially map every IP address, we choose to use dynamic discovery and caching to maintain the table. We choose also to use DNS as the means of discovering the mappings. Thus, DNS contains records that map IP address to Pip ID and Pip Address. In the case where the host represented by the DNS record is a Pip host (packet path 3), the Pip ID and Pip Address are those of the host. In the case where the host represented by the DNS record is an IP-only host (packet paths 2 and 4), the Pip Address is that of the Pip/IP translating gateway that is used to reach the IP host. Thus, an IP-only domain must at least be able to return Pip information in its DNS records (or, the parent DNS domain must be able to do it on behalf of the child). With paths 2 and 3 (IP-Pip-IP and IP-Pip), the initial translating gateway (IP to Pip) makes the DNS query. It stores the IP packet while waiting for the answer. The query is an inverse address (in-addr) using the destination IP address. The translating gateway can cache the record for an arbitrarily long period, because if the mapping ever becomes invalid, a PCMP Invalid Address message flushes the cache entry. In the case of path 4 (Pip-IP), however, the Pip Address of the translating gateway is returned directly to the source host--piggybacked on the DNS record that is normally returned. Thus this scheme incurs only a small incremental cost over the normal DNS query.

11.4. Translating between PCMP and ICMP​

The only ICMP/PCMP messages that are translated are the Destination Unreachable, Echo, and PTMU Exceeded messages. The portion of the offending IP/Pip header that is attached to the ICMP/PCMP message is not translated.

11.5. Translating between IP and Pip Routing Information​

It is not necessary to pass IP routing information into the Pip infrastructure. The mapping of IP address to Pip Address in DNS allows Pip to find the appropriate gateway to IP in the context of Pip addresses only. It is impossible to pass Pip routing information into IP routers, since IP routers cannot understand Pip addresses. IP domains must therefore use default routing to reach IP/Pip translators.

11.6. Old TCP and Application Binaries in Pip Hosts​

A Pip host can be expected to have an old TCP above it for a long time to come, and a new (Pip-smart) TCP can be expected to have old application binaries running over it for a long time to come. Thus, we must have some way of insuring that the TCP checksum is correctly calculated in the event that one or both ends is running Pip, and one or both ends has an old TCP binary. In addition, we must arrange to allow applications to interface with TCP using a 32-bit "address" only, even though those 32 bits get locally translated into Pip Addresses and IDs. As stated above, in all cases where a Pip host is talking to an IP-only host, the Pip host has a 32-bit IP address. This address is embedded in the Pip ID such that it can be identified as an IP address from inspection of the Pip ID alone. The TCP pseudo-header is calculated using the Payload Length and Protocol fields, and some or all of the Source and Dest Pip IDs. In the case where both Source and Dest Pip IDs are IP-based, only the 32-bit IP address is included in the pseudo-header checksum calculation. Otherwise, the full 64 bits are used. (Note that using the full Payload Length and Protocol fields does not fail when old TCP binaries are being used, because the values for those fields must be within the 16-bit and 8-bit limits for TCP to correctly operate.) The reason for only using 32 bits of the Pip ID in the case of both ends using an IP address is that an old TCP will use only 32 bits of some number to form the pseudo-header. If the entire 64 bits of the Pip ID were used, then there would be cases where no 32-bit number

all cases. Note that in the case of an old TCP on top of Pip, "Pip" (actually, a Pip daemon) must create a 32-bit number that can both be used to 1) allow the Pip layer to correctly associate a packet from the TCP layer with the right Pip header, and 2) cause the TCP layer to calculate the right checksum. (This number is created when the application initiates a DNS query. A Pip daemon intervenes in this request, calculates a 32 bit number that the application/TCP can use, and informs the Pip layer of the mapping between this 32 bit number and the full Pip header.) When the destination host is an IP only host, then this 32-bit number is nothing more than the IP address. When the destination host is a Pip host, then this 32-bit number is some number generated by Pip to "fool" the old TCP into generating the right checksum. This 32-bit number can normally be the same as the lower 32 bits of the Pip ID. However, it is possible that two or more active TCP connections is established to different hosts whose Pip IDs have the same lower 32 bits. In this case, the Pip layer must generate a different 32-bit number for each connection, but in such a way that the sum of the two 16-bit components of the 32-bit numbers are the same as the sum of the two 16-bit components of the lower 32 bits of the Pip IDs. In the case where an old Application wants to open a socket using an IP address handed to it (by the user or hard-coded), and not using a domain name, then it must be assumed that this IP address is valid within the IP-unique domain. To form a Pip ID out of this 32-bit number, the host appends the high-order 24 bits of its own Pip ID, plus the IP-address-identifier-byte value, to the 32-bit IP address.

11.7. Translating between Pip Capable and non-Pip Capable DNS Servers​

In addition to transitioning "Pip-layer" packets, it is necessary to transition DNS from non-Pip capable to Pip capable. During transition there will be name servers in DNS that only understand IP queries and those that understand both Pip and IP queries. This means there must be a mechanism for Pip resolvers to detect whether a name server is Pip capable, and vice versa. Also, a name server, if it provides recursive service, must be able to translate Pip requests to IP requests. (Pip-capable means a name server understands Pip and existing IP queries. It does not necessarily mean the name server uses the Pip protocol to communicate.) New resource records have been defined to hold Pip identifiers and addresses, and other information [1]. These resource records must be queried using a new opcode in the DNS query packet header. Existing

formats. Name servers that are not Pip-capable will respond with a format error to queries with the new opcode. Thus, a resolver can determine dynamically whether a name server is Pip-capable, by sending it a Pip query and noting the response. This only need be done once, when querying a server for the "first" time, and the outcome can be cached along with the name server's address. Using a new opcode for making Pip queries also helps name servers determine whether a resolver is Pip-capable (it is not always not obvious from the type of query made since many queries are common to to IP and Pip). Determining whether a resolver is Pip-capable is necessary when responding with address information that is not explicitly requested by the query. An important example of this is when a name server makes a referral to another name server in a response: if the request comes from a Pip resolver, name server addresses will be returned as Pip identifier/address resource records, otherwise the addresses will be returned as IP A resource records. Those servers that are Pip-capable and provide recursive service must translate Pip requests to IP requests when querying an IP name server. For most queries, this will just mean modifying the opcode value in the query header to reflect an IP query, rather than a Pip query. (Most queries are identical in IP and Pip.) Other queries, notably the query for Pip identifier/address information, must be translated into its IP counterpart, namely, an IP A query. On receipt of an answer from an IP name server, a Pip name server must translate the query header and question section back to its original, and format the answer appropriately. Again, for most queries, this will be a trivial operation, but responses containing IP addresses, either as a result of an explicit query or as additional information, must be formatted to appear as a valid Pip response. Pip-capable name servers that provide recursive name service should also translate IP address requests into Pip identifier/address requests when querying a Pip-capable name server. (A host's IP address can be deduced from the host's Pip identifier.) This enables a Pip-capable name server to cache all relevant addressing information about a Pip host in the first address query concerning the host. Caching partial information is undesirable since the name server, using the current DNS caching strategy, would return only the cached information on a future Pip request, and IP, rather than Pip, would be used to communicate with the destination host.