摘要
为了提高通信网络的带宽、增加通信网络同主机的耦合度,基于共享内存的思想,设计实现了一种直接内存通信网络适配卡(DMC网卡);首先参照内存条的标准,设计DMC网卡与主机之间的接口;使DMC网卡上的存储芯片作为共享内存被CPU和DMC网卡使用;然后,发送数据时,CPU将数据直接写入DMC网卡上的共享内存区;接收时,CPU则直接从共享内存区读取数据,从而减少了通信数据的拷贝次数;最后利用操作系统的内存管理机制,编写驱动程序,实现系统对DMC网卡的管理和操作;经DMC网卡原理样机测试,使用DMC技术能提高网络带宽,改善系统性能;证明了"直接内存通信"原理的正确性。
For coupling between the network card and the mainframe, the Direct Memory Communication (DMA) has been introduced to make use of the high speed network. The DMA uses the idea of the shared memory to design the Direct Memory Communication Network Interface Card (abbreviated as DMC-NIC). Firstly, based on memory bank, the interface between the DMC-NIC and the mainframe is designed. Then, the memory chip on the DMC-NIC was used as the shared memory by the CPU and the DMC-NIC. When sending, the CPU writes the data directly to the shared memory; as for receiving, the CPU reads data from the same place. Finally, using the memory management technique is supported by the operation system; the driver can control and manage the DMC-NIC perfectly. The prototype was tested, and proved that the DMC technique has a higher communications speed and can work as expected.
出处
《计算机测量与控制》
CSCD
北大核心
2010年第4期881-883,共3页
Computer Measurement &Control
基金
专利受理号200810094255.3