WO2021088484A1 - Network delay detection method and related device - Google Patents

Network delay detection method and related device Download PDF

Info

Publication number
WO2021088484A1
WO2021088484A1 PCT/CN2020/112308 CN2020112308W WO2021088484A1 WO 2021088484 A1 WO2021088484 A1 WO 2021088484A1 CN 2020112308 W CN2020112308 W CN 2020112308W WO 2021088484 A1 WO2021088484 A1 WO 2021088484A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
data
data message
target server
network
Prior art date
Application number
PCT/CN2020/112308
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 WO2021088484A1 publication Critical patent/WO2021088484A1/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/0852Delays
    • H04L43/087Jitter
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • H04L43/0864Round trip delays

Definitions

  • the present invention relates to the field of network technology, in particular to a network delay detection method and related equipment.
  • E-sports online game experience has high requirements for network delay, especially the sudden delay of the network has a great impact on the game experience.
  • the impact of the gaming experience can only be detected by the Internet packet detector (PING).
  • PING Internet packet detector
  • the network delay detected by this detection method is not accurate, which is different from the network delay in the real network situation. The delay is quite different.
  • the embodiment of the present invention provides a network delay detection method and related equipment, which can improve the accuracy of network delay detection.
  • an embodiment of the present invention provides a network delay detection method, including:
  • the message size, network address, and port number of each received data message determine the message size, network address, and port number according to at least one of the message size, the network address, and the port number.
  • the data message is a synchronization frame sent by the target server; when it is determined that a plurality of the data messages are the synchronization frames sent by the target server, it is determined that the i-th data message and the i+1-th data message are The time interval between the data messages, the i is an integer greater than or equal to 1; according to the time interval, the fixed synchronization frame interval of the data message is determined; according to the fixed synchronization frame interval and the time interval , Determine the network delay jitter of the i-th data message.
  • the first number of the same network addresses and the second number of the same port numbers are counted; the packet length is less than a preset threshold and the first number appears the most
  • the data packet corresponding to the network address and the port number with the second largest occurrence is determined to be the synchronization frame sent by the target server.
  • the time interval is subtracted from the fixed synchronization frame interval to obtain a time difference; the larger of the time difference and 0 is taken as the i-th data message
  • the network delay jitter reflects the changes of key network indicators, so as to more accurately determine the network delay.
  • the difference between the terminal device and the target server is obtained Multiple round-trip delays; determining the peak round-trip delay of each data packet according to the multiple round-trip delays and the network delay jitter.
  • the peak round-trip delay reflects the change of key network indicators, so that the network delay can be determined more accurately.
  • multiple test messages are sent to the target server, and the sending time point of each test message is recorded; multiple response messages sent by the target server are received and recorded The receiving time point of each response message; the multiple round-trip delays are determined according to the sending time point and the receiving time point.
  • the smallest one of the multiple round-trip delays is added to the network delay jitter of the i-th data packet to obtain the sum of the delays; and the i-th one The larger one of the round-trip delay and the sum of the delays corresponding to the data message is used as the peak round-trip delay of the i-th data message.
  • the data message includes a transmission control protocol TCP message or a user data packet protocol UDP message.
  • the embodiments of the present application provide a terminal device configured to implement the methods and functions performed by the terminal device in the above-mentioned first aspect.
  • the terminal device is implemented by hardware/software, and the hardware/software includes the same functions as the above The corresponding module.
  • the present application provides a computer-readable storage medium having instructions stored in the computer-readable storage medium, which when run on a computer, cause the computer to execute the method of any one of the foregoing aspects.
  • the present application provides a computer program product, the computer program product is used to store a computer program, and when the computer program runs on a computer, the computer executes the method of any one of the above aspects.
  • an embodiment of the present application provides a communication system, including the terminal device and the server in any of the foregoing aspects.
  • Figure 1 is a schematic structural diagram of a network system provided by an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a time sequence of a data message provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of network delay data provided by an application embodiment
  • FIG. 4 is a schematic flowchart of a method for detecting network delay according to an embodiment of the present application
  • FIG. 5 is a schematic diagram of a time interval distribution provided by an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a network delay detection device provided by an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a terminal device proposed in an embodiment of the present application.
  • the network system may include a terminal device 101 and a server 102.
  • the terminal device 101 may be a user equipment (UE), or a cellular phone, a smart phone, a portable computer, a handheld communication device, a handheld computing device, a satellite radio device, a global positioning system, or a personal digital assistant (personal digital assistant). , PDA) and/or any other suitable equipment for communicating on a wireless communication system, etc.
  • the server 102 may be a game server or other application servers. In the application scenarios of e-sports games, the game synchronization mechanism is divided into a state synchronization mechanism and a frame synchronization mechanism.
  • the frame synchronization mechanism is mainly used for e-sports games that require high latency, and the game data is carried through UDP packets.
  • the terminal device may first receive the user's operation instruction, and then send the user datagram protocol (UDP) uplink message to the server.
  • the server After the server receives the UDP uplink message, it performs the instruction logic judgment, and then sends the UDP downlink synchronization message to the terminal device.
  • UDP protocol packets there is no corresponding sequence number for upstream packets and downstream packets, and there is no related tool to evaluate the network delay of UDP packets.
  • FIG. 2 is a schematic diagram of a sequence of a UDP packet provided by an embodiment of the present application.
  • the server may send logical frames to the client A and the client B at a fixed synchronization frame interval, where the fixed synchronization frame interval may be 66 ms or 50 ms, but is not limited.
  • Client A and client B can send operation instructions to the server at different points in time.
  • RTT network round trip time
  • RTT represents the round-trip delay between the terminal device and the server.
  • FIG. 3 is a schematic diagram of network delay data provided by an application embodiment.
  • the network delay collected by Ping at the first point in time is less than 300ms, but the actual network delay at this point in time is greater than 700ms.
  • the network delay collected at the second point in time is less than 400ms, but the actual network delay at this point in time is greater than 700ms. It is similar at the third time point. Therefore, the network delay collected by Ping is very different from the network delay in the real network environment, and it cannot truly reflect the real network delay.
  • FIG. 4 is a schematic flowchart of a method for detecting network delay according to an embodiment of the present application. The method includes at least the following steps:
  • the data message may include a transmission control protocol TCP message or a user data packet protocol UDP message.
  • TCP message and the UDP message are messages with a fixed synchronization frame interval.
  • All message information includes transmission control protocol (TCP) messages, user datagram protocol (UDP) messages, domain name system (DNS) messages, and hypertext transfer protocol (hypertext transfer protocol) messages. text transport protocol, HTTP) messages and so on.
  • TCP transmission control protocol
  • UDP user datagram protocol
  • DNS domain name system
  • hypertext transfer protocol hypertext transfer protocol
  • HTTP Hypertext transfer protocol
  • the data message can be filtered out from all message information. Then obtain the message size, network address, and port number of each data message.
  • the network address may be an internet protocol (IP) address.
  • IP internet protocol
  • S402 Determine whether each data packet is a synchronization frame sent by a target server according to at least one of the packet size, the network address, and the port number.
  • the preset threshold includes but is not limited to 500 bytes.
  • the time stamp of the data message may be obtained first, and the time stamp records the time point of receiving each data message. Then, according to the time stamp of the data message, the time interval between the i-th data message and the (i+1)th data message is calculated. That is, the difference obtained by subtracting the receiving time point of the i-th message from the receiving time point of the i+1-th said data message is taken as the i-th said data message and the i+1-th said data message The time interval between texts.
  • FIG. 5 is a schematic diagram of a time interval distribution provided by an embodiment of the present application. If a certain time interval is distributed in the shaded part in FIG. 5, it is determined that the time interval is an abnormal time interval. If a certain time interval is distributed between -Za and Za and between the curve and the horizontal axis, the time interval is determined to be a valid time interval.
  • S404 Determine a fixed synchronization frame interval of the data message according to the time interval.
  • a linear regression method can be used to calculate the time interval corresponding to the minimum mean square error as the fixed synchronization frame interval.
  • the fixed synchronization frame interval can be calculated by the following formula:
  • ⁇ 2 is the mean square error
  • N is the number of data messages
  • T_UDP i+1 is the receiving time point of the i+1 data message
  • T_UDP i is the receiving time point of the i data message
  • T_sc is fixed Synchronization frame interval.
  • the initial value of T_sc can be set, and the mean square error can be calculated according to the initial value and the time interval. Then modify (increase or decrease) the initial value of T_sc according to the preset step length, calculate the mean square error again according to the modified initial value and time interval of T_sc, and then modify (increase) the preset step length again Or reduce) the initial value of T_sc, and calculate the mean square error. Repeat the above steps several times to calculate multiple mean square errors. Determine the smallest one of the multiple mean square errors, and use T_sc corresponding to the smallest mean square error as the fixed synchronization frame interval.
  • the median value of N-1 time intervals may be taken as the fixed synchronization frame interval.
  • T_sc median(T_UDP i+1- T_UDP i ).
  • T_UDP i+1 is the receiving time point of the i+ 1th data message
  • T_UDP i is the receiving time point of the i-th data message
  • T_sc is the fixed synchronization frame interval
  • madian represents the median operation.
  • the time interval may be subtracted from the fixed synchronization frame interval to obtain the time difference; the larger of the time difference and 0 is taken as the network time of the i-th data packet Delay jitter.
  • Jitter_i MAX[(T_UDP i+1 -T_UDP i )-T_sc, 0], where Jitter_i represents the network delay jitter of the i-th data packet, and T_UDP i+1 is the i+1-th data packet T_UDP i is the receiving time point of the i-th data message, and T_sc is the fixed synchronization frame interval.
  • MAX represents the maximum value operation.
  • multiple round trips between the terminal device and the target server may be acquired first Time delay (RTT time delay).
  • RTT time delay a plurality of test messages may be sent to the target server according to a preset period, where the length of the preset period may be the aforementioned fixed synchronization frame interval. Record the sending time point of each test message. Then, multiple response messages sent by the target server are received, and the time point of receiving each of the response messages is recorded. The multiple round-trip delays are determined according to the sending time point and the receiving time point.
  • the test message may be a Ping message.
  • a Ping message can be sent to the game server according to a preset cycle to test i times to obtain i RTT delays, and i RTTs are represented as: RTT_1,..., RTT_i.
  • TCP packets can be filtered out from all the packets collected by the terminal device, and then the RTT delay can be calculated based on the TCP packets.
  • the round-trip delay peak value of each of the data packets is determined. Further, the smallest one of the multiple round-trip delays may be added to the network delay jitter of the i-th data message to obtain the sum of the delays, and the value corresponding to the i-th data message may be taken The larger one of the round-trip delay and the sum of the delays is used as the peak round-trip delay of the i-th data packet.
  • RRT_peak_i MAX(RRT_min+Jitter_i, RTT_i).
  • RRT_peak_i is the peak value of RTT corresponding to the i-th data packet
  • RRT_min is the smallest one among the multiple round-trip delays tested
  • Jitter_i is the network delay jitter of the i-th data packet
  • RTT_i Is the round-trip delay of the Ping message corresponding to the i-th message.
  • MAX represents the maximum value operation.
  • the number of packets is periodically counted based on the size of the data packet, the network address, and the port number, so as to determine the data packet sent by the target server. And use the fixed synchronization frame interval of the data message to detect and analyze the changes in the key indicators of the network, so as to more accurately determine the network delay.
  • the embodiments of the present application can be applied to online game battles, can help game users judge network conditions, and guide users to select appropriate operator networks and game user experience test scenarios. Users can use the difference in network delay indicators obtained from different network tests to select the best network condition. In addition, it can help operators accurately evaluate network latency indicators and create a high-quality gaming network environment.
  • FIG. 6 is a schematic structural diagram of a network delay detection device provided by an embodiment of the present invention.
  • the network delay detection device may include an acquisition module 601 and a processing module 602. The detailed description of each unit is as follows.
  • the obtaining module 601 is configured to obtain at least one of the message size, network address, and port number of each received data message.
  • the processing module 602 is configured to determine whether each data packet is a synchronization frame sent by a target server according to at least one of the packet size, the network address, and the port number.
  • the processing module 602 is further configured to, when it is determined that a plurality of the data messages are the synchronization frames sent by the target server, determine whether the i-th data message and the (i+1)th data message are The time interval between, the i is an integer greater than or equal to 1.
  • the processing module 602 is further configured to determine the fixed synchronization frame interval of the data message according to the time interval.
  • the processing module 602 is further configured to determine the network delay jitter of the i-th data packet according to the fixed synchronization frame interval and the time interval.
  • the processing module 602 is further configured to count the first number of the same network addresses and the second number of the same port numbers; reduce the length of the message to be less than a preset threshold and the first number
  • the data packet corresponding to the network address that appears most frequently and the port number that appears most in the second number is determined to be the synchronization frame sent by the target server.
  • the processing module 602 is further configured to subtract the fixed synchronization frame interval from the time interval to obtain a time difference; and take the larger one of the time difference and 0 as the i-th datagram The network delay jitter described in the article.
  • the processing module 602 is further configured to obtain multiple round-trip delays between the terminal device and the target server; determine each of the data according to the multiple round-trip delays and the network delay jitter The peak round-trip delay of packets.
  • the processing module 602 is further configured to send multiple test messages to the target server, and record the sending time point of each test message; receive multiple response messages sent by the target server, And record the receiving time point of each response message; determine the multiple round-trip time delays according to the sending time point and the receiving time point.
  • the processing module 602 is further configured to add the smallest one of the multiple round-trip delays to the network delay jitter of the i-th data packet to obtain the sum of the delays; take the i-th one The larger one of the round-trip delay and the sum of the delays corresponding to the data message is used as the peak round-trip delay of the i-th data message.
  • each module may also correspond to the corresponding description of the method embodiment shown in FIG. 4.
  • FIG. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
  • the terminal device may include: at least one processor 701, at least one communication interface 702, at least one memory 703, and at least one communication bus 704.
  • the processor 701 may be a central processing unit, a general-purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute various exemplary logical blocks, modules, and circuits described in conjunction with the disclosure of this application.
  • the processor may also be a combination that implements computing functions, for example, a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, and so on.
  • the communication bus 704 may be a standard PCI bus for interconnecting peripheral components or an extended industry standard structure EISA bus. The bus can be divided into an address bus, a data bus, a control bus, and so on.
  • the communication bus 704 is used to implement connection and communication between these components.
  • the communication interface 702 of the device in the embodiment of the present application is used for signaling or data communication with other node devices.
  • the memory 703 may include volatile memory, such as nonvolatile random access memory (NVRAM), phase change RAM (PRAM), magnetoresistive random access memory (magetoresistive) RAM, MRAM), etc., and may also include non-volatile memory, such as at least one disk storage device, electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), flash memory devices, such as reverse or flash memory (NOR flash memory) or NAND flash memory (NAND flash memory), semiconductor devices, such as solid state disk (SSD), etc.
  • the memory 703 may also be at least one storage device located far away from the foregoing processor 701.
  • the memory 703 may also store a group of program codes, and the processor 701 may optionally also execute the programs executed in the memory 703.
  • each data message is a synchronization frame sent by a target server according to at least one of the message size, the network address, and the port number;
  • the time interval between the i-th data message and the i+1-th data message is determined, and i is an integer greater than or equal to 1;
  • processor 701 is further configured to perform the following operations:
  • the data packet corresponding to the network address with the largest number of occurrences in the first number and the port number with the largest number of occurrences in the second number is determined as the data packet sent by the target server as the length of the packet is less than the preset threshold. ⁇ Sync frame.
  • processor 701 is further configured to perform the following operations:
  • the larger one of the time difference and 0 is taken as the network delay jitter of the i-th data packet.
  • processor 701 is further configured to perform the following operations:
  • the multiple round-trip delays and the network delay jitter determine the round-trip delay peak value of each of the data packets.
  • processor 701 is further configured to perform the following operations:
  • the multiple round-trip delays are determined according to the sending time point and the receiving time point.
  • processor 701 is further configured to perform the following operations:
  • the larger one of the sum of the round-trip delay and the delay corresponding to the i-th data message is taken as the peak round-trip delay of the i-th data message.
  • the processor may also cooperate with the memory and the communication interface to perform the operation of the terminal device in the above-mentioned application embodiment.
  • the embodiment of the present application also provides a chip system, which includes a processor, which is used to support terminal devices to implement the functions involved in any of the above embodiments, such as generating or processing the data and/or involved in the above methods. Or information.
  • the chip system may further include a memory, and the memory is used for necessary program instructions and data of the terminal device or the server.
  • the chip system can be composed of chips, or include chips and other discrete devices.
  • the embodiment of the present application further provides a processor, which is configured to be coupled with a memory and used to execute any method and function related to the terminal device in any of the foregoing embodiments.
  • the embodiments of the present application also provide a computer program product, which when running on a computer, enables the computer to execute any method and function related to the terminal device in any of the foregoing embodiments.
  • the embodiment of the present application also provides a communication device for executing any method and function related to the terminal device in any of the foregoing embodiments.
  • An embodiment of the present application also provides a communication system, which includes at least one terminal device and at least one server involved in any of the foregoing embodiments.
  • the computer may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software it can be implemented in the form of a computer program product in whole or in part.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instructions may be transmitted from a website, computer, server, or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).

