Dear all,
I am simulating sensor networks using ns-2.29. The modulation and propagation model in ns-2 are quite simple (~ns2.29/mobile/modulation.cc, tworayground). Can anyone tell me how to calculate the BER/PER of packets according to SNR and even implement multipath fading channel model in ns-2. Any existing codes implement those functions? Another question is: can I get node id in mac layer in C++ codes? Basically, I want to calculate the propagation delay in mac layer. I know there is a function "prop_delay" in mobilenode class, which can be referenced in phy layer. But how can I do it in mac layer? Any comment is appreciated. Thank you in advance. Kai Bai
