作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2006, Vol. 32 ›› Issue (8): 62-63,72.

• 软件技术与数据库 • 上一篇    下一篇

TCP/IP 协议处理中的缓冲区优化及实现

俞晓明 1,2,郭莉 1   

  1. 1. 中国科学院计算技术研究所,北京 100080;2. 中国科学院研究生院,北京 100039
  • 出版日期:2006-04-20 发布日期:2006-04-20

Buffer Optimization in Processing of Protocols Above TCP/IP

YU Xiaoming1,2, GUO Li1   

  1. 1. Institute of Computing Technology, Chinese Academy of Sciences, Beijing 100080;2. Graduate School, Chinese Academy of Sciences, Beijing 100039
  • Online:2006-04-20 Published:2006-04-20

摘要: 针对应用层协议处理遇到的问题,提出了一种基于属性标识的缓冲区优化策略。该方法通过减少缓冲区操作的盲目性,可以基本消除各处理模块间缓冲区匹配所引起的数据复制,提高了系统性能;同时,该方法可以支持系统执行期间应用层协议处理通路的动态改变,提高了系统的灵活性。在基于内容的网络安全系统上实现了该方法,证实了方法的有效性。

关键词: 协议栈;网络包检查;零拷贝;缓冲区优化

Abstract: In order to overcome the problems introduced by deep analysis of protocols, this paper proposes an attribute-based buffer optimization method. The proposed method can eliminate almost all data copy when data flows between modules; at the same time, it makes changes of combination of modules online possible. Experiment shows 5%~10% increase of throughput and this validates the proposed method

Key words: Protocol stack; Packet inspect; Zero copy; Buffer optimization