linux协议栈中间层扩展方法设计与实现
esign and implementation of the linux protocol stack extension
linux的协议栈已经相对稳定,分为socket层、TCP层、IP层和驱动层。但是有些时候需要对linux协议栈进行扩展,扩展又分为横向扩展和纵向扩展。本文讨论利用linux 本身的设备无关接口来进行纵向扩展的原理并通过简单事件队列的方法实现一个扩展后的中间层,并且用程序实现上述的设计。最后测试的结果表明本文讨论的扩展方法是有效的,能够正确接收到上层的数据包并将其传递给下层,用简单事件队列实现的的中间层能够在较大的数据包速率时保持比较高的吞吐率。
Linux protocol stack has been relatively stable, and is divided into socket layer, TCP layer, IP layer and driver layer.But sometimes it is needed to extend the linux protocol stack, and expansion is divided into horizontal expansion and vertical expansion.This article discusses the principle of linux device-independent interface to extend the protocol stack in vertical-align. And a extended middle layer is implemented useing simple-event-queue.A software is finished to achieve the above design.The finally test results show that the method of the expansion is valid, and the middle stack can correctly receive packets from the upper layer and send packets to the lower layer. The extended middle layer using simple-event-queue can keep relatively high throughput under the high rate of packets transmission.
毛玉明、卢占一
通信
协议栈扩展网络接口事件队列
protocol stack extensionnetwork interfaceevent queue
毛玉明,卢占一.linux协议栈中间层扩展方法设计与实现[EB/OL].(2011-03-02)[2025-08-16].http://www.paper.edu.cn/releasepaper/content/201103-96.点此复制
评论