File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 41
41
// * bbr-3-0.pcap for the first interface on R2
42
42
// * bbr-3-1.pcap for the second interface on R2
43
43
// (2) cwnd.dat file contains congestion window trace for the sender node
44
- // (3) throughput.dat file contains sender side throughput trace
44
+ // (3) throughput.dat file contains sender side throughput trace (throughput is in Mbit/s)
45
45
// (4) queueSize.dat file contains queue length trace from the bottleneck link
46
46
//
47
47
// BBR algorithm enters PROBE_RTT phase in every 10 seconds. The congestion
@@ -81,9 +81,12 @@ TraceThroughput(Ptr<FlowMonitor> monitor)
81
81
{
82
82
auto itr = stats.begin ();
83
83
Time curTime = Now ();
84
- throughput << curTime << " "
84
+
85
+ // Convert (curTime - prevTime) to microseconds so that throughput is in bits per
86
+ // microsecond (which is equivalent to Mbps)
87
+ throughput << curTime.GetSeconds () << " s "
85
88
<< 8 * (itr->second .txBytes - prev) / ((curTime - prevTime).ToDouble (Time::US))
86
- << std::endl;
89
+ << " Mbps " << std::endl;
87
90
prevTime = curTime;
88
91
prev = itr->second .txBytes ;
89
92
}
You can’t perform that action at this time.
0 commit comments