• 首页
  • 期刊简介
  • 编委会
  • 投稿指南
  • 收录情况
  • 杂志订阅
  • 联系我们
引用本文:张雪锋.一种简化mbuf的设计与实现[J].软件工程,2018,21(8):33-35.【点击复制】
【打印本页】   【下载PDF全文】   【查看/发表评论】  【下载PDF阅读器】  
←前一篇|后一篇→ 过刊浏览
分享到: 微信 更多
一种简化mbuf的设计与实现
张雪锋
(国家知识产权局专利局专利审查协作四川中心,四川 成都 610011)
摘 要: mbuf全称为“memory buffer”,主要用于保存进程和网络接口间互相传递的用户数据,也用于保存源 与目标地址,套接字选项等。本文基于TCP/IP协议栈中mbuf的设计思想,设计了一种简化的mbuf,提供给应用软件 能方便的操作可变长缓存、在缓存的头部和尾部添加协议头数据、从缓存中移除数据,同时通过内存的零拷贝技术,有 效地提高CPU的利用率、节省存储空间的占用,并且可移植性强,具有较高的实用价值。
关键词: TCP/IP;mbuf;零拷贝;嵌入式
中图分类号: TP3.0    文献标识码: A
The Design and Implementation of a Simplified Mbuf
ZHANG Xuefeng
( Patent Examination Cooperation Sichuan Center of Patent Office, Chengdu 610011, China)
Abstract: A Memory Buffer (mbuf) is mainly used for saving the user data transmitting between the process and the network interface,as well as for storing sources and target addresses,and socket options.This article,based on the concept of mbuf in the TCN/IP protocol stack,proposes a simplified mbuf,providing an easily operated variable length buffer,adding protocol data at front and back of the buffer,and removing data from the buffer.By implementing the technology of memory zero-copy,the MBUF efficiently promotes CPU utilization,saves memory capacity,and increases portability and the practical value.
Keywords: TCP/IP;mbuf;zero-copy;embedded


版权所有:软件工程杂志社
地址:辽宁省沈阳市浑南区新秀街2号 邮政编码:110179
电话:0411-84767887 传真:0411-84835089 Email:semagazine@neusoft.edu.cn
备案号:辽ICP备17007376号-1
技术支持:北京勤云科技发展有限公司

用微信扫一扫

用微信扫一扫