NETWORKED STORAGE AND REMOTE PROCEDURE CALLS (RPC)

Size: px
Start display at page:

Download "NETWORKED STORAGE AND REMOTE PROCEDURE CALLS (RPC)"

Transcription

1 NETWORKED STORAGE AND REMOTE PROCEDURE CALLS (RPC) George Porter Oct 16 and 18, 2018 ATTRIBUTION These slides are released under an Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0) Creative Commons license These slides incorporate material from: Michael Freedman and Kyle Jamieson, Princeton University (also under a CC BY-NC-SA 3.0 Creative Commons license) 1

2 ANNOUNCEMENTS THIS WEEK: STORAGE AND RPC Networked storage underpins many/most networked services Microcosm of many principles we re cover in this course Protocol in many ways more complex than HTTP Consistency, heterogeneity, caching, locks, leases Tue: overview of networked storage Thu: dive into remote procedure calls 2

3 Outline Networked storage Remote procedure calls ABSTRACTION, ABSTRACTION, ABSTRACTION! Local file systems Disks are terrible abstractions: low-level blocks, etc. Directories, files, links much better Distributed file systems Make a remote file system look local Today: NFS (Network File System) Developed by Sun in 1980s, still used today! 3

4 NFS ARCHITECTURE Server 1 (root) Client Server 2 (root) (root) export... vmunix usr nfs people Remote mount students x staff Remote mount users big jon bob... jim ann jane joe Mount remote FS (host:path) as local directories VIRTUAL FILE SYSTEM ENABLES TRANSPARENCY 4

5 VFS / LOCAL FS fd = open( path, flags) read(fd, buf, n) write(fd, buf, n) close(fd) Server maintains state that maps fd to inode, offset STATELESS NFS: STRAWMAN 1 fd = open( path, flags) read( path, buf, n) write( path, buf, n) close(fd) 5

6 STATELESS NFS: STRAWMAN 2 fd = open( path, flags) read( path, offset, buf, n) write( path, offset, buf, n) close(fd) EMBED PATHNAMES IN SYSCALLS? Should read refer to current dir1/f or dir2/f? In UNIX, it s dir2/f. How do we preserve in NFS? 6

7 STATELESS NFS (FOR REAL) fh = lookup( path, flags) read(fh, offset, buf, n) write(fh, offset, buf, n) getattr(fh) Implemented as Remote Procedure Calls (RPCs) NFS FILE HANDLES (FH) Opaque identifier provider to client from server Includes all info needed to identify file/object on server volume ID inode # generation # It s a trick: store server state at the client! Generation # optional, depending on the underlying file system 7

8 ARE REMOTE == LOCAL? TANSTANFL (THERE AIN T NO SUCH THING AS A FREE LUNCH) With local FS, read sees data from most recent write, even if performed by different process Read/write coherence, linearizability Achieve the same with NFS? Perform all reads & writes synchronously to server Huge cost: high latency, low scalability And what if the server doesn t return? Options: hang indefinitely, return ERROR 8

9 CACHING OPTIONS Centralized control: Record status of clients (which files open for reading/writing, what cached, ) Read-ahead: Pre-fetch blocks before needed Write-through: All writes sent to server Write-behind: Writes locally buffered, send as batch Consistency challenges: When client writes, how do others caching data get updated? (Callbacks, ) Two clients concurrently write? (Locking, overwrite, ) SHOULD SERVER MAINTAIN PER-CLIENT STATE? Stateful Pros Smaller requests Simpler req processing Better cache coherence, file locking, etc. Cons Per-client state limits scalability Fault-tolerance on state required for correctness Stateless Pros Easy server crash recovery No open/close needed Better scalability Cons Each request must be fully selfdescribing Consistency is harder, e.g., no simple file locking 9

10 SOFT VS. HARD STATE Hard state: Don t lose data Durability: State not lost Write to disk, or cold remote backup Exact replica or recoverable (DB: checkpoint + op log) Availability (liveness): Maintain online replicas Soft state: Performance optimization NFS Stateless protocol Recovery easy: crashed == slow server Messages over UDP (unencrypted) Read from server, caching in NFS client NFSv2 was write-through (i.e., synchronous) NFSv3 added write-behind Delay writes until close or fsync from application 10

11 EXPLORING THE CONSISTENCY TRADEOFFS Write-to-read semantics too expensive Give up caching, require server-side state, or Close-to-open session semantics Ensure an ordering, but only between application close and open, not all writes and reads. If B opens after A closes, will see A s writes But if two clients open at same time? No guarantees And what gets written? Last writer wins NFS CACHE CONSISTENCY Recall challenge: Potential concurrent writers Cache validation: Get file s last modification time from server: getattr(fh) Both when first open file, then poll every 3-60 seconds If server s last modification time has changed, flush dirty blocks and invalidate cache When reading a block Validate: (current time last validation time < threshold) If valid, serve from cache. Otherwise, refresh from server 11

12 SOME PROBLEMS Mixed reads across version A reads block 1-10 from file, B replaces blocks 1-20, A then keeps reading blocks Assumes synchronized clocks. Not really correct. We ll learn about the notion of logical clocks later Writes specified by offset Concurrent writes can change offset NFS CACHE CONSISTENCY Recall challenge: Potential concurrent writers Timestamp invalidation: NFS Callback invalidation: AFS, Sprite, Spritely NFS Server tracks all clients that have opened file On write, sends notification to clients if file changes. Client invalidates cache. Leases: Gray & Cheriton 89, NFSv4 12

13 LOCKS A client can request a lock over a file / byte range Advisory: Well-behaved clients comply Mandatory: Server-enforced Client performs writes, then unlocks Problem: What if the client crashes? Solution: Keep-alive timer: Recover lock on timeout Problem: what if client alive but network route failed? Client thinks it has lock, server gives lock to other: Split brain LEASES Client obtains lease on file for read or write A lease is a ticket permitting an activity; the lease is valid until some expiration time. Read lease allows client to cache clean data Guarantee: no other client is modifying file Write lease allows safe delayed writes Client can locally modify than batch writes to server Guarantee: no other client has file cached 13

14 USING LEASES Client requests a lease May be implicit, distinct from file locking Issued lease has file version number for cache coherence Server determines if lease can be granted Read leases may be granted concurrently Write leases are granted exclusively If conflict exists, server may send eviction notices Evicted write lease must write back Evicted read leases must flush/disable caching Client acknowledges when completed BOUNDED LEASE TERM SIMPLIFIES RECOVERY Before lease expires, client must renew lease Client fails while holding a lease? Server waits until the lease expires, then unilaterally reclaims If client fails during eviction, server waits then reclaims Server fails while leases outstanding? On recovery, Wait lease period + clock skew before issuing new leases Absorb renewal requests and/or writes for evicted leases 14

