CN111786809A - Client software network optimization method, system, device and storage medium - Google Patents

Client software network optimization method, system, device and storage medium Download PDF

Info

Publication number
CN111786809A
CN111786809A CN202010394480.XA CN202010394480A CN111786809A CN 111786809 A CN111786809 A CN 111786809A CN 202010394480 A CN202010394480 A CN 202010394480A CN 111786809 A CN111786809 A CN 111786809A
Authority
CN
China
Prior art keywords
client software
proxy node
node
connection
network state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010394480.XA
Other languages
Chinese (zh)
Inventor
孙学伟
庞文宇
吴宪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202010394480.XA priority Critical patent/CN111786809A/en
Publication of CN111786809A publication Critical patent/CN111786809A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a method, a system and a storage medium for optimizing a client software network. The optimization method comprises the following steps: the method comprises the steps of establishing long connection between client software and proxy nodes in a server, and forwarding network requests of the client software to corresponding service nodes through the proxy nodes, wherein the proxy nodes are connected with all service nodes in the server. By adding the proxy nodes on the basis of the existing architecture and arranging the direct interaction between the client software and the server, the client software is only connected with the proxy nodes, the network request is forwarded to each service node through the proxy nodes, the problem of repeated reconnection between the client software and the server is avoided on the basis of not modifying the original service logic, the data transmission efficiency is improved by reducing the number of handshaking, the optimization of network performance is completed, and the user experience is improved.

Description

