[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2022042589A1 - Network data interruption detection method and apparatus, terminal device, and storage medium - Google Patents

Network data interruption detection method and apparatus, terminal device, and storage medium Download PDF

Info

Publication number
WO2022042589A1
WO2022042589A1 PCT/CN2021/114498 CN2021114498W WO2022042589A1 WO 2022042589 A1 WO2022042589 A1 WO 2022042589A1 CN 2021114498 W CN2021114498 W CN 2021114498W WO 2022042589 A1 WO2022042589 A1 WO 2022042589A1
Authority
WO
WIPO (PCT)
Prior art keywords
threshold
interruption
packets
detection
data
Prior art date
Application number
PCT/CN2021/114498
Other languages
French (fr)
Chinese (zh)
Inventor
萧儒鸿
Original Assignee
深圳市万普拉斯科技有限公司
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 深圳市万普拉斯科技有限公司 filed Critical 深圳市万普拉斯科技有限公司
Publication of WO2022042589A1 publication Critical patent/WO2022042589A1/en

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/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • 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/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0888Throughput

Definitions

  • the present application relates to the field of communication technologies, and in particular, to a method and device for detecting interruption of network data, a terminal device, and a storage medium.
  • the judgment of flow interruption is realized by periodically detecting the number of packets in the transmission process, which specifically includes the following steps: detecting whether the number of packets received in a single cycle is greater than 0; if the number of packets received is greater than 0; If it is greater than 0, it will enter the next cycle of detection; if the number of packets received in the current cycle is 0, and the number of sent packets is less than the threshold, the number of packets received in the current cycle will be accumulated to enter the next cycle If the number of packets received in the current cycle is 0, and the number of packets sent is greater than the threshold, it will be judged as a cut-off state, and the cut-off recovery process will be started.
  • the present application provides a method and apparatus, terminal device, and storage medium for detecting interruption of network data, so as to predict the occurrence of interruption in advance and perform interruption recovery in time.
  • the technical scheme of the present invention provides a method for detecting interruption of network data, comprising: counting packet traffic within a detection period, where the packet traffic is the difference between the number of outgoing packets and the number of arriving packets, and recording the round-trip delay of each packet; If the packet flow in the current detection period is less than the first threshold, the number of outgoing packets and arriving packets will be cleared, and the next detection period will be entered; if the packet flow in the current detection period is greater than or equal to the first threshold, the average of all received packets will be calculated.
  • Comparing the round-trip delay with the second threshold includes: if the average round-trip delay is greater than or equal to the second threshold, judging that the current data transmission state is a data interruption state; if the average round-trip delay is less than the second threshold, then The number of outgoing packets and the number of arriving packets are accumulated to the next detection period, and the next detection period is entered.
  • the method further includes: shortening the statistical time of the next detection period.
  • the statistical time of the detection cycle in the device use state is 1 min or the statistical time of the detection cycle in the standby state is 6 minutes.
  • accumulating the number of outgoing packets and the number of arriving packets to the next detection period, and after entering the next detection period it also includes judging that the average value of the round-trip delay is greater than or equal to the second threshold, and for the continuous detection of packets.
  • the number of times when the average round-trip delay is greater than or equal to the second threshold is counted; in response to the count reaching the set value, it is determined that the current data transmission state is a data cutoff state.
  • the range of the first threshold is 0-15.
  • the second threshold is the average of the round-trip delays, or a certain offset is added to the average of the round-trip delays.
  • the ratio of shortening the statistical time each time is 30% to 60%.
  • the ratio of shortening the statistics time is the same each time.
  • the ratio of shortening the statistics time is gradually increased each time.
  • the statistical time of the detection period is restored to the initial value.
  • the method further includes: counting the number of times that the statistical time is continuously shortened, and when the count reaches a set value, judging that the current data transmission state is a data cutoff state.
  • the set value is an integer greater than or equal to 2.
  • the count has not yet reached the set value, if it is detected again that the packet traffic is less than the first threshold, or the current data transmission state is a data cutoff state, restore the statistical time of the detection period to the initial value, and Reset the count to zero.
  • it also includes: recording network parameters and the average value of round-trip delays of several packets before and after the data flow is cut off each time; , each preset second threshold corresponding to each network parameter is formed; in the detection process, the corresponding preset second threshold is selected according to the current network parameter as the second threshold of the current detection period.
  • a disconnection recovery process is started, and the statistical time of the detection period is restored to an initial value.
  • the technical solution of the present invention also provides a network data interruption detection device, comprising: a transceiver module for sending outgoing packets and receiving arriving packets; a detection module for periodically counting packet traffic, the packet traffic is the outgoing packet The difference between the number of packets and the number of arriving packets, and record the round-trip delay of each arriving packet; the first comparison module is used to compare the packet traffic counted by the detection module in the current detection period with the first threshold, if the current detection period If the packet flow rate is less than the first threshold, the number of outgoing packets and the number of arriving packets will be cleared, and the detection module will be controlled to enter the next detection period; the second comparison module is used for the packet flow rate in the current detection period to be greater than or equal to the first detection period.
  • the average round-trip delay of all received packets is compared with the second threshold. If the average round-trip delay is greater than or equal to the second threshold, a data interruption signal is formed. If the average round-trip delay is less than the second If the threshold is set, the number of outgoing packets and the number of arriving packets are accumulated to the next detection period, and the detection module is controlled to enter the next detection period.
  • a counting module is also included, which is used to count the number of times that the detection module continuously shortens the statistical time; the second comparison module is used to form a data cut-off signal when the count of the counting module reaches a set value.
  • a current interruption recovery module is further included, configured to start a current interruption recovery process after receiving the current interruption state signal formed by the second comparison module, and the detection module is used to restore the statistical time of the detection period to an initial value.
  • the technical solution of the present invention also provides a terminal device, comprising: a processor;
  • a memory where a computer program that can be executed by the processor is stored in the memory, and when the computer program is executed by the processor, the steps of any one of the foregoing methods for detecting network data interruption can be implemented.
  • the technical solution of the present invention also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, implements the steps of any of the above-mentioned data flow interruption detection methods.
  • the network data interruption detection method of the present invention detects whether the data is interrupted from the perspective of the difference in the number of packets and the transmission delay through the packet flow and the average value of the RTT, which can improve the accuracy of the data interruption and discover the data interruption in time;
  • the statistical time of the detection cycle can be shortened, the number of detections can be increased within the same time period, and the average value of packet traffic and TRR can be quickly refreshed. Once the data interruption occurs, it can be detected immediately. Reduce the time it takes to detect a data outage.
  • the current interruption recovery process is directly started, and when the data interruption is about to occur, the interruption recovery is performed in advance to avoid the occurrence of data interruption and improve the user experience.
  • FIG. 1 is a schematic flowchart of a network data interruption detection process according to an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a network data interruption detection process according to an embodiment of the present application
  • FIG. 3 is a schematic flowchart of a network data interruption detection process according to an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of a network data interruption detection process according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a network data interruption detection device according to an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a network data interruption detection apparatus according to an embodiment of the present application.
  • FIG. 1 is a schematic flowchart of a method for detecting interruption of network data flow according to an embodiment of the present invention.
  • the network data interruption detection method includes the following steps:
  • Step S101 Count the packet traffic in a detection period, and record the round-trip delay of each packet.
  • the round-trip delay (RTT, Round Trip Time) of the arrival packet is the round-trip delay time of the packet, which specifically represents the total elapsed time from when the sender sends data to when the sender receives the acknowledgment from the receiver. form of transmission.
  • outgoing packets are continuously sent out and “arrival packets” are received.
  • the numbers of outgoing packets and arriving packets are counted, so as to obtain the packet flow, where the packet flow is the difference between the number of outgoing packets and the number of arriving packets.
  • the RTT of each packet is also recorded.
  • the TRR of the sent packet can be calculated according to the sending time of the sent packet and the time of receiving the acknowledgement from the receiving end; the RTT of the arriving packet can be calculated according to the sending time in the arriving packet and the current time when the packet is received .
  • the statistical time in the detection cycle is short, so that the data interruption state can be detected in time; while when the device is in the standby state, such as when the screen of the mobile phone is black, the statistical time in the detection cycle is short.
  • the statistical time can be longer to reduce power consumption.
  • settings may be made according to specific conditions.
  • Step S102 Determine whether the packet flow in the current detection period is greater than or equal to a first threshold.
  • the first threshold may be set according to a statistical average value of packet traffic during multiple data interruptions, and according to a requirement for detection accuracy of data interruptions. In some embodiments, the first threshold may range from 0 to 15.
  • step S103 the number of outgoing packets and the number of arriving packets are cleared, and the process returns to step S101 to enter the next detection cycle.
  • the packet flow is less than the first threshold, it indicates that the difference between the number of received packets and the number of sent packets is small, the data transmission is relatively smooth, and there is no data interruption in the current detection cycle, so the next cycle of detection is directly entered. Process.
  • step S104 compare the average round-trip delay of all packets with the second threshold, and determine whether the average delay is greater than or equal to the second threshold. .
  • the second threshold may be obtained by calculating the average value of RTT statistics when data is cut off for multiple times. This method is more suitable for environments with relatively stable network parameters.
  • RTT is related to network environment parameters, such as network parameters such as bandwidth, router parameters, transmission frequency band, etc.
  • the network parameters may change frequently, and the second threshold needs to be dynamically adjusted following the changes of the environment parameters.
  • the network parameters and the average value of the round-trip delays of several packets before and after the data interruption are recorded every time the data is interrupted; thus, the corresponding relationship between the network parameters and the average value of the RTT can be obtained when the data is interrupted. , thereby forming each preset second threshold corresponding to each network parameter.
  • the preset second threshold may directly use the average value of the RTT, or may add a certain offset on the basis of the average value of the RTT.
  • the corresponding preset second threshold can be selected according to the current network parameters as the second threshold of the current detection period; when the network parameters change, the second threshold also changes accordingly .
  • step S104 if the average round-trip delay is greater than or equal to the second threshold, it is determined that the current data transmission state is a data cutoff state.
  • the packet traffic is greater than or equal to the first threshold, and the average round-trip delay is greater than or equal to the second threshold, it means that during the data transmission process, the amount of data sent is greater than the amount of received data, and the network delay is large, so effective data transmission cannot be performed.
  • the network is in a data cutoff state.
  • step S105 the current interruption recovery process is started.
  • the current interruption recovery process may include, but is not limited to, restarting the device, re-establishing a network path, switching signal frequency bands, etc. Those skilled in the art may adopt an appropriate current interruption recovery process, which will not be repeated here.
  • step S105 and the data interruption continue to return to step S101 to re-enter the data interruption detection of the next detection cycle and the statistical time of the next cycle is set to the initial value.
  • step S104 if the average round-trip delay is less than the second threshold, step S106 is performed: the number of outgoing packets and the number of arriving packets are accumulated to the next detection period, and step S101 is performed to enter the next detection period.
  • step S106 is performed: the number of outgoing packets and the number of arriving packets are accumulated to the next detection period, and step S101 is performed to enter the next detection period.
  • the number of outgoing packets in the last detection cycle is a1
  • the number of arriving packets is b1
  • the number of outgoing packets corresponding to the current detection cycle is a2
  • the number of arriving packets is b2, where a2 is the new number of outgoing packets in the current detection cycle , b2 is the number of newly arrived packets in the current detection period, and the packet flow is: a2-b1.
  • whether the data flow is interrupted is detected from the perspective of the difference in the number of packets and the transmission delay through the average value of the packet flow and the RTT, which can improve the accuracy of the data flow interruption and detect the data flow interruption in time.
  • FIG. 2 is a schematic flowchart of a method for detecting interruption of network data flow according to an embodiment of the present invention.
  • step S104 when the packet traffic is less than the first threshold and the average RTT value is less than the second threshold, although the data flow has not been interrupted, the data transmission is not smooth. Congestion and other situations that are prone to interruptions in time.
  • step S201 is added: shortening the statistics of the next detection period time. Shortening the statistical time can increase the number of detections and judgments within the same time period, quickly refresh the average value of packet traffic and TRR, and make judgments. Once data interruption occurs, it can be detected immediately, thereby shortening the time it takes to detect data interruption. .
  • the sequence of the step S201 and the step S106 may be exchanged or performed simultaneously, and there is no strict sequence requirement for the step S201 and the step S106.
  • the statistical time of the next detection period is shortened again. Since the current interruption is about to occur, the later the detection time is, the shorter the detection time of each detection cycle is, the faster the detection data can be updated, and the detection time can be shortened.
  • the average RTT value is greater than or equal to the second threshold within a certain detection period, the data interruption state is detected, and the process proceeds to step S105; or the packet flow rate is less than the threshold value, and the data transmission returns to normal (for example, a short-term congestion relief), the detection period is resumed the statistical time to the initial value.
  • the ratio of shortening the statistical time is the same each time, which may be in the range of 30% to 60%, preferably, it may be 50%.
  • the ratio of shortening the statistical time can also be increased successively, for example, the first time shortens by 30%, the second time shortens by 50%, the third time shortens by 60%, and so on.
  • FIG. 3 is a schematic flowchart of a data interruption detection process according to another embodiment of the present invention.
  • the method further includes:
  • Step S301 count the number of times that the statistical time is continuously shortened
  • Step S302 determine whether the count reaches the set value, if not, continue to perform the detection of the next detection cycle; if so, determine that the current data transmission state is the data cutoff state, and execute step S105: start the cutoff recovery process.
  • the set value may be an integer greater than 2, and preferably, the set value may be 3, that is, after the statistical time is shortened three times in a row, the current interruption recovery process is started.
  • the packet traffic caused by network congestion is larger than the threshold, and it will be eliminated in a short time.
  • the packet traffic is larger than the threshold for many times in a row, it will not be eliminated in a short time, even if the average RTT is still less than the second threshold.
  • the real data cutoff is achieved, but the data cutoff will eventually occur. Therefore, when the count reaches the set value, the cutoff recovery process will be started directly. When the data cutoff is about to occur, the cutoff recovery will be carried out in advance. , to avoid data interruption and improve user experience.
  • the next detection cycle is entered. If it is detected that the packet flow is less than the first threshold again, or the current data transmission state is a data interruption state, the statistical time of the detection cycle is restored to the initial value. , and resets the count to zero.
  • FIG. 4 is a schematic flowchart of a method for detecting network data interruption according to another embodiment of the present invention.
  • step S401 is performed to count the number of times that the average RTT of the packets is continuously detected to be greater than or equal to the second threshold.
  • step S401 and step S106 are not required, and step S401 may be performed after step S106, before or at the same time.
  • the above-mentioned network data interruption detection method can start the interruption recovery process in advance before the interruption state occurs, repair the network state in time, and improve the user experience.
  • the embodiment of the present invention also provides a network data interruption detection device.
  • FIG. 5 is a schematic structural diagram of a network data interruption detection apparatus according to an embodiment of the present invention.
  • the network data interruption detection device includes: a transceiver module 501 , a detection module 502 , a first comparison module 503 and a second comparison module 504 .
  • the transceiver module 501 is used for sending outgoing packets and receiving incoming packets.
  • the detection module 502 is used to periodically count packet traffic, where the packet traffic is the difference between the number of outgoing packets and the number of arriving packets, and records the round-trip delay RTT of each packet.
  • the detection module 502 obtains the packet flow and the RTT of the corresponding packet by counting the number of outgoing packets and arriving packets within one end of the time.
  • the statistical time in the detection cycle is short, so that the data interruption state can be detected in time; while when the device is in the standby state, such as when the screen of the mobile phone is black, the statistical time in the detection cycle is short. The statistical time can be longer to reduce power consumption.
  • settings may be made according to specific conditions.
  • the first comparison module 503 is configured to compare the packet flow counted by the detection module in the current detection period with the first threshold, and if the packet flow in the current detection period is less than the first threshold, control the detection The module enters the next detection cycle.
  • the second comparison module 504 is configured to compare the average round-trip delay RTT of all arriving packets with the second threshold when the packet traffic in the current detection period is greater than or equal to the first threshold, if the average round-trip delay is greater than or equal to If the average round-trip delay is less than the second threshold, the number of outgoing packets and the number of arriving packets will be accumulated to the next detection period, and the detection module will be controlled to enter the next detection period. cycle.
  • the second comparison module 504 of the network data interruption detection device may further include a threshold adjustment unit, which is used to record the network parameters during each data interruption and the average value of round-trip delays of several packets before and after the data interruption, and Each preset second threshold value corresponding to each network parameter is formed according to the network parameter and the average value when the data flow is cut off each time, and during the detection process, the corresponding preset second threshold value is selected according to the current network parameter , as the second threshold of the current detection period. When the network parameters change, the second threshold also changes accordingly.
  • the second comparison module 504 is configured to control the detection module 502 to shorten the statistical time of the next detection cycle when the average round-trip delay RTT is less than a second threshold.
  • the ratio of shortening the statistical time is 30% to 60% each time. In some embodiments, the ratio of shortening the statistical time is the same each time, and preferably, it may be 50%. In other embodiments, the ratio of shortening the statistical time can also be increased successively, for example, the first time shortens by 30%, the second time shortens by 50%, the third time shortens by 60%, and so on.
  • the first comparison module 503 is further configured to control the detection module to restore the statistical time of the detection cycle to the initial value when the packet flow is less than the first threshold, so as to restart detection; the second comparison module 504 is in the process of forming data interruption. After the signal is received, the detection module is controlled to restore the statistical time of the detection cycle to the initial value.
  • the network data disconnection detection device further includes: a disconnection recovery module 505, after receiving the disconnection state signal formed by the second comparison module 504, starts a disconnection recovery process to perform network repair .
  • FIG. 6 is a schematic structural diagram of a network data interruption detection apparatus according to another embodiment of the present invention.
  • the network data interruption detection device further includes a counting module 601 .
  • the counting module 601 is used to count the number of times that the detection module 502 continuously shortens the statistical time, or when the second comparison module 504 compares and obtains that the RTT average value is greater than or equal to the second threshold, count; the second comparison module 504 is further configured to form a data cut-off signal when the count of the counting module 601 reaches a set value.
  • the set value is an integer of 2 or more.
  • the detection module 501 restores the statistical time of the detection cycle. To the initial value, the counting module 601 resets the count to zero.
  • An embodiment of the present invention further provides a terminal device, including: a processor; and a memory, where a computer program that can be executed by the processor is stored in the memory, and the computer program can realize the above when executed by the processor The steps of the network data interruption detection method described in the embodiment.
  • the terminal device may be an electronic terminal device with a network data transmission function, such as a mobile phone, an Ipad, a computer, or a smart TV, and the terminal device can detect the disconnection state in time and repair it.
  • a network data transmission function such as a mobile phone, an Ipad, a computer, or a smart TV
  • Embodiments of the present invention further provide a computer-readable storage medium, storing a computer program, and when the computer program is executed by a processor, the steps of the network data interruption detection method described in the foregoing embodiments can be implemented.

Landscapes

  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A network data interruption detection method and apparatus, a terminal device, and a storage medium. The method comprises: making statistics of the packet flow within a detection cycle, the packet flow being a difference between the number of sent packets and the number of arrived packets, and recording round-trip delays of the packets; if the packet flow within a current detection cycle is less than a first threshold, cleaning the number of sent packets and the number of arrived packets to enter the next detection cycle; and if the packet flow within the current detection cycle is greater than or equal to the first threshold, comparing the average round-trip delay of all the received packets with a second threshold, comprising: if the average round-trip delay is greater than or equal to the second threshold, determining that a current data transmission state is a data interruption state; and if the average round-trip delay is less than the second threshold, accumulating the number of sent packets and the number of arrived packets till the next detection cycle, and entering the next detection cycle.

Description

网络数据断流检测方法及装置、终端设备和存储介质Network data interruption detection method and device, terminal device and storage medium 【技术领域】【Technical field】
本申请涉及通信技术领域,具体涉及一种网络数据断流检测方法及装置、终端设备和存储介质。The present application relates to the field of communication technologies, and in particular, to a method and device for detecting interruption of network data, a terminal device, and a storage medium.
【背景技术】【Background technique】
在实时传输数据的过程中,由于网络的不稳定性,导致经常会发生数据断流的情况。因此,需要及时判断数据断流的发生,及时进行断流恢复以确保网络数据传输的正常进行。In the process of real-time data transmission, data interruption often occurs due to network instability. Therefore, it is necessary to judge the occurrence of data interruption in time, and perform interruption recovery in time to ensure the normal progress of network data transmission.
现有技术中,通过周期性的检测传输过程中的封包个数来实现断流的判断,具体包括如下步骤:检测单个周期内接受到的封包个数是否大于0;若接收到的封包个数大于0,则进入下一周期的检测;若当前周期内接收到的封包个数为0,而送出的封包个数小于阈值时,对当前周期内接收到的封包个数进行累积进入下一周期的检查;若当前周期内接收到的封包个数为0,而送出的封包个数大于阈值,则判断为断流状态,启动断流恢复流程。In the prior art, the judgment of flow interruption is realized by periodically detecting the number of packets in the transmission process, which specifically includes the following steps: detecting whether the number of packets received in a single cycle is greater than 0; if the number of packets received is greater than 0; If it is greater than 0, it will enter the next cycle of detection; if the number of packets received in the current cycle is 0, and the number of sent packets is less than the threshold, the number of packets received in the current cycle will be accumulated to enter the next cycle If the number of packets received in the current cycle is 0, and the number of packets sent is greater than the threshold, it will be judged as a cut-off state, and the cut-off recovery process will be started.
由于网络的多变性,有些数据断流的现象是渐进式发生的。现有的断流判断过程中,仅利用封包的个数进行判断,无法判断即将进入断流的状态,必须在下一周期内,接收到的封包个数为0,且送出封包个数超过阈值时,才会常会恢复数据断流。在数据完全断流的状态之前,数据传输延迟或阻塞状态下,网络数据传输效率较差,无法得到有效改善。Due to the variability of the network, some data interruptions occur gradually. In the existing flow interruption judgment process, only the number of packets is used for judgment, and it is impossible to judge the state of entering the flow interruption. In the next cycle, the number of received packets is 0, and the number of sent packets exceeds the threshold. , the data interruption will often be restored. Before the data flow is completely cut off, the network data transmission efficiency is poor and cannot be effectively improved when the data transmission is delayed or blocked.
因此,如何提前预断出断流状态的发生,以便及时进行断流恢复以提高用户体验,是目前亟待解决的问题。Therefore, how to pre-predict the occurrence of the outage state in advance, so that the outage recovery can be performed in time to improve the user experience, is an urgent problem to be solved at present.
【发明内容】[Content of the invention]
鉴于此,本申请提供一种网络数据断流检测方法及装置、终端设备和存储介质,以提前预判断断流的发生,及时进行断流恢复。In view of this, the present application provides a method and apparatus, terminal device, and storage medium for detecting interruption of network data, so as to predict the occurrence of interruption in advance and perform interruption recovery in time.
本发明的技术方案提供一种网络数据断流检测方法,包括:在一检测周期内统计封包流量,所述封包流量为送出封包数和到达封包数之差,并记录各个封包的往返时延;若当前检测周期内的封包流量小于第一阈值,则清除送出封 包数和到达封包数,进入下一检测周期;若当前检测周期内的封包流量大于等于第一阈值时,将所有接收封包的平均往返时延与第二阈值进行比较,包括:若所述平均往返时延大于等于第二阈值,则判断当前数据传输状态为数据断流状态;若所述平均往返时延小于第二阈值,则累积所述送出封包数和到达封包数至下一检测周期,并进入下一检测周期。The technical scheme of the present invention provides a method for detecting interruption of network data, comprising: counting packet traffic within a detection period, where the packet traffic is the difference between the number of outgoing packets and the number of arriving packets, and recording the round-trip delay of each packet; If the packet flow in the current detection period is less than the first threshold, the number of outgoing packets and arriving packets will be cleared, and the next detection period will be entered; if the packet flow in the current detection period is greater than or equal to the first threshold, the average of all received packets will be calculated. Comparing the round-trip delay with the second threshold includes: if the average round-trip delay is greater than or equal to the second threshold, judging that the current data transmission state is a data interruption state; if the average round-trip delay is less than the second threshold, then The number of outgoing packets and the number of arriving packets are accumulated to the next detection period, and the next detection period is entered.
可选的,若当前检测周期内的封包流量大于等于第一阈值且所述平均往返时延小于第二阈值时,还包括:缩短下一检测周期的统计时间。Optionally, if the packet traffic in the current detection period is greater than or equal to the first threshold and the average round-trip delay is less than the second threshold, the method further includes: shortening the statistical time of the next detection period.
可选的,设备使用状态下的检测周期的统计时间为1min或待机状态下的检测周期的统计时间为6min。Optionally, the statistical time of the detection cycle in the device use state is 1 min or the statistical time of the detection cycle in the standby state is 6 minutes.
可选的,累积所述送出封包数和到达封包数至下一检测周期,并进入下一检测周期之后,还包括判断往返时延的平均值大于等于第二阈值后,对连续检测到封包的平均往返时延大于等于第二阈值的次数进行计数;响应于计数达到设定值,则判断当前数据传输状态为数据断流状态。Optionally, accumulating the number of outgoing packets and the number of arriving packets to the next detection period, and after entering the next detection period, it also includes judging that the average value of the round-trip delay is greater than or equal to the second threshold, and for the continuous detection of packets. The number of times when the average round-trip delay is greater than or equal to the second threshold is counted; in response to the count reaching the set value, it is determined that the current data transmission state is a data cutoff state.
可选的,第一阈值的范围为0~15。Optionally, the range of the first threshold is 0-15.
可选的,第二阈值为所述往返时延的平均值,或者为往返时延的平均值基础上增加一定的偏移量。Optionally, the second threshold is the average of the round-trip delays, or a certain offset is added to the average of the round-trip delays.
可选的,每次缩短统计时间的比例为30%~60%。Optionally, the ratio of shortening the statistical time each time is 30% to 60%.
可选的,每次缩短统计时间的比例相同。Optionally, the ratio of shortening the statistics time is the same each time.
可选的,每次缩短统计时间的比例逐次提高。Optionally, the ratio of shortening the statistics time is gradually increased each time.
可选的,当再次检测到封包流量小于第一阈值,或者判断当前数据传输状态为数据断流状态后,恢复检测周期的统计时间至初始值。Optionally, when it is detected again that the packet traffic is less than the first threshold, or it is determined that the current data transmission state is a data cutoff state, the statistical time of the detection period is restored to the initial value.
可选的,还包括:对连续缩短统计时间的次数进行计数,当计数达到设定值时,判断当前数据传输状态为数据断流状态。Optionally, the method further includes: counting the number of times that the statistical time is continuously shortened, and when the count reaches a set value, judging that the current data transmission state is a data cutoff state.
可选的,所述设定值为2以上的整数。Optionally, the set value is an integer greater than or equal to 2.
可选的,当计数还未达到所述设定值时,若再次检测到封包流量小于第一阈值,或者当前数据传输状态为数据断流状态后,恢复检测周期的统计时间至初始值,且将计数归零。Optionally, when the count has not yet reached the set value, if it is detected again that the packet traffic is less than the first threshold, or the current data transmission state is a data cutoff state, restore the statistical time of the detection period to the initial value, and Reset the count to zero.
可选的,还包括:记录每次数据断流时的网络参数以及数据断流前后的若干封包的往返时延的平均值;根据每次数据断流时的所述网络参数和所述平均值,形成与各个网络参数对应的各个预设第二阈值;在检测过程中,根据当前 网络参数选择对应的预设第二阈值,作为当前检测周期的第二阈值。Optionally, it also includes: recording network parameters and the average value of round-trip delays of several packets before and after the data flow is cut off each time; , each preset second threshold corresponding to each network parameter is formed; in the detection process, the corresponding preset second threshold is selected according to the current network parameter as the second threshold of the current detection period.
可选的,判断为数据断流状态后,启动断流恢复流程,且恢复检测周期的统计时间至初始值。Optionally, after it is determined that the data is in a disconnected state, a disconnection recovery process is started, and the statistical time of the detection period is restored to an initial value.
本发明的技术方案还提供一种网络数据断流检测装置,包括:收发模块,用于发送送出封包和接收到达封包;检测模块,用于周期性的统计封包流量,所述封包流量为送出封包数和到达封包数之差,并记录各个到达封包的往返时延;第一比较模块,用于将所述检测模块在当前检测周期内统计的封包流量与第一阈值进行比较,若当前检测周期内的封包流量小于所述第一阈值,则清除送出封包数和到达封包数,控制所述检测模块进入下一检测周期;第二比较模块,用于在当前检测周期内的封包流量大于等于第一阈值时,将所有接收封包的平均往返时延与第二阈值进行比较,若所述平均往返时延大于等于第二阈值,则形成数据断流信号,若所述平均往返时延小于第二阈值,则累积所述送出封包数和到达封包数至下一检测周期,并控制所述检测模块进入下一检测周期。The technical solution of the present invention also provides a network data interruption detection device, comprising: a transceiver module for sending outgoing packets and receiving arriving packets; a detection module for periodically counting packet traffic, the packet traffic is the outgoing packet The difference between the number of packets and the number of arriving packets, and record the round-trip delay of each arriving packet; the first comparison module is used to compare the packet traffic counted by the detection module in the current detection period with the first threshold, if the current detection period If the packet flow rate is less than the first threshold, the number of outgoing packets and the number of arriving packets will be cleared, and the detection module will be controlled to enter the next detection period; the second comparison module is used for the packet flow rate in the current detection period to be greater than or equal to the first detection period. When a threshold is used, the average round-trip delay of all received packets is compared with the second threshold. If the average round-trip delay is greater than or equal to the second threshold, a data interruption signal is formed. If the average round-trip delay is less than the second If the threshold is set, the number of outgoing packets and the number of arriving packets are accumulated to the next detection period, and the detection module is controlled to enter the next detection period.
可选的,还包括计数模块,用于对检测模块连续缩短统计时间的次数进行计数;第二比较模块用于当计数模块的计数达到设定值时,形成数据断流信号。Optionally, a counting module is also included, which is used to count the number of times that the detection module continuously shortens the statistical time; the second comparison module is used to form a data cut-off signal when the count of the counting module reaches a set value.
可选的,还包括断流恢复模块,用于在接收到第二比较模块形成的断流状态信号后,启动断流恢复流程,检测模块用于恢复检测周期的统计时间至初始值。Optionally, a current interruption recovery module is further included, configured to start a current interruption recovery process after receiving the current interruption state signal formed by the second comparison module, and the detection module is used to restore the statistical time of the detection period to an initial value.
本发明的技术方案还提供一种终端设备,包括:处理器;The technical solution of the present invention also provides a terminal device, comprising: a processor;
存储器,所述存储器内存储有能够被所述处理器运行的计算机程序,所述计算机程序被所述处理器运行时能够实现上述任一项所述的网络数据断流检测方法的步骤。A memory, where a computer program that can be executed by the processor is stored in the memory, and when the computer program is executed by the processor, the steps of any one of the foregoing methods for detecting network data interruption can be implemented.
本发明的技术方案还提供一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现上述任一项所述的数据断流检测方法的步骤。The technical solution of the present invention also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, implements the steps of any of the above-mentioned data flow interruption detection methods.
本发明的网络数据断流检测方法通过封包流量和RTT平均值从封包数量差以及传送时延两个角度对数据是否断流进行检测,能够提高数据断流的准确性,及时发现数据断流;The network data interruption detection method of the present invention detects whether the data is interrupted from the perspective of the difference in the number of packets and the transmission delay through the packet flow and the average value of the RTT, which can improve the accuracy of the data interruption and discover the data interruption in time;
进一步的,在即将发生数据断流时,缩短检测周期的统计时间,能够在相同时间内,增加检测的次数,快速刷新封包流量和TRR平均值,一旦数据断流 发生,能够立刻检测发现,从而缩短检测到数据断流所花的时间。Further, when data interruption is about to occur, the statistical time of the detection cycle can be shortened, the number of detections can be increased within the same time period, and the average value of packet traffic and TRR can be quickly refreshed. Once the data interruption occurs, it can be detected immediately. Reduce the time it takes to detect a data outage.
进一步的,在缩短统计时间的次数达到设定值后,就直接启动断流恢复流程,在数据断流即将发生时,就提前进行断流恢复,避免发生数据断流,提高用户体验。Further, after the number of shortening the statistical time reaches the set value, the current interruption recovery process is directly started, and when the data interruption is about to occur, the interruption recovery is performed in advance to avoid the occurrence of data interruption and improve the user experience.
【附图说明】【Description of drawings】
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained from these drawings without creative effort.
图1是本申请一实施例的网络数据断流检测过程的流程示意图;FIG. 1 is a schematic flowchart of a network data interruption detection process according to an embodiment of the present application;
图2是本申请一实施例的网络数据断流检测过程的流程示意图;FIG. 2 is a schematic flowchart of a network data interruption detection process according to an embodiment of the present application;
图3是本申请一实施例的网络数据断流检测过程的流程示意图;FIG. 3 is a schematic flowchart of a network data interruption detection process according to an embodiment of the present application;
图4是本申请一实施例的网络数据断流检测过程的流程示意图;FIG. 4 is a schematic flowchart of a network data interruption detection process according to an embodiment of the present application;
图5是本申请一实施例的网络数据断流检测装置的结构示意图;FIG. 5 is a schematic structural diagram of a network data interruption detection device according to an embodiment of the present application;
图6是本申请一实施例的网络数据断流检测装置的结构示意图。FIG. 6 is a schematic structural diagram of a network data interruption detection apparatus according to an embodiment of the present application.
【具体实施方式】【detailed description】
下面结合附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请一部分实施例,而非全部实施例。基于本申请中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。在不冲突的情况下,下述各个实施例及其技术特征可以相互组合。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of this application. In the case of no conflict, the following various embodiments and their technical features can be combined with each other.
请参考图1,为本发明一实施例的网络数据断流检测方法的流程示意图。Please refer to FIG. 1 , which is a schematic flowchart of a method for detecting interruption of network data flow according to an embodiment of the present invention.
该实施例中,所述网络数据断流检测方法包括如下步骤:In this embodiment, the network data interruption detection method includes the following steps:
步骤S101:在一检测周期内统计封包流量,并记录各个封包的往返时延。Step S101: Count the packet traffic in a detection period, and record the round-trip delay of each packet.
所述到达封包的往返时延(RTT,Round Trip Time)为封包往返延迟的时间,具体表示从发送端发送数据开始,到发送端收到来自接收端的确认信息,总共经历的时间,数据以封包的形式进行传输。The round-trip delay (RTT, Round Trip Time) of the arrival packet is the round-trip delay time of the packet, which specifically represents the total elapsed time from when the sender sends data to when the sender receives the acknowledgment from the receiver. form of transmission.
在进行数据传输的过程中,会不断向外发送“送出封包”以及接收到“到 达封包”。在一个检测周期内,统计送出封包和到达封包的数量,从而获得封包流量,所述封包流量为送出封包数和到达封包数之差。In the process of data transmission, "outgoing packets" are continuously sent out and "arrival packets" are received. In one detection period, the numbers of outgoing packets and arriving packets are counted, so as to obtain the packet flow, where the packet flow is the difference between the number of outgoing packets and the number of arriving packets.
在统计封包流量的同时,还对各个封包的RTT进行记录。在一些实施例中,可以根据送出封包的发送时刻和接收到接收端的确认的时刻,计算送出封包的TRR;可以根据到达封包内的发送时刻和接收到封包的当前时刻,计算得到到达封包的RTT。While the packet traffic is counted, the RTT of each packet is also recorded. In some embodiments, the TRR of the sent packet can be calculated according to the sending time of the sent packet and the time of receiving the acknowledgement from the receiving end; the RTT of the arriving packet can be calculated according to the sending time in the arriving packet and the current time when the packet is received .
在设备处于使用状态下,例如手机亮屏状态下,检测周期内的统计时间较短,以便及时检测到数据断流状态;而在设备处于待机状态下,例如手机黑屏状态下,检测周期内的统计时间可以较长,以降低功耗。When the device is in use, such as when the screen of the mobile phone is on, the statistical time in the detection cycle is short, so that the data interruption state can be detected in time; while when the device is in the standby state, such as when the screen of the mobile phone is black, the statistical time in the detection cycle is short. The statistical time can be longer to reduce power consumption.
在一个实施例中,设备使用状态下的检测周期的统计时间T1=1min,每隔1分钟,检测这1分钟内的封包流量和RTT;待机状态下的检测周期的统计时间T2=6min,每隔6分钟,检测这6分钟内的封包流量和RTT。在其他实施例中,可以根据具体情况,进行设置。In one embodiment, the statistical time T1=1min of the detection period in the device use state, and every 1 minute, the packet traffic and RTT within the 1 minute are detected; the statistical time of the detection period in the standby state is T2=6min, every 1 minute Every 6 minutes, check the packet traffic and RTT within these 6 minutes. In other embodiments, settings may be made according to specific conditions.
步骤S102:判断当前检测周期内的封包流量是否大于等于第一阈值。Step S102: Determine whether the packet flow in the current detection period is greater than or equal to a first threshold.
所述第一阈值可以根据多次数据断流时的封包流量的统计平均值,根据对于数据断流的检测准确性的要求进行设置。在一些实施例中,所述第一阈值的范围可以为0~15。The first threshold may be set according to a statistical average value of packet traffic during multiple data interruptions, and according to a requirement for detection accuracy of data interruptions. In some embodiments, the first threshold may range from 0 to 15.
若否,则执行步骤S103:清除送出封包数和到达封包数,并返回步骤S101,进入下一检测周期。封包流量小于第一阈值的情况下,表明接收到的封包数量和发送的封包数量差异较小,数据传输较为通畅,当前检测周期内没有发生数据断流的问题,因此直接进入下一周期的检测过程。If not, step S103 is performed: the number of outgoing packets and the number of arriving packets are cleared, and the process returns to step S101 to enter the next detection cycle. When the packet flow is less than the first threshold, it indicates that the difference between the number of received packets and the number of sent packets is small, the data transmission is relatively smooth, and there is no data interruption in the current detection cycle, so the next cycle of detection is directly entered. Process.
若当前检测周期内的封包流量大于等于第一阈值时,表明送出封包的数量和到达封包的数量差异较大,当前周期内数据传输通畅度较低,存在数据包丢失,可能即将发生数据断流、已经发生数据断流或者数据拥塞等多种情况,需要进行进一步的判断,因此执行步骤S104:将所有封包的平均往返时延与第二阈值进行比较,判断平均时延是否大于等于第二阈值。If the packet flow in the current detection period is greater than or equal to the first threshold, it indicates that the number of outgoing packets and the number of arriving packets are quite different, the smoothness of data transmission in the current period is low, there is data packet loss, and data flow may be about to be interrupted , data interruption or data congestion and other situations have occurred, and further judgment is required, so step S104 is performed: compare the average round-trip delay of all packets with the second threshold, and determine whether the average delay is greater than or equal to the second threshold. .
在一些实施例中,所述第二阈值可以通过对多次数据断流时的RTT统计平均值得到。这种方式更适用于网络参数较为稳定的环境。In some embodiments, the second threshold may be obtained by calculating the average value of RTT statistics when data is cut off for multiple times. This method is more suitable for environments with relatively stable network parameters.
进一步的,由于RTT与网络环境参数,例如带宽、路由器参数、传输频带等网络参数相关,而在网络通信过程中,网络参数可能会经常发生变化,需要 跟随环境参数变化,动态调整第二阈值。在一些实施例中,记录每次数据断流时的网络参数以及数据断流前后的若干封包的往返时延的平均值;从而可以获得数据断流时的网络参数和RTT的平均值的对应关系,从而形成与各个网络参数对应的各个预设第二阈值。所述预设第二阈值可以直接采用RTT的平均值,也可以在RTT的平均值基础上增加一定的偏移量。在后续的数据断流的检测过程中,可以根据当前网络参数选择对应的预设第二阈值,作为当前检测周期的第二阈值;当网络参数发生变化时,所述第二阈值也随之变化。Further, since RTT is related to network environment parameters, such as network parameters such as bandwidth, router parameters, transmission frequency band, etc., and in the process of network communication, the network parameters may change frequently, and the second threshold needs to be dynamically adjusted following the changes of the environment parameters. In some embodiments, the network parameters and the average value of the round-trip delays of several packets before and after the data interruption are recorded every time the data is interrupted; thus, the corresponding relationship between the network parameters and the average value of the RTT can be obtained when the data is interrupted. , thereby forming each preset second threshold corresponding to each network parameter. The preset second threshold may directly use the average value of the RTT, or may add a certain offset on the basis of the average value of the RTT. In the subsequent detection process of data interruption, the corresponding preset second threshold can be selected according to the current network parameters as the second threshold of the current detection period; when the network parameters change, the second threshold also changes accordingly .
在步骤S104中,若所述平均往返时延大于等于第二阈值,则判断当前数据传输状态为数据断流状态。在封包流量大于等于第一阈值,且平均往返时延大于等于第二阈值时,说明数据传输过程中,发送数据量大于接收数据量,且网络延时较大,无法进行有效的数据传输,当前检测周期内,网络处于数据断流状态。In step S104, if the average round-trip delay is greater than or equal to the second threshold, it is determined that the current data transmission state is a data cutoff state. When the packet traffic is greater than or equal to the first threshold, and the average round-trip delay is greater than or equal to the second threshold, it means that during the data transmission process, the amount of data sent is greater than the amount of received data, and the network delay is large, so effective data transmission cannot be performed. During the detection period, the network is in a data cutoff state.
在检测到数据断流状态后,执行步骤S105:启动断流恢复流程。所述断流恢复流程可以包括但不限于:设备重启、重新建立网络通路、切换信号频段等,本领域技术人员可以采用合适的断流恢复流程,在此不再赘述。在步骤S105完成,数据断流被恢复后,继续返回步骤S101,重新进入下一检测周期的数据断流检测并且下一周期的统计时间被设定为初始值。After the data current interruption state is detected, step S105 is performed: the current interruption recovery process is started. The current interruption recovery process may include, but is not limited to, restarting the device, re-establishing a network path, switching signal frequency bands, etc. Those skilled in the art may adopt an appropriate current interruption recovery process, which will not be repeated here. After the completion of step S105 and the data interruption is recovered, continue to return to step S101 to re-enter the data interruption detection of the next detection cycle and the statistical time of the next cycle is set to the initial value.
在步骤S104中,若所述平均往返时延小于第二阈值,则执行步骤S106:累积所述送出封包数和到达封包数至下一检测周期,并执行步骤S101,进入下一检测周期。此时,在下一检测周期的统计时间内,在上一检测周期内的送出封包数和到达封包数的基础上,根据新的送出封包数和新的到达封包数,并计算出封包流量,以及周期内新增封包的RTT平均值。In step S104, if the average round-trip delay is less than the second threshold, step S106 is performed: the number of outgoing packets and the number of arriving packets are accumulated to the next detection period, and step S101 is performed to enter the next detection period. At this time, within the statistical time of the next detection period, on the basis of the number of outgoing packets and the number of arriving packets in the previous detection period, according to the new number of outgoing packets and the new number of arriving packets, and calculate the packet flow, and The average RTT of newly added packets during the period.
例如,上一检测周期内的送出封包数为a1,到达封包数为b1,当前检测周期对应的送出封包数为a2,到达封包数为b2,其中a2为当前检测周期内新增的送出封包数,b2为当前检测周期内新增的到达封包数,封包流量为:a2-b1。For example, the number of outgoing packets in the last detection cycle is a1, the number of arriving packets is b1, the number of outgoing packets corresponding to the current detection cycle is a2, and the number of arriving packets is b2, where a2 is the new number of outgoing packets in the current detection cycle , b2 is the number of newly arrived packets in the current detection period, and the packet flow is: a2-b1.
上述实施例中,通过封包流量和RTT平均值从封包数量差以及传送时延两个角度对数据是否断流进行检测,能够提高数据断流的准确性,及时发现数据断流。In the above embodiment, whether the data flow is interrupted is detected from the perspective of the difference in the number of packets and the transmission delay through the average value of the packet flow and the RTT, which can improve the accuracy of the data flow interruption and detect the data flow interruption in time.
请参考图2,为本发明一实施例的网络数据断流检测方法的流程示意图。Please refer to FIG. 2 , which is a schematic flowchart of a method for detecting interruption of network data flow according to an embodiment of the present invention.
当步骤S104中,封包流量小于第一阈值且RTT平均值小于第二阈值时,虽 然数据还未发生断流,但是数据传输并不通畅,可能的场景包括数据断流即将发生,或者数据在短时间内发生拥塞等容易发生断流的情况。In step S104, when the packet traffic is less than the first threshold and the average RTT value is less than the second threshold, although the data flow has not been interrupted, the data transmission is not smooth. Congestion and other situations that are prone to interruptions in time.
为了能够及时的检测到数据断流的发生,该实施例中,在图1所示的网络数据断流检测流程的基础上,在步骤S106之后,增加了步骤S201:缩短下一检测周期的统计时间。缩短统计时间能够在相同时间内,增加检测判断的次数,快速刷新封包流量和TRR平均值,并进行判断,一旦数据断流发生,能够立刻检测发现,从而缩短检测到数据断流所花的时间。在其他实施例中,所述步骤S201和步骤S106的顺序可以交换,也可以同步进行,步骤S201和步骤S106并没有严格的先后顺序要求。In order to detect the occurrence of data interruption in time, in this embodiment, on the basis of the network data interruption detection process shown in FIG. 1, after step S106, step S201 is added: shortening the statistics of the next detection period time. Shortening the statistical time can increase the number of detections and judgments within the same time period, quickly refresh the average value of packet traffic and TRR, and make judgments. Once data interruption occurs, it can be detected immediately, thereby shortening the time it takes to detect data interruption. . In other embodiments, the sequence of the step S201 and the step S106 may be exchanged or performed simultaneously, and there is no strict sequence requirement for the step S201 and the step S106.
若在统计时间缩短后的检测周期内,RTT平均值依旧小于第二阈值,则在进入下一检测周期之前,再次缩短下一检测周期的统计时间。由于断流即将发生,检测时间越往后,每个检测周期的检测时间越短,能够越快的更新检测数据,缩短检测时间。当某一检测周期内,RTT平均值大于等于第二阈值,检测到数据断流状态而进入步骤S105;或者封包流量小于阈值,数据传输恢复正常(例如短时间的拥塞解除),则恢复检测周期的统计时间至初始值。If in the detection period after the statistical time is shortened, the average RTT value is still smaller than the second threshold, before entering the next detection period, the statistical time of the next detection period is shortened again. Since the current interruption is about to occur, the later the detection time is, the shorter the detection time of each detection cycle is, the faster the detection data can be updated, and the detection time can be shortened. When the average RTT value is greater than or equal to the second threshold within a certain detection period, the data interruption state is detected, and the process proceeds to step S105; or the packet flow rate is less than the threshold value, and the data transmission returns to normal (for example, a short-term congestion relief), the detection period is resumed the statistical time to the initial value.
在一些实施例中,每次缩短统计时间的比例均相同,可以为30%~60%范围内,优选的,可以为50%。例如,检测周期的初始值为使用状态下T1=1min,待机状态下T2=6min;在第一次缩短之后,T1=30s,T2=180s;在第一次缩短后的检测周期内,此时统计时间为T1=30s或T2=180s,再次发生封包流量大于第一阈值且RTT平均值小于第二阈值,则再次将下一周期的统计时间进行第二次缩减,缩减50%,变为T1=15s,T2=90s;若在之后的统计时间内,再次发生封包流量大于第一阈值且RTT平均值小于第二阈值,则再次对统计时间进行缩减,直到封包流量大于第一阈值且RTT平均值大于等于第二阈值,进入步骤S105:启动断流恢复流程,或者检测到封包流量小于第一阈值,将下一检测周期内的统计时间恢复至初始值,使用状态下T1=1min,待机状态下T2=6min。In some embodiments, the ratio of shortening the statistical time is the same each time, which may be in the range of 30% to 60%, preferably, it may be 50%. For example, the initial value of the detection period is T1=1min in the use state and T2=6min in the standby state; after the first shortening, T1=30s, T2=180s; in the first shortened detection period, at this time The statistical time is T1=30s or T2=180s. If the packet traffic is greater than the first threshold again and the average RTT value is less than the second threshold, the statistical time of the next cycle is reduced a second time by 50% and becomes T1 =15s, T2=90s; if the packet traffic is greater than the first threshold and the average RTT is less than the second threshold again in the subsequent statistical time, the statistical time will be reduced again until the packet traffic is greater than the first threshold and the average RTT If the value is greater than or equal to the second threshold, enter step S105: start the flow cut recovery process, or detect that the packet flow is less than the first threshold, restore the statistical time in the next detection cycle to the initial value, in the use state T1=1min, in the standby state Lower T2=6min.
在其他实施例中,也可以逐次提高缩短统计时间的比例,例如第一次缩短30%,第二次缩短50%,第三次缩短60%等。In other embodiments, the ratio of shortening the statistical time can also be increased successively, for example, the first time shortens by 30%, the second time shortens by 50%, the third time shortens by 60%, and so on.
请参考图3,为本发明另一实施例的数据断流检测过程的流程示意图。Please refer to FIG. 3 , which is a schematic flowchart of a data interruption detection process according to another embodiment of the present invention.
该实施例中,在图2所示的网络数据断流检测流程的基础上,在步骤S201缩短下一检测周期的统计时间之后,还包括:In this embodiment, on the basis of the network data interruption detection process shown in FIG. 2, after shortening the statistical time of the next detection period in step S201, the method further includes:
步骤S301:对连续缩短统计时间的次数进行计数;Step S301: count the number of times that the statistical time is continuously shortened;
步骤S302:判断计数是否达到设定值,若否,则继续进行下一检测周期的检测;若是,则判断当前数据传输状态为数据断流状态,执行步骤S105:启动断流恢复流程。Step S302: determine whether the count reaches the set value, if not, continue to perform the detection of the next detection cycle; if so, determine that the current data transmission state is the data cutoff state, and execute step S105: start the cutoff recovery process.
所述设定值可以为2以上的整数,较佳的,所述设定值可以为3,即连续三次缩短统计时间后,就启动断流恢复流程。The set value may be an integer greater than 2, and preferably, the set value may be 3, that is, after the statistical time is shortened three times in a row, the current interruption recovery process is started.
通常由于网络拥塞导致的封包流量大于阈值,是会在短时间内消除的,而如果连续多次发生封包流量大于阈值的情况,短时间内未消除,即便RTT平均值仍然小于第二阈值,未达到真正的数据断流,但是最终还是会发生数据断流的情况,因此,当计数达到设定值后,就直接启动断流恢复流程,在数据断流即将发生时,就提前进行断流恢复,避免发生数据断流,提高用户体验。Usually, the packet traffic caused by network congestion is larger than the threshold, and it will be eliminated in a short time. However, if the packet traffic is larger than the threshold for many times in a row, it will not be eliminated in a short time, even if the average RTT is still less than the second threshold. The real data cutoff is achieved, but the data cutoff will eventually occur. Therefore, when the count reaches the set value, the cutoff recovery process will be started directly. When the data cutoff is about to occur, the cutoff recovery will be carried out in advance. , to avoid data interruption and improve user experience.
当计数还未达到所述设定值时,进入下一检测周期,若再次检测到封包流量小于第一阈值,或者当前数据传输状态为数据断流状态后,恢复检测周期的统计时间至初始值,且将计数归零。When the count has not reached the set value, the next detection cycle is entered. If it is detected that the packet flow is less than the first threshold again, or the current data transmission state is a data interruption state, the statistical time of the detection cycle is restored to the initial value. , and resets the count to zero.
请参考图4,为本发明另一实施例的网络数据断流检测方法的流程示意图。Please refer to FIG. 4 , which is a schematic flowchart of a method for detecting network data interruption according to another embodiment of the present invention.
在该实施例中,在步骤S103中,判断RTT的平均值大于等于第二阈值后,执行步骤S401对连续检测到封包的平均RTT大于等于第二阈值的次数进行计数。In this embodiment, in step S103, after judging that the average RTT is greater than or equal to the second threshold, step S401 is performed to count the number of times that the average RTT of the packets is continuously detected to be greater than or equal to the second threshold.
步骤S401和步骤S106的先后顺序不作要求,步骤S401可以在步骤S106之后、之前或者同时进行。The sequence of step S401 and step S106 is not required, and step S401 may be performed after step S106, before or at the same time.
上述网络数据断流检测方法能够在断流状态发生之前,就提前启动断流恢复流程,及时修复网络状态,提高用户的体验。The above-mentioned network data interruption detection method can start the interruption recovery process in advance before the interruption state occurs, repair the network state in time, and improve the user experience.
本发明的实施例还提供一种网络数据断流检测装置。The embodiment of the present invention also provides a network data interruption detection device.
请参考图5,为本发明一实施例的网络数据断流检测装置的结构示意图。Please refer to FIG. 5 , which is a schematic structural diagram of a network data interruption detection apparatus according to an embodiment of the present invention.
该实施例中,所述网络数据断流检测装置包括:收发模块501、检测模块502、第一比较模块503和第二比较模块504。In this embodiment, the network data interruption detection device includes: a transceiver module 501 , a detection module 502 , a first comparison module 503 and a second comparison module 504 .
所述收发模块501用于发送送出封包和接收到达封包。The transceiver module 501 is used for sending outgoing packets and receiving incoming packets.
所述检测模块502用于周期性的统计封包流量,所述封包流量为送出封包数和到达封包数之差,并记录各个封包的往返时延RTT。所述检测模块502通过统计一端时间内的送出封包和到达封包的数量,获得封包流量,以及对应封 包的RTT。在设备处于使用状态下,例如手机亮屏状态下,检测周期内的统计时间较短,以便及时检测到数据断流状态;而在设备处于待机状态下,例如手机黑屏状态下,检测周期内的统计时间可以较长,以降低功耗。The detection module 502 is used to periodically count packet traffic, where the packet traffic is the difference between the number of outgoing packets and the number of arriving packets, and records the round-trip delay RTT of each packet. The detection module 502 obtains the packet flow and the RTT of the corresponding packet by counting the number of outgoing packets and arriving packets within one end of the time. When the device is in use, such as when the screen of the mobile phone is on, the statistical time in the detection cycle is short, so that the data interruption state can be detected in time; while when the device is in the standby state, such as when the screen of the mobile phone is black, the statistical time in the detection cycle is short. The statistical time can be longer to reduce power consumption.
在一个实施例中,设备使用状态下的检测周期的统计时间T1=1min,检测模块502每隔1分钟,检测这1分钟内的封包流量和RTT;待机状态下的检测周期的统计时间T2=6min,检测模块502每隔6分钟,检测这6分钟内的封包流量和RTT。在其他实施例中,可以根据具体情况,进行设置。In one embodiment, the statistical time T1 of the detection period in the device use state is 1 min, and the detection module 502 detects the packet traffic and RTT within this 1 minute every minute; the statistical time of the detection period in the standby state is T2 = For 6 minutes, the detection module 502 detects the packet traffic and RTT within the 6 minutes every 6 minutes. In other embodiments, settings may be made according to specific conditions.
所述第一比较模块503用于将所述检测模块在当前检测周期内统计的封包流量与第一阈值进行比较,若当前检测周期内的封包流量小于所述第一阈值,则控制所述检测模块进入下一检测周期。The first comparison module 503 is configured to compare the packet flow counted by the detection module in the current detection period with the first threshold, and if the packet flow in the current detection period is less than the first threshold, control the detection The module enters the next detection cycle.
所述第二比较模块504用于在当前检测周期内的封包流量大于等于第一阈值时,将所有到达封包的平均往返时延RTT与第二阈值进行比较,若所述平均往返时延大于等于第二阈值,则形成数据断流信号,若所述平均往返时延小于第二阈值,则累积所述送出封包数和到达封包数至下一检测周期,并控制所述检测模块进入下一检测周期。The second comparison module 504 is configured to compare the average round-trip delay RTT of all arriving packets with the second threshold when the packet traffic in the current detection period is greater than or equal to the first threshold, if the average round-trip delay is greater than or equal to If the average round-trip delay is less than the second threshold, the number of outgoing packets and the number of arriving packets will be accumulated to the next detection period, and the detection module will be controlled to enter the next detection period. cycle.
所述网络数据断流检测装置的第二比较模块504还可以包括阈值调整单元,用于记录每次数据断流时的网络参数以及数据断流前后的若干封包的往返时延的平均值,并根据每次数据断流时的所述网络参数和所述平均值,形成与各个网络参数对应的各个预设第二阈值,以及在检测过程中,根据当前网络参数选择对应的预设第二阈值,作为当前检测周期的第二阈值。当网络参数发生变化时,所述第二阈值也随之变化。The second comparison module 504 of the network data interruption detection device may further include a threshold adjustment unit, which is used to record the network parameters during each data interruption and the average value of round-trip delays of several packets before and after the data interruption, and Each preset second threshold value corresponding to each network parameter is formed according to the network parameter and the average value when the data flow is cut off each time, and during the detection process, the corresponding preset second threshold value is selected according to the current network parameter , as the second threshold of the current detection period. When the network parameters change, the second threshold also changes accordingly.
所述第二比较模块504用于在所述平均往返时延RTT小于第二阈值时,控制所述检测模块502缩短下一检测周期的统计时间。每次缩短统计时间的比例为30%~60%。在一些实施例中,每次缩短统计时间的比例均相同,优选的,可以为50%。在其他实施例中,也可以逐次提高缩短统计时间的比例,例如第一次缩短30%,第二次缩短50%,第三次缩短60%等。The second comparison module 504 is configured to control the detection module 502 to shorten the statistical time of the next detection cycle when the average round-trip delay RTT is less than a second threshold. The ratio of shortening the statistical time is 30% to 60% each time. In some embodiments, the ratio of shortening the statistical time is the same each time, and preferably, it may be 50%. In other embodiments, the ratio of shortening the statistical time can also be increased successively, for example, the first time shortens by 30%, the second time shortens by 50%, the third time shortens by 60%, and so on.
所述第一比较模块503还用于当封包流量小于第一阈值时控制所述检测模块恢复检测周期的统计时间至初始值,以便重新开始检测;所述第二比较模块504在形成数据断流信号后,控制所述检测模块恢复检测周期的统计时间至初始值。The first comparison module 503 is further configured to control the detection module to restore the statistical time of the detection cycle to the initial value when the packet flow is less than the first threshold, so as to restart detection; the second comparison module 504 is in the process of forming data interruption. After the signal is received, the detection module is controlled to restore the statistical time of the detection cycle to the initial value.
该实施例中,所述网络数据断流检测装置还包括:断流恢复模块505,于在接收到所述第二比较模块504形成的断流状态信号后,启动断流恢复流程,进行网络修复。In this embodiment, the network data disconnection detection device further includes: a disconnection recovery module 505, after receiving the disconnection state signal formed by the second comparison module 504, starts a disconnection recovery process to perform network repair .
请参考图6,为本发明另一实施例的网络数据断流检测装置的结构示意图。Please refer to FIG. 6 , which is a schematic structural diagram of a network data interruption detection apparatus according to another embodiment of the present invention.
该实施例中,所述网络数据断流检测装置还包括计数模块601。In this embodiment, the network data interruption detection device further includes a counting module 601 .
所述计数模块601用于对所述检测模块502连续缩短统计时间的次数进行计数,或者对第二比较模块504比较得到RTT平均值大于等于第二阈值时,进行计数;所述第二比较模块504,还用于在所述计数模块601的计数达到设定值时,形成数据断流信号。所述设定值为2以上的整数。The counting module 601 is used to count the number of times that the detection module 502 continuously shortens the statistical time, or when the second comparison module 504 compares and obtains that the RTT average value is greater than or equal to the second threshold, count; the second comparison module 504 is further configured to form a data cut-off signal when the count of the counting module 601 reaches a set value. The set value is an integer of 2 or more.
所述计数模块601的计数还未达到设定值时,若封包流量再次小于第一阈值,或者所述第二比较模块504形成数据断流信号,则所述检测模块501恢复检测周期的统计时间至初始值,所述计数模块601将计数归零。When the count of the counting module 601 has not yet reached the set value, if the packet flow is less than the first threshold again, or the second comparison module 504 forms a data cutoff signal, the detection module 501 restores the statistical time of the detection cycle. To the initial value, the counting module 601 resets the count to zero.
本发明的实施例还提供一种终端设备,包括:处理器;存储器,所述存储器内存储有能够被所述处理器运行的计算机程序,所述计算机程序被所述处理器运行时能够实现上述实施例中所述的网络数据断流检测方法的步骤。An embodiment of the present invention further provides a terminal device, including: a processor; and a memory, where a computer program that can be executed by the processor is stored in the memory, and the computer program can realize the above when executed by the processor The steps of the network data interruption detection method described in the embodiment.
所述终端设备可以为手机、Ipad、电脑或智能电视机等具有网络数据传输功能的电子终端设备,所述终端设备能够及时检测到断流状态,进行修复。The terminal device may be an electronic terminal device with a network data transmission function, such as a mobile phone, an Ipad, a computer, or a smart TV, and the terminal device can detect the disconnection state in time and repair it.
本发明的实施例还提供一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时能够实现上述实施例中所述的网络数据断流检测方法的步骤。Embodiments of the present invention further provide a computer-readable storage medium, storing a computer program, and when the computer program is executed by a processor, the steps of the network data interruption detection method described in the foregoing embodiments can be implemented.
即,以上所述仅为本申请的实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,例如各实施例之间技术特征的相互结合,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。That is, the above descriptions are only the embodiments of the present application, which are not intended to limit the scope of the patent of the present application. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present application, such as the technical features between the embodiments Combining with each other, or directly or indirectly used in other related technical fields, are also included in the scope of patent protection of this application.

Claims (20)

  1. 一种网络数据断流检测方法,其特征在于,包括:A method for detecting interruption of network data, comprising:
    在一检测周期内统计封包流量,所述封包流量为送出封包数和到达封包数之差,并记录各个封包的往返时延;Counting packet traffic in a detection period, the packet traffic is the difference between the number of outgoing packets and the number of arriving packets, and recording the round-trip delay of each packet;
    若当前检测周期内的封包流量小于第一阈值,则清除送出封包数和到达封包数,进入下一检测周期;If the packet flow in the current detection period is less than the first threshold, clear the number of outgoing packets and the number of arriving packets, and enter the next detection period;
    若当前检测周期内的封包流量大于等于第一阈值时,将所有接收封包的平均往返时延与第二阈值进行比较,包括:If the packet traffic in the current detection period is greater than or equal to the first threshold, compare the average round-trip delay of all received packets with the second threshold, including:
    若所述平均往返时延大于等于第二阈值,则判断当前数据传输状态为数据断流状态;If the average round-trip delay is greater than or equal to the second threshold, it is determined that the current data transmission state is a data cutoff state;
    若所述平均往返时延小于第二阈值,则累积所述送出封包数和到达封包数至下一检测周期,并进入下一检测周期。If the average round-trip delay is less than the second threshold, the number of outgoing packets and the number of arriving packets are accumulated to the next detection period, and the next detection period is entered.
  2. 根据权利要求1所述的网络数据断流检测方法,其特征在于,若当前检测周期内的封包流量大于等于第一阈值且所述平均往返时延小于第二阈值时,还包括:缩短下一检测周期的统计时间。The method for detecting network data interruption according to claim 1, wherein if the packet traffic in the current detection period is greater than or equal to a first threshold and the average round-trip delay is less than a second threshold, the method further comprises: shortening the next The statistical time of the detection period.
  3. 根据权利要求2所述的网络数据断流检测方法,其特征在于,设备使用状态下的检测周期的统计时间为1min或待机状态下的检测周期的统计时间为6min。The method for detecting network data interruption according to claim 2, wherein the statistical time of the detection period in the device use state is 1 min or the statistical time of the detection period in the standby state is 6 minutes.
  4. 根据权利要求1所述的网络数据断流检测方法,其特征在于,所述累积所述送出封包数和到达封包数至下一检测周期,并进入下一检测周期之后,还包括:The network data interruption detection method according to claim 1, wherein the accumulating the number of outgoing packets and the number of arriving packets to the next detection period and after entering the next detection period, further comprising:
    判断往返时延的平均值大于等于第二阈值后,对连续检测到封包的平均往返时延大于等于第二阈值的次数进行计数;After judging that the average round-trip delay is greater than or equal to the second threshold, count the number of times that the average round-trip delay of the packets is continuously detected to be greater than or equal to the second threshold;
    响应于计数达到设定值,则判断当前数据传输状态为数据断流状态。In response to the count reaching the set value, it is determined that the current data transmission state is a data cutoff state.
  5. 根据权利要求1所述的网络数据断流检测方法,其特征在于,所述第一阈值的范围为0~15。The method for detecting network data interruption according to claim 1, wherein the range of the first threshold is 0-15.
  6. 根据权利要求1所述的网络数据断流检测方法,其特征在于,所述第二阈值为所述往返时延的平均值,或者为往返时延的平均值基础上增加一定的偏移量。The method for detecting network data interruption according to claim 1, wherein the second threshold is an average value of the round-trip delay, or a certain offset added to the average value of the round-trip delay.
  7. 根据权利要求2所述的网络数据断流检测方法,其特征在于,每次缩短统计时间的比例为30%~60%。The method for detecting interruption of network data flow according to claim 2, wherein the ratio of shortening the statistical time each time is 30% to 60%.
  8. 根据权利要求7所述的网络数据断流检测方法,其特征在于,每次缩短统计时间的比例相同。The method for detecting interruption of network data flow according to claim 7, wherein the ratio of shortening the statistical time is the same each time.
  9. 根据权利要求7所述的网络数据断流检测方法,其特征在于,每次缩短统计时间的比例逐次提高。The method for detecting interruption of network data flow according to claim 7, wherein the ratio of shortening the statistical time is successively increased each time.
  10. 根据权利要求1所述的网络数据断流检测方法,其特征在于,当再次检测到封包流量小于第一阈值,或者判断当前数据传输状态为数据断流状态后,恢复检测周期的统计时间至初始值。The method for detecting interruption of network data flow according to claim 1, wherein when it is detected that the packet flow rate is less than the first threshold value again, or after it is judged that the current data transmission state is a data interruption state, the statistical time of the detection period is restored to the initial period. value.
  11. 根据权利要求2所述的网络数据断流检测方法,其特征在于,还包括:对连续缩短统计时间的次数进行计数,当计数达到设定值时,判断当前数据传输状态为数据断流状态。The network data interruption detection method according to claim 2, further comprising: counting the number of times of continuously shortening the statistical time, and when the count reaches a set value, judging that the current data transmission state is a data interruption state.
  12. 根据权利要求11所述的网络数据断流检测方法,其特征在于,所述设定值为2以上的整数。The network data interruption detection method according to claim 11, wherein the set value is an integer greater than or equal to 2.
  13. 根据权利要求3or4所述的网络数据断流检测方法,其特征在于,当计数还未达到所述设定值时,若再次检测到封包流量小于第一阈值,或者当前数据传输状态为数据断流状态后,恢复检测周期的统计时间至初始值,且将计数归零。The method for detecting network data interruption according to claim 3 or 4, wherein when the count has not reached the set value, if it is detected again that the packet flow is less than the first threshold, or the current data transmission state is data interruption After the state is restored, the statistical time of the detection cycle is restored to the initial value, and the count is reset to zero.
  14. 根据权利要求1所述的网络数据断流检测方法,其特征在于,还包括:记录每次数据断流时的网络参数以及数据断流前后的若干封包的往返时延的平均值;根据每次数据断流时的所述网络参数和所述平均值,形成与各个网络参数对应的各个预设第二阈值;在检测过程中,根据当前网络参数选择对应的预设第二阈值,作为当前检测周期的第二阈值。The method for detecting interruption of network data flow according to claim 1, further comprising: recording network parameters and the average value of round-trip delays of several packets before and after the interruption of data flow each time the flow of data is cut off; The network parameters and the average value when the data is cut off form each preset second threshold value corresponding to each network parameter; in the detection process, the corresponding preset second threshold value is selected according to the current network parameter as the current detection value The second threshold for the period.
  15. 根据权利要求1或11所述的网络数据断流检测方法,其特征在于,判断为数据断流状态后,启动断流恢复流程,且恢复检测周期的统计时间至初始值。The method for detecting network data interruption according to claim 1 or 11, characterized in that after determining that the data interruption state is determined, the interruption recovery process is started, and the statistical time of the detection period is restored to an initial value.
  16. 一种网络数据断流检测装置,其特征在于,包括:A network data interruption detection device, characterized in that it includes:
    收发模块,用于发送送出封包和接收到达封包;Transceiver module, used to send outgoing packets and receive incoming packets;
    检测模块,用于周期性的统计封包流量,所述封包流量为送出封包数和到达封包数之差,并记录各个到达封包的往返时延;The detection module is used to periodically count packet traffic, where the packet traffic is the difference between the number of outgoing packets and the number of arriving packets, and records the round-trip delay of each arriving packet;
    第一比较模块,用于将所述检测模块在当前检测周期内统计的封包流量与第一阈值进行比较,若当前检测周期内的封包流量小于所述第一阈值,则清除送出封包数和到达封包数,控制所述检测模块进入下一检测周期;The first comparison module is used to compare the packet flow counted by the detection module in the current detection period with a first threshold, and if the packet flow in the current detection period is less than the first threshold, clear the number of sent packets and the number of arrivals the number of packets, to control the detection module to enter the next detection cycle;
    第二比较模块,用于在当前检测周期内的封包流量大于等于第一阈值时,将所有接收封包的平均往返时延与第二阈值进行比较,若所述平均往返时延大于等于第二阈值,则形成数据断流信号,若所述平均往返时延小于第二阈值,则累积所述送出封包数和到达封包数至下一检测周期,并控制所述检测模块进入下一检测周期。The second comparison module is configured to compare the average round-trip delay of all received packets with the second threshold when the packet traffic in the current detection period is greater than or equal to the first threshold, if the average round-trip delay is greater than or equal to the second threshold , then a data cutoff signal is formed. If the average round-trip delay is less than the second threshold, the number of outgoing packets and the number of arriving packets are accumulated to the next detection period, and the detection module is controlled to enter the next detection period.
  17. 根据权利要求11所述的网络数据断流检测装置,其特征在于,还包括计数模块,所述计数模块用于对所述检测模块连续缩短统计时间的次数或连续检测到封包的平均往返时延大于等于第二阈值的次数进行计数;所述第二比较模块用于当所述计数模块的计数达到设定值时,形成数据断流信号。The device for detecting interruption of network data according to claim 11, further comprising a counting module, the counting module is used to continuously shorten the number of counting times of the detection module or the average round-trip delay of continuously detected packets. The number of times greater than or equal to the second threshold is counted; the second comparison module is configured to form a data cut-off signal when the count of the counting module reaches the set value.
  18. 根据权利要求10或11所述的网络数据断流检测装置,其特征在于,还包括断流恢复模块,所述断流恢复模块用于:The network data interruption detection device according to claim 10 or 11, further comprising a interruption recovery module, wherein the interruption recovery module is used for:
    在接收到所述第二比较模块形成的断流状态信号后,启动断流恢复流程,所述检测模块用于恢复检测周期的统计时间至初始值。After receiving the current interruption state signal formed by the second comparison module, the current interruption recovery process is started, and the detection module is used for restoring the statistical time of the detection period to the initial value.
  19. 一种终端设备,其特征在于,包括:A terminal device, characterized in that it includes:
    处理器;processor;
    存储器,所述存储器内存储有能够被所述处理器运行的计算机程序,所述计算机程序被所述处理器运行时能够实现如权利要求1至15中任一项所述的网络数据断流检测方法的步骤。A memory, where a computer program that can be executed by the processor is stored in the memory, and when the computer program is executed by the processor, the network data interruption detection according to any one of claims 1 to 15 can be implemented steps of the method.
  20. 一种计算机可读存储介质,存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至15中任一项所述的数据断流检测方法的步骤。A computer-readable storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, the steps of the data interruption detection method according to any one of claims 1 to 15 are implemented.
PCT/CN2021/114498 2020-08-25 2021-08-25 Network data interruption detection method and apparatus, terminal device, and storage medium WO2022042589A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010864477.XA CN114124755B (en) 2020-08-25 2020-08-25 Network data cut-off detection method and device, terminal equipment and storage medium
CN202010864477.X 2020-08-25

Publications (1)

Publication Number Publication Date
WO2022042589A1 true WO2022042589A1 (en) 2022-03-03

Family

ID=80354639

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/114498 WO2022042589A1 (en) 2020-08-25 2021-08-25 Network data interruption detection method and apparatus, terminal device, and storage medium

Country Status (2)

Country Link
CN (1) CN114124755B (en)
WO (1) WO2022042589A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117336345A (en) * 2023-11-30 2024-01-02 苏州元脑智能科技有限公司 Data replication disaster recovery method, system, device and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070294595A1 (en) * 2006-05-05 2007-12-20 Rai Barinder S Detecting Errors In Transmitted Data
CN101145988A (en) * 2007-07-19 2008-03-19 中兴通讯股份有限公司 A detection and recovery method for communication link failure
CN101667941A (en) * 2009-09-27 2010-03-10 中兴通讯股份有限公司 Method for detecting link performance and device therefor
CN105162719A (en) * 2015-09-24 2015-12-16 烽火通信科技股份有限公司 Packet loss detection system and method for packet transport network
CN106341739A (en) * 2016-09-30 2017-01-18 邦彦技术股份有限公司 A kind of control device based on packet loss and method
CN107547298A (en) * 2017-05-27 2018-01-05 新华三技术有限公司 A kind of link bandwidth method of testing and device
US20200099577A1 (en) * 2018-09-26 2020-03-26 Hewlett Packard Enterprise Development Lp Network Link Failure Detection

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100341287C (en) * 2004-09-02 2007-10-03 中兴通讯股份有限公司 Off-flow monitoring method for accessing server
US8514715B2 (en) * 2010-04-22 2013-08-20 Akamai Technologies, Inc. Congestion window control based on queuing delay and packet loss
CN103702348B (en) * 2013-12-20 2017-09-29 京信通信系统(中国)有限公司 A kind of detection method and device of Home eNodeB lower network quality
CN105323121B (en) * 2015-11-27 2019-08-16 上海斐讯数据通信技术有限公司 A kind of Network status detection method and device
CN106533963B (en) * 2017-01-11 2019-05-03 深圳云视融通科技有限公司 A kind of method for controlling network congestion of streaming media
US10742555B1 (en) * 2017-12-11 2020-08-11 Amazon Technologies, Inc. Network congestion detection and resolution
CN110677355A (en) * 2019-10-08 2020-01-10 香港乐蜜有限公司 Packet loss coping method and device, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070294595A1 (en) * 2006-05-05 2007-12-20 Rai Barinder S Detecting Errors In Transmitted Data
CN101145988A (en) * 2007-07-19 2008-03-19 中兴通讯股份有限公司 A detection and recovery method for communication link failure
CN101667941A (en) * 2009-09-27 2010-03-10 中兴通讯股份有限公司 Method for detecting link performance and device therefor
CN105162719A (en) * 2015-09-24 2015-12-16 烽火通信科技股份有限公司 Packet loss detection system and method for packet transport network
CN106341739A (en) * 2016-09-30 2017-01-18 邦彦技术股份有限公司 A kind of control device based on packet loss and method
CN107547298A (en) * 2017-05-27 2018-01-05 新华三技术有限公司 A kind of link bandwidth method of testing and device
US20200099577A1 (en) * 2018-09-26 2020-03-26 Hewlett Packard Enterprise Development Lp Network Link Failure Detection

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117336345A (en) * 2023-11-30 2024-01-02 苏州元脑智能科技有限公司 Data replication disaster recovery method, system, device and medium
CN117336345B (en) * 2023-11-30 2024-02-23 苏州元脑智能科技有限公司 Data replication disaster recovery method, system, device and medium

Also Published As

Publication number Publication date
CN114124755B (en) 2023-04-14
CN114124755A (en) 2022-03-01

Similar Documents

Publication Publication Date Title
US11611498B2 (en) Round-trip time evaluation system, method, and apparatus
WO2017000719A1 (en) Congestion control method and device based on queue delay
US20220263423A9 (en) Controlling a jitter buffer
CN106301684B (en) Media data transmission method and device
US7821937B1 (en) Network protocol with damage loss resilient congestion control algorithm
EP3322145B1 (en) Method, server side and system for computing bandwidth of network transmission of streaming media
CN102843257B (en) A kind of path evaluation method and device
EP3329641B1 (en) Monitoring network conditions
CN103269260A (en) Data transmission method, data receiving terminal, data sending terminal and data transmission system
CN105430532A (en) Control method and system for adaptive adjustment of video data transmission
CN102468941A (en) Network packet loss processing method and device
CN101114982A (en) IP network based audio-video QoS algorithm
CN113014505B (en) Transmission control method for time delay differentiation in high dynamic topology satellite network
JPWO2011102294A1 (en) High speed communication system and high speed communication method
WO2022042589A1 (en) Network data interruption detection method and apparatus, terminal device, and storage medium
CN113747489A (en) UDP communication quality evaluation method and device and electronic equipment
US10382155B2 (en) Data processing
CN113438180B (en) Transmission control method, device and equipment for UDP (user Datagram protocol) data packet and readable storage medium
US9432297B2 (en) Jitter-based transmission control method
AU2014303900B2 (en) Information processing system, information processing apparatus, and program
CN117676695A (en) TCP transmission method, device and system
CN117499317B (en) Link congestion control method and device, storage medium and electronic equipment
CN115941557B (en) Self-adaptive congestion control method and device based on time delay
CN114466397A (en) TCP communication quality evaluation method and device and electronic equipment
JP2005244517A (en) Unit, method, and program for data transmission control

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21860424

Country of ref document: EP

Kind code of ref document: A1