Unlock instant, AI-driven research and patent intelligence for your innovation.

A Method of 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: 2019-06-18
GUANGZHOU HUIRUI SITONG INFORMATION SCI & TECH CO LTD
View PDF4 Cites 0 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
  • A Method of Realizing Network Service Proxy Based on IOCP Mechanism
  • A Method of Realizing Network Service Proxy Based on IOCP Mechanism
  • A Method of 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

A method for realizing a network service proxy based on the IOCP mechanism disclosed by the present invention comprises the following steps: accessing the request of the client through the IOCP; the proxy server filtering and processing the accessed client request; Filtered client requests are distributed to the server with the lowest load for processing. The method of the present invention not only increases the number of accesses of terminal users, but also increases the number of accesses of servers, and can be expanded at any time according to needs.

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 Patents(China)
IPC IPC(8): H04L29/08
CPCH04L67/1001H04L67/56
Inventor 陈小锋
Owner GUANGZHOU HUIRUI SITONG INFORMATION SCI & TECH CO LTD