[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] modify trace.cc file
Hi,
A similation : 6 nodes, 45Mbps links, 1300 On_Off voice traffic
flows, time 60 second.
Target: to get performance data for flow 0 and 1.
To minimize the output trace file, I added following line in trace.cc
file:
if(iph->flowid() < 2){ /* Li chengzhi for traget traffic trace */
if (!show_tcphdr_) {
sprintf(wrk_, "%c %g %d %d %s %d %s %d %s%s %s%s %d %d",
.....
}/*LI chengzhi traget traffic file */
But, the output file looks very strange, many duplications:
+ 0.793108 0 1 exp 100 ------- 1 0.1 6.1 0 25016
- 0.793128 0 1 exp 100 ------- 1 0.1 6.1 0 25016
+ 0.793108 0 1 exp 100 ------- 1 0.1 6.1 0 25016
r 0.793145 0 1 exp 100 ------- 1 0.1 6.1 0 25016
- 0.793128 0 1 exp 100 ------- 1 0.1 6.1 0 25016
+ 0.793108 0 1 exp 100 ------- 1 0.1 6.1 0 25016
+ 0.793108 0 1 exp 100 ------- 1 0.1 6.1 0 25016
r 0.793145 0 1 exp 100 ------- 1 0.1 6.1 0 25016
- 0.793128 0 1 exp 100 ------- 1 0.1 6.1 0 25016
+ 0.793108 0 1 exp 100 ------- 1 0.1 6.1 0 25016
r 0.793145 0 1 exp 100 ------- 1 0.1 6.1 0 25016
- 0.793128 0 1 exp 100 ------- 1 0.1 6.1 0 25016
r 0.793145 0 1 exp 100 ------- 1 0.1 6.1 0 25016
- 0.793128 0 1 exp 100 ------- 1 0.1 6.1 0 25016
r 0.793145 0 1 exp 100 ------- 1 0.1 6.1 0 25016
+ 0.793108 0 1 exp 100 ------- 1 0.1 6.1 0 25016
- 0.793128 0 1 exp 100 ------- 1 0.1 6.1 0 25016
r 0.793145 0 1 exp 100 ------- 1 0.1 6.1 0 25016
+ 0.79324 4 5 exp 100 ------- 1 0.1 6.1 0 25016
- 0.793258 4 5 exp 100 ------- 1 0.1 6.1 0 25016
+ 0.79324 4 5 exp 100 ------- 1 0.1 6.1 0 25016
+ 0.79324 4 5 exp 100 ------- 1 0.1 6.1 0 25016
r 0.793276 4 5 exp 100 ------- 1 0.1 6.1 0 25016
- 0.793258 4 5 exp 100 ------- 1 0.1 6.1 0 25016
+ 0.79324 4 5 exp 100 ------- 1 0.1 6.1 0 25016
Do I make some mistake ior miss something?
Thank you in advance.
Sincerely,
Chengzhi Li