Other File Systems: AFS, Napster. 2 Recap NFS: –Server exposes one or more directories Client accesses them by mounting the directories –Stateless server.

Slides:



Advertisements
Similar presentations
Andrew File System CSS534 ZACH MA. History  Originated in October 1982, by the Information Technology Center (ITC) formed with Carnegie Mellon and IBM.
Advertisements

Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Lecture 23: Distributed-File Systems (Chapter 17)
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 17: Distributed-File Systems.
Chapter 17: Distributed-File Systems Silberschatz, Galvin and Gagne ©2005 AE4B33OSS Chapter 17 Distributed-File Systems Background Naming and Transparency.
Yanjun Zhao.  A network file system where a single file system can be distributed across several physical computers  allows administrators to group.
CS-550: Distributed File Systems [SiS]1 Resource Management in Distributed Systems: Distributed File Systems.
U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science Emery Berger University of Massachusetts Amherst Operating Systems CMPSCI 377 Lecture.
Distributed File Systems 17: Distributed File Systems
Chapter 17: Distributed-File Systems Adapted to COP4610 by Robert van Engelen.
Andrew File System (AFS)
Distributed File Systems CS 3100 Distributed File Systems1.
Copyright © Clifford Neuman - UNIVERSITY OF SOUTHERN CALIFORNIA - INFORMATION SCIENCES INSTITUTE CS582: Distributed Systems Lecture 13, 14 -
Distributed File Systems
Distributed File Systems Chapter 11
Coda file system: Disconnected operation By Wallis Chau May 7, 2003.
Other File Systems: LFS and NFS. 2 Log-Structured File Systems The trend: CPUs are faster, RAM & caches are bigger –So, a lot of reads do not require.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
Distributed File Systems: RPC, NFS, and AFS
Computer Science Lecture 21, page 1 CS677: Distributed OS Today: Coda, xFS Case Study: Coda File System Brief overview of other recent file systems –xFS.
Chapter 17: Distributed-File Systems Part Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 17 Distributed-File Systems Chapter.
Other File Systems: LFS, NFS, and AFS
Jeff Chheng Jun Du.  Distributed file system  Designed for scalability, security, and high availability  Descendant of version 2 of Andrew File System.
NFS. The Sun Network File System (NFS) An implementation and a specification of a software system for accessing remote files across LANs. The implementation.
University of Pennsylvania 11/21/00CSE 3801 Distributed File Systems CSE 380 Lecture Note 14 Insup Lee.
File Systems Implementation. 2 Goals for Today Filesystem Implementation Structure for –Storing files –Directories –Managing free space –Shared files.
Network File System (NFS) in AIX System COSC513 Operation Systems Instructor: Prof. Anvari Yuan Ma SID:
Distributed File Systems Concepts & Overview. Goals and Criteria Goal: present to a user a coherent, efficient, and manageable system for long-term data.
Week 2 File Systems & Unix Commands. File System Hierarchy.
CSC 456 Operating Systems Seminar Presentation (11/13/2012) Leon Weingard, Liang Xin The Google File System.
Networked File System CS Introduction to Operating Systems.
Distributed Systems. Interprocess Communication (IPC) Processes are either independent or cooperating – Threads provide a gray area – Cooperating processes.
Advanced Operating Systems - Spring 2009 Lecture 21 – Monday April 6 st, 2009 Dan C. Marinescu Office: HEC 439 B. Office.
Distributed File Systems
Distributed File Systems Case Studies: Sprite Coda.
Distributed File Systems Distributed file system (DFS) – a distributed implementation of the classical time-sharing model of a file system, where multiple.
Distributed file systems, Case studies n Sun’s NFS u history u virtual file system and mounting u NFS protocol u caching in NFS u V3 n Andrew File System.
What is a Distributed File System?? Allows transparent access to remote files over a network. Examples: Network File System (NFS) by Sun Microsystems.
Introduction to DFS. Distributed File Systems A file system whose clients, servers and storage devices are dispersed among the machines of a distributed.
Dr. M. Munlin Network and Distributed System Structures 1 NETE0516 Operating Systems Instructor: ผ. ศ. ดร. หมัดอามีน หมัน หลิน Faculty of Information.
File Systems Security File Systems Implementation.
Presented By: Samreen Tahir Coda is a network file system and a descendent of the Andrew File System 2. It was designed to be: Highly Highly secure Available.
Jinyong Yoon,  Andrew File System  The Prototype  Changes for Performance  Effect of Changes for Performance  Comparison with A Remote-Open.
Caching in the Sprite Network File System Scale and Performance in a Distributed File System COMP 520 September 21, 2004.
GLOBAL EDGE SOFTWERE LTD1 R EMOTE F ILE S HARING - Ardhanareesh Aradhyamath.
Distributed File Systems Architecture – 11.1 Processes – 11.2 Communication – 11.3 Naming – 11.4.
Introduction to AFS IMSA Intersession 2003 An Overview of AFS Brian Sebby, IMSA ’96 Copyright 2003 by Brian Sebby, Copies of these slides.
Distributed File Systems Questions answered in this lecture: Why are distributed file systems useful? What is difficult about distributed file systems?
Chapter Five Distributed file systems. 2 Contents Distributed file system design Distributed file system implementation Trends in distributed file systems.
Silberschatz, Galvin and Gagne  Operating System Concepts Distributed File Systems Distributed file system (DFS) – a distributed implementation.
Distributed Systems: Distributed File Systems Ghada Ahmed, PhD. Assistant Prof., Computer Science Dept. Web:
Chapter 17: Distributed-File Systems
File System Implementation
Andrew File System (AFS)
File System Implementation
NFS and AFS Adapted from slides by Ed Lazowska, Hank Levy, Andrea and Remzi Arpaci-Dussea, Michael Swift.
Chapter 17: Distributed-File Systems
Chapter 15: File System Internals
Today: Coda, xFS Case Study: Coda File System
Multiple Processor Systems
Distributed File Systems
DISTRIBUTED FILE SYSTEMS
Distributed File Systems
Distributed File Systems
Multiple Processor and Distributed Systems
Chapter 15: File System Internals
Distributed File Systems
Chapter 15: File System Internals
Chapter 17: Distributed-File Systems
Distributed File Systems
M05 DISTRIBUTED FILE SYSTEM
Presentation transcript:

