CN113542076B - Link detection method, link detection device, computer equipment and storage medium - Google Patents

Link detection method, link detection device, computer equipment and storage medium Download PDF

Info

Publication number
CN113542076B
CN113542076B CN202111027854.5A CN202111027854A CN113542076B CN 113542076 B CN113542076 B CN 113542076B CN 202111027854 A CN202111027854 A CN 202111027854A CN 113542076 B CN113542076 B CN 113542076B
Authority
CN
China
Prior art keywords
link
client
detection
server
information
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.)
Active
Application number
CN202111027854.5A
Other languages
Chinese (zh)
Other versions
CN113542076A (en
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.)
Shenzhen Jiujiu Interactive Technology Co ltd
Original Assignee
Shenzhen Jiujiu Interactive 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 Shenzhen Jiujiu Interactive Technology Co ltd filed Critical Shenzhen Jiujiu Interactive Technology Co ltd
Publication of CN113542076A publication Critical patent/CN113542076A/en
Application granted granted Critical
Publication of CN113542076B publication Critical patent/CN113542076B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application relates to a link detection method, a link detection device, a computer device and a storage medium. A client receives a link detection task sent by a policy server; initiating a link detection request to a corresponding dial-up test point server according to the link detection task to obtain a detection result; acquiring client information, and sending the client information and a detection result to the policy server; the strategy server receives the detection result and the client information; analyzing according to the detection result and the client information to obtain a link policy table, wherein the link policy table records dial-up test point server information which can be connected with the client; then the strategy server sends the link strategy table to the client; and finally, the client receives the link policy table sent by the policy server, and selects a network protocol with good effect and a better access point for connection according to the link policy table, so that the service response time can be improved, a large amount of funds are not required to be invested, and the cost is reduced.

Description

