[ns] Accuracy in 802.11

2008-10-27 Thread Maurizio Bellemo
Hi all, i have a question about 802.11 and ns-2 MobileNode. Which is the accuracy of the distance between two mobile nodes in 802.11?? That is, having three nodes in a mobile ad hoc networks (A, B, C) and be A the one from which the distance is calculated. Which is the minimum distance between B

[ns] Accuracy between MobileNodes

2008-10-21 Thread Maurizio Bellemo
Hi all, i have a question about 802.11 and ns-2 MobileNode. Which is the accuracy of the distance between two mobile nodes in 802.11?? Thks Maurizio

[ns] Problem with awk

2008-09-29 Thread Maurizio Bellemo
Hi i am doing a script with awk, but i faces a few problem maybe you can help me... BEGIN { i = 0; p = 0; cont = 0; } { while(getline>0) { if($1 == "r") p+=1; } close(FILENAME); for(cont = 0; cont < nnodes; cont++) { while((getline0) {

[ns] Problem with xgraph

2008-09-27 Thread Maurizio Bellemo
Hi guys, I have problems plotting in Xgraph. I have some files to be plotted and the values are high (but not too high, the x is almost 100 and the y is 4000). The problem is when i try to plot it, it doesn't work. The program says "the drawing area is too small". I have tryied to change the y ax

[ns] ANSim movement generator

2008-09-26 Thread Maurizio Bellemo
Hi, I'm trying to get some movement files from the ANSim Web site http://www.ansim.info/index.php?title=SceneGenerator. The problem is that I need different scenarios with the same characteristics. I thought as it was random generator it can generate every time a different random movement simula

[ns] Help with scheduler

2008-09-25 Thread Maurizio Bellemo
Hi all, I have a little problem with the Scheduler. I schedule some packets in my program Scheduler::instance().schedule(target_, p, (100/tcf_time)); And then I registers all the scheduled packets with packet source and packet uid map scedPackets; Then i wait to receive some packet and if ha

Re: [ns] Problem with Scheduler

2008-09-25 Thread Maurizio Bellemo
Hi all, > > I have a little problem with the Scheduler. I schedule some packets in my > program > > Scheduler::instance().schedule(target_, p, (100/tcf_time)); > > but when i try to cancel some of them from the queue not to be sent > > Scheduler::instance().cancel(p); > drop(p); > > It doesn't wo

[ns] Problem with Scheduler

2008-09-24 Thread Maurizio Bellemo
Hi all, I have a little problem with the Scheduler. I schedule some packets in my program Scheduler::instance().schedule(target_, p, (100/tcf_time)); but when i try to cancel some of them from the queue not to be sent Scheduler::instance().cancel(p); drop(p); It doesn't work. I read the trace

Re: [ns] Routing Table

2008-09-18 Thread Maurizio Bellemo
> > Now what you have to do is simply in the expire function, just write the > logic for purging the entries (removal of entries) from the table. For > instance, you can look at AODV.cc file in which they have clearly defined > the logic of purging the routes from the routing table. &g

[ns] Routing Table

2008-09-17 Thread Maurizio Bellemo
Hi, I'm writing a piece of code to create a routing table with the use of std map. Does anyone know how I can implement lifetime?? I need to create a timer which, at the expiration, causes the removal of the entry in the table. Any suggestions? Thank you very much Maurizio

[ns] Implementing a New Manet Unicast Routing Protocol in NS2

2008-09-10 Thread Maurizio Bellemo
Hi, I have implemented the code and it works, but the problem is when i try to realize a real broadcast, I got an error * check_pktCTRL:Invalid MAC Control subtype* I simply add the code to rebroadcast the packet. I modified only one function. void Protoname::recv_protoname_pkt(Packet* p) {

[ns] How to test a new protocol? [nsrt-howto]

2008-09-09 Thread Maurizio Bellemo
*Hola* *Javier, he mirado tu post sobre el articulo de Francisco. Quería usar tu file para simular el protocolo Protoname. Al final solucionaste el problema y, si es así, me puedes enviar el tcl. corregido? Gracias Maurizio *

[ns] Simulation error

2008-09-09 Thread Maurizio Bellemo
Hi, does anyone know why i get this error simulating? ns: _o2021 sendData IP_BROADCAST: (_o2021 cmd line 1) invoked from within "_o2021 cmd sendData IP_BROADCAST" invoked from within "catch "$self cmd $args" ret" invoked from within "if [catch "$self cmd $args" ret] { set cls [$se

[ns] Implementing a New Manet Unicast Routing Protocol in NS2

2008-08-20 Thread Maurizio Bellemo
Hi all, I'm trying to simulate a MANET in order to test an efficient flooding technique (broadcast). I took the code in this article, without using the routing part, because I don't need. I want only to flood the network with control information. I wrote a little simulation to test the algorithm.

Re: [ns] Problem with MANET simulation

2008-08-18 Thread Maurizio Bellemo
Hi all, > I found on the Web some files to run a simulation on ns-2. The simulation > represents a MANET with nodes broadcasting information. I attach the files. > I followed the steps in the README (unfortunately it's in italian) and tryed > to run the .tcl file with this result. > > [EMAIL PRO