计算机科学 ›› 2011, Vol. 38 ›› Issue (Z10): 385-388.

• 无线网络与通信技术 • 上一篇    下一篇

单客户机一多服务器模式下IOCP的应用与研究

王震,徐博,解永平,孙加奉   

  1. (大连理工大学信息与通信工程学院 大连 116024);(中国移动大连分公司 大连 116021)
  • 出版日期:2018-11-16 发布日期:2018-11-16

Application and Study of IOCP in Single Client-mufti Server Model

WANG Zhen, XU Bo, XIE Yong-ping, SUN Jia-feng   

  • Online:2018-11-16 Published:2018-11-16

摘要: 对特定网络应用中的单客户机一多服务器模型进行了分析,给出了基于lOCY的客户机基本实现,又给出了线程调度、异步连接等IOCP框架中的实现方法。针对不定长数据接收的要求,对内存池管理、缓冲区设置等问题进行了分析与设计。连接测试和吞吐能力测试的结果表明,本设计具备高效较大数量连接和数据处理的能力。通过实验方式给出了IOCP线程数设置的建议。

关键词: 单客户机一多服务器,完成端口,多线程,内存池,缓冲区

Abstract: This paper analyzed a single client一mufti-server model based on specific network applications. This paper not only gave the client basic implementation based on IOCP, but also gave the thread scheduling, asynchronous connections IOCP framework method. Aiming at receiving variable length data for the reduest,memory pool management and buffer settings were analyzed and designed. By connecting test and throughput test, results show that this design has capabilities of a large number of connections and efficient data processing. The recommendations of the number setting of IOCP worker threads were given by the experimental methods.

Key words: Single client-mufti server, IOCP, Mufti-thread, Memory Pool, Buffer

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!