+ All Categories
Home > Documents > Yanjun Zhao. A network file system where a single file system can be distributed across several...

Yanjun Zhao. A network file system where a single file system can be distributed across several...

Date post: 17-Dec-2015
Category:
Upload: rosa-mills
View: 214 times
Download: 0 times
Share this document with a friend
Popular Tags:
33
Distributed File System Yanjun Zhao
Transcript
Page 1: Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.

Distributed File System

Yanjun Zhao

Page 2: Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.

A network file system where a single file system can be distributed across several physical computers

allows administrators to group shared folders located on different servers by transparently connecting them to one or more DFS namespaces

DFS

Page 3: Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.

Network transparency: same access operation as local files

Location transparency: file name should not reveal its location

Location independence: file name should not be changed when its physical location changes

User mobility: access to file from anywhere Fault tolerance Scalability File mobility: move files from one place to

another in a running system

Characteristics of a DFS

Page 4: Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.

Files & File Systems

Page 5: Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.

Files are named data objects. Files hold structured data that are used by programs but that are not part of the programs themselves.

File system is responsible for the naming, creation, deletion, retrieval, modification, and protection of a file in the system.

Logical components of a file for users.

Files & File Systems

File Name

File Attributes

Data units

Page 6: Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.

UNIX

Files are streams of characters for application programs and sequences of logical fixed size blocks for file system.

Both sequential and direct access methods are supported. Other access methods can be built on top of the flat file structures.

Example

Page 7: Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.

Directory service Name resolution, add and deletion of files

Authorization service Capability and /or access control list

File service

Transaction Concurrency and replication management

Basic Read/write files and get/set attributes

System Service Device, cache, and block management

Major Components in a file system

Page 8: Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.

Directories are files that contain names and addresses of other files and subdirectories.

o Mapping and locatingo Search for a fileo Create a fileo Delete a fileo List a directoryo Rename a fileo Traverse the file system

Directory Service

Page 9: Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.

File access must be regulated to ensure security

Types of access◦ Read◦ Write◦ Execute◦ Append◦ Delete◦ List

9

Authorization Service

Page 10: Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.

Create◦ Allocate space◦ Make an entry in the directory

Write ◦ Search the directory◦ Write is to take place at the

location of the write pointer Read

◦ Search the directory◦ Read is to take place at the

location of the read pointer Reposition within file – file

seek◦ Set the current file pointer to

a given value

Delete◦ Search the directory◦ Release all file space

Truncate◦ Reset the file to length zero

Open(Fi)◦ Search the directory

structure ◦ Move the content of the

directory entry to memory Close(Fi)

◦ move the content in memory to directory structure on disk

Get/set file attributes

10

File Service – Basic Operations

Page 11: Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.

System services are a FS’s interface to the hardware and are transparent to users of FS

◦ Mapping of logical to physical block addresses◦ Interfacing to services at the device level for file space

allocation/de-allocation◦ Actual read/write file operations◦ Caching for performance enhancement◦ Replicating for reliability improvement

System Service

Page 12: Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.

File Mounting & Server Registration

Page 13: Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.

File Mounting

Attach a remote named file system to the client’s file system hierarchy at the position pointed to by a path name◦ A mounting point is usually a leaf of the directory tree

that contains only an empty subdirectory

Once files are mounted, they are accessed by using the concatenated logical path names without referencing either the remote hosts or local devices◦ Location transparency◦ The linked information (mount table) is kept until they are

unmounted

Page 14: Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.

14

File Mounting Different clients may perceive a different FS view

◦ To achieve a global FS view – SA enforces mounting rules

Export: a file server restricts/allows the mounting of all or parts of its file system to a predefined set of hosts◦ The information is kept in the server’s export file

File system mounting:◦ Explicit mounting: clients make explicit mounting system

calls whenever one is desired◦ Boot mounting: a set of file servers is prescribed and all

mountings are performed the client’s boot time◦ Auto-mounting: mounting of the servers is implicitly done

on demand when a file is first opened by a client

Page 15: Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.

Server Registration

