[ns] Problem sending a packet

2012-02-16 Thread David Rodenas
Hi all I'm having a strange problem when I send a unicast packet in ns-2 (I use the IEEE 802.15.4 module).  I've created a new packet type, and when the IP-destination field (HDR_IP->daddr()) is set to broadcast, the packet is received by the nodes correctly. However, when I set a specific ad

[ns] Problem transmitting a packet

2012-01-08 Thread David Rodenas
Hi all I am working with the IEEE 802.15.4 ns-2 implementation. I added a new packet type and I have problems when I try to send it. I define the packet, which size of payload is 8 bytes (ch->size() = 8 + IP_HEADER_LEN). Then, I populate the HDR_CMN fields like this: __

Re: [ns] HDR_CMN(p)->next_hop_ is different from the MAC destination address (p802_15_4macDA(p))

2012-01-04 Thread David Rodenas
Hi again I am sorry but I found the problem. It was my mistake. The thing is that I am using an aodv queue and the packet was being dropped because of timeout.  Thanks!    David > > De: David Rodenas >Para: "ns-users@isi.edu" >Enviado

[ns] HDR_CMN(p)->next_hop_ is different from the MAC destination address (p802_15_4macDA(p))

2012-01-04 Thread David Rodenas
Hi all I have the following problem. I am working with the IEEE 802.15.4 Zheng's implementation in ns-2. In the routing layer I send a cbr packet where the HDR_CMN(p)->next_hop_ is set to a specific node address. However, at MAC layer, some cbr packets are not sent to that node but to another.

[ns] MCPS_DATA_request overflow

2012-01-02 Thread David Rodenas
Hi all I have a problem with the MCPS_DATA_request primitive in the IEEE 802.15.4 ns-2 implementation. I build a new packet and send it peridically using this primitive (broadcast transmission). The thing is that this error does not always happen because I can send the packet, and it is receiv

Re: [ns] Problem compiling ns-2: I can not include "p802.15.4.h"

2011-12-16 Thread David Rodenas
Hi all  I found the solution: http://old.nabble.com/Error-while-including-wireless-phy.h-td21661874.html. I think it is an important BUG in ns-2.  Thanks for the help.    David Rodenas Herráiz > > De: David Rodenas >Para: "ns-users@isi.e

[ns] Problem compiling ns-2: I can not include "p802.15.4.h"

