期刊文献+

BPF的实现机制分析与性能优化研究 被引量:3

Research on BPF Implementation and Performance Improvement
下载PDF
导出
摘要 BSD包过滤器(BSD Packet Filter,BPF)是BSD Unix操作系统提供的网络数据包捕获及过滤机制的内核组件。该文描述了BPF的组成及工作过程,分析了BPF采用的无环控制流图过滤模式,介绍了此模式基于虚拟机的实现。为了提高过滤器性能,必须解决BPF虚拟机指令生成器处理多个过滤条件组合时存在的指令冗余问题,通过引入静态单赋值(SSA),结合冗余谓词消除和窥孔优化等技术,可以有效缩短CFG图的平均路径长度,从而实现对过滤器性能的优化。 A packet filter is a programmable selection criterion for classifying or selecting packets from a packet stream, The BSD packet filter(BPF) is a kernel facility in BSD Unix that gives the user-level programs access to raw or unprocessed network traffic, This paper describes the architecture of BPF, analysis the filter model based on directed acyclic control flow graph~ The problem of redundant instructions is a crucial problem in pseudo-machine's code generator which affects the filter's performance greatly, To solve this problem, the SSA form, combined with redundant predicate elimination and peephole optimization technology, is used to minimize the average path length in the control flow graph. This results in efficient performance improvement.
作者 曾鸣 赵荣彩
出处 《计算机工程》 CAS CSCD 北大核心 2007年第12期43-45,48,共4页 Computer Engineering
关键词 BPF 无环控制流图 过滤器虚拟机 BPF+ 静态单赋值 冗余谓词消除 BSD packet filter(BPF) CFG Filter Pseudo-machine BPF+ SSA Redundant predicate elimination
  • 相关文献

参考文献6

  • 1McCanne S,Jacobason V.The BSD Packet Filter:A New Architecture for User-level Packet Capture[C]//Proceedings of the 1993 Winter USENIX Technical Conference.1993.
  • 2Yuhara M,Bershad B N,Maeda C,et al.Efficient Packet Demulitiplexing for Multiple Endpoints and Large Messages[C]// Proceedings of the 1994 Winter USENIX Technical Conference.1994.
  • 3Engler D R,Kaashoek M F.DPF:Fast,Flexible Message Demultiplexing Using Dynamic Code Generation[C]//Proceedings of SIGCOMM'96.1996.
  • 4Begel A,McCanne S,Graham S L.BPF+:Exploiting Global Data-flow Optimizations in a Generalized Packet Filter Architecture[C]//Proceedings of SIGCOMM'99.1999.
  • 5McKeeman W M.Peephole Optimization[Z].2005-11-24.http://www.csc.uvic.ca.
  • 6Appel A W.现代编译器的Java实现[M].2版.北京:电子工业出版社,2004.

同被引文献6

引证文献3

二级引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部