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 ...
sessionFunction_ The algorithm used to generate session messages. Default is SRM/sessionsessionDelay_ The basic interval of session messages. Slight random variation is added to this interval to avoid globalsynchronization of session messages. User may want to adjust this variable according to their specific simulation.Default value is 1.0.C1_, C2_ The parameters which control the request timer. Refer to [8] for detail. The default value is C1_ = C2_ = 2.0.D1_, D2_ The parameters which control the repair timer. Refer to [8] for detail. The default value is D1_ = D2_ = 1.0.requestBackoffLimit_ The maximum number of exponential backoffs. Default value is 5.State Variables are:stats_ An array containing multiple statistics needed by adaptive SRM agent. Including: duplicate requests and repairs incurrent request/repair period, average number of duplicate requests and repairs, request and repair delay in currentrequest/repair period, average request and repair delay.SRM/ADAPTIVE OBJECTS SRM/Adaptive objects are a subclass of the SRM objects that implement the adaptive SRMreliable multicast transport protocol. They inherit all of the SRM object functionalities. State Variables are:(Refer to the SRM paper by Sally et al [Fall, K., Floyd, S., and Henderson, T., Ns Simulator Tests for Reno FullTCP. URLftp://ftp.ee.lbl.gov/papers/fulltcp.ps. July 1997.] for more detail.)pdistance_ This variable is used to pass the distance estimate provided by the remote agent in a request or repair message.D1_, D2_ The same as that in SRM agents, except that they are initialized to log10(group size) when generating the firstrepair.MinC1_, MaxC1_, MinC2_, MaxC2_ The minimum/maximum values of C1_ and C2_. Default initial values are definedin [8]. These values define the dynamic range of C1_ and C2_.MinD1_, MaxD1_, MinD2_, MaxD2_ The minimum/maximum values of D1_ and D2_. Default initial values are definedin [8]. These values define the dynamic range of D1_ and D2_.AveDups Higher bound for average duplicates.AveDelay Higher bound for average delay.eps AveDups -dups determines the lower bound of the number of duplicates, when we should adjust parameters to decreasedelay.36.9 Commands at a glanceThe following is a list of commands to create/manipulate srm agents in simulations:set srm0 [new Agent/SRM]This creates an instance of the SRM agent. In addition to the base class, two extensions of the srm agent have beenimplemented. They are Agent/SRM/Fixed and Agent/SRM/Adaptive. See section 36.7 for details about these extensions.ns_ attach-agent This attaches the srm agent instance to the given .321
set grp [Node allocaddr]$srm set dst_ $grpThis assigns the srm agent to a multicast group represented by the mcast address .Configuration parameters for srm agent may be set as follows:$srm set fid_ $srm set tg_ .. etcFor all possible parameters and their default values please lookup ns/tcl/mcast/srm.tcl and ns/tcl/mcast/srm-adaptive.tcl.set exp [new Application/Traffic/Exponential]$exp attach-agent $srmThis command attaches a traffic generator (an exponential one in this example), to the srm agent.$srm start; $exp startThese commands start the srm agent and traffic generator. Note that the srm agent and traffic generator have to be startedseparately. Alternatively, the traffic generator may be started through the agent as follows:$srm start-source.See ns/tcl/ex/srm.tcl for a simple example of setting up a SRM agent.322
- Page 271 and 272: CtrMcastComp is the centralised mul
- Page 273 and 274: $ns_ mrtproto This command specifi
- Page 275 and 276: Chapter 31Network DynamicsThis chap
- Page 277 and 278: v 0.8123 link-up 3 5v 0.8123 link-u
- Page 279 and 280: The first argument is the time at w
- Page 281 and 282: $ns_ rtmodel This command defines
- Page 283 and 284: $ns set-address-format hierarchical
- Page 285 and 286: 32.4 Hierarchical Routing with Sess
- Page 287 and 288: Chapter 33UDP Agents33.1 UDP Agents
- Page 289 and 290: Chapter 34TCP AgentsThis section de
- Page 291 and 292: set ns [new Simulator]set node1 [$n
- Page 293 and 294: 34.2.1 The Base TCP SinkThe base TC
- Page 295 and 296: Agent/TCP/FullTcp set dupseg_fix_ t
- Page 297 and 298: 34.5 Tracing TCP DynamicsThe behavi
- Page 299 and 300: Chapter 35SCTP AgentsThis chapter d
- Page 301 and 302: Figure 35.1: Example of a Multihome
- Page 303 and 304: Note: the actual value of these tra
- Page 305 and 306: 1.526624 1 4 sctp 1500 -------D 0 1
- Page 307 and 308: $ns at 5.0 "finish"$ns run35.5.2 Mu
- Page 309 and 310: Chapter 36Agent/SRMThis chapter des
- Page 311 and 312: 36.1.2 Other Configuration Paramete
- Page 313 and 314: 3.6274 n 0 m r 1 type repair servi
- Page 315 and 316: 3.6029 n 3 m r 2 Q NTIMER at 3.730
- Page 317 and 318: 36.4 Loss Detection—The Class SRM
- Page 319 and 320: same packet. The repair objet does
- Page 321: }hdr_asrm* seh = (hdr_asrm*) p->acc
- Page 325 and 326: #set up the multicast routingDM set
- Page 327 and 328: 37.3 Architecture of the PLM Protoc
- Page 329 and 330: We add in void PLMLossMonitor::recv
- Page 331 and 332: Part VIApplication330
- Page 333 and 334: Traffic generatorsApplication/Traff
- Page 335 and 336: • recv(int nbytes)—Announces th
- Page 337 and 338: 1. EXPOO_Traffic—generates traffi
- Page 339 and 340: set src [new Agent/UDP]set sink [ne
- Page 341 and 342: Application FTP FTP objects produce
- Page 343 and 344: send_data(ADU)Application(HttpApp,
- Page 345 and 346: 39.1.4 Transmitting user data over
- Page 347 and 348: and teardown of connections. Only O
- Page 349 and 350: TclObjectPagePoolPagePool/CompMathP
- Page 351 and 352: PagePool/ProxyTrace takes these two
- Page 353 and 354: }int id_; // object IDWebTrafSessio
- Page 355 and 356: An Http/Server object waits for inc
- Page 357 and 358: set tmp [new RandomVariable/Exponen
- Page 359 and 360: Object Type Event Type Explaination
- Page 361 and 362: Chapter 40Worm ModelIn this chapter
- Page 363 and 364: $w local-p 0.5Following are some co
- Page 365 and 366: (nsnode) clientcloudPackM ime(nsnod
- Page 367 and 368: HTTP responsesclients servers Delay
- Page 369 and 370: 41.5 Commands at a GlanceThe follow
- Page 371 and 372: • HTTP response size (bytes)• s
set grp [Node allocaddr]$srm set dst_ $grpThis assig<strong>ns</strong> the srm agent to a multicast group represented by the mcast address .Configur<strong>at</strong>ion parameters for srm agent may be set as follows:$srm set fid_ $srm set tg_ .. etcFor all possible parameters <strong>and</strong> their default values please lookup <strong>ns</strong>/tcl/mcast/srm.tcl <strong>and</strong> <strong>ns</strong>/tcl/mcast/srm-adaptive.tcl.set exp [new Applic<strong>at</strong>ion/Traffic/Exponential]$exp <strong>at</strong>tach-agent $srmThis comm<strong>and</strong> <strong>at</strong>taches a traffic gener<strong>at</strong>or (an exponential one in this example), to the srm agent.$srm start; $exp start<strong>The</strong>se comm<strong>and</strong>s start the srm agent <strong>and</strong> traffic gener<strong>at</strong>or. Note th<strong>at</strong> the srm agent <strong>and</strong> traffic gener<strong>at</strong>or have to be startedsepar<strong>at</strong>ely. Altern<strong>at</strong>ively, the traffic gener<strong>at</strong>or may be started through the agent as follows:$srm start-source.See <strong>ns</strong>/tcl/ex/srm.tcl for a simple example of setting up a SRM agent.322