Search code examples
groovyunetstack

Dynamic Routing in UNET Stack


I'm trying to create a simulation in UNET Stack in which I have a route and I send packets from that from one node to another through the given route.

I do not want to use add route in simulation but instead as I create nodes dynamically i.e once I create nodes they themselves figure out the route. Is this possible to create a agent and how can I do it ?


Solution

  • You can do that by sending RouteDiscoveryNtf to the router agent. For an example of how to do this, see previous discussion on Adding route into routing table using agent