[ndnSIM] Running ndn-ping scenario

Xinyu Ma bitmxy at gmail.com
Wed Mar 21 04:00:42 PDT 2018


Hello, Chavoosh.

This is just because the behaviour of ns3::DropTailQueue changed when ns-3
was updated.
The old code like this:
   Config::SetDefault("ns3::DropTailQueue::MaxPackets",  ....
should be chenged to something like this for the new version of ns-3:
   Config::SetDefault("ns3::QueueBase::MaxPackets",  ....
 May this helps.

Best wishes,
Xinyu Ma.

2018-03-20 1:15 GMT+09:00 chavoosh ghasemi <chavoosh.ghasemi.off at gmail.com>:

> FYI, I've fixed* ndn-ping* scenario, so now it runs with no problem. I
> used the latest version of ndnSIM and ns-3, and then imported the latest
> version of *ndn-tools* to *ndn-ping* scenario. After compiling the source
> code, when I tried to run *ndn-ping* I faced the following error:
>
> *error:*
> msg="Could not set default value for ns3::DropTailQueue::MaxPackets",
> file=../src/core/model/config.cc, line=787
> terminate called without an active exception
>
> I just commented the corresponded line and then ran it again. It works
> fine, now.
>
> BTW, thanks for sharing the link of the apps.
>
> Bests,
> *- Chavoosh*
>
> On Mon, Mar 19, 2018 at 8:50 AM, Spyridon (Spyros) Mastorakis <
> mastorakis at cs.ucla.edu> wrote:
>
>> Hi,
>>
>> I will try to update the ndn ping app to the latest API soon.
>>
>> In the meantime, there are a couple of other apps you can take a look at:
>>
>> ChronoSync: https://github.com/spirosmastorakis/scenario-ChronoSync
>>
>> nTorrent (this one is a WIP by 2 masters students at UCLA):
>> https://github.com/AkshayRaman/scenario-ntorrent
>>
>> Thanks,
>>
>> Spyridon (Spyros) Mastorakis
>> Personal Website: http://cs.ucla.edu/~mastorakis/
>> Internet Research Laboratory
>> Computer Science Department
>> UCLA
>>
>> On Mar 18, 2018, at 10:27 AM, chavoosh ghasemi <
>> chavoosh.ghasemi.off at gmail.com> wrote:
>>
>> Junxiao,
>>
>> I'm trying to run ndn-ping scenario (https://github.com/named-data
>> -ndnSIM/scenario-ndn-ping) without changing anything in the source code.
>> I just clone the scenario and tried to compile it and faced the mentioned
>> error. So, do you think I cannot run this scenario as it is? Is there any
>> real application scenario that can run with the current API?
>>
>> Bests,
>> - Chavoosh
>>
>> On Sat, Mar 17, 2018 at 4:08 PM, Junxiao Shi <shijunxiao at email.arizona.
>> edu> wrote:
>>
>>> Hi Chavoosh
>>>
>>> ../ndn-tools/tools/ping/client/ping.cpp:39:17: error: ‘random’ is not a
>>> class, namespace, or enumeration
>>>      m_nextSeq = random::generateWord64();
>>>                  ^~~~~~
>>>
>>> Missing include <ndn-cxx/util/random.hpp>.
>>>
>>> ../ndn-tools/tools/ping/client/ping.cpp: In member function ‘void
>>> ndn::ping::client::Ping::performPing()’:
>>> ../ndn-tools/tools/ping/client/ping.cpp:68:69: error: no matching
>>> function for call to ‘ndn::Face::expressInterest(ndn::Interest&,
>>> std::_Bind_helper<false, void (ndn::ping::client::Ping::*)(const
>>> ndn::Interest&, ndn::Data&, long unsigned int, const
>>> boost::chrono::time_point<ndn::time::steady_clock>&),
>>> ndn::ping::client::Ping*, const std::_Placeholder<1>&, const
>>> std::_Placeholder<2>&, long unsigned int&, boost::chrono::time_point<ndn::time::steady_clock,
>>> boost::chrono::duration<long int, boost::ratio<1l, 1000000000l> > >
>>> >::type, std::_Bind_helper<false, void (ndn::ping::client::Ping::*)(const
>>> ndn::Interest&, long unsigned int), ndn::ping::client::Ping*, const
>>> std::_Placeholder<1>&, long unsigned int&>::type)’
>>>                           bind(&Ping::onTimeout, this, _1, m_nextSeq));
>>>                                                                      ^
>>> In file included from /home/vagrant/ns-dev/scenario-
>>> ndn-ping/ndn-tools/core/common.hpp:61:0,
>>>                  from ../ndn-tools/tools/ping/client/ping.hpp:26,
>>>                  from ../ndn-tools/tools/ping/client/ping.cpp:23:
>>> /home/vagrant/ns-dev/ns-3/build/ns3/ndnSIM/ndn-cxx/face.hpp:229:3:
>>> note: candidate: const ndn::PendingInterestId*
>>> ndn::Face::expressInterest(const ndn::Interest&, const DataCallback&,
>>> const NackCallback&, const TimeoutCallback&)
>>>    expressInterest(const Interest& interest,
>>>    ^~~~~~~~~~~~~~~
>>> /home/vagrant/ns-dev/ns-3/build/ns3/ndnSIM/ndn-cxx/face.hpp:229:3:
>>> note:   candidate expects 4 arguments, 3 provided
>>>
>>> You are using an expressInterest overload that was deprecated and then
>>> removed. Rewrite the code with the current API.
>>>
>>> Yours, Junxiao
>>>
>>
>>
>>
>> --
>> *Chavoosh Ghasemi*
>>
>> Ph.D. Student in Computer Networking
>> University of Arizona - Computer Science Department
>> *Address: Gould-Simpson 721B,
>> <https://maps.google.com/?q=721B,+1040+E.+4th+Street,+Tucson,+AZ+85721&entry=gmail&source=g> *
>> *1040 E. 4th Street,
>> <https://maps.google.com/?q=721B,+1040+E.+4th+Street,+Tucson,+AZ+85721&entry=gmail&source=g>*
>>
>>
>> *                 Tucson, AZ 85721
>> <https://maps.google.com/?q=721B,+1040+E.+4th+Street,+Tucson,+AZ+85721&entry=gmail&source=g>"The quieter you
>> become, the more you can hear"*
>>
>>
>>
>
>
> --
> *Chavoosh Ghasemi*
>
> Ph.D. Student in Computer Networking
> University of Arizona - Computer Science Department
> *Address: Gould-Simpson 721B, *
> *1040 E. 4th Street,*
>
>
> *                 Tucson, AZ 85721"The quieter you become, the more you
> can hear"*
>
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20180321/65322ae4/attachment-0001.html>


More information about the ndnSIM mailing list