| As the network is becoming more and more popular in daily life and work, network accessing number surged. Under the backgroud of the large-scale connections, the server system based on TCP (Transmission Control Protocol) protocol couldn't achieve efficient concurrent data processing performance, which led a result that a large number of application systems could neither make good use of network bandwidth resources nor achieve the service performance needed by the users. Therefore, the purpose of this article is to seek for large-scale TCP connection topic solutions to achieve high number of connections, high concurrent processing performance and high throughput performance.This paper first introduced the data processing principle of the application systems based on TCP protocol, then deeply researched and analysised the performance bottleneck of the traditional TCP application systems in the realization of specific TCP/IP protocol on linux platform. Through the analysis, a new efficient concurrent flow handle modle of large-scale TCP connedtion was put forward, and around this modle, this article showed the detail development and design in the kernel part and application part.In the linux kernel layer, firstly, put forward a new concurrent data flow distruibution mechanism on base of analysising the defects of traditional data flow methods, which greatly realized the efficient flow affinity, interrupt affinity and processes affinity control algorithm. Secondly, considering the interrupt bottleneck in traditional TCP data handling and the high interrupt rate requrement of large-scale TCP connection system, a new interrupt control mechanism was realized. Thirdly, according to analysis the defect of TCP data process scheduling in traditional linux system, this part designed a new TCP data process scheduling algorithm in which linux process scheduling strategy was improved and redesigned.In application layer, this section analysised the main kinds of programming I/O and buffer strategies, and at the same time, as the defect of traditional server modle, a new efficient TCP server construction was put forward and a high efficient TCP application server modle was realized base on epoll and task pool.This paper creatively proposed the large-scacle TCP connection scheme, and accordingly finished the designing in the kernel layer and application layer. During the designing, around the required performance, many algorithms and control mechanism were developped in the corresponding key part, which achieved and verified the high connection number, high concurrent processing and high throughput performance requirement in the real project. |