NS2

latest status: run 802.11, some knowledge on trace file analysis. 
TODO: Trace file: which nodes send to which nodes
Static routing settings, look for dynamic routing
Adjust transmission power statically by distance
4/3/2013

   http://www.isi.edu/nsnam/ns/tutorial/index.html 




Packets

Response Time Reporter (RTR).   RTR probe  RTR responder
The RTR probe sends a burst of packets to the RTR responder. The RTR responder turns them around and sends them back to the probe. This simple operation allows the probe to measure packet loss and round trip delay. To measure jitter, the probe sends a control packet to the responder before it initiates the packet burst. The control packet informs the responder how many milliseconds (ms) to expect between each packet in the burst. The responder then measures the inter-packet delay during the burst, and any deviation from the expect interval is recorded as jitter.

FAQ

In wireless mode, the default transmission range for a node is supposed to be 250 meters. So why distCST_ is set to 550 meters by default? 550m is called carrier sense range. Whenever two nodes are within that range, the interference is there and simultaneous transmission is disallowed.
Nodes outside the transmission range but within the sensing range can hear the transmission of the transmitting node. However, the S/N (Signal/Noise) ratio is too low to decode the signal correctly. In this case, even though the receving nodes do not know the contents of the transmission, they still know that the medium is not idle.

Other Info

To install ns2 in ubuntu:
  $ sudo apt-get install ns2
  $ sudo apt-get install nam
  $ sudo apt-get install xgraph

To run .tcl files
  $ ns simple100.tcl
if the tcl files contains nam settings, nam will automatically start.
 
http://books.google.com/books?id=_VkTzFLnwD4C&pg=PA222&lpg=PA222&dq=ns2+null&source=bl&ots=_Z17pg1uon&sig=lVGQYMfgNdjR3xTx_BwQ1xgfHjE&hl=en&sa=X&ei=ZdD9UO-fDIO89gSgu4DICg&ved=0CEEQ6AEwAw#v=onepage&q=ns2%20null&f=false

null agent means the receiver

Examples


Ċ
Morteza Sh-,
Mar 21, 2013, 12:43 PM
Ċ
Morteza Sh-,
Jan 21, 2013, 5:45 PM
Ċ
Morteza Sh-,
Jan 21, 2013, 5:40 PM
Ċ
Morteza Sh-,
Jan 21, 2013, 5:40 PM
Comments