15 ANDREW FILE SYSTEM (CMU 1980S-) Scalability was key design goal Many servers, 10,000s of users Observations about workload Reads much more common than writes Concurrent writes are rare / writes between users disjoint Interfaces in terms of files, not blocks Whole-file serving: entire file and directories Whole-file caching: clients cache files to local disk Large cache and permanent, so persists across reboots AFS: CONSISTENCY Consistency: Close-to-open consistency No mixed writes, as whole-file caching / whole-file overwrites Update visibility: Callbacks to invalidate caches What about crashes or partitions? Client invalidates cache iff Recovering from failure Regular liveness check to server (heartbeat) fails. Server assumes cache invalidated if callbacks fail + heartbeat period exceeded 15

16 Outline Networked storage Remote procedure calls WHY RPC? The typical programmer is trained to write singlethreaded code that runs in one place Goal: Easy-to-program network communication that makes client-server communication transparent Retains the feel of writing centralized code Programmer needn t think about the network 16

17 REMOTE PROCEDURE CALL (RPC) Distributed programming is challenging Need common primitives/abstraction to hide complexity E.g., file system abstraction to hide block layout, process abstraction for scheduling/fault isolation In early 1980 s, researchers at PARC noticed most distributed programming took form of remote procedure call WHAT S THE GOAL OF RPC? Within a single program, running in a single process, recall the well-known notion of a procedure call: Caller pushes arguments onto stack, jumps to address of callee function Callee reads arguments from stack, executes, puts return value in register, returns to next instruction in caller RPC s Goal: To make communication appear like a local procedure call: transparency for procedure calls 17

18 RPC EXAMPLE Local computing X = 3 * 10; print(x) > 30 Remote computing server = connecttoserver(s); Try: X = server.mult(3,10); print(x) Except e: print Error! > 30 or > Error RPC ISSUES Heterogeneity Client needs to rendezvous with the server Server must dispatch to the required function What if server is different type of machine? Failure What if messages get dropped? What if client, server, or network fails? Performance Procedure call takes 10 cycles 3 ns RPC in a data center takes 10 μs (10 3 slower) In the wide area, typically 10 6 slower 18

19 PROBLEM: DIFFERENCES IN DATA REPRESENTATION Not an issue for local procedure call For a remote procedure call, a remote machine may: Represent data types using different sizes Use a different byte ordering (endianness) Represent floating point numbers differently Have different data alignment requirements e.g.,4-byte type begins only on 4-byte memory boundary BYTE ORDER x86-64 is a little endian architecture Least significant byte of multibyte entity at lowest memory address Little end goes first int 5 at address 0x1000: 0x1000: x1001: x1002: x1003: Some other systems use big endian Most significant byte of multibyte entity at lowest memory address Big end goes first int 5 at address 0x1000: 0x1000: x1001: x1002: x1003:

20 PROBLEM: DIFFERENCES IN PROGRAMMING SUPPORT Language support varies: Many programming languages have no inbuilt concept of remote procedure calls e.g., C, C++, earlier Java Some languages have support that enables RPC e.g., Python, Haskell, Go SOLUTION: INTERFACE DESCRIPTION LANGUAGE Mechanism to pass procedure parameters and return values in a machine-independent way Programmer may write an interface description in the IDL Defines API for procedure calls: names, parameter/return types Then runs an IDL compiler which generates: Code to marshal (convert) native data types into machineindependent byte streams And vice-versa, called unmarshaling Client stub: Forwards local procedure call as a request to server Server stub: Dispatches RPC to its implementation 20

21 A DAY IN THE LIFE OF AN RPC 1. Client calls stub function (pushes params onto stack) Client machine Client process k = add(3, 5) Client stub (RPC library) A DAY IN THE LIFE OF AN RPC 1. Client calls stub function (pushes params onto stack) 2. Stub marshals parameters to a network message Client machine Client process k = add(3, 5) Client stub (RPC library) proc: add int: 3 int: 5 Client OS 21

22 A DAY IN THE LIFE OF AN RPC 2. Stub marshals parameters to a network message 3. OS sends a network message to the server Client machine Server machine Client process k = add(3, 5) Client stub (RPC library) Client OS proc: add int: 3 int: 5 Server OS A DAY IN THE LIFE OF AN RPC 3. OS sends a network message to the server 4. Server OS receives message, sends it up to stub Client machine Server machine Client process k = add(3, 5) Client stub (RPC library) Server stub (RPC library) Client OS Server OS proc: add int: 3 int: 5 22

23 A DAY IN THE LIFE OF AN RPC 4. Server OS receives message, sends it up to stub 5. Server stub unmarshals params, calls server function Client machine Client process k = add(3, 5) Client stub (RPC library) Server machine Server process Implementation of add Server stub (RPC library) proc: add int: 3 int: 5 Client OS Server OS A DAY IN THE LIFE OF AN RPC 5. Server stub unmarshals params, calls server function 6. Server function runs, returns a value Client machine Client process k = add(3, 5) Client stub (RPC library) Server machine Server process 8 add(3, 5) Server stub (RPC library) Client OS Server OS 23

24 A DAY IN THE LIFE OF AN RPC 6. Server function runs, returns a value 7. Server stub marshals the return value, sends msg Client machine Client process k = add(3, 5) Client stub (RPC library) Server machine Server process 8 add(3, 5) Server stub (RPC library) Result int: 8 Client OS Server OS A DAY IN THE LIFE OF AN RPC 7. Server stub marshals the return value, sends msg 8. Server OS sends the reply back across the network Client machine Client process k = add(3, 5) Client stub (RPC library) Server machine Server process 8 add(3, 5) Server stub (RPC library) Client OS Server OS Result int: 8 24

25 A DAY IN THE LIFE OF AN RPC 8. Server OS sends the reply back across the network 9. Client OS receives the reply and passes up to stub Client machine Client process k = add(3, 5) Client stub (RPC library) Server machine Server process 8 add(3, 5) Server stub (RPC library) Client OS Result int: 8 Server OS A DAY IN THE LIFE OF AN RPC 9. Client OS receives the reply and passes up to stub 10.Client stub unmarshals return value, returns to client Client machine Client process k 8 Client stub (RPC library) Result int: 8 Server machine Server process 8 add(3, 5) Server stub (RPC library) Client OS Server OS 25

