Skip to main content

Further Clarification of the Protocol

There are a number of points concerning the protocol that should be noted.

  1. The data generator (TIP) can send different (i.e. updated versions) data to different data collectors (accounting servers) as part of the same logical transmission sequence. This is possible because the TIP does not account for the data sent until it receives the acknowledgement of the data echo. This strategy relieves the TIP of any buffering in conjunction with re-transmission of data which hasn't been acknowledged.

  2. A new data request to an accounting server from a TIP will also serve as a negative acknowledgement concerning any data already buffered by the ACTSER for that TIP, but not yet acknowledged. The old data will be discarded, and the new data will be buffered and echoed as an acknowledgement. This allows the TIP the option of not sending a negative acknowledgement when it is not convenient to do so, without having to remember that it must be sent at a later time. There is one exception to this convention. If the new data message has the same sequence number as the old buffered message, then the new data must be discarded, and the old data kept and re-echoed. This is to prevent a slow acknowledgement to the old data from being accepted by the TIP, after the TIP has already sent the new data to the slow host. This caveat can be avoided if the TIP does not resend to a non-responding server within the time period that a message could possibly be stuck in the network, but could still be delivered. Ignoring this situation may result in some accounting data being counted twice. Because of the rule to keep old data when confronted with matching sequence numbers, on restarting after a crash, the TIP should send a "discard" message to all servers in order to clear any data which has been buffered for it prior to the crash. An alternative to this would be for the TIP to initialize its sequence number from a varying source such as time of day.

  3. The accounting server similarly need not acknowledge receipt of data (by echoing) if it finds itself otherwise occupied. This will mean that the ACTSER is not buffering the data, and hence is not a candidate for entering the data into the file. However, the TIP may try this ACTSER at a later time (even with the same data), with no ill effects.

  4. Because of 2 and 3 above, the protocol is robust with respect to lost or garbled transmissions of TIP data requests and accounting server echo replies. That is, in the event of loss of such a message, a re-transmission will occur as the normal procedure.

  5. There is no synchronization problem with respect to the sequence number used for duplicate detection, since this number is maintained only at the TIP site. The accounting server merely echoes the sequence number it has received as part of the data.

  6. There are, however, some constraints on the size of the sequence number field. It must be large enough so that ALL traces of the previous use of a given sequence number are totally reMoved from the network before the number is re-used by the TIP. The sequence number is modulo the size of the largest number represented by the number of bits allocated, and is cyclic. Problems generally arise when a host proceeds from a service interruption while it was holding on to a reply. If during the service interruption, we have cycled through our sequence numbers exactly N times (where N is any integer), this VERY tardy reply could be mistaken for a reply to the new data, which has the same sequence number (i.e. N revolutions of sequence numbers later). By utilizing a sufficiently large sequence number field (16 bits), and by allowing sufficient time between instances of sending new data, we can effectively reduce the probability of such an error to zero.

  7. Since the data involved in this problem is the source of accounting information, care must be taken to avoid duplicate entries. This must be done at the expense of potentially losing data in certain instances. Other than the obvious TIP malfunction, there are two known ways of losing data. One is the situation where no accounting server responds to a TIP for an extended period of time causing the TIP counters to overflow (highly unlikely if there are sufficient Accounting Servers). In this case, the TIP can hold the counters at their maximum value until a server comes up, thereby keeping the lost accounting data at its minimum. The other situation results from adapting the protocol to our insistence on no duplicate data in the incremental files. We are vulnerable to data loss with no recourse from the time the server receives the "go ahead" to update the file with the buffered data (i.e. positive acknowledgement) until the time the update is completed and the file is closed. An accounting server crash during this period will cause that accounting data to be lost. In our initial implementation, we have slightly extended this period of vulnerability in order to save the TIP from having to buffer the acknowledged data for a short period of time. By updating TIP counters from the returned data in parallel with sending the "go ahead" acknowledgement, we relieve the TIP of the burden of buffering this data until the Request for Next Message (RFNM) from the accounting server IMP is received. This adds slightly to our period of vulnerability to malfunction, moving the beginning of the period from the point when the ACTSER host receives the "go ahead", back to the point when the TIP sends off the "go ahead" (i.e. a period of one network transit time plus some IMP processing time). However, loss of data in this period is detectable through the Host Dead or Incomplete Transmission return in place of the RFNM. We intend to record such occurrences with the Network Control Center. If this data loss becomes intolerable, the TIP program will be modified to await the RFNM for the positive acknowledgement before updating its counters. In such a case, if the RFNM does not come, the TIP can discard the buffered data and re-transmit new data to other servers.

  8. There is adequate protection against the entry of forged data into the intermediate accounting files. This is primarily due to the system enforced limited access to Host-Imp messages and Host-Host links. In addition, messages received on such designated limited access links can be easily verified as coming from a TIP. The IMP subnet appends the signature (address) of the sending host to all of its messages, so there can be no forging. The Accounting Server is in a position to check if the source of the message is in fact a TIP data generator.