Bug 702

Summary: Make global routing robust to link/device events
Product: ns-3 Reporter: Tom Henderson <tomh>
Component: routingAssignee: Tom Henderson <tomh>
Severity: normal CC: ns-bugs
Priority: P4    
Version: ns-3-dev   
Hardware: All   
OS: All   
Attachments: proposed patch to fix

Description Tom Henderson 2009-10-02 00:34:26 EDT
Implement Ipv4GlobalRouting::Notify* methods

Now that we have these methods, we can make global routing robust to these events.  Presently, it is documented that the user must call RecomputeRoutingTables() when topology changes.  See examples/dynamic-global-routing.cc.  This could be automated by implementing the Notify methods.

Also, remove NS_DEPRECATED methods in global-route-manager.h
Comment 1 Tom Henderson 2010-05-12 15:28:12 EDT
Created attachment 867 [details]
proposed patch to fix

This patch introduces a new attribute (default false, to keep legacy behavior for legacy scripts) that will cause any Ipv4GlobalRouting object that receives a Notify* event from the IP subsystem to recompute global routes.

The example file examples/routing/dynamic-global-routing.cc has been adjusted to turn on this attribute to "true", and test its behavior.

Users can also manually call RecomputeRoutingTables() as before.
Comment 2 Tom Henderson 2010-05-24 13:55:07 EDT
changeset:  e4a750adf12c