Feature #4650
openAccept and store PrefixAnnouncement in rib/announce command
40%
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.
Updated by Junxiao Shi over 6 years ago
- Blocked by Feature #4649: Include PrefixAnnouncement in prefix registration commands added
Updated by Junxiao Shi over 6 years ago
- Blocks Feature #4651: Prefix propagation: use stored PrefixAnnouncement added
Updated by Junxiao Shi over 6 years ago
- Blocks Feature #4470: Extend RIB for prefix announcement in self-learning added
Updated by Junxiao Shi over 6 years ago
- Blocks Feature #4652: Include PrefixAnnouncement in prefix registration commands added
Updated by Junxiao Shi over 6 years ago
- Blocks Feature #4683: add RIB entry update with prefix announcement in self-learning added
Updated by Junxiao Shi over 6 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.
Updated by Junxiao Shi over 6 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.
Updated by Junxiao Shi over 6 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.
Updated by Junxiao Shi over 6 years ago
- % Done changed from 30 to 40
Change 4921 patchset 2 has PrefixAnnouncement decoding implementation. Encoding implementation comes next.
Updated by Junxiao Shi over 6 years ago
Change 4921 patchset 4 has PrefixAnnouncement encoding implementation.
Updated by Junxiao Shi over 6 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).
Updated by Teng Liang over 6 years ago
Junxiao Shi wrote:
https://gerrit.named-data.net/#/c/NFD/+/4931 puts incoming prefix announcements in
Route
, and provides outgoing prefix announcements fromRibEntry
. In case aRibEntry
does not contain aRoute
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.
Updated by Junxiao Shi over 6 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).
Updated by Teng Liang over 6 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:
- it does not require changes to end apps
- 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.
Updated by Junxiao Shi over 6 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:
- From enterprise CA (a CA trusted by every node in the local area network), issue an announcement signing certificate to each node.
- 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.
Updated by Teng Liang over 6 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.
Updated by Teng Liang over 6 years ago
[Bug] The data returned by PrefixAnnouncement::toData does not have the tlv::ContentType_PrefixAnn content type.
Updated by Junxiao Shi over 6 years ago
[Bug] The data returned by PrefixAnnouncement::toData does not have the tlv::ContentType_PrefixAnn content type.
Updated by Teng Liang over 6 years ago
self-learning is still waiting for this to finish.
Updated by Junxiao Shi over 6 years ago
- Blocks deleted (Feature #4470: Extend RIB for prefix announcement in self-learning)
Updated by Junxiao Shi over 6 years ago
- Blocks deleted (Feature #4683: add RIB entry update with prefix announcement in self-learning)
Updated by Davide Pesavento over 5 years ago
- Target version changed from v0.7 to 22.02
Updated by Junxiao Shi almost 5 years ago
- Blocked by Feature #4804: Signed Interest v0.3 added
Updated by Junxiao Shi almost 5 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.
Updated by Junxiao Shi almost 5 years ago
2020-03-12 NFD call reviewed PrefixAnnouncement rev9 design.
It's found that the rationale of using signed Interest is questionable.
- PrefixAnnouncement object already contains a signature and has limited validity period.
- 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.
- 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.
Updated by Davide Pesavento over 3 years ago
- Target version changed from 22.02 to 22.12
Updated by Junxiao Shi almost 3 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.
Updated by Davide Pesavento almost 3 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.
Updated by Junxiao Shi almost 3 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.
Updated by Junxiao Shi over 1 year ago
- Subject changed from Accept and store PrefixAnnouncement in rib/register command to Accept and store PrefixAnnouncement in rib/announce command
- Description updated (diff)