[Nfd-dev] How to see data retrieve / download time using "ndngetfile" command?
Md Toufiqul Islam
toufiqulislam.bd at gmail.com
Wed Jan 11 18:04:56 PST 2017
Dear Klaus,
Thank you once again for your great help. This is exactly what I need. But
as I have very bad programming experience, I couldn't able to configure it
properly. Is is possible or permissible to ask you for the modified cpp &
hpp file so that I can just replace with my old files?
regards
Muhammad
On Wed, Jan 11, 2017 at 11:20 PM, Niv Sardi <xaiki at endlessm.com> wrote:
> Hello,
> you can check out our chunks implementation (a little different from the
> NDN cat/put chunks one) that implements a GObject layer for
> progress/complete signal if that's usefull for you:
> https://github.com/endlessm/endless-ndn/blob/master/eos_
> data_distribution/ndn/chunks.py
>
> On Wed, Jan 11, 2017 at 6:14 PM, Klaus Schneider <klaus at cs.arizona.edu>
> wrote:
>
>> We are currently updating the ndncatchunks code:
>> https://gerrit.named-data.net/#/c/3432/
>>
>> you can check the code out via "git fetch https://gerrit.named-data.net/
>> ndn-tools refs/changes/32/3432/4 && git checkout FETCH_HEAD"
>>
>> It contains a function printSummary() which might be what you want:
>>
>> void
>>> PipelineInterestsFixedWindow::printSummary() const
>>> {
>>> time::steady_clock::duration dur = time::steady_clock::now() -
>>> m_startTime;
>>> double timePassed = static_cast<double>(dur.count()) / 1000000; // in
>>> ms
>>> double throughput = (8 * m_receivedSize * 1000) / timePassed;
>>> std::string throughputUnit;
>>>
>>> computeThroughput(throughput, throughputUnit);
>>>
>>> std::cerr << "\nAll segments have been received.\n"
>>> << "Total # of segments received: " << m_nReceived << "\n"
>>> << "Time used: " << timePassed << " ms" << "\n"
>>> << "Goodput: " << throughput << " " << throughputUnit <<
>>> "\n";
>>> }
>>>
>>
>> Best regards,
>> Klaus
>>
>> On 01/11/2017 01:49 PM, Md Toufiqul Islam wrote:
>>
>>> Dear Klaus,
>>>
>>> Thank you so much for your reply. File transfer / retrieval is not the
>>> problem. Problem is retrieval time (millisecond).
>>>
>>> I have already tried ndncatchunks / ndnputchunks. But these doesn't
>>> provide me any information about download time / retrieval time of the
>>> contents either. Is there any other idea ?
>>>
>>>
>>> Best regards
>>> Muhammad
>>>
>>>
>>> On Wed, Jan 11, 2017 at 7:17 PM, Klaus Schneider <klaus at cs.arizona.edu
>>> <mailto:klaus at cs.arizona.edu>> wrote:
>>>
>>> Hi Muhammad,
>>>
>>> you might want to use ndncatchunks/ndnputchunks from
>>> https://github.com/named-data/ndn-tools
>>> <https://github.com/named-data/ndn-tools>
>>>
>>> Best regards,
>>> Klaus
>>>
>>>
>>> On 01/11/2017 10:49 AM, Md Toufiqul Islam wrote:
>>>
>>> Hello Everyone,
>>>
>>> I hope all of you are doing great. I have a very small question
>>> which I
>>> couldn't find any solution yet. I believe this is the right
>>> place to ask
>>> about.
>>>
>>> I have installed nfd, ndn-cxx and Repo-ng on two of computers
>>> willing to
>>> insert & retrieve data to & from data repository. I have done
>>> this
>>> successfully using ndnputfile & ndngetfile command. But after
>>> retrieving any data using "ndngetfile" command, it doesn't show
>>> me any
>>> message regarding how much time it needed to fetch the required
>>> data
>>> from the repository. Can anyone help me regarding that? How can
>>> I see
>>> the download time?
>>>
>>> Here is an example. When I retrieve a file from one computer to
>>> other,
>>> ndngetfile shows the following message:
>>>
>>> ndngetfile /example/data/1/test.txt
>>>
>>>
>>> INFO: End of file is reached.
>>> INFO: Total # of segments received: 188
>>> INFO: Total # bytes of content received: 187537
>>>
>>> On the above, there are no information about retrieve/download
>>> time of
>>> the received data. How can I see retrieve/download time? I will
>>> be glad
>>> to have valuable reply from yours.
>>>
>>> With regards
>>> Muhammad Toufiqul
>>>
>>>
>>> _______________________________________________
>>> Nfd-dev mailing list
>>> Nfd-dev at lists.cs.ucla.edu <mailto:Nfd-dev at lists.cs.ucla.edu>
>>> http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev
>>> <http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev>
>>>
>>>
>>> _______________________________________________
>> Nfd-dev mailing list
>> Nfd-dev at lists.cs.ucla.edu
>> http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20170112/fc61833e/attachment.html>
More information about the Nfd-dev
mailing list