摘要: 介绍了一种基于零拷贝思想的用户级通信协议的设计与实现。通过对传统操作系统在处理网络数据包的过程中多次拷贝而造成的延迟进行了仔细分析,设计了一种内存映射机制,使用户的应用程序避开了操作系统核心的干预,直接与网络接口进行交互,并有效地完成操作系统核心与用户之间的数据交换,从而地减少了网络通信的开销与延迟。
关键词:
零拷贝;延迟;内存映射;数据交换
Abstract: This paper describes the design and implementation of a user-level communication protocol based on zero copy. According to analyzing on several times of copying when data transmit in the traditional operating system. It designs a memory mapping, by which the applications avoid the intervening of the operating system and communicate with network interface directly. The data can be exchanged between the kernel and user space efficiently. So the overhead and latency in communication can be reduced.
Key words:
Zero copy; Latency; Memory map; Data exchange
李 斌,辛海红,胡铭曾. 一种高效的用户级通信协议的研究与实现[J]. 计算机工程, 2006, 32(1): 148-150.
LI Bin, XIN Haihong, HU Mingzeng. Research and Implementation of User-level Communication Protocol[J]. Computer Engineering, 2006, 32(1): 148-150.