Client software network optimization method, system, device and storage medium
Technical Field
The present invention relates to the field of software management technologies, and in particular, to a method, a system, an apparatus, and a storage medium for optimizing a client software network.
Background
Optimization of the mobile terminal app network module is a very critical link for app performance optimization, and for large apps with complex functions, frequent interaction with a background and numerous interface domain names, network optimization is particularly important, and user experience is directly influenced by network performance.
At present, mobile terminal app network protocols basically adopt http, interfaces provided by a background have different domain names, when a user uses the app, the app frequently uses the http protocol to call background interfaces of a plurality of domain names, the http is a stateless protocol, connection needs to be established during each use, and the connection is disconnected after the use is completed. Therefore, when the app is used, the app needs to be connected with services corresponding to different domain names at the same time, and different services are often configured on servers which cannot be reached, which may cause the app to interact with different servers, and the more the servers are connected, the more the number of connections need to be made is, the longer the time consumed by the more the number of connections is, and the longer the time consumed is, the network level is in a slow network state or a slow network state, which greatly affects the use experience of the user.
Disclosure of Invention
In order to solve the problems in the prior art, at least one embodiment of the present invention provides a method, a system, an apparatus, and a storage medium for optimizing a client software network.
In a first aspect, an embodiment of the present invention provides a method for optimizing a client software network, where the method includes:
establishing long connection between client software and an agent node in a server, wherein the agent node is connected with each service node in the server;
and forwarding the network request of the client software to the corresponding service node through the proxy node.
Based on the above technical solutions, the embodiments of the present invention may be further improved as follows.
With reference to the first aspect, in a first embodiment of the first aspect, before the long-connecting the client software with the proxy node, and forwarding the network request of the client software to the corresponding service node through the proxy node, the optimization method further includes:
acquiring the real-time network state of the client software;
comparing the real-time network state with a preset network state threshold value, and judging whether the real-time network state is in a weak network state;
when the real-time network state is not in the weak network state, executing the step of long-term connection between the client software and the proxy node, and forwarding the network request of the client software to the corresponding service node through the proxy node;
and when the real-time network state is in a weak network state, connecting the client software with the corresponding service node.
With reference to the first aspect, in a second embodiment of the first aspect, after the long connecting the proxy node with the client software, the optimization method further includes:
applying for a standby domain name for the proxy node;
caching a backup connection path between the proxy node and the client software based on the backup domain name;
and when the long connection between the proxy node and the client software is disconnected, re-connecting the proxy node and the client software for a long time based on the standby connection path.
With reference to the first aspect or the first or second embodiment of the first aspect, in a third embodiment of the first aspect, the long connecting the client software and the proxy node specifically includes:
applying for a domain name for the proxy node;
connecting the client software and the proxy node through a hypertext transfer protocol 2.0 based on the domain name;
after the client software is connected with the agent node, sending connection verification information to the agent node according to a preset verification mode;
and after receiving the connection verification information, the proxy node sends corresponding feedback information to the client software.
In a second aspect, an embodiment of the present invention provides a client software network optimization system, where the optimization system includes: a client and a server; the client comprises: client software and a connection control unit; the server side comprises: service nodes and proxy nodes connected with the service nodes;
the connection control unit is used for connecting the client software with the proxy node;
and the proxy node is used for forwarding the network request of the client software to the corresponding service node.
With reference to the second aspect, in a first embodiment of the second aspect, the client further includes: a weak network detection unit;
the weak network detection unit is used for acquiring the real-time network state of the client software; comparing the real-time network state with a preset network state threshold value, and judging whether the real-time network state is in a weak network state;
the connection control unit is specifically configured to connect the client software with the proxy node when the real-time network state is not in the weak network state;
the connection control unit is specifically configured to connect the client software to the corresponding service node when the real-time network state is in the weak network state.
With reference to the second aspect, in a second embodiment of the second aspect, the connection control unit is further configured to obtain a standby domain name of the proxy node, and cache a standby connection path between the proxy node and the client software based on the standby domain name;
the connection control unit is further configured to, when the long connection between the proxy node and the client software is disconnected, re-connect the proxy node and the client software on the basis of the backup connection path.
With reference to the second aspect or the first or second embodiment of the second aspect, in a third embodiment of the second aspect, the connection control unit is further configured to obtain that the proxy node applies for a domain name; connecting the client software and the proxy node through a hypertext transfer protocol 2.0 based on the domain name;
the client software is also used for sending connection verification information to the proxy node according to a preset verification mode after being connected with the proxy node;
and the agent node is also used for sending corresponding feedback information to the client software after receiving the connection verification information.
In a third aspect, an embodiment of the present invention provides a client software network optimization apparatus, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the client software network optimization method in any one of the first aspect when executing the program stored in the memory.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where one or more programs are stored in the computer-readable storage medium, and the one or more programs are executable by one or more processors to implement the client software network optimization method in any one of the first aspects.
Compared with the prior art, the technical scheme of the invention has the following advantages: the proxy nodes connected with the service nodes in the server are arranged, so that client software is connected with the proxy nodes, the network request of the client which is healthy is forwarded to the service nodes through the proxy nodes, the condition that the network resource is occupied by the repeated network connection of the client and the server is avoided, meanwhile, the network request of the client software is forwarded through the proxy nodes in the scheme, and the client software is only connected with the proxy nodes, so that the client with lower configuration can be adapted, and the interaction efficiency of the client software and the server can be improved by reducing the handshaking times between the client software and the server.
Drawings
Fig. 1 is a schematic flowchart of a method for optimizing a client software network according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for optimizing a client software network according to another embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for optimizing a client software network according to another embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a client software network optimization system according to yet another embodiment of the present invention;
fig. 5 is a schematic structural diagram of a client software network optimization device according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention.
The client software provided in the embodiments of the present invention for implementing various embodiments of the present invention includes a network connection device, a memory 1130, a processor 1110, a communication interface 1120, and a communication bus 1140, and electronic components complete communication with each other through the communication bus 1140, where the client software end may be a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
As shown in fig. 1, an embodiment of the present invention provides a method for optimizing a client software network. Referring to the figure, the method includes the steps of:
s11, establishing long connection between the client software and the proxy node in the server, wherein the proxy node is connected with each service node in the server.
In this embodiment, the service end is a set of servers for implementing different services, and the service node is a terminal for implementing a certain service in each server, and generally, the service node of the service end includes: the front-end processor is an interface used for being connected with the outside, the business machines are respectively operated on different servers, and the front-end processor distributes request information sent by the outside terminal to the corresponding business machine for processing after being connected with the outside terminal.
In this embodiment, the proxy node may be a proxy machine disposed in the server, and the proxy node and the service node in the server are connected through an internal network, so that data transmission efficiency between the proxy node and each service node in the server can be ensured.
In this embodiment, the existing hypertext transfer protocol is a stateless mode, a connection needs to be established each time it is used, it takes time to establish the connection, especially when the network operation is frequent, it takes a lot of time to establish the connection, in order to reduce the time consumed to establish the connection, the connection can be maintained continuously, a long connection is maintained, the long connection means that a plurality of data packets can be continuously sent on one connection, and during the connection maintenance period, if no data packet is sent, a link detection packet needs to be sent by both sides.
And S12, forwarding the network request of the client software to the corresponding service node through the proxy node.
The traditional method of directly accessing the service function by the client software can ensure that if the long connection between the client software and different service nodes is maintained, the requirement on the running performance of the equipment is very high, and the running smoothness of the client software is influenced, moreover, because not every service needs to be used for a long time or frequently, maintaining a long connection for each service node may consume network resources of the client software which, in this scenario, by arranging the agent node connected with the service node, the client software is connected with the agent node, so that the client software only needs to establish a long connection link with the agent node, the network request of the client software is forwarded through the proxy node, so that the requirement on the configuration of the client can be reduced, and the connection time consumed by repeated connection can be avoided to optimize the network performance of the client software.
For example, connecting the client software with the proxy node may include: applying for a domain name for the proxy node; connecting client software and the proxy node through a hypertext transfer protocol 2.0 based on the domain name; after the client software is connected with the proxy node, sending connection verification information to the proxy node according to a preset verification mode; and after receiving the connection verification information, the proxy node sends corresponding feedback information to the client software.
In the embodiment, at present, the mobile software and the background basically use http1.x protocol, http1.x has known defects, such as Head-Of-Line Blocking, high protocol overhead (excessive Head content), etc., and hypertext transfer protocol 2.0 solves these problems of http1.x, so the software can use the hypertext transfer protocol 2.0 protocol, the client software and the proxy node are connected through the hypertext transfer protocol 2.0 by applying for the domain name for the proxy node, for the client, no new protocol is established and realized, the change to the existing service code is small, then sending connection verification information to the proxy node according to a preset verification method, and feeding back the connection verification information by the proxy node in time after receiving the connection verification information so as to maintain the connection between the short software and the proxy node, for example, the heartbeat packet can be sent to the proxy node as the connection verification information in a timing sending mode.
In this embodiment, if the system completely uses the hypertext transfer protocol 2.0, the background needs to be modified from the front-end processor to the service machine in each layer, and the workload is large, so we can partially use the hypertext transfer protocol 2.0, that is, the hypertext transfer protocol 2.0 protocol is used from the end-software to the background agent, the agent is connected to the front-end processor in the company, and the communication between the front-end processor and the service machine still uses http1.x, that is, in this scheme, the connection can be performed only between the client and the agent by using the hypertext transfer protocol 2.0, so as to reduce the change of codes in the system and improve the efficiency of replacing the system.
In this embodiment, after the client software and the proxy node are connected for a long time, the connection will not be actively disconnected any more, so the communication channel quality of the client software can be obtained, the communication channel quality is compared with the preset threshold interval, when the communication channel quality is better, the time interval for sending the connection verification information to the proxy node can be prolonged, when the communication channel quality is worse, the time interval for sending the connection verification information to the proxy node is shortened, further, the time interval for sending the connection verification information to the proxy node can be obtained by calculating the communication channel quality, for example, the error rate is taken as the communication channel quality, the higher the error rate is, the shorter the error rate is, the longer the time interval is, the time interval is inversely proportional to the error rate, and the maximum value and the minimum value of the time interval are controlled to be fixed values, so as to avoid the problem that the time interval is too large or too small, by the method, whether the client software is normally connected with the proxy node can be quickly determined when the communication channel quality is poor, and resources can be prevented from being occupied by frequent connection verification when the communication channel quality is good.
As shown in fig. 2, an embodiment of the present invention provides a method for optimizing a client software network. Referring to fig. 2, the optimization method includes the steps of:
and S21, setting proxy nodes connected with each service node in the server.
Regarding step S21, refer to the description in step S11 for details, which are not repeated herein.
And S22, acquiring the real-time network state of the client software.
In this embodiment, the real-time network status of the client software may be parameters of the client software, such as real-time uplink rate, real-time downlink rate, and communication channel quality.
And S23, comparing the real-time network state with a preset network state threshold value, and judging whether the real-time network state is in a weak network state.
In this embodiment, since the uplink rate and the downlink rate may indicate a network rate of the client, and the quality of the communication channel may indicate a quality of communication between the client and the outside, when any parameter has a problem, the client may be affected to transmit data to the outside.
In this embodiment, because the client software needs to be connected to the proxy node for a long time in the solution, and the network request is forwarded by the proxy node, the data transmission performance of the long connection mode is lower than that of the conventional connection mode due to the head-to-head blocking problem of the communication protocol, so that when the real-time network state of the client software is in the weak network state, the data transmission efficiency can be improved by switching the connection mode.
And S24a, when the real-time network state is not in the weak network state, executing the step of long-term connection between the client software and the proxy node, and forwarding the network request of the client software to the corresponding service node through the proxy node.
Regarding step S24a, refer to the description in step S12 for details, which are not repeated herein.
And S24b, connecting the client software with the corresponding service node when the real-time network state is in the weak network state.
In this embodiment, in order to avoid an error in data transmission caused by unstable long connection between client software and a proxy node in a weak network state, a front-end processor of a server may be connected through an original network module based on http1.x, and a network request is distributed to a corresponding service machine through http1.x by the front-end processor.
As shown in fig. 3, an embodiment of the present invention provides a method for optimizing a client software network. Referring to fig. 3, the optimization method includes the steps of:
and S31, setting proxy nodes connected with each service node in the server.
Regarding step S31, refer to the description in step S11 for details, which are not repeated herein.
And S32, connecting the client software with the proxy node, and forwarding the network request of the client software to the corresponding service node through the proxy node.
Regarding step S32, refer to the description in step S12 for details, which are not repeated herein.
In this embodiment, a domain name may be applied for the proxy node, and all network requests of the software are forwarded through the domain name, so as to ensure that each network request of the software passes through the same proxy.
And S33, applying for the standby domain name for the proxy node.
In this embodiment, by avoiding a problem in the connection between the client software and the proxy node due to the domain name problem, another domain name may be applied for the proxy node as the standby domain name.
And S34, caching the standby connection path between the proxy node and the client software based on the standby domain name.
In this embodiment, the connection paths of the client software and the proxy node constructed based on the standby domain name are cached to avoid connection interruption.
In this embodiment, the optimization method further includes: and when the long connection between the proxy node and the client software is disconnected, the proxy node and the client software are connected again on the basis of the standby connection path.
In this embodiment, after the main link between the proxy node and the client software is disconnected, the proxy node and the client software are quickly reconnected through the backup connection path, so that the situation that the service cannot be accessed again for a long time after disconnection is avoided.
As shown in fig. 4, an embodiment of the present invention provides a client software network optimization system. Referring to fig. 4, the optimization system includes: a client and a server; the client comprises: client software and a connection control unit; the server side comprises: service nodes and proxy nodes connected to the respective service nodes.
In this embodiment, the connection control unit is configured to connect the client software with the proxy node. Because the hypertext transfer protocol for the connection between the client software and the server is stateless, the connection needs to be established each time the client software accesses the server, the time for establishing the connection is required, particularly, when the network operation is frequent, a lot of time is spent on establishing the connection, and the connection can be continuously maintained and long connection can be kept in order to reduce the time for establishing the connection.
In this embodiment, the proxy node is configured to forward the network request of the client software to the corresponding service node.
Meanwhile, in order to solve the problem that a plurality of connections need to be established as background interfaces of different modules run on different servers, an agent can be added in the background to serve as an agent node, and network interaction between client software and the background is forwarded through the agent, so that the client software only needs to establish one network connection.
For example, connecting the client software with the proxy node may include: applying for a domain name for the proxy node; connecting client software and the proxy node through a hypertext transfer protocol 2.0 based on the domain name; after the client software is connected with the proxy node, sending connection verification information to the proxy node according to a preset verification mode; and after receiving the connection verification information, the proxy node sends corresponding feedback information to the client software.
In the embodiment, at present, the mobile software and the background basically use http1.x protocol, http1.x has known defects, such as Head-Of-Line Blocking, high protocol overhead (excessive Head content), etc., and hypertext transfer protocol 2.0 solves these problems of http1.x, so the software can use the hypertext transfer protocol 2.0 protocol, the client software and the proxy node are connected through the hypertext transfer protocol 2.0 by applying for the domain name for the proxy node, for the client, no new protocol is established and realized, the change to the existing service code is small, then sending connection verification information to the proxy node according to a preset verification method, and feeding back the connection verification information by the proxy node in time after receiving the connection verification information so as to maintain the connection between the short software and the proxy node, for example, the heartbeat packet can be sent to the proxy node as the connection verification information in a timing sending mode.
In this embodiment, if the system completely uses the hypertext transfer protocol 2.0, the background needs to be modified from the front-end processor to the service machine in each layer, and the workload is large, so we can partially use the hypertext transfer protocol 2.0, that is, the hypertext transfer protocol 2.0 protocol is used from the end-software to the background agent, the agent is connected to the front-end processor in the company, and the communication between the front-end processor and the service machine still uses http1.x, that is, in this scheme, the connection can be performed only between the client and the agent by using the hypertext transfer protocol 2.0, so as to reduce the change of codes in the system and improve the efficiency of replacing the system.
In this embodiment, after the client software and the proxy node are connected for a long time, the connection will not be actively disconnected any more, so the communication channel quality of the client software can be obtained, the communication channel quality is compared with the preset threshold interval, when the communication channel quality is better, the time interval for sending the connection verification information to the proxy node can be prolonged, when the communication channel quality is worse, the time interval for sending the connection verification information to the proxy node is shortened, further, the time interval for sending the connection verification information to the proxy node can be obtained by calculating the communication channel quality, for example, the error rate is taken as the communication channel quality, the higher the error rate is, the shorter the error rate is, the longer the time interval is, the time interval is inversely proportional to the error rate, and the maximum value and the minimum value of the time interval are controlled to be fixed values, so as to avoid the problem that the time interval is too large or too small, by the method, whether the client software is normally connected with the proxy node can be quickly determined when the communication channel quality is poor, and resources can be prevented from being occupied by frequent connection verification when the communication channel quality is good.
In this embodiment, the client further includes: and a weak network detection unit.
In this embodiment, the weak network detection unit is configured to obtain a real-time network state of the client software; and comparing the real-time network state with a preset network state threshold value, and judging whether the real-time network state is in a weak network state.
In this embodiment, the connection control unit is specifically configured to connect the client software with the proxy node when the real-time network state is not in the weak network state.
In this embodiment, the connection control unit is specifically configured to connect the client software to the corresponding service node when the real-time network state is in the weak network state.
In addition, as with the hypertext transfer protocol, the hypertext transfer protocol 2.0 is also based on the TCP protocol, and the performance of the hypertext transfer protocol 2.0 is weaker than http1.x due to the problem of head-of-line blocking of the TCP protocol under the weak network condition, so a weak network detection module is needed, the front-end processor of the service end is still connected through the original network module under the weak network condition based on http1.x, and the front-end processor distributes the network request to the corresponding service machine through http1. x.
In this embodiment, the connection control unit is further configured to acquire a standby domain name of the proxy node, and cache a standby connection path between the proxy node and the client software based on the standby domain name.
In this embodiment, the connection control unit is further configured to, when the long connection between the proxy node and the client software is disconnected, re-connect the proxy node and the client software for a long time based on the backup connection path.
In this embodiment, after the main link between the proxy node and the client software is disconnected, the proxy node and the client software are quickly reconnected through the backup connection path, so that the situation that the service cannot be accessed again for a long time after disconnection is avoided.
As shown in fig. 5, an embodiment of the present invention provides a client software network optimization apparatus, which includes a processor 1110, a communication interface 1120, a memory 1130, and a communication bus 1140, where the processor 1110, the communication interface 1120, and the memory 1130 complete communication with each other through the communication bus 1140;
a memory 1130 for storing computer programs;
the processor 1110, when executing the program stored in the memory 1130, implements the following method for optimizing a client software network:
setting proxy nodes connected with each service node in a server;
and connecting the client software with the proxy node, and forwarding the network request of the client software to the corresponding service node through the proxy node.
In the electronic device provided in the embodiment of the present invention, the processor 1110 implements, by executing the program stored in the memory 1130, setting of the proxy node connected to each service node in the server, so that the client software is connected to the proxy node, and the proxy node forwards the network request of the client, which is natural, to the service node, thereby avoiding a situation that the network resource is occupied by the repeated network connection between the client and the server.
The communication bus 1140 mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 1140 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface 1120 is used for communication between the electronic device and other devices.
The memory 1130 may include a Random Access Memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory 1130 may also be at least one memory device located remotely from the processor 1110.
The processor 1110 may be a general-purpose processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the integrated circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components.
The embodiment of the present invention provides a computer-readable storage medium, where one or more programs are stored in the computer-readable storage medium, and the one or more programs are executable by one or more processors to implement the client software network optimization method in any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the invention are brought about in whole or in part when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk (ssd)), among others.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for optimizing a client software network, the method comprising:
establishing long connection between client software and an agent node in a server, wherein the agent node is connected with each service node in the server;
and forwarding the network request of the client software to the corresponding service node through the proxy node.
2. The optimization method of claim 1, wherein before the client software is connected to the proxy node and the network request of the client software is forwarded to the corresponding service node through the proxy node, the optimization method further comprises:
acquiring the real-time network state of the client software;
comparing the real-time network state with a preset network state threshold value, and judging whether the real-time network state is in a weak network state;
when the real-time network state is not in the weak network state, executing the step of long-term connection between the client software and the proxy node, and forwarding the network request of the client software to the corresponding service node through the proxy node;
and when the real-time network state is in a weak network state, connecting the client software with the corresponding service node.
3. The optimization method of claim 1, wherein after the long connecting the proxy node with the client software, the optimization method further comprises:
applying for a standby domain name for the proxy node;
caching a backup connection path between the proxy node and the client software based on the backup domain name;
and when the long connection between the proxy node and the client software is disconnected, re-connecting the proxy node and the client software for a long time based on the standby connection path.
4. The optimization method according to any one of claims 1 to 3, wherein the long-term connection between the client software and the proxy node specifically includes:
applying for a domain name for the proxy node;
connecting the client software and the proxy node through a hypertext transfer protocol 2.0 based on the domain name;
after the client software is connected with the agent node, sending connection verification information to the agent node according to a preset verification mode;
and after receiving the connection verification information, the proxy node sends corresponding feedback information to the client software.
5. A client software network optimization system, the optimization system comprising: a client and a server; the client comprises: client software and a connection control unit; the server side comprises: service nodes and proxy nodes connected with the service nodes;
the connection control unit is used for connecting the client software with the proxy node;
and the proxy node is used for forwarding the network request of the client software to the corresponding service node.
6. The optimization system of claim 5, wherein the client further comprises: a weak network detection unit;
the weak network detection unit is used for acquiring the real-time network state of the client software; comparing the real-time network state with a preset network state threshold value, and judging whether the real-time network state is in a weak network state;
the connection control unit is specifically configured to connect the client software with the proxy node when the real-time network state is not in the weak network state;
the connection control unit is specifically configured to connect the client software to the corresponding service node when the real-time network state is in the weak network state.
7. The optimization system of claim 5, wherein the connection control unit is further configured to obtain a backup domain name of the proxy node, and cache a backup connection path between the proxy node and the client software based on the backup domain name;
the connection control unit is further configured to, when the long connection between the proxy node and the client software is disconnected, re-connect the proxy node and the client software on the basis of the backup connection path.
8. The optimization system according to any one of claims 5 to 7, wherein the connection control unit is further configured to obtain a domain name applied by the proxy node; connecting the client software and the proxy node through a hypertext transfer protocol 2.0 based on the domain name;
the client software is also used for sending connection verification information to the proxy node according to a preset verification mode after being connected with the proxy node;
and the agent node is also used for sending corresponding feedback information to the client software after receiving the connection verification information.
9. The client software network optimization device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the client software network optimization method according to any one of claims 1 to 4 when executing the program stored in the memory.
10. A computer-readable storage medium storing one or more programs executable by one or more processors to perform the client software network optimization method of any one of claims 1-4.
CN202010394480.XA 2020-05-11 2020-05-11 Client software network optimization method, system, device and storage medium Pending CN111786809A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010394480.XA CN111786809A (en) 2020-05-11 2020-05-11 Client software network optimization method, system, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010394480.XA CN111786809A (en) 2020-05-11 2020-05-11 Client software network optimization method, system, device and storage medium