Landscapes

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

Abstract

Embodiments of the present invention disclose a network delay detection method and a related device. The method comprises: acquiring at least one of the message size of each received data message, a network address and a port number; determining, according to at least one of the message size, the network address, and the port number, whether each data message is a synchronization frame sent by a target server; when it is determined that the plurality of data messages are synchronization frames sent by the target server, determining a time interval between the ith data message and the (i+1)th data message, wherein i is an integer equal to or greater than 1; determining a fixed synchronization frame interval of the data message according to the time interval; and determining network delay jitter of the ith data message according to the fixed synchronization frame interval and the time interval. By means of the embodiments of the present invention, the accuracy of network delay detection can be improved.

Description

一种网络时延检测方法及相关设备Method for detecting network delay and related equipment
本申请要求于2019年11月7日提交中国国家知识产权局、申请号为201911083100.4、发明名称为“一种网络时延检测方法及相关设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the State Intellectual Property Office of China, the application number is 201911083100.4, and the invention title is "a network delay detection method and related equipment" on November 7, 2019, the entire content of which is by reference Incorporated in this application.
技术领域Technical field
本发明涉及网络技术领域,尤其涉及一种网络时延检测方法及相关设备。The present invention relates to the field of network technology, in particular to a network delay detection method and related equipment.
背景技术Background technique
电竞网络游戏体验对网络时延的要求较高,尤其是网络的突发时延对游戏体验影响极大,业界没有一款实用的工具,能够适用于大多数游戏并准确评测/记录网络对游戏体验的影响。只能通过因特网包探测器(packet internet groper,PING)检测游戏的终端设备到游戏服务器的网络时延,但是,这种检测方式检测的网络时延并不准确,与真实网络情况下的网络时延差异较大。E-sports online game experience has high requirements for network delay, especially the sudden delay of the network has a great impact on the game experience. There is no practical tool in the industry that can be applied to most games and accurately evaluate/record network pairs. The impact of the gaming experience. The network delay from the terminal device of the game to the game server can only be detected by the Internet packet detector (PING). However, the network delay detected by this detection method is not accurate, which is different from the network delay in the real network situation. The delay is quite different.
发明内容Summary of the invention
本发明实施例提供一种网络时延检测方法及相关设备,可以提高网络时延检测的准确性。The embodiment of the present invention provides a network delay detection method and related equipment, which can improve the accuracy of network delay detection.
第一方面,本发明实施例提供了一种网络时延检测方法,包括:In the first aspect, an embodiment of the present invention provides a network delay detection method, including:
获取接收到的每个数据报文的报文大小、网络地址和端口号中的至少一个;根据所述报文大小、所述网络地址和所述端口号中的至少一个,确定所述每个数据报文是否为目标服务器发送的同步帧;当确定多个所述数据报文为所述目标服务器发送的所述同步帧时,确定第i个所述数据报文与第i+1个所述数据报文之间的时间间隔,所述i为大于等于1的整数;根据所述时间间隔,确定所述数据报文的固定同步帧间隔;根据所述固定同步帧间隔和所述时间间隔,确定第i个所述数据报文的网络时延抖动。通过数据报文大小、网络地址和端口号周期性统计报文数量,进而确定目标服务器发送的数据报文。并利用数据报文的固定同步帧间隔,检测分析网络关键指标的变化,从而更加准确的确定网络时延。Obtain at least one of the message size, network address, and port number of each received data message; determine the message size, network address, and port number according to at least one of the message size, the network address, and the port number. Whether the data message is a synchronization frame sent by the target server; when it is determined that a plurality of the data messages are the synchronization frames sent by the target server, it is determined that the i-th data message and the i+1-th data message are The time interval between the data messages, the i is an integer greater than or equal to 1; according to the time interval, the fixed synchronization frame interval of the data message is determined; according to the fixed synchronization frame interval and the time interval , Determine the network delay jitter of the i-th data message. Periodically count the number of messages based on the size of the data message, network address and port number, and then determine the data message sent by the target server. And use the fixed synchronization frame interval of the data message to detect and analyze the changes in the key indicators of the network, so as to more accurately determine the network delay.
在一种可选设计中,统计相同的所述网络地址的第一数量和相同的所述端口号的第二数量;将所述报文长度小于预设阈值、所述第一数量出现最多的所述网络地址且所述第二数量出现最多的所述端口号对应的数据报文确定为所述目标服务器发送的所述同步帧。通过数据报文大小、网络地址和端口号周期性统计报文数量,确定目标服务器发送的数据报文。In an optional design, the first number of the same network addresses and the second number of the same port numbers are counted; the packet length is less than a preset threshold and the first number appears the most The data packet corresponding to the network address and the port number with the second largest occurrence is determined to be the synchronization frame sent by the target server. Periodically count the number of packets based on the size of data packets, network addresses, and port numbers to determine the data packets sent by the target server.
在另一种可选设计中,将所述时间间隔减去所述固定同步帧间隔得到时间差值;取所述时间差值和0中较大的一个作为第i个所述数据报文的所述网络时延抖动。通过网络时延抖动反映网络关键指标的变化,从而更加准确的确定网络时延。In another alternative design, the time interval is subtracted from the fixed synchronization frame interval to obtain a time difference; the larger of the time difference and 0 is taken as the i-th data message The network delay jitter. The network delay jitter reflects the changes of key network indicators, so as to more accurately determine the network delay.
在另一种可选设计中,在根据所述固定同步帧间隔和所述时间间隔,确定第i个所述数据报文的网络时延抖动之后,获取终端设备与所述目标服务器之间的多个往返时延;根 据所述多个往返时延和所述网络时延抖动,确定每个所述数据报文的往返时延峰值。通过往返时延峰值反映网络关键指标的变化,从而更加准确的确定网络时延。In another optional design, after determining the network delay jitter of the i-th data packet according to the fixed synchronization frame interval and the time interval, the difference between the terminal device and the target server is obtained Multiple round-trip delays; determining the peak round-trip delay of each data packet according to the multiple round-trip delays and the network delay jitter. The peak round-trip delay reflects the change of key network indicators, so that the network delay can be determined more accurately.
在另一种可选设计中,向所述目标服务器发送多个测试报文,并记录每个所述测试报文的发送时间点;接收所述目标服务器发送的多个响应报文,并记录每个所述响应报文的接收时间点;根据所述发送时间点和所述接收时间点,确定所述多个往返时延。In another alternative design, multiple test messages are sent to the target server, and the sending time point of each test message is recorded; multiple response messages sent by the target server are received and recorded The receiving time point of each response message; the multiple round-trip delays are determined according to the sending time point and the receiving time point.
在另一种可选设计中,将所述多个往返时延中最小的一个加上第i个所述数据报文的所述网络时延抖动得到时延之和;取第i个所述数据报文对应的所述往返时延和所述时延之和中较大的一个作为第i个所述数据报文的所述往返时延峰值。In another alternative design, the smallest one of the multiple round-trip delays is added to the network delay jitter of the i-th data packet to obtain the sum of the delays; and the i-th one The larger one of the round-trip delay and the sum of the delays corresponding to the data message is used as the peak round-trip delay of the i-th data message.
在另一种可选设计中,所述数据报文包括传输控制协议TCP报文或用户数据包协议UDP报文。In another alternative design, the data message includes a transmission control protocol TCP message or a user data packet protocol UDP message.
第二方面,本申请实施例提供了一种终端设备,该终端设备被配置为实现上述第一方面中终端设备所执行的方法和功能,由硬件/软件实现,其硬件/软件包括与上述功能相应的模块。In the second aspect, the embodiments of the present application provide a terminal device configured to implement the methods and functions performed by the terminal device in the above-mentioned first aspect. The terminal device is implemented by hardware/software, and the hardware/software includes the same functions as the above The corresponding module.
第三方面,本申请提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述任一方面的方法。In a third aspect, the present application provides a computer-readable storage medium having instructions stored in the computer-readable storage medium, which when run on a computer, cause the computer to execute the method of any one of the foregoing aspects.
第四方面,本申请提供了一种计算机程序产品,所述计算机程序产品用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述任一方面的方法。In a fourth aspect, the present application provides a computer program product, the computer program product is used to store a computer program, and when the computer program runs on a computer, the computer executes the method of any one of the above aspects.
第五方面,本申请实施例提供了一种通信系统,包括上述任一方面中的终端设备和服务器。In a fifth aspect, an embodiment of the present application provides a communication system, including the terminal device and the server in any of the foregoing aspects.
附图说明Description of the drawings
为了更清楚地说明本发明实施例或背景技术中的技术方案,下面将对本发明实施例或背景技术中所需要使用的附图进行说明。In order to more clearly describe the technical solutions in the embodiments of the present invention or the background art, the following will describe the drawings that need to be used in the embodiments of the present invention or the background art.
图1是本发明实施例提供的一种网络系统的结构示意图;Figure 1 is a schematic structural diagram of a network system provided by an embodiment of the present invention;
图2是本申请实施例提供的一种数据报文的时序示意图;FIG. 2 is a schematic diagram of a time sequence of a data message provided by an embodiment of the present application;
图3是申请实施例提供的一种网络时延数据的示意图;FIG. 3 is a schematic diagram of network delay data provided by an application embodiment;
图4是本申请实施例提供的一种网络时延检测方法的流程示意图;FIG. 4 is a schematic flowchart of a method for detecting network delay according to an embodiment of the present application;
图5是本申请实施例提供的一种时间间隔的分布示意图;FIG. 5 is a schematic diagram of a time interval distribution provided by an embodiment of the present application;
图6是本发明实施例提供的一种网络时延检测装置的结构示意图;6 is a schematic structural diagram of a network delay detection device provided by an embodiment of the present invention;
图7是本申请实施例提出的一种终端设备的结构示意图。FIG. 7 is a schematic structural diagram of a terminal device proposed in an embodiment of the present application.
具体实施方式Detailed ways
下面结合本发明实施例中的附图对本发明实施例进行描述。The embodiments of the present invention will be described below in conjunction with the drawings in the embodiments of the present invention.
请参见图1,图1是本发明实施例提供的一种网络系统的结构示意图,该网络系统可以包括终端设备101和服务器102。其中,终端设备101可以是用户设备(user equipment,UE),也可以是蜂窝电话、智能电话、便携式电脑、手持通信设备、手持计算设备、卫星无线电装置、全球定位系统、掌上电脑(personal digital assistant,PDA)和/或用于在无线通信系统上通信的任意其它适合设备等等。服务器102可以是游戏服务器,也可以是 其他应用服务器。在电竞类游戏应用场景下,游戏同步机制分为状态同步机制和帧同步机制。其中,帧同步机制主要用于对时延要求较高的电竞类游戏,通过UDP报文承载游戏数据。终端设备可以首先接收用户的操作指令,然后向服务器发送用户数据包协议(user datagram protocol,UDP)上行报文。服务器接收到UDP上行报文之后,进行指令逻辑判断,然后向终端设备发送UDP下行同步报文。对于UDP协议的报文,上行报文和下行报文无对应序号,无相关工具评测UDP报文的网络时延。Please refer to FIG. 1, which is a schematic structural diagram of a network system provided by an embodiment of the present invention. The network system may include a terminal device 101 and a server 102. Among them, the terminal device 101 may be a user equipment (UE), or a cellular phone, a smart phone, a portable computer, a handheld communication device, a handheld computing device, a satellite radio device, a global positioning system, or a personal digital assistant (personal digital assistant). , PDA) and/or any other suitable equipment for communicating on a wireless communication system, etc. The server 102 may be a game server or other application servers. In the application scenarios of e-sports games, the game synchronization mechanism is divided into a state synchronization mechanism and a frame synchronization mechanism. Among them, the frame synchronization mechanism is mainly used for e-sports games that require high latency, and the game data is carried through UDP packets. The terminal device may first receive the user's operation instruction, and then send the user datagram protocol (UDP) uplink message to the server. After the server receives the UDP uplink message, it performs the instruction logic judgment, and then sends the UDP downlink synchronization message to the terminal device. For UDP protocol packets, there is no corresponding sequence number for upstream packets and downstream packets, and there is no related tool to evaluate the network delay of UDP packets.
如图2所示,图2是本申请实施例提供的一种UDP报文的时序示意图。服务器可以按照固定同步帧间隔向客户端A和客户端B发送逻辑帧,其中,该固定同步帧间隔可以为66ms或50ms,但不限定。客户端A和客户端B可以在不同的时间点向服务器发送操作指令。当网络往返时延(round trip time,RTT)变大时,会导致用户操作响应时间增加,影响用户体验。其中,RTT表示终端设备和服务器之间的往返时延。As shown in FIG. 2, FIG. 2 is a schematic diagram of a sequence of a UDP packet provided by an embodiment of the present application. The server may send logical frames to the client A and the client B at a fixed synchronization frame interval, where the fixed synchronization frame interval may be 66 ms or 50 ms, but is not limited. Client A and client B can send operation instructions to the server at different points in time. When the network round trip time (RTT) becomes larger, it will increase the response time of user operations and affect the user experience. Among them, RTT represents the round-trip delay between the terminal device and the server.
在现有技术方案中,可以通过Ping检测终端设备到服务器的往返时延。但是,存在以下问题:第一,此方案仅适用已知服务器的网络协议(internet protocol,IP)地址,并且服务器需响应Ping,否则无法检测RTT,使用限制条件较多,应用场景不够广泛。第二,由于服务器的IP地址多变,并且Ping检测报文的时间间隔较大,无法准确的反应出真实的网络时延。如图3所示,图3是申请实施例提供的一种网络时延数据的示意图。通过Ping在第一个时间点采集到的网络时延小于300ms,而实际在这个时间点的网络时延大于700ms。在第二个时间点采集的网络时延小于400ms,而实际在这个时间点的网络时延大于700ms。在第三个时间点也类似。因此通过Ping方式采集到的网络时延与真实网络环境下的网络时延差异很大,并不能真实的反映真实的网络时延。In the prior art solution, the round trip delay from the terminal device to the server can be detected through Ping. However, there are the following problems: First, this solution only applies to the Internet protocol (IP) address of a known server, and the server needs to respond to Ping, otherwise RTT cannot be detected, there are many restrictions on use, and the application scenarios are not extensive enough. Second, because the IP address of the server is changeable, and the time interval for Ping to detect packets is relatively long, it cannot accurately reflect the real network delay. As shown in FIG. 3, FIG. 3 is a schematic diagram of network delay data provided by an application embodiment. The network delay collected by Ping at the first point in time is less than 300ms, but the actual network delay at this point in time is greater than 700ms. The network delay collected at the second point in time is less than 400ms, but the actual network delay at this point in time is greater than 700ms. It is similar at the third time point. Therefore, the network delay collected by Ping is very different from the network delay in the real network environment, and it cannot truly reflect the real network delay.
如图4所示,图4是本申请实施例提供的一种网络时延检测方法的流程示意图。该方法至少包括如下步骤:As shown in FIG. 4, FIG. 4 is a schematic flowchart of a method for detecting network delay according to an embodiment of the present application. The method includes at least the following steps:
S401,获取接收到的每个数据报文的报文大小、网络地址和端口号中的至少一个。其中,所述数据报文可以包括传输控制协议TCP报文或用户数据包协议UDP报文。其中,TCP报文和UDP报文为固定同步帧间隔的报文。S401: Acquire at least one of the message size, network address, and port number of each received data message. Wherein, the data message may include a transmission control protocol TCP message or a user data packet protocol UDP message. Among them, the TCP message and the UDP message are messages with a fixed synchronization frame interval.
具体实现中,可以首先获取一个测试周期内终端设备向服务器发送的所有报文信息和终端设备接收到的服务器发送的所有报文信息。所有报文信息包括传输控制协议(transmission control protocol,TCP)报文、用户数据包协议(user datagram protocol,UDP)报文、域名系统(domain name system,DNS)报文和超文本传输协议(hyper text transport protocol,HTTP)报文等等。根据报文协议,可以从所有报文信息中过滤出所述数据报文。然后分别获取每个数据报文的报文大小、网络地址和端口号。其中,网络地址可以为网络协议(internet protocol,IP)地址。In specific implementation, it is possible to first obtain all message information sent by the terminal device to the server during a test period and all message information sent by the server received by the terminal device. All message information includes transmission control protocol (TCP) messages, user datagram protocol (UDP) messages, domain name system (DNS) messages, and hypertext transfer protocol (hypertext transfer protocol) messages. text transport protocol, HTTP) messages and so on. According to the message protocol, the data message can be filtered out from all message information. Then obtain the message size, network address, and port number of each data message. Among them, the network address may be an internet protocol (IP) address.
S402,根据所述报文大小、所述网络地址和所述端口号中的至少一个,确定所述每个数据报文是否为目标服务器发送的同步帧。S402: Determine whether each data packet is a synchronization frame sent by a target server according to at least one of the packet size, the network address, and the port number.
具体实现中,可以首先根据每个报文的报文大小进行筛选,筛选出报文大小小于预设阈值的报文,然后对于筛选出的报文,统计相同的所述网络地址的第一数量,如果某一个网络地址出现的第一数量最多、并且不是本机的网络地址,则可以确定该网络地址为目标服务器的网络地址,该网络地址对应的数据报文为目标服务器发送的数据报文。最后统计 相同的端口号的第二数量,如果某一个端口号出现的第二数量最多,则确定该端口号对应的下行的数据报文为目标服务器发送的同步帧。其中,该数据报文为固定周期间隔的同步帧。预设阈值包括但不限于500个字节。In specific implementation, you can first filter according to the message size of each message, filter out the messages whose message size is less than the preset threshold, and then count the first number of the same network addresses for the filtered messages , If a certain network address has the largest number of occurrences and it is not the network address of the machine, it can be determined that the network address is the network address of the target server, and the data message corresponding to the network address is the data message sent by the target server . Finally, the second number of the same port number is counted. If the second number of a certain port number appears the most, it is determined that the downlink data packet corresponding to the port number is a synchronization frame sent by the target server. Among them, the data message is a synchronization frame with a fixed periodic interval. The preset threshold includes but is not limited to 500 bytes.
S403,当确定多个所述数据报文为所述目标服务器发送的所述同步帧时,确定第i个所述数据报文与第i+1个所述数据报文之间的时间间隔,所述i为大于等于1的整数。S403: When it is determined that a plurality of the data messages are the synchronization frames sent by the target server, determine the time interval between the i-th data message and the (i+1)th data message, The i is an integer greater than or equal to 1.
具体实现中,对于上述过滤出的同步帧,可以首先获取数据报文的时间戳,该时间戳记录了每个数据报文的接收时间点。然后根据数据报文的时间戳,计算第i个所述数据报文与第i+1个所述数据报文之间的时间间隔。也即将第i+1个所述数据报文的接收时间点减去第i个报文的接收时间点得到的差值作为第i个所述数据报文与第i+1个所述数据报文之间的时间间隔。In specific implementation, for the above filtered synchronization frame, the time stamp of the data message may be obtained first, and the time stamp records the time point of receiving each data message. Then, according to the time stamp of the data message, the time interval between the i-th data message and the (i+1)th data message is calculated. That is, the difference obtained by subtracting the receiving time point of the i-th message from the receiving time point of the i+1-th said data message is taken as the i-th said data message and the i+1-th said data message The time interval between texts.
可选的,可以通过异常点/离群点检测算法,去除异常的数据报文的时间间隔。如图5所示,图5是本申请实施例提供的一种时间间隔的分布示意图。如果某个时间间隔分布该图5中的阴影部分,则确定该时间间隔为异常的时间间隔。如果某个时间间隔分布在-Za至Za之间、且位于曲线与横轴之间,则确定该时间间隔为有效的时间间隔。Optionally, an abnormal point/outlier detection algorithm can be used to remove the time interval of abnormal data packets. As shown in FIG. 5, FIG. 5 is a schematic diagram of a time interval distribution provided by an embodiment of the present application. If a certain time interval is distributed in the shaded part in FIG. 5, it is determined that the time interval is an abnormal time interval. If a certain time interval is distributed between -Za and Za and between the curve and the horizontal axis, the time interval is determined to be a valid time interval.
S404,根据所述时间间隔,确定所述数据报文的固定同步帧间隔。S404: Determine a fixed synchronization frame interval of the data message according to the time interval.
在一种实现方式中,可以使用线性回归方法,计算最小均方差对应的时间间隔作为固定同步帧间隔。例如,可以通过以下公式计算固定同步帧间隔:In an implementation manner, a linear regression method can be used to calculate the time interval corresponding to the minimum mean square error as the fixed synchronization frame interval. For example, the fixed synchronization frame interval can be calculated by the following formula:
Figure PCTCN2020112308-appb-000001
σ 2为均方差,N为数据报文的个数,T_UDP i+1为第i+1个数据报文的接收时间点,T_UDP i为第i个数据报文的接收时间点,T_sc为固定同步帧间隔。
Figure PCTCN2020112308-appb-000001
σ 2 is the mean square error, N is the number of data messages, T_UDP i+1 is the receiving time point of the i+1 data message, T_UDP i is the receiving time point of the i data message, and T_sc is fixed Synchronization frame interval.
具体的,可以设定T_sc的初始值,根据该初始值和时间间隔计算均方差。然后按照预设的步进长度修改(增加或减少)T_sc的初始值,根据该修改后的T_sc的初始值和时间间隔再一次计算均方差,接着再一次按照预设的步进长度修改(增加或减少)T_sc的初始值,计算均方差。按照上述步骤重复多次操作,计算出多个均方差。确定多个均方差中最小的一个,将该最小的均方差对应的T_sc作为固定同步帧间隔。Specifically, the initial value of T_sc can be set, and the mean square error can be calculated according to the initial value and the time interval. Then modify (increase or decrease) the initial value of T_sc according to the preset step length, calculate the mean square error again according to the modified initial value and time interval of T_sc, and then modify (increase) the preset step length again Or reduce) the initial value of T_sc, and calculate the mean square error. Repeat the above steps several times to calculate multiple mean square errors. Determine the smallest one of the multiple mean square errors, and use T_sc corresponding to the smallest mean square error as the fixed synchronization frame interval.
在另一种实现方式中,可以取N-1个时间间隔的中值作为固定同步帧间隔。例如,T_sc=median(T_UDP i+1-T_UDP i)。其中,T_UDP i+1为第i+1个数据报文的接收时间点,T_UDP i为第i个数据报文的接收时间点,T_sc为固定同步帧间隔,madian表示取中值运算。 In another implementation manner, the median value of N-1 time intervals may be taken as the fixed synchronization frame interval. For example, T_sc=median(T_UDP i+1- T_UDP i ). Among them, T_UDP i+1 is the receiving time point of the i+ 1th data message, T_UDP i is the receiving time point of the i-th data message, T_sc is the fixed synchronization frame interval, and madian represents the median operation.
S405,根据所述固定同步帧间隔和所述时间间隔,确定第i个所述数据报文的网络时延抖动。S405. Determine the network delay jitter of the i-th data packet according to the fixed synchronization frame interval and the time interval.
具体实现中,可以将所述时间间隔减去所述固定同步帧间隔得到时间差值;取所述时间差值和0中较大的一个作为第i个所述数据报文的所述网络时延抖动。In specific implementation, the time interval may be subtracted from the fixed synchronization frame interval to obtain the time difference; the larger of the time difference and 0 is taken as the network time of the i-th data packet Delay jitter.
例如,Jitter_i=MAX[(T_UDP i+1-T_UDP i)-T_sc,0],其中,Jitter_i表示第i个数据报文的网络时延抖动,T_UDP i+1为第i+1个数据报文的接收时间点,T_UDP i为第i个数据报文的接收时间点,T_sc为固定同步帧间隔。MAX表示取最大值运算。 For example, Jitter_i=MAX[(T_UDP i+1 -T_UDP i )-T_sc, 0], where Jitter_i represents the network delay jitter of the i-th data packet, and T_UDP i+1 is the i+1-th data packet T_UDP i is the receiving time point of the i-th data message, and T_sc is the fixed synchronization frame interval. MAX represents the maximum value operation.
可选的,在根据所述固定同步帧间隔和所述时间间隔,确定第i个所述数据报文的网络时延抖动之后,可以首先获取终端设备与所述目标服务器之间的多个往返时延(RTT时延)。进一步的,可以按照预设周期向所述目标服务器发送多个测试报文,其中,该预设周期的长度可以为上述固定同步帧间隔。记录每个所述测试报文的发送时间点。然后接收所述目标服务器发送的多个响应报文,并记录每个所述响应报文的接收时间点。根据所述发送时间点和所述接收时间点,确定所述多个往返时延。其中,测试报文可以为Ping报文。Optionally, after determining the network delay jitter of the i-th data packet according to the fixed synchronization frame interval and the time interval, multiple round trips between the terminal device and the target server may be acquired first Time delay (RTT time delay). Further, a plurality of test messages may be sent to the target server according to a preset period, where the length of the preset period may be the aforementioned fixed synchronization frame interval. Record the sending time point of each test message. Then, multiple response messages sent by the target server are received, and the time point of receiving each of the response messages is recorded. The multiple round-trip delays are determined according to the sending time point and the receiving time point. Among them, the test message may be a Ping message.
例如,可以在一局网络游戏过程中,按照预设周期向游戏服务器发送Ping报文,共测试i次获取i个RTT时延,i个RTT表示为:RTT_1、……、RTT_i。或者,当游戏服务器采用云服务器,禁止Ping探测时,可以从终端设备采集到的所有报文中过滤出TCP报文,然后根据TCP报文计算RTT时延。For example, during an online game, a Ping message can be sent to the game server according to a preset cycle to test i times to obtain i RTT delays, and i RTTs are represented as: RTT_1,..., RTT_i. Or, when the game server uses a cloud server and Ping detection is prohibited, TCP packets can be filtered out from all the packets collected by the terminal device, and then the RTT delay can be calculated based on the TCP packets.
然后,根据所述多个往返时延和所述网络时延抖动,确定每个所述数据报文的往返时延峰值。进一步的,可以将所述多个往返时延中最小的一个加上第i个所述数据报文的所述网络时延抖动得到时延之和,取第i个所述数据报文对应的所述往返时延和所述时延之和中较大的一个作为第i个所述数据报文的所述往返时延峰值。Then, according to the multiple round-trip delays and the network delay jitter, the round-trip delay peak value of each of the data packets is determined. Further, the smallest one of the multiple round-trip delays may be added to the network delay jitter of the i-th data message to obtain the sum of the delays, and the value corresponding to the i-th data message may be taken The larger one of the round-trip delay and the sum of the delays is used as the peak round-trip delay of the i-th data packet.
例如,RRT_peak_i=MAX(RRT_min+Jitter_i,RTT_i)。其中,RRT_peak_i为第i个数据报文对应的RTT峰值,RRT_min为测试到的多个往返时延中最小的一个往返时延,Jitter_i为第i个数据报文的所述网络时延抖动,RTT_i为第i个报文对应的Ping报文的所述往返时延。MAX表示取最大值运算。For example, RRT_peak_i=MAX(RRT_min+Jitter_i, RTT_i). Among them, RRT_peak_i is the peak value of RTT corresponding to the i-th data packet, RRT_min is the smallest one among the multiple round-trip delays tested, Jitter_i is the network delay jitter of the i-th data packet, RTT_i Is the round-trip delay of the Ping message corresponding to the i-th message. MAX represents the maximum value operation.
在本申请实施例中,通过数据报文大小、网络地址和端口号周期性统计报文数量,进而确定目标服务器发送的数据报文。并利用数据报文的固定同步帧间隔,检测分析网络关键指标的变化,从而更加准确的确定网络时延。本申请实施例可以应用于网络游戏对战,可以帮助游戏用户判断网络状况,指导用户选择合适的运营商网络和游戏用户体验测试场景。用户可以使用不同网络测试得到的网络时延指标差异,从而选择最佳的网络状况。并且,可以帮助运营商准确评估网络时延指标,打造高质量的游戏网络环境。In the embodiment of the present application, the number of packets is periodically counted based on the size of the data packet, the network address, and the port number, so as to determine the data packet sent by the target server. And use the fixed synchronization frame interval of the data message to detect and analyze the changes in the key indicators of the network, so as to more accurately determine the network delay. The embodiments of the present application can be applied to online game battles, can help game users judge network conditions, and guide users to select appropriate operator networks and game user experience test scenarios. Users can use the difference in network delay indicators obtained from different network tests to select the best network condition. In addition, it can help operators accurately evaluate network latency indicators and create a high-quality gaming network environment.
上述详细阐述了本发明实施例的方法,下面提供了本发明实施例的装置。The foregoing describes the method of the embodiment of the present invention in detail, and the device of the embodiment of the present invention is provided below.
请参见图6,图6是本发明实施例提供的一种网络时延检测装置的结构示意图,该网络时延检测装置可以包括获取模块601和处理模块602,其中,各个单元的详细描述如下。Please refer to FIG. 6, which is a schematic structural diagram of a network delay detection device provided by an embodiment of the present invention. The network delay detection device may include an acquisition module 601 and a processing module 602. The detailed description of each unit is as follows.
获取模块601,用于获取接收到的每个数据报文的报文大小、网络地址和端口号中的至少一个。The obtaining module 601 is configured to obtain at least one of the message size, network address, and port number of each received data message.
处理模块602,用于根据所述报文大小、所述网络地址和所述端口号中的至少一个,确定所述每个数据报文是否为目标服务器发送的同步帧。The processing module 602 is configured to determine whether each data packet is a synchronization frame sent by a target server according to at least one of the packet size, the network address, and the port number.
处理模块602,还用于当确定多个所述数据报文为所述目标服务器发送的所述同步帧时,确定第i个所述数据报文与第i+1个所述数据报文之间的时间间隔,所述i为大于等于1的整数。The processing module 602 is further configured to, when it is determined that a plurality of the data messages are the synchronization frames sent by the target server, determine whether the i-th data message and the (i+1)th data message are The time interval between, the i is an integer greater than or equal to 1.
处理模块602,还用于根据所述时间间隔,确定所述数据报文的固定同步帧间隔。The processing module 602 is further configured to determine the fixed synchronization frame interval of the data message according to the time interval.
处理模块602,还用于根据所述固定同步帧间隔和所述时间间隔,确定第i个所述数据报文的网络时延抖动。The processing module 602 is further configured to determine the network delay jitter of the i-th data packet according to the fixed synchronization frame interval and the time interval.
可选的,处理模块602,还用于统计相同的所述网络地址的第一数量和相同的所述端口号的第二数量;将所述报文长度小于预设阈值、所述第一数量出现最多的所述网络地址且所述第二数量出现最多的所述端口号对应的数据报文确定为所述目标服务器发送的所述同步帧。Optionally, the processing module 602 is further configured to count the first number of the same network addresses and the second number of the same port numbers; reduce the length of the message to be less than a preset threshold and the first number The data packet corresponding to the network address that appears most frequently and the port number that appears most in the second number is determined to be the synchronization frame sent by the target server.
可选的,处理模块602,还用于将所述时间间隔减去所述固定同步帧间隔得到时间差值;取所述时间差值和0中较大的一个作为第i个所述数据报文的所述网络时延抖动。Optionally, the processing module 602 is further configured to subtract the fixed synchronization frame interval from the time interval to obtain a time difference; and take the larger one of the time difference and 0 as the i-th datagram The network delay jitter described in the article.
可选的,处理模块602,还用于获取终端设备与所述目标服务器之间的多个往返时延;根据所述多个往返时延和所述网络时延抖动,确定每个所述数据报文的往返时延峰值。Optionally, the processing module 602 is further configured to obtain multiple round-trip delays between the terminal device and the target server; determine each of the data according to the multiple round-trip delays and the network delay jitter The peak round-trip delay of packets.
可选的,处理模块602,还用于向所述目标服务器发送多个测试报文,并记录每个所述测试报文的发送时间点;接收所述目标服务器发送的多个响应报文,并记录每个所述响应报文的接收时间点;根据所述发送时间点和所述接收时间点,确定所述多个往返时延。Optionally, the processing module 602 is further configured to send multiple test messages to the target server, and record the sending time point of each test message; receive multiple response messages sent by the target server, And record the receiving time point of each response message; determine the multiple round-trip time delays according to the sending time point and the receiving time point.
可选的,处理模块602,还用于将所述多个往返时延中最小的一个加上第i个所述数据报文的所述网络时延抖动得到时延之和;取第i个所述数据报文对应的所述往返时延和所述时延之和中较大的一个作为第i个所述数据报文的所述往返时延峰值。Optionally, the processing module 602 is further configured to add the smallest one of the multiple round-trip delays to the network delay jitter of the i-th data packet to obtain the sum of the delays; take the i-th one The larger one of the round-trip delay and the sum of the delays corresponding to the data message is used as the peak round-trip delay of the i-th data message.
需要说明的是,各个模块的实现还可以对应参照图4所示的方法实施例的相应描述。It should be noted that the implementation of each module may also correspond to the corresponding description of the method embodiment shown in FIG. 4.
请继续参考图7,图7是本申请实施例提出的一种终端设备的结构示意图。如图7所示,该终端设备可以包括:至少一个处理器701,至少一个通信接口702,至少一个存储器703和至少一个通信总线704。Please continue to refer to FIG. 7, which is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in FIG. 7, the terminal device may include: at least one processor 701, at least one communication interface 702, at least one memory 703, and at least one communication bus 704.
其中,处理器701可以是中央处理器单元,通用处理器,数字信号处理器,专用集成电路,现场可编程门阵列或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理器和微处理器的组合等等。通信总线704可以是外设部件互连标准PCI总线或扩展工业标准结构EISA总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图7中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。通信总线704用于实现这些组件之间的连接通信。其中,本申请实施例中设备的通信接口702用于与其他节点设备进行信令或数据的通信。存储器703可以包括易失性存储器,例如非挥发性动态随机存取内存(nonvolatile random access memory,NVRAM)、相变化随机存取内存(phase change RAM,PRAM)、磁阻式随机存取内存(magetoresistive RAM,MRAM)等,还可以包括非易失性存储器,例如至少一个磁盘存储器件、电子可擦除可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、闪存器件,例如反或闪存(NOR flash memory)或是反及闪存(NAND flash memory)、半导体器件,例如固态硬盘(solid state disk,SSD)等。存储器703可选的还可以是至少一个位于远离前述处理器701的存储装置。存储器703中可选的还可以存储一组程序代码,且处理器701可选的还可以执行存储器703中所执行的程序。The processor 701 may be a central processing unit, a general-purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute various exemplary logical blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements computing functions, for example, a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, and so on. The communication bus 704 may be a standard PCI bus for interconnecting peripheral components or an extended industry standard structure EISA bus. The bus can be divided into an address bus, a data bus, a control bus, and so on. For ease of representation, only one thick line is used in FIG. 7, but it does not mean that there is only one bus or one type of bus. The communication bus 704 is used to implement connection and communication between these components. Among them, the communication interface 702 of the device in the embodiment of the present application is used for signaling or data communication with other node devices. The memory 703 may include volatile memory, such as nonvolatile random access memory (NVRAM), phase change RAM (PRAM), magnetoresistive random access memory (magetoresistive) RAM, MRAM), etc., and may also include non-volatile memory, such as at least one disk storage device, electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), flash memory devices, such as reverse or flash memory (NOR flash memory) or NAND flash memory (NAND flash memory), semiconductor devices, such as solid state disk (SSD), etc. Optionally, the memory 703 may also be at least one storage device located far away from the foregoing processor 701. Optionally, the memory 703 may also store a group of program codes, and the processor 701 may optionally also execute the programs executed in the memory 703.
获取接收到的每个数据报文的报文大小、网络地址和端口号中的至少一个;Obtain at least one of the message size, network address, and port number of each received data message;
根据所述报文大小、所述网络地址和所述端口号中的至少一个,确定所述每个数据报 文是否为目标服务器发送的同步帧;Determining whether each data message is a synchronization frame sent by a target server according to at least one of the message size, the network address, and the port number;
当确定多个所述数据报文为所述目标服务器发送的所述同步帧时,确定第i个所述数据报文与第i+1个所述数据报文之间的时间间隔,所述i为大于等于1的整数;When it is determined that a plurality of the data messages are the synchronization frames sent by the target server, the time interval between the i-th data message and the i+1-th data message is determined, and i is an integer greater than or equal to 1;
根据所述时间间隔,确定所述数据报文的固定同步帧间隔;Determine the fixed synchronization frame interval of the data message according to the time interval;
根据所述固定同步帧间隔和所述时间间隔,确定第i个所述数据报文的网络时延抖动。Determine the network delay jitter of the i-th data packet according to the fixed synchronization frame interval and the time interval.
可选的,处理器701还用于执行如下操作:Optionally, the processor 701 is further configured to perform the following operations:
统计相同的所述网络地址的第一数量和相同的所述端口号的第二数量;Counting the first number of the same network addresses and the second number of the same port numbers;
将所述报文长度小于预设阈值、所述第一数量出现最多的所述网络地址且所述第二数量出现最多的所述端口号对应的数据报文确定为所述目标服务器发送的所述同步帧。The data packet corresponding to the network address with the largest number of occurrences in the first number and the port number with the largest number of occurrences in the second number is determined as the data packet sent by the target server as the length of the packet is less than the preset threshold.述Sync frame.
可选的,处理器701还用于执行如下操作:Optionally, the processor 701 is further configured to perform the following operations:
将所述时间间隔减去所述固定同步帧间隔得到时间差值;Subtracting the fixed synchronization frame interval from the time interval to obtain a time difference;
取所述时间差值和0中较大的一个作为第i个所述数据报文的所述网络时延抖动。The larger one of the time difference and 0 is taken as the network delay jitter of the i-th data packet.
可选的,处理器701还用于执行如下操作:Optionally, the processor 701 is further configured to perform the following operations:
获取终端设备与所述目标服务器之间的多个往返时延;Acquiring multiple round-trip delays between the terminal device and the target server;
根据所述多个往返时延和所述网络时延抖动,确定每个所述数据报文的往返时延峰值。According to the multiple round-trip delays and the network delay jitter, determine the round-trip delay peak value of each of the data packets.
可选的,处理器701还用于执行如下操作:Optionally, the processor 701 is further configured to perform the following operations:
向所述目标服务器发送多个测试报文,并记录每个所述测试报文的发送时间点;Sending multiple test messages to the target server, and recording the sending time point of each test message;
接收所述目标服务器发送的多个响应报文,并记录每个所述响应报文的接收时间点;Receiving multiple response messages sent by the target server, and recording the receiving time point of each response message;
根据所述发送时间点和所述接收时间点,确定所述多个往返时延。The multiple round-trip delays are determined according to the sending time point and the receiving time point.
可选的,处理器701还用于执行如下操作:Optionally, the processor 701 is further configured to perform the following operations:
将所述多个往返时延中最小的一个加上第i个所述数据报文的所述网络时延抖动得到时延之和;Adding the smallest one of the multiple round-trip delays to the network delay jitter of the i-th data packet to obtain the sum of the delays;
取第i个所述数据报文对应的所述往返时延和所述时延之和中较大的一个作为第i个所述数据报文的所述往返时延峰值。The larger one of the sum of the round-trip delay and the delay corresponding to the i-th data message is taken as the peak round-trip delay of the i-th data message.
进一步的,处理器还可以与存储器和通信接口相配合,执行上述申请实施例中终端设备的操作。Further, the processor may also cooperate with the memory and the communication interface to perform the operation of the terminal device in the above-mentioned application embodiment.
本申请实施例还提供了一种芯片系统,该芯片系统包括处理器,用于支持终端设备以实现上述任一实施例中所涉及的功能,例如生成或处理上述方法中所涉及的数据和/或信息。在一种可能的设计中,所述芯片系统还可以包括存储器,所述存储器,用于终端设备或服务器必要的程序指令和数据。该芯片系统,可以由芯片构成,也可以包含芯片和其他分立器件。The embodiment of the present application also provides a chip system, which includes a processor, which is used to support terminal devices to implement the functions involved in any of the above embodiments, such as generating or processing the data and/or involved in the above methods. Or information. In a possible design, the chip system may further include a memory, and the memory is used for necessary program instructions and data of the terminal device or the server. The chip system can be composed of chips, or include chips and other discrete devices.
本申请实施例还提供了一种处理器,用于与存储器耦合,用于执行上述各实施例中任一实施例中涉及终端设备的任意方法和功能。The embodiment of the present application further provides a processor, which is configured to be coupled with a memory and used to execute any method and function related to the terminal device in any of the foregoing embodiments.
本申请实施例还提供了一种计算机程序产品,其在计算机上运行时,使得计算机执行上述各实施例中任一实施例中涉及终端设备的任意方法和功能。The embodiments of the present application also provide a computer program product, which when running on a computer, enables the computer to execute any method and function related to the terminal device in any of the foregoing embodiments.
本申请实施例还提供了一种通信装置,用于执行上述各实施例中任一实施例中涉及终端设备的任意方法和功能。The embodiment of the present application also provides a communication device for executing any method and function related to the terminal device in any of the foregoing embodiments.
本申请实施例还提供一种通信系统,该系统包括上述任一实施例中涉及的至少一个终端设备和至少一个服务器。An embodiment of the present application also provides a communication system, which includes at least one terminal device and at least one server involved in any of the foregoing embodiments.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘solid state disk(SSD))等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented by software, it can be implemented in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center. Transmission to another website site, computer, server or data center via wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).
以上所述的具体实施方式,对本申请的目的、技术方案和有益效果进行了进一步详细说明。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The specific implementations described above further describe the purpose, technical solutions, and beneficial effects of the present application in further detail. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included in the protection scope of this application.

