<div dir="ltr"><div dir="ltr">Hi Junxiao,<div>I tried the whole thing again, and it worked this time. Thank you very much. It wasn't working today morning, and after checking <a href="http://ndndemo.arl.wustl.edu/">http://ndndemo.arl.wustl.edu/</a> I realized, the SAVI Testbed is down, which I was trying to use as the default gateway. But after changing UIUC endpoint, everything worked fine. My setup is as follows:</div><div>Machine 1 (Producer): VM on SAVI.<br>Machine 2 (Consumer): VM on AWS.<br>As I can see, my message is still available, even after the producer is shut down (As expected with ICN). I also tried ndnpeek, and that worked as well.</div><div><br></div><div>Now, at this point. I am looking for further assistance.</div><div>1. Can you explain to me what happened in simple terms?</div><div>2. How can I go about hosting my content (Something more than a text, such as a video)? I am asking this because the current content seems to be just <b>cat</b> into the terminal.</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 8, 2020 at 4:48 PM Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu">shijunxiao@email.arizona.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Hi Rafee<div dir="auto"><div dir="auto"><br>It seems that the UCLA CA issued your certificate but did not publish it correctly. I don't see your certificate name on <a href="https://spurs.cs.ucla.edu/" target="_blank">https://spurs.cs.ucla.edu/</a> page. To fix this, delete $HOME/keychain directory and redo step 6. After that, go to <a href="https://spurs.cs.ucla.edu/" target="_blank">https://spurs.cs.ucla.edu/</a> and confirm your certificate prefix (a random number after "yufeng") is showing up in RIB section.</div><div dir="auto"><br style="font-family:sans-serif"></div></div><div dir="auto">"Interest rejected: expire" indicates an Interest timeout. The default timeout for prefix registration command is 1 second and is currently hard-coded. If you are far from SAVI, connect to a node closer to you.</div><div dir="auto">Another possibility is a packet loss. For that, you can try substitute "udp" with "tcp".</div><div dir="auto"><br></div><div dir="auto">Yours, Junxiao</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Wed, Jan 8, 2020, 15:52 Mohammad Ishfaque Jahan Rafee <<a href="mailto:mij.rafee.1344@gmail.com" target="_blank">mij.rafee.1344@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi Junxiao,<div>Thank you very much for the detailed instructions. I got an error at step 7 of running a producer. I am copying the entire content for your reference. Can you take a look and say what I am doing wrong? Not to mention my message is not showing up at the link you gave.</div><div><div style="display:inline-block;white-space:pre-wrap;background-color:rgb(12,12,12);font-family:Consolas,monospace;font-size:12pt;padding:4px"><span style="color:rgb(204,204,204)">+Announcement /Rafee/my-first-packet<br>UDP(142.150.208.242) <I /localhop/nfd/rib/register/h%24%07%18%08%05Rafee%08%0Fmy-first-packeto%01Aj%02tsl%01%02/%00%00%0<br>1o%86%E9F%B5/%00%02%EF%CE%D3%E33%CD/%16C%1B%01%03%1C%3E%07%3C%08%03ndn%08%03edu%08%04ucla%08%06yufeng%08%131428082766780<br>609395%08%03KEY%24%08%00%05%9B%A6%F6%D5%80%E8/%17H0F%02%21%00%C4%82N%BD%3B5%BB%02%0F%891%A3%87%0B%F3G%B4.Q%B9P%A5%13%27%<br>DF%BCz%10%E6%2F%A5%BA%02%21%00%C7%95%7C%17%22TD%7B%8B%7C%D2J%EC%7C%14%00t%AA%26%A5%5C%25%FAw8%81%17%89%B87J%DC<br>Error: Interest rejected: expire @consume(/localhop/nfd/rib/register/h%24%07%18%08%05Rafee%08%0Fmy-first-packeto%01Aj%02<br>tsl%01%02/%00%00%01o%86%E9F%B5/%00%02%EF%CE%D3%E33%CD/%16C%1B%01%03%1C%3E%07%3C%08%03ndn%08%03edu%08%04ucla%08%06yufeng%<br>08%131428082766780609395%08%03KEY%24%08%00%05%9B%A6%F6%D5%80%E8/%17H0F%02%21%00%C4%82N%BD%3B5%BB%02%0F%891%A3%87%0B%F3G%<br>B4.Q%B9P%A5%13%27%DF%BCz%10%E6%2F%A5%BA%02%21%00%C7%95%7C%17%22TD%7B%8B%7C%D2J%EC%7C%14%00t%AA%26%A5%5C%25%FAw8%81%17%89<br>%B87J%DC)<br>    at Object.tx (/usr/lib/node_modules/@ndn/cat/node_modules/@ndn/endpoint/lib/consumer.js:42:36)</span></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 8, 2020 at 3:21 PM Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu" rel="noreferrer" target="_blank">shijunxiao@email.arizona.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Rafee</div><div><br></div><div>To setup a producer, use the following steps:</div><div><ol><li>Stop NFD if you have it. You do not need it.</li><li>Install Node.js 12.x following instructions here: <a href="https://github.com/nodesource/distributions#deb" rel="noreferrer" target="_blank">https://github.com/nodesource/distributions#deb</a></li><li>sudo npm i -g <a href="https://ndnts-nightly.netlify.com/cat.tgz" rel="noreferrer" target="_blank">https://ndnts-nightly.netlify.com/cat.tgz</a></li><li>sudo npm i -g <a href="https://ndnts-nightly.netlify.com/keychain-cli.tgz" rel="noreferrer" target="_blank">https://ndnts-nightly.netlify.com/keychain-cli.tgz</a></li><li>Download the attached file and save as ndncert-ucla.json in the current directory.</li><li>NDNTS_KEYCHAIN=$HOME/keychain NDNTS_UPLINK=udp://<a href="http://savi.testbed.named-data.net:6363" rel="noreferrer" target="_blank">savi.testbed.named-data.net:6363</a> ndntssec ndncert-client --ca ndncert-ucla.json --valid-days 120 --verbose<br>This command automatically obtains an NDN testbed certificate for you. The last line of output displays the certificate name.</li><li>echo "Rafee's first packet" | NDNTS_KEYCHAIN=$HOME/keychain NDNTS_NFDREG=1 NDNTS_UPLINK=udp://<a href="http://savi.testbed.named-data.net:6363" rel="noreferrer" target="_blank">savi.testbed.named-data.net:6363</a> NDNTS_PKTTRACE=1 ndncat put /Rafee/my-first-packet --ver=none<br></li></ol></div><div>At this point, you are running the producer. Head to <a href="https://nlsr-status.netlify.com/" rel="noreferrer" target="_blank">https://nlsr-status.netlify.com/</a> and you should see a prefix announcement for "/Rafee/my-first-packet".</div><div><br></div><div>To run the consumer, use the following steps:</div><div><ol><li>Stop NFD if you have it. You do not need it.</li><li>Install Node.js 12.x following instructions here: <a href="https://github.com/nodesource/distributions#deb" rel="noreferrer" target="_blank">https://github.com/nodesource/distributions#deb</a></li><li>sudo npm i -g <a href="https://ndnts-nightly.netlify.com/cat.tgz" rel="noreferrer" target="_blank">https://ndnts-nightly.netlify.com/cat.tgz</a></li><li>NDNTS_UPLINK=udp://<a href="http://savi.testbed.named-data.net:6363" rel="noreferrer" target="_blank">savi.testbed.named-data.net:6363</a> NDNTS_PKTTRACE=1 ndncat get /Rafee/my-first-packet --ver=none<br>You should see "Rafee's first packet" somewhere in the output.</li></ol></div><div>You can also retrieve the packet via ndnpeek:</div><div><ol><li>Start NFD and connect to testbed (either manually or with `ndn-autoconfig` command).</li><li>ndnpeek -p /Rafee/my-first-packet/33=%00<br>You should see "Rafee's first packet" somewhere in the output.  <br></li></ol></div><div><br></div><div>Yours, Junxiao</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 8, 2020 at 1:29 PM Mohammad Ishfaque Jahan Rafee via Ndn-interest <<a href="mailto:ndn-interest@lists.cs.ucla.edu" rel="noreferrer" target="_blank">ndn-interest@lists.cs.ucla.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi John,<div>Thank you very much for your help. I can confirm, I can now ping all the NDN nodes, after setting up <a href="https://savi.testbed.named-data.net/" rel="noreferrer" target="_blank">https://savi.testbed.named-data.net/</a> as /ndn route similar to the default gateway.</div><div><br></div><div>My initial goal is something like this.</div><div>1. Set up two machines. One in SAVI/AWS and another in AWS/Raspberry PI.</div><div>2. Let both of them connect to testbed</div><div>3. Then generate interest from one and serve the content from the other.</div></div></div><br>
</blockquote></div></div>
</blockquote></div><br clear="all"><div><br></div></blockquote></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Best Regards</div><div>Rafee</div><div><a href="http://www.mohammadrafee.com" target="_blank">www.mohammadrafee.com</a><br></div></div></div></div></div>