Project

General

Profile

Task #1234

Updated by Junxiao Shi over 10 years ago

Develop a procedure to change forwarding strategy of a namespace at runtime. 

 Arguments: an existing FIB entry, the new strategy 

 Steps: 

 1. if the new strategy equals the old effective strategy, strategy on the FIB entry, abort these steps 
 2. traverse the NameTree entries under the namespace. namespace of the FIB entry. For each NameTree entry: 
    * if the NameTree entry is a subtree covered by another explicitly set strategy, strategy (in `FibManager::m_namespaceToStrategyMap`), skip this subtree 
    * visit FIB entry, PIT entries and their In/OutRecords, Measurements entry attached on the NameTree, clear delete the StrategyInfo on those entities 
 3. set add the new strategy to `FibManager::m_namespaceToStrategyMap` and set it on the StrategyChoice FIB entry 

 Note: Every strategy MUST be prepared to see an entity without its StrategyInfo.

Back