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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

30.2.4 <strong>The</strong> internal variablesClass mrtObjectprotocols_mask-wkgroupswkgroupsAn array of h<strong>and</strong>les of protocol i<strong>ns</strong>tances active <strong>at</strong> the node <strong>at</strong> which this protocol oper<strong>at</strong>esindexed by incoming interface.Class variable—defines the mask used to identify well known groups.Class array variable—array of alloc<strong>at</strong>ed well known groups addresses, indexed by the groupname. wkgroups(Allocd) is a special variable indic<strong>at</strong>ing the highest currently alloc<strong>at</strong>ed wellknown group.McastProtocolst<strong>at</strong>us_type_Simul<strong>at</strong>ormultiSim_MrtH<strong>and</strong>le_takes values “up” or “down”, to indic<strong>at</strong>e the st<strong>at</strong>us of execution of the protocol i<strong>ns</strong>tance.contai<strong>ns</strong> the type (class name) of protocol executed by this i<strong>ns</strong>tance, e.g., DM, or ST.1 if multicast simul<strong>at</strong>ion is enabled, 0 otherwise.h<strong>and</strong>le to the centralised multicast simul<strong>at</strong>ion object.Nodeswitch_multiclassifier_replic<strong>at</strong>or_Agents_outLink_inLink_Link <strong>and</strong> SimpleLinkiif_head_NetworkInterfaceifacenum_h<strong>and</strong>le for classifier th<strong>at</strong> looks <strong>at</strong> the high bit of the destin<strong>at</strong>ion address in each packet to determinewhether it is a multicast packet (bit = 1) or a unicast packet (bit = 0).h<strong>and</strong>le to classifier th<strong>at</strong> performs the 〈s, g, iif〉 m<strong>at</strong>ch.array indexed by 〈s, g〉 of h<strong>and</strong>les th<strong>at</strong> replic<strong>at</strong>e a multicast packet on to the required links.array indexed by multicast group of the list of agents <strong>at</strong> the local node th<strong>at</strong> listen to the specificgroup.Cached list of outgoing interfaces <strong>at</strong> this node.Cached list of incoming interfaces <strong>at</strong> this node.h<strong>and</strong>le for the NetworkInterface object placed on this link.first object on the link, a no-op connector. However, this object contai<strong>ns</strong> the i<strong>ns</strong>tance variable,link_, th<strong>at</strong> points to the container Link object.Class variable—holds the next available interface number.30.3 Comm<strong>and</strong>s <strong>at</strong> a glanceFollowing is a list of comm<strong>and</strong>s used for multicast simul<strong>at</strong>io<strong>ns</strong>:set <strong>ns</strong> [new Simul<strong>at</strong>or -mcast on]This tur<strong>ns</strong> the multicast flag on for the the given simul<strong>at</strong>ion, <strong>at</strong> the time of cre<strong>at</strong>ion of the simul<strong>at</strong>or object.<strong>ns</strong>_ multicastThis like the comm<strong>and</strong> above tur<strong>ns</strong> the multicast flag on.<strong>ns</strong>_ multicast?This retur<strong>ns</strong> true if multicast flag has been turned on for the simul<strong>at</strong>ion <strong>and</strong> retur<strong>ns</strong> false if multicast is not turned on.271

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

Saved successfully!

Ooh no, something went wrong!