[ns] May I use 'instvar' to bind an array variable?
Dear all, In the node configuration procedure 'instvar' is used to bind several global variables, e.g., in ns-lib.tcl we have: Simulator instproc create-wireless-node args { $self instvar routingAgent_ wiredRouting_ propInstance_ llType_ \ macType_ ifqType_ ifqlen_ phyType_ chan chan2 chan3 chan4 chan5 antType_ energyModel_ inic_tialEnergy_ txPower_ rxPower_ idlePower_ topoInstance_ level1_ level2_ inerrProc_ outerrProc_ FECProc_ ... (an example to configure multi-interface, from http://greenw.blogspot.com/) I wonder if I may use an array variable to take place of using 'chan chan2 chan3 ...' one by one. If it is allowed please tell me how. If not, is there any other way to create an array variable of global range? Thank you very much. Best regards, Matt Wood
[ns] [Urgent]How can I calculate number of collision for IEEE802_15_4 in ns-2
Hi All, Please let me know how can I calculate number of collision for ZigBee in ns2. If any one has any code please send me. -- With best regards, Pratiti
[ns] ns-2.33 Scheduler loosing events
Hi all, Is it possible the ns-2.33 scheduler is losing events? I generated aprox. 7000 events in a TCL source file and a lot of those events when given to the scheduler are lost. This is a code snippet: void ProtName::create_Pkt(Packet* p){ /* * Create a packet with source and destination header */ // Schedule it for later Transmission Scheduler::instance().schedule(target_, p2, 0.0); } Using printf's i can see the Scheduler correctly receives the packet, but later on there is no other trace of it. Any suggestions? Is there a limit to the events the scheduler can handle? Thanks in advance. -- _ Nicholas Loulloudes High Performance Computing Systems Laboratory (HPCL) University of Cyprus, Nicosia, Cyprus Tel: +357-22892663 Email: loulloudes.n[at]cs.ucy.ac.cy
[ns] after recompiling
Eng Rony hi i have to recompile ns2 after i make some changes in ns2 files by typing make in ns2 directory and appear to me some warning msgs and errors: gpsr/gpsr_neighbor.cc:393 : warning: int format, nsaddr_t arg arg 3.. gpsr/gpsr.h:114: warning: 'GPSRAgent:: query_timer_' will be initialized after. gpsr/gpsr.h:101: warning: 'nsaddr_t GPSRAgent:: my_id_'. gpsr/gpsr.h:241: warning: comparison between sign and unsigned integer expression. proxytrace2any.cc:112: error: 'ISLittleEndian undeclared first use this function. proxytrace2any.cc:112: error: each undeclared identifier is reported only once for each function it appears in.. proxytrace2any.cc:120: error: 'ToOtherEndian undeclared first use this function. make[1]: *** proxeytrace2any.o [Error1]. i wait ur solutions
[ns] IEEE 802.11a PHY parameters
Hello, buddies. Who knows which files/parameters need to be changed in order to simulate the IEEE 802.11a PHY? Best regards, --- Helber Wagner da Silva MSc. Student in Applied Informatics University of Fortaleza, Ceará, Brazil URL: http://br.geocities.com/wagnerfbm/ Veja quais são os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com
[ns] A comment, and also a request for comment on multichannel simulations.
Dear all, I followed the instructions from R.Aguero et al., Adding Multiple Interface Support in NS-2 to set up a multichannel simulation model (document, http://personales.unican.es/aguerocr). I think there is a major flaw of this method (or the NS2 is not suitable for multichannel): the multi wireless channels are not properly isolated. When a packet is sent from one node to other nodes, wireless-channel will check the nodes affected and send a copy of the packet to all the network interfaces linked to the affected node. This will block each network interface, which should only listen to the neighboring network interfaces tuned on the same channel. When capture effects are considered, such as in the more accurate mac model mac-802_11Ext and wireless-phyExt, this problem will become more salient. More comments and resolutions are heartily welcome. Best regards matt wood