Article title: NetWare and UNIX interconnection methods and implementation. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
The interconnection between different shaped networks is one of the hot topics in today's computer network technology development. With the development of computer technology and the continuous popularization of networks, the interconnection and sharing of resources between shaped machines and shaped networks have become an urgent issue. The interconnection problem between the popular network operating system netware and the unix system that is also popular is raised in this context. Novell has successfully enabled netware to support the TCP/IP protocol, while the unix network is built on the TCP/IP protocol. Therefore, some application layer protocols based on the TCP/IP protocol, it naturally becomes a better solution to the problem of netware and unix interconnection. Network File System (nfs) is one of the protocols that are widely used and more mature. In addition, dozens of nfs products have been launched on the market.
They are widely used in the interconnection between netware and unix. This article will discuss the concept and implementation method of nfs to explain how netware and unix are interconnected through nfs.
I. Network File System Overview
Sun microsystems is well known in the computer field for its high-quality workstations. Its workstation has been widely used in many fields, such as cad, simulation, and graphic processing. Sun workstation adopts an open system structure, which is mostly based on unix operating systems and supports TCP/IP protocol as its network architecture. It is precisely because of the support for TCP/IP protocol that the sun workstation can easily communicate over ethernet based on TCP/IP.
At the same time, due to the superior performance of the TCP/IP protocol on the Internet, the communication between sun workstation and other heterogeneous machines is more convenient and easy.
To implement file services on the network, sun proposed the concept of network file system (nfs. It provides transparent online (on-line) file sharing between heterogeneous machines and operating systems. Nfs allows access to remote files by using the I/o call method of the local operating system, and this is irrelevant to the physical location of the file and the operating system used.
From the user's perspective, nfs is invisible. The user can run an exclusive program and perform I/o operations on the exclusive files. However, the user does not know whether they are local or remote programs or files.
Nfs has many advantages. Nfs allows multiple machines to use the same data file. Therefore, file data is accessible to all machines on the network. In addition, nfs can significantly reduce the storage cost by storing large files on a single machine and sharing them with everyone. Especially in database application systems, you can combine data files in a reliable and unified manner for shared use and convenient unified management.
Nfs has been recognized by the open system organization and has become the industrial standard of distributed file systems today. Nfs not only supports connections between sun workstations, but also supports products from major computer manufacturers. In particular, most unix operating systems, such as sco unix, provide software that supports the nfs protocol to achieve communication between unix and other operating systems.
2. describe nfs implementation from the network architecture
The specific format of nfs in an operating system is 1. When an application is running, it can open a file through a system call and access it. In this case, the file access system can receive various user requests and automatically determine where the request is sent, that is, the local file system or the nfs customer service. This determination is based on whether the requested file is stored on the local storage medium or on a remote computer. When a requested file is far away, the nfs customer service software uses the nfs protocol to contact the appropriate nfs server on the remote machine and perform corresponding request operations. After the remote server answers the request, the customer service software obtains the result and sends it to the application.
From the programmer's point of view, the nfs protocol itself does not provide any special call process. Once the administrator sets up nfs, the programmer can perform the same access operations on local and remote files, and there is no significant difference between them.
For nfs, the designer did not design it as a comprehensive protocol for all file transfers, but divided the nfs implementation into three relatively independent parts: nfs protocol itself, remote procedure call (rpc) mechanism, and external data representation (xdr ). If they are compared with the iso/osi recommendation standards, we can see that rpc corresponds to the session layer, xdr corresponds to the presentation layer, and nfs itself corresponds to the application layer, as shown in figure 2. From this architecture, we can see that the true nfs service is built on the service functions provided by the external data representation xdr and remote procedure call rpc.
[1] [2] [3] [4] Next page