摘要
为避免创建缓冲区过程中必须指定大小和多次释放而导致可能的内存泄露和代码崩溃的弊端,提出一种自适应的嵌入式协议栈的缓冲区管理机制AutoBuf。它是基于抽象缓冲区接口而设计的,具有自适应性,支持动态内存的自动分配与回收,同时实现了嵌入式TCP/IP协议栈各层之间的零拷贝通信。在基于研究平台S3C44B0X的Web server网络数据监控系统上的测试结果表明,该缓冲区的设计满足嵌入式系统网络通信的应用需求,是一种高效、可靠的缓冲区管理机制。
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 memory 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.
出处
《计算机应用研究》
CSCD
北大核心
2009年第6期2254-2256,2262,共4页
Application Research of Computers