[ndnSIM] An error when modifying the "forwarder.cpp"

Spyridon Mastorakis smastorakis at unomaha.edu
Thu Nov 12 18:46:37 PST 2020

Yes, most probably.


Spyridon (Spyros) Mastorakis
Assistant Professor
Computer Science Department
University of Nebraska, Omaha
Peter Kiewit Institute Room 175A

On Oct 27, 2020, at 10:06 PM, 郑小辉 <359267191 at qq.com<mailto:359267191 at qq.com>> wrote:


Thank you very much for your reply.
My NDNSIM code is version 2.6, and my program works fine until this code is modified. This error occurs only after this code is modified.
If it wasn't due to this change, what caused the error?
Maybe the code I modified earlier conflicts with this code?

Thank you very much for your help


------------------ 原始邮件 ------------------
发件人: "Spyridon Mastorakis" <smastorakis at unomaha.edu<mailto:smastorakis at unomaha.edu>>;
发送时间: 2020年10月28日(星期三) 上午10:07
收件人: "郑小辉"<359267191 at qq.com<mailto:359267191 at qq.com>>;
抄送: "ndnsim"<ndnsim at lists.cs.ucla.edu<mailto:ndnsim at lists.cs.ucla.edu>>;
主题: Re: [ndnSIM] An error when modifying the "forwarder.cpp"


I do not believe this specific error comes due to this modification. Unless, there is something that I am actually missing.


Spyridon (Spyros) Mastorakis
Assistant Professor
Computer Science Department
University of Nebraska, Omaha
Peter Kiewit Institute Room 175A

On Oct 27, 2020, at 8:58 PM, 郑小辉 via ndnSIM <ndnsim at lists.cs.ucla.edu<mailto:ndnsim at lists.cs.ucla.edu>> wrote:


I tried to reduce the frequency of forwarding interest packets by half. I only modified the code in forwarder.cpp in NS3, and an error occurred later.
Does anyone know how to solve this problem

The modified code is as follows(in forwarder.cpp):

void Forwarder::onOutgoingInterest(const shared_ptr<pit::Entry>& pitEntry,
                Face& outFace, const Interest& interest) {
                        "onOutgoingInterest face=" << outFace.getId() << " interest=" << pitEntry->getName());

        pitEntry->insertOrUpdateOutRecord(outFace, interest);

        std::default_random_engine e;
        std::bernoulli_distribution u;
        if (interest.getName().toUri().find(std::string("manifest")) == std::string::npos && u(e)) return;
//end modify by tian 2020/10/24

The error message is as follows:

terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<nfd::rib::RibManager::Error> >'
  what():  Error in setting interest filter (/localhost/nfd): request timed out

Thank you very much for your help.


ndnSIM mailing list
ndnSIM at lists.cs.ucla.edu<mailto:ndnSIM at lists.cs.ucla.edu>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20201113/eaadef0a/attachment-0001.html>

More information about the ndnSIM mailing list