doubts about the wifi script

1 view
Skip to first unread message

O2

unread,
Mar 25, 2012, 4:24:01 PM3/25/12
to EEL 6591
Hi ta,
I have some questions about the wifi script.

1. How does this onoffapplication transmit the message from source to
destination? I ran the simulation and saw that the message is always
broadcasting around all the nodes. But isn't it supposed to be only
transmitted between source and destination nodes using the olsr
routing table?

2. How to enable the rts mechanism in this script? From the log
information of Maclow, it doesn't use rts even if the onoffapplication
has a packet size larger than the rts threshold.

Thanks!

Gokul Bhat

unread,
Mar 25, 2012, 4:29:08 PM3/25/12
to eel65...@googlegroups.com
1. The OnOff application always sends the message to just the destination node you have set in the script. If you notice broadcast messages, then they are at the MAC level and that is because of the Wireless channel. Check if the packets are received at the application layer of the destination node. Or you can also check the pcap trace to ensure that the sending and the receiving nodes are the ones you have set in the script.

2. The RTS mechanism should be enabled if the packet size is larger than the set threshold. Place a breakpoint in the MacLow::SendRts function and see if the control stops there. It, ideally, should stop if the packet size is larger than the threshold. Again, if you check the pcap trace, you should be able to see the RTS/CTS exchange going on in the network.

O2

unread,
Mar 25, 2012, 5:43:55 PM3/25/12
to EEL 6591
get it. so, how to set the pcap trace in the wifi script for all
layers?

jiecong wang

unread,
Mar 25, 2012, 6:32:14 PM3/25/12
to eel65...@googlegroups.com

I think you can set the RTSCTSThreshold as Zero, I think it works.

Gibran Ali

unread,
Mar 25, 2012, 9:55:02 PM3/25/12
to eel65...@googlegroups.com
Good Job.
Reply all
Reply to author
Forward
0 new messages