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

Spyridon (Spyros) Mastorakis mastorakis at CS.UCLA.EDU
Thu Oct 20 16:26:56 PDT 2016


Hi Anil,

my opinion is that each application should have its own face.

To this end, if you want to run 2 applications on a single node, each app should have its own face (2 app faces in total).

Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
Internet Research Laboratory
Computer Science Department
UCLA

> On Oct 20, 2016, at 3:30 PM, Anil Jangam <anilj.mailing at gmail.com> wrote:
> 
> 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 <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/0b6033e7/attachment.html>


More information about the ndnSIM mailing list