26 PETERSON AND DAVIE VIEW THE SERVER STUB IS REALLY TWO PARTS Dispatcher Receives a client s RPC request Identifies appropriate server-side method to invoke Skeleton Unmarshals parameters to server-native types Calls the local server procedure Marshals the response, sends it back to the dispatcher All this is hidden from the programmer Dispatcher and skeleton may be integrated Depends on implementation 26

27 Outline 1. RPC fundamentals 2. Handling failures in RPCs 3. grpc: Google RPC overview 4. ATM Server demo WHAT COULD POSSIBLY GO WRONG? 27

28 WHAT COULD POSSIBLY GO WRONG? 1. Client may crash and reboot 2. Packets may be dropped Some individual packet loss in the Internet Broken routing results in many lost packets 3. Server may crash and reboot 4. Network or server might just be very slow All these may look the same to the client FAILURES, FROM CLIENT S PERSPECTIVE Client Server Time The cause of the failure is hidden from the client! 28

29 AT-LEAST-ONCE SCHEME Simplest scheme for handling failures 1. Client stub waits for a response, for a while Response takes the form of an acknowledgement message from the server stub 2. If no response arrives after a fixed timeout time period, then client stub re-sends the request Repeat the above a few times Still no response? Return an error to the application AT-LEAST-ONCE AND SIDE EFFECTS Client sends a debit $10 from bank account RPC Client Server (debit $10) (debit $10) Time 29

30 AT-LEAST-ONCE AND WRITES put(x, value), then get(x): expect answer to be value Client put(x,10) put(x,20) Server x 10 x=20 x 20 Time AT-LEAST-ONCE AND WRITES Consider a client storing key-value pairs in a database put(x, value), then get(x): expect answer to be value Client put(x,10) put(x,20) Server x 10 x=20 x 20 x 10 Time 30

31 SO IS AT-LEAST-ONCE EVER OKAY? Yes: If they are read-only operations with no side effects e.g., read a key s value in a database Yes: If the application has its own functionality to cope with duplication and reordering AT-MOST-ONCE SCHEME Idea: server RPC code detects duplicate requests Returns previous reply instead of re-running handler How to detect a duplicate request? Test: Server sees same function, same arguments twice No! Sometimes applications legitimately submit the same function with same augments, twice in a row 31

32 AT-MOST-ONCE SCHEME How to detect a duplicate request? Client includes unique transaction ID (xid) with each one of its RPC requests Client uses same xid for retransmitted requests At-Most-Once Server if seen[xid]: retval = old[xid] else: retval = handler() old[xid] = retval seen[xid] = true return retval AT MOST ONCE: ENSURING UNIQUE XIDS How to ensure that the xid is unique? 1. Combine a unique client ID (e.g., IP address) with the current time of day 2. Combine unique client ID with a sequence number Suppose the client crashes and restarts. Can it reuse the same client ID? 3. Big random number 32

33 AT-MOST-ONCE: DISCARDING SERVER STATE Problem: seen and old arrays will grow without bound Observation: By construction, when the client gets a response to a particular xid, it will never re-send it Client could tell server I m done with xid x delete it Have to tell the server about each and every retired xid Could piggyback on subsequent requests Significant overhead if many RPCs are in flight, in parallel AT-MOST-ONCE: DISCARDING SERVER STATE Problem: seen and old arrays will grow without bound Suppose xid = unique client id, sequence no. e.g. 42, 1000, 42, 1001, 42, 1002 Client includes seen all replies X with every RPC Much like TCP sequence numbers, acks How does the client know that the server received the information about retired RPCs? Each one of these is cumulative: later seen messages subsume earlier ones 33

34 AT-MOST-ONCE: CONCURRENT REQUESTS Problem: How to handle a duplicate request while the original is still executing? Server doesn t know reply yet. Also, we don t want to run the procedure twice Idea: Add a pending flag per executing RPC Server waits for the procedure to finish, or ignores AT MOST ONCE: SERVER CRASH AND RESTART Problem: Server may crash and restart Does server need to write its tables to disk? Yes! On server crash and restart: If old[], seen[] tables are only in memory: Server will forget, accept duplicate requests 34

35 RPC SEMANTICS Retry Request Delivery Guarantees Duplicate Filtering Retransmit Response RPC Call Semantics No NA NA Maybe Yes No Re-execute Procedure At-least once Yes Yes Retransmit reply At-most once 35

NFS: Naming indirection, abstraction. Abstraction, abstraction, abstraction! Network File Systems: Naming, cache control, consistency

NFS: Naming indirection, abstraction. Abstraction, abstraction, abstraction! Network File Systems: Naming, cache control, consistency Abstraction, abstraction, abstraction! Network File Systems: Naming, cache control, consistency Local file systems Disks are terrible abstractions: low-level blocks, etc. Directories, files, links much

More information

Network File Systems

Network File Systems Network File Systems CS 240: Computing Systems and Concurrency Lecture 4 Marco Canini Credits: Michael Freedman and Kyle Jamieson developed much of the original material. Abstraction, abstraction, abstraction!

More information

Network Communication and Remote Procedure Calls

Network Communication and Remote Procedure Calls Network Communication and Remote Procedure Calls CS 240: Computing Systems and Concurrency Lecture 2 Marco Canini Credits: Michael Freedman and Kyle Jamieson developed much of the original material. Context

More information

Remote Procedure Call (RPC) and Transparency

Remote Procedure Call (RPC) and Transparency Remote Procedure Call (RPC) and Transparency Brad Karp UCL Computer Science CS GZ03 / M030 10 th October 2014 Transparency in Distributed Systems Programmers accustomed to writing code for a single box

More information

Distributed File Systems. CS 537 Lecture 15. Distributed File Systems. Transfer Model. Naming transparency 3/27/09

Distributed File Systems. CS 537 Lecture 15. Distributed File Systems. Transfer Model. Naming transparency 3/27/09 Distributed File Systems CS 537 Lecture 15 Distributed File Systems Michael Swift Goal: view a distributed system as a file system Storage is distributed Web tries to make world a collection of hyperlinked

More information

Distributed File Systems

Distributed File Systems Distributed File Systems Today l Basic distributed file systems l Two classical examples Next time l Naming things xkdc Distributed File Systems " A DFS supports network-wide sharing of files and devices

More information

PRIMARY-BACKUP REPLICATION

PRIMARY-BACKUP REPLICATION PRIMARY-BACKUP REPLICATION Primary Backup George Porter Nov 14, 2018 ATTRIBUTION These slides are released under an Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0) Creative Commons

More information

Network File System (NFS)

Network File System (NFS) Network File System (NFS) Nima Honarmand User A Typical Storage Stack (Linux) Kernel VFS (Virtual File System) ext4 btrfs fat32 nfs Page Cache Block Device Layer Network IO Scheduler Disk Driver Disk NFS

