互联网 qkzz.net
全刊杂志网:首页 > 女性 > 文章正文
刊社推荐

一种自适应的嵌入式协议栈缓冲区管理机制


□ 王培东 吴显伟

  摘 要:为避免创建缓冲区过程中必须指定大小和多次释放而导致可能的内存泄露和代码崩溃的弊端,提出一种自适应的嵌入式协议栈的缓冲区管理机制AutoBuf。它是基于抽象缓冲区接口而设计的,具有自适应性,支持动态内存的自动分配与回收,同时实现了嵌入式TCP/IP协议栈各层之间的零拷贝通信。在基于研究平台S3C44B0X的Web server网络数据监控系统上的测试结果表明,该缓冲区的设计满足嵌入式系统网络通信的应用需求,是一种高效、可靠的缓冲区管理机制。
  关键词:嵌入式协议栈; 抽象缓冲区; 零拷贝; 内存分配
  中图分类号:TP316文献标志码:A
  文章编号:1001-3695(2009)06-2254-03
  doi:10.3969/j.issn.1001-3695.2009.06.077
  
  Design and implementation of adaptive buffer for embedded protocol stack
  WANG Pei-dong, WU Xian-wei
  (College of Computer Science & Technology, Harbin University of Science & Technology, Harbin 150080, China)
  Abstract:
  To avoid traditional method of creating buffer, which must have the size of buffer and free memory for many times, which will result in memory leaks and codes crash. This paper proposed a flexible buffer management mechanism AutoBuf for embedded network protocol stack. It was adaptive and scalable and based on an abstract buffer interface, supported dynamic me-mory allocation and backup. By using the AutoBuf buffer management mechanism with data zero copy technology, it implemented to transfer data through the embedded network protocol stack. The management mechanism had been applied to the Web server system base on S3C44b0X platform successfully. The results in real network condition show that the system provides a good performance and meets the necessary of embedded network system. ......
很抱歉,暂无全文,若需要阅读全文或喜欢本刊物请联系《计算机应用研究》杂志社购买。
欢迎作者提供全文,请点击编辑
分享:
 

了解更多资讯,请关注“木兰百花园”
分享:
 
精彩图文


关键字
支持中国杂志产业发展,请购买、订阅纸质杂志,欢迎杂志社提供过刊、样刊及电子版。
关于我们 | 网站声明 | 刊社管理 | 网站地图 | 联系方式 | 中图分类法 | RSS 2.0订阅 | IP查询
全刊杂志赏析网 2017