Showing posts with label trace. Show all posts
Showing posts with label trace. Show all posts

Oct 15, 2008

Trace graph - Network Simulator NS-2 trace files analyser


Trace graph is a free network trace files analyser developed for network simulator ns-2 trace processing. Trace graph can support any trace format if converted to its own or ns-2 trace format. Trace graph runs under Windows, Linux, UNIX and MAC OS systems. Trace converter processes traces over 80x faster and is available to buy.

Supported ns-2 trace file formats:

  • wired
  • satellite
  • wireless (old and new trace)
  • new trace
  • wired-wireless.
Some of the program features (version 2.05):
  • 238 2D graphs
  • 12 3D graphs
  • delays, jitter, processing times, round trip times, throughput graphs and statistics
  • whole network, link and node graphs and statistics
  • all the results can be saved to text files, graphs can also be saved as jpeg and tiff
  • x, y, z axes information: minimum, mean, maximum, standard deviation, median
  • any graph saved in text file with 2 or 3 columns can be plotted
  • script files processing to do the analysis automatically.

Installation

Installation instructions on Linux:
1)Download tracegraph and mglinstaller from the webpage
Check Trace graph download page: http://www.tracegraph.com/download.html
Choose Linux version and download mglinstaller.
2) tar -xvzf tracegraph202.linux.tar.gz
3) gunzip mglinstaller.gz
4) You have to uncompress the file "mglinstaller.gz" and after doing it you will get the file "mglinstaller".
Now, there's no need to use chmod to change the rights and run ./mglinstaller.(or) Just do "sh mglinstaller" and
the script will do the rest for you.
5)set the environment path variable...
setenv LD_LIBRARY_PATH /home/nmahali/trace/tracegraph202/bin/glnx86/
to check whether the variable is set properly u can just type $LD_LIBRARY_PATH Architecture
of the path variable setting:: if new variable then setenv path
if already existing then setenv {$}.

Installation instructions on Windows:
1)Download tracegraph and mglinstaller from the page make sure it is windows version http://www.tracegraph.com/download.html
2)unzip tracegraph202.zip to say, D:\
3)execute mglinstaller.exe, when it asks for directory name, enter D:\tracegraph202
4) add D:\tracegraph202\bin\win32 to your environment PATH
5)how to add to environment PATH??
right click on Mycomputer and select properties
From properties select Advanced tab
Select environment path variables
Select PATH and add your path to it
Thats it tracegraph is now ready!!
This is the procedure i followed while installing tracegraph on both windows and linux (if you dont have matlab installed on your machine.)

Download Trace graph and Trace converter.

Trace graph was presented at ISAT 2003 (Information Systems Architecture and Technology) conference. Click here to read the conference paper.

[via]

Jun 3, 2007

How to interprete the NS2 tracefile for wireless simulation

To find the interpretation of all possible trace format when you do the wireless simulation, you'd better read the code of ns2 in file ns2home/trace/cmu-trace{.h, .cc} Mostly, the format would be as

ACTION: [s|r|D]: s -- sent, r -- received, D -- dropped
WHEN: the time when the action happened
WHERE: the node where the action happened
LAYER: AGT -- application,
RTR -- routing,
LL -- link layer (ARP is done here)
IFQ -- outgoing packet queue (between link and mac layer)
MAC -- mac,
PHY -- physical
flags:
SEQNO: the sequence number of the packet
TYPE: the packet type
cbr -- CBR data stream packet
DSR -- DSR routing packet (control packet generated by routing)
RTS -- RTS packet generated by MAC 802.11
ARP -- link layer ARP packet
SIZE: the size of packet at current layer, when packet goes down, size increases, goes up size decreases
[a b c d]: a -- the packet duration in mac layer header
b -- the mac address of destination
c -- the mac address of source
d -- the mac type of the packet body
flags:
[......]: [
source node ip : port_number
destination node ip (-1 means broadcast) : port_number
ip header ttl
ip of next hop (0 means node 0 or broadcast)
]


So we can interpret the below trace
s 76.000000000 _98_ AGT  --- 1812 cbr 32 [0 0 0 0] ------- [98:0 0:0 32 0]

as Application 0 (port number) on node 98 sent a CBR packet whose ID is 1812 and size is 32 bytes, at time 76.0 second, to application 0 on node 0 with TTL is 32 hops. The next hop is not decided yet.



And we can also interpret the below trace

r 0.010176954 _9_ RTR  --- 1 gpsr 29 [0 ffffffff 8 800] ------- [8:255 -1:255 32 0]
in the same way, as The routing agent on node 9 received a GPSR broadcast (mac address 0xff, and ip address is -1, either of them means broadcast) routing packet whose ID is 1 and size is 19 bytes, at time 0.010176954 second, from node 8 (both mac and ip addresses are 8), port 255 (routing agent).

May 24, 2007

Video Traces for Network Performance Evaluation



To obtain video trace for network performance evaluation, you can download them at Arizone State University (ASU) website. The traces have been generated from encodings of several videos of typically 60 minutes length each. ASU provide traces for videos encoded with MPEG-4 Part 2, H.261, H.263 and H.264/AVC. For MPEG-4 Part 2 traces for single layer encoded video, temporal scalable, spatial scalable (two-layer) encoded video, as well as fine grain scalable video. For H.264/AVC ASU provide traces for up to high definition resolution video.

Site Link

tags :

May 10, 2006

Awk to analyze ns-2 tracefile

trace2stats is a set of AWK scripts to get node-to-node statistics from the tracefiles generated by the ns-2 network simulator.



For More, visit this site
Tags :

Feb 4, 2006

Monitor_queue Trace

To monitor a queue between two nodes, command monitor-queue can be used.

$ns monitor-queue
This sets up a monitor that keeps track of average queue length of the queue on the link between nodes and . The default value of sampleinterval is 0.1.

Eg.

set monitor [$ns monitor-queue $S $D [open qm.out w] 0.1]

Trace format :

0.69999999999999996 0 1 0.0 0.0 12 12 0 5178 5178 0
Time, From, To, qsizeB, qsizeP, arrivedP, departedP, droppedP, arrivedB, departedB, droppedB

where *B is number in Bytes, and *P is numbers in Packets.

Jan 23, 2006

Network Simutator, Ns-2 Trace format

Normal Trace Format

This information comes from The ns Manual "Trace and Monitoring Support: Trace File Format" chapter. This trace is used normal wired operations. The trace starts with one of four possible characters.

Event Abbreviation Type Value
Normal Event r: Receive
d: Drop
e: Error
+: Enqueue
-: Dequeue
%g %d %d %s %d %s %d %d.%d %d.%d %d %d
double Time
int Source Node
int Destination Node
string Packet Name
int Packet Size
string Flags
int Flow ID
int Source Address
int Destination Address
int Sequence Number
int Unique Packet ID

Depending on the packet type, the trace may log additional information:

Event Type Value
TCP Trace %d 0x%x %d %d
int Ack Number
hexadecimalFlags
int Header Length
int Socket Address Length
Satellite Trace %.2f %.2f %.2f %.2f
double Source Latitude
double Source Longitude
double Destination Latitude
double Destination Longitude

** For more click here