[Ndn-interest] [Nfd-dev] How to see data retrieve / download time using "ndngetfile" command?
Klaus Schneider
klaus at cs.arizona.edu
Wed Jun 21 18:18:44 PDT 2017
On 06/21/2017 08:30 PM, Md Toufiqul Islam wrote:
> Is there any way I can download videos from internet using NDN platform?
> I mean, I would like to put a video file on one of my personal website &
> after that I would like to download that video file over NDN platform to
> measure the download time. Is there any NDN apps? Something like this
> one: https://wiki.fd.io/view/Http-server
That's a great question.
One possible answer:
1. Run NFD on your server and client.
2. Use ndnchunks to download the file.
As far as I know, we don't have an equivalent to the fd.io HTTP-server
for NDN. But I'll forward it to the mailing list for others to comments.
Regards,
Klaus
>
> I will be glad to have a valuable reply from you.
>
> Best regards
> Muhammad
>
> On Thu, Jan 12, 2017 at 11:25 PM, Klaus Schneider <klaus at cs.arizona.edu
> <mailto:klaus at cs.arizona.edu>> wrote:
>
> Yes, the problem with very small files is a bug which we're fixing
> right now.
>
> I'm glad that I could help!
>
> Klaus
>
>
> On 01/12/2017 05:52 AM, Md Toufiqul Islam wrote:
>
> Dear Mr. Klaus,
>
> I would like to thank you from deep of my heart for your help &
> guideline.
>
> Things are working perfectly now, exactly what I am looking for.
> It was
> my fault to use a very small txt file for testing purpose.
>
> I wish you all the best. Be well & take care.
>
>
> Best regards
> Muhammad
>
>
> On Thu, Jan 12, 2017 at 1:06 PM, Md Toufiqul Islam
> <toufiqulislam.bd at gmail.com <mailto:toufiqulislam.bd at gmail.com>
> <mailto:toufiqulislam.bd at gmail.com
> <mailto:toufiqulislam.bd at gmail.com>>> wrote:
>
> Hi Klaus,
>
> Thanks for your guideline. I have done exactly how you have
> explained. But still no sign of showing the "Time used". Am
> I doing
> anything wrong?
>
> *# ndnputchunks -p -v /abc <
> /home/remoteserver/Downloads/rony.txt*
>
> Loading input ...
> Created 1 chunks for prefix /abc
> %FD%00%00%01Y%92%7F%7F%60
> Data published with name: /abc/%FD%00%00%01Y%92%7F%7F%60
>
>
> *# ndncatchunks -v -t aimd -S /abc*
>
>
> RttEstimator initial parameters:
> Alpha = 0.125
> Beta = 0.25
> K = 4
> Initial RTO = 1000 milliseconds
> Min RTO = 200 milliseconds
> Max RTO = 4000 milliseconds
> Pipeline basic parameters:
> Max retries on timeout or Nack = 3
> Interest life time = 4000 milliseconds
> Allow stale content
> Verbose output enabled
> Print summary to std err enabled
> PipelineInterestsAimd initial parameters:
> Initial congestion window size = 1
> Initial slow start threshold = 2.14748e+09
> Multiplicative decrease factor = 0.5
> Additive increase step = 1
> RTO check interval = 10 milliseconds
> Max retries on timeout or Nack = 3
> Conservative Window Adaptation enabled
> Resetting cwnd to ssthresh when loss event occurs
> Data: Name: /abc/%FD%00%00%01Y%92%7F%7F%60/%00%00
> MetaInfo: ContentType: 0, FreshnessPeriod: 10000 milliseconds,
> FinalBlockId: %00%00
> Content: (size: 13)
> Signature: (type: 1, value_length: 256)
>
> Discovered version = 1484221546336
> Timeout for Interest
>
> /abc?ndn.MinSuffixComponents=3&ndn.MaxSuffixComponents=3&ndn.ChildSelector=1&ndn.Nonce=573151652&ndn.Exclude=*,%FD%00%00%01Y%92%7F%7F%60
> Timeout for Interest
>
> /abc?ndn.MinSuffixComponents=3&ndn.MaxSuffixComponents=3&ndn.ChildSelector=1&ndn.Nonce=2787869428&ndn.Exclude=*,%FD%00%00%01Y%92%7F%7F%60
> Found data with the latest version: 1484221546336
> Hi i am rony
>
>
> *# ndncatchunks -v -t fixed -S /abc
>
> *Data: Name: /abc/%FD%00%00%01Y%92%7F%7F%60/%00%00
> MetaInfo: ContentType: 0, FreshnessPeriod: 10000 milliseconds,
> FinalBlockId: %00%00
> Content: (size: 13)
> Signature: (type: 1, value_length: 256)
>
> Discovered version = 1484221546336
> Timeout for Interest
>
> /abc?ndn.MinSuffixComponents=3&ndn.MaxSuffixComponents=3&ndn.ChildSelector=1&ndn.Nonce=3287183225&ndn.Exclude=*,%FD%00%00%01Y%92%7F%7F%60
> Timeout for Interest
>
> /abc?ndn.MinSuffixComponents=3&ndn.MaxSuffixComponents=3&ndn.ChildSelector=1&ndn.Nonce=252627901&ndn.Exclude=*,%FD%00%00%01Y%92%7F%7F%60
> Found data with the latest version: 1484221546336
> Hi i am rony
>
>
>
> Best regards
> Muhammad
>
> On Thu, Jan 12, 2017 at 5:38 AM, Klaus Schneider
> <klaus at cs.arizona.edu <mailto:klaus at cs.arizona.edu>
> <mailto:klaus at cs.arizona.edu <mailto:klaus at cs.arizona.edu>>> wrote:
>
> You can get all the files with:
>
> # git clone https://gerrit.named-data.net/ndn-tools
> <https://gerrit.named-data.net/ndn-tools>
> <https://gerrit.named-data.net/ndn-tools
> <https://gerrit.named-data.net/ndn-tools>>
> # cd ndn-tools/
> # git fetch https://gerrit.named-data.net/ndn-tools
> <https://gerrit.named-data.net/ndn-tools>
> <https://gerrit.named-data.net/ndn-tools
> <https://gerrit.named-data.net/ndn-tools>> refs/changes/32/3432/4
> && git checkout FETCH_HEAD
>
> Then look in the folder "ndn-tools/tools/chunks/catchunks"
>
> Moreover, you can find them on gerrit. For example:
> https://gerrit.named-data.net/#/c/3432/4/tools/chunks/catchunks/pipeline-interests-fixed-window.cpp
> <https://gerrit.named-data.net/#/c/3432/4/tools/chunks/catchunks/pipeline-interests-fixed-window.cpp>
>
> <https://gerrit.named-data.net/#/c/3432/4/tools/chunks/catchunks/pipeline-interests-fixed-window.cpp
> <https://gerrit.named-data.net/#/c/3432/4/tools/chunks/catchunks/pipeline-interests-fixed-window.cpp>>
>
> Best regards,
> Klaus
>
> On 01/11/2017 07:04 PM, Md Toufiqul Islam wrote:
>
> 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 <mailto:xaiki at endlessm.com>
> <mailto:xaiki at endlessm.com <mailto:xaiki at endlessm.com>>
> <mailto:xaiki at endlessm.com
> <mailto:xaiki at endlessm.com> <mailto:xaiki at endlessm.com
> <mailto: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
> <https://github.com/endlessm/endless-ndn/blob/master/eos_data_distribution/ndn/chunks.py>
>
> <https://github.com/endlessm/endless-ndn/blob/master/eos_data_distribution/ndn/chunks.py
> <https://github.com/endlessm/endless-ndn/blob/master/eos_data_distribution/ndn/chunks.py>>
>
>
> <https://github.com/endlessm/endless-ndn/blob/master/eos_data_distribution/ndn/chunks.py
> <https://github.com/endlessm/endless-ndn/blob/master/eos_data_distribution/ndn/chunks.py>
>
> <https://github.com/endlessm/endless-ndn/blob/master/eos_data_distribution/ndn/chunks.py
> <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
> <mailto:klaus at cs.arizona.edu> <mailto:klaus at cs.arizona.edu
> <mailto:klaus at cs.arizona.edu>>
> <mailto:klaus at cs.arizona.edu
> <mailto:klaus at cs.arizona.edu> <mailto:klaus at cs.arizona.edu
> <mailto:klaus at cs.arizona.edu>>>>
> wrote:
>
> We are currently updating the ndncatchunks
> code:
> https://gerrit.named-data.net/#/c/3432/
> <https://gerrit.named-data.net/#/c/3432/>
> <https://gerrit.named-data.net/#/c/3432/
> <https://gerrit.named-data.net/#/c/3432/>>
> <https://gerrit.named-data.net/#/c/3432/
> <https://gerrit.named-data.net/#/c/3432/>
> <https://gerrit.named-data.net/#/c/3432/
> <https://gerrit.named-data.net/#/c/3432/>>>
>
> you can check the code out via "git fetch
> https://gerrit.named-data.net/ndn-tools
> <https://gerrit.named-data.net/ndn-tools>
> <https://gerrit.named-data.net/ndn-tools
> <https://gerrit.named-data.net/ndn-tools>>
> <https://gerrit.named-data.net/ndn-tools
> <https://gerrit.named-data.net/ndn-tools>
> <https://gerrit.named-data.net/ndn-tools
> <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>
> <mailto:klaus at cs.arizona.edu
> <mailto:klaus at cs.arizona.edu>> <mailto:klaus at cs.arizona.edu
> <mailto:klaus at cs.arizona.edu>
> <mailto:klaus at cs.arizona.edu
> <mailto:klaus at cs.arizona.edu>>>
> <mailto:klaus at cs.arizona.edu
> <mailto:klaus at cs.arizona.edu>
> <mailto:klaus at cs.arizona.edu
> <mailto:klaus at cs.arizona.edu>> <mailto:klaus at cs.arizona.edu
> <mailto:klaus at cs.arizona.edu>
> <mailto: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>
> <https://github.com/named-data/ndn-tools
> <https://github.com/named-data/ndn-tools>>
>
> <https://github.com/named-data/ndn-tools
> <https://github.com/named-data/ndn-tools>
> <https://github.com/named-data/ndn-tools
> <https://github.com/named-data/ndn-tools>>>
>
> <https://github.com/named-data/ndn-tools
> <https://github.com/named-data/ndn-tools>
> <https://github.com/named-data/ndn-tools
> <https://github.com/named-data/ndn-tools>>
>
> <https://github.com/named-data/ndn-tools
> <https://github.com/named-data/ndn-tools>
> <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>
> <mailto:Nfd-dev at lists.cs.ucla.edu
> <mailto:Nfd-dev at lists.cs.ucla.edu>>
> <mailto:Nfd-dev at lists.cs.ucla.edu
> <mailto:Nfd-dev at lists.cs.ucla.edu>
> <mailto:Nfd-dev at lists.cs.ucla.edu
> <mailto:Nfd-dev at lists.cs.ucla.edu>>>
> <mailto:Nfd-dev at lists.cs.ucla.edu
> <mailto:Nfd-dev at lists.cs.ucla.edu>
> <mailto:Nfd-dev at lists.cs.ucla.edu
> <mailto:Nfd-dev at lists.cs.ucla.edu>>
> <mailto:Nfd-dev at lists.cs.ucla.edu
> <mailto:Nfd-dev at lists.cs.ucla.edu>
> <mailto: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>
>
> <http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev
> <http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev>>
>
>
> <http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev
> <http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev>
>
> <http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev
> <http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev>>>
>
>
>
> <http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev
> <http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev>
>
> <http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev
> <http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev>>
>
>
> <http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev
> <http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev>
>
> <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 <mailto:Nfd-dev at lists.cs.ucla.edu>
> <mailto:Nfd-dev at lists.cs.ucla.edu
> <mailto:Nfd-dev at lists.cs.ucla.edu>>
> <mailto:Nfd-dev at lists.cs.ucla.edu
> <mailto:Nfd-dev at lists.cs.ucla.edu>
> <mailto: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>
>
> <http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev
> <http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev>>
>
>
> <http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev
> <http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev>
>
> <http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev
> <http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev>>>
>
>
>
>
>
>
More information about the Ndn-interest
mailing list