• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2008, Vol. 30 ›› Issue (2): 135-138.

• 论文 • 上一篇    下一篇

一种TCP/IP卸载的数据零拷贝传输方法

王小峰 时向泉 苏金树   

  • 出版日期:2008-02-01 发布日期:2010-05-19

  • Online:2008-02-01 Published:2010-05-19

摘要:

目前已应用的TOE网卡是一次拷贝传输,没有实现零拷贝。RDMA技术可以实现零拷贝,但它需要全新编程接口且只能与对等网卡通信。本文介绍了一种面向TCP/IP卸载、由网络协议栈完成本地内存管理的数据零拷贝传输方法,协议栈完成目标空间解析,网卡和用户空间直接进行DMA操作完成数据传输,不改变应用接口且能与普通网卡通信。测试表明该方法性能比一次拷贝传输有很大提高。

关键词: TOE 零拷贝 内存解析 DMA

Abstract:

The TOE NICs being used are implemented with one copy. RDMA can be a zero-copy technology, but it needs to change the programming interface and can only communicate with RNIC. A TOE-based approach to zero-copy data transmission is proposed, which transmits data between NICs and the user space with the assistance of local memory management implemented by network protocols. It does not change the application interface, and can communicate with the normal NICs. Experiments indicate that this method can greatly increase the performance of zero-copy data transmission.

Key words: TOE, zero-copy, memory resolution, DMA