Claims (14)

  1. 一种网络时延检测方法,其特征在于,包括:A method for detecting network delay, which is characterized in that it comprises:
    获取接收到的每个数据报文的报文大小、网络地址和端口号中的至少一个;Obtain at least one of the message size, network address, and port number of each received data message;
    根据所述报文大小、所述网络地址和所述端口号中的至少一个,确定所述每个数据报文是否为目标服务器发送的同步帧;Determining whether each data message is a synchronization frame sent by a target server according to at least one of the message size, the network address, and the port number;
    当确定多个所述数据报文为所述目标服务器发送的所述同步帧时,确定第i个所述数据报文与第i+1个所述数据报文之间的时间间隔,所述i为大于等于1的整数;When it is determined that a plurality of the data messages are the synchronization frames sent by the target server, the time interval between the i-th data message and the i+1-th data message is determined, and i is an integer greater than or equal to 1;
    根据所述时间间隔,确定所述数据报文的固定同步帧间隔;Determine the fixed synchronization frame interval of the data message according to the time interval;
    根据所述固定同步帧间隔和所述时间间隔,确定第i个所述数据报文的网络时延抖动。Determine the network delay jitter of the i-th data packet according to the fixed synchronization frame interval and the time interval.
  2. 如权利要求1所述的方法,其特征在于,所述根据所述报文大小、所述网络地址和所述端口号中的至少一个,确定所述每个数据报文是否为目标服务器发送的同步帧包括:The method according to claim 1, wherein the determining whether each data message is sent by the target server according to at least one of the message size, the network address, and the port number The synchronization frame includes:
    统计相同的所述网络地址的第一数量和相同的所述端口号的第二数量;Counting the first number of the same network addresses and the second number of the same port numbers;
    将所述报文长度小于预设阈值、所述第一数量出现最多的所述网络地址且所述第二数量出现最多的所述端口号对应的数据报文确定为所述目标服务器发送的所述同步帧。The data packet corresponding to the network address with the largest number of occurrences in the first number and the port number with the largest number of occurrences in the second number is determined as the data packet sent by the target server as the packet length is less than a preset threshold述Sync frame.
  3. 如权利要求1或2所述的方法,其特征在于,所述根据所述固定同步帧间隔和所述时间间隔,确定第i个所述数据报文的网络时延抖动包括:The method according to claim 1 or 2, wherein the determining the network delay jitter of the i-th data packet according to the fixed synchronization frame interval and the time interval comprises:
    将所述时间间隔减去所述固定同步帧间隔得到时间差值;Subtracting the fixed synchronization frame interval from the time interval to obtain a time difference;
    取所述时间差值和0中较大的一个作为第i个所述数据报文的所述网络时延抖动。The larger one of the time difference and 0 is taken as the network delay jitter of the i-th data packet.
  4. 如权利要求1-3任一项所述的方法,其特征在于,所述根据所述固定同步帧间隔和所述时间间隔,确定第i个所述数据报文的网络时延抖动之后,还包括:The method according to any one of claims 1 to 3, wherein after determining the network delay jitter of the i-th data packet according to the fixed synchronization frame interval and the time interval, further include:
    获取终端设备与所述目标服务器之间的多个往返时延;Acquiring multiple round-trip delays between the terminal device and the target server;
    根据所述多个往返时延和所述网络时延抖动,确定每个所述数据报文的往返时延峰值。According to the multiple round-trip delays and the network delay jitter, determine the round-trip delay peak value of each of the data packets.
  5. 如权利要求4所述的方法,其特征在于,所述获取终端设备与所述目标服务器之间的多个往返时延包括:The method according to claim 4, wherein said obtaining multiple round trip delays between the terminal device and the target server comprises:
    向所述目标服务器发送多个测试报文,并记录每个所述测试报文的发送时间点;Sending multiple test messages to the target server, and recording the sending time point of each test message;
    接收所述目标服务器发送的多个响应报文,并记录每个所述响应报文的接收时间点;Receiving multiple response messages sent by the target server, and recording the receiving time point of each of the response messages;
    根据所述发送时间点和所述接收时间点,确定所述多个往返时延。The multiple round-trip delays are determined according to the sending time point and the receiving time point.
  6. 如权利要求4所述的方法,其特征在于,所述根据所述多个往返时延和所述网络时延抖动,确定每个所述数据报文的往返时延峰值包括:The method according to claim 4, wherein the determining the round-trip delay peak value of each of the data packets according to the multiple round-trip delays and the network delay jitter comprises:
    将所述多个往返时延中最小的一个加上第i个所述数据报文的所述网络时延抖动得到时延之和;Adding the smallest one of the multiple round-trip delays to the network delay jitter of the i-th data packet to obtain the sum of the delays;
    取第i个所述数据报文对应的所述往返时延和所述时延之和中较大的一个作为第i个所述数据报文的所述往返时延峰值。The larger one of the sum of the round-trip delay and the delay corresponding to the i-th data message is taken as the peak round-trip delay of the i-th data message.
  7. 一种网络时延检测装置,其特征在于,包括:A network delay detection device, characterized in that it comprises:
    获取模块,用于获取接收到的每个数据报文的报文大小、网络地址和端口号中的至少一个;The obtaining module is used to obtain at least one of the message size, network address, and port number of each received data message;
    处理模块,用于根据所述报文大小、所述网络地址和所述端口号中的至少一个,确定 所述每个数据报文是否为目标服务器发送的同步帧;A processing module, configured to determine whether each data message is a synchronization frame sent by a target server according to at least one of the message size, the network address, and the port number;
    所述处理模块,还用于当确定多个所述数据报文为所述目标服务器发送的所述同步帧时,确定第i个所述数据报文与第i+1个所述数据报文之间的时间间隔,所述i为大于等于1的整数;The processing module is further configured to determine the i-th data message and the (i+1)th data message when it is determined that a plurality of the data messages are the synchronization frames sent by the target server The time interval between, said i is an integer greater than or equal to 1;
    所述处理模块,还用于根据所述时间间隔,确定所述数据报文的固定同步帧间隔;The processing module is further configured to determine the fixed synchronization frame interval of the data message according to the time interval;
    所述处理模块,还用于根据所述固定同步帧间隔和所述时间间隔,确定第i个所述数据报文的网络时延抖动。The processing module is further configured to determine the network delay jitter of the i-th data packet according to the fixed synchronization frame interval and the time interval.
  8. 如权利要求7所述的装置,其特征在于,The device of claim 7, wherein:
    所述处理模块,还用于统计相同的所述网络地址的第一数量和相同的所述端口号的第二数量;将所述报文长度小于预设阈值、所述第一数量出现最多的所述网络地址且所述第二数量出现最多的所述端口号对应的数据报文确定为所述目标服务器发送的所述同步帧。The processing module is further configured to count the first number of the same network address and the second number of the same port number; the length of the message is smaller than a preset threshold and the first number appears the most The data packet corresponding to the network address and the port number with the second largest occurrence is determined to be the synchronization frame sent by the target server.
  9. 如权利要求7或8所述的装置,其特征在于,The device according to claim 7 or 8, wherein:
    所述处理模块,还用于将所述时间间隔减去所述固定同步帧间隔得到时间差值;取所述时间差值和0中较大的一个作为第i个所述数据报文的所述网络时延抖动。The processing module is further configured to subtract the fixed synchronization frame interval from the time interval to obtain a time difference value; take the larger one of the time difference value and 0 as the all data message of the i-th data packet. The network delay jitter is described.
  10. 如权利要求7-9任一项所述的装置,其特征在于,The device according to any one of claims 7-9, wherein:
    所述处理模块,还用于获取终端设备与所述目标服务器之间的多个往返时延;根据所述多个往返时延和所述网络时延抖动,确定每个所述数据报文的往返时延峰值。The processing module is further configured to obtain multiple round-trip delays between the terminal device and the target server; determine the value of each data packet according to the multiple round-trip delays and the network delay jitter Peak round-trip delay.
  11. 如权利要求10所述的装置,其特征在于,The device of claim 10, wherein:
    所述处理模块,还用于向所述目标服务器发送多个测试报文,并记录每个所述测试报文的发送时间点;接收所述目标服务器发送的多个响应报文,并记录每个所述响应报文的接收时间点;根据所述发送时间点和所述接收时间点,确定所述多个往返时延。The processing module is further configured to send multiple test messages to the target server, and record the sending time point of each test message; receive multiple response messages sent by the target server, and record each Receiving time points of the response message; and determining the multiple round-trip delays according to the sending time point and the receiving time point.
  12. 如权利要求10所述的装置,其特征在于,The device of claim 10, wherein:
    所述处理模块,还用于将所述多个往返时延中最小的一个加上第i个所述数据报文的所述网络时延抖动得到时延之和;取第i个所述数据报文对应的所述往返时延和所述时延之和中较大的一个作为第i个所述数据报文的所述往返时延峰值。The processing module is further configured to add the smallest one of the multiple round-trip delays to the network delay jitter of the i-th data packet to obtain the sum of the delays; and take the i-th data The larger one of the round-trip delay and the sum of the delays corresponding to the message is used as the peak round-trip delay of the i-th data message.
  13. 一种终端设备,其特征在于,包括:存储器、通信总线以及处理器,其中,所述存储器用于存储程序代码,所述处理器用于调用所述程序代码,执行以下如权利要求1-6任一项所述的方法。A terminal device, characterized by comprising: a memory, a communication bus, and a processor, wherein the memory is used to store program code, and the processor is used to call the program code to execute any of the following as claimed in claims 1-6. The method described in one item.
  14. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行权利要求1-6任一项所述的方法。A computer-readable storage medium, characterized in that instructions are stored in the computer-readable storage medium, which when run on a computer, cause the computer to execute the method according to any one of claims 1-6.
