[Ndn-interest] Request for NDN Primer

Junxiao Shi shijunxiao at email.arizona.edu
Wed Jan 8 13:43:32 PST 2020


Hi Rafee

It seems that the UCLA CA issued your certificate but did not publish it
correctly. I don't see your certificate name on https://spurs.cs.ucla.edu/
page. To fix this, delete $HOME/keychain directory and redo step 6. After
that, go to https://spurs.cs.ucla.edu/ and confirm your certificate prefix
(a random number after "yufeng") is showing up in RIB section.

"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.
Another possibility is a packet loss. For that, you can try substitute
"udp" with "tcp".

Yours, Junxiao

On Wed, Jan 8, 2020, 15:52 Mohammad Ishfaque Jahan Rafee <
mij.rafee.1344 at gmail.com> wrote:

> Hi Junxiao,
> 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.
> +Announcement /Rafee/my-first-packet
> 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
>
> 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
>
> 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%
>
> 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
> Error: Interest rejected: expire
> @consume(/localhop/nfd/rib/register/h%24%07%18%08%05Rafee%08%0Fmy-first-packeto%01Aj%02
>
> 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%
>
> 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%
>
> 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
> %B87J%DC)
> at Object.tx
> (/usr/lib/node_modules/@ndn/cat/node_modules/@ndn/endpoint/lib/consumer.js:42:36)
>
> On Wed, Jan 8, 2020 at 3:21 PM Junxiao Shi <shijunxiao at email.arizona.edu>
> wrote:
>
>> Hi Rafee
>>
>> To setup a producer, use the following steps:
>>
>>    1. Stop NFD if you have it. You do not need it.
>>    2. Install Node.js 12.x following instructions here:
>>    https://github.com/nodesource/distributions#deb
>>    3. sudo npm i -g https://ndnts-nightly.netlify.com/cat.tgz
>>    4. sudo npm i -g https://ndnts-nightly.netlify.com/keychain-cli.tgz
>>    5. Download the attached file and save as ndncert-ucla.json in the
>>    current directory.
>>    6. NDNTS_KEYCHAIN=$HOME/keychain NDNTS_UPLINK=udp://
>>    savi.testbed.named-data.net:6363 ndntssec ndncert-client --ca
>>    ndncert-ucla.json --valid-days 120 --verbose
>>    This command automatically obtains an NDN testbed certificate for
>>    you. The last line of output displays the certificate name.
>>    7. echo "Rafee's first packet" | NDNTS_KEYCHAIN=$HOME/keychain
>>    NDNTS_NFDREG=1 NDNTS_UPLINK=udp://savi.testbed.named-data.net:6363
>>    NDNTS_PKTTRACE=1 ndncat put /Rafee/my-first-packet --ver=none
>>
>> At this point, you are running the producer. Head to
>> https://nlsr-status.netlify.com/ and you should see a prefix
>> announcement for "/Rafee/my-first-packet".
>>
>> To run the consumer, use the following steps:
>>
>>    1. Stop NFD if you have it. You do not need it.
>>    2. Install Node.js 12.x following instructions here:
>>    https://github.com/nodesource/distributions#deb
>>    3. sudo npm i -g https://ndnts-nightly.netlify.com/cat.tgz
>>    4. NDNTS_UPLINK=udp://savi.testbed.named-data.net:6363
>>    NDNTS_PKTTRACE=1 ndncat get /Rafee/my-first-packet --ver=none
>>    You should see "Rafee's first packet" somewhere in the output.
>>
>> You can also retrieve the packet via ndnpeek:
>>
>>    1. Start NFD and connect to testbed (either manually or with
>>    `ndn-autoconfig` command).
>>    2. ndnpeek -p /Rafee/my-first-packet/33=%00
>>    You should see "Rafee's first packet" somewhere in the output.
>>
>>
>> Yours, Junxiao
>>
>> On Wed, Jan 8, 2020 at 1:29 PM Mohammad Ishfaque Jahan Rafee via
>> Ndn-interest <ndn-interest at lists.cs.ucla.edu> wrote:
>>
>>> Hi John,
>>> Thank you very much for your help. I can confirm, I can now ping all the
>>> NDN nodes, after setting up https://savi.testbed.named-data.net/ as
>>> /ndn route similar to the default gateway.
>>>
>>> My initial goal is something like this.
>>> 1. Set up two machines. One in SAVI/AWS and another in AWS/Raspberry PI.
>>> 2. Let both of them connect to testbed
>>> 3. Then generate interest from one and serve the content from the other.
>>>
>>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20200108/c1f9373e/attachment-0001.html>


More information about the Ndn-interest mailing list