Parallel method for improving proxy success rate

CN118740919APending Publication Date: 2024-10-01百望股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410750866.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-10-01

AI Technical Summary

Benefits of technology

[0015] At the same time, let multiple proxy clients try to establish a TCP tunnel, and select the proxy client that succeeds first to complete the proxy service. Avoid proxy tunnel establishment failure due to an uncertain network environment for a single proxy client;

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740919A_ABST
    Figure CN118740919A_ABST
Patent Text Reader

Abstract

The invention provides a parallel method for improving proxy success rate, which comprises an access initiator, a proxy server, a proxy client and an accessed target site, and is characterized in that the access initiator is connected with the proxy client through the proxy server and then accesses the accessed target site; and the proxy server selects the proxy client with the first feedback channel successfully established as the client for executing the request, constructs http connection success information to the access initiator through the feedback channel, and then returns the feedback channel to tunnel establishment success information. And the tcp tunnel comprises a second channel, a 5b channel and a 4b channel, and the tcp tunnel initiates an http / https request to the accessed target site. Through a parallel technology, the success rate of proxy tunnel establishment is improved, and preferential selection of proxy nodes is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of network technology, and specifically relates to a parallel method for improving the success rate of an agent. Background Art

[0002] A proxy server is a server located between a client and a target server. It acts as an intermediary to forward client requests to the target server and get responses from the target server and forward them back to the client.

[0003] Proxy network access to HTTP refers to using a proxy server to access HTTP (Hypertext Transfer Protocol) services. HTTP is a transmission protocol used to transfer hypertext from the network to a local browser and is one of the most widely used protocols on the Internet. When a user accesses an HTTP service through a proxy server, the user's request is first sent to the proxy server, which then forwards the request to the target HTTP server, obtains a response, and then sends the data back to the user. In this way, users can access HTTP resources on the Internet through a proxy server. Summary of the invention

[0004] Now, the proxy server cannot directly access the target site, and needs to access the target site through the proxy client in network A. In two networks that can only be accessed in one direction, for example, the application in network A can access the application in network B. Through the tunnel proxy with network penetration function, the application in network B can access the application in network A through http / https.

[0005] The traditional approach is to deploy proxy components in network A and network B respectively (corresponding to the present invention, a proxy client is deployed in A and a proxy server is deployed in B). The system in B can set the port provided by the proxy server as a proxy to access the http / https service in network A. The problem faced by this solution is that there are multiple networks A, denoted as A1, A2, ..., An, and the networks A1, A2 ... An to the target site may not be stable and the network speed is also different. Each proxy client in network A may also be shut down irregularly, bringing a series of problems.

[0006] The present application provides a parallel method for improving the success rate of an agent, comprising the following steps:

[0007] An access initiator, a proxy server, a proxy client and a target site to be visited, wherein the access initiator connects to the proxy client through the proxy server and then visits the target site to be visited; the number of the proxy clients is several, and the network speed and network stability of the several proxy clients are different.

[0008] The proxy client establishes a TCP persistent connection with the proxy server, the access initiator sets the proxy server as a proxy for http / https and writes routing information, the proxy server resolves the http access address, and initiates a request to establish a proxy tunnel to at least two of the proxy servers, several of the proxy clients establish persistent connections to the visited target site, several of the proxy clients establish persistent connection 5a channel and 5b channel to the proxy server, and set the socket connections of channel 5a, channel 5b, channel 4a and channel 4b to transparent transmission mode;

[0009] The proxy server selects the first proxy client with a successful feedback channel as the client that executes this request, constructs HTTP connection success information and sends it to the access initiator through the feedback channel, and then returns the tunnel establishment success information through the feedback channel;

[0010] TCP tunnel: The TCP tunnel includes the second channel, the 5b channel and the 4b channel, and the TCP tunnel initiates an http / https request to the visited target site.

[0011] In some specific implementations, the routing information includes a proxy client executing a proxy service and initiating an http / https request.

[0012] In some specific implementations, the transparent transmission mode is to write data from the 4a channel and the 4b channel into the 5a channel and the 5b channel.

[0013] In some specific implementations, the transparent transmission mode is to write data from the 5a channel and the 5b channel into the 4a channel and the 4b channel.

[0014] Beneficial effects:

[0015] Allow multiple proxy clients to try to establish TCP tunnels at the same time, and select the proxy client that succeeds first to complete the proxy service. Avoid failure of proxy tunnel establishment due to uncertain network environment of a single proxy client;

[0016] Concurrency is performed at the network layer 4 protocol level. The access initiator's layer 7 service http / https is unaware of this process. No adjustments are required to the access initiator's service functions. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 The present invention provides a flow chart of a parallel method for improving the success rate of an agent. DETAILED DESCRIPTION

