NS2: How to measure queueing delay
I need a tcl or awk scri开发者_如何学Gopt that can be used queueing delay in my simulation.
You can use awk scripts like below
if($4 == "AGT" && $1 == "s") {
start_time[$6] = $2;
} else if(($7 == "cbr") && ($1 == "r")) {
end_time[$6] = $2;
}
now you can calculate by subtraction..
精彩评论