- The first field represents the event type, whose value can be s (send), r (receive), d (drop) or f (forward).
- The second field the time this event happens.
- The third field records the id of the node, on which this event takes place.
- The fourth field shows the layer where this event happens. Its possible value may be one of the following four: AGT (agent), RTR (router), IFQ (interface queue), and MAC (mac).
- The fifth field is normally a short broken line, which is reserved for special events. For example, when collision occurs, the broken line is replaced with COL.
- The sixth field is the global sequence number for this packet, which is the integer number used to identify this packet in the whole network and distinguish it from others. Sequence number is only available for data packets and not allocated for control packets, like RTS/CTS/ACK and SYNC packets in S-MAC (using a zero instead).
- The seventh field is the packet type. The actual value is determined by the application or MAC layer, which creates this packet. For example, cbr represents that it is a data packet generated by a CBR traffic source.
- The eighth field is the packet size in bytes.
- The ninth field including three numbers in brackets concerns MAC layer information. Originally, there will be four numbers in the brackets. But S-MAC revises this format. The first number is the duration field of this packet. In Figure 4.6, the duration field of this RTS packet is 0.11 s, which is the remaining time reserved for the coming transmission. The second number stands for the MAC address of the receiver of this packet, and the third number for the sender.
- The tenth field including energy remained for the node at that time.
- The eleventh field gives source IP, Destination IP, TTL.
- This field gives unique packet ID.
Thursday, December 30, 2010
Wireless Trace format : Default
New Wireless Trace Format
r -t 1.002924421 -Hs 5 -Hd 5 -Ni 5 -Nx 200.00 -Ny 50.00 -Nz 0.00 –Ne 999.985544 -Nl MAC -Nw --- -Ma 50 -Md 5 -Ms 4 -Mt 0 -Is 4.0 -Id 5.0 -It cbr -Il 220 -If 0 -Ii 2 -Iv 32 -Pn cbr -Pi 0 -Pf 1 -Po 0
s -t 2.000863796 -Hs 4 -Hd 5 -Ni 4 -Nx 180.00 -Ny 50.00 -Nz 0.00 –Ne 999.973880 -Nl MAC -Nw --- -Ma 50 -Md 5 -Ms 4 -Mt 0 -Is 4.0 -Id 5.0 -It cbr -Il 272 -If 0 -Ii 7 -Iv 32 -Pn cbr -Pi 1 -Pf 0 -Po 0
r -t 2.001951863 -Hs 5 -Hd 5 -Ni 5 -Nx 200.00 -Ny 50.00 -Nz 0.00 –Ne 999.971156 -Nl MAC -Nw --- -Ma 50 -Md 5 -Ms 4 -Mt 0 -Is 4.0 -Id 5.0 -It cbr -Il 220 -If 0 -Ii 7 -Iv 32 -Pn cbr -Pi 1 -Pf 1 -Po 0
Wednesday, December 29, 2010
NS-2 Trace format
Changing environment variables in ns-2
OTCL_LIB=/home/programmer/ns-allinone-2.33/otcl-1.13
NS2_LIB=/home/programmer/ns-allinone-2.33/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB
:$X11_LIB:$USR_LOCAL_LIB
# TCL_LIBRARY
TCL_LIB=/home/programmer/ns-allinone-2.33/tcl8.4.18/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB
# PATH
XGRAPH=/home/programmer/ns-allinone-2.33/bin:/home/programmer/ns-allinone-2.33/tcl8.4.18/unix:/home/programmer/ns-allinone-2.33/tk8.4.18/unix:/home/programmer/ns-allinone-2.33/xgraph-12.1/
NS=/home/programmer/ns-allinone-2.33/ns-2.33/
NAM=/home/programmer/ns-allinone-2.33/nam-1.13/
export PATH=$PATH:$XGRAPH:$NS:$NAM
To run your tcl script use the following command
$ns filename.tcl
Tuesday, December 28, 2010
The WiMAX Forum System Level Simulator NS-2 MAC+PHY Add-On for WiMAX (IEEE 802.16)
1. The cdma_codes (0-255) are distributed among codes for bandwidth request, initial ranging, handover and CQICH. These cdma-code ranges can be set at “ns-wimax.tcl”.
2. To send the bandwidth request (BWR), MSS scheduler makes use of transmission opportunity and cdma_ranging code to verify the opportunity to transmit for each MSS.
3. This version supports a variable part of DL_MAP by taking number of burst allocation in both uplink and downlink.
4. Number of DL_PREAMBLE can variably set to either 1 or 3 symbol-columns.
5. The best effort fair scheduling for downlink allocation is written up with the decrease in complexity.
6. With OFDMA PHY, the end of downlink map entity is removed. The end of UL_MAP will be removed in the next patch. Note that although there is a presence of the end of
UL_MAP entity, there is no packet transmission during this region.
7. The downlink subframe is utilized; we take the space right after the MAP for data allocation.
8. Channel Index random allocation scheme update based on CDMA Ranging mechanism.
9. Effective SINR realignment to dB scale.
10. Support ARQ in Handover scenario
11. New transmission power and interference power calculation logic.
Install ns2 on linux
1.
Download the required ns versions from the links provided in previous post.(for eg. consider ns 2.34 )
2.
Place this file in folder /usr/local
Installing ns2
l
Validate it
To run ns-2
Vmware
VMware software provides a completely virtualized set of hardware to the guest operating system. VMware software virtualizes the hardware for a video adapter, a network adapter, and hard disk adapters. The host provides pass-through drivers for guest USB, serial, and parallel devices. In this way, VMware virtual machines become highly portable between computers, because every host looks nearly identical to the guest. In practice, a system administrator can pause operations on a virtual machine guest, move or copy that guest to another physical computer, and there resume execution exactly at the point of suspension. Alternately, for enterprise servers, a feature called VMotion allows the migration of operational guest virtual machines between similar but separate hardware hosts sharing the same storage. Each of these transitions is completely transparent to any users on the virtual machine at the time it is being migrated.
Downloading links for different versions of Network Simulator 2
ns 2.34- http://sourceforge.net/projects/nsnam/files/ns-2/2.34/
ns 2.33- http://sourceforge.net/projects/nsnam/files/ns-2/2.33/
ns 2.32- http://sourceforge.net/projects/nsnam/files/ns-2/2.32/
ns 2.31- http://sourceforge.net/projects/nsnam/files/ns-2/2.31/
ns 2.30- http://sourceforge.net/projects/nsnam/files/ns-2/2.30/
ns 2.29- http://sourceforge.net/projects/nsnam/files/ns-2/ns-2.29/
Network Simulator 2
Official website- http://www.isi.edu/nsnam/ns/
Tutorial- http://www.isi.edu/nsnam/ns/tutorial/