Skip to main content

3. Implementation Issues

The manner in which the eight-bit "hop count" or distance field in the EGP Update to be used is not specified in RFC-904, but left as a matter for further study. The above model provides both an interpretation of this field, as well as hints on how to design appropriate routing algorithms.

For the sake of illustration, assume the values of X and Y above are 128 and 192 respectively. This means that the gateways in a particular system will assign distance values less than 128 for directly-reachable nets and that exterior gateways can compare these values freely in order to select among these gateways. It also means that the gateways in all systems of a particular confederation will assign distance values between 128 and 192 for those nets not directly reachable in the system but reachable in the confederation. In the following it will be assumed that the various confederations can be distinguished by some feature of the 16-bit system-number field, perhaps by reserving a subfield.

3.1. Data-Base Management Functions​

The following implementation model may clarify the above issues, as well as present at least one way to organize the gateway data base. The data base is organized as a routing table, the entries of which include a net number together with a list of items, where each item consists of (a) the gateway address, system number and distance provided by an EGP neighbor, (b) a time-to-live counter, local routing information and other information as necessary to manage the data base.

The routing table is updated each time an EGP Update message is received from a neighbor and possibly by other means, such as the system IGP. The message is first decoded into a list of quads consisting of a network number, gateway address, system number and distance. If the gateway address is internal to the neighbor system, as determined from the EGP message, the system number of the quad is set to that system; while, if not, the system number is set to zero, indicating "external."

Next, a new value of distance is computed from the old value provided in the message and subject to the following constraints: If the system number matches the local system number, the new value is determined by the rules for the system IGP but must be less than 128. If not and either the system number belongs to the same confederation or the system number is zero and the old distance is less than 192, the value is determined by the rules for the confederation EGP, but must be at least 128 and less than 192. Otherwise, the value is determined by the rules for the (global) universe-of-federations EGP, but must be at least 192.

For each quad in the list the routing table is first searched for matching net number and a new entry made if not already there. Next, the list of items for that net number is searched for matching gateway address and system number and a new entry made if not already there. Finally, the distance field is recomputed, the time-to-live field reset and local routing information inserted.

The time-to-live fields of all items in each list are incremented on a regular basis. If a field exceeds a preset maximum, the item is discarded; while, if all items on a list are discarded, the entire entry including net number is discarded.

When a gateway sends an EGP Update message to a neighbor, it must invert the data base in order by gateway address, rather than net number. As part of this process the routing table is scanned and the gateway with minimum distance selected for each net number. The resulting list is sorted by gateway address and partitioned on the basis of internal/external system number.

3.2. Routing Functions​

A gateway encountering a datagram (service unit) searches the routing table for matching destination net number and then selects the gateway on that list with minimum distance. As the result of the value assignments above, it should be clear that routes at a higher level will never be chosen if routes at a lower level exist. It should also be clear that route selection within a system cannot affect route selection outside that system, except through the intervention of the intra-confederation routing algorithm. If a simple min-system-hop algorithm is used for the confederation EGP, the IGP of each system can influence it only to the extent of reachability.

3.3. Compatibility Issues​

The proposed interpretation is backwards-compatibile with known EGP implementations which do not interpret the distance field and with several known EGP implementations that take private liberties with this field. Perhaps the simplest way to evolve the present system is to collect the existing implementations that do not interpet the distance field at all as a single confederation with the present core system and routing restrictions. All distances provided by this confederation would be assumed equal to 192, which would provide at least a rudimentary capability for routing within the universe of confederations.

One or more existing or proposed systems in which the distance field has a uniform interpretation throughout the system can be organized as autonomous confederations. This might include the Butterfly gateways now now being deployed, as well as clones elsewhere. These systems provide the capability to select routes into the system based on the distance fields for the different gateways. It is anticipated that the distance fields for the Butterfly system can be set to at least 128 if the routing information comes from another Butterfly system and to at least 192 if from a non-Butterfly system presumed outside the confederation.

New systems using an implmentation model such as suggested above can select routes into a confederation based on the distance field. For this to work properly, however, it is necessary that all systems and confederations adopt a consistent interpretation of distance values exceeding 192.