Hi , For calculating Normalized MAC Load, I set macTrace ON in my TCL files; ... -agentTrace ON \ -routerTrace ON \ -macTrace ON \ -movementTrace OFF \ ...
Then, I am using this code to calculate MAC load;
BEGIN {}
{
if (( $1 == "r") && ( $35 == "cbr" ) && ( $19=="AGT" )) recvs++;
if (( $1 == "s" || $1 == "f") && ($5 == "MAC")) mac_packets++;
}
END{ printf("Normalized MAC Load = %.3f", mac_packets/recvs); }
Kindly tell me if I am missing something.
Best Regards.