[0018] The following will be combined with the specific embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0019] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0020] A proxy server is a server that sits between a client and a target server. It acts as an intermediary to forward client requests to the target server and get responses from the target server and forward them back to the client. Using a proxy server can provide a variety of benefits, such as: Anonymity: Proxy servers can hide the user's real IP address, providing a certain degree of anonymity. Access control: Proxy servers can be used to control access to specific websites. For example, a company might use a proxy server to block employees from accessing social media sites. Caching: Proxy servers can cache frequently visited web pages, thereby reducing bandwidth usage and speeding up page loads. Content filtering: Proxy servers can be used to filter out inappropriate content, such as ads or malware. Load balancing: Distributing requests across multiple servers to optimize resource usage and improve performance.

[0021] Proxy network access to HTTP refers to using a proxy server to access HTTP (Hypertext Transfer Protocol) services. HTTP is a transmission protocol used to transfer hypertext from the network to a local browser and is one of the most widely used protocols on the Internet. When a user accesses an HTTP service through a proxy server, the user's request is first sent to the proxy server, which then forwards the request to the target HTTP server, obtains a response, and then sends the data back to the user. In this way, users can access HTTP resources on the Internet through a proxy server.

[0022] Proxy servers can be transparent (users are unaware of the presence of the proxy) or non-transparent (users explicitly know that a proxy is being used). Proxy servers can also be classified into different types of proxies based on their functions and uses, for example: HTTP proxy: a proxy specifically for HTTP and HTTPS protocols. SOCKS proxy: a more general proxy that can handle multiple types of network protocols. Anonymous proxy: does not reveal the user's real IP address to the target server. Transparent proxy: reveals the user's real IP address to the target server. When using a proxy server to access HTTP services, users need to configure the proxy server's address and port in the browser or client software. In this way, all HTTP requests will be made through the proxy server.

[0023] Proxy client access to HTTP means that the client (such as a browser or application) sends HTTP requests through a proxy server to access resources on the Internet. HTTP (Hypertext Transfer Protocol) is a transmission protocol used to transmit hypertext from the network to the local browser and is one of the most widely used protocols on the Internet.

[0024] When a client accesses HTTP resources through a proxy, the process is as follows: Client configuration: The client needs to configure the IP address and port number of the proxy server. This can be done in the settings of the client software, for example, by entering the details of the proxy server in the network settings of the browser. Sending request: The client sends an HTTP request through the proxy server. The client does not communicate directly with the target HTTP server, but sends the request to the proxy server. Proxy forwarding request: After the proxy server receives the HTTP request from the client, it forwards the request to the target HTTP server. Server response: The target HTTP server processes the request and returns the response data to the proxy server. Proxy forwarding response: After the proxy server receives the response from the HTTP server, it forwards the data back to the client. Client reception: The client receives the response data forwarded by the proxy server and renders the web page or performs other operations based on the data. Using a proxy client to access HTTP has the following benefits: Anonymity: The proxy server can hide the client's real IP address and provide anonymous access. Security: The proxy server can provide an additional layer of security, such as transmitting data through an encrypted channel. Access control: The proxy server can control access to specific websites, such as filtering out unsafe or inappropriate content. Performance optimization: Proxy servers can cache frequently visited web pages, reduce data transmission, and speed up loading. When proxy clients access HTTP, proxy servers can be of different types, including transparent proxies, anonymous proxies, open proxies, etc. Each type of proxy provides different anonymity levels and functions.

[0025] The traditional approach is to deploy proxy components in network A and network B respectively (corresponding to the present invention, a proxy client is deployed in A and a proxy server is deployed in B). The system in B can set the port provided by the proxy server as a proxy to access the http / https service in network A. The problem faced by this solution is that there are multiple networks A, denoted as A1, A2, ..., An, and the networks A1, A2 ... An to the target site may not be stable and the network speed is also different. Each proxy client in network A may also be shut down irregularly, bringing a series of problems.

[0026] like Figure 1 As shown, the present application provides a parallel method for improving the success rate of an agent, comprising the following steps:

[0027] An access initiator, a proxy server, a proxy client and a target site to be visited, wherein the access initiator connects to the proxy client through the proxy server and then visits the target site to be visited; the number of the proxy clients is several, and the network speed and network stability of the several proxy clients are different.

[0028] The proxy client establishes a TCP persistent connection with the proxy server, the access initiator sets the proxy server as a proxy for http / https and writes routing information, the proxy server resolves the http access address, and initiates a request to establish a proxy tunnel to at least two of the proxy servers, several of the proxy clients establish persistent connections to the visited target site, several of the proxy clients establish persistent connection 5a channel and 5b channel to the proxy server, and set the socket connections of channel 5a, channel 5b, channel 4a and channel 4b to transparent transmission mode;

