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.

This is a simple example of how to cre<strong>at</strong>e <strong>and</strong> configure an error model. <strong>The</strong> comm<strong>and</strong>s to place the error-model in a simplelink will be shown next.$simplelink errormodule This comm<strong>and</strong>s i<strong>ns</strong>erts the error-model before the queue object in simple link. However in this case the error-model’sdrop-target points to the link’s drophead_ element.$<strong>ns</strong>_ lossmodel This comm<strong>and</strong> places the error-model before the queue in a simplelink defined by the <strong>and</strong> nodes. This isbasically a wrapper for the above method.$simplelink i<strong>ns</strong>ert-linkloss This i<strong>ns</strong>erts a loss-module after the queue, but right before the delay link_ element in the simple link. This is because namcan visualize a packet drop only if the packet is on the link or in the queue. <strong>The</strong> error-module’s drop-target points to thelink’s drophead_ element.$<strong>ns</strong>_ link-lossmodel This too is a wrapper method for i<strong>ns</strong>ert-linkloss method described above. Th<strong>at</strong> is this i<strong>ns</strong>erts the error-module right after thequeue element in a simple link (src-dst).130

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

Saved successfully!

Ooh no, something went wrong!