Project

General

Profile

Actions

Bug #5018

open

Attach PrefixAnnouncement to Data if needed in afterContentStoreHit

Added by Teng Liang over 4 years ago. Updated 5 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Forwarding
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

The current self-learning forwarding strategy uses the default Strategy::afterContentStoreHit trigger when an Interest can be satisfied by the CS, which simply sends the Data back. However, it is possible that the Data in CS does not carry a Prefix Announcement, but the Interest is a discovery Interest. Therefore, this task is to add actions in SelfLearningStrategy::afterContentStoreHitto handle this case. In particular,

  • Self-learning needs to check if the incoming Interest is "discovery", and if the returned Data carries a Prefix Announcement
  • If the above checks indicate that a Prefix Announcement is needed, SelfLearningStrategy::asyncProcessData is invoked.
Actions

Also available in: Atom PDF