CN108574733A - Network agent method and device, storage medium and electronic equipment - Google Patents
Network agent method and device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN108574733A CN108574733A CN201810247918.4A CN201810247918A CN108574733A CN 108574733 A CN108574733 A CN 108574733A CN 201810247918 A CN201810247918 A CN 201810247918A CN 108574733 A CN108574733 A CN 108574733A
- Authority
- CN
- China
- Prior art keywords
- network
- proxy
- information
- proxy service
- service
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 47
- 238000012360 testing method Methods 0.000 claims description 18
- 230000005540 biological transmission Effects 0.000 claims description 8
- 238000004891 communication Methods 0.000 claims description 8
- 238000004590 computer program Methods 0.000 claims description 4
- 230000000977 initiatory effect Effects 0.000 claims description 3
- 238000005516 engineering process Methods 0.000 abstract description 2
- 239000003795 chemical substances by application Substances 0.000 description 35
- 238000010586 diagram Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 6
- 230000001960 triggered effect Effects 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000004069 differentiation Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/16—Threshold monitoring
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
- H04L65/1073—Registration or de-registration
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Multimedia (AREA)
- Environmental & Geological Engineering (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Embodiments of the present invention are related to field of computer technology, more specifically, embodiments of the present invention are related to network agent method and device, storage medium and electronic equipment.The network agent method may include:The status information of current network is obtained, and current network quality is determined according to the status information, if current network quality meets preset condition, triggers startup external network proxy services.The present invention can effectively and rapidly provide the agency service for more meeting its demand, better user experience to the user.
Description
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a network proxy method and device, a storage medium and an electronic device.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims and the description herein is not admitted to be prior art by inclusion in this section.
With the development of mobile networks, more and more users use various applications to obtain various network services through the mobile networks. When a user uses an application program to obtain network service, the network quality of the user is different due to different scenes, for example, when the user uses the application program in a scene with stronger network signal coverage, the used network is usually high network quality with high network stability; when a user uses an application program in environments with poor network quality such as subways, buses, elevators, garages and the like, the used network is often poor in network quality with poor stability.
To maximize network utilization, the use of network proxy services is the primary means to achieve these goals.
Currently, in the existing methods for network proxy service, a network proxy service request is usually sent out when human detects that there is a network proxy service demand, and proxy service information that can provide proxy service is collected to select a network proxy service.
Disclosure of Invention
However, in some technologies, on one hand, it is necessary to manually determine whether the current network quality can meet the user requirements, and at this time, the user may have used a network that cannot meet the requirements for a long time, and the time for manually determining the network quality is increased, so that the user experience is poor, and the loss of the user is easily caused; on the other hand, when the current network quality is determined to be incapable of meeting the user requirements, available proxy services need to be temporarily collected and matched and screened, so that the time period for providing the proxy services is long and untimely; on the other hand, since the time for collecting the agent service information that can provide the agent service is limited, a better matching degree of the agent service with the user's needs cannot be ensured.
In this context, embodiments of the present invention are intended to provide a network proxy method and apparatus, a storage medium, and an electronic device.
According to an aspect of the present invention, there is provided a network proxy method, including:
acquiring state information of a current network, and determining the quality of the current network according to the state information;
and triggering and starting the network agent service if the current network quality meets the preset condition.
In an exemplary embodiment of the disclosure, after triggering the start of the network proxy service, the method further includes:
and uploading the agent identification information of the network agent service and the state information of the current network as agent service information to an agent server so as to register the agent service information.
In an exemplary embodiment of the present disclosure, the method further comprises:
receiving a network access request, and acquiring request information of the network access request;
and forwarding the network access request to a target server according to the request information.
In an exemplary embodiment of the present disclosure, the method further comprises:
if the preset condition is that the current network is weak in network quality, when a network access request from a test client is received, acquiring request information of the network access request;
and forwarding the network access request to a target server according to the request information.
In an exemplary embodiment of the present disclosure, the method further comprises:
if the preset condition is that the current network has strong network quality, acquiring request information of a network access request when the network access request from a user client is received;
and forwarding the network access request to a target server according to the request information.
In an exemplary embodiment of the present disclosure, when the current network is of weak network quality, the method further comprises:
acquiring registered proxy service information;
selecting appointed proxy service according to the proxy service information;
and performing network communication through the specified proxy service.
In an exemplary embodiment of the present disclosure, acquiring registered proxy service information includes:
sending a request for acquiring a proxy service list to a proxy server;
and receiving the proxy service list replied by the proxy server, and acquiring the registered proxy service information in the proxy service list.
In an exemplary embodiment of the present disclosure, selecting a specific proxy service according to the proxy service information includes:
selecting the proxy service with the highest network transmission speed from the registered proxy service information as an appointed proxy service; or,
and selecting the proxy service with the highest matching degree with the state information of the current network from the registered proxy service information as the specified proxy service.
In an exemplary embodiment of the present disclosure, the status information includes at least one of a bandwidth, a packet sending delay time, a packet loss rate, a packet error rate, and a disorder rate.
According to an aspect of the present invention, there is provided a network proxy apparatus including:
the information acquisition module is used for acquiring the state information of the current network and determining the quality of the current network according to the state information;
and the proxy starting module is used for triggering and starting the network proxy service when the current network quality is determined to meet the preset condition.
According to an aspect of the present invention, there is provided an electronic apparatus including:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform any of the network proxy methods described above via execution of the executable instructions.
According to an aspect of the present invention, there is provided a storage medium having stored thereon a computer program which, when executed by a processor, implements the network proxy method described above.
According to the network agent scheme provided by the embodiment of the invention, the state information of the current network is obtained, the current network quality is determined according to the state information, and if the current network quality meets the preset condition, the network agent service is triggered and started, so that the network agent service can be effectively and quickly provided for other users, and the experience is improved.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present invention will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
FIG. 1 schematically illustrates a flow diagram of a network proxy method according to an embodiment of the present invention;
FIG. 2 schematically illustrates a flow diagram of a network proxy method according to an embodiment of the present invention;
FIG. 3 schematically illustrates an application scenario diagram according to an embodiment of the present invention;
FIG. 4 schematically illustrates a block diagram of a network proxy device according to an embodiment of the present invention;
FIG. 5 shows a schematic diagram of a storage medium according to an embodiment of the invention; and
fig. 6 schematically shows a block diagram of an electronic device according to an embodiment of the invention.
In the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
Detailed Description
The principles and spirit of the present invention will be described with reference to a number of exemplary embodiments. It is understood that these embodiments are given solely for the purpose of enabling those skilled in the art to better understand and to practice the invention, and are not intended to limit the scope of the invention in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
As will be appreciated by one skilled in the art, embodiments of the present invention may be embodied as a system, apparatus, device, method, or computer program product. Thus, the present invention may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
According to an embodiment of the invention, a network proxy method and device, a storage medium and an electronic device are provided.
In this document, any number of elements in the drawings is by way of example and not by way of limitation, and any nomenclature is used solely for differentiation and not by way of limitation.
The principles and spirit of the present invention are explained in detail below with reference to several representative embodiments of the invention.
Summary of The Invention
The inventor finds that in the prior art, whether the current network quality can meet the user requirements needs to be artificially judged, and at this time, a user may use a network which cannot meet the requirements for a long time, and the time for artificially judging the network quality is increased, so that the user experience is poor, and the loss of the user is easily caused; in addition, when the current network quality is determined not to meet the user requirements, available proxy services need to be temporarily collected and matched and screened, so that the time period for providing the proxy services is long and untimely; in addition, since the time for collecting the proxy service information that can provide the proxy service is limited, it is not possible to ensure a better matching degree between the proxy service and the user's needs.
In view of the above, the basic idea of the present invention is: according to the network agent method and device provided by the embodiment of the invention, the state information of the current network is obtained, the current network quality is determined according to the state information, and if the current network quality meets the preset condition, the network agent service is triggered and started, so that the network agent service can be effectively and quickly provided for other users, and the user experience is improved.
Having described the general principles of the invention, various non-limiting embodiments of the invention are described in detail below.
Exemplary method
A network proxy method according to an exemplary embodiment of the present invention is described below in conjunction with fig. 1.
Referring to fig. 1, the network proxy method may include the steps of:
s1, acquiring the state information of the current network, and determining the quality of the current network according to the state information;
and S2, if the current network quality meets the preset condition, triggering and starting the network agent service.
According to the network agent method provided by the embodiment of the invention, the state information of the current network is obtained, the current network quality is determined according to the state information, and if the current network quality meets the preset condition, the network agent service is triggered and started, so that the network agent service can be effectively and quickly provided for other users, and the user experience is improved.
In step S1, status information of the current network is acquired, and the current network quality is determined according to the status information.
In an exemplary embodiment of the present invention, status information of a current network may be obtained through a communication test, for example, an application program of an electronic device is opened, and status information of the network during a server connection with the application program is detected, where the status information may include information such as bandwidth, packet sending delay time, packet loss rate, packet error rate, and out-of-order rate. In the exemplary embodiment of the present invention, the condition may be preset for the status information, for example, the preset condition may be set to be that the bandwidth is greater than or equal to 10MB, the packet sending delay time is less than or equal to 200ms, the packet loss rate is less than or equal to 1%, the packet error rate is less than or equal to 1%, and the out-of-order rate is less than or equal to 1%, and when the preset condition is satisfied, the current network quality may be determined to be the strong network quality; the preset conditions can also be set to be that the bandwidth is less than 10MB, the packet sending delay time is more than 200ms, the packet loss rate is more than 1%, the packet error rate is more than 1%, and the disorder rate is more than 1%, and when the preset conditions are met, the current network quality is determined to be weak network quality.
After the state information of the network in the process of connecting with the server is detected, the acquired state information can be matched with preset conditions so as to determine the current network quality.
In step S2, if the current network quality meets the preset condition, the network proxy service is triggered to be started.
In an exemplary embodiment of the present invention, in order to provide a corresponding proxy service for a client that needs to perform a network proxy service, after determining that a current network quality meets a preset condition and triggering the network proxy service to be started, a step of uploading proxy identification information of the network proxy service and state information of the current network as proxy service information to a proxy server may be further included, so as to perform registration of the proxy service information. The proxy identification information includes a unique identification for characterizing the network proxy service.
By registering the proxy service information of the started network proxy service with the proxy server, the proxy server can store the proxy service information of each started network proxy service into a proxy service list, and according to the specific requirements of other users, provide corresponding proxy services for clients needing the network proxy service better, for example: on one hand, a real weak network test environment can be provided for a test user, and on the other hand, an agent service in a strong network quality environment can be selected for the user in the weak network environment so as to provide a high-quality network service.
Referring to fig. 2, if it is determined that the current network is of weak network quality, in one embodiment of the present invention, after initiating the network proxy service, the method further includes:
step S3, obtaining registered proxy service information;
since the proxy server stores proxy service information of each initiated network proxy service, when the proxy service is needed, the step of acquiring the registered proxy service information may include: sending a request for acquiring a proxy service list to a proxy server, wherein the proxy service list comprises all registered proxy service information (the proxy service information of each started proxy service), and acquiring the registered proxy service information in the proxy service list after receiving the proxy service list replied by the proxy server.
Step S4, selecting appointed proxy service according to the proxy service information;
in this step, a corresponding proxy service may be selected from the registered proxy service information as an assigned proxy service according to a requirement of the client for the proxy service, and a condition for selecting the assigned proxy service may include:
selecting the proxy service with the highest network transmission speed from the registered proxy service information as an appointed proxy service; or,
and selecting the proxy service with the highest matching degree with the state information of the current network from the registered proxy service information as the specified proxy service.
And step S5, performing network communication through the specified proxy service.
According to the embodiment, by connecting the network service through the proxy, a better access experience can be obtained under the condition that the current network is determined to be weak in network quality.
In an exemplary embodiment of the present invention, if the preset condition that the current network quality satisfies is that the current network is weak network quality, after receiving a network access request from a test client, obtaining request information of the network access request; and forwarding the network access request to a target server according to the request information. For example:
when a tester needs to test the weak network environment, the tester can access the proxy server through the test client, and send a request for acquiring a proxy service list to the proxy server so as to acquire the proxy service list stored by the proxy server; after the test client receives the proxy service list, all registered proxy service information can be obtained; the method comprises the following steps that a tester selects an agent service with the highest matching degree with a required weak network test environment from an agent service list as an appointed agent service according to agent service information, sets the agent information of the appointed agent service at a test client, and sends a network access request to an appointed agent server; when receiving a network access request from a test client, an appointed proxy server acquires request information of the network access request; the request information comprises a destination address of a target server to be accessed, and the appointed proxy server can forward the network access request to the target server according to the destination address in the request information, so that the test is completed through a real weak network environment of a user.
In another exemplary embodiment of the present invention, if the preset condition that the current network quality is satisfied is that the current network is of strong network quality, when a network access request from a user client is received, request information of the network access request may be obtained, and the network access request may be forwarded to a target server according to the request information. For example:
in order to enable other users to have high-quality network services, when a user client is in a strong network environment, proxy services can be provided for users in a weak network environment. For example, when a user client in a weak network environment needs proxy service, after registered proxy service information stored by a proxy server is acquired, a proxy service with the fastest network transmission speed or the best network quality is selected from the registered proxy service information as an appointed proxy service, and proxy information of the appointed proxy service is set at the user client, wherein the appointed proxy service is usually the proxy service started by the user client in a strong network environment; when receiving a network access request, an appointed proxy service acquires request information of the network access request; the request information comprises a destination address of a target server to be accessed, and the appointed proxy server can forward the network access request to the target server according to the destination address in the request information, so that a user in a weak network environment can obtain high-quality and rapid network service through proxy service in a strong network environment.
The invention is further illustrated below with reference to a schematic diagram of an application scenario in an exemplary embodiment shown in fig. 3.
Fig. 3 includes a client 301, a client 302, a client 303, a client 304, a Proxy server 305, and a target server 306, where the client 301, the client 302, the client 303, and the client 304 respectively correspond to Proxy identifiers of Proxy services started up, which are Proxy1, Proxy2, Proxy3, and Proxy4, and after each client that has started up a Proxy service registers and uploads Proxy service information to a Proxy server, a Proxy service list stored by the Proxy server is shown in table 1:
TABLE 1
Table 1 shows a proxy service list, which is only used as an example for further understanding of the present invention and is not used to limit the specific contents of the proxy service list in the present invention.
The conditions for presetting strong network quality are as follows: the bandwidth is more than or equal to 10MB, the packet sending delay time is less than or equal to 200ms, the packet loss rate is less than or equal to 1 percent, the packet error rate is less than or equal to 1 percent, and the disorder rate is less than or equal to 1 percent; the conditions for presetting the weak network quality are as follows: the bandwidth is less than 10MB, the packet sending delay time is more than 200ms, the packet loss rate is more than 1%, the packet error rate is more than 1%, and the disorder rate is more than 1%.
The client 301 opens the application "dictionary with tracks", determines that a preset condition that the current network has strong network quality is satisfied according to the state information of the current network, and then sends a network access request to a server (target server 306) of the application "dictionary with tracks" to perform network communication, and sends proxy service information having state information and proxy identification information to the proxy server to perform registration.
The client 302 opens the application program "dictionary available", and after determining that the preset condition that the current network is weak network quality is satisfied according to the state information of the current network, may send a request for obtaining a proxy service list to the proxy server 305, so as to obtain a proxy service list (table 1) stored by the proxy server 305; after the client 302 receives the proxy service list (table 1), a proxy service with the fastest network transmission speed or the best network quality can be selected from table 1 as an assigned proxy service according to the proxy service information; as can be seen from table 1, the network transmission speed of Proxy3 is fastest, then Proxy3 can be selected as the designated Proxy service, and the network access request sent to the server (target server 306) of the "dictionary with tracks" is sent to Proxy 3; after receiving the network access request, the Proxy3 may know that the actual purpose of the network access request is the target server 306 according to the request information of the network access request; then the network access request is sent by Proxy3 to target server 306 to complete the network communication between user client 302 and target server 306.
In this exemplary embodiment, after determining that the current networks of the client 302 and the client 304 satisfy the preset condition of the weak network quality through network state detection, the client 302 and the client 304 respectively upload the Proxy identification information Proxy2, Proxy4 of the network Proxy service corresponding to the client 302 and the client 304 as Proxy service information to the Proxy server 305, and the Proxy server 305 stores the Proxy2, the Proxy4 and the state information corresponding to the network into a Proxy service list (table 1) in a distributed manner, so as to register the Proxy service information of the client 302(Proxy2) and the client 304(Proxy 4).
When a test of the weak network environment needs to be performed, a request for obtaining a proxy service list may be sent to the proxy server 305, so as to obtain a proxy service list (table 1) stored by the proxy server 305; after receiving the proxy service list (table 1), selecting the proxy service with the highest matching degree with the required weak network test environment from the table 1 as the designated proxy service according to the proxy service information; if it is determined from table 1 that the matching degree of the status information of the Proxy4 and the required weak network test environment is the highest, the Proxy4 may be selected as the designated Proxy service, and network communication is performed with the server (target server 306) of the "dictionary" through the Proxy4 to perform network test.
In summary, a manner of triggering and starting network proxy service according to current network quality is provided; in addition, once the current network quality is detected to meet the preset condition, the network proxy service is triggered to be started, so that the network proxy service can be effectively and quickly provided for other users, and the user experience is improved.
Moreover, while the operations of the method of the invention are depicted in the drawings in a particular order, this does not require or imply that the operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
Exemplary devices
Having introduced a network proxy method according to an exemplary embodiment of the present invention, a network proxy apparatus according to an exemplary embodiment of the present invention will be described with reference to fig. 4.
Referring to fig. 4, a network proxy apparatus 400 according to an exemplary embodiment of the present invention may include: an information acquisition module 410 and an agent initiation module 420, wherein:
an information obtaining module 410, configured to obtain state information of a current network, and determine a current network quality according to the state information;
and the agent starting module 420 is configured to trigger starting of the network agent service when it is determined that the current network quality meets a preset condition.
According to an exemplary embodiment of the invention, the apparatus further comprises:
and the information registration module is used for uploading the agent identification information of the network agent service and the state information of the current network as agent service information to an agent server so as to register the agent service information.
According to an exemplary embodiment of the invention, the apparatus further comprises:
the first information acquisition module is used for receiving a network access request and acquiring request information of the network access request;
and the first information sending module is used for forwarding the network access request to a target server according to the request information.
According to an exemplary embodiment of the invention, the apparatus further comprises:
the second information acquisition module is used for acquiring request information of the network access request after receiving the network access request from the test client under the preset condition that the current network is in weak network quality;
and the second information sending module is used for forwarding the network access request to a target server according to the request information.
According to an exemplary embodiment of the invention, the apparatus further comprises:
the third information acquisition module is used for acquiring request information of the network access request after receiving the network access request from the user client under the preset condition that the current network has strong network quality;
and the third information sending module is used for forwarding the network access request to a target server according to the request information.
According to an exemplary embodiment of the invention, the apparatus further comprises:
the fourth information acquisition module is used for acquiring registered proxy service information when the current network has weak network quality;
and the proxy service selection module is used for selecting the appointed proxy service according to the proxy service information and carrying out network communication through the appointed proxy service.
According to an exemplary embodiment of the present invention, the fourth information obtaining module further includes:
a request sending unit, configured to send a request for obtaining a proxy service list to a proxy server;
and the information acquisition unit is used for receiving the proxy service list replied by the proxy server and acquiring the registered proxy service information in the proxy service list.
According to an exemplary embodiment of the invention, the proxy service selection module is configured to:
selecting the proxy service with the highest network transmission speed from the registered proxy service information as an appointed proxy service; or,
and selecting the proxy service with the highest matching degree with the state information of the current network from the registered proxy service information as the specified proxy service.
According to an exemplary embodiment of the present invention, the status information includes at least one of a bandwidth, a packet sending delay time, a packet loss rate, a packet error rate, and a disorder rate.
Since each functional module of the network proxy apparatus according to the embodiment of the present invention is the same as that of the network proxy method according to the embodiment of the present invention, it is not described herein again.
It should be noted that although in the above detailed description several modules or sub-modules of the network proxy apparatus are mentioned, such a division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the units/modules described above may be embodied in one unit/module according to embodiments of the invention. Conversely, the features and functions of one unit/module described above may be further divided into embodiments by a plurality of units/modules.
Exemplary storage Medium
Having described the network proxy method and apparatus according to exemplary embodiments of the present invention, a storage medium according to an exemplary embodiment of the present invention will be described with reference to fig. 5.
Referring to fig. 5, a program product 500 for implementing the above method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Exemplary electronic device
Having described the storage medium of an exemplary embodiment of the present invention, next, an electronic device of an exemplary embodiment of the present invention will be described with reference to fig. 6.
The electronic device 600 shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 6, the electronic device 600 is embodied in the form of a general purpose computing device. The components of the electronic device 600 may include, but are not limited to: the at least one processing unit 610, the at least one memory unit 620, a bus 630 connecting different system components (including the memory unit 620 and the processing unit 610), and a display unit 640.
Wherein the storage unit stores program code that is executable by the processing unit 610 to cause the processing unit 610 to perform steps according to various exemplary embodiments of the present invention as described in the above section "exemplary methods" of the present specification. For example, the processing unit 610 may perform steps S1 through S2 as shown in fig. 1.
The storage unit 620 may include volatile storage units, such as a random access memory unit (RAM)6201 and/or a cache memory unit 6202, and may further include a read-only memory unit (ROM) 6203.
The memory unit 620 may also include a program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The bus 630 may include a data bus, an address bus, and a control bus.
The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), which may be through an input/output (I/O) interface 650. The electronic device 600 further comprises a display unit 640 connected to the input/output (I/O) interface 650 for displaying. Also, the electronic device 600 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 660. As shown, the network adapter 660 communicates with the other modules of the electronic device 600 over the bus 630. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
While the spirit and principles of the invention have been described with reference to several particular embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, nor is the division of aspects, which is for convenience only as the features in such aspects may not be combined to benefit. The invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.
Claims (12)
1. A network proxy method, the method comprising:
acquiring state information of a current network, and determining the quality of the current network according to the state information;
and triggering and starting the network agent service if the current network quality meets the preset condition.
2. The method of claim 1, wherein after triggering initiation of the network proxy service, the method further comprises:
and uploading the agent identification information of the network agent service and the state information of the current network as agent service information to an agent server so as to register the agent service information.
3. The method of claim 2, further comprising:
receiving a network access request, and acquiring request information of the network access request;
and forwarding the network access request to a target server according to the request information.
4. The method of claim 1, further comprising:
if the preset condition is that the current network is weak in network quality, when a network access request from a test client is received, acquiring request information of the network access request;
and forwarding the network access request to a target server according to the request information.
5. The method of claim 1, further comprising:
if the preset condition is that the current network has strong network quality, acquiring request information of a network access request when the network access request from a user client is received;
and forwarding the network access request to a target server according to the request information.
6. The method of claim 1, wherein when the current network is of weak network quality, the method further comprises:
acquiring registered proxy service information;
selecting appointed proxy service according to the proxy service information;
and performing network communication through the specified proxy service.
7. The method of claim 6, wherein obtaining registered proxy service information comprises:
sending a request for acquiring a proxy service list to a proxy server;
and receiving the proxy service list replied by the proxy server, and acquiring the registered proxy service information in the proxy service list.
8. The method of claim 6, wherein selecting the specified proxy service according to the proxy service information comprises:
selecting the proxy service with the highest network transmission speed from the registered proxy service information as an appointed proxy service; or,
and selecting the proxy service with the highest matching degree with the state information of the current network from the registered proxy service information as the specified proxy service.
9. The method according to claim 1 or 2, wherein the status information comprises at least one of bandwidth, packet transmission delay time, packet loss rate, packet error rate, and out-of-order rate.
10. A network proxy apparatus, comprising:
the information acquisition module is used for acquiring the state information of the current network and determining the quality of the current network according to the state information;
and the proxy starting module is used for triggering and starting the network proxy service when the current network quality is determined to meet the preset condition.
11. A storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the network proxy method of any of claims 1-9.
12. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the network proxy method of any of claims 1-9 via execution of the executable instructions.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810247918.4A CN108574733B (en) | 2018-03-23 | 2018-03-23 | Network proxy method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810247918.4A CN108574733B (en) | 2018-03-23 | 2018-03-23 | Network proxy method and device, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108574733A true CN108574733A (en) | 2018-09-25 |
CN108574733B CN108574733B (en) | 2022-01-28 |
Family
ID=63574059
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810247918.4A Active CN108574733B (en) | 2018-03-23 | 2018-03-23 | Network proxy method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108574733B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110022375A (en) * | 2019-04-19 | 2019-07-16 | 宜人恒业科技发展(北京)有限公司 | The distribution method and device of agent node |
CN110460732A (en) * | 2019-09-24 | 2019-11-15 | 腾讯科技(深圳)有限公司 | Network quality monitoring method, device and the communication server |
CN113852689A (en) * | 2021-09-24 | 2021-12-28 | 北京百度网讯科技有限公司 | Traffic processing method and device, electronic equipment and computer readable storage medium |
CN116055555A (en) * | 2023-01-28 | 2023-05-02 | 深圳市明源云科技有限公司 | Proxy server setting method, proxy server setting device, electronic equipment and readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103138894A (en) * | 2013-03-25 | 2013-06-05 | 天脉聚源(北京)传媒科技有限公司 | Method and nodes and data network of data transmission |
CN105228213A (en) * | 2015-09-30 | 2016-01-06 | 青岛海信移动通信技术股份有限公司 | A kind of mobile device carries out the method and apparatus of relaying |
CN106899681A (en) * | 2017-03-10 | 2017-06-27 | 腾讯科技(深圳)有限公司 | The method and server of a kind of information pushing |
CN106941527A (en) * | 2017-03-15 | 2017-07-11 | 网宿科技股份有限公司 | Shifting method and its system in a kind of data transfer |
CN107682260A (en) * | 2017-10-23 | 2018-02-09 | 深圳智多豚物联技术有限公司 | A kind of fast and reliable network communication method of multipath |
-
2018
- 2018-03-23 CN CN201810247918.4A patent/CN108574733B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103138894A (en) * | 2013-03-25 | 2013-06-05 | 天脉聚源(北京)传媒科技有限公司 | Method and nodes and data network of data transmission |
CN105228213A (en) * | 2015-09-30 | 2016-01-06 | 青岛海信移动通信技术股份有限公司 | A kind of mobile device carries out the method and apparatus of relaying |
CN106899681A (en) * | 2017-03-10 | 2017-06-27 | 腾讯科技(深圳)有限公司 | The method and server of a kind of information pushing |
CN106941527A (en) * | 2017-03-15 | 2017-07-11 | 网宿科技股份有限公司 | Shifting method and its system in a kind of data transfer |
CN107682260A (en) * | 2017-10-23 | 2018-02-09 | 深圳智多豚物联技术有限公司 | A kind of fast and reliable network communication method of multipath |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110022375A (en) * | 2019-04-19 | 2019-07-16 | 宜人恒业科技发展(北京)有限公司 | The distribution method and device of agent node |
CN110460732A (en) * | 2019-09-24 | 2019-11-15 | 腾讯科技(深圳)有限公司 | Network quality monitoring method, device and the communication server |
CN113852689A (en) * | 2021-09-24 | 2021-12-28 | 北京百度网讯科技有限公司 | Traffic processing method and device, electronic equipment and computer readable storage medium |
CN116055555A (en) * | 2023-01-28 | 2023-05-02 | 深圳市明源云科技有限公司 | Proxy server setting method, proxy server setting device, electronic equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108574733B (en) | 2022-01-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108574733B (en) | Network proxy method and device, storage medium and electronic equipment | |
US20170235618A1 (en) | Dynamic copy content retrieval | |
US9858797B2 (en) | Tracking information technology (IT) assets | |
CN110580244A (en) | file processing method and device, server and storage medium | |
CN109672722B (en) | Data deployment method and device, computer storage medium and electronic equipment | |
CN109669787B (en) | Data transmission method and device, storage medium and electronic equipment | |
CN111818145B (en) | File transmission method, device, system, equipment and storage medium | |
WO2023065749A1 (en) | Distributed database embedding method and apparatus, and device and storage medium | |
CN108093036B (en) | Method and device for acquiring resources | |
CN106790171B (en) | Session control method, device, computer readable storage medium and equipment | |
CN110677307B (en) | Service monitoring method, device, equipment and storage medium | |
CN109495549A (en) | Method, equipment and the computer storage medium of work are drawn in a kind of application | |
CN113448730B (en) | Service processing method, device, computer equipment and storage medium | |
CN109286684B (en) | Communication connection processing method and device, proxy server and storage medium | |
CN107817962A (en) | A kind of long-range control method, device, control server and storage medium | |
CN112968927B (en) | Log extraction method, log extraction device, storage medium and electronic equipment | |
CN111800518B (en) | Client IP address insertion method and device | |
CN116346649A (en) | Virtual service packet grabbing method and device of load balancing equipment | |
CN108683586B (en) | Data processing method, device, medium and computing equipment in instant communication system | |
CN113923056B (en) | Matching authentication method and device for multi-network segment network disk, network disk and storage medium | |
US11277274B2 (en) | Device ranking for secure collaboration | |
CN114499984A (en) | Identity authentication method, device, equipment and medium based on AI and RPA | |
US10904301B2 (en) | Conference system and method for handling conference connection thereof | |
CN114125732A (en) | Message processing method and device, storage medium and electronic equipment | |
US9207925B2 (en) | Platform specific payload management |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |