Use gnuplot to visualize the trace file. For this example, I use the trace file which is generated from this code. The first step is using awk to get throughput of cbr and tcp packets from node 2 to node 3.
Awk Scripting to Interpret the Trace File
May 14, 2008Use awk or perl scripting language to interpret the trace file. For this example, I use the trace file which is generated from http://alkautsarpens.wordpress.com/2008/05/13/limited-queue/ . I want to know, how to interpret that trace file using awk. using awk can filter the trace file, hence we can know Bytes sent entered queue node 0,Bytes sent de-queue node 0, number of packets entered queue node 0, number of packets de-queue node 0, total number of packets dropped at node 2, Bytes all packets received at node 3, etc.
limited queue
May 13, 2008$ns queue-limit $n2 $n3 10
queue-limit is for limiting the number of queue.
In this code, there are 18 packets dropped in queue between node2 and node3.
We can check the number of dropped packets from tracing file and monitor-queue file which is generated by monitor-queue.
Analize queue using nam and monitoring queue
May 2, 2008Analize queue among 3 nodes : node0, node1,node2. Queue dropping will be happen at node0 and node1. because it need 0.8Mb/s to send packet from node0 to node1, but duplex-link between node0 and node1 only 0.5Mb/s and only 0.1Mb/s between node1 and node2.
Posted by izzul hadziq
Posted by izzul hadziq
Posted by izzul hadziq 