More information

Remote Procedure Calls

Remote Procedure Calls CS 5450 Remote Procedure Calls Vitaly Shmatikov Abstractions Abstractions for communication TCP masks some of the pain of communicating over unreliable IP Abstractions for computation Goal: programming

More information

Network File System (NFS)

Network File System (NFS) Network File System (NFS) Brad Karp UCL Computer Science CS GZ03 / M030 14 th October 2015 NFS Is Relevant Original paper from 1985 Very successful, still widely used today Early result; much subsequent

More information

Announcements. P4: Graded Will resolve all Project grading issues this week P5: File Systems

Announcements. P4: Graded Will resolve all Project grading issues this week P5: File Systems Announcements P4: Graded Will resolve all Project grading issues this week P5: File Systems Test scripts available Due Due: Wednesday 12/14 by 9 pm. Free Extension Due Date: Friday 12/16 by 9pm. Extension

More information

Network File System (NFS)

Network File System (NFS) Network File System (NFS) Brad Karp UCL Computer Science CS GZ03 / M030 19 th October, 2009 NFS Is Relevant Original paper from 1985 Very successful, still widely used today Early result; much subsequent

More information

Lecture 7: Distributed File Systems

Lecture 7: Distributed File Systems 06-06798 Distributed Systems Lecture 7: Distributed File Systems 5 February, 2002 1 Overview Requirements for distributed file systems transparency, performance, fault-tolerance,... Design issues possible

More information

Module 7 File Systems & Replication CS755! 7-1!

Module 7 File Systems & Replication CS755! 7-1! Module 7 File Systems & Replication CS755! 7-1! Distributed File Systems CS755! 7-2! File Systems File system! Operating System interface to disk storage! File system attributes (Metadata)! File length!

More information

TWO-PHASE COMMIT ATTRIBUTION 5/11/2018. George Porter May 9 and 11, 2018

TWO-PHASE COMMIT ATTRIBUTION 5/11/2018. George Porter May 9 and 11, 2018 TWO-PHASE COMMIT George Porter May 9 and 11, 2018 ATTRIBUTION These slides are released under an Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0) Creative Commons license These slides

More information

416 Distributed Systems. Distributed File Systems 2 Jan 20, 2016

416 Distributed Systems. Distributed File Systems 2 Jan 20, 2016 416 Distributed Systems Distributed File Systems 2 Jan 20, 2016 1 Outline Why Distributed File Systems? Basic mechanisms for building DFSs Using NFS and AFS as examples NFS: network file system AFS: andrew

More information

Lecture 14: Distributed File Systems. Contents. Basic File Service Architecture. CDK: Chapter 8 TVS: Chapter 11

Lecture 14: Distributed File Systems. Contents. Basic File Service Architecture. CDK: Chapter 8 TVS: Chapter 11 Lecture 14: Distributed File Systems CDK: Chapter 8 TVS: Chapter 11 Contents General principles Sun Network File System (NFS) Andrew File System (AFS) 18-Mar-11 COMP28112 Lecture 14 2 Basic File Service

More information

416 Distributed Systems. Distributed File Systems 1: NFS Sep 18, 2018

416 Distributed Systems. Distributed File Systems 1: NFS Sep 18, 2018 416 Distributed Systems Distributed File Systems 1: NFS Sep 18, 2018 1 Outline Why Distributed File Systems? Basic mechanisms for building DFSs Using NFS and AFS as examples NFS: network file system AFS:

More information

Chapter 12 Distributed File Systems. Copyright 2015 Prof. Amr El-Kadi

Chapter 12 Distributed File Systems. Copyright 2015 Prof. Amr El-Kadi Chapter 12 Distributed File Systems Copyright 2015 Prof. Amr El-Kadi Outline Introduction File Service Architecture Sun Network File System Recent Advances Copyright 2015 Prof. Amr El-Kadi 2 Introduction

More information

Background. 20: Distributed File Systems. DFS Structure. Naming and Transparency. Naming Structures. Naming Schemes Three Main Approaches

Background. 20: Distributed File Systems. DFS Structure. Naming and Transparency. Naming Structures. Naming Schemes Three Main Approaches Background 20: Distributed File Systems Last Modified: 12/4/2002 9:26:20 PM Distributed file system (DFS) a distributed implementation of the classical time-sharing model of a file system, where multiple

More information

DFS Case Studies, Part 1

DFS Case Studies, Part 1 DFS Case Studies, Part 1 An abstract "ideal" model and Sun's NFS An Abstract Model File Service Architecture an abstract architectural model that is designed to enable a stateless implementation of the

More information

Operating Systems. 18. Remote Procedure Calls. Paul Krzyzanowski. Rutgers University. Spring /20/ Paul Krzyzanowski

Operating Systems. 18. Remote Procedure Calls. Paul Krzyzanowski. Rutgers University. Spring /20/ Paul Krzyzanowski Operating Systems 18. Remote Procedure Calls Paul Krzyzanowski Rutgers University Spring 2015 4/20/2015 2014-2015 Paul Krzyzanowski 1 Remote Procedure Calls 2 Problems with the sockets API The sockets

More information

DISTRIBUTED FILE SYSTEMS & NFS

DISTRIBUTED FILE SYSTEMS & NFS DISTRIBUTED FILE SYSTEMS & NFS Dr. Yingwu Zhu File Service Types in Client/Server File service a specification of what the file system offers to clients File server The implementation of a file service

More information

How do modules communicate? Enforcing modularity. Modularity: client-server organization. Tradeoffs of enforcing modularity

How do modules communicate? Enforcing modularity. Modularity: client-server organization. Tradeoffs of enforcing modularity How do modules communicate? Enforcing modularity Within the same address space and protection domain local procedure calls Across protection domain system calls Over a connection client/server programming

More information

CSci Introduction to Distributed Systems. Communication: RPC

CSci Introduction to Distributed Systems. Communication: RPC CSci 5105 Introduction to Distributed Systems Communication: RPC Today Remote Procedure Call Chapter 4 TVS Last Time Architectural styles RPC generally mandates client-server but not always Interprocess

More information

Filesystems Lecture 13

Filesystems Lecture 13 Filesystems Lecture 13 Credit: Uses some slides by Jehan-Francois Paris, Mark Claypool and Jeff Chase DESIGN AND IMPLEMENTATION OF THE SUN NETWORK FILESYSTEM R. Sandberg, D. Goldberg S. Kleinman, D. Walsh,

More information

DISTRIBUTED SYSTEMS [COMP9243] Lecture 9b: Distributed File Systems INTRODUCTION. Transparency: Flexibility: Slide 1. Slide 3.

