OLSR(Optimized Link State Routing Protocol,最优链路状态路由协议,RFC3626)协议是应用于MANET网络的一种先应式表驱动路由协议,其拓扑发现过程是实现有效通信的关键.本文提出了一种基于C++的OLSR协议拓扑发现的实现方案.该方案采用模块化面向对象设计方法,结合C++语言的特点使用了一些新的实现方法,主要完成了邻居侦测、链路侦测、MPR选举、HELLO消息处理、TC消息处理和拓扑计算等功能.
OLSR(optimized link state routing protocol, BFC,3626) is a kind of pre-active table driven routing protocol applied in MANET. Topology discovery process of OLSR is the key of eflicientiy realizing the communication. In this paper, a implementation plan of topology discovery of OLSR protocol was presented.The implementation was done in a modular and OOP fashion, using certain new methods combined with the characteristics of C++ , which included the link sensing, neighbor detection, MPR selecting, HELLO Control processing, TC Processing and topology calculation.