An Example
To illustrate the source of my concern, let me briefly describe the user software interface to the network in the PDP-10 NCP implementation currently in use at HARV-10, CMU-10A, and CMU-108. I will then show why the fixed socket number requirements of the two protocols I mentioned above present implementation difficulties, especially at the server end.
Opening a connection at one of these hosts causes the creation of a "device" (in approximately the same manner as, say, mounting a disk pack). As such, an open connection is subject to any one of a number of operations on devices in 10/50, including assignment of logical names, opening for data transfer, and reassignment to another job.
The NCP allows a (non-privileged) user program to specify the low-order 8 bits of the socket number of any connection which it opens, and to specify that the other 24 bits be assigned in one of three ways:
- As a function of the job number, making a "job-relative" socket.
- As a function of the user identification, making a "user-relative" socket.
- As a "guaranteed unique" number, i.e. one assigned by the NCP such that no other socket number in use has the same high-order 24 bits.
A program may also specify all 32 bits of a local socket number provided the high-order 24 bits are the same as the corresponding bits in some other socket already owned by the same job.
The NCP will, of course, allow assignment of a socket generated in any of the above ways only if it is not already in use by the same or any other job.