DISTRIBUTED SYSTEMS [COMP9243] Lecture 9b: Distributed File Systems INTRODUCTION. Transparency: Flexibility: Slide 1. Slide 3. CHALLENGES Transparency: Slide 1 DISTRIBUTED SYSTEMS [COMP9243] Lecture 9b: Distributed File Systems ➀ Introduction ➁ NFS (Network File System) ➂ AFS (Andrew File System) & Coda ➃ GFS (Google File System)

More information

MODELS OF DISTRIBUTED SYSTEMS

MODELS OF DISTRIBUTED SYSTEMS Distributed Systems Fö 2/3-1 Distributed Systems Fö 2/3-2 MODELS OF DISTRIBUTED SYSTEMS Basic Elements 1. Architectural Models 2. Interaction Models Resources in a distributed system are shared between

More information

MODELS OF DISTRIBUTED SYSTEMS

MODELS OF DISTRIBUTED SYSTEMS Distributed Systems Fö 2/3-1 Distributed Systems Fö 2/3-2 MODELS OF DISTRIBUTED SYSTEMS Basic Elements 1. Architectural Models 2. Interaction Models Resources in a distributed system are shared between

More information

Distributed Systems. Lec 9: Distributed File Systems NFS, AFS. Slide acks: Dave Andersen