Publications (1)

Publication Number Publication Date
CN111786809A true CN111786809A (en) 2020-10-16

Family

ID=72753541

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010394480.XA Pending CN111786809A (en) 2020-05-11 2020-05-11 Client software network optimization method, system, device and storage medium

Country Status (1)

Country Link
CN (1) CN111786809A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112954069A (en) * 2021-03-15 2021-06-11 观脉科技(北京)有限公司 Method, device and system for accessing mobile equipment to SD-WAN (secure digital-Wide area network)
CN115333927A (en) * 2022-07-29 2022-11-11 上海浦东发展银行股份有限公司 Client domain name switching method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7562147B1 (en) * 2000-10-02 2009-07-14 Microsoft Corporation Bi-directional HTTP-based reliable messaging protocol and system utilizing same
CN106850502A (en) * 2015-12-04 2017-06-13 阿里巴巴集团控股有限公司 Service request retransmission method, storage method, apparatus and system based on connection long
CN106911732A (en) * 2015-12-22 2017-06-30 阿里巴巴集团控股有限公司 A kind of website visiting accelerating method and device
CN107508781A (en) * 2016-06-14 2017-12-22 贵阳朗玛信息技术股份有限公司 Exchange method, system and server architecture based on Web proxy server
CN110413676A (en) * 2019-07-25 2019-11-05 中国工商银行股份有限公司 The access method and its device of database, electronic equipment and medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7562147B1 (en) * 2000-10-02 2009-07-14 Microsoft Corporation Bi-directional HTTP-based reliable messaging protocol and system utilizing same
CN106850502A (en) * 2015-12-04 2017-06-13 阿里巴巴集团控股有限公司 Service request retransmission method, storage method, apparatus and system based on connection long
CN106911732A (en) * 2015-12-22 2017-06-30 阿里巴巴集团控股有限公司 A kind of website visiting accelerating method and device
CN107508781A (en) * 2016-06-14 2017-12-22 贵阳朗玛信息技术股份有限公司 Exchange method, system and server architecture based on Web proxy server
CN110413676A (en) * 2019-07-25 2019-11-05 中国工商银行股份有限公司 The access method and its device of database, electronic equipment and medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112954069A (en) * 2021-03-15 2021-06-11 观脉科技(北京)有限公司 Method, device and system for accessing mobile equipment to SD-WAN (secure digital-Wide area network)
CN115333927A (en) * 2022-07-29 2022-11-11 上海浦东发展银行股份有限公司 Client domain name switching method and device, electronic equipment and storage medium
CN115333927B (en) * 2022-07-29 2023-10-27 上海浦东发展银行股份有限公司 Client domain name switching method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US11522734B2 (en) Method for controlling a remote service access path and relevant device
CN102667723B (en) Equalization server load is carried out according to the availability of physical resource
US10270884B2 (en) Control method, network system and control platform for mobile-edge computing
US10405274B2 (en) Coordinated techniques to improve application, network and device resource utilization of a data stream
US10938935B1 (en) Reduction in redirect navigation latency via speculative preconnection
RU2498520C2 (en) Method of providing peer-to-peer communication on web page
US9426767B2 (en) Method, gateway, proxy and system for implementing mobile internet services
US9730037B2 (en) Cellular data communication for mobile devices
US20210352041A1 (en) Domain-name acquisition method, website access method, and server
JP2010519799A (en) Wireless connection handover
US11206706B2 (en) Method and apparatus for web browsing on multihomed mobile devices
CN110430238A (en) Long connection management method, apparatus, equipment and computer readable storage medium
CN111786809A (en) Client software network optimization method, system, device and storage medium
US9794320B2 (en) Method and apparatus for providing web service in wireless communication system
US10136375B2 (en) Method for service data management, apparatus, and system
US11528345B2 (en) Data transmission method and system, and apparatus
CN110661673A (en) Heartbeat detection method and device
US10608889B2 (en) High-level interface to analytics engine
CN112165449B (en) Control method of real-time authority of web application, electronic device and storage medium
WO2017185632A1 (en) Data transmission method and electronic device
CN103841085A (en) Method and device for implementation of web real-time communication
CN109039928A (en) Transmission method, device and the Wireless Fidelity router of data
CN114268631A (en) Low-delay network system, communication connection method thereof and readable storage medium
WO2021135114A1 (en) Cluster environment-based telephone session management method, apparatus, and computer device
US20240073150A1 (en) Apparatus and method for network function signaling latency reduction

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20201016

RJ01 Rejection of invention patent application after publication