[Nfd-dev] ndd-cxx vs. ndn-cpp and consumer producer example

Alex Afanasyev alexander.afanasyev at UCLA.EDU
Mon Oct 20 07:12:15 PDT 2014


Hi Haroon,

On Oct 20, 2014, at 3:17 AM, Haroon Rashid <haroonr at iiitd.ac.in> wrote:

> Hi everyone,
> 
> From past one week, I am trying to learn NDN application development using NFD. I have certain queries and I am facing some problems in the same as:
>  
> With NFD, should I use ndn-cxx or ndn-cpp for application development? I am not getting the clear difference between ndn-cxx and ndn-cpp. Can anyone explain me when should I use ndn-cxx over ndn-cpp or use ndn-cpp over ndn-cxx?

You can use either, both should work.

>  I am facing a problem with ndn-cxx while running consumer-producer example. Whenever I type on terminal ./build/examples/producer I get the following output  
>  -- ERRBOR: SecPublicInfoSqlite3::getCertificate  certificate does not exist
>  
>  What should I do to get rid of this error? 

The error simply saying that you have not properly configured security credentials on your machine.  For now, you can create a self-signed certificate:

ndnsec-keygen /somename | ndnsec-install-cert -

However, it is strange that you're getting this error.  You should have had generated a temporary self-signed identity automatically...

For more info about the security library, refer to http://named-data.net/doc/ndn-cxx/current/tutorials/security-library.html

> Another experiment I am trying is to run producer consumer example on two machines by running consumer on machine/laptop A and producer on machine B. Both of these laptops are connected on LAN.
> On both of the laptops(A and B) NFD is installed and is running. I am using following steps to run the above example:
> 
> Step1:
> ____________________________________________________________________________
> on A: nfdc register /ndn udp://192.168.32.11(ip address of B)
> on B: nfdc register /ndn udp://192.168.32.15(ip address of A)
> _____________________________________________________________________________
>  
>  Step2:
>  _______________________________________________________________
>  In consumer.cpp, I changed following lines
>     setscope changed to 2
>     interest name changed to "/ndn/example/testApp/..."
>  
>  In producer.cpp, following line changed
>     interestFilter changed to "/ndn/example/..."
> ______________________________________________________________
> step3:
> ________________________________________________________________
> 1. compiled both consumer.cpp and producer.cpp successfully on repective laptops
> 2. Run producer with ./build/examples/producer on machine A and run consumer with ./build/examples/consumer on machine B.
> with the run of consumer on B, after sometime it shows TimeOut.
>  I am not getting why it is showing Timeout since everything is configured correctly. Can anyone help me to find out the issue with this example? 

You don't need to register prefix on producer node, only on client.  But this shouldn't be a problem and the changes you made look correct.  Check your firewall settings, may be it is blocking all the outgoing or incoming NDN packets.

---
Alex

>  Thanking you
> 
> -- 
> Haroon Rashid
> 
> 
> _______________________________________________
> Nfd-dev mailing list
> Nfd-dev at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20141020/11d48816/attachment.html>


More information about the Nfd-dev mailing list