PCT/CN2020/112308 2019-11-07 2020-08-29 Network delay detection method and related device WO2021088484A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911083100.4 2019-11-07
CN201911083100.4A CN112787877B (en) 2019-11-07 2019-11-07 Network delay detection method and related equipment

Publications (1)

Publication Number Publication Date
WO2021088484A1 true WO2021088484A1 (en) 2021-05-14

Family

ID=75747945

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/112308 WO2021088484A1 (en) 2019-11-07 2020-08-29 Network delay detection method and related device

Country Status (2)

Country Link
CN (1) CN112787877B (en)
WO (1) WO2021088484A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113507396B (en) * 2021-06-30 2023-07-14 新华三信息安全技术有限公司 Network state analysis method, device, equipment and machine-readable storage medium
CN114710426A (en) * 2022-04-02 2022-07-05 珠海星云智联科技有限公司 Method, device, system and related equipment for determining round-trip delay of read operation
CN117135082A (en) * 2022-05-18 2023-11-28 华为技术有限公司 Propagation delay determining method and device
CN115118635A (en) * 2022-06-29 2022-09-27 济南浪潮数据技术有限公司 Time delay detection method, device, equipment and storage medium
CN116599871B (en) * 2023-07-14 2023-10-03 腾讯科技(深圳)有限公司 Network time delay determining method and related device
CN117640463B (en) * 2024-01-25 2024-04-19 云天智能信息(深圳)有限公司 Satellite broadband short message communication and vital sign health monitoring method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101534222A (en) * 2008-03-10 2009-09-16 中国移动通信集团公司 End-to-end network delay jitter measuring method, device and system thereof
CN101977131A (en) * 2010-11-08 2011-02-16 北京航空航天大学 Virtual-link interframe-interval monitoring system for considering historical occupied situation of physical link
CN102088397A (en) * 2009-12-03 2011-06-08 中兴通讯股份有限公司 Communication network element and clock frequency correction system and method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100372291C (en) * 2003-05-07 2008-02-27 华为技术有限公司 Method for realizing jitter resistance in jitter precognition network
US20060164266A1 (en) * 2003-09-22 2006-07-27 Inova Semiconductors Gmbh Synthesizing a remote controlled clock for data transmission via a digital multimedia link
WO2018119790A1 (en) * 2016-12-28 2018-07-05 华为技术有限公司 Network performance detection method and apparatus
CN108092856A (en) * 2017-11-02 2018-05-29 北京紫光恒越网络科技有限公司 Network quality optimization method, system and electronic equipment based on SDN

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101534222A (en) * 2008-03-10 2009-09-16 中国移动通信集团公司 End-to-end network delay jitter measuring method, device and system thereof
CN102088397A (en) * 2009-12-03 2011-06-08 中兴通讯股份有限公司 Communication network element and clock frequency correction system and method
CN101977131A (en) * 2010-11-08 2011-02-16 北京航空航天大学 Virtual-link interframe-interval monitoring system for considering historical occupied situation of physical link

