Al Salamo Alikom,
Here is the AWK calculation of total_RTRpackets_sent, the control packets
sent by the RTR
#defining the variables to be used to store every field in the trace line
event = $1;
layer = $4;
if(event != N) {
if (layer == RTR)
{
if(event == s || event == f)
{
This may help, http://nsnam.isi.edu/nsnam/index.php/NS-2_Trace_Formats
-
#explanation of trace file
#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
Hi,
If you are interested in learning how tracing works in NS2, please read
http://www.ns2ultimate.com/post/3995318343/post-processing-ns2-result-using-ns2-trace-main-post
The above posts are based on the normal trace. If you are interested in
wireless trace you might have to modify it a
I think control packet is not cbr nor tcp, is the rest of paquet but I am not
sure
AfterEight wrote:
Dear all,
I wanted to count control packets in the trace file by using awk file, but
I don't know which packets are control packet as the most type of packets
are cbr from routing layer
* Call for Papers *
Network Protocols and Algorithms
ISSN 1943-3581
http://www.macrothink.org/journal/index.php/npa/
Network Protocols and Algorithms is a free-access online international journal,
peer-reviewed and published by Macrothink Institute.