Printing the routing table for any protocol is quite a easier task if the data structure is known. You may read the post on "printing the routing table for AODV protocol" Now this post will let you know how to print the routing table when using DSDV protocol. As you know, the DSDV protocol is a table driven protocol in which each node maintains a Routing table for a given source to destination and the table gets updated periodically to maintain the routes. But AODV protocol is a on demand routing protocol that deals with Route Request, Route Reply for forming the routes. So printing the routing table takes a minor tweak. But the DSDV protocol handles the routing table as a data structure, here is the steps to do it. OS Used : Linux Mint 17 - 64 bit NS2 Used : ns-2.35 Files to be modified: dsdv.cc and dsdv.h Step 1: The folder where ns2 installed on my machine /home/pradeepkumar/ns-allinone-2.35/ns-2.35 Execute these commands to access the DSDV protocol $promp...
Its all about Network Simulations (NS2, NS3), Internet of Things, Sensor Networks, Programming, Embedded Systems, Cyber Physical Systems, etc