Also Published As

Publication number Publication date
CN112787877A (en) 2021-05-11
CN112787877B (en) 2022-08-26

Similar Documents

Publication Publication Date Title
WO2021088484A1 (en) Network delay detection method and related device
US10742532B2 (en) Non-intrusive mechanism to measure network function packet processing delay
CN107624233B (en) VPN transmission tunnel scheduling method and device and VPN client server
CN108737333B (en) Data detection method and device
US10135708B2 (en) Technologies for performance inspection at an endpoint node
US10097464B1 (en) Sampling based on large flow detection for network visibility monitoring
US9654484B2 (en) Detecting DGA-based malicious software using network flow information
US9426046B2 (en) Web page download time analysis
US9979624B1 (en) Large flow detection for network visibility monitoring
US10536360B1 (en) Counters for large flow detection
CN111181798B (en) Network delay measuring method, device, electronic equipment and storage medium
US11095674B2 (en) DDoS attack detection method and device
US10003515B1 (en) Network visibility monitoring
CN112929241B (en) Network testing method and device
US10979335B2 (en) Network link performance
CN107612946B (en) IP address detection method and device and electronic equipment
WO2021056716A1 (en) Cloud service quality monitoring method, and related product
WO2021056715A1 (en) Server proxy monitoring method and related product
CN108183926B (en) Data packet processing method and device
US11677651B2 (en) UDPING—continuous one-way monitoring of multiple network links
US20100246422A1 (en) Network device and method of measuring upstream bandwidth employed thereby
CN114629826B (en) Network maximum bandwidth estimation method and device, electronic equipment and storage medium
Wellem et al. Superspreader detection system on NetFPGA platform
JP2020150359A (en) Analysis program, analysis device, and analysis method
CN114124754B (en) Method for processing media data packets in a multimedia network and related products

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20884061

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20884061

Country of ref document: EP

Kind code of ref document: A1