1 / 37

Lecture 16 Networking

Lecture 16 Networking. xlanchen@06/10/2005. Content. The OSI Reference Model Networking APIs Network-Resource Name Resolution Protocol Drivers NDIS Drivers Binding Layered Network Services. The OSI Reference Model. Open Systems Interconnection (OSI) reference model 7 layers

maxim
Télécharger la présentation

Lecture 16 Networking

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lecture 16 Networking xlanchen@06/10/2005

  2. Content • The OSI Reference Model • Networking APIs • Network-Resource Name Resolution • Protocol Drivers • NDIS Drivers • Binding • Layered Network Services Understanding the Inside of Windows2000

  3. The OSI Reference Model • Open Systems Interconnection (OSI) reference model • 7 layers • An idealized scheme Understanding the Inside of Windows2000

  4. 2K 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 Understanding the Inside of Windows2000

  5. Networking APIs • Named pipes and mailslots • Windows Sockets (Winsock) • Remote procedure call (RPC) • Common Internet File System (CIFS) • NetBIOS Understanding the Inside of Windows2000

  6. Named Pipes and Mailslots • Named pipes • Provide reliable bidirectional communications • Mailslots • Provide unreliable unidirectional data transmission • Support broadcast capability Understanding the Inside of Windows2000

  7. Named pipe communications • \\Server\Pipe\PipeName | | | a unique name | | | (can include subdirectories) | | “Pipe” | the computer • Example: \\MyComputer\Pipe\MyServerApp\ConnectionPipe Understanding the Inside of Windows2000

  8. 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 Understanding the Inside of Windows2000

  9. Mailslot Operation • Name: \\Server\MailSlot\MailSlotName • Func: CreateMailSlot, ReadFile; CreateFile, WriteFile • Message size < 425 Bytes Understanding the Inside of Windows2000

  10. Named Pipe and Mailslot Implementation • Name resolution: \\.\Pipe\PipeName Symbolic link: \\?\Pipe; \\?\MailSlot Npfs.sys Msfs.sys Understanding the Inside of Windows2000

  11. EXPERIMENT • Listing the Named Pipe Namespace and Watching Named Pipe Activity Understanding the Inside of Windows2000

  12. 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 Understanding the Inside of Windows2000

  13. Winsock Operation • Support protocols • NetBEUI, TCP/IP, IPX • After initilization: • socket; bound; listen/connect/accept; recv/send Understanding the Inside of Windows2000

  14. Winsock Implementation Understanding the Inside of Windows2000

  15. 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 Understanding the Inside of Windows2000

  16. RPC Operation Understanding the Inside of Windows2000

  17. RPC Implementation Understanding the Inside of Windows2000

  18. 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 Understanding the Inside of Windows2000

  19. CIFS Understanding the Inside of Windows2000

  20. 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 Understanding the Inside of Windows2000

  21. Oplock example Understanding the Inside of Windows2000

  22. 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 Understanding the Inside of Windows2000

  23. EXPERIMENT • Using Nbtstat to See NetBIOS Names Understanding the Inside of Windows2000

  24. NetBIOS API Implementation Understanding the Inside of Windows2000

  25. Other Networking APIs • Telephony API (TAPI) • DCOM • Message Queuing Understanding the Inside of Windows2000

  26. Network-Resource Name Resolution • Multiple Provider Router • Multiple UNC Provider Understanding the Inside of Windows2000

  27. Multiple Provider Router Understanding the Inside of Windows2000

  28. Multiple UNC Provider Understanding the Inside of Windows2000

  29. Domain Name System Understanding the Inside of Windows2000

  30. Protocol Drivers Understanding the Inside of Windows2000

  31. NDIS Drivers Understanding the Inside of Windows2000

  32. Binding Understanding the Inside of Windows2000

  33. 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 Understanding the Inside of Windows2000

  34. Active Directory architecture Understanding the Inside of Windows2000

  35. Network Load Balancing operation Understanding the Inside of Windows2000

  36. DFS components Understanding the Inside of Windows2000

  37. QoS architecture Understanding the Inside of Windows2000

More Related