20.01.2014 Views

Lectures notes for 2010 - KTH

Lectures notes for 2010 - KTH

Lectures notes for 2010 - KTH

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

NFS Statelessness<br />

NFS is designed to be stateless<br />

• the server does not keep track of what clients are accessing which files<br />

• there are no open or close procedures; just LOOKUP<br />

• being stateless simplifies server crash recovery<br />

• clients don’t know if the server crashes<br />

• only the client maintains state<br />

Most procedures (GETATTR, STATFS, LOOKUP, READ, WRITE, READIR)<br />

are idempotent (i.e., can be executed more than once by the server with the same<br />

result).<br />

Some (CREATE, REMOVE, RENAME, SYMLINK, MKDIR, RMDIR) are not.<br />

SETATTR is idempotent unless it is truncating a file.<br />

To handle non-idempotent requests - most servers use recent-reply cache,<br />

checking their cache to see if they have already per<strong>for</strong>med the operation and<br />

simply return the same value (as be<strong>for</strong>e).<br />

Maguire Network File System (NFS) 5: 68 of 77<br />

maguire@kth.se <strong>2010</strong>.03.21 Internetworking/Internetteknik

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!