Project

General

Profile

Actions

Feature #4650

open

Accept and store PrefixAnnouncement in rib/announce command

Added by Junxiao Shi over 5 years ago. Updated 7 months ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
Category:
RIB
Target version:
-
Start date:
Due date:
% Done:

40%

Estimated time:
6.00 h

Description

Including PrefixAnnouncement in RibMgmt rib/announce command enables prefix propagation without NFD having to access the prefix owner's signing key.
This issue changes RibManager to accept the alternate command format, and also stores the PrefixAnnouncement element in the RIB entry so that readvertise component can retrieve it.


Related issues 4 (2 open2 closed)

Blocked by NFD - Feature #4649: Include PrefixAnnouncement in prefix registration commandsClosedJunxiao Shi

Actions
Blocks NFD - Feature #4651: Prefix propagation: use stored PrefixAnnouncementNew

Actions
Blocks jndn - Feature #4652: Include PrefixAnnouncement in prefix registration commandsNew

Actions
Blocked by ndn-cxx - Feature #4804: Signed Interest v0.3ClosedEric Newberry

Actions
Actions #1

Updated by Junxiao Shi over 5 years ago

  • Blocked by Feature #4649: Include PrefixAnnouncement in prefix registration commands added
Actions #2

Updated by Junxiao Shi over 5 years ago

  • Blocks Feature #4651: Prefix propagation: use stored PrefixAnnouncement added
Actions #3

Updated by Junxiao Shi over 5 years ago

  • Blocks Feature #4470: Extend RIB for prefix announcement in self-learning added
Actions #4

Updated by Junxiao Shi over 5 years ago

  • Blocks Feature #4652: Include PrefixAnnouncement in prefix registration commands added
Actions #5

Updated by Junxiao Shi over 5 years ago

  • Blocks Feature #4683: add RIB entry update with prefix announcement in self-learning added
Actions #6

Updated by Junxiao Shi over 5 years ago

  • Assignee set to Junxiao Shi
  • Target version set to v0.7

As I promised on 20180815 NFD call, I will provide code for Rib changes within 7 days after #4649 design is approved.

Actions #7

Updated by Junxiao Shi over 5 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 20
  • Estimated time changed from 3.00 h to 6.00 h

https://gerrit.named-data.net/#/c/NFD/+/4918 changes object ownership between rib::Service and RibManager. It fulfills most of #3818-23 design. This is a necessary preparation before PrefixAnnouncement changes.

Actions #8

Updated by Junxiao Shi over 5 years ago

  • % Done changed from 20 to 30

https://gerrit.named-data.net/#/c/ndn-cxx/+/4921 encode and decode prefix announcement object. Please review API before I proceed further.

Actions #9

Updated by Junxiao Shi over 5 years ago

  • % Done changed from 30 to 40

Change 4921 patchset 2 has PrefixAnnouncement decoding implementation. Encoding implementation comes next.

Actions #10

Updated by Junxiao Shi over 5 years ago

Change 4921 patchset 4 has PrefixAnnouncement encoding implementation.

Actions #11

Updated by Junxiao Shi over 5 years ago

https://gerrit.named-data.net/#/c/NFD/+/4931 puts incoming prefix announcements in Route, and provides outgoing prefix announcements from RibEntry. In case a RibEntry does not contain a Route with a PA, one will be made up for use in readvertisement (including self-learning's producer node).

Actions #12

Updated by Teng Liang over 5 years ago

Junxiao Shi wrote:

https://gerrit.named-data.net/#/c/NFD/+/4931 puts incoming prefix announcements in Route, and provides outgoing prefix announcements from RibEntry. In case a RibEntry does not contain a Route with a PA, one will be made up for use in readvertisement (including self-learning's producer node).

If NFD can make up a PA, there is no need for end hosts to register a route using PA. I was thinking to add another registerPrefix API in ndn-cxx, for producers control the creation of PA. Just want to point out that there is no requirement from end points to use this feature.

Actions #13

Updated by Junxiao Shi over 5 years ago

shouldn't the origin be prefix announcement?

Teng, can you help with this? It needs protocol update and declarations in ndn-cxx.

If NFD can make up a PA, there is no need for end hosts to register a route using PA.

NFD may not have a suitable key to sign the PA, see #4648.

I was thinking to add another registerPrefix API in ndn-cxx, for producers control the creation of PA.

This part is blocked by #4649 command format definition, which in turn is blocked by #4599. Self-learning does not depend on this (if you relax the trust schema or install the keys to NFD keychain), but Android depends on this (see #4648).

Actions #14

Updated by Teng Liang over 5 years ago

Junxiao Shi wrote:

shouldn't the origin be prefix announcement?

Teng, can you help with this? It needs protocol update and declarations in ndn-cxx.

To make it clear, we are keeping one format of PA, which can used in both the rib/register command and NDNLP header, right?

What is exactly needed for protocol update (specific tasks)?

If NFD can make up a PA, there is no need for end hosts to register a route using PA.

NFD may not have a suitable key to sign the PA, see #4648.

What's the potential trust models?

