Skip to main content

5. Gateway Software

The DARPA Internet Gateway runs under the MOS operating system [9] which provides facilities for:

  • Multiple processes
  • Interprocess communication
  • Buffer management
  • Asynchronous input/output
  • Shareable real-time clock

There is a MOS process for each network that the gateway is directly connected to. A data structure called a NETBLOCK contains variables of interest for each network and pointers to local network routines. Network processes run common gateway code while network-specific functions are dispatched to the routines pointed to in the NETBLOCK. There are also processes for gateway functions which require their own timing, such as GGP and HMP.

5.1 Software Structure​

The gateway software can be divided conceptually into three parts: MOS Device Drivers, Network software, and Shared Gateway software.

5.1.1 Device Drivers​

The gateway has a set of routines to handle sending and receiving data for each type of hardware interface. There are routines for initialization, initiation, and interruption for both the transmit and receive sides of a device. The gateway supports the following types of devices:

a)  ACC LSI-11 1822
b) DEC IMP11a 1822
c) ACC LHDH 1822
d) ACC VDH11E
e) ACC VDH11C
f) Proteon Ring Network
g) RSRE HDLC
h) Interlan Ethernet
i) BBN Fibernet
j) ACC XQ/CP X.25 **
k) ACC XQ/CP HDH **

** Planned, not yet supported.

5.1.2 Network Software​

For each connected network, the gateway has a set of eight routines which handle local network functions. The network routines and their functions are described briefly below.

Up.net    Perform local network initialization such as
flapping the 1822 ready line.

Sg.net Handle specific local network timing functions
such as timing out 1822 Destination Deads.

Rc.net A message has been received from the network
interface. Check for any input errors.

Wc.net A message has been transmitted to the network
interface. Check for any output errors.

Rs.net Set up a buffer (or buffers) to receive messages
on the network interface.

Ws.net Transmit a message to the network interface.

Hc.net Check the local network header of the received
message. Perform any local network protocol
tasks.

Hb.net Rebuild the local network header.

There are network routines for the following types of networks:

o  Arpanet (a,b,c,k)
o Satnet (d,e,k)
o Proteon Ring Network (f)
o Packet Radio Network (a,b,c)
o Rsre HDLC Null Network (g)
o Ethernet (h)
o Fibernet (i)
o Telenet X.25 (j) **

** Planned, not yet supported.

Note: The letters in parentheses refer to the device drivers used for each type of network as described in the previous section.

5.1.3 Shared Gateway Software​

The internet processing of a datagram is performed by a body of code which is shared by the network processes. This code includes routines to check the IP header, perform IP fragmentation, calculate the IP checksum, forward a datagram, and implement the routing, monitoring, and error reporting protocols.

5.2 Gateway Processes​

5.2.1 Network Processes​

When the gateway starts up, each network process calls its local network initialization routine and read start routine. The read start routine sets up two maximum network size buffers for receiving datagrams. The network process then waits for an input complete signal from the network device driver.

When a message has been received, the MOS Operating System signals the appropriate network process with an input complete signal. The network process wakes up and executes the net read complete routine. After the message has been processed, the network process waits for more input.

The net read complete routine is the major message processing loop in the gateway. The following actions are performed when a message has been received:

  • Call Local Network Read Complete Routine
  • Start more reads
  • Check local Network Header
  • Check Internet header
  • Check if datagram is for the gateway
  • Forward the datagram if necessary
  • Send ICMP error message if necessary.

5.2.2 GGP Process​

The GGP process periodically sends GGP echos to each of the gateway's neighbors to determine neighbor connectivity, and sends interface status messages addressed to itself to determine network connectivity. The GGP process also sends out routing updates when necessary. The details of the algorithms currently implemented by the GGP process are given in Section 4.4, Gateway-to-Gateway Protocol, and in Appendix C.

5.2.3 HMP Process​

The HMP process handles timer-based gateway statistics collection and the periodic transmission of traps.