摘要
为了让Windows下的网络数据快速发送与接收,提高实时性能,采用对Windows TCP/IP协议栈进行一种简化设计,通过利用Windows提供的用户与设备对象的交互,减少Windows从用户态到内核态的分层,对Socket层进行简单的封装,并且利用零拷贝技术减少数据的拷贝次数以及设置多级优先级队列使数据按照优先级发送,从而使数据达到快速发送和接收的目的。实验结果验证了这种方法能达到预期效果。
For sending and receiving network data quickly under Windows,and improving real-time performance,a simplified design for Windows TCP/IP protocol stack is proposed.By analysising the characteristics of multi-layer structure of the current Windows network architecture,the interaction(provided by Windows system) of users and device object was utilized,hierarchy from Windows user mode to kernel mode were reduced,the Socket layer was simply encapsulated,and the zero-copy technique was adopted to reduce numbers of the data copy and set multi-level priority queues to send data according to its priority queue.Thus,the data can be sent and received rapidly.Experimental results demonstrate that the method can achieve the desired results.
出处
《现代电子技术》
2012年第8期93-96,共4页
Modern Electronics Technique
基金
国家基础预研项目(2011AC100001C100001)