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

[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 [$self info

[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] 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] 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

Re: [ns] Routing Table

2008-09-18 Thread Maurizio Bellemo
Husain Rehmani Regards 2008/9/17 Maurizio Bellemo [EMAIL PROTECTED] 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

[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

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 work. I read

[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 nsaddr_t, scheduler_uid_t scedPackets; Then i wait to

[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

[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

[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(getline0) { if($1 == r) p+=1; } close(FILENAME); for(cont = 0; cont nnodes; cont++) {

[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] 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