[ndnSIM] Using ndn::Face in ndnSIM environment.

Anil Jangam anilj.mailing at gmail.com
Thu Oct 20 15:30:38 PDT 2016


Hi,

I have a question related to the ndn::Face object.

I am referring to the sample code given in the porting guide. Look for the
code under title: "How to simulate real applications using ndnSIM"
http://ndnsim.net/2.1/guide-to-simulate-real-apps.html

Here the 'RealApp' class defines a member variable ndn::Face m_faceConsumer;
So when this RealApp is *installed* on 'N' # of nodes in a simulation, each
will have its own face.

So as long the 'RealApp' is using this 'm_faceConsumer' to register the
prefixes, it will be receiving all those Interests/Data packets. Do we have
to explicitly create another face i.e. 'ndn::Face m_faceProducer' to
sending out the Interest/Data traffic out from the application?

Though it is quite clear from the sample code, I am trying to understand
that in my simulated application, do we just have to define a single
'ndn::Face' and it is good for simulation to run OR do we have to use
second face the way it is give in this sample code?

Please comment.

/anil.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20161020/928225cb/attachment.html>


More information about the ndnSIM mailing list