Reputation: 35
I have a network of nodes in random topology. Those nodes use UDP for communication and are submodules based on "StandardHost".
I want to have shortest route between 2 nodes for which I would like to use OSPF. Now in order to have such mechanism how do I add this property of OSPF to my node?
Upvotes: 1
Views: 1026
Reputation: 858
In short, you'll need to include a module in you StandardHost that implements this routing mechanism. I assume you've already found the INET Framework, which has an implementation of OSPF; their source code actually has a bunch of examples for OSPF (which you can find here). This means you'll end up with a .ned
file that references the OSPF module in some way -- unfortunately I don't have experience with the module itself, so I can't tell you how its internals work, but if you look at the simple example included in the source, you'll find that the omnetpp.ini
contains a reference to a UDP Echo Application, and this code (as well as the rest of that file) shows how the routers and hosts are connected.
Upvotes: 1