I recently implemented a distance vector algorithm in C. Using a network simulator called cNET network simulator.
Runs straight out of the box for BSD based operating systems but for debian I had to hack it. Will outline the hack in a different post.
After implementing the distance vector algorithm the network load has also reduced as less links get less congested with packets. The only packets that get sent now are only that needs to update tables on neighboring nodes. Two types of packets are sent ROUTE and DATA packets.
![]()
Network efficiency is at 21.65% and frames transmitted 1,311 and 1,242 frames received.
Total transmission cost is more optimum then flooding the network.
