Wednesday, January 4, 2012

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

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. Checking the p802_15_4macDA(p) value (which get the mac destination address), I see that the mac destination address of those packets is different to the HDR_CMN(p)->next_hop_ that I set, when I suppose that both addresses might be the same. For this reason, I searched where the MAC destination address is populated but I could not find it. What I can say is that if I set the MAC destination address at routing layer, this field is different when the packet arrives to the MAC layer.

My question is where the MAC destination address is set and why could be the reason of this problem?

Thanks in advance,
 
David

No comments:

Post a Comment

Counter

blogger analytics