- Home Page of ProjectGuideline.com ›
- Forums ›
- Help for Ns2 Projects, Ns2 Code, Matlab Projects, Matlab Code, etc., ›
- DSDV in new trace format ??
Hi, i would like to ask you please
How do you compute normalized routing load for DSDV ?
for DSDV believe me it’s not the same, this line is from a DSDV trace file, in the new trace format
s -t 0.008749440 -Hs 0 -Hd -1 -Ni 0 -Nx 98.98 -Ny 614.65 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw — -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 0.255 -Id -1.255 -It message -Il 32 -If 0 -Ii 0 -Iv 32
and this is a line from the DSR trace file in the new format, in the new trace format
f -t 55.985540908 -Hs 18 -Hd 7 -Ni 18 -Nx 777.09 -Ny 630.94 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw — -Ma 13a -Md 12 -Ms 6 -Mt 800 -Is 6.255 -Id 7.255 -It DSR -Il 56 -If 0 -Ii 84204 -Iv 254 -P dsr -Ph 3 -Pq 0 -Ps 22 -Pp 1 -Pn 22 -Pl 4 -Pe 7->9 -Pw 0 -Pm 0 -Pc 0 -Pb 0->0
the Red row in the DSDV for the routing protocol is message, so when using the Awk script
BEGIN{
recvs = 0;
routing_packets = 0;
}
{
if (( $1 == “r”) && ( $35 == “cbr” ) && ( $19==”AGT” )) recvs++;
if (($1 == “s” || $1 == “f”) && ( $19 == “RTR” && $35 ==”message” )) routing_packets++;
}
END{
printf(“NRL = %.5f”, routing_packets/recvs)
}
is it right ?
i will notice you i did replace the DSR or AODV with “message”,
so what do you think
Just remove the following in that if statement.
&& $35 ==”message”
Because I hope that it will not be necessary. Because all the packet sent or forwarded at the network layer should be taken in to account. So no need to add any other filter at that point.
Charles Pandian.
i dont think so coz when i do this, i put the packets for the cbr purpose too