摘要
基于NetFPGA硬件平台设计的可编程虚拟化路由器,为提高其可编程性和灵活性将控制平面与数据平面进行分离,导致二个平面难以正常进行数据传输。通过对控制平面的接口进行设置,对OpenVZ虚拟路由实例中Zebra路由协议软件计算出来的路由表进行提取,并下发给底层NetFPGA来完成交互。本文就如何将路由表提取出来进行了研究,提出了对Zebra路由协议软件进行二次开发,增加路由表定时更新输出的功能解决方案。该方案基于Zebra面向对象设计思想,复用其通用接口,设计相应数据结构和函数,增加线程来处理通过Rip、Ospf或Bgp计算得到的路由表。
In order to improve the programmability and flexibility of the programmable virtual router which is based on the NetFPGA hardware platform, we need to seperate the control plane and data plane, resulting in that it is difficult to normally transmit date between the two planes. Through setting the control plane interfaces , extracting the routing tables of OpenVZ virtual routing instances that are calculated by Zebra routing protocol software, then sent it to the NetFPGA to complete the interaction. In this paper, we researched how to extract the routing tables and proposed the solution that redevelop the Zebra routing protocol software and add the function of regularly updating the routing tables output. This solution is based on the idea of Zebra's object-oriented design, reuse its universal interface, desigo its appropriate data structures and fianctions, and increase thread to handle the routing tables that calculated by Rip, Ospfor Bgp.
出处
《数字技术与应用》
2014年第8期43-44,共2页
Digital Technology & Application