计算机系 信息处理实验室 Lecture 16 Networking
计算机系 信息处理实验室 the Inside of Windows Content The OSI Reference Model Networking APIs Network-Resource Name Resolution Protocol Drivers NDIS Drivers Binding Layered Network Services
计算机系 信息处理实验室 the Inside of Windows The OSI Reference Model Open Systems Interconnection (OSI) reference model 7 layers An idealized scheme
计算机系 信息处理实验室 the Inside of Windows K Networking Components Networking APIs protocol-independent Transport Driver Interface (TDI) clients kernel-mode device drivers TDI transports kernel-mode protocol drivers NDIS library Ndis.sys NDIS miniport drivers
计算机系 信息处理实验室 the Inside of Windows Networking APIs Named pipes and mailslots Windows Sockets (Winsock) Remote procedure call (RPC) Common Internet File System (CIFS) NetBIOS
计算机系 信息处理实验室 the Inside of Windows Named Pipes and Mailslots Named pipes Provide reliable bidirectional communications Mailslots Provide unreliable unidirectional data transmission Support broadcast capability
计算机系 信息处理实验室 the Inside of Windows Named pipe communications \\Server\Pipe\PipeName | | | a unique name | | | (can include subdirectories) | | “Pipe” | the computer Example: \\MyComputer\Pipe\MyServerApp\ConnectionPipe
计算机系 信息处理实验室 the Inside of Windows Named Pipe Operation CreateNamedPipe A pope operates in byte mode or message mode ConnectNamedPipe synchronously or asynchronously CreateFile or CallNamedPipe ReadFile and WriteFile (Win32 Func) Establish the connection
计算机系 信息处理实验室 the Inside of Windows Mailslot Operation Name: \\Server\MailSlot\MailSlotName\\Server\MailSlot\MailSlotName Func: Creat Slot, ReadFile; CreateFile, WriteFile Message size < 425 Bytes
计算机系 信息处理实验室 the Inside of Windows Named Pipe and Mailslot Implementation Name resolution: \\.\Pipe\PipeName Npfs.sys Msfs.sys Symbolic link: \\?\Pipe; \\?\MailSlot
计算机系 信息处理实验室 the Inside of Windows EXPERIMENT Listing the Named Pipe Namespace and Watching Named Pipe Activity
计算机系 信息处理实验室 the Inside of Windows Windows Sockets Microsoft's implementation of BSD Sockets 2K: Winsock 2.2 features scatter-gather and asynchronous I/O QoS conventions Extensibility integrated namespaces multipoint messages
计算机系 信息处理实验室 the Inside of Windows Winsock Operation Support protocols NetBEUI, TCP/IP, IPX After initilization: socket; bound; listen/connect/accept; recv/send
计算机系 信息处理实验室 the Inside of Windows Winsock Implementation
计算机系 信息处理实验室 the Inside of Windows Remote Procedure Call Compatible with the OSF/DCE standard procedural view VS. transport-centered view Remote I/O request OS : redirector | remote system, execute and return | local: interrupt, & return to caller
计算机系 信息处理实验室 the Inside of Windows RPC Operation
计算机系 信息处理实验室 the Inside of Windows RPC Implementation
计算机系 信息处理实验室 the Inside of Windows Common Internet File System (CIFS) A published Microsoft standard An enhanced form of the Server Message Block (SMB) protocol allows third parties to interoperate with 2K file servers and with 2K file sharing clients E.g. Samba shareware Redirector FSD executes on a client machine & communicates with a server FSD
计算机系 信息处理实验室 the Inside of Windows CIFS
计算机系 信息处理实验室 the Inside of Windows Distributed File Caching To provide a consistent view of shared remote file 2K solution: distributed cache coherency Mechanism: oplock Three main types of oplock Level I oplock Level II oplock Batch oplock
计算机系 信息处理实验室 the Inside of Windows Oplock example
计算机系 信息处理实验室 the Inside of Windows NetBIOS Network Basic Input/Output System NetBIOS Names 16byte 2K: first 15 bytes of DNS name + modifier LANA number WINS NetBIOS Names TCP/IP addresses NetBIOS API Listen, … unique group
计算机系 信息处理实验室 the Inside of Windows EXPERIMENT Using Nbtstat to See NetBIOS Names
计算机系 信息处理实验室 the Inside of Windows NetBIOS API Implementation
计算机系 信息处理实验室 the Inside of Windows Other Networking APIs Telephony API (TAPI) DCOM Message Queuing
计算机系 信息处理实验室 the Inside of Windows Network-Resource Name Resolution Multiple Provider Router Multiple UNC Provider
计算机系 信息处理实验室 the Inside of Windows Multiple Provider Router
计算机系 信息处理实验室 the Inside of Windows Multiple UNC Provider
计算机系 信息处理实验室 the Inside of Windows Domain Name System
计算机系 信息处理实验室 the Inside of Windows Protocol Drivers
计算机系 信息处理实验室 the Inside of Windows NDIS Drivers
计算机系 信息处理实验室 the Inside of Windows Binding
计算机系 信息处理实验室 the Inside of Windows Layered Network Services Remote access Active Directory Network Load Balancing File Replication service (FRS) Distributed File System (DFS) TCP/IP Extensions Network Address Translation Internet Protocol Security Quality of Service
计算机系 信息处理实验室 the Inside of Windows Active Directory architecture
计算机系 信息处理实验室 the Inside of Windows Network Load Balancing operation
计算机系 信息处理实验室 the Inside of Windows DFS components
计算机系 信息处理实验室 the Inside of Windows QoS architecture