🗊Презентация Distributed file system

Нажмите для полного просмотра!
Distributed file system, слайд №1Distributed file system, слайд №2Distributed file system, слайд №3Distributed file system, слайд №4Distributed file system, слайд №5Distributed file system, слайд №6Distributed file system, слайд №7Distributed file system, слайд №8Distributed file system, слайд №9Distributed file system, слайд №10Distributed file system, слайд №11Distributed file system, слайд №12Distributed file system, слайд №13Distributed file system, слайд №14Distributed file system, слайд №15Distributed file system, слайд №16Distributed file system, слайд №17Distributed file system, слайд №18Distributed file system, слайд №19Distributed file system, слайд №20Distributed file system, слайд №21Distributed file system, слайд №22Distributed file system, слайд №23Distributed file system, слайд №24Distributed file system, слайд №25Distributed file system, слайд №26Distributed file system, слайд №27Distributed file system, слайд №28Distributed file system, слайд №29Distributed file system, слайд №30Distributed file system, слайд №31Distributed file system, слайд №32Distributed file system, слайд №33Distributed file system, слайд №34Distributed file system, слайд №35Distributed file system, слайд №36Distributed file system, слайд №37Distributed file system, слайд №38Distributed file system, слайд №39Distributed file system, слайд №40Distributed file system, слайд №41Distributed file system, слайд №42

Содержание

Вы можете ознакомиться и скачать презентацию на тему Distributed file system. Доклад-сообщение содержит 42 слайдов. Презентации для любого класса можно скачать бесплатно. Если материал и наш сайт презентаций Mypresentation Вам понравились – поделитесь им с друзьями с помощью социальных кнопок и добавьте в закладки в своем браузере.

Слайды и текст этой презентации


Слайд 1





1DT057 
DISTRIBUTED INFORMATION SYSTEM



DISTRIBUTED FILE SYSTEM
Описание слайда:
1DT057 DISTRIBUTED INFORMATION SYSTEM DISTRIBUTED FILE SYSTEM

Слайд 2





 CHAPTER 8: DISTRIBUTED FILE SYSTEM
Introduction to File System
File-System Structure
Directory Implementation
Allocation Methods
Distributed File System
Example: Sun NFS
Example: AFS
Описание слайда:
CHAPTER 8: DISTRIBUTED FILE SYSTEM Introduction to File System File-System Structure Directory Implementation Allocation Methods Distributed File System Example: Sun NFS Example: AFS

Слайд 3





FILE-SYSTEM STRUCTURE
File structure
Logical storage unit
Collection of related information
File system resides on secondary storage (disks)
File system organized into layers
File control block – storage structure consisting of information about a file
Описание слайда:
FILE-SYSTEM STRUCTURE File structure Logical storage unit Collection of related information File system resides on secondary storage (disks) File system organized into layers File control block – storage structure consisting of information about a file

Слайд 4





LAYERED FILE SYSTEM
Описание слайда:
LAYERED FILE SYSTEM

Слайд 5





A TYPICAL FILE CONTROL BLOCK
Описание слайда:
A TYPICAL FILE CONTROL BLOCK

Слайд 6





VIRTUAL FILE SYSTEMS
Virtual File Systems (VFS) provide an object-oriented way of implementing file systems.
VFS allows the same system call interface (the API) to be used for different types of file systems.
The API is to the VFS interface, rather than any specific type of file system.
Описание слайда:
VIRTUAL FILE SYSTEMS Virtual File Systems (VFS) provide an object-oriented way of implementing file systems. VFS allows the same system call interface (the API) to be used for different types of file systems. The API is to the VFS interface, rather than any specific type of file system.

Слайд 7





SCHEMATIC VIEW OF VIRTUAL FILE SYSTEM
Описание слайда:
SCHEMATIC VIEW OF VIRTUAL FILE SYSTEM

Слайд 8





DIRECTORY IMPLEMENTATION
Linear list of file names with pointer to the data blocks.
simple to program
time-consuming to execute

Hash Table – linear list with hash data structure.
decreases directory search time
collisions – situations where two file names hash to the same location
fixed size
Описание слайда:
DIRECTORY IMPLEMENTATION Linear list of file names with pointer to the data blocks. simple to program time-consuming to execute Hash Table – linear list with hash data structure. decreases directory search time collisions – situations where two file names hash to the same location fixed size

