Method for realizing network service proxy based on IOCP mechanism

A network service and mechanism technology, applied in the field of network communication, can solve the problems of time-wasting thread switching, network congestion, and inability to meet actual needs well, and achieve the effect of increasing the number of accesses and improving utilization efficiency

Active Publication Date: 2016-11-16
GUANGZHOU HUIRUI SITONG INFORMATION SCI & TECH CO LTD
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] To deal with multi-client connections, you can use synchronous communication + multi-threading to deal with it, but the problem with this method is that when each client connects, a thread must be opened at the central node, because all these threads are running, the system has to context switch between all runnable threads, and thread switching is quite a waste of time
Improving the performance of the application and improving the performance of the hardware cannot really solve this problem, because the performance of a single server is always limited, and the network requests are bursty. When some important events occur, the network access will rise sharply. , resulting in network congestion, using cluster technology to achieve load balancing in the application system can better solve this problem
[0007] For now, most applications use the mechanism of IOCP to connect a large number of concurrent requests to the system, but there are still some defects. For example, the method provided by the IOCP-based mass terminal device access system of the patent No. A large number of concurrent requests are accessed, but how to distribute these requests reasonably does not involve
This does not meet the actual needs very well

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for realizing network service proxy based on IOCP mechanism
  • Method for realizing network service proxy based on IOCP mechanism
  • Method for realizing network service proxy based on IOCP mechanism

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] The present invention will be further described in detail below in conjunction with the embodiments and the accompanying drawings, but the embodiments of the present invention are not limited thereto.

[0037] Such as figure 1 As shown in the structure diagram after deployment of the present invention, the entire structure is divided into a client, a proxy server, and a server.

[0038] The proxy service includes three core functional modules: concurrent request access, request filtering (protecting background servers), and request distribution (load balancing, improving processing efficiency).

[0039] Such as figure 2 Shown are the usage steps of IOCP:

[0040] Call the CreateIOCompletionPort() function to create a completion port, and in general, only this one completion port needs to be established.

[0041] According to how many processors there are in the system, how many worker threads are established, and these threads are specially used to communicate with ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for realizing network service proxy based on an IOCP mechanism. The method comprises the following steps of: client requests are accessed through an IOCP; a proxy server performs filtration processing on the accessed client requests; and the proxy server distributes the filtered client requests to the least-loaded server for processing by utilizing a load balancing algorithm. By applying the method provided by the present invention, not only is the accessing quantity of the terminal users increased, but also the accessing quantity of the servers is increased and can be expanded at any time according to the need.

Description

technical field [0001] The invention relates to the field of network communication, in particular to a method for realizing network service agent based on the IOCP mechanism. Background technique [0002] In the information age, network communication is very important, and it is an important technical means to connect various devices together. As the communication scale becomes larger and larger, the design of the network center node becomes very important, because it is the bottleneck point that affects the communication efficiency. [0003] To deal with multi-client connections, you can use synchronous communication + multi-threading to deal with it, but the problem with this method is that when each client connects, a thread must be opened at the central node, because all these threads are running, the system has to context switch between all runnable threads, and thread switching is quite a waste of time. [0004] The IOCP model, also known as the completion port model...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/08
CPCH04L67/1001H04L67/56
Inventor 陈小锋
Owner GUANGZHOU HUIRUI SITONG INFORMATION SCI & TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products