计算机工程

• 移动互联与通信技术 • 上一篇    下一篇

基于Libpcap的短波IP网关设计与实现

江川1,2,黄国策1,王炳和2,陈玙2   

  1. (1.空军工程大学信息与导航学院,西安 710077; 2.武警工程大学信息工程系,西安 710086)
  • 收稿日期:2014-04-28 出版日期:2015-07-15 发布日期:2015-07-15
  • 作者简介:江川(1987-),男,助教、博士研究生,主研方向:短波通信网,通信网络协议;黄国策,教授;王炳和,教授、博士;陈玙,助教。

Design and Implementation of High Frequency IP Gateway Based on Libpcap

JIANG Chuan 1,2,HUANG Guoce 1,WANG Binghe 2,CHEN Yu 2   

  1. (1.School of Information and Navigation,Air Force Engineering University,Xi’an 710077,China; 2.Department of Information Engineering,Engineering University of Chinese Armed Police Force,Xi’an 710086,China)
  • Received:2014-04-28 Online:2015-07-15 Published:2015-07-15

摘要: 基于TUN/TAP实现的短波网关存在配置不灵活、过滤机制简单、数据包捕获性能和服务质量(QoS)较低等问题。为此,给出一种基于Libpcap函数库的短波IP网关实现方案。采用基于Web的网关管理工具简化网关的配置管理,使用BPF指令定义数据包过滤规则,从而提高数据包捕获的精确性,并利用优先级队列提供一定的QoS支持。测试结果验证了该方案的有效性,并通过吞吐量和时延等参数表明,所设计网关的数据包捕获能力能够满足百兆网络中突发的高速数据流传输要求。

关键词: 短波网关, Libpcap函数库, 伯克利数据包过滤器, 优先级队列, 服务质量

Abstract: The currently High Frequency(HF) gateway implementation based on TUN/TAP has several shortcomings,such as inflexible configuration,no filtering mechanism,low packet capture performance,and lack of Quality of Service(QoS),etc.To solve these problems,this paper designs and implements a Libpcap-based HF IP gateway solution.The new gateway uses a web-based management tool to simplify configuration and management,uses BPF to define the packet filtering rules to improve the accuracy of packet capture,and uses priority queue to provide some QoS supports.Finally,through actual test,the functionality of this implementation is verified,and the throughput and latency performance of this solution can satisfy the requirement of high speed traffic capture in 100 Mb/s network.

Key words: High Frequency(HF) gateway, Libpcap function library, Berkeley Packet Filter(BPF), priority queue, Quality of Service(QoS)

中图分类号: