The Server Service
Windows NT includes a second component, called the Server service. Like the redirector, the Server service sits above TDI, is implemented as a file system driver, and directly interacts with various other file-system drivers to satisfy I/O requests, such as reading or writing to a file.
The Server service supplies the connections requested by client-side redirectors and provides them with access to the resources they request.
When the Server service receives a request from a remote computer asking to read a file that resides on the local hard drive, the following steps occur.
- The low-level network drivers receive the request and pass it to the server driver (SRV).
- The Server service passes a read-file request to the appropriate local file-system driver.
- The local file-system driver calls lower-level, disk-device drivers to access the file.
- The data is passed back to the local file-system driver.
- The local file-system driver passes the data back to the Server service.
- The Server service passes the data to the lower-level network drivers for transmission back to the client computer.
Figure 1.22 Server Service
Like the Workstation service, the Server service is composed of two parts.
- Server, a service that runs in the Services.exe, which is the Service Control Manager, where all services start. Unlike the Workstation service, the Server service is not dependent on the MUP service because the server is not a UNC provider. It does not attempt to connect to other computers, but other computers connect to it.
- Srv.sys, a file system driver that handles the interaction with the lower levels and directly interacts with various file system devices to satisfy command requests, such as file read and write.