Hello everyone

I am new to NS2 and also I have very little experience in C/C++ programming.
Although, I am catching up on the C++ stuff, I am unable to understand the
nam file generated after running any 802.11 MAC simulation in ns2. I am not
able to figure out why most of the control packets are broadcast that is
their destination id is -1. I will paste a part of the nam file generated
i.e. the part I am finding hard to understand.

r -t 35.225473806 -s 2 -d -1 -p ACK -e 38 -c 2 -a 0 -i 0 -k MAC
+ -t 35.225823139 -s 3 -d -1 -p RTS -e 44 -c 2 -a 0 -i 0 -k MAC
- -t 35.225823139 -s 3 -d -1 -p RTS -e 44 -c 2 -a 0 -i 0 -k MAC
h -t 35.225823139 -s 3 -d -1 -p RTS -e 44 -c 2 -a 0 -i 0 -k MAC
r -t 35.226175805 -s 4 -d -1 -p RTS -e 44 -c 2 -a 0 -i 0 -k MAC
+ -t 35.226185805 -s 4 -d -1 -p CTS -e 38 -c 2 -a 0 -i 0 -k MAC
- -t 35.226185805 -s 4 -d -1 -p CTS -e 38 -c 2 -a 0 -i 0 -k MAC
h -t 35.226185805 -s 4 -d -1 -p CTS -e 38 -c 2 -a 0 -i 0 -k MAC
r -t 35.226490472 -s 3 -d -1 -p CTS -e 38 -c 2 -a 0 -i 0 -k MAC

The code I am running is trying to simulate 16 stationary nodes and is using
CBR traffic. Please help me

-- 
Gokul S Bhat
Graduate Student, Electrical Engineering department, University of Florida,
Gainesville

Reply via email to