25.02.2013 Views

TCP/IP Tutorial and Technical Overview - IBM Redbooks

TCP/IP Tutorial and Technical Overview - IBM Redbooks

TCP/IP Tutorial and Technical Overview - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

► Compound comm<strong>and</strong>s for performance, which execute lookup <strong>and</strong> read<br />

comm<strong>and</strong>s in one operation<br />

► Server delegation of status <strong>and</strong> locks to a given client, improving caching <strong>and</strong><br />

performance<br />

► Internationalization in the form of 16/32-bit character support for file names by<br />

means of the UTF-8 encoding<br />

14.4.6 Cache File System<br />

14.4.7 WebNFS<br />

The Cache File System (CacheFS) provides the ability to cache one file<br />

system on another. CacheFS accomplishes caching by mounting remote<br />

directories on the local system. Whenever the client needs a mounted file, it first<br />

refers to local cache. If the requested file exists, it is accessed locally. Otherwise,<br />

the file is retrieved from the server using NFS. If reading the file sequentially, the<br />

future data is retrieved for future access to the cache, increasing the file access<br />

speed. Whether or not the cache is stored in r<strong>and</strong>om access memory (RAM) or<br />

disk is implementation specific. However, if the size the cache is not prohibitive,<br />

storing the cache on RAM is preferred because it provides much faster access.<br />

CacheFS periodically checks the cached data for the data accuracy, sweeps out<br />

the inaccurate data from the cache, <strong>and</strong> retrieves the current data from the<br />

server to the cache. Although this reduces server <strong>and</strong> network loads, improving<br />

performance for clients on slow links, CacheFS is only proper for the cases in<br />

which the files are not changed frequently.<br />

WebNFS is an enhanced version of the st<strong>and</strong>ard NFS. WebNFS enables<br />

clients to access files over wide area networks (WANs). Because, as a transport<br />

protocol, UDP is fast for local area networks (LANs), many implementations use<br />

UDP for the st<strong>and</strong>ard NFS. However, a <strong>TCP</strong> connection is much more reliable for<br />

wide area networks. Most of the new NFS implementations support <strong>TCP</strong> <strong>and</strong><br />

UDP. WebNFS clients first attempt to use a <strong>TCP</strong> connection. If it fails or is<br />

refused, it then uses a UDP connection. WebNFS can easily recover from<br />

dropped lines <strong>and</strong> recover the lost data.<br />

Path name evaluation<br />

The st<strong>and</strong>ard NFS version 3 is designed for LANs. The amount of time for each<br />

LOOKUP request is not significant. As a result of this, the NFS protocol permits<br />

only one single path name request at a time. When we consider a WAN or the<br />

Internet, to request the path name <strong>and</strong> evaluate the path name might cause<br />

significant delays. This process is very expensive, especially for files that are<br />

Chapter 14. File-related protocols 545

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

Saved successfully!

Ooh no, something went wrong!