Project

General

Profile

Actions

Bug #4551

closed

catchunks: PipelineInterestsAimd::printSummary shows incorrect RTTs if all packets are retransmitted

Added by Chavoosh Ghasemi about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Start date:
03/20/2018
Due date:
% Done:

100%

Estimated time:
1.00 h

Description

I have ported catchunks and putchunks tools to ndnSIM and after running them by different bandwidths I just realized for small bandwidth the printSummary function prints an odd output, like the following one:

All segments have been received.
Time elapsed: 591.6 milliseconds
Total # of segments received: 9
Total size: 35.225kB
Goodput: 476.335363 kbit/s
Total # of packet loss events: 2
Packet loss rate: 0.222222
Total # of retransmitted segments: 10
Total # of received congestion marks: 0
RTT min/avg/max = 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546
70353751698604991057655128207624549009038932894407586850845513394230458323690322294816580855933212334827479782620414472316873817718091929988125040
4026184124858368.000/0.000/0.000 ms

As we can see the value of minRTT is so big, and this is because we initialize minRTT with numeric_limits<double>::max() and apparently it does not change, so after calling printSummary function it prints out the max value of double type.
Anyways, I am wondering why minRTT does not update. BTW, the above output shows we have some packet loss, but all segments are received, successfully (i.e. 9 out of 9).

Actions

Also available in: Atom PDF