Link detection method, link detection device, computer equipment and storage medium
The present application claims priority of chinese patent application entitled "link probing method, apparatus, computer device and storage medium" filed by the chinese patent office on 11/02/2020/2020112021714, which is incorporated herein by reference in its entirety.
Technical Field
The present application relates to the field of game technologies, and in particular, to a link detection method and apparatus, a computer device, and a storage medium.
Background
With the development of computer technology and internet technology, people can engage in various activities or enjoy various services such as network games through the network, and the number of game users is rapidly increasing, thereby putting a certain pressure on the server. The related network game deployment mode is deployed in a client/server mode, and the common deployment modes include zone service and global service.
The game server is deployed in a machine room close to game users in a service-dividing mode, the communication distance between the game client and the game server is short, the network delay is small, and the clients in different areas cannot be in communication connection and interaction; the global uniform is that the game servers are deployed in a unified machine room, all game clients are connected with the same game server, and all clients can directly communicate and interact with each other, but the network with the deployed mode is unstable.
At present, when global uniform is implemented, the mode of improving the performance of a circuit between a game client and a game server is mostly adopted, but the service response time is still long.
Disclosure of Invention
In view of the above, it is desirable to provide a link probing method, apparatus, computer device and storage medium capable of improving service response time.
A link detection method is applied to a client, and comprises the following steps:
receiving a link detection task sent by a policy server;
initiating a link detection request to a corresponding dial-up test point server according to the link detection task to obtain a detection result;
acquiring client information, and sending the client information and a detection result to the policy server;
receiving a link policy table sent by the policy server, and selecting a dial testing point server with optimal network performance data in the link policy table for connection; the link policy table is obtained by analyzing the detection result and the client information, and records the dial testing point server information which can be connected by the client.
In one embodiment, the link detection task includes dial-up point server information, a detection mode and a detection parameter; initiating a link detection request to a corresponding dial-up test point server according to the link detection task to obtain a detection result, wherein the method comprises the following steps: and initiating a link detection request to a corresponding dial testing point server according to the detection mode and the detection parameters to obtain a corresponding detection result.
In one embodiment, the link detection task includes information of a plurality of dial-up point servers, a detection mode and a detection parameter corresponding to the information of each dial-up point server; initiating a link detection request to a corresponding dial-up test point server according to the link detection task to obtain a detection result, wherein the method comprises the following steps: and initiating a link detection request to the corresponding dial-up test point server according to the sequence of the dial-up test point server information in the link detection task and the detection mode and the detection parameter corresponding to each piece of the dial-up test point server information in sequence to obtain a corresponding detection result.
In one embodiment, the probe result includes the transmitted content, the expected received content, the protocol type, the timeout time, the retry number; after obtaining the corresponding detection result, the method further comprises:
and writing the transmitted content, the content expected to be received, the protocol type, the timeout time and the retry times into a local data file, regularly transmitting the data in the local data file to the policy server so that the policy server transmits a link detection task to the client again, and switching the link to an optimal state in real time according to a link policy table obtained by re-detection.
In one embodiment, the method further comprises: the method comprises the steps of obtaining corresponding network performance parameters when a user account operates service in an application scene, and sending the network performance parameters to a policy server so that the policy server sends a link detection task to a client.
A link detection method is applied to a policy server and comprises the following steps:
sending a link detection task to a client;
receiving a detection result and client information sent by a client; the detection result is obtained by performing link detection on a corresponding dial-up test point server according to the link detection task;
analyzing to obtain a link policy table according to the detection result and the client information; the link policy table records information of dial testing point servers which can be connected with the client;
and sending the link policy table to the client.
A link detection device applied to a client side comprises:
the task receiving module is used for receiving the link detection task sent by the strategy server;
the detection module is used for initiating a link detection request to a corresponding dial-up test point server according to the link detection task to obtain a detection result;
the detection result sending module is used for acquiring client information and sending the client information and the detection result to the policy server;
the strategy table receiving module is used for receiving the link strategy table sent by the strategy server and selecting a dial testing point server with the optimal network performance data in the link strategy table for connection; the link policy table is obtained by analyzing the detection result and the client information, and records the dial testing point server information which can be connected by the client.
A link detection device applied to a policy server comprises:
the detection task sending module is used for sending a link detection task to the client;
the detection result receiving module is used for receiving the detection result and the client information sent by the client; the detection result is obtained by performing link detection on a corresponding dial-up test point server according to the link detection task;
the analysis module is used for analyzing and obtaining a link policy table according to the detection result and the client information; the link policy table records the information of the dial testing point server which can be connected with the client;
and the policy table sending module is used for sending the link policy table to the client.
A computer device comprising a memory storing a computer program and a processor implementing the following steps when executing the computer program:
receiving a link detection task sent by a policy server;
initiating a link detection request to a corresponding dial-up test point server according to the link detection task to obtain a detection result;
acquiring client information, and sending the client information and a detection result to the policy server;
receiving a link policy table sent by the policy server, and selecting a dial testing point server with optimal network performance data in the link policy table for connection; the link policy table is obtained by analyzing the detection result and the client information, and records the information of the dial testing point server which can be connected with the client.
A computer device comprising a memory storing a computer program and a processor implementing the following steps when executing the computer program:
sending a link detection task to a client;
receiving a detection result and client information sent by a client; the detection result is obtained by performing link detection on a corresponding dial-up test point server according to the link detection task;
analyzing to obtain a link policy table according to the detection result and the client information; the link policy table records the information of the dial testing point server which can be connected with the client;
and sending the link policy table to the client.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
receiving a link detection task sent by a policy server;
initiating a link detection request to a corresponding dial-up test point server according to the link detection task to obtain a detection result;
acquiring client information, and sending the client information and a detection result to the policy server;
receiving a link policy table sent by the policy server, and selecting a dial testing point server with optimal network performance data in the link policy table for connection; the link policy table is obtained by analyzing the detection result and the client information, and records the dial testing point server information which can be connected by the client.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, further realizes the steps of:
sending a link detection task to a client;
receiving a detection result and client information sent by a client; the detection result is obtained by performing link detection on a corresponding dial-up test point server according to the link detection task;
analyzing to obtain a link policy table according to the detection result and the client information; the link policy table records information of dial testing point servers which can be connected with the client;
and sending the link policy table to the client.
According to the link detection method, the link detection device, the computer equipment and the storage medium, the client receives a link detection task sent by the policy server; initiating a link detection request to a corresponding dial-up test point server according to the link detection task to obtain a detection result; acquiring client information, and sending the client information and a detection result to the policy server; the strategy server receives a detection result and client information sent by a client; the strategy server analyzes and obtains a link strategy table according to the detection result and the client information, and the link strategy table records the dial testing point server information which can be connected with the client; then the strategy server sends the link strategy table to the client; and finally, the client receives the link policy table sent by the policy server, and selects the network protocol with the optimal effect and the better access point to connect according to the link policy table, so that the service response time can be improved, a large amount of funds are not required to be invested, and the cost is reduced.
Drawings
FIG. 1 is a diagram of an exemplary link probing method;
FIG. 2 is a flow diagram illustrating a link probing method according to one embodiment;
FIG. 3 is a flow chart illustrating a link probing method according to another embodiment;
FIG. 4 is a diagram illustrating the steps of probing tasks in one embodiment;
FIG. 5 is a diagram illustrating the task of link probing in one embodiment;
FIG. 6 is a block diagram of a link probing apparatus according to an embodiment;
FIG. 7 is a block diagram of a link probing apparatus in another embodiment;
FIG. 8 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of and not restrictive on the broad application.
The link detection method provided by the application can be applied to the application environment shown in fig. 1. The game client is connected with the game server through the dial testing point server, the dial testing point server is connected with the game client, the dial testing point server is connected with the game server through a dedicated link, the game client is connected with the network strategy server through a dedicated link, and the strategy server is communicated with the big data analysis center through a network. It is understood that the game client may be a video conference client or a video playing client, and the like, and the game server may be a video conference server or a video playing server, and the like. The game client, the video conference client or the video playing client can be collectively called a service client, and the game server, the video conference server or the video playing server can be collectively called a service server. In the embodiment of the present application, a game client and a game server are taken as examples for description, and other service clients and service servers may also be applied to the link detection method provided in the embodiment of the present application.
In one embodiment, as shown in fig. 2, a link probing method is provided, which is described by taking the method as an example applied to the client in fig. 1, and includes the following steps:
step 202, receiving a link probing task sent by a policy server.
The link detection task includes, optionally, information of a point dialing server, a detection mode and a detection parameter, where the point dialing server information refers to information of a position and a network port of the point dialing server, the detection mode refers to a service mode used for link detection, and the detection parameter refers to some related parameters used during link detection, such as a protocol type, timeout time, sent content, content expected to be received, and the like connected between the source node and the target node.
Specifically, when the game server receives a login request of a client user account, the game server dynamically sends a link detection task to the client through the policy server, or the policy server sends the link detection task to the client when receiving network performance data sent by the client, the client monitors the task condition through the task receiving interface, and when detecting that a task arrives, the client receives the link detection task sent by the policy server.
And step 204, initiating a link detection request to a corresponding dial testing point server according to the link detection task to obtain a detection result.
Specifically, when a client receives a link detection task sent by a policy server, a link detection request is initiated to a corresponding detected dial-up test point server according to a detection mode and detection parameters in the link detection task, and network performance parameters between the client and the corresponding probe point server are detected, where the network performance parameters refer to data such as delay and packet loss of a link between the client and the corresponding dial-up test point server, and a detection result is obtained. Meanwhile, the client writes the detection result into a local data file of the client, and sends the data in the local data file to the policy server at regular time.
Step 206, obtaining the client information, and sending the client information and the detection result to the policy server.
Specifically, the client information includes information related to the client, such as a geographic location of the client, device information of the client, user account information of the client, and network operator information of connection of the client, and when the client receives a link probing task sent by the policy server, a link probing request is sent to a corresponding dial-up point server according to a probing mode and probing parameters in the link probing task to obtain a corresponding link probing result.
Step 208, receiving a link policy table sent by the policy server, and selecting a dial testing point server with the optimal network performance data in the link policy table for connection; the link policy table is obtained by analyzing the detection result and the client information, and records the dial testing point server information which can be connected by the client.
Specifically, the client receives a link measurement table sent by a policy server, the link policy table is obtained by analyzing a big data analysis platform according to a link detection result of the client and client information, the big data analysis platform sends the link policy table to the client through the policy server, and after the client receives the link policy table sent by the policy server, an optimal one of a plurality of dial measurement point servers can be selected according to network performance data in the link policy table, and the optimal one of the plurality of network protocols can be selected to be connected with the optimal dial measurement point server. As shown in fig. 5, when the client is started, the client may automatically collect information of the client, connect to the policy server, download an existing link policy table, when receiving a probe task sent by the policy server, search for whether there is a same probe task in the downloaded policy link table, when there is a same probe task in the link policy table, directly connect to the optimal dial-up test point server according to an optimal network protocol selected from the link policy table, record parameters such as time for establishing connection between the client and the selected dial-up test point server, DNS (Domain Name System) resolution time, and write parameters such as time for establishing connection between the client and the selected dial-up test point server, DNS resolution time, and the like, recorded by the client, into a local data file of the client, and send data in the local data file to the policy server at regular time.
In a possible implementation manner, after the client receives the link policy table sent by the policy server, the dial-up test point server meeting the preset link performance threshold is obtained by screening according to the network performance data in the link policy table and the device information of the client and the network protocol is connected.
In one embodiment, as shown in fig. 3, a link probing method is provided, which is described by taking the method as an example for being applied to the policy server in fig. 1, and includes the following steps:
step 302, sending a link probing task to the client.
Specifically, when the game server receives a login request of a user account of the client, the policy server sends a link detection task to the client, or the policy server dynamically sends the link detection task to the client according to the current link condition, for example, when the policy server receives network performance data uploaded by the client, the network performance data refers to data such as delay and packet loss of a link between a source node and a corresponding target node. Optionally, the link probing task includes information of the dial-up point server, a probing method, and a probing parameter. The dial testing point server realizes the connection between the client and the game server, the detection mode is used for carrying out link detection tools or services, and the detection parameters are parameters required for carrying out link detection.
Step 304, receiving a detection result and client information sent by a client; the detection result is obtained by performing link detection on the corresponding dial testing point server according to the link detection task.
Specifically, when a client initiates a link detection request to a corresponding dial-up test point server according to a link detection task sent by a policy server, and a detection result is obtained, the client obtains client information and sends the client information and the detection result to the policy server, the policy server monitors the receiving condition in real time through a receiving interface, when the detection result and the client information sent by the client are detected, the detection result and the client information sent by the client are received, and then the policy server uploads the client information and the detection result to a big data analysis platform, wherein the policy server can upload the detection result and the client information sent by the client to a big data analysis center through a cloud, and the policy server can upload the detection result and the client information sent by the client to the big data analysis center through other modes, which is not limited herein.
Step 306, analyzing to obtain a link policy table according to the detection result and the client information; the link policy table records information of dial testing point servers to which the client can connect.
Specifically, when the big data analysis platform receives a detection result and client information sent by the policy server, unified data cleaning is performed on user account information of the client, a geographic position of the client, equipment information of the client, network operator information of connection of the client, and information such as a protocol type, timeout time, retry times and the like in the detection result, the unified data cleaning is input into the big data analysis platform, a network performance index is used as an evaluation index, the network performance index refers to packet loss and delay, the detection result and the client information are sequenced in real time, a link policy table is obtained, information of a plurality of dial test point servers which can be connected with the client and correspond to the client and the link information are recorded in the link policy table, and the big data analysis center sends the calculated link policy table to the policy server through a cloud.
In a possible implementation manner, the big data analysis platform may also learn a link policy table according to a neural network model or a machine learning algorithm, obtain an optimal dialing test point and a network protocol according to the link state real-time analysis of each client, send the link policy table recording the optimal dialing test point and the network protocol obtained by the link state real-time analysis of the client to the policy server, and send the link policy table to the client, so that the client is adjusted to the optimal link state in time according to the real-time link policy table.
Step 308, the link policy table is sent to the client.
Specifically, the big data analysis platform performs big data analysis according to the detection result and the client information sent by the policy server to obtain a link policy table, sends the link policy table to the policy server through the cloud, and the policy server sends the received link policy table to the client through the sending interface.
In the link prediction method, a client receives a link detection task sent by a policy server; initiating a link detection request to a corresponding dial-up test point server according to the link detection task to obtain a detection result; acquiring client information, and sending the client information and a detection result to the policy server; the strategy server receives a detection result and client information sent by a client; the strategy server analyzes and obtains a link strategy table according to the detection result and the client information, and the link strategy table records the dial testing point server information which can be connected with the client; then the strategy server sends the link strategy table to the client; and finally, the client receives the link policy table sent by the policy server, and selects the network protocol with the best effect and the best access point to connect according to the link policy table, so that the service response time can be improved, a large amount of funds are not required to be invested, and the cost is reduced.
In one embodiment, the link probing task includes dial-out point server information, a probing method, and probing parameters; initiating a link detection request to a corresponding dial-up test point server according to the link detection task to obtain a detection result, wherein the method comprises the following steps: and initiating a link detection request to a corresponding dial testing point server according to the detection mode and the detection parameters to obtain a corresponding detection result.
Specifically, the link detection task includes information of a dial-test point server, a detection mode and detection parameters, the dial-test point server realizes connection between a client and a game server, bears a gateway role of the game server, a plurality of dial-test point servers are deployed in different places of the world, the dial-test point server and the game server are interconnected by adopting an internal optimized network link, and stable and low-delay network connection is provided, wherein the internal optimized link can be a kcptun acceleration link or other special line links, and the link detection task is not limited herein. The information of the dial testing point server comprises the geographic position of the dial testing point, the IP or the port of the dial testing point server and the like. The sounding mode is echo sounding or other sounding modes, and echo service is a tool for debugging and detecting, and the protocol receives what is sent back as it is, similar to "echo" in daily life. The probing parameters are parameters required for link probing, and include a protocol type of a connection between the source node and the target node, a timeout time, a content to be sent, and a content expected to be received. And initiating a link detection request to a corresponding dial-up test point server in an echo detection mode according to the detection mode and the detection parameters to obtain a detection result, wherein the detection result optionally comprises transmitted content, content expected to be received, a protocol type, timeout time and retry times, and the client writes the detection result into a local data file of the client after obtaining the detection result.
In one embodiment, the link detection task includes information of a plurality of dial-up point servers, a detection mode and a detection parameter corresponding to the information of each dial-up point server; initiating a link detection request to a corresponding dial-up test point server according to the link detection task to obtain a detection result, wherein the method comprises the following steps: and initiating a link detection request to the corresponding dial-up test point server according to the sequence of the dial-up test point server information in the link detection task and the detection mode and the detection parameter corresponding to each piece of the dial-up test point server information in sequence to obtain a corresponding detection result.
Specifically, as shown in fig. 4, the link probing task includes information of a plurality of dial-up test point servers, a probing manner and a probing parameter corresponding to the information of each dial-up test point server, where the information of the plurality of dial-up test point servers includes information of geographic positions of a plurality of dial-up test points, and IP or ports of the dial-up test point servers. When the client receives a link detection task sent by the policy server, step 402 is executed, the detection task starts, and then step 404 is executed, a plurality of dial-up test point information lists and detection parameter information are obtained, wherein the dial-up test point information lists refer to lists of information of a plurality of dial-up test point servers and include information of positions, port numbers and the like of the plurality of dial-up test point servers, and the detection parameter information refers to some relevant parameters used in link detection, such as protocol types, timeout time, sent contents, contents expected to be received and the like connected between a source node and a target node. According to the sequence of the dial-up test point server information in the link detection task, initiating a link detection request to the corresponding dial-up test point server in an echo detection mode according to the detection mode and the detection parameters corresponding to each piece of dial-up test point server information in sequence to obtain a plurality of detection results, wherein the detection results optionally comprise transmitted contents, contents expected to be received, protocol types, timeout time and retry times, then executing step 406, writing the plurality of detection results into a client local data file after the client obtains the plurality of detection results, and finally executing step 408 to send data in the local data file to a policy server at regular time.
In one embodiment, the probe result includes transmitted content, expected received content, protocol type, timeout time, number of retries; after obtaining the corresponding detection result, the method further comprises:
and writing the transmitted content, the content expected to be received, the protocol type, the timeout time and the retry times into a local data file, regularly transmitting the data in the local data file to the policy server so that the policy server transmits a link detection task to the client again, and switching the link to an optimal state in real time according to a link policy table obtained by re-detection.
Specifically, the detection result includes the content sent by the client, the content expected to be received, the protocol type used by the link connection, the connection timeout time, the retry number, and the like. The client side initiates a link detection request to a corresponding dial-up test point server according to the link detection task to obtain a detection result, or initiates the link detection request to the corresponding dial-up test point server according to the sequence of the dial-up test point server information in the link detection task and the detection mode and the detection parameters corresponding to each dial-up test point server information in sequence to obtain the corresponding detection result, the client side writes the detection result into a client side local data file after obtaining the detection result, the data in the local data file is sent to the strategy server at regular time to enable the strategy server to send the link detection task to the client side again, and the link is switched to the optimal state in real time according to a link strategy table obtained by re-detection.
In the embodiment, the client writes the detection result into the local data file at regular time and sends the detection result to the policy server at regular time, so that the policy server sends a link detection task to the client in real time; the client initiates a link detection request to a corresponding dial-up test point server according to the link detection task to obtain a detection result; the client sends the detection result and the client information to the policy server, and the policy server sends the detection result and the client information to the big data analysis center; and the big data analysis center analyzes the detection result and the client information to obtain a latest link policy table, and the client switches the link to the optimal state in real time according to the latest link policy table.
In one embodiment, the method further comprises: the method comprises the steps of obtaining corresponding network performance parameters when a user account operates service in an application scene, and sending the network performance parameters to a policy server so that the policy server sends a link detection task to a client.
Specifically, the client regularly counts network performance parameters corresponding to a user account when operating a service in an application scene, the network performance parameters include parameters such as connection delay and packet loss, the application scene can be a game scene and can also be other scenes such as a video call, meanwhile, the client also records parameters such as connection establishment time and DNS analysis time of a selected dial-up test point server, the client writes the network performance parameters corresponding to the user account when operating the service in the application scene regularly counted and the recorded parameters such as connection establishment time and DNS analysis time of the selected dial-up test point server into a client local data file, the client regularly sends the local data file to a policy server, the policy server sends the data to a big data analysis platform, the big data analysis platform analyzes the performance of the user account when operating the service according to the parameters such as client information, packet loss and delay, the problem existing in the operation service is conveniently found, and the link state is timely adjusted to the optimal state.
In the embodiment, a client receives a link detection task sent by a policy server; initiating a link detection request to a corresponding dial-up test point server according to the link detection task to obtain a detection result; acquiring client information, and sending the client information and a detection result to the policy server; the strategy server receives a detection result and client information sent by a client; the strategy server analyzes and obtains a link strategy table according to the detection result and the client information, and the link strategy table records the dial testing point server information which can be connected with the client; then the strategy server sends the link strategy table to the client; and finally, the client receives the link policy table sent by the policy server, and selects a network protocol with good effect to connect with a better access point according to the link policy table, so that the service response time can be improved, a large amount of funds are not required to be invested, and the cost is reduced.
In order to easily understand the technical solution provided in the embodiment of the present application, in the following, the embodiment of the present application briefly describes a link detection method provided in the embodiment of the present application in a form of interaction between a client and a policy server:
(1) When the game server receives a login request of a client user account, a link detection task is sent to the client through the strategy server, or the strategy server dynamically sends the link detection task to the client according to the current link condition.
(2) And the client receives the link detection task sent by the policy server.
(3) And the client initiates a link detection request to the corresponding dial-up test point server according to the link detection task to obtain a detection result.
(4) The client acquires the client information and sends the client information and the detection result to the policy server.
(5) The strategy server sends the detection result and the client information to a big data analysis center, and the big data analysis center obtains a link strategy table according to the detection result and the client information; the link policy table records information of a dial testing point server which can be connected with the client, and the big data analysis center sends the link policy table to the policy server.
(6) The policy server sends the link policy table to the client.
(7) The client receives the link measuring table sent by the strategy server, selects an optimal one of the plurality of dial measuring point servers according to the network performance data in the link strategy table, and selects an optimal one of the plurality of network protocols to be connected with the dial measuring point servers.
It should be understood that although the various steps in the flow charts of fig. 2-5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-5 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least some of the other steps or stages.
In one embodiment, as shown in fig. 6, there is provided a link probing apparatus applied to a client, including: a task receiving module 602, a probing module 604, a probing result sending module 606, and a policy table receiving module 608, wherein:
a task receiving module 602, configured to receive a link detection task sent by a policy server;
a detection module 604, configured to initiate a link detection request to a corresponding dial-up test point server according to the link detection task, so as to obtain a detection result;
a detection result sending module 606, configured to obtain client information, and send the client information and a detection result to the policy server;
a policy table receiving module 608, configured to receive the link policy table sent by the policy server, and select a dial-test point server with the optimal network performance data in the link policy table for connection; the link policy table is obtained by analyzing the detection result and the client information, and records the dial testing point server information which can be connected by the client.
In one embodiment, as shown in fig. 7, there is provided a link probing apparatus applied to a policy server, including: a probe task sending module 702, a probe result receiving module 704, an analyzing module 706, and a policy table sending module 708, wherein:
a probing task sending module 702, configured to send a link probing task to a client;
a detection result receiving module 704, configured to receive a detection result and client information sent by a client; the detection result is obtained by performing link detection on a corresponding dial-up test point server according to the link detection task;
an analyzing module 706, configured to analyze the detection result and the client information to obtain a link policy table; the link policy table records information of dial testing point servers which can be connected with the client;
a policy table sending module 708, configured to send the link policy table to the client.
In one embodiment, the task receiving module 602 includes a link probing task sub-module, which includes dial-out point server information, probing methods, and probing parameters; the detection module 604 is configured to initiate a link probing request to a corresponding dial-up test point server according to the link probing task to obtain a probing result, and the detection module 604 includes a first detection submodule configured to initiate a link probing request to the corresponding dial-up test point server according to the probing manner and the probing parameter to obtain a corresponding probing result.
In one embodiment, the detection module 604 includes a second detection sub-module, and the second detection sub-module initiates a link detection request to the corresponding dial-in point server according to the sequence of the dial-in point server information in the link detection task and according to the detection mode and the detection parameter corresponding to each piece of the dial-in point server information in sequence, so as to obtain the corresponding detection result.
In one embodiment, the probe module 604 probes the results sub-module, which includes the content sent, the content expected to be received, the protocol type, the timeout time, the number of retries. The policy table receiving module 608 is further configured to write the sent content, the content expected to be received, the protocol type, the timeout time, and the retry number into the local data file, and periodically send the data in the local data file to the policy server, so that the policy server sends the link probing task to the client again, and switches the link to the optimal state in real time according to the link policy table obtained by probing again.
In an embodiment, the link detection apparatus further includes a timing acquisition module, where the timing acquisition module is configured to acquire a network performance parameter corresponding to a user account when operating a service in an application scenario, and send the network performance parameter to the policy server, so that the policy server sends a link detection task to the client.
For the specific definition of the link probing apparatus, reference may be made to the above definition of the link probing method, which is not described herein again. The modules in the link detection device can be implemented in whole or in part by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a policy server or a client, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor and a memory connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The computer program is executed by a processor to implement a log file processing method.
It will be appreciated by those skilled in the art that the configuration shown in fig. 8 is a block diagram of only a portion of the configuration associated with the present application, and is not intended to limit the computing device to which the present application may be applied, and that a particular computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device applied to a client is provided, and includes a memory and a processor, where the memory stores a computer program, and the processor implements the following steps when executing the computer program:
receiving a link detection task sent by a policy server;
initiating a link detection request to a corresponding dial-up test point server according to the link detection task to obtain a detection result;
acquiring client information, and sending the client information and a detection result to the policy server;
receiving a link policy table sent by the policy server, and selecting a dial testing point server with optimal network performance data in the link policy table for connection; the link policy table is obtained by analyzing the detection result and the client information, and records the dial testing point server information which can be connected by the client.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the link detection task comprises the information of a dial-up measuring point server, a detection mode and detection parameters; initiating a link detection request to a corresponding dial-up test point server according to the link detection task to obtain a detection result, wherein the method comprises the following steps: and initiating a link detection request to a corresponding dial-up test point server according to the detection mode and the detection parameters to obtain a corresponding detection result.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the link detection task comprises a plurality of pieces of dial-up point server information, a detection mode and a detection parameter corresponding to each piece of dial-up point server information; initiating a link detection request to a corresponding dial-up test point server according to the link detection task to obtain a detection result, wherein the method comprises the following steps: and initiating a link detection request to the corresponding dial-up test point server according to the sequence of the information of the dial-up test point servers in the link detection task and the detection mode and the detection parameter corresponding to the information of each dial-up test point server in sequence to obtain a corresponding detection result.
In one embodiment, the processor when executing the computer program further performs the steps of: the detection result comprises transmitted content, expected received content, protocol type, timeout time and retry times; after obtaining the corresponding detection result, the method further comprises: and writing the transmitted content, the content expected to be received, the protocol type, the timeout time and the retry times into a local data file, regularly transmitting the data in the local data file to the policy server so that the policy server transmits a link detection task to the client again, and switching the link to an optimal state in real time according to a link policy table obtained by re-detection.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the method comprises the steps of obtaining corresponding network performance parameters when a user account operates service in an application scene, and sending the network performance parameters to a policy server so that the policy server sends a link detection task to a client.
In one embodiment, a computer device applied to a policy server is provided, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the following steps when executing the computer program:
sending a link detection task to a client;
receiving a detection result and client information sent by a client; the detection result is obtained by performing link detection on a corresponding dial-up test point server according to the link detection task;
analyzing to obtain a link policy table according to the detection result and the client information; the link policy table records the information of the dial testing point server which can be connected with the client;
and sending the link policy table to the client.
In one embodiment, a computer-readable storage medium is provided for a client, having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving a link detection task sent by a policy server;
initiating a link detection request to a corresponding dial-up test point server according to the link detection task to obtain a detection result;
acquiring client information, and sending the client information and a detection result to the policy server;
receiving a link policy table sent by the policy server, and selecting a dial testing point server with optimal network performance data in the link policy table for connection; the link policy table is obtained by analyzing the detection result and the client information, and records the dial testing point server information which can be connected by the client.
In one embodiment, the computer program when executed by the processor further performs the steps of: the link detection task comprises the information of a dial-up measuring point server, a detection mode and detection parameters; initiating a link detection request to a corresponding dial-up test point server according to the link detection task to obtain a detection result, wherein the method comprises the following steps: and initiating a link detection request to a corresponding dial-up test point server according to the detection mode and the detection parameters to obtain a corresponding detection result.
In one embodiment, the computer program when executed by the processor further performs the steps of: the link detection task comprises a plurality of pieces of dial-up point server information, a detection mode and a detection parameter corresponding to each piece of dial-up point server information; initiating a link detection request to a corresponding dial-up test point server according to the link detection task to obtain a detection result, wherein the method comprises the following steps: and initiating a link detection request to the corresponding dial-up test point server according to the sequence of the dial-up test point server information in the link detection task and the detection mode and the detection parameter corresponding to each piece of the dial-up test point server information in sequence to obtain a corresponding detection result.
In one embodiment, the computer program when executed by the processor further performs the steps of: the detection result comprises transmitted content, expected received content, protocol type, timeout time and retry times; after obtaining the corresponding detection result, the method further comprises: and writing the transmitted content, the content expected to be received, the protocol type, the timeout time and the retry times into a local data file, regularly transmitting the data in the local data file to the policy server so that the policy server transmits a link detection task to the client again, and switching the link to an optimal state in real time according to a link policy table obtained by re-detection.
In one embodiment, the computer program when executed by the processor further performs the steps of: the method comprises the steps of obtaining corresponding network performance parameters when a user account operates service in an application scene, and sending the network performance parameters to a policy server so that the policy server sends a link detection task to a client.
In one embodiment, a computer-readable storage medium is provided for use in a policy server, having a computer program stored thereon, which when executed by a processor, performs the steps of:
sending a link detection task to a client;
receiving a detection result and client information sent by a client; the detection result is obtained by performing link detection on a corresponding dial testing point server according to the link detection task;
analyzing to obtain a link policy table according to the detection result and the client information; the link policy table records the information of the dial testing point server which can be connected with the client;
and sending the link policy table to the client.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
All possible combinations of the technical features in the above embodiments may not be described for the sake of brevity, but should be considered as being within the scope of the present disclosure as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A link detection method is applied to a client side, and in a global uniform service mode, the method comprises the following steps:
receiving a link detection task sent by a policy server; the link detection task is sent to the client through the policy server when the game server receives a login request of a client user account, or the policy server dynamically sends the client according to the current link condition;
initiating a link detection request to a corresponding dial-up test point server according to the link detection task to obtain a detection result;
acquiring client information, and sending the client information and a detection result to the policy server; the client information comprises the geographic position of the client, equipment information, user account information and connected network operator information;
receiving a link policy table sent by the policy server, and selecting a dial testing point server with the optimal network performance data in the link policy table for connection; and the link policy table is obtained by analyzing the detection result and the client information, and records the dial testing point server information which can be connected by the client.
2. The method of claim 1, wherein the link probing task comprises dial-out point server information, probing methods, and probing parameters;
the initiating a link detection request to a corresponding dial-up test point server according to the link detection task to obtain a detection result includes:
and initiating a link detection request to a corresponding dial testing point server according to the detection mode and the detection parameters to obtain a corresponding detection result.
3. The method according to claim 2, wherein the link detection task includes information of a plurality of shift point servers, a detection mode and a detection parameter corresponding to the information of each shift point server;
the initiating a link detection request to a corresponding dial-up test point server according to the detection mode and the detection parameters to obtain a corresponding detection result, including:
and initiating a link detection request to the corresponding dial-up test point server according to the sequence of the information of the dial-up test point servers in the link detection task and the detection mode and the detection parameter corresponding to the information of each dial-up test point server in sequence to obtain a corresponding detection result.
4. The method of claim 3, wherein the probing result comprises a transmitted content, an expected received content, a protocol type, a timeout, a number of retries;
after obtaining the corresponding detection result, the method further includes:
and writing the sent content, the content expected to be received, the protocol type, the timeout time and the retry times into a local data file, and regularly sending the data in the local data file to the policy server so that the policy server sends a link detection task to the client again, and switching the link to an optimal state in real time according to a link policy table obtained by re-detection.
5. The method of claim 1, further comprising:
the method comprises the steps of obtaining corresponding network performance parameters when a user account operates service in an application scene, and sending the network performance parameters to a policy server so that the policy server sends a link detection task to a client.
6. A link probing method applied to a policy server, the method comprising, in a global uniform mode:
sending a link detection task to a client; the link detection task is sent to the client through the policy server when the game server receives a login request of a client user account, or the policy server dynamically sends the client according to the current link condition;
receiving a detection result and client information sent by a client; the detection result is obtained by performing link detection on a corresponding dial-up test point server according to the link detection task; the client information comprises the geographic position, equipment information, user account information and connected network operator information of the client;
analyzing according to the detection result and the client information to obtain a link policy table; the link policy table records dial testing point server information which can be connected with the client;
and sending the link policy table to a client.
7. A link probing apparatus applied to a client, the apparatus comprising, in a global uniform service mode:
the task receiving module is used for receiving the link detection task sent by the strategy server; the link detection task is sent to the client through the policy server when the game server receives a login request of a client user account, or the policy server dynamically sends the client according to the current link condition;
the detection module is used for initiating a link detection request to a corresponding dial-up test point server according to the link detection task to obtain a detection result;
the detection result sending module is used for acquiring client information and sending the client information and the detection result to the policy server; the client information comprises the geographic position, equipment information, user account information and connected network operator information of the client;
the strategy table receiving module is used for receiving the link strategy table sent by the strategy server and selecting a dial testing point server with the optimal network performance data in the link strategy table for connection; and the link policy table is obtained by analyzing the detection result and the client information, and records the dial testing point server information which can be connected by the client.
8. A link probing apparatus applied to a policy server, the apparatus comprising, in a global uniform mode:
the detection task sending module is used for sending a link detection task to the client; the link detection task is sent to the client through the policy server when the game server receives a login request of a client user account, or the policy server dynamically sends the client according to the current link condition;
the detection result receiving module is used for receiving the detection result and the client information sent by the client; the detection result is obtained by performing link detection on a corresponding dial-up test point server according to the link detection task; the client information comprises the geographic position of the client, equipment information, user account information and connected network operator information;
the analysis module is used for analyzing and obtaining a link policy table according to the detection result and the client information; the link policy table records dial testing point server information which can be connected with the client;
and the policy table sending module is used for sending the link policy table to the client.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor realizes the steps of the method of any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN202111027854.5A 2020-11-02 2021-09-02 Link detection method, link detection device, computer equipment and storage medium Active CN113542076B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011202171.4A CN112260904A (en) 2020-11-02 2020-11-02 Link detection method, link detection device, computer equipment and storage medium
CN2020112021714 2020-11-02

