[ndnSIM] [EXT] Getting the origin of an Interest

Eric Binnendyk eric.binnendyk at student.nmt.edu
Fri May 14 17:52:33 PDT 2021


Great, thanks for clearing that up!

On Fri, May 14, 2021 at 3:24 PM Junxiao Shi <shijunxiao at email.arizona.edu>
wrote:

> Hi Eric
>
> It isn't possible for a forwarder to know the origin *node* of an
> Interest, unless the consumer explicitly identifies itself as part of the
> Interest name.
> The forwarder can only know the incoming *face* of an Interest, which is
> either the consumer node or another forwarder closer to the consumer.
>
> This is a privacy property of the NDN network: it maintains that the
> consumer would remain anonymous to network forwarders and producers, except
> the forwarder directly adjacent to the consumer.
> In comparison, an IP packet would always identify the origin node in the
> source IP address field.
>
> Yours, Junxiao
>
>
> On Fri, May 14, 2021 at 5:03 PM Eric Binnendyk via ndnSIM <
> ndnsim at lists.cs.ucla.edu> wrote:
>
>> *External Email*
>> Hi,
>>
>> In the forwarding strategy code, I am trying to find the node that an
>> incoming Interest originated from. I suspect that this information is
>> somewhere in the PIT entry (possibly in pitEntry->getInRecords()), however
>> I cannot figure out how to find it.
>>
>> Does anyone know how to find the origin node of an Interest? I expect the
>> code will look something like this:
>>
>> if (pitEntry->getInRecord()->...->origin == nodes.Get(i)) {
>> num_interests_per_origin[i] += 1;
>> }
>> }
>>
>> Thanks,
>>
>> Eric
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20210514/e05229aa/attachment.html>


More information about the ndnSIM mailing list