• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2011, Vol. 33 ›› Issue (7): 12-17.

• 论文 • 上一篇    下一篇

面向多核处理器的多实例并行BGP协议模型设计与实现

高蕾,赖明澈,龚正虎   

  1. (国防科学技术大学计算机学院,湖南 长沙 410073)
  • 收稿日期:2009-06-27 修回日期:2009-11-05 出版日期:2011-07-21 发布日期:2011-07-25
  • 作者简介:高蕾(1981),女,黑龙江大庆人,博士,助理研究员,研究方向为网络协议、网络管理和多线程编程。赖明澈(1982),男,湖北石首人,博士,助理研究员,研究方向为高性能路由器、网络协议和网络处理器。龚正虎(1945),男,湖南长沙人,教授,博士生导师,研究方向为高性能路由器、网络协议、网络管理和网络处理器。
  • 基金资助:

    国家863计划资助项目(2008AA01A325);国家973计划资助项目(2003CB314802);国家自然科学基金资助项目(60803153)

Design and Implementation of a MultiThreaded  BGP Model Based on Multicore Processors

GAO Lei,LAI Mingche,GONG Zhenghu   

  1. (School of Computer Science,National University of Defense Technology,Changsha 410073,China)
  • Received:2009-06-27 Revised:2009-11-05 Online:2011-07-21 Published:2011-07-25

摘要:

开发BGP的线程级并行可以满足不断膨胀的互联网应用对协议性能的迫切需求。本文提出了一种面向多核处理器的多实例并行BGP协议模型,它以邻居会话划分为基础,借助数据并行思想实现了不同邻居会话在多个线程上的并行处理。首先,通过分析BGP协议特点,我们给出了该模型的总体框架设计,然后在Quagga BGP的基础上完成了具体实现。在Intel Xeon四核服务器上的性能测试结果显示,多实例并行BGP协议较BGP协议的性能加速均值在2.73左右,并且能够有效利用多核处理器计算资源,为改善协议处理能力提供了更大的提升空间。

关键词: 多核, BGP, 多线程, 并行

Abstract:

The urgent requirement for the highefficiency of routing protocols on the Internet will be satisfied by exploiting the threadlevelparallelism of BGP on multicores. A multithreaded BGP model is proposed based on neighbor session division, and it achieves the parallel processing of different sessions on multiple threads by the use of data parallelism. Firstly, the framework of the multithreaded BGP is put forward, and is then implemented based upon Quagga BGP. The experimental results on the Intel Xeon quadcore server show that, the multithreaded BGP yields the speedup of 2.73 in comparison with BGP, and can make full use of the computing resources on multicores to provide more performance improvement for the protocol.

Key words: multicore;BGP;multithreaded;parallelism