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.

Chapter 42Session-level Packet DistributionThis section describes the internals of the Session-level Packet Distribution implement<strong>at</strong>ion in <strong>ns</strong>. <strong>The</strong> section is in twoparts: the first part is an overview of Session configur<strong>at</strong>ion (Section 42.1), <strong>and</strong> a “complete” description of the configur<strong>at</strong>ionparameters of a Session. <strong>The</strong> second part describes the architecture, internals, <strong>and</strong> the code p<strong>at</strong>h of the Session-level Packetdistribution.<strong>The</strong> procedures <strong>and</strong> functio<strong>ns</strong> described in this chapter can be found in ~<strong>ns</strong>/tcl/session/session.tcl.Session-level Packet Distribution is oriented towards performing multicast simul<strong>at</strong>io<strong>ns</strong> over large topologies. <strong>The</strong> memoryrequirements for some topologies using session level simul<strong>at</strong>io<strong>ns</strong> are:2048 nodes, degree of connectivity = 8 ≈ 40 MB2049–4096 nodes ≈ 167 MB4097–8194 nodes ≈ 671 MBNote however, th<strong>at</strong> session level simul<strong>at</strong>io<strong>ns</strong> ignore qeueing delays. <strong>The</strong>refore, the accuracy of simul<strong>at</strong>io<strong>ns</strong> th<strong>at</strong> use sourceswith a high d<strong>at</strong>a r<strong>at</strong>e, or those th<strong>at</strong> use multiple sources th<strong>at</strong> get aggreg<strong>at</strong>ed <strong>at</strong> points within the network is suspect.42.1 Configur<strong>at</strong>ionConfigur<strong>at</strong>ion of a session level simul<strong>at</strong>ion co<strong>ns</strong>ists of two parts, configur<strong>at</strong>ion of the session level details themselves (Section42.1.1) <strong>and</strong> adding loss <strong>and</strong> error models to the session level abstraction to model specific behaviours (Section 42.1.2).42.1.1 Basic Configur<strong>at</strong>ion<strong>The</strong> basic configur<strong>at</strong>ion co<strong>ns</strong>ists of cre<strong>at</strong>ing <strong>and</strong> configuring a multicast session. Each Session (i.e., a multicast tree) must beconfigured strictly in this order: (1) cre<strong>at</strong>e <strong>and</strong> configure the session source, (2) cre<strong>at</strong>e the session helper <strong>and</strong> <strong>at</strong>tach it to thesession source, <strong>and</strong> finally, (3) have the session members join the session.set <strong>ns</strong> [new SessionSim]set node [$<strong>ns</strong> node]set group [$<strong>ns</strong> allocaddr];# preamble initializ<strong>at</strong>ion372

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

Saved successfully!

Ooh no, something went wrong!