I prefer the NFD to generate PA on behalf of the registered producers, using NFD's own keys:

  1. it does not require changes to end apps
  2. the trust model would be simpler?

I was thinking to add another registerPrefix API in ndn-cxx, for producers control the creation of PA.

This part is blocked by #4649 command format definition, which in turn is blocked by #4599. Self-learning does not depend on this (if you relax the trust schema or install the keys to NFD keychain), but Android depends on this (see #4648).

If NFD makes up PA, there is not need to change registerPrefix API in ndn-cxx.

Actions #15

Updated by Junxiao Shi over 5 years ago

What is exactly needed for protocol update (specific tasks)?

See #4280-83.

What's the potential trust models?

Testbed routers enforce hierarchical trust model, so NFD-Android has to let application create the PA, see #4648.

Self-learning is more flexible because it does not involve testbed routers. We can start with:

  1. From enterprise CA (a CA trusted by every node in the local area network), issue an announcement signing certificate to each node.
  2. In the trust schema, set trust anchor to enterprise CA (or its issuer), and set rules so that any announcement signing certificate can sign any PA.

The better solution is in self-learning dissertation.
Since this question is out of scope of #4650, I will not post further answers here. If you want more discussion, please email nfd-dev mailing list.

Actions #16

Updated by Teng Liang over 5 years ago

Junxiao Shi wrote:

Self-learning is more flexible because it does not involve testbed routers.

I agree with this. So in self-learning, the producers can be unaware of PA, and the NFD they connect to will help them to create PA.

Actions #17

Updated by Teng Liang over 5 years ago

[Bug] The data returned by PrefixAnnouncement::toData does not have the tlv::ContentType_PrefixAnn content type.

Actions #18

Updated by Junxiao Shi over 5 years ago

[Bug] The data returned by PrefixAnnouncement::toData does not have the tlv::ContentType_PrefixAnn content type.

Fixed in https://gerrit.named-data.net/#/c/ndn-cxx/+/4943

Actions #19

Updated by Teng Liang over 5 years ago

self-learning is still waiting for this to finish.

Actions #20

Updated by Junxiao Shi over 5 years ago

  • Blocks deleted (Feature #4470: Extend RIB for prefix announcement in self-learning)
Actions #21

Updated by Junxiao Shi over 5 years ago

  • Blocks deleted (Feature #4683: add RIB entry update with prefix announcement in self-learning)
Actions #22

Updated by Davide Pesavento over 4 years ago

  • Target version changed from v0.7 to 22.02
Actions #23

Updated by Junxiao Shi about 4 years ago

Actions #24

Updated by Junxiao Shi about 4 years ago

PrefixAnnouncement rev8 defines the rib/announce command (variant of rib/register that accepts PrefixAnnouncement) to use signed Interest. Therefore, this issue is blocked by #4804 signed Interest implementation.

Actions #25

Updated by Junxiao Shi about 4 years ago

2020-03-12 NFD call reviewed PrefixAnnouncement rev9 design.
It's found that the rationale of using signed Interest is questionable.

  1. PrefixAnnouncement object already contains a signature and has limited validity period.
  2. While using signed Interest v0.3 could protect against replay attacks, such protection is only possible if NFD-RIB can trust the signing key of the signed Interest.
  3. In #4648 use case, the signing key trusted by the receiving NFD-RIB (i.e. testbed) is only present at the application, which signed the PrefixAnnouncement object. NFD-Android does not possess the trusted signing key, and therefore cannot produce signed Interests that can prove to not to be part of a replay attack.

If we eliminate signed Interest and revert to parameterized Interest only, an attacker could retrieve the PrefixAnnouncement object by expressing an Interest of its name, and then send a rib/announce command before the victim does.

Actions #26

Updated by Davide Pesavento almost 3 years ago

  • Target version changed from 22.02 to 22.12
Actions #27

Updated by Junxiao Shi about 2 years ago

  • Assignee deleted (Junxiao Shi)

I've lost hope for this to ever happening in NFD, and do not plan to work on this issue further.

Actions #28

Updated by Davide Pesavento about 2 years ago

  • Status changed from In Progress to Feedback
  • Target version deleted (22.12)

Junxiao Shi wrote in #note-27:

I've lost hope for this to ever happening in NFD, and do not plan to work on this issue further.

Well, you were the assignee, so you were responsible for this task. Saying "I've lost hope" means that you gave up on it.

Actions #29

Updated by Junxiao Shi about 2 years ago

Davide Pesavento wrote in #note-28:

Junxiao Shi wrote in #note-27:

I've lost hope for this to ever happening in NFD, and do not plan to work on this issue further.

Well, you were the assignee, so you were responsible for this task. Saying "I've lost hope" means that you gave up on it.

There has been pushbacks on the protocol design, which cannot be resolved anytime soon.

Actions #30

Updated by Junxiao Shi 7 months ago

  • Subject changed from Accept and store PrefixAnnouncement in rib/register command to Accept and store PrefixAnnouncement in rib/announce command
  • Description updated (diff)
Actions

Also available in: Atom PDF