2011-12-15 Thread David Rodenas
hat if I don't include "p802_15_4mac.h", the problem dissapears, but I can't use mac functions( e.g. MCPS_DATA_request()). I searched this same problem on the Web (google and ns2 help) and I found similar problems (http://www.mail-archive.com/ns-users@isi.edu/msg06434.html), but the solution

Re: [ns] Automate simulations

2011-03-23 Thread David Rodenas
It is strange that I hadn'n found anything about mannasim until now. Thanks, I'll try to use it. David De: ÞÕÇÏ Úíäì Ýì ßá ãßÇä mohammed Para: David Rodenas Enviado: mié,23 marzo, 2011 11:21 Asunto: Re: [ns] Automate simulations do yo

[ns] Automate simulations

2011-03-23 Thread David Rodenas
Hi all I am at the point of simulating my work and get final results so I have to do a lot of simulations varying several parameters. I counted 1080 realizations! I've been looking for information to automate the simulation but I don't know really what to do. For example, I need to put a for

Re: [ns] Cancel a packet transmission at MAC Layer and send the packet to the Routing Layer

2011-03-02 Thread David Rodenas
Hi, at the end I did it. The problem was that I was'n using the correct function to pass directly the packet to the routing layer and as you say, the packet was being erased. Thanks a lot. David De: Urlan Salgado de Barros Para: David Rodenas C

[ns] Cancel a packet transmission at MAC Layer and send the packet to the Routing Layer

2011-03-01 Thread David Rodenas
Hi all Sometimes, I have to cancel a packet transmission at MAC layer and in this case, I want to send the packet to the routing layer again and store it in a queue to sending it later. I've been trying to make that at mcps_data_request method of p802_15_4mac.cc, just at the moment when the n

[ns] Cancel retransmissions

2011-02-23 Thread David Rodenas
Hi all I'm having some packets retransmissions and there are moments where I'd like to cancel the retransmission forever. How can I do that? Thanks a lot David

Re: [ns] Send a multicast packet

2011-02-21 Thread David Rodenas
ing to his parent. Yes, what I'm doing is rare, but I have to :) Thanks a lot Stephan for your answers, and the rest of researchers. David De: Stephan Lorenz Para: David Rodenas Enviado: lun,21 febrero, 2011 22:52 Asunto: Re: [ns] Send a multicast packe

Re: [ns] Send a multicast packet

2011-02-21 Thread David Rodenas
han Lorenz Para: David Rodenas Enviado: lun,21 febrero, 2011 22:23 Asunto: Re: [ns] Send a multicast packet I'm not sure but can't you simply say something like this on the receivers side? : if destination address != my_address then ignore packet. If all nodes are within the communica

[ns] Send a multicast packet

2011-02-21 Thread David Rodenas
Hi all I have, for example, a tree topology composed of 9 nodes. Imagine that node 4 is connected to nodes 1, 2, 3, and 5 and I want to send a broadcast packet to nodes 2, 3 and 5 but no to node 1. How can I do that in C++? I want nodes 2, 3 and 5 receives the packet at same time (it happens

[ns] Rv: Rv: ns2-28 installation problems

2011-01-22 Thread David Rodenas
I saw that the files I attached were not sent well. I attach them in a zip file. David - Mensaje reenviado De: David Rodenas Para: ns-users@ISI.EDU Enviado: sáb,22 enero, 2011 10:48 Asunto: [ns] Rv: ns2-28 installation problems I made a mistake at stpes. I'm sorry! Now th

[ns] Rv: Rv: ns2-28 installation problems

2011-01-22 Thread David Rodenas
I made a mistake at stpes. I'm sorry! Now they're correct!! Hi I had a lot of problems with the instalation of ns 2.28 too. You should follow the next steps: 1) Decompress ns-allinone 2.28 tar xvzf ns-allinone-2.28.tar.gz 2) Patch nam: you need the patch file (I attach it) cp nam-1.11.patc

[ns] Rv: ns2-28 installation problems

2011-01-22 Thread David Rodenas
I made a mistake at stpes. I'm sorry! Now they're correct!! Hi I had a lot of problems with the instalation of ns 2.28 too. You should follow the next steps: 1) Decompress ns-allinone 2.28 tar xvzf ns-allinone-2.28.tar.gz 2) Patch nam: you need the patch file (I attach it) cp nam-1.11.patch

[ns] Sleep mode

2011-01-13 Thread David Rodenas
Hi all I'm working with IEEE 802.15.4 and NS2 2.28. I'd like to know what is the portion of code that allows to put (simulate) on/off the node in sleep mode. I want to do that at some time. Thanks in advance David

Re: [ns] Transmit packets

2010-12-08 Thread David Rodenas
d of my routing protocol I may put the code to enque and deque packets... (Another thing, I forgot to say that I'm using IEEE 802.15.4) Please, I need help with that, I know a lot of things, but I'm not what to do!! Thanks in advance, David ________ De: Davi

Re: [ns] Transmit packets

2010-12-07 Thread David Rodenas
Hi Thanks a lot for your answer. I'll try to do it. And one more question, I don't want to use CSMA/CA in some cases, how can I enable and disable it? Thanks again! David De: Mubashir Rehmani Para: David Rodenas ; ns-users Envi

[ns] Transmit packets

2010-12-07 Thread David Rodenas
Hi all I have to questions: How can I control the transmission of packets? I want all nodes transmit their packets into an predetermined time interval. And If I don't want to use CSMA/CA, what I have to do? Thanks in advance David

[ns] Synchronization in IEEE 802.15.4

2010-12-01 Thread David Rodenas
Hi I'm having the following question: suppose that we are working on beacon mode (IEEE 802.15.4) with BO != SO, so the superframe is divided into an active portion and an inactive portion. I wonder where is the part of the code where the node goes from active protion to inactive portion (and