The Newcastle Connection was a software subsystem from the early 1980s that could be added to each of a set of interconnected UNIX-like systems to build a distributed system. The latter would be functionally indistinguishable, at both user- and system-level, from a conventional UNIX system. It became a forerunner of Sun Microsystems' Network File System. The name derives from the research group at Newcastle University, under Brian Randell, which developed it. The term "UNIX United" describes the scheme of combining the overall filesystems of the participating UNIX machines; "Newcastle Connection" describes the undelying communication layer which enables this. A UNIX United system constructed with the Newcastle Connection is functionally indistinguishable from a centralised UNIX system at the system-call level. In essence, the concept of the "parent directory" was re-interpreted at the root of the filesystem, where it originally had no significant meaning, to mean "this directory is on a remote machine", similar to subsequent "Super-root " usage.
UNIX United
As a reminder, a typical single UNIX directory tree might resemble:
/
* home
** brian
*** a
*** b
UNIX United acts as an extra level the / root. If the example machine is named "unix1", an overall UNIX United scheme with an additional second machine, "unix2", would look like:
/..
* unix1
** home
*** brian
**** a
**** b
* unix2
** home
*** brian
**** b
**** c
If we wish to copy file a from "unix1" to "unix2" to sit alongside files b and c, example equivalent commands might be:
It required no changes to the UNIX kernel. Rather, it ran in user-space, using a modified version of the C standard library of its day which was capable of recognising these new semantics. To a first approximation this was to recognise pathnames beginning with "/..". A match would divert such a reference through to the new software, which then used remote procedure calls to the remote machine. All other pathnames would simply go through to the local kernel as usual. It did, however, require that all software intended to use it, including shells, the "cp" command, etc. needed to be re-linked with this new library. Continuing one of the previous examples, the "cp" command attempts, as expected, to open the two files:
open
open
Assuming the command has been relinked with the revised C-library, the first open happens as normal on the local system. The second, however, is diverted into the "Newcastle Connection" software because of the filename's leading "/..".
Portability
The original implementation at Newcastle was for UNIX V7 on a set of PDP-11 computers connected by a Cambridge Ring network. Subsequent implementations added support for other versions of UNIX, network technologies, protocols and hardware architecture.