[Mini-NDN] Issues with producer and consumer in Python experiment

Lan Wang (lanwang) lanwang at memphis.edu
Mon Sep 28 09:29:27 PDT 2020


Can you explain what specific problems you have right now?  Are the consumers getting the data?

Lan

On Sep 27, 2020, at 7:33 PM, Lan Wang (lanwang) <lanwang at memphis.edu<mailto:lanwang at memphis.edu>> wrote:



Begin forwarded message:

From: André D. Carneiro <adcarneiro at inf.ufrgs.br<mailto:adcarneiro at inf.ufrgs.br>>
Subject: Issues with producer and consumer in Python experiment
Date: September 27, 2020 at 5:42:24 PM CDT
To: mini-ndn at lists.cs.ucla.edu<mailto:mini-ndn at lists.cs.ucla.edu>


Hi everyone and thanks very much for the help so far,


I have the basics covered now and the install seems to be working fine. Running producers/consumers on the MiniNDN CLI responds as I expected so I got back to my python experiment. Only when instantiating producers/consumers via the 'host.cmd' directive I am getting NACKs, though I'm not sure why. These producer and consumer programs are copies from the ones in the examples directory, only with minimal changes to log the elapsed time and accept interest filters from the command line.

To give you a broad view of the script, all the producers are instantiated during setup, being assigned their interest filter, after running their respective 'nlsrc advertise'  command (thanks for that again) and running in the background (ex. 'producer /a &').

The consumers are instantiated by demand, the main difference being that they don't run in the background (without the '&') and they are responsible for logging the elapsed time when onData, onNack or onTimeout is called.

When the experiment is done and the CLI is shown, I ran 'nlsrc lsdb' and noticed that the advertise commands had worked because the interest filters show up in their respective hosts. I also tried adding the 'export HOME' command for each host before calling the producer or consumer programs, but it did not seem to make any difference.


Also note that a consumer can run while a producer for that same host is running in the background, which I don't think is a problem.


Best regards,

André Dexheimer Carneiro



_______________________________________________
Mini-NDN mailing list
Mini-NDN at lists.cs.ucla.edu<mailto:Mini-NDN at lists.cs.ucla.edu>
http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/mini-ndn/attachments/20200928/3a009e16/attachment-0001.html>


More information about the Mini-NDN mailing list