[ndnSIM] Error When Adding Routes Using FibHelper
Samar Alduayji
samarduayji at gmail.com
Wed Nov 9 04:16:36 PST 2022
Dear All,
I'm using the ndn::FibHelper::AddRoute function to add routes to newly
connected p2p nodes. My code is something like this
NodeContainer nodes;
nodes. Create(4);
NodeContainer producer;
producer.Create(1);
PointToPointHelper p2p;
p2p.Install(nodes.Get(0), nodes.Get(1));
p2p.Install(nodes.Get(1), nodes.Get(2));
p2p.Install(nodes.Get(2), nodes.Get(3));
p2p.Install(nodes.Get(0), nodes.Get(2));
ndn::StackHelper ndnHelper;
ndnHelper.SetDefaultRoutes(true);
ndnHelper.InstallAll();
….
…
….
// Add prefix origins to ndn::GlobalRouter
ndnGlobalRoutingHelper.AddOrigins(prefix, producer.Get(0));
p2p.Install(nodes.Get(0), producer.Get(0)); // link one node to the
producer
// Calculate and install FIBs
ndn::GlobalRoutingHelper::CalculateRoutes();
\\ link other nodes to the producer
for ( int i=1; i<nodes.size(); i++)
{
p2p.Install(nodes.Get(i), producer.Get(0));
ndn::FibHelper::AddRoute(nodes.Get(i), prefix, producer.Get(0),1);
}
When I run the scenario, it crashes on the FibHelper line, and I got the
following message
*“There is no face associated with the p2p link"*
Can you please help me finding the reason of this message? The p2p should
create the face directly when the link is established, so why I got such a
message?
Your help is really appreciated
Regards,
Samar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20221109/7439fc64/attachment.html>
More information about the ndnSIM
mailing list