Bug 702 - Make global routing robust to link/device events
Make global routing robust to link/device events
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: routing
ns-3-dev
All All
: P4 normal
Assigned To: Tom Henderson
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-10-02 00:34 EDT by Tom Henderson
Modified: 2010-05-24 13:55 EDT (History)
1 user (show)

See Also:


Attachments
proposed patch to fix (11.91 KB, patch)
2010-05-12 15:28 EDT, Tom Henderson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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