CN111669285A - Network detection data processing method, system and storage medium - Google Patents
Network detection data processing method, system and storage medium Download PDFInfo
- Publication number
- CN111669285A CN111669285A CN202010382343.4A CN202010382343A CN111669285A CN 111669285 A CN111669285 A CN 111669285A CN 202010382343 A CN202010382343 A CN 202010382343A CN 111669285 A CN111669285 A CN 111669285A
- Authority
- CN
- China
- Prior art keywords
- network
- time
- server
- link
- time difference
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 30
- 238000003672 processing method Methods 0.000 title claims abstract description 9
- 230000006854 communication Effects 0.000 claims abstract description 46
- 238000004891 communication Methods 0.000 claims abstract description 45
- 238000000034 method Methods 0.000 claims abstract description 30
- 238000007689 inspection Methods 0.000 claims description 5
- 102000010954 Link domains Human genes 0.000 description 5
- 108050001157 Link domains Proteins 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0668—Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
-
- 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
- H04L43/0852—Delays
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/12—Shortest path evaluation
- H04L45/121—Shortest path evaluation by minimising delays
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a processing method, a system and a storage medium of network detection data, wherein the method comprises the following steps: sending data packets of a plurality of network links to a server, and acquiring first time when the data packets are sent to the server; receiving a data packet returned by the server, and acquiring second time when the data packet returned by the server is received; calculating a time difference between the first time and the second time; selecting the network link with the minimum time difference as a target link of the current network communication; and switching the current network link to the target link. The invention sends the network link data packet to the server and obtains the first time, receives the data packet returned by the server and obtains the second time, calculates the time difference between the first time and the second time, takes the network link with the minimum time difference as the target link, and switches the current network link to the target link, thereby providing relatively stable network service for the user. The invention can be applied to the technical field of networks.
Description
Technical Field
The present invention relates to the field of network technologies, and in particular, to a method, a system, and a storage medium for processing network detection data.
Background
The network detection can improve the stability degree of the network in the operation process to a certain extent. In the prior art, different network operators typically provide network services using different network lines. And different areas usually select a network operation mode in which one type of network service is primary and other network services are secondary. However, in an actual operation process, because the existing network service adopts a single line service technology, when a network line of a main network service fails, the network cannot continue to provide effective service for a user, and a user in a current area cannot normally use the network because the network cannot be switched to other auxiliary network lines in time.
Disclosure of Invention
In order to solve one of the above technical problems to some extent, the present invention aims to: a method, system and storage medium for processing network detection data are provided, which can provide stable network service to a user to a certain extent.
In a first aspect, an embodiment of the present invention provides:
a processing method of network detection data comprises the following steps:
sending data packets of a plurality of network links to a server, and acquiring first time when the data packets are sent to the server;
receiving a data packet returned by the server, and acquiring second time when the data packet returned by the server is received;
calculating a time difference between the first time and the second time;
selecting the network link with the minimum time difference as a target link of the current network communication;
and switching the current network link to the target link.
Further, before the step of calculating the time difference between the first time and the second time, the method further comprises the following steps:
and judging the communication states of the plurality of network links according to the receiving result of the data packet, wherein the communication states comprise a fault state and a normal state.
Further, the sending of the data packets of the plurality of network links to the server and the obtaining of the first time when the data packets are sent to the server are specifically:
and respectively sending the data packets to the server for at least three times, and acquiring the first time when the data packets are sent, wherein the at least three times are the sending times of the data packets of each network link in the plurality of network links.
Further, the calculating a time difference between the first time and the second time comprises:
respectively calculating the time difference between the first time and the second time corresponding to each data packet in the at least three data packets;
and calculating the average time difference of each network link according to the time difference of each data packet.
Further, the selecting the network link with the minimum time difference as a target link of the current network communication includes:
respectively comparing the magnitude relation of the average time difference of each network link;
and selecting the network link with the minimum average time difference as a target link of the current network communication according to the comparison result.
Further, the selecting the network link with the minimum time difference as a target link of the current network communication specifically includes:
and when the communication state of the current network link is determined to be a fault state, selecting the network link with the minimum time difference from the rest network links with the normal communication state as a target link of the current network communication, wherein the rest network links are a subset of the plurality of network links.
Further, the server is a quality detection server, and a network link domain name is bound to the quality detection server.
In a second aspect, an embodiment of the present invention provides:
a processing system of network inspection data, comprising:
the sending and obtaining module is used for sending data packets of a plurality of network links to the server and obtaining first time when the data packets are sent to the server;
the receiving and obtaining module is used for receiving the data packet returned by the server and obtaining the second time when the data packet returned by the server is received;
a calculating module for calculating a time difference between the first time and the second time;
the selecting module is used for selecting the network link with the minimum time difference as a target link of the current network communication;
and the switching module is used for switching the current network link to the target link.
In a third aspect, an embodiment of the present invention provides:
a processing system of network inspection data, comprising:
at least one memory for storing a program;
at least one processor for loading the program to execute the processing method of the network detection data.
In a fourth aspect, an embodiment of the present invention provides:
a storage medium having stored therein processor-executable instructions, which when executed by a processor, are used to implement the network detection data processing method.
The embodiment of the invention has the beneficial effects that: the embodiment of the invention provides relatively stable network service for users by sending data packets of a plurality of network links to a server and acquiring first time when the data packets are sent to the server, receiving the data packets returned by the server and acquiring second time when the data packets returned by the server are received, then calculating the time difference between the first time and the second time, taking the network link with the minimum time difference as a target link of current network communication, and switching the current network link to the target link.
Drawings
FIG. 1 is a flow chart of a method for processing network test data according to an embodiment of the present invention;
fig. 2 is a flowchart of an application method according to an embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the figures and the specific embodiments. The step numbers in the following embodiments are provided only for convenience of illustration, the order between the steps is not limited at all, and the execution order of each step in the embodiments can be adapted according to the understanding of those skilled in the art.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the application.
First, the terms appearing in the present application are explained:
domain name resolution: domain name resolution is a service that directs domain names to a website space IP, allowing people to conveniently access the website through the registered domain names.
A client: both refer to a mobile phone APP client and a PC application client.
The network detection server: and providing the service for detecting the network quality for the client.
Referring to fig. 1, an embodiment of the present invention provides a method for processing network detection data, and the embodiment of the present invention is applied to a background control end of a client, where the background control end is respectively in communication with a front end of the client and a server.
The present embodiment includes steps S11-S15:
s11, sending data packets of a plurality of network links to the server, and acquiring first time when the data packets are sent to the server; the data packet is a program designed by a designer for detecting network speed, and comprises a padCode value of the cloud mobile phone. The data packet further includes a time value and random data, for example, the data packet includes: VM110120130140| transmits a time value | AAAAAA (random data). When the present embodiment is applied to a test, the size of the data packet may be set to 1KB, but may be other values. The data packet size is set to 1KB, so that the process of transmitting the service data in the network link can be better simulated in the detection process, and the test process is closer to the real network quality in the project service. If the data packet is too small, the significance of the tested network quality data is not large; if the data packet is too large, certain network pressure is caused to the server room. The plurality of network links correspond to a plurality of types of network services. The first time is a time node when the client sends a data packet to the server.
S12, receiving the data packet returned by the server, and acquiring a second time when the data packet returned by the server is received; and the second time is the time point when the client receives the data packet returned by the server.
In some embodiments, the server is a quality detection server, and a network link domain name is bound to the quality detection server, so that the server can receive a data packet sent by a corresponding network link according to the network link domain name, and return the data packet to the client through the corresponding network link by using the network link domain name, thereby improving the accuracy of the network detection process.
S13, calculating the time difference between the first time and the second time; so as to judge the communication delay of each network link through the time difference.
S14, selecting the network link with the minimum time difference as a target link of the current network communication; the minimum time difference represents the minimum time delay, and the corresponding network link communication is the most stable.
And S15, switching the current network link to the target link so as to maintain the stability of the network in the current area to the maximum extent.
In some embodiments, the sending of the data packets of the multiple network links to the server, and the obtaining of the first time when the data packet is sent to the server, specifically include:
and respectively sending the data packets to the server for at least three times, and acquiring the first time when the data packets are sent, wherein the at least three times are the sending times of the data packets of each network link in the plurality of network links.
The implementation effectively avoids the influence caused by the network fluctuation of the network link at a certain moment by sending the data packet to the server for at least three times.
In some embodiments, said calculating a time difference between said first time and said second time comprises:
respectively calculating the time difference between the first time and the second time corresponding to each data packet in the at least three data packets;
and calculating the average time difference of each network link according to the time difference of each data packet. Specifically, the average time difference of the current network link is calculated according to the time differences of all data packets in the current time period on each link.
In the embodiment, the time difference of each data packet is calculated respectively, and the average time difference of each network link is calculated according to the time difference of the data packets, so that an error caused by network fluctuation at a certain moment is effectively avoided, and the network delay condition reflected by the obtained average time difference is closer to the actual condition.
In some embodiments, the selecting the network link with the smallest time difference as the target link of the current network communication includes:
respectively comparing the magnitude relation of the average time difference of each network link;
and selecting the network link with the minimum average time difference as a target link of the current network communication according to the comparison result.
In the embodiment, after comparing the magnitude relation of the average time differences of all network links, the network link with the smallest average time difference is selected as the target link of the current network communication, so that the influence caused by network fluctuation at a certain time is eliminated, and meanwhile, the stability of the network link in the communication process is effectively improved.
In some embodiments, before the step of calculating the time difference between the first time and the second time, the method further comprises the steps of:
and judging the communication states of the plurality of network links according to the receiving result of the data packet, wherein the communication states comprise a fault state and a normal state.
Specifically, when the client does not receive the current data packet returned by the server within a preset time period after sending the data packet to the server, it may be determined that a network link currently sending the data packet has a fault; when the client receives the current data packet returned by the server within the preset time period after the client sends the data packet to the server, the network link communication of the currently sent data packet can be judged to be normal.
In the embodiment, the network link is selected after the communication state of the network link is judged, so that the stability of network communication is maintained better.
In some embodiments, the selecting the network link with the minimum time difference as a target link of the current network communication specifically includes:
and when the communication state of the current network link is determined to be a fault state, selecting the network link with the minimum time difference from the rest network links with the normal communication state as a target link of the current network communication, wherein the rest network links are a subset of the plurality of network links.
The embodiment selects the network link with the minimum time difference from the network links with normal communication as the target link of the current network communication, thereby more effectively maintaining the stability of the network communication.
In some embodiments, when the above embodiments are applied to a specific network detection process, the processing steps are as shown in fig. 2:
step 1, judging whether a current network link is abnormal or not and whether the current network link can not be normally used or not;
step 2, if the current network link can be normally used, the current link is continuously used for communication;
step 3, if the current network link can not be used normally, starting the quality detection function of the three-wire network;
step 4, the client side sends data packets to the three-network quality detection server bound with the specific network link domain name respectively;
step 5, sending a data packet for three times to each network link, receiving the data packet returned by the quality detection server of the three networks, and calculating the average time delay;
and 6, comparing the average time delay of each network link, and then selecting the network link with the lowest time delay for switching connection so as to realize the network communication of the optimal link.
The embodiment of the invention provides a system for processing network detection data corresponding to the method shown in fig. 1, which comprises the following steps:
the sending and obtaining module is used for sending data packets of a plurality of network links to the server and obtaining first time when the data packets are sent to the server;
the receiving and obtaining module is used for receiving the data packet returned by the server and obtaining the second time when the data packet returned by the server is received;
a calculating module for calculating a time difference between the first time and the second time;
the selecting module is used for selecting the network link with the minimum time difference as a target link of the current network communication;
and the switching module is used for switching the current network link to the target link.
The content of the embodiment of the method of the invention is all applicable to the embodiment of the system, the function of the embodiment of the system is the same as the embodiment of the method, and the beneficial effect achieved by the embodiment of the system is the same as the beneficial effect achieved by the method.
The embodiment of the invention provides a processing system of network detection data, which comprises:
at least one memory for storing a program;
at least one processor for loading the program to execute the processing method of the network detection data.
The content of the embodiment of the method of the invention is all applicable to the embodiment of the system, the function of the embodiment of the system is the same as the embodiment of the method, and the beneficial effect achieved by the embodiment of the system is the same as the beneficial effect achieved by the method.
In addition, the embodiment of the present invention also provides a storage medium, in which processor-executable instructions are stored, and when the processor-executable instructions are executed by a processor, the processor-executable instructions are used for implementing the network detection data processing method.
In summary, the above embodiments provide a relatively stable network service for a user by sending data packets of a plurality of network links to a server and obtaining a first time when the data packets are sent to the server, receiving a data packet returned by the server and obtaining a second time when the data packet returned by the server is received, then calculating a time difference between the first time and the second time, then taking the network link with the smallest time difference as a target link of current network communication, and switching the current network link to the target link.
While the preferred embodiments of the present invention have been illustrated and described, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (10)
1. A processing method of network detection data is characterized by comprising the following steps:
sending data packets of a plurality of network links to a server, and acquiring first time when the data packets are sent to the server;
receiving a data packet returned by the server, and acquiring second time when the data packet returned by the server is received;
calculating a time difference between the first time and the second time;
selecting the network link with the minimum time difference as a target link of the current network communication;
and switching the current network link to the target link.
2. The method of claim 1, further comprising, before the step of calculating the time difference between the first time and the second time:
and judging the communication states of the plurality of network links according to the receiving result of the data packet, wherein the communication states comprise a fault state and a normal state.
3. The method for processing network detection data according to claim 1, wherein the sending of the data packets of the plurality of network links to the server to obtain the first time when the data packets are sent to the server specifically includes:
and respectively sending the data packets to the server for at least three times, and acquiring the first time when the data packets are sent, wherein the at least three times are the sending times of the data packets of each network link in the plurality of network links.
4. The method according to claim 3, wherein the calculating a time difference between the first time and the second time includes:
respectively calculating the time difference between the first time and the second time corresponding to each data packet in the at least three data packets;
and calculating the average time difference of each network link according to the time difference of each data packet.
5. The method according to claim 4, wherein the selecting the network link with the smallest time difference as the target link of the current network communication includes:
respectively comparing the magnitude relation of the average time difference of each network link;
and selecting the network link with the minimum average time difference as a target link of the current network communication according to the comparison result.
6. The method according to claim 2, wherein the selecting the network link with the smallest time difference as a target link for current network communication specifically comprises:
and when the communication state of the current network link is determined to be a fault state, selecting the network link with the minimum time difference from the rest network links with the normal communication state as a target link of the current network communication, wherein the rest network links are a subset of the plurality of network links.
7. The method as claimed in any one of claims 1 to 6, wherein the server is a quality detection server, and a domain name of the network link is bound to the quality detection server.
8. A system for processing network inspection data, comprising:
the sending and obtaining module is used for sending data packets of a plurality of network links to the server and obtaining first time when the data packets are sent to the server;
the receiving and obtaining module is used for receiving the data packet returned by the server and obtaining the second time when the data packet returned by the server is received;
a calculating module for calculating a time difference between the first time and the second time;
the selecting module is used for selecting the network link with the minimum time difference as a target link of the current network communication;
and the switching module is used for switching the current network link to the target link.
9. A system for processing network inspection data, comprising:
at least one memory for storing a program;
at least one processor configured to load the program to perform the method of processing network inspection data according to any one of claims 1 to 7.
10. A storage medium having stored therein processor-executable instructions, which when executed by a processor, are configured to implement a method of processing network detection data according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010382343.4A CN111669285A (en) | 2020-05-08 | 2020-05-08 | Network detection data processing method, system and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010382343.4A CN111669285A (en) | 2020-05-08 | 2020-05-08 | Network detection data processing method, system and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111669285A true CN111669285A (en) | 2020-09-15 |
Family
ID=72383017
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010382343.4A Pending CN111669285A (en) | 2020-05-08 | 2020-05-08 | Network detection data processing method, system and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111669285A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113422728A (en) * | 2021-06-22 | 2021-09-21 | 上海哔哩哔哩科技有限公司 | Method and device for selecting content distribution network link |
CN113660170A (en) * | 2021-07-28 | 2021-11-16 | 江西省湾流港智能科技有限公司 | Parking stall lock communication load allocation method and system, storage medium and computer equipment |
CN114553453A (en) * | 2020-11-25 | 2022-05-27 | 国网山东省电力公司济宁供电公司 | Reverse isolation state monitoring method and system, readable storage medium and server |
CN116760878A (en) * | 2023-08-21 | 2023-09-15 | 每日互动股份有限公司 | Processing method, device, equipment and medium for network connection and transmission |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015173240A1 (en) * | 2014-05-13 | 2015-11-19 | Cellxion Limited | Method and apparatus for transmission of data over a plurality of networks |
CN105101316A (en) * | 2015-07-10 | 2015-11-25 | 努比亚技术有限公司 | Data transmission method and device for multi-data channel |
CN109246003A (en) * | 2017-07-11 | 2019-01-18 | 阿里巴巴集团控股有限公司 | A kind of method and system carrying out network link switching |
CN109474528A (en) * | 2018-09-28 | 2019-03-15 | Oppo广东移动通信有限公司 | Communication connecting method, device, terminal device and computer-readable storage medium |
-
2020
- 2020-05-08 CN CN202010382343.4A patent/CN111669285A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015173240A1 (en) * | 2014-05-13 | 2015-11-19 | Cellxion Limited | Method and apparatus for transmission of data over a plurality of networks |
CN105101316A (en) * | 2015-07-10 | 2015-11-25 | 努比亚技术有限公司 | Data transmission method and device for multi-data channel |
CN109246003A (en) * | 2017-07-11 | 2019-01-18 | 阿里巴巴集团控股有限公司 | A kind of method and system carrying out network link switching |
CN109474528A (en) * | 2018-09-28 | 2019-03-15 | Oppo广东移动通信有限公司 | Communication connecting method, device, terminal device and computer-readable storage medium |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114553453A (en) * | 2020-11-25 | 2022-05-27 | 国网山东省电力公司济宁供电公司 | Reverse isolation state monitoring method and system, readable storage medium and server |
CN113422728A (en) * | 2021-06-22 | 2021-09-21 | 上海哔哩哔哩科技有限公司 | Method and device for selecting content distribution network link |
CN113660170A (en) * | 2021-07-28 | 2021-11-16 | 江西省湾流港智能科技有限公司 | Parking stall lock communication load allocation method and system, storage medium and computer equipment |
CN116760878A (en) * | 2023-08-21 | 2023-09-15 | 每日互动股份有限公司 | Processing method, device, equipment and medium for network connection and transmission |
CN116760878B (en) * | 2023-08-21 | 2023-12-01 | 每日互动股份有限公司 | Processing method, device, equipment and medium for network connection and transmission |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111669285A (en) | Network detection data processing method, system and storage medium | |
US20210337046A1 (en) | Intelligent scheduling method, terminal device, edge node cluster and intelligent scheduling system | |
US20060277303A1 (en) | Method to improve response time when clients use network services | |
CN109347998B (en) | Method and system for detecting IP address of DNS (Domain name Server) outlet server | |
US8423670B2 (en) | Accessing distributed services in a network | |
CN110519409B (en) | Domain name dynamic configuration method, device, equipment and storage medium | |
CN107613037B (en) | Domain name redirection method and system | |
CN102761461A (en) | Link health checking method and device | |
CN106130791B (en) | Cache equipment service capability traversal test system and method based on service quality | |
CN114363288A (en) | Message processing method and device, link load balancing equipment and storage medium | |
CN112261133A (en) | CDN node control method, device, server and storage medium | |
CN112291365A (en) | Access balance processing method and device, computer equipment and storage medium | |
US20080168030A1 (en) | Method and system for identifying and selecting a wireless device or network for connection | |
CN107332741B (en) | A kind of network detecting method, network detection device and intelligent terminal | |
CN111917717A (en) | Method and system for automatically analyzing industrial field protocol based on gateway identification | |
CN107517248B (en) | Network connection method and device based on SDK | |
CN107018088B (en) | Transmission link selection method and device | |
CN113722003A (en) | Method, device and equipment for adjusting working mode of PHY chip | |
CN113207146A (en) | Wireless communication network quality monitoring system and method | |
CN110380981B (en) | Flow distribution method and equipment | |
CN111064613B (en) | Network fault detection method and device | |
US20230179566A1 (en) | Method and Device for Switching Internet Access mode of Gateway Device | |
CN114448841B (en) | Network card testing method, device, equipment and medium | |
CN107743079B (en) | Line detection method, apparatus and computer-readable storage medium | |
US7962799B2 (en) | System and method for synchronizing test runs on separate systems |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200915 |
|
RJ01 | Rejection of invention patent application after publication |