12.07.2015 Views

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

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

Object Type Event Type Explain<strong>at</strong>ionE HIT Cache hit. PageSererID is the id of the “owner” of the page.E MISS Cache miss. In this case the cache will send a request to the server to fetch the page.E IMS If-Modified-Since. Used by TTL procotols to valid<strong>at</strong>e an expired page.E REF Page refetch. Used by invalid<strong>at</strong>ion protocols to refetch an invalid<strong>at</strong>ed page.E UPD Page upd<strong>at</strong>e. Used by invalid<strong>at</strong>ion protocols to “push” upd<strong>at</strong>esfrom parent cache to children caches.E SINV Send invalid<strong>at</strong>ion.E GINV Get invalid<strong>at</strong>ion.E SPF Send a pro formaE RPF Receive a pro formaE ENT Enter a page into local page cache.C GET Client sends a request for a page.C STA Client gets a stale hit. OrigModTime is the modific<strong>at</strong>ion timein the web server, CurrModTime is the local page’s modific<strong>at</strong>ion time.C RCV Client receives a page.S SND Server send a respo<strong>ns</strong>e.S UPD Server pushes a page upd<strong>at</strong>e to its “primary cache”. Used by invalid<strong>at</strong>ion protocol only.S INV Server sends an invalid<strong>at</strong>ion message. Used by invalid<strong>at</strong>ion protocol only.S MOD Server modified a page. <strong>The</strong> page will be modified next <strong>at</strong> 〈NextModifyTime〉.39.10 Comm<strong>and</strong>s <strong>at</strong> a glanceFollowing are the web cache rel<strong>at</strong>ed comm<strong>and</strong>s:set server [new Http/Server ]This cre<strong>at</strong>es an i<strong>ns</strong>tance of an Http server <strong>at</strong> the specified . An i<strong>ns</strong>tance of the simul<strong>at</strong>or needs to be passedas an argument.set client [new Http/Client ]This cre<strong>at</strong>es an i<strong>ns</strong>tance of a Http client <strong>at</strong> the given .set cache [new Http/Cache This comm<strong>and</strong> cre<strong>at</strong>es a cache.set pgp [new PagePool/]This cre<strong>at</strong>es a pagepool of the type specified. <strong>The</strong> different types of pagepool currently implemented are:PagePool/M<strong>at</strong>h, PagePool/CompM<strong>at</strong>h, PagePool/ProxyTrace <strong>and</strong> PagePool/Client. See section 39.4 for details on Otclinterface for each type of Pagepool.$server set-page-gener<strong>at</strong>or $server log <strong>The</strong> above comm<strong>and</strong>s co<strong>ns</strong>ist of server configur<strong>at</strong>ion. First the server is <strong>at</strong>tached to a central page pool . Next it is<strong>at</strong>tached to a log file.client set-page-gener<strong>at</strong>or $client set-interval-gener<strong>at</strong>or 358

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

Saved successfully!

Ooh no, something went wrong!