The mounting protocol is not transparent – the initial mounting requires knowledge of the location of file servers

Server registration◦ File servers register their services, and clients consult

with the registration server before mounting◦ Clients broadcast mounting requests, and file servers

respond to client’s requests

Page 16: Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.

Stateful & Stateless File Servers

Page 17: Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.

Stateful & Stateless File Servers State informationo Opened files and their clientso File descriptors and file handleso Current file position pointerso Mounting informationo Lock statuso Session keyso Cache or buffer

Page 18: Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.

Stateful & Stateless File Servers Sateful : a file server maintains internally some of the state

information

Stateless : a file server maintains none at all.

Stateful file Server : file servers maintain state information about clients between requests

Stateless file Server : when a client sends a request to a server, the server carries out the request, sends the reply, and then remove from its internal tables all information about the request◦ Between requests, no client-specific information is kept on

the server◦ Each request must be self-contained: full file name and

offset…

Page 19: Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.

Comparing

Page 20: Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.

File Sharing & Space Multiplexing

Page 21: Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.

21

File Sharing Overlapping access: multiple copies of the same file

◦ Space multiplexing of the file◦ Cache or replication◦ Coherency control: managing accesses to the replicas, to

provide a coherent view of the shared file◦ Desirable to guarantee the atomicity of updates (to all

copies)

Interleaving access: multiple granularities of data access operations◦ Time multiplexing of the file◦ Simple read/write, Transaction, Session◦ Concurrency control: how to prevent one execution

sequence from interfering with the others when they are interleaved and how to avoid inconsistent or erroneous results

Page 22: Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.

22

Space Multiplexing Remote access: no file data is kept in the client

machine. Each access request is transmitted directly to the remote file server through the underlying network.

Cache access: a small part of the file data is maintained in a local cache. A write operation or cache miss results a remote access and update of the cache

Download/upload access: the entire file is downloaded for local accesses. A remote access or upload is performed when updating the remote file

Page 23: Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.

MADFS: The Mobile Agent-based Distributed Network File System

Page 24: Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.

File storage protocol and cache management mechanism are not suitable for WAN

Flexibility is poor

Availability is poor

The Disadvantages of Conventional Distributed File System

Page 25: Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.

Reduce the overhead of network transfer and cache management inherent to the distribution of a distributed files system in WAN.

Organizes hosts into a hierarchical structure, and uses mobile agents as the underlying facility for transmission, communication and synchronization.

Uses the Hierarchical and Convergent Cache Coherency Mechanism (HCCM) to minimize the network communication and server overhead of cache management.

MADFS

Page 26: Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.

LAN : wide bandwidth and low transfer delay,

WAN: low bandwidth and high transfer delay[

WAN & LAN

Page 27: Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.

The Architecture of MADFS

Page 28: Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.

MADFS is divided into a number of domains in which are connected through high speed LAN and linked to each other through low speed WAN.

Each domain is composed of number of hosts.

In MADFS, a domain acts as the major domain and is in charge of the all others domains in MADFS.

Every server MADFS run the environment for mobile agent and the whole MADFS is a large platform for mobile agent.

The Architecture of MADFS

Page 29: Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.

Share all the overloads of communication and cache management over all DMA (Domain Manage Agent) and avoid the single central server to be the bottleneck of system.

The communication in domain can gain a better performance by using the protocol designed for LAN, and the security operation can be properly reduced

The Advantages in the Hierarchical Architecture of MADFS

Page 30: Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.

The Two Layer Lock Request Mechanism

Page 31: Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.

Reducing the network communication for managing file lock and duplicating the file buffer, particularly the communication in WAN

Converging can reduce effectively the overload of the maintaining the lockstate

The Advantage of The Two Layer Lock Request Mechanism

Page 32: Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.

Jun Lu; Bin Du; Yi Zhu; DaiWei Li. MADFS: The Mobile Agent-Based Distributed Network File System Intelligent Systems, 2009. GCIS '09. WRI Global Congress on Volume 1,  19-21 May 2009 Page(s):68 - 74

Reference

Page 33: Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.

Thanks!


Recommended