Actions
Bug #5018
openAttach PrefixAnnouncement to Data if needed in afterContentStoreHit
Status:
New
Priority:
Normal
Assignee:
-
Category:
Forwarding
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Tags:
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::afterContentStoreHit
to 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