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...

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

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

41.5 Comm<strong>and</strong>s <strong>at</strong> a Glance<strong>The</strong> following comm<strong>and</strong>s on the PackMimeHTTP class can be accessed from OTcl:[new PackMimeHTTP]Cre<strong>at</strong>es a new PackMimeHTTP object.$packmime startStart gener<strong>at</strong>ing connectio<strong>ns</strong>$packmime stopStop gener<strong>at</strong>ing new connectio<strong>ns</strong>$packmime set-client Associ<strong>at</strong>es the node with the PackMimeHTTP client cloud$packmime set-server Associ<strong>at</strong>es the node with the PackMimeHTTP server cloud$packmime set-r<strong>at</strong>e Set the average number of new connectio<strong>ns</strong> started per second$packmime set-req_size Set the HTTP request size distribution$packmime set-rsp_size Set the HTTP respo<strong>ns</strong>e size distribution$packmime set-flow_arrive Set the time between two co<strong>ns</strong>ecutive connectio<strong>ns</strong> starting$packmime set-server_delay Set the web server delay for fetching pages$packmime set-run Set the run number so th<strong>at</strong> the RNGs used for the r<strong>and</strong>om variables will use the same substream (see Chapter 25 on RNG formore details).$packmime get-pairsReturn the number of completed HTTP request-respo<strong>ns</strong>e pairs. See tcl/ex/packmime/pm-end-pairs.tcl for anexample of using get-pairs to end the simul<strong>at</strong>ion after a certain number of pairs have completed.$packmime set-TCP Sets the TCP type (Reno, Newreno, or Sack) for all connectio<strong>ns</strong> in the client <strong>and</strong> server clouds - Reno is the defaultHTTP/1.1-Specific Comm<strong>and</strong>s$packmime set-http-1.1Use HTTP/1.1 distributio<strong>ns</strong> for persistent connectio<strong>ns</strong> i<strong>ns</strong>tead of HTTP/1.0.$packmime no-pm-persistent-reqszBy default, PackMime-HTTP sets all request sizes in a persistent connection to be the same. This option tur<strong>ns</strong> th<strong>at</strong> behavioroff <strong>and</strong> samples a new request size from the request size distribution for each request in a persistent connection.368

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

Saved successfully!

Ooh no, something went wrong!