[ns] NS2 / JAVA

2012-07-05 Thread Zakia Khalfallah
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

2012-05-23 Thread Zakia Khalfallah
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

[ns] Simple question: Reading output file GT-ITM

2012-05-22 Thread Zakia Khalfallah

[ns] Create a reply Packet

2011-07-15 Thread Zakia Khalfallah
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

[ns] need to generate BI-DIRECTIONAL Voip trafic

2011-07-15 Thread Zakia Khalfallah
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

2011-07-07 Thread Zakia Khalfallah
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

2011-06-10 Thread Zakia Khalfallah
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

2011-06-09 Thread Zakia Khalfallah
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

2011-06-09 Thread Zakia Khalfallah
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

[ns] How to free memory ?

2011-06-09 Thread Zakia Khalfallah
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 :

[ns] Vanet Scenario file

2011-06-08 Thread Zakia Khalfallah
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

[ns] Simple question for all ; Realistic vehicular traces

2011-06-08 Thread Zakia Khalfallah
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] Scenario file

2011-06-03 Thread Zakia Khalfallah
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. The problem that NS detect an error when reading the two variables switch OFF and switch ON ( a part of the file is below). They are never used in a

[ns] Traffic generator option ( connection vs actives nodes )

2011-05-24 Thread Zakia Khalfallah
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

2011-05-09 Thread Zakia Khalfallah
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]

[ns] Problem in packet reception :how to know whether all the network layers are active ?

2011-05-05 Thread Zakia Khalfallah
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

2011-05-04 Thread Zakia Khalfallah
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

[ns] Error when runing NAM file: i'm sure that you've got the solution

2011-05-04 Thread Zakia Khalfallah
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 /

[ns] Need for someone who works with (HLS-GPSR) simulation :problem : All packet are DROPPED

2011-05-04 Thread Zakia Khalfallah
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

[ns] Routing simulation. Problem :number of Packet sent = number of Packet received

2011-05-03 Thread Zakia Khalfallah
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

[ns] which gcc version for NS2.1b6? Help please

2011-04-21 Thread Zakia Khalfallah
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

[ns] Modifying the cmu-trace.cc to integrate the GPSR protocol

2011-04-18 Thread Zakia Khalfallah
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

[ns] Installation NS2.33 UBUNTU

2011-04-16 Thread Zakia Khalfallah
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

[ns] Tracefile example of GPSR

2011-04-14 Thread Zakia Khalfallah
Hi, anyone has an exemple of the trace file result for a GPSR protocol simulation ? thanks,

[ns] Problem in GPSR simulation

2011-04-12 Thread Zakia Khalfallah
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

[ns] ./ validate in NS2

2011-04-11 Thread Zakia Khalfallah
Hi friends, is the step of ./validate in the installation of NS2 necessary ? thanks ZAK

[ns] Problem installation of NS2.34 in UBUNTU

2011-04-10 Thread Zakia Khalfallah
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

2011-04-09 Thread Zakia Khalfallah
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

[ns] Add the GPSR protocol in NS : Can't declare AGENT/GPSR

2011-04-07 Thread Zakia Khalfallah
Hi Friends. I'm runing GPSR protocol on NS2 (linux). I add in ns-agent.tcl these commands to declare GPSR agent : Agent/GPSR instproc init args { $self next $args } ...Agent/GPSR set sport_0 Agent/GPSR set dport_ 0 when i just run the command ns, it shows me