构建局域网拓扑在网络行为的研究中具有非常重要的意义。文中以利用OSPF协议构建局域网拓扑结构为目标,对目前几种构建局域网拓扑结构的方法进行比较,通过分析比较指出利用OSPF协议构建局域网拓扑结构的优点,然后提出了一种基于OSPF协议链路状态数据库进行局域网拓扑构造算法。该算法在对OSPF链路状态数据库中的OGPF database表和OSPF database network表详细分析的基础上,利用这两个表中的数据构建网络拓扑。实验证明,该算法能够有效地显示局域网拓扑结构。
Constructing topology of LAN is very important to the research of network behavior. Its destination is using OSPF protocol constructing LAN topology. First, it points out the advantages of discovering topology with OSPF protocol after compared several current LAN topology constructing methods. And then proposes a brand new method of LAN topology constructing based on GSPF protocol Link - State database. Based on specific analysis of OSPF database table and OSPF database network table of the OSPF Link - State database, this method can build an accurate LAN topology map effectively. And it has been testified in the experiment.