Publications (2)

Publication Number Publication Date
CN113542076A CN113542076A (en) 2021-10-22
CN113542076B true CN113542076B (en) 2023-04-07

Family

ID=74268481

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202011202171.4A Withdrawn CN112260904A (en) 2020-11-02 2020-11-02 Link detection method, link detection device, computer equipment and storage medium
CN202111027854.5A Active CN113542076B (en) 2020-11-02 2021-09-02 Link detection method, link detection device, computer equipment and storage medium

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202011202171.4A Withdrawn CN112260904A (en) 2020-11-02 2020-11-02 Link detection method, link detection device, computer equipment and storage medium

Country Status (1)

Country Link
CN (2) CN112260904A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114553941A (en) * 2021-12-28 2022-05-27 中国电信股份有限公司 Service dial testing method and device based on RPC communication
CN114430383A (en) * 2022-01-29 2022-05-03 北京百度网讯科技有限公司 Method and device for screening detection nodes, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1794667A (en) * 2005-08-09 2006-06-28 华为技术有限公司 Detection method of network communication state

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030233453A1 (en) * 2002-06-18 2003-12-18 Institute For Information Industry Topology probing method for mobile IP system
CN101834799B (en) * 2010-05-06 2012-12-19 工业和信息化部电信传输研究所 Selection method of server of mobile IPTV (Internet Protocol Television), client, server and system
CN103973728B (en) * 2013-01-25 2019-02-05 新华三技术有限公司 The method and device of load balancing under a kind of multiple data centers environment
US9794155B2 (en) * 2014-12-19 2017-10-17 Tube Incorporated System and method for coordinating client-side inference of mobile network loading and capacity
CN105991365B (en) * 2015-02-28 2019-07-16 网宿科技股份有限公司 The method, apparatus and system of path detection
CN110120897A (en) * 2019-04-22 2019-08-13 国家计算机网络与信息安全管理中心 Link detection method, apparatus, electronic equipment and machine readable storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1794667A (en) * 2005-08-09 2006-06-28 华为技术有限公司 Detection method of network communication state

