<meta http-equiv="Content-Type" content="text/html; charset=GB18030"><pre>Hi,
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</pre><pre>The modified code is as follows£šin forwarder.cpp£©£º</pre><pre><b><i>void Forwarder::onOutgoingInterest(const shared_ptr<pit::Entry>& pitEntry,
Face& outFace, const Interest& interest) {
NFD_LOG_DEBUG(
"onOutgoingInterest face=" << outFace.getId() << " interest=" << pitEntry->getName());
pitEntry->insertOrUpdateOutRecord(outFace, interest);
//begin
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
outFace.sendInterest(interest);
++m_counters.nOutInterests;
}</i></b></pre><pre>The error message is as follows£º</pre><pre><i><b>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</b></i>
</pre><div><br></div><pre><br></pre><pre>Thank you very much for your help.
Sincerely,
Gordon</pre>