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.

$agent <strong>at</strong>tach-tbf Attaches a token bucket filter (tbf) to the agent.$<strong>ns</strong>_ connect Sets up a connection between the src <strong>and</strong> dst agents.$<strong>ns</strong>_ cre<strong>at</strong>e-connection This sets up a complete connection between two agents. First cre<strong>at</strong>es a source of type <strong>and</strong> binds it to . <strong>The</strong>ncre<strong>at</strong>es a destin<strong>at</strong>ion of type <strong>and</strong> binds it to . Finally connects the src <strong>and</strong> dst agents <strong>and</strong> retur<strong>ns</strong> a h<strong>and</strong>le tothe source agent.$<strong>ns</strong>_ cre<strong>at</strong>e-connection-list This comm<strong>and</strong> is exactly similar to cre<strong>at</strong>e-connection described above. But i<strong>ns</strong>tead of returning only the source-agent, thisretur<strong>ns</strong> a list of source <strong>and</strong> destin<strong>at</strong>ion agents.Internal procedures:$<strong>ns</strong>_ simplex-connect This is an internal method th<strong>at</strong> actually sets up an unidirectional connection between the agent <strong>and</strong> agent. Itsimply sets the destin<strong>at</strong>ion address <strong>and</strong> destin<strong>at</strong>ion port of the as ’s agent-address <strong>and</strong> agent-port. <strong>The</strong> "connect"described above calls this method twice to set up a bi-directional connection between the src <strong>and</strong> dst.$agent set This is an internal procedure used to inform users of the backward comp<strong>at</strong>ibility issues resulting from the upgrade to 32-bitaddressing space currently used in <strong>ns</strong>.$agent <strong>at</strong>tach-trace This <strong>at</strong>taches the to the agent to allow nam-tracing of the agent events.In addition to the agent rel<strong>at</strong>ed procedures described here, there are additional methods th<strong>at</strong> support different type of agentslike Agent/Null, Agent/TCP, Agent/CBR, Agent/TORA, Agent/mcast etc. <strong>The</strong>se additional methods along with theprocedures described here can be found in <strong>ns</strong>/tcl/lib/(<strong>ns</strong>-agent.tcl, <strong>ns</strong>-lib.tcl, <strong>ns</strong>-mip.tcl, <strong>ns</strong>-mobilenode.tcl, <strong>ns</strong>-namsupp.tcl,<strong>ns</strong>-queue.tcl, <strong>ns</strong>-route.tcl, <strong>ns</strong>-s<strong>at</strong>.tcl, <strong>ns</strong>-source.tcl). <strong>The</strong>y are also described in the previous section.110

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

Saved successfully!

Ooh no, something went wrong!