CN-118803474-B - Proxy routing method and system
Abstract
The application relates to the technical field of communication, and provides a proxy routing method and a proxy routing system. The method comprises the steps of establishing connection with an optical network client based on a connection request sent by the optical network client, carrying routing information of a user client, obtaining a target source IP according to the routing information, establishing connection with a target server based on the target source IP, routing data to be accelerated to a target GRE tunnel according to the target source IP so that the data to be accelerated enter an acceleration network access point through the target GRE tunnel, and routing the data to be accelerated to a target acceleration link through the acceleration network access point strategy. In the proxy routing method provided by the application, the data to be accelerated is transmitted to the acceleration network point from the proxy server cluster by the link which best meets the service requirement, then transmitted to the target acceleration link from the acceleration network point, finally transmitted to the target server, and the link is most suitable for the service requirement of the user, so that the quality is better, and the problems of packet loss and delay of the data to be accelerated in the transmission process are effectively avoided.
Inventors
- WU HUANZHENG
- ZHANG LIANG
- Tong Yebin
Assignees
- 中移(杭州)信息技术有限公司
- 中国移动通信集团有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20240112
Claims (8)
- 1. A proxy routing method, applied to a proxy server cluster, comprising: establishing connection with an optical network client based on a connection request sent by the optical network client, wherein the connection request carries routing information of a user client; Obtaining the target source IP according to the route information comprises the following steps: Acquiring a target acceleration link from the route selection information according to a preset priority rule; Acquiring a corresponding target source IP from a link information hash table according to the target acceleration link; establishing connection with a target server based on the target source IP and binding the target source IP; according to the target source IP, routing the data strategy to be accelerated to a target GRE tunnel, comprising: Selecting the target source IP from a plurality of private network IPs configured by the Loop interface of the target source IP; And routing the data to be accelerated from the Loop interface strategy to a target GRE tunnel according to the target source IP so that the data to be accelerated enters an acceleration network access point through the target GRE tunnel and is routed to a target acceleration link through the acceleration network access point strategy, wherein the target GRE tunnel is a GRE tunnel between the target GRE tunnel and the acceleration network access point, and the target acceleration link is an acceleration link between the acceleration network access point and the target server.
- 2. The proxy routing method of claim 1, wherein, The routing information is defined in a TLV format, the type in the TLV format is a link type, and the value in the TLV format is a link ID corresponding to the link type.
- 3. A proxy routing method, applied to an optical network client, comprising: establishing connection with a proxy server cluster based on a connection request sent to the proxy server cluster, wherein the connection request carries routing information of a user client; The data to be accelerated is led to a proxy tunnel, so that the data to be accelerated enters the proxy server cluster through the proxy tunnel, and the proxy server cluster acquires a target source IP according to the routing information, and the method comprises the following steps: Acquiring a target acceleration link from the route selection information according to a preset priority rule; Acquiring a corresponding target source IP from a link information hash table according to the target acceleration link; routing the data strategy to be accelerated to a target GRE tunnel according to the target source IP, wherein the routing comprises the following steps: Selecting the target source IP from a plurality of private network IPs configured by the Loop interface of the target source IP; Routing data to be accelerated from the Loop interface strategy to a target GRE tunnel according to the target source IP; the data to be accelerated enters an acceleration network point through the target GRE tunnel and is routed to a target acceleration link through the acceleration network point strategy, the proxy tunnel is a tunnel between the proxy tunnel and the proxy server cluster, and the target acceleration link is an acceleration link between the acceleration network point and the target server.
- 4. A proxy routing method according to claim 3, wherein before the data to be accelerated is diverted to a proxy tunnel, it comprises: and periodically dialing and measuring time delay information of all acceleration links so that the user client can acquire the time delay information.
- 5. A proxy routing method according to claim 3, wherein said establishing a connection with said proxy cluster based on a connection request sent to said proxy cluster comprises: Receiving route selection information sent by the user client; and receiving data to be accelerated sent by the user terminal to which the user client belongs.
- 6. The proxy routing system is characterized by comprising a proxy server cluster and an optical network client; the proxy server cluster is configured to: establishing connection with an optical network client based on a connection request sent by the optical network client, wherein the connection request carries routing information of a user client; Obtaining the target source IP according to the route information comprises the following steps: Acquiring a target acceleration link from the route selection information according to a preset priority rule; Acquiring a corresponding target source IP from a link information hash table according to the target acceleration link; establishing connection with a target server based on the target source IP and binding the target source IP; according to the target source IP, routing the data strategy to be accelerated to a target GRE tunnel, comprising: Selecting the target source IP from a plurality of private network IPs configured by the Loop interface of the target source IP; Routing data to be accelerated from the Loop interface policy to a target GRE tunnel according to the target source IP so that the data to be accelerated enters an acceleration network access point through the target GRE tunnel and then is routed to a target acceleration link through the acceleration network access point policy; the optical network client is configured to: Establishing connection with a proxy server cluster based on a connection request sent to the proxy server cluster; and the data to be accelerated is led to a proxy tunnel, so that the data to be accelerated enters the proxy server cluster through the proxy tunnel and is routed to a target acceleration link through the proxy server cluster according to the routing information strategy, and the proxy tunnel is a tunnel between the proxy tunnel and the proxy server cluster.
- 7. An electronic device comprising a processor and a memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the proxy routing method of any one of claims 1 to 2 or the steps of the proxy routing method of any one of claims 3 to 5.
- 8. A non-transitory computer readable storage medium having stored thereon a computer program, characterized in that the computer program when executed by a processor implements the steps of the proxy routing method of any of claims 1 to 2 or the steps of the proxy routing method of any of claims 3 to 5.
Description
Proxy routing method and system Technical Field The application relates to the technical field of communication, in particular to a proxy routing method and a proxy routing system. Background SOCKS5 is a proxy protocol that plays an intermediate role between a client communicating using TCP/IP protocols and a target server so that the client in the intranet becomes able to access the server in the internet. The SOCKS5 proxy server simulates the behavior of a client by forwarding the request from the client to the target server. Specifically, the user side and the proxy server also communicate through a TCP/IP protocol, the user side sends a request which is originally sent to the target server to the proxy server, and then the proxy server forwards the request to the target server, so that the communication between the user side and the target server is realized. In the emerging digital home services such as cloud games, high-definition video calls, AR/VR, etc., there is a scenario in which a user side performs legal access to specific websites, and at this time, a proxy server is needed to be used as an intermediary to implement connection communication between the user side and a target server to which the specific websites belong. However, the links between the user end and the target server are numerous, and in the traditional proxy access method, the user end cannot select a proper link according to own service requirements, so that the link quality is poor, and the problems of packet loss and delay are easy to occur in the data transmission process. Disclosure of Invention The embodiment of the application provides a proxy routing method and a proxy routing system, which are used for solving the technical problems that in the traditional proxy access method, a user side cannot select a proper link according to own service requirements, so that the link quality is poor, and the problems of packet loss and delay are easy to occur in the data transmission process. In a first aspect, an embodiment of the present application provides a proxy routing method, applied to a proxy server cluster, including: establishing connection with an optical network client based on a connection request sent by the optical network client, wherein the connection request carries routing information of a user client; Acquiring a target source IP according to the route selection information; establishing connection with a target server based on the target source IP and binding the target source IP; And routing the data strategy to be accelerated to a target GRE tunnel according to the target source IP so that the data to be accelerated enters an acceleration network access point through the target GRE tunnel and then is routed to a target acceleration link through the acceleration network access point strategy, wherein the target GRE tunnel is a GRE tunnel between the target GRE tunnel and the acceleration network access point, and the target acceleration link is an acceleration link between the acceleration network access point and the target server. In one embodiment, the obtaining the target source IP according to the routing information includes: Acquiring a target acceleration link from the route selection information according to a preset priority rule; and acquiring a corresponding target source IP from a link information hash table according to the target acceleration link. In one embodiment, the routing the data policy to be accelerated to the target GRE tunnel according to the target source IP includes: Selecting the target source IP from a plurality of private network IPs configured by the Loop interface of the target source IP; And routing the data to be accelerated from the Loop interface strategy to a target GRE tunnel according to the target source IP. In one embodiment, the routing information is defined in a TLV format, a type in the TLV format is a link type, and a value in the TLV format is a link ID corresponding to the link type. In a second aspect, an embodiment of the present application provides a proxy routing method, applied to an optical network client, including: establishing connection with a proxy server cluster based on a connection request sent to the proxy server cluster, wherein the connection request carries routing information of a user client; And the data to be accelerated is led to a proxy tunnel, so that the data to be accelerated enters the proxy server cluster through the proxy tunnel and is routed to a target acceleration link through the proxy server cluster according to the routing information strategy, wherein the proxy tunnel is a tunnel between the proxy tunnel and the proxy server cluster, and the target acceleration link is an acceleration link between an acceleration network point and a target server. In one embodiment, before the data to be accelerated is drained to the proxy tunnel, the method includes: and periodically dialing and measuring time delay information of all acce