[ns] NS2 / JAVA
Hi all, I have a code programmed in JAVA that i want to insert in NS2 module . The problem is that i don't manage very well C++ . So i don't want to reprogram it on C++ . Is there a way to use JAVA script under NS2 ? Thank you on advance Regards
[ns] Help in Reading output file GT-ITM
Dear all, i need to comment the output file (alternative format) generated by GT-ITM.(example of 4 nodes below)I can't see the direct link between vertices . Also , i didn't understand the utility and meaning of the first bloc (VERTICES, u v w x y z). In EDGES bloc, does lenght refer to number of hops ? Any comments that can help me please ? Thank you and good luckZak GRAPH (#nodes #edges id uu vv ww xx yy zz): 4 8 geo(0,{4,4,3,0.500,0.000,0.000}) 4 VERTICES (index name u v w x y z): 0 0 1 2 1 1 3 3 2 2 0 0 3 3 0 3 EDGES (from-node to-node length a b): 0 3 1 0 0 2 2 0 0 1 2 0 2 3 3 0 //
[ns] Simple question: Reading output file GT-ITM
[ns] Create a reply Packet
Hi friends, I must measure the delay of a two-way traffic (like Voip traffic ) . In other words i must measure the delay ( source , destination, source ) So i need that the destination returns a reply packet as an acknowledgment to the source . How can i create this packet ?? or is there an application or function for NS2 that determines how to reply to a specific source ? Thank you, Zak
[ns] need to generate BI-DIRECTIONAL Voip trafic
Hi friends, Who has already generated a BI-DIRECTIONAL voip trafic ? I need a patch which is sure and that has already worked for you . Thank you , zak
[ns] add extra field in GPSR packet header
Hi all, I'm simulating GPSR protocol. I need to calculate delay through Timestamp in real time during the simulation. So i need to add the timestamp field in the GPSR packet header. How can i add that ? Thank you, Zak
[ns] Simulation stopped : Floating point exception
Hi friends, Any one knows what the meaning of the error Floating point exception that stop a simulation . The problem that i don't Know which file or function generate this error. NS just mentions the phrase Floating point exception Thank you for help, Good luck for all, zakia
[ns] enable/disable Wireless interface of a node
Hi friends, Someone knows how to enable/disable a wireless interface of a node ? So , how to add the concerned command in NS ? Thank you, Good luck, ZAK
[ns] Simulation stopped : Memory allocation
Hi friends, anyone has encountered this problem while runing a simulation ? and what's the solution ? terminate called after throwing an instance of 'std::bad_alloc' what(): St9bad_alloc unable to alloc 26 bytes ...unable to alloc 10 bytes unable to alloc 10 bytes unable to alloc 10 bytes unable to alloc 10 bytes unable to alloc 10 bytes unable to alloc 10 bytes unable to alloc 10 bytes Bus errorThank you,
[ns] How to free memory ?
Hi Friends, I have long simulations in a wide network and I need to free the memory after allocating it. i hear about the function Packet::free( ) like Packet::alloc( ) which is already called in some protocol code ( AODV for example ) So how can i add this function if it's the true one? ps : the error that appears to me ( unable to allocate X bytes ) is originated from the funtion Tcl_Alloc in ns2-33/lib/dmalloc_support.cc So, if someone had added the function free in that file ? Thanks for help, Good luck, Zak
[ns] Vanet Scenario file
Hi friends, I'm simulating urban Vanet traffic . i have a correct scenario file for real traces of the mobility that i found in a sure site http://www.lst.inf.ethz.ch/research/ad-hoc/car-traces/. This is a short par of the file : $ns_ at 0.0 $node_(0) switch OFF ;# set_X,Y,Z $node_(0) set X_ 0.00 $node_(0) set Y_ 0.00 $node_(0) set Z_ 0.0 $ns_ at 0.00 $node_(0) setdest 2763.122123 1004.967441 10.00 ;# init_node $ns_ at 0.01 $node_(0) switch ON ;# inside $ns_ at 0.01 $node_(0) setdest 2734.639531 1026.382130 13.844272 ;# The problem that NS detect an error when reading the two command switch OFF and switch ON . They are never used in a classical NS scenario file. So, how can integrate them in the NS code ? and in which file ( .cc , .tcl etc ...) ? Did someone encounter the same problem or have an idea and can help me please? Thank you,
[ns] Simple question for all ; Realistic vehicular traces
Hi NS users, i just want to know who has simulated with the realistic Vanet traces from the well known site http://www.lst.inf.ethz.ch/research/ad-hoc/car-traces/index.html#download. So i can ask him if the mobility trace file work well or not. Thank you for the reply and good luck ZAK
[ns] Traffic generator option ( connection vs actives nodes )
Hi Friends, This is the options related to a traffic generator whith which i must work in my project : ./trafgen-n nodes -a active nodes -t simulation time -c connections Any one has an idea about the difference between : active nodes and connections? Thank you ZAK
[ns] a simple question about the format of a trace file : Thank you
Hi friends, i'm simulating the GPSR protocol combined with the location service HLS . the trace file that i obtainde has this format : HLS_CUpd 5.472465613941 3 [0 5.4500 351.95 35.23] RTE: 5.472465613941 _3_: RouteInfo 10 (0-3) : 1 1r 5.472465614 _3_ MAC --- 10 cbr 189 [13a 3 0 800] --- [0:0 3:0 128 3] [6] 1 0 s 5.472475614 _3_ MAC --- 0 ACK 38 [0 0 0 0] r 5.472490614 _3_ AGT --- 10 cbr 189 [13a 3 0 800] --- [0:0 3:0 128 3] [6] 1 0 r 5.472779711 _0_ MAC --- 0 ACK 38 [0 0 0 0] s 5.473109711 _0_ MAC --- 0 RTS 44 [a36 3 0 0] r 5.473461808 _3_ MAC --- 0 RTS 44 [a36 3 0 0] s 5.473471808 _3_ MAC --- 0 CTS 38 [8fc 0 0 0] r 5.473775905 _0_ MAC --- 0 CTS 38 [8fc 0 0 0] I don't know which numbre refers to the packet id because it's not shown as the standard format of NS trace file like s -t 0.293822201 -Hs 0 -Hd -2 -Ni 0 -Nx 100.00 -Ny 400.00 -Nz 0.00 -Ne -1.00 -Nl AGT -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 0.0 -Id 1.0 -It cbr -Il 512 -If 0 etc... So, how can i know where is the packet id and also for other informations . In other words, how can i know what every information refers to than you and goog luck zak,
[ns] Problem in packet reception :how to know whether all the network layers are active ?
Hi friends, I have a problem in the packet reception. All packet are dropped. The problem isn't from the code because i work with a sure one. it maybe from the network layer. Any one can help me to know whether all the networks layers are active? Thank you in advance. Best regards, zak
[ns] Routing performances evaluation
Hi friends , Any one please can send me some awk script for routing performances. i'm simulating GPSR protocol and must evaluate these parameters : 1.Packet delivery ratio 2.Traffic Overhead 3.End to End Delay Thank you in advancewish you good luck ZAK
[ns] Error when runing NAM file: i'm sure that you've got the solution
Hi friends , i got this error when i simply run a NAM file with the command nam file.nam, it's certainly a current error for NS users . nam: [code omitted because of length] : no event type or button # or keysym while executing bind Listbox MouseWheel { %W yview scroll [expr {- (%D / 120) * 4}] units } invoked from within if {[tk windowingsystem] eq classic || [tk windowingsystem] eq aqua} { bind Listbox MouseWheel { %W yview scroll [expr {- (%D)}] units } bind Li... Thank you for help ZAK
[ns] Need for someone who works with (HLS-GPSR) simulation :problem : All packet are DROPPED
Hi friends , Who works please with GPSR protocol ? i'am simulating the NS2.33 version of GPSR which is combined with the location service HLS. the code is well compiled and configured. No problem at this issue i made a simple simulation file with a trafic and mobility scenario. The problem is that when i analyse the format trace of gpsr.tr , i find that all packets are dropped . This is an example of a scenario line : d -t 16.886354181 -Hs 0 -Hd -2 -Ni 0 -Nx 8.34 -Ny 99.51 -Nz 0.00 -Ne -1.00 -Nl RTR -Nw SBF -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 0.0 -Id 1.0 -It cbr -Il 563 -If 0 -Ii 4 -Iv 128 -Pn cbr -Pi 2 -Pf 0 -Po 0 The problem is originated from the event SBF which is mentionned in the gpsr.cc file . Any one has faced the problem or have a suggestion to help me ? Thank you, Good luck Zak
[ns] Routing simulation. Problem :number of Packet sent = number of Packet received
Hi friends, I'm simulationg the routing protocol GPSR. I must évaluate the packet delivery success rate. In the file gpsr.tr , i find always number of packets sent = number of packets received . It's abnormal that i have 100% success rate ( i compared to some results in a paper that never find 100%) By remark, i have changed many parameters in traffic and scenario files ( max speed, pause time etc ) to see differences. Any have met the same problem please in GPSR or another protocol? Thank you and good luck
[ns] which gcc version for NS2.1b6? Help please
Hi friends, I have the gcc version 4.1.2 20080704 (Red Hat 4.1.2-48) and i'm compiling .cc files in NS2.1b6 (very old ) . I have right codes ( from a sure source ) bu I've got many errors. I have been sure that the problem is from the version of the compiler gcc. Any one knows which version of gcc is required in NS2.1b6 ? Thanks and good luck for all ZAK
[ns] Modifying the cmu-trace.cc to integrate the GPSR protocol
Hi friends, I need to integrate the GPSR protocol into the NS module.I made the needed changes but I have problem with the cmu-trace.cc file . I couldn't develop the void CMUTrace::format_gpsr(Packet *p, int offset). Any one can help me or just send to me the concerned modified part. Thank you and good luck . ZAKIA
[ns] Installation NS2.33 UBUNTU
Hi friends, Anyonehas encountered the same problem? When i installed ns2.33 on UBUNTU , i met this error. configure: WARNING: unrecognized options: --enable-gcc checking whether to use symlinks for manpages... no checking whether to compress the manpages... no checking whether to add a package name suffix for the manpages... no checking for gcc... gcc33 checking for C compiler default output file name... configure: error: in `/home/zakia/Bureau/ns-allinone-2.33/tcl8.4.18/unix': configure: error: C compiler cannot create executables See `config.log' for more details. tcl8.4.18 configuration failed! Exiting ... Tcl is not part of the ns project. Please see www.Scriptics.com to see if they have a fix for your platform. -- By remarks,i have the same problem even when i modified CC= gcc-4.3 in the Makefile.in of OTCL ( as a solution of the error countered before otcl-1.13 configuration failed! Existing...) Thanks for Everybody
[ns] Tracefile example of GPSR
Hi, anyone has an exemple of the trace file result for a GPSR protocol simulation ? thanks,
[ns] Problem in GPSR simulation
Hi friends, i'm trying to simutate GPSR protocol.For the organization of the directories, i put these informations in the correspondant .sh file proto=GPSR simdir=gpsrsimulation statdir=stat scendir=$simdir/scen trafdir=$simdir/trafic when i execute the simulation file .sh it shows me this error num_nodes is set 50 couldn't open gpsrsimulation/GPSR.tr: no such file or directory while executing open $opt(tr) w invoked from within set tracefd[open $opt(tr) w] (file simulation.tcl line 166) tail: cannot open `statfile' for reading: No such file or directory How can i deal with this error? Thank you ZAK
[ns] ./ validate in NS2
Hi friends, is the step of ./validate in the installation of NS2 necessary ? thanks ZAK
[ns] Problem installation of NS2.34 in UBUNTU
Hi Friends, i try to install NS2.34 in UBUNTU it shows me this error : make: *** [tk3d.o] Erreur 1 tk8.4.18 make failed! Exiting ... For problems with Tcl/Tk see http://www.scriptics.com; Some one has met the same problem and helps me please. Thank you
[ns] GPSR protocol
Hi Friends, Who can sends to me the GPSR module ( compatible with ns2.33 or ns2.33) I download one from http://www.icir.org/bkarp/gpsr/gpsr.html but it's not compatible with those version of NS. Thanks