基于复制技术的并行协议栈研究与实现
发布时间:2018-06-21 11:52
本文选题:并行协议栈 + 复制技术 ; 参考:《西安电子科技大学》2014年硕士论文
【摘要】:随着网络通信技术的快速发展,网络带宽和流量不断增大,,传统单核框架下的网络协议栈的处理能力很容易成为系统性能的瓶颈。多核处理器框架以及并行计算等技术可以有效解决单个核处理器能力不够的问题,但是传统的网络协议栈不适应多核框架。数据包级别的并行协议栈是一种多核框架下的协议栈,具有并行粒度细,可提高单个连接性能等优点,但存在多进程竞争协议状态的问题。 本文针对数据包级别并行协议栈中多线程竞争协议状态的问题,在深入研究复制技术的基础上,给出了一种基于复制技术的协议栈并行化方案。在方案设计中,运用复制技术,使得协议状态被复制到各个线程中,避免了数据竞争;采用了基于原子操作的无锁算法改进了消息队列操作,提高了多个线程访问消息队列的性能;且使用了零拷贝技术打通了网卡和用户层之间的通道,减少了中断次数以及数据包复制次数,从而提高了底层数据包传输模块的性能。基于以上关键技术,在用户态实现了基于复制技术的并行协议栈。实验结果表明,该协议栈性能优于数据包级别并行协议栈,有效地解决了锁竞争问题。
[Abstract]:With the rapid development of network communication technology, the network bandwidth and traffic are increasing, and the processing ability of the network protocol stack under the traditional single-core framework is easy to become the bottleneck of the system performance. Multi-core processor framework and parallel computing technology can effectively solve the problem of single core processor capability, but the traditional network protocol stack is not suitable for multi-core framework. Packet level parallel protocol stack is a multi-core protocol stack with fine parallel granularity and can improve the performance of a single connection. However there is a problem of multi-process contention protocol state. In this paper, aiming at the problem of multithread competing protocol status in packet level parallel protocol stack, a protocol stack parallelization scheme based on replication technology is proposed on the basis of in-depth study of replication technology. In the scheme design, the protocol state is copied to every thread by using replication technology, and the lock free algorithm based on atomic operation is used to improve the message queue operation. The performance of multiple threads accessing message queue is improved, and the channel between network card and user layer is opened by using zero-copy technology, which reduces the number of interrupts and the number of packet replication, thus improving the performance of the underlying data packet transmission module. Based on the above key technologies, the parallel protocol stack based on replication technology is implemented in user state. The experimental results show that the performance of the protocol stack is superior to that of the packet level parallel protocol stack, and the lock competition problem is effectively solved.
【学位授予单位】:西安电子科技大学
【学位级别】:硕士
【学位授予年份】:2014
【分类号】:TP393.04
【参考文献】
相关期刊论文 前5条
1 可向民,龚正虎,夏建东;零拷贝技术及其实现的研究[J];计算机工程与科学;2000年05期
2 杜凯;缪嘉嘉;杨树强;王怀民;;数据库复制技术研究进展[J];计算机工程与科学;2008年07期
3 李晋,葛敬国;Linux下互斥机制及其分析[J];计算机应用研究;2005年08期
4 张宇雷;黄皓;;基于网络处理器的零拷贝技术[J];计算机应用研究;2007年01期
5 夏高;刘斌;;用于高速网络入侵检测系统的并行TCP/IP协议栈[J];清华大学学报(自然科学版);2011年07期
相关博士学位论文 前1条
1 李波;基于异构多核平台的优化编程研究[D];华中科技大学;2011年
本文编号:2048520
本文链接:https://www.wllwen.com/guanlilunwen/ydhl/2048520.html