Distributed Systems. Lec 9: Distributed File Systems NFS, AFS. Slide acks: Dave Andersen Distributed Systems Lec 9: Distributed File Systems NFS, AFS Slide acks: Dave Andersen (http://www.cs.cmu.edu/~dga/15-440/f10/lectures/08-distfs1.pdf) 1 VFS and FUSE Primer Some have asked for some background

More information

Large Systems: Design + Implementation: Communication Coordination Replication. Image (c) Facebook

Large Systems: Design + Implementation: Communication Coordination Replication. Image (c) Facebook Large Systems: Design + Implementation: Image (c) Facebook Communication Coordination Replication Credits Slides largely based on Distributed Systems, 3rd Edition Maarten van Steen Andrew S. Tanenbaum

More information

Filesystems Lecture 11

Filesystems Lecture 11 Filesystems Lecture 11 Credit: Uses some slides by Jehan-Francois Paris, Mark Claypool and Jeff Chase DESIGN AND IMPLEMENTATION OF THE SUN NETWORK FILESYSTEM R. Sandberg, D. Goldberg S. Kleinman, D. Walsh,

More information

Distributed File Systems. Directory Hierarchy. Transfer Model

Distributed File Systems. Directory Hierarchy. Transfer Model Distributed File Systems Ken Birman Goal: view a distributed system as a file system Storage is distributed Web tries to make world a collection of hyperlinked documents Issues not common to usual file

More information

ò Server can crash or be disconnected ò Client can crash or be disconnected ò How to coordinate multiple clients accessing same file?

ò Server can crash or be disconnected ò Client can crash or be disconnected ò How to coordinate multiple clients accessing same file? Big picture (from Sandberg et al.) NFS Don Porter CSE 506 Intuition Challenges Instead of translating VFS requests into hard drive accesses, translate them into remote procedure calls to a server Simple,

More information

Distributed Systems 8. Remote Procedure Calls

Distributed Systems 8. Remote Procedure Calls Distributed Systems 8. Remote Procedure Calls Paul Krzyzanowski pxk@cs.rutgers.edu 10/1/2012 1 Problems with the sockets API The sockets interface forces a read/write mechanism Programming is often easier

More information

NFS. Don Porter CSE 506

NFS. Don Porter CSE 506 NFS Don Porter CSE 506 Big picture (from Sandberg et al.) Intuition ò Instead of translating VFS requests into hard drive accesses, translate them into remote procedure calls to a server ò Simple, right?

More information

Primary/Backup. CS6450: Distributed Systems Lecture 3/4. Ryan Stutsman

Primary/Backup. CS6450: Distributed Systems Lecture 3/4. Ryan Stutsman Primary/Backup CS6450: Distributed Systems Lecture 3/4 Ryan Stutsman Material taken/derived from Princeton COS-418 materials created by Michael Freedman and Kyle Jamieson at Princeton University. Licensed

More information

Remote Procedure Call

Remote Procedure Call Remote Procedure Call Remote Procedure Call Integrate network communication with programming language Procedure call is well understood implementation use Control transfer Data transfer Goals Easy make

More information

CS454/654 Midterm Exam Fall 2004

CS454/654 Midterm Exam Fall 2004 CS454/654 Midterm Exam Fall 2004 (3 November 2004) Question 1: Distributed System Models (18 pts) (a) [4 pts] Explain two benefits of middleware to distributed system programmers, providing an example

More information

Distributed Systems. How do regular procedure calls work in programming languages? Problems with sockets RPC. Regular procedure calls

Distributed Systems. How do regular procedure calls work in programming languages? Problems with sockets RPC. Regular procedure calls Problems with sockets Distributed Systems Sockets interface is straightforward [connect] read/write [disconnect] Remote Procedure Calls BUT it forces read/write mechanism We usually use a procedure call

More information

Distributed Systems. Lec 10: Distributed File Systems GFS. Slide acks: Sanjay Ghemawat, Howard Gobioff, and Shun-Tak Leung

Distributed Systems. Lec 10: Distributed File Systems GFS. Slide acks: Sanjay Ghemawat, Howard Gobioff, and Shun-Tak Leung Distributed Systems Lec 10: Distributed File Systems GFS Slide acks: Sanjay Ghemawat, Howard Gobioff, and Shun-Tak Leung 1 Distributed File Systems NFS AFS GFS Some themes in these classes: Workload-oriented

More information

CSCI-1680 RPC and Data Representation. Rodrigo Fonseca

CSCI-1680 RPC and Data Representation. Rodrigo Fonseca CSCI-1680 RPC and Data Representation Rodrigo Fonseca Today Defining Protocols RPC IDL Problem Two programs want to communicate: must define the protocol We have seen many of these, across all layers E.g.,

More information

Introduction. Chapter 8: Distributed File Systems

Introduction. Chapter 8: Distributed File Systems Chapter 8: Distributed File Systems Summary Introduction File system persistent storage Distributed file system persistent storage information sharing similar (in some case better) performance and reliability

More information

Dr. Robert N. M. Watson

Dr. Robert N. M. Watson Distributed systems Lecture 2: The Network File System (NFS) and Object Oriented Middleware (OOM) Dr. Robert N. M. Watson 1 Last time Distributed systems are everywhere Challenges including concurrency,

More information

Distributed File Systems. CS432: Distributed Systems Spring 2017

Distributed File Systems. CS432: Distributed Systems Spring 2017 Distributed File Systems Reading Chapter 12 (12.1-12.4) [Coulouris 11] Chapter 11 [Tanenbaum 06] Section 4.3, Modern Operating Systems, Fourth Ed., Andrew S. Tanenbaum Section 11.4, Operating Systems Concept,

More information

DISTRIBUTED COMPUTER SYSTEMS

DISTRIBUTED COMPUTER SYSTEMS DISTRIBUTED COMPUTER SYSTEMS Communication Fundamental REMOTE PROCEDURE CALL Dr. Jack Lange Computer Science Department University of Pittsburgh Fall 2015 Outline Communication Architecture Fundamentals

More information

Operating Systems Design Exam 3 Review: Spring Paul Krzyzanowski

Operating Systems Design Exam 3 Review: Spring Paul Krzyzanowski Operating Systems Design Exam 3 Review: Spring 2012 Paul Krzyzanowski pxk@cs.rutgers.edu 1 Question 1 An Ethernet device driver implements the: (a) Data Link layer. (b) Network layer. (c) Transport layer.

More information

System that permanently stores data Usually layered on top of a lower-level physical storage medium Divided into logical units called files

System that permanently stores data Usually layered on top of a lower-level physical storage medium Divided into logical units called files System that permanently stores data Usually layered on top of a lower-level physical storage medium Divided into logical units called files Addressable by a filename ( foo.txt ) Usually supports hierarchical

More information

Remote Procedure Call. Tom Anderson

Remote Procedure Call. Tom Anderson Remote Procedure Call Tom Anderson Why Are Distributed Systems Hard? Asynchrony Different nodes run at different speeds Messages can be unpredictably, arbitrarily delayed Failures (partial and ambiguous)

More information

CHAPTER - 4 REMOTE COMMUNICATION

CHAPTER - 4 REMOTE COMMUNICATION CHAPTER - 4 REMOTE COMMUNICATION Topics Introduction to Remote Communication Remote Procedural Call Basics RPC Implementation RPC Communication Other RPC Issues Case Study: Sun RPC Remote invocation Basics

More information

GFS: The Google File System

GFS: The Google File System GFS: The Google File System Brad Karp UCL Computer Science CS GZ03 / M030 24 th October 2014 Motivating Application: Google Crawl the whole web Store it all on one big disk Process users searches on one

More information

The Google File System

The Google File System October 13, 2010 Based on: S. Ghemawat, H. Gobioff, and S.-T. Leung: The Google file system, in Proceedings ACM SOSP 2003, Lake George, NY, USA, October 2003. 1 Assumptions Interface Architecture Single

More information

C 1. Recap: Finger Table. CSE 486/586 Distributed Systems Remote Procedure Call. Chord: Node Joins and Leaves. Recall? Socket API

C 1. Recap: Finger Table. CSE 486/586 Distributed Systems Remote Procedure Call. Chord: Node Joins and Leaves. Recall? Socket API Recap: Finger Table Finding a using fingers CSE 486/586 Distributed Systems Remote Procedure Call Steve Ko Computer Sciences and Engineering University at Buffalo N102" 86 + 2 4! N86" 20 +

More information

Distributed File Systems. Distributed Systems IT332

Distributed File Systems. Distributed Systems IT332 Distributed File Systems Distributed Systems IT332 2 Outline Introduction Network File System (NFS) 3 File System Basics A file is a named collection of logically related data A file system Provides a

More information

COMMUNICATION IN DISTRIBUTED SYSTEMS

COMMUNICATION IN DISTRIBUTED SYSTEMS Distributed Systems Fö 3-1 Distributed Systems Fö 3-2 COMMUNICATION IN DISTRIBUTED SYSTEMS Communication Models and their Layered Implementation 1. Communication System: Layered Implementation 2. Network

More information

416 Distributed Systems. RPC Day 2 Jan 11, 2017

416 Distributed Systems. RPC Day 2 Jan 11, 2017 416 Distributed Systems RPC Day 2 Jan 11, 2017 1 Last class Finish networks review Fate sharing End-to-end principle UDP versus TCP; blocking sockets IP thin waist, smart end-hosts, dumb (stateless) network

More information

Distributed file systems

Distributed file systems Distributed file systems Vladimir Vlassov and Johan Montelius KTH ROYAL INSTITUTE OF TECHNOLOGY What s a file system Functionality: persistent storage of files: create and delete manipulating a file: read

More information

Today: Distributed File Systems

Today: Distributed File Systems Last Class: Distributed Systems and RPCs Servers export procedures for some set of clients to call To use the server, the client does a procedure call OS manages the communication Lecture 22, page 1 Today:

More information

Distributed File Systems: Design Comparisons

Distributed File Systems: Design Comparisons Distributed File Systems: Design Comparisons David Eckhardt, Bruce Maggs slides used and modified with permission from Pei Cao s lectures in Stanford Class CS-244B 1 Other Materials Used 15-410 Lecture

More information

Distributed systems. Lecture 6: distributed transactions, elections, consensus and replication. Malte Schwarzkopf

Distributed systems. Lecture 6: distributed transactions, elections, consensus and replication. Malte Schwarzkopf Distributed systems Lecture 6: distributed transactions, elections, consensus and replication Malte Schwarzkopf Last time Saw how we can build ordered multicast Messages between processes in a group Need

More information

Implementing caches. Example. Client. N. America. Client System + Caches. Asia. Client. Africa. Client. Client. Client. Client. Client.

Implementing caches. Example. Client. N. America. Client System + Caches. Asia. Client. Africa. Client. Client. Client. Client. Client. N. America Example Implementing caches Doug Woos Asia System + Caches Africa put (k2, g(get(k1)) put (k2, g(get(k1)) What if clients use a sharded key-value store to coordinate their output? Or CPUs use

More information

Lecture 15: Network File Systems

Lecture 15: Network File Systems Lab 3 due 12/1 Lecture 15: Network File Systems CSE 120: Principles of Operating Systems Alex C. Snoeren Network File System Simple idea: access disks attached to other computers Share the disk with many

More information

Distributed File Systems II

Distributed File Systems II Distributed File Systems II To do q Very-large scale: Google FS, Hadoop FS, BigTable q Next time: Naming things GFS A radically new environment NFS, etc. Independence Small Scale Variety of workloads Cooperation

More information

GFS: The Google File System. Dr. Yingwu Zhu

GFS: The Google File System. Dr. Yingwu Zhu GFS: The Google File System Dr. Yingwu Zhu Motivating Application: Google Crawl the whole web Store it all on one big disk Process users searches on one big CPU More storage, CPU required than one PC can

More information

The transaction. Defining properties of transactions. Failures in complex systems propagate. Concurrency Control, Locking, and Recovery

The transaction. Defining properties of transactions. Failures in complex systems propagate. Concurrency Control, Locking, and Recovery Failures in complex systems propagate Concurrency Control, Locking, and Recovery COS 418: Distributed Systems Lecture 17 Say one bit in a DRAM fails: flips a bit in a kernel memory write causes a kernel

More information

AN OVERVIEW OF DISTRIBUTED FILE SYSTEM Aditi Khazanchi, Akshay Kanwar, Lovenish Saluja

AN OVERVIEW OF DISTRIBUTED FILE SYSTEM Aditi Khazanchi, Akshay Kanwar, Lovenish Saluja www.ijecs.in International Journal Of Engineering And Computer Science ISSN:2319-7242 Volume 2 Issue 10 October, 2013 Page No. 2958-2965 Abstract AN OVERVIEW OF DISTRIBUTED FILE SYSTEM Aditi Khazanchi,

More information

CS 537: Introduction to Operating Systems Fall 2015: Midterm Exam #4 Tuesday, December 15 th 11:00 12:15. Advanced Topics: Distributed File Systems

CS 537: Introduction to Operating Systems Fall 2015: Midterm Exam #4 Tuesday, December 15 th 11:00 12:15. Advanced Topics: Distributed File Systems CS 537: Introduction to Operating Systems Fall 2015: Midterm Exam #4 Tuesday, December 15 th 11:00 12:15 Advanced Topics: Distributed File Systems SOLUTIONS This exam is closed book, closed notes. All

More information

CSCI-1680 RPC and Data Representation John Jannotti

CSCI-1680 RPC and Data Representation John Jannotti CSCI-1680 RPC and Data Representation John Jannotti Original Slides from Rodrigo Fonseca Today Defining Protocols RPC IDL Problem Two programs want to communicate: must define the protocol We have seen

More information

Transport Protocols. CSCI 363 Computer Networks Department of Computer Science

Transport Protocols. CSCI 363 Computer Networks Department of Computer Science Transport Protocols CSCI 363 Computer Networks Department of Computer Science Expected Properties Guaranteed message delivery Message order preservation No duplication of messages Support for arbitrarily

More information

Causal Consistency and Two-Phase Commit

Causal Consistency and Two-Phase Commit Causal Consistency and Two-Phase Commit CS 240: Computing Systems and Concurrency Lecture 16 Marco Canini Credits: Michael Freedman and Kyle Jamieson developed much of the original material. Consistency

More information

Distributed Systems Exam 1 Review Paul Krzyzanowski. Rutgers University. Fall 2016

Distributed Systems Exam 1 Review Paul Krzyzanowski. Rutgers University. Fall 2016 Distributed Systems 2015 Exam 1 Review Paul Krzyzanowski Rutgers University Fall 2016 1 Question 1 Why did the use of reference counting for remote objects prove to be impractical? Explain. It s not fault

More information

CONCURRENCY CONTROL, TRANSACTIONS, LOCKING, AND RECOVERY

CONCURRENCY CONTROL, TRANSACTIONS, LOCKING, AND RECOVERY CONCURRENCY CONTROL, TRANSACTIONS, LOCKING, AND RECOVERY George Porter May 18, 2018 ATTRIBUTION These slides are released under an Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0) Creative

More information

Distributed File Systems. File Systems

Distributed File Systems. File Systems Module 5 - Distributed File Systems File Systems File system Operating System interface to disk storage File system attributes (Metadata) File length Creation timestamp Read timestamp Write timestamp Attribute

More information

THE ANDREW FILE SYSTEM BY: HAYDER HAMANDI

THE ANDREW FILE SYSTEM BY: HAYDER HAMANDI THE ANDREW FILE SYSTEM BY: HAYDER HAMANDI PRESENTATION OUTLINE Brief History AFSv1 How it works Drawbacks of AFSv1 Suggested Enhancements AFSv2 Newly Introduced Notions Callbacks FID Cache Consistency

More information

Remote Invocation. Today. Next time. l Overlay networks and P2P. l Request-reply, RPC, RMI

Remote Invocation. Today. Next time. l Overlay networks and P2P. l Request-reply, RPC, RMI Remote Invocation Today l Request-reply, RPC, RMI Next time l Overlay networks and P2P Types of communication " Persistent or transient Persistent A submitted message is stored until delivered Transient

More information

Distributed Objects and Remote Invocation. Programming Models for Distributed Applications

Distributed Objects and Remote Invocation. Programming Models for Distributed Applications Distributed Objects and Remote Invocation Programming Models for Distributed Applications Extending Conventional Techniques The remote procedure call model is an extension of the conventional procedure

More information

A Report on RMI and RPC Submitted by Sudharshan Reddy B

A Report on RMI and RPC Submitted by Sudharshan Reddy B A Report on RMI and RPC Submitted by Sudharshan Reddy B Abstract: This report mainly explains the RMI and RPC technologies. In the first part of the paper the RMI technology is briefly explained and in

More information

GFS Overview. Design goals/priorities Design for big-data workloads Huge files, mostly appends, concurrency, huge bandwidth Design for failures

GFS Overview. Design goals/priorities Design for big-data workloads Huge files, mostly appends, concurrency, huge bandwidth Design for failures GFS Overview Design goals/priorities Design for big-data workloads Huge files, mostly appends, concurrency, huge bandwidth Design for failures Interface: non-posix New op: record appends (atomicity matters,

More information

CS 167 Final Exam Solutions

CS 167 Final Exam Solutions CS 167 Final Exam Solutions Spring 2018 Do all questions. 1. [20%] This question concerns a system employing a single (single-core) processor running a Unix-like operating system, in which interrupts are

More information

Primary-Backup Replication

Primary-Backup Replication Primary-Backup Replication CS 240: Computing Systems and Concurrency Lecture 7 Marco Canini Credits: Michael Freedman and Kyle Jamieson developed much of the original material. Simplified Fault Tolerance

More information

Communication. Distributed Systems Santa Clara University 2016

Communication. Distributed Systems Santa Clara University 2016 Communication Distributed Systems Santa Clara University 2016 Protocol Stack Each layer has its own protocol Can make changes at one layer without changing layers above or below Use well defined interfaces

More information

Distributed Systems. 03. Remote Procedure Calls. Paul Krzyzanowski. Rutgers University. Fall 2017

Distributed Systems. 03. Remote Procedure Calls. Paul Krzyzanowski. Rutgers University. Fall 2017 Distributed Systems 03. Remote Procedure Calls Paul Krzyzanowski Rutgers University Fall 2017 1 Socket-based communication Socket API: all we get from the OS to access the network Socket = distinct end-to-end

More information

Introduction. Distributed file system. File system modules. UNIX file system operations. File attribute record structure

Introduction. Distributed file system. File system modules. UNIX file system operations. File attribute record structure Introduction Distributed File Systems B.Ramamurthy 9/28/2004 B.Ramamurthy 1 Distributed file systems support the sharing of information in the form of files throughout the intranet. A distributed file

More information

416 Distributed Systems. RPC Day 2 Jan 12, 2018

416 Distributed Systems. RPC Day 2 Jan 12, 2018 416 Distributed Systems RPC Day 2 Jan 12, 2018 1 Last class Finish networks review Fate sharing End-to-end principle UDP versus TCP; blocking sockets IP thin waist, smart end-hosts, dumb (stateless) network

More information

a. Under overload, whole network collapsed iii. How do you make an efficient high-level communication mechanism? 1. Similar to using compiler instead

a. Under overload, whole network collapsed iii. How do you make an efficient high-level communication mechanism? 1. Similar to using compiler instead RPC 1. Project proposals due tonight 2. Exam on Tuesday in class a. Open note, open papers b. Nothing else (no internet, no extra papers) 3. Notes from Creator: a. VMware ESX: Carl Waldspurger i. Still

More information

Operating Systems. Week 13 Recitation: Exam 3 Preview Review of Exam 3, Spring Paul Krzyzanowski. Rutgers University.

Operating Systems. Week 13 Recitation: Exam 3 Preview Review of Exam 3, Spring Paul Krzyzanowski. Rutgers University. Operating Systems Week 13 Recitation: Exam 3 Preview Review of Exam 3, Spring 2014 Paul Krzyzanowski Rutgers University Spring 2015 April 22, 2015 2015 Paul Krzyzanowski 1 Question 1 A weakness of using

More information

Defining properties of transactions

Defining properties of transactions Transactions: ACID, Concurrency control (2P, OCC) Intro to distributed txns The transaction Definition: A unit of work: May consist of multiple data accesses or updates Must commit or abort as a single

More information

CS 416: Operating Systems Design April 22, 2015

CS 416: Operating Systems Design April 22, 2015 Question 1 A weakness of using NAND flash memory for use as a file system is: (a) Stored data wears out over time, requiring periodic refreshing. Operating Systems Week 13 Recitation: Exam 3 Preview Review

More information

File Systems: Consistency Issues

File Systems: Consistency Issues File Systems: Consistency Issues File systems maintain many data structures Free list/bit vector Directories File headers and inode structures res Data blocks File Systems: Consistency Issues All data

More information

Distributed File Systems I

Distributed File Systems I Distributed File Systems I To do q Basic distributed file systems q Two classical examples q A low-bandwidth file system xkdc Distributed File Systems Early DFSs come from the late 70s early 80s Support

More information

Today: Distributed File Systems. Naming and Transparency

Today: Distributed File Systems. Naming and Transparency Last Class: Distributed Systems and RPCs Today: Distributed File Systems Servers export procedures for some set of clients to call To use the server, the client does a procedure call OS manages the communication

More information

Page 1. Goals for Today" Remote Procedure Call" Raw messaging is a bit too low-level for programming! RPC Details"

Page 1. Goals for Today Remote Procedure Call Raw messaging is a bit too low-level for programming! RPC Details Goals for Today" CS162 Operating Systems and Systems Programming Lecture 23 Remote Procedure Call" Remote Procedure Call Examples using RPC and caching Distributed File Systems World-Wide Web April 24,

More information

Chapter 8: Distributed File Systems. Introduction File Service Architecture Sun Network File System The Andrew File System Recent advances Summary

Chapter 8: Distributed File Systems. Introduction File Service Architecture Sun Network File System The Andrew File System Recent advances Summary Chapter 8: Distributed File Systems Introduction File Service Architecture Sun Network File System The Andrew File System Recent advances Summary Introduction File system persistent storage Distributed

More information

Project 2: Part 1: RPC and Locks

Project 2: Part 1: RPC and Locks Project 2: Part 1: RPC and Locks Due: 11:59PM Thursday, October 14, 2010 1 Introduction In this series of labs, you will implement a fully functional distributed file server with the Frangipani architecture

More information

Lecture 19. NFS: Big Picture. File Lookup. File Positioning. Stateful Approach. Version 4. NFS March 4, 2005

Lecture 19. NFS: Big Picture. File Lookup. File Positioning. Stateful Approach. Version 4. NFS March 4, 2005 NFS: Big Picture Lecture 19 NFS March 4, 2005 File Lookup File Positioning client request root handle handle Hr lookup a in Hr handle Ha lookup b in Ha handle Hb lookup c in Hb handle Hc server time Server

More information

Today: Distributed File Systems!

Today: Distributed File Systems! Last Class: Distributed Systems and RPCs! Servers export procedures for some set of clients to call To use the server, the client does a procedure call OS manages the communication Lecture 25, page 1 Today:

More information

C 1. Recap. CSE 486/586 Distributed Systems Distributed File Systems. Traditional Distributed File Systems. Local File Systems.

C 1. Recap. CSE 486/586 Distributed Systems Distributed File Systems. Traditional Distributed File Systems. Local File Systems. Recap CSE 486/586 Distributed Systems Distributed File Systems Optimistic quorum Distributed transactions with replication One copy serializability Primary copy replication Read-one/write-all replication

More information

CS 417 9/18/17. Paul Krzyzanowski 1. Socket-based communication. Distributed Systems 03. Remote Procedure Calls. Sample SMTP Interaction

CS 417 9/18/17. Paul Krzyzanowski 1. Socket-based communication. Distributed Systems 03. Remote Procedure Calls. Sample SMTP Interaction Socket-based communication Distributed Systems 03. Remote Procedure Calls Socket API: all we get from the to access the network Socket = distinct end-to-end communication channels Read/write model Line-oriented,

More information

Byzantine Fault Tolerance

Byzantine Fault Tolerance Byzantine Fault Tolerance CS6450: Distributed Systems Lecture 10 Ryan Stutsman Material taken/derived from Princeton COS-418 materials created by Michael Freedman and Kyle Jamieson at Princeton University.

More information

CSCI-1680 RPC and Data Representation. Rodrigo Fonseca

CSCI-1680 RPC and Data Representation. Rodrigo Fonseca CSCI-1680 RPC and Data Representation Rodrigo Fonseca Administrivia TCP: talk to the TAs if you still have questions! ursday: HW3 out Final Project (out 4/21) Implement a WebSockets server an efficient

More information