Also Published As

Publication number Publication date
CN112260904A (en) 2021-01-22
CN113542076A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN113542076B (en) Link detection method, link detection device, computer equipment and storage medium
US10637771B2 (en) System and method for real-time load balancing of network packets
US9531782B2 (en) Dynamic management of collaboration sessions using real-time text analytics
US8010100B2 (en) System and method for monitoring and measuring end-to-end performance using wireless devices
CN109769261B (en) Network fault processing method and device
CN110460732B (en) Network quality monitoring method and device and communication server
CN107409071B (en) Method for obtaining diagnosis test result, control module and computer readable storage medium
CN108199921A (en) The method, apparatus and storage medium of a kind of simulation test
CN111447089B (en) Terminal asset identification method and device and computer readable storage medium
WO2013124763A1 (en) Quantifying user quality of experience by passive monitoring
EP2372954B1 (en) Method and system for collecting information relating to a communication network
US7907599B2 (en) Determination of SIP transport to reduce call setup delays
CN109873734B (en) Bottom layer data monitoring method, medium, equipment and device
US20230055046A1 (en) Telemetry distribution in an overlay network
US10785235B2 (en) System and method for gathering botnet cyber intelligence
CN109041267A (en) A kind of network connectivity fai_lure processing method, device and electronic equipment
EP3414870A1 (en) Calculating service performance indicators
US11178593B2 (en) Terminal, relay apparatus selection apparatus, communication method, relay apparatus selection method, and program
CN115442260B (en) Data transmission method, terminal device and storage medium
JP2011142473A (en) Apparatus and method for estimating users' waiting time, and program
Goenka et al. Towards client-side active measurements without application control
CN109547289B (en) Method, storage device and system for intelligently scheduling visitor flow
CN114363217A (en) RFC2544 throughput performance test method, system, equipment and medium
CN109495349B (en) NAT throughput testing method and system for wireless access point
WO2020221779A1 (en) Methods and devices for measuring reputation in a communication network

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