i'm a bit confused with the throughput terminology and formula for network
part. in my calculation, im using throughput as a number of packet received
times 8000 (to get kilobit) divide by runtime. is this correct?
for (i in nodes) {
if ( packets_received[i] > 0 ) {
end = node_end_time[i];
start = node_start_time[i - number_flows];
runtime = end - start;
if ( runtime > 0 ) {
throughput[i] = packets_received[i]*8000 / runtime;
printf("%d\n", throughput[i]) > "throughput";
}
}
My system :
FC 6
2.6.18-1.2869.fc6
ns2.30
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com