Other File Systems: AFS, Napster

2 Recap NFS: –Server exposes one or more directories Client accesses them by mounting the directories –Stateless server Has problems with cache consistency, locking protocol –Mounting protocol Automounting P2P File Systems: –PAST, CFS –Relies on DHTs for routing

3 Andrew File System (AFS) Named after Andrew Carnegie and Andrew Mellon –Transarc Corp. and then IBM took development of AFS –In 2000 IBM made OpenAFS available as open source Features: –Uniform name space –Location independent file sharing –Client side caching with cache consistency –Secure authentication via Kerberos –Server-side caching in form of replicas –High availability through automatic switchover of replicas –Scalability to span 5000 workstations

4 AFS Overview Based on the upload/download model –Clients download and cache files –Server keeps track of clients that cache the file –Clients upload files at end of session Whole file caching is central idea behind AFS –Later amended to block operations –Simple, effective AFS servers are stateful –Keep track of clients that have cached files –Recall files that have been modified

5 AFS Details Has dedicated server machines Clients have partitioned name space: –Local name space and shared name space –Cluster of dedicated servers (Vice) present shared name space –Clients run Virtue protocol to communicate with Vice Clients and servers are grouped into clusters –Clusters connected through the WAN Other issues: –Scalability, client mobility, security, protection, heterogeneity

6 AFS: Shared Name Space AFS’s storage is arranged in volumes –Usually associated with files of a particular client AFS dir entry maps vice files/dirs to a 96-bit fid –Volume number –Vnode number: index into i-node array of a volume –Uniquifier: allows reuse of vnode numbers Fids are location transparent –File movements do not invalidate fids Location information kept in volume-location database –Volumes migrated to balance available disk space, utilization –Volume movement is atomic; operation aborted on server crash

7 AFS: Operations and Consistency AFS caches entire files from servers –Client interacts with servers only during open and close OS on client intercepts calls, and passes it to Venus –Venus is a client process that caches files from servers –Venus contacts Vice only on open and close Does not contact if file is already in the cache, and not invalidated –Reads and writes bypass Venus Works due to callback: –Server updates state to record caching –Server notifies client before allowing another client to modify –Clients lose their callback when someone writes the file Venus caches dirs and symbolic links for path translation

8 AFS Implementation Client cache is a local directory on UNIX FS –Venus and server processes access file directly by UNIX i-node Venus has 2 caches, one for status & one for data –Uses LRU to keep them bounded in size

9 Napster Flat FS: single-level FS with no hierarchy –Multiple files can have the same name All storage done at edges: –Hosts export set of files stored locally –Host is registered with centralized directory Uses keepalive messages to check for connectivity –Centralized directory notified of file names exported by the host File lookup: client sends request to central directory –Directory server sends 100 files matching the request to client –Client pings each host, computes RTT and displays results –Client transfers files from the closest host File transfers are peer-to-peer; central directory not part

10 Napster Architecture Network Firewall IP Sprayer/ Redirector Napster Directory Server 1 Napster Directory Server 2 Napster Directory Server 3 Napster.com H1 H2 H3

11 Napster Protocol Network Firewall IP Sprayer/ Redirector Napster Directory Server 1 Napster Directory Server 2 Napster Directory Server 3 Napster.com H1 H2 H3 I have “metallica / enter sandman”

12 Napster Protocol Network Firewall IP Sprayer/ Redirector Napster Directory Server 1 Napster Directory Server 2 Napster Directory Server 3 Napster.com “who has metallica ?” “check H1, H2” H1 H2 H3 I have “metallica / enter sandman”

13 Napster Protocol Network Firewall IP Sprayer/ Redirector Napster Directory Server 1 Napster Directory Server 2 Napster Directory Server 3 Napster.com “who has metallica ?” “check H1, H2” ping H1 H2 H3 I have “metallica / enter sandman”

14 Napster Protocol Network Firewall IP Sprayer/ Redirector Napster Directory Server 1 Napster Directory Server 2 Napster Directory Server 3 Napster.com “who has metallica ?” “check H1, H2” ping H1 H2 H3 transfer I have “metallica / enter sandman”

15 Napster Discussion Issues: –Centralized file location directory –Load balancing –Relies on keepalive messages –Scalability an issue! Success: ability to create and foster an online community –Built in ethics –Built in faults –Communication medium Had around users in November 2000!

16 Other P2P File Systems Napster has a central database! –Removing it will make regulating file transfers harder Freenet, gnutella, kazaa … all are decentralized Freenet: anonymous, files encrypted –So not know which files stored locally, which file searched Kazaa: allows parallel downloads Torrents for faster download