[0029] The proxy server selects the first proxy client with a successful feedback channel as the client that executes this request, constructs HTTP connection success information and sends it to the access initiator through the feedback channel, and then returns the tunnel establishment success information through the feedback channel;

[0030] TCP tunnel: The TCP tunnel includes the second channel, the 5b channel and the 4b channel, and the TCP tunnel initiates an http / https request to the visited target site.

[0031] In some specific implementations, the routing information includes a proxy client executing a proxy service and initiating an http / https request.

[0032] In some specific implementations, the transparent transmission mode is to write data from the 4a channel and the 4b channel into the 5a channel and the 5b channel.

[0033] In some specific implementations, the transparent transmission mode is to write data from the 5a channel and the 5b channel into the 4a channel and the 4b channel.

[0034] Beneficial effects:

[0035] Allow multiple proxy clients to try to establish TCP tunnels at the same time, and select the proxy client that succeeds first to complete the proxy service. Avoid failure of proxy tunnel establishment due to uncertain network environment of a single proxy client;

[0036] Concurrency is performed at the network layer 4 protocol level. The access initiator's layer 7 service http / https is unaware of this process. No adjustments are required to the access initiator's service functions.

[0037] Through the TCP long connection technology, the proxy server in network B can send signaling to the proxy client in network A. Because network A can access network B, after the proxy client is started, it actively establishes a TCP long connection with the proxy server in network B. The two proxy clients (proxy client 1 and proxy client 2) enable the proxy server to send information to the proxy client. The access initiator sets the proxy server as a proxy for http / https, writes routing information in the authentication information (such as: hoping that proxy client 2 will perform proxy services), and initiates an http / https request. The proxy server parses the http access address and simultaneously initiates requests to multiple proxy clients (two in the figure) to establish proxy tunnels. Each proxy client establishes a long connection to the target site, and each proxy client establishes a long connection channel5 to the server. The two socket connections (socket connections) of channel4 (channel 4: channel 4 includes channel 4a and channel 4b) and channel5 (channel 5, channel 5 includes channel 5a and channel 5b) are set to transparent transmission mode (data from channel 4 is written to channel 5, and vice versa), and the result of successful client tunnel establishment is reported to the proxy server through channel 5. The proxy server selects the first proxy client that feedbacks successful tunnel establishment as the client to execute this request (subsequent tunnel establishment success information received will be abandoned). It is assumed that proxy client 2 returns tunnel establishment success information first. The proxy server constructs the http connection success information to the access initiator through channel2, then sets channel2 to the four-layer mode, and sets channel2 and channel5b to transparently transmit data. The access initiator can form a tcp tunnel through channel2, channel5b, and channel4b to initiate an http / https request to the target site.

[0038] This strategy ensures that the proxy tunnel establishment will not fail due to the instability of a single proxy client. At the same time, the proxy client that returns a success message first often has a better network environment.

[0039] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprises a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0040] The above description is only a preferred embodiment of the present application and does not constitute any form of limitation to the present application. Any technician familiar with the profession can make some changes or modify the technical contents disclosed above into equivalent embodiments with equivalent changes without departing from the scope of the technical solution of the present application. However, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application still falls within the scope of the technical solution of the present application.

Claims

1. A parallel method for improving the success rate of an agent, comprising: An access initiator, a proxy server, a proxy client and a target site to be visited, wherein the access initiator connects to the proxy client through the proxy server and then visits the target site to be visited; the number of the proxy clients is several, and the network speed and network stability of the several proxy clients are different, characterized in that: The proxy client establishes a TCP persistent connection with the proxy server, the access initiator sets the proxy server as a proxy for http / https and writes routing information, the proxy server resolves the http access address, and initiates a request to establish a proxy tunnel to at least two of the proxy servers, several of the proxy clients establish persistent connections to the visited target site, several of the proxy clients establish persistent connection 5a channel and 5b channel to the proxy server, and set the socket connections of channel 5a, channel 5b, channel 4a and channel 4b to transparent transmission mode; The proxy server selects the first proxy client with a successful feedback channel as the client that executes this request, constructs HTTP connection success information and sends it to the access initiator through the feedback channel, and then returns the tunnel establishment success information through the feedback channel; TCP tunnel: The TCP tunnel includes the second channel, the 5b channel and the 4b channel, and the TCP tunnel initiates an http / https request to the visited target site.

2. A parallel method for improving the success rate of an agent according to claim 1, characterized in that: The routing information includes a proxy client executing a proxy service and initiating an http / https request.

3. A parallel method for improving the success rate of an agent according to claim 1, characterized in that: The transparent transmission mode is to write the data from the 4a channel and the 4b channel into the 5a channel and the 5b channel.

4. A parallel method for improving the success rate of an agent according to claim 1, characterized in that: The transparent transmission mode is to write the data from the 5a channel and the 5b channel into the 4a channel and the 4b channel.