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.

34.2.1 <strong>The</strong> Base TCP Sink<strong>The</strong> base TCP sink object (Agent/TCPSink) is respo<strong>ns</strong>ible for returning ACKs to a peer TCP source object. It gener<strong>at</strong>esone ACK per packet received. <strong>The</strong> size of the ACKs may be configured. <strong>The</strong> cre<strong>at</strong>ion <strong>and</strong> configur<strong>at</strong>ion of the TCP sinkobject is generally performed autom<strong>at</strong>ically by a library call (see cre<strong>at</strong>e-connection above).configur<strong>at</strong>ion parametersAgent/TCPSink set packetSize_ 4034.2.2 Delayed-ACK TCP SinkA delayed-ACK sink object (Agent/Agent/TCPSink/DelAck) is available for simul<strong>at</strong>ing a TCP receiver th<strong>at</strong> ACKsless than once per packet received. This object contai<strong>ns</strong> a bound variable interval_ which gives the number of seconds towait between ACKs. <strong>The</strong> delayed ACK sink implements an agressive ACK policy whereby only ACKs for in-order packetsare delayed. Out-of-order packets cause immedi<strong>at</strong>e ACK gener<strong>at</strong>ion.configur<strong>at</strong>ion parametersAgent/TCPSink/DelAck set interval_ 100ms34.2.3 Sack TCP Sink<strong>The</strong> selective-acknowledgment TCP sink (Agent/TCPSink/Sack1) implements SACK gener<strong>at</strong>ion modeled after the descriptionof SACK in RFC 2018. This object includes a bound variable maxSackBlocks_ which gives the maximumnumber of blocks of inform<strong>at</strong>ion in an ACK available for holding SACK inform<strong>at</strong>ion. <strong>The</strong> default value for this variable is 3,in accordance with the expected use of SACK with RTTM (see RFC 2018, section 3). Delayed <strong>and</strong> selective ACKs togetherare implemented by an object of type Agent/TCPSink/Sack1/DelAck.configur<strong>at</strong>ion parametersAgent/TCPSink set maxSackBlocks_ 334.3 Two-Way TCP Agents (FullTcp)<strong>The</strong> Agent/TCP/FullTcp object is a new addition to the suite of TCP agents supported in the simul<strong>at</strong>or <strong>and</strong> is still underdevelopment. It is different from (<strong>and</strong> incomp<strong>at</strong>ible with) the other agents, but does use some of the same architecture. Itdiffers from these agents in the following ways: following ways:• connectio<strong>ns</strong> may be establised <strong>and</strong> town down (SYN/FIN packets are exchanged)• bidirectional d<strong>at</strong>a tra<strong>ns</strong>fer is supported292

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

Saved successfully!

Ooh no, something went wrong!