A Family of ICPs
Briefly, a server process at a site attaches a well-advertised send socket L and listens. A user process initiates connection to L from its receive socket U. The byte size for this connection is 32. The server process then transmits a 32-bit even number S and closes the connection. The 32-bit number S and its successor, S+1, are the socket number the server will use. The final steps are for sockets S and S+1 at the server site to be connected to sockets U+1 and U respectively at the user site.
Using the notation, the server executes the following sequence:
Listen (socket = L, size = 32)
[Wait until a user connects]
Send (socket = L, data = S)
Close (socket = L)
Init (local = S, foreign = U+1, size = Bu)
Init (local = S+1, foreign = U, size = Bs)
The user executes the following:
Init (local = U, foreign = L, size = 32)
Receive (socket = U, data = S)
Close (socket = U)
Init (local = U+1, foreign = S, size = Bu)
Init (local = U, foreign = S+1, size = Bs)
Note that L is a send socket (odd), while S and U are receive sockets (even). Where L, S or U are used as values of local, they are 32-bit numbers; where they are values of foreign, they are 40-bit numbers. The parameters Bs and Bu are the byte sizes to be sent by the server and user, respectively.
Examination of the above sequences reveals that an ICP is characterized by the three numbers L, Bs and Bu, and must meet the restrictions that
- (a) L is a send socket,
- (b) Bs and Bu are legal byte sizes, and
- (c) for each L there is only on pair of associated byte sizes.
This last restriction prevents two distinct services from being available through the same socket and distinguished only by the byte sizes.