Слайд 9





ALLOCATION METHODS
An allocation method refers to how disk blocks are allocated for files:
Contiguous allocation

Linked allocation

Indexed allocation
Описание слайда:
ALLOCATION METHODS An allocation method refers to how disk blocks are allocated for files: Contiguous allocation Linked allocation Indexed allocation

Слайд 10





CONTIGUOUS ALLOCATION
Each file occupies a set of contiguous blocks on the disk
Simple – only starting location (block #) and length (number of blocks) are required

Wasteful of space (dynamic storage-allocation problem)

Files cannot grow
Описание слайда:
CONTIGUOUS ALLOCATION Each file occupies a set of contiguous blocks on the disk Simple – only starting location (block #) and length (number of blocks) are required Wasteful of space (dynamic storage-allocation problem) Files cannot grow

Слайд 11





CONTIGUOUS ALLOCATION OF DISK SPACE
Описание слайда:
CONTIGUOUS ALLOCATION OF DISK SPACE

Слайд 12





EXTENT-BASED SYSTEMS
Many newer file systems (I.e. Veritas File System) use a modified contiguous allocation scheme
Extent-based file systems allocate disk blocks in extents
An extent is a contiguous block of disks
Extents are allocated for file allocation
A file consists of one or more extents.
Описание слайда:
EXTENT-BASED SYSTEMS Many newer file systems (I.e. Veritas File System) use a modified contiguous allocation scheme Extent-based file systems allocate disk blocks in extents An extent is a contiguous block of disks Extents are allocated for file allocation A file consists of one or more extents.

Слайд 13





LINKED ALLOCATION
Each file is a linked list of disk blocks: blocks may be scattered anywhere on the disk.
Описание слайда:
LINKED ALLOCATION Each file is a linked list of disk blocks: blocks may be scattered anywhere on the disk.

Слайд 14





LINKED ALLOCATION
Описание слайда:
LINKED ALLOCATION

Слайд 15





FILE-ALLOCATION TABLE
Описание слайда:
FILE-ALLOCATION TABLE

Слайд 16





INDEXED ALLOCATION
Brings all pointers together into the index block.
Logical view.
Описание слайда:
INDEXED ALLOCATION Brings all pointers together into the index block. Logical view.

Слайд 17





EXAMPLE OF INDEXED ALLOCATION
Описание слайда:
EXAMPLE OF INDEXED ALLOCATION

Слайд 18





INDEXED ALLOCATION – MAPPING (CONT.)
Описание слайда:
INDEXED ALLOCATION – MAPPING (CONT.)

Слайд 19





COMBINED SCHEME:  UNIX (4K BYTES PER BLOCK)
Описание слайда:
COMBINED SCHEME: UNIX (4K BYTES PER BLOCK)

Слайд 20





LINKED FREE SPACE LIST ON DISK
Описание слайда:
LINKED FREE SPACE LIST ON DISK

Слайд 21





DISTRIBUTED FILE SYSTEM
Описание слайда:
DISTRIBUTED FILE SYSTEM

Слайд 22





DISTRIBUTED FILE SYSTEMS
A special case of distributed system
Allows multi-computer systems to share files
Examples:
NFS (Sun’s Network File System)
Windows NT, 2000, XP
Andrew File System (AFS) & others …
Описание слайда:
DISTRIBUTED FILE SYSTEMS A special case of distributed system Allows multi-computer systems to share files Examples: NFS (Sun’s Network File System) Windows NT, 2000, XP Andrew File System (AFS) & others …

Слайд 23





DISTRIBUTED FILE SYSTEMS (CONTINUED)
One of most common uses of distributed computing
Goal: provide  common view of centralized file system, but distributed implementation.
Ability to open & update any file on any machine on network
All of synchronization issues and capabilities of shared local files
Описание слайда:
DISTRIBUTED FILE SYSTEMS (CONTINUED) One of most common uses of distributed computing Goal: provide common view of centralized file system, but distributed implementation. Ability to open & update any file on any machine on network All of synchronization issues and capabilities of shared local files

Слайд 24





NAMING OF DISTRIBUTED FILES
Naming – mapping between logical and physical objects.
A transparent DFS hides the location where in the network the file is stored.
Location transparency –  file name does not reveal the file’s physical storage location.
File name denotes a specific, hidden, set of physical disk blocks.
Convenient way to share data.
Could expose correspondence between component units and machines.
Location independence – file name does not need to be changed when the file’s physical storage location changes. 
Better file abstraction.
Promotes sharing the storage space itself.
Separates the naming hierarchy from the storage-devices hierarchy.
Описание слайда:
NAMING OF DISTRIBUTED FILES Naming – mapping between logical and physical objects. A transparent DFS hides the location where in the network the file is stored. Location transparency – file name does not reveal the file’s physical storage location. File name denotes a specific, hidden, set of physical disk blocks. Convenient way to share data. Could expose correspondence between component units and machines. Location independence – file name does not need to be changed when the file’s physical storage location changes. Better file abstraction. Promotes sharing the storage space itself. Separates the naming hierarchy from the storage-devices hierarchy.

Слайд 25





DFS – THREE NAMING SCHEMES
Mount remote directories to local directories, giving the appearance of a coherent local directory tree
Mounted remote directories can be accessed transparently.
Unix/Linux with NFS; Windows with mapped drives
Files named by combination of host name and local name;
Guarantees a unique system wide name
Windows Network Places, Apollo Domain
Total integration of component file systems.
A single global name structure spans all the files in the system.
If a server is unavailable, some arbitrary set of directories on different machines also becomes unavailable.
Описание слайда:
DFS – THREE NAMING SCHEMES Mount remote directories to local directories, giving the appearance of a coherent local directory tree Mounted remote directories can be accessed transparently. Unix/Linux with NFS; Windows with mapped drives Files named by combination of host name and local name; Guarantees a unique system wide name Windows Network Places, Apollo Domain Total integration of component file systems. A single global name structure spans all the files in the system. If a server is unavailable, some arbitrary set of directories on different machines also becomes unavailable.

Слайд 26





THE SUN NETWORK FILE SYSTEM (NFS)
An implementation and a specification of a software system for accessing remote files across LANs (or WANs)

The implementation is part of the Solaris and SunOS operating systems running on Sun workstations using an unreliable datagram protocol (UDP/IP protocol and Ethernet)
Описание слайда:
THE SUN NETWORK FILE SYSTEM (NFS) An implementation and a specification of a software system for accessing remote files across LANs (or WANs) The implementation is part of the Solaris and SunOS operating systems running on Sun workstations using an unreliable datagram protocol (UDP/IP protocol and Ethernet)

Слайд 27





NFS (CONT.)
Interconnected workstations viewed as a set of independent machines with independent file systems, which allows sharing among these file systems in a transparent manner
A remote directory is mounted over a local file system directory
 The mounted directory looks like an integral  subtree of the local file system, replacing the subtree descending from the local directory
Specification of the remote directory for the mount operation is nontransparent; the host name of the remote directory has to be provided
  Files in the remote directory can then be accessed in a transparent manner
Subject to access-rights accreditation, potentially any file system (or directory within a file system), can be mounted remotely on top of any local directory
Описание слайда:
NFS (CONT.) Interconnected workstations viewed as a set of independent machines with independent file systems, which allows sharing among these file systems in a transparent manner A remote directory is mounted over a local file system directory The mounted directory looks like an integral subtree of the local file system, replacing the subtree descending from the local directory Specification of the remote directory for the mount operation is nontransparent; the host name of the remote directory has to be provided Files in the remote directory can then be accessed in a transparent manner Subject to access-rights accreditation, potentially any file system (or directory within a file system), can be mounted remotely on top of any local directory

Слайд 28





NFS (CONT.)
NFS is designed to operate in a heterogeneous environment of different machines, operating systems, and network architectures; the NFS specifications independent of these media
This independence is achieved through the use of RPC primitives built on top of an External Data Representation (XDR) protocol used between two implementation-independent interfaces

The NFS specification distinguishes between the services provided by a mount mechanism and the actual remote-file-access services
Описание слайда:
NFS (CONT.) NFS is designed to operate in a heterogeneous environment of different machines, operating systems, and network architectures; the NFS specifications independent of these media This independence is achieved through the use of RPC primitives built on top of an External Data Representation (XDR) protocol used between two implementation-independent interfaces The NFS specification distinguishes between the services provided by a mount mechanism and the actual remote-file-access services

Слайд 29





THREE INDEPENDENT FILE SYSTEMS
Описание слайда:
THREE INDEPENDENT FILE SYSTEMS

Слайд 30





MOUNTING IN NFS
Описание слайда:
MOUNTING IN NFS

Слайд 31





NFS MOUNT PROTOCOL
Establishes initial logical connection between server and client
Mount operation includes name of remote directory to be mounted and name of server machine storing it
Mount request is mapped to corresponding RPC and forwarded to mount server running on server machine 
Export list – specifies local file systems that server exports for mounting, along with names of machines that are permitted to mount them 
Following a mount request that conforms to its export list, the server returns a file handle—a key for further accesses
File handle – a file-system identifier, and an inode number to identify the mounted directory within the exported file system
The mount operation changes only the user’s view and does not affect the server side
Описание слайда:
NFS MOUNT PROTOCOL Establishes initial logical connection between server and client Mount operation includes name of remote directory to be mounted and name of server machine storing it Mount request is mapped to corresponding RPC and forwarded to mount server running on server machine Export list – specifies local file systems that server exports for mounting, along with names of machines that are permitted to mount them Following a mount request that conforms to its export list, the server returns a file handle—a key for further accesses File handle – a file-system identifier, and an inode number to identify the mounted directory within the exported file system The mount operation changes only the user’s view and does not affect the server side

Слайд 32





NFS PROTOCOL
Provides a set of remote procedure calls for remote file operations.  The procedures support the following operations:
searching for a file within a directory 
reading a set of directory entries 
manipulating links and directories 
accessing file attributes
reading and writing files
NFS servers are stateless; each request has to provide a full set of arguments
	(NFS V4 is just coming available – very different, stateful)
Modified data must be committed to the server’s disk before results are returned to the client (lose advantages of caching)
The NFS protocol does not provide concurrency-control mechanisms
Описание слайда:
NFS PROTOCOL Provides a set of remote procedure calls for remote file operations. The procedures support the following operations: searching for a file within a directory reading a set of directory entries manipulating links and directories accessing file attributes reading and writing files NFS servers are stateless; each request has to provide a full set of arguments (NFS V4 is just coming available – very different, stateful) Modified data must be committed to the server’s disk before results are returned to the client (lose advantages of caching) The NFS protocol does not provide concurrency-control mechanisms

Слайд 33





THREE MAJOR LAYERS OF NFS ARCHITECTURE 
UNIX file-system interface (based on the open, read, write, and close calls, and file descriptors)

Virtual File System (VFS) layer – distinguishes local files from remote ones, and local files are further distinguished according to their file-system types
The VFS activates file-system-specific operations to handle local requests according to their file-system types 
Calls the NFS protocol procedures for remote requests

NFS service layer – bottom layer of the architecture
Implements the NFS protocol
Описание слайда:
THREE MAJOR LAYERS OF NFS ARCHITECTURE UNIX file-system interface (based on the open, read, write, and close calls, and file descriptors) Virtual File System (VFS) layer – distinguishes local files from remote ones, and local files are further distinguished according to their file-system types The VFS activates file-system-specific operations to handle local requests according to their file-system types Calls the NFS protocol procedures for remote requests NFS service layer – bottom layer of the architecture Implements the NFS protocol

Слайд 34





SCHEMATIC VIEW OF NFS ARCHITECTURE
Описание слайда:
SCHEMATIC VIEW OF NFS ARCHITECTURE

Слайд 35





NFS PATH-NAME TRANSLATION
Performed by breaking the path into component names and performing a separate NFS lookup call for every pair of component name and directory vnode

To make lookup faster, a directory name lookup cache on the client’s side holds the vnodes for remote directory names
Описание слайда:
NFS PATH-NAME TRANSLATION Performed by breaking the path into component names and performing a separate NFS lookup call for every pair of component name and directory vnode To make lookup faster, a directory name lookup cache on the client’s side holds the vnodes for remote directory names

Слайд 36





NFS REMOTE OPERATIONS
Nearly one-to-one correspondence between regular UNIX  system calls and the NFS protocol RPCs (except opening and closing files)
NFS adheres to the remote-service paradigm, but employs buffering and caching techniques for the sake of performance 
File-blocks cache – when a file is opened, the kernel checks with the remote server whether to fetch or revalidate the cached attributes
Cached file blocks are used only if the corresponding cached attributes are up to date
File-attribute cache – the attribute cache is updated whenever new attributes arrive from the server
Clients do not free delayed-write blocks until the server confirms that the data have been written to disk
Описание слайда:
NFS REMOTE OPERATIONS Nearly one-to-one correspondence between regular UNIX system calls and the NFS protocol RPCs (except opening and closing files) NFS adheres to the remote-service paradigm, but employs buffering and caching techniques for the sake of performance File-blocks cache – when a file is opened, the kernel checks with the remote server whether to fetch or revalidate the cached attributes Cached file blocks are used only if the corresponding cached attributes are up to date File-attribute cache – the attribute cache is updated whenever new attributes arrive from the server Clients do not free delayed-write blocks until the server confirms that the data have been written to disk

Слайд 37





ANDREW FILE SYSTEM (AFS)
Completely different kind of file system
Developed at CMU to support all student computing.
Consists of workstation clients and dedicated file server machines.
Описание слайда:
ANDREW FILE SYSTEM (AFS) Completely different kind of file system Developed at CMU to support all student computing. Consists of workstation clients and dedicated file server machines.

Слайд 38





ANDREW FILE SYSTEM (AFS)
Stateful
Single name space
File has the same names everywhere in the world.
Lots of local file caching
On workstation disks
For long periods of time
Originally whole files, now 64K file chunks.
Good for distant operation because of local disk caching
Описание слайда:
ANDREW FILE SYSTEM (AFS) Stateful Single name space File has the same names everywhere in the world. Lots of local file caching On workstation disks For long periods of time Originally whole files, now 64K file chunks. Good for distant operation because of local disk caching

Слайд 39





AFS
Need for scaling led to reduction of client-server message traffic.
Once a file is cached, all operations are performed locally.
On close, if the file is modified, it is replaced on the server.
The client assumes that its cache is up to date! 
Server knows about all cached copies of file
Callback messages from the server saying otherwise.  
…
Описание слайда:
AFS Need for scaling led to reduction of client-server message traffic. Once a file is cached, all operations are performed locally. On close, if the file is modified, it is replaced on the server. The client assumes that its cache is up to date! Server knows about all cached copies of file Callback messages from the server saying otherwise. …

Слайд 40





AFS
On file open()
If client has received a callback for file, it must fetch new copy
Otherwise it uses its locally-cached copy.
Server crashes
Transparent to client if file is locally cached
Server must contact clients to find state of files
Описание слайда:
AFS On file open() If client has received a callback for file, it must fetch new copy Otherwise it uses its locally-cached copy. Server crashes Transparent to client if file is locally cached Server must contact clients to find state of files

Слайд 41





DISTRIBUTED FILE SYSTEMS REQUIREMENTS
Performance is always an issue 
Tradeoff between performance and the semantics of file operations (especially for shared files).
Caching of file blocks is crucial in any file system, distributed or otherwise.  
As memories get larger, most read requests can be serviced out of file buffer cache (local memory).
Maintaining coherency of those caches is a crucial design issue.
Current research addressing disconnected file operation for mobile computers.
Описание слайда:
DISTRIBUTED FILE SYSTEMS REQUIREMENTS Performance is always an issue Tradeoff between performance and the semantics of file operations (especially for shared files). Caching of file blocks is crucial in any file system, distributed or otherwise. As memories get larger, most read requests can be serviced out of file buffer cache (local memory). Maintaining coherency of those caches is a crucial design issue. Current research addressing disconnected file operation for mobile computers.

Слайд 42





SUMMERY
Introduction to file system
Characteristics of distributed file system
Case study: Sun Network File System
Case study: The Andrew File system
Read chapter 8 [Coulouris et al.] after the lecture…
Описание слайда:
SUMMERY Introduction to file system Characteristics of distributed file system Case study: Sun Network File System Case study: The Andrew File system Read chapter 8 [Coulouris et al.] after the lecture…



Похожие презентации
Mypresentation.ru
Загрузить презентацию