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.

Null Objects Null objects are a subclass of agent objects th<strong>at</strong> implement a traffic sink. <strong>The</strong>y inherit all of the generic agentobject functionality. <strong>The</strong>re are no methods specific to this object. <strong>The</strong> st<strong>at</strong>e variables are:• sport_• dport_LossMonitor Objects LossMonitor objects are a subclass of agent objects th<strong>at</strong> implement a traffic sink which also maintai<strong>ns</strong>some st<strong>at</strong>istics about the received d<strong>at</strong>a e.g., number of bytes received, number of packets lost etc. <strong>The</strong>y inherit all ofthe generic agent object functionality.$lossmonitor clearResets the expected sequence number to -1.St<strong>at</strong>e Variables are:nlost_ Number of packets lost.npkts_ Number of packets received.bytes_ Number of bytes received.lastPktTime_ Time <strong>at</strong> which the last packet was received.expected_ <strong>The</strong> expected sequence number of the next packet.TCP objects TCP objects are a subclass of agent objects th<strong>at</strong> implement the BSD Tahoe TCP tra<strong>ns</strong>port protocol as describedin paper: "Fall, K., <strong>and</strong> Floyd, S. Compariso<strong>ns</strong> of Tahoe, Reno, <strong>and</strong> Sack TCP. December 1995." URL ftp://ftp.ee.lbl.gov/papers/sacks.ps.Z. <strong>The</strong>y inherit all of the generic agent functionality. Configur<strong>at</strong>ion Parameters are:window_ <strong>The</strong> upper bound on the advertised window for the TCP connection.maxcwnd_ <strong>The</strong> upper bound on the congestion window for the TCP connection. Set to zero to ignore. (This is thedefault.)windowInit_ <strong>The</strong> initial size of the congestion window on slow-start.windowOption_ <strong>The</strong> algorithm to use for managing the congestion window.windowThresh_ Gain co<strong>ns</strong>tant to exponential averaging filter used to compute awnd (see below). For investig<strong>at</strong>io<strong>ns</strong>of different window-increase algorithms.overhead_ <strong>The</strong> range of a uniform r<strong>and</strong>om variable used to delay each output packet. <strong>The</strong> idea is to i<strong>ns</strong>ert r<strong>and</strong>omdelays <strong>at</strong> the source in order to avoid phase effects, when desired [see Floyd, S., <strong>and</strong> Jacobson, V. On Traffic PhaseEffects in Packet-Switched G<strong>at</strong>eways. Internetworking: Research <strong>and</strong> Experience, V.3 N.3, September 1992. pp.115-156 ]. This has only been implemented for the Tahoe ("tcp") version of tcp, not for tcp-reno. This is notintended to be a realistic model of CPU processing overhead.ecn_ Set to true to use explicit congestion notific<strong>at</strong>ion in addition to packet drops to signal congestion. This allows aFast Retra<strong>ns</strong>mit after a quench() due to an ECN (explicit congestion notific<strong>at</strong>ion) bit.packetSize_ <strong>The</strong> size in bytes to use for all packets from this source.tcpTick_ <strong>The</strong> TCP clock granularity for measuring roundtrip times. Note th<strong>at</strong> it is set by default to the non-st<strong>and</strong>ardvalue of 100ms.bugFix_ Set to true to remove a bug when multiple fast retra<strong>ns</strong>mits are allowed for packets dropped in a single windowof d<strong>at</strong>a.maxburst_ Set to zero to ignore. Otherwise, the maximum number of packets th<strong>at</strong> the source can send in respo<strong>ns</strong>e toa single incoming ACK.slow_start_restart_ Set to 1 to slow-start after the connection goes idle. On by default.Defined Co<strong>ns</strong>tants are:MWS <strong>The</strong> Maximum Window Size in packets for a TCP connection. MWS determines the size of an array in tcpsink.cc.<strong>The</strong> default for MWS is 1024 packets. For Tahoe TCP, the "window" parameter, representing the receiver’sadvertised window, should be less than MWS-1. For Reno TCP, the "window" parameter should be lessthan (MWS-1)/2.107

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

Saved successfully!

Ooh no, something went wrong!