Packet loss detection method and device, storage medium and computer program product
By calculating the theoretical and actual sampling number of sampled data in the data frame, packet loss is detected and compensated, which solves the problem of low packet loss detection efficiency in the existing technology and achieves fast and accurate packet loss detection.
Patent Information
- Application Number
- CN202411036092.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-10-11
AI Technical Summary
The packet loss detection efficiency in the existing technology is low, and it is unable to effectively detect the loss of data during transmission, which affects business performance.
By obtaining the start and end time and sampling rate of the sampling data in the data frame, the theoretical and actual sampling numbers are calculated. If the actual sampling number is less than the theoretical number, it is determined that there is data packet loss, and packet loss compensation or downsampling is performed to achieve the goal. The amount of sampled data.
It improves the efficiency of packet loss detection, avoids slicing data and sending sequence number records, and directly determines whether there is packet loss in the data, which enhances the accuracy and efficiency of detection.
Smart Images

Figure CN118764413A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer network technology, and in particular to a packet loss detection method, device, storage medium and computer program product. Background Art
[0002] Packet loss is a common failure scenario in the network, which will seriously affect business performance. In order to ensure the reliability and integrity of data, the receiving end needs to perform packet loss detection on the received data to detect data loss in time.
[0003] When the sender sends data to the receiver, it usually slices the data into pieces according to the specified size and adds a sending sequence number for transmission. During the transmission process, the data may be lost due to the influence of the network medium and link. The receiver needs to detect the loss of the data sent by the sender during the transmission process. Based on this, the receiver performs packet loss detection by recording the sending sequence number of the sliced data one by one, resulting in low detection efficiency of packet loss detection.
[0004] Therefore, how to improve the detection efficiency of packet loss detection is a technical problem that needs to be solved urgently in this technical field.
[0005] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0006] The main purpose of this application is to provide a packet loss detection method, device, storage medium and computer program product, aiming to solve the technical problem of how to improve the detection efficiency of packet loss detection.
[0007] To achieve the above object, the present application proposes a packet loss detection method, which includes:
[0008] Acquire a data frame to be detected for packet loss, wherein the data frame includes at least one sampled data;
[0009] Obtaining the start sampling time and the end sampling time of the sampling data, and obtaining the sampling rate of the sampling data;
[0010] Determine a theoretical sampling quantity based on the start sampling time, the end sampling time and the sampling rate, and determine an actual sampling quantity of the sampled data;
[0011] If the actual sampling number is less than the theoretical sampling number, it is determined that data packet loss occurs.
[0012] In one embodiment, the data frame further includes an end sampling time of the sampled data, and the step of obtaining the start sampling time and the end sampling time of the sampled data includes:
[0013] Acquire the end sampling time of the sampled data from the data frame, and determine the previous data frame corresponding to the data frame;
[0014] The end sampling time of the previous frame of sampling data is obtained from the previous frame of data, and the end sampling time of the previous frame of sampling data is used as the start sampling time of the sampling data.
[0015] In one embodiment, after the step of determining the actual number of samples of the sampled data, the method further comprises:
[0016] If the actual sampling number is greater than the theoretical sampling number, downsampling the sampling data to obtain target sampling data;
[0017] If the actual sampling number is less than the theoretical sampling number, performing packet loss compensation on the sampling data to obtain target sampling data;
[0018] The data volume of the target sampling data is consistent with the theoretical sampling quantity.
[0019] In one embodiment, the step of performing packet loss compensation on the sampled data includes:
[0020] Upsampling the sampled data; or,
[0021] inserting compensation data before the start sampling time of the sampling data; or,
[0022] The compensation data is inserted after the end sampling time of the sampling data.
[0023] In one embodiment, the step of performing packet loss compensation on the sampled data includes:
[0024] Calculating the absolute value of the difference between the actual sampling quantity and the theoretical sampling quantity;
[0025] If the absolute value of the quantity difference is smaller than the actual sampling quantity, upsampling the sampling data;
[0026] If the absolute value of the quantity difference is greater than or equal to the actual sampling quantity and the theoretical sampling quantity is an integer multiple of the absolute value of the quantity difference, then inserting compensation data before the start sampling time of the sampling data, or inserting compensation data after the end sampling time of the sampling data;
[0027] If the absolute value of the quantity difference is greater than or equal to the actual sampling quantity and the theoretical sampling quantity is not an integer multiple of the absolute value of the quantity difference, the sampling data is upsampled or downsampled until the sampling data to be compensated is an integer multiple of the theoretical sampling quantity, and then the compensation data is inserted before the start sampling time of the sampling data, or the compensation data is inserted after the end sampling time of the sampling data.
[0028] In one embodiment, after the step of obtaining the target sampling data, the method further includes:
[0029] Setting a sampling time for each of the target sampling data based on the start sampling time and the sampling rate;
[0030] In one embodiment, the method is applied to a first device, the first device is connected to a second device, and before the step of obtaining a data frame to be detected for packet loss, the method further includes:
[0031] Sending a start sampling instruction to the second device, wherein the sampling instruction includes a current timestamp, and the current timestamp is used to synchronize the time of the first device and the second device;
[0032] If a response signal of the second device based on the start sampling instruction is received, the step of obtaining the data frame to be detected for packet loss is continued.
[0033] In addition, to achieve the above-mentioned purpose, the present application also provides a packet loss detection device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the packet loss detection method described above.
[0034] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the packet loss detection method described above are implemented.
[0035] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the packet loss detection method described above are implemented.
[0036] One or more technical solutions proposed in this application have at least the following technical effects:
[0037] Obtain a data frame to be detected for packet loss, wherein the data frame includes at least one sampled data; obtain the start sampling time and the end sampling time of the sampled data, and obtain the sampling rate of the sampled data; determine the theoretical sampling number based on the start sampling time, the end sampling time and the sampling rate, and determine the actual sampling number of the sampled data; by determining the actual sampling number of the sampled data in the data frame, and calculating the theoretical sampling number of the sampled data that should be collected theoretically based on the sampling rate, the start sampling time and the end time, the sampled data lost in the data frame can be quantified based on the actual sampling number and the theoretical sampling number, so as to facilitate the subsequent targeted processing of the received sampled data based on the amount of lost data. If the actual sampling number is less than the theoretical sampling number, it is determined that there is data packet loss. The theoretical sampling number is calculated based on the start sampling data, the end sampling time and the sampling rate of the sampled data, and the actual sampling number is compared with the theoretical sampling number to detect whether there is packet loss. In this way, it is only necessary to know the start sampling time, the end sampling time and the sampling rate of the sampled data to determine whether there is packet loss in the received data, so there is no need to slice the data before transmission, and even if slicing is required, there is no need to set a sending sequence number for each slice data, and then there is no need to record the sending sequence number of the slice data one by one, thereby improving the efficiency of packet loss detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0039] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0040] Figure 1 A flowchart of the first embodiment of the packet loss detection method of the present application is provided;
[0041] Figure 2 This is a schematic diagram of data interaction between a receiving end and a sending end involved in an embodiment of a packet loss detection method of the present application;
[0042] Figure 3 A schematic diagram of a brief process involved in an embodiment of a packet loss detection method of the present application;
[0043] Figure 4 A schematic diagram of data downsampling involved in an embodiment of a packet loss detection method of the present application;
[0044] Figure 5 A schematic diagram of data upsampling involved in an embodiment of a packet loss detection method of the present application;
[0045] Figure 6 A schematic diagram of data insertion compensation involved in an embodiment of a packet loss detection method of the present application;
[0046] Figure 7 A schematic diagram of data upsampling and insertion compensation involved in an embodiment of a packet loss detection method of the present application;
[0047] Figure 8 Schematic diagram of the receiving end structure of the hardware operating environment involved in the packet loss detection method in the embodiment of the present application.
[0048] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0049] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.
[0050] Physiological signals, also known as biomedical signals, are low-frequency weak signals under a strong noise background. They are unstable natural signals emitted by complex living organisms. According to the electrical properties, they are divided into ECG, electromechanical, EEG and other signals; and non-electrical signals such as body temperature, pulse, and heart sounds. Through the characteristics of biomedical signals, one or more collected signal data can be stored, transmitted, analyzed, classified, and processed to achieve research on the structure and function of biological systems, and further, to assist in the diagnosis and treatment of diseases. At present, there are many biomedical sensors that can collect the above signal data, such as ECG signal sensors realized by the principle of biological electrodes; pulse signal sensors realized by optical properties; heart sound signal sensors realized by detecting mechanical vibrations, etc.
[0051] In the field of smart wearable devices, smart wearable devices usually use Bluetooth for data transmission after collecting physiological signals. As a short-range wireless communication technology, the transmission effect of Bluetooth is easily affected by the transmission distance or radio environment. If the network signal is attenuated, one or more data packets may not be sent to the peer device through the network link (wireless). If the data sender and receiver lack a data integrity verification mechanism, data packet loss cannot be detected, or the sampling rate of the sensor jitters, which may destroy the timing integrity of the physiological signal.
[0052] Complete single-channel signal data, or time-aligned multi-channel signals, are important prerequisites for biomedical research. If physiological signal data is occasionally lost during transmission, the accumulated error increases, ultimately affecting the effectiveness of algorithms based on physiological signals.
[0053] Based on this, the main solution of the present application is: obtain a data frame to be detected for packet loss, wherein the data frame includes at least one sampling data; obtain the start sampling time and the end sampling time of the sampling data, and obtain the sampling rate of the sampling data; determine the theoretical sampling number based on the start sampling time, the end sampling time and the sampling rate, and determine the actual sampling number of the sampling data; if the actual sampling number is less than the theoretical sampling number, it is determined that data packet loss exists.
[0054] The present application calculates the theoretical sampling number based on the start sampling data, end sampling time and sampling rate of the sampling data, and detects whether there is packet loss by comparing the actual sampling number with the theoretical sampling number. In this way, it is only necessary to know that there is packet loss in the sampling data, so there is no need to slice the data before transmission. Even if slicing is required, there is no need to set a sending sequence number for each slice data, and there is no need to record the sending sequence number of the slice data one by one, thereby improving the efficiency of packet loss detection.
[0055] Based on this, the first embodiment of the packet loss detection method of the present application is proposed below. Figure 1 , Figure 1 This is a flow chart of the first embodiment of the packet loss detection method of the present application.
[0056] In this embodiment, the packet loss detection method includes steps S10 to S40:
[0057] Step S10, obtaining a data frame to be detected for packet loss, wherein the data frame includes at least one sampled data;
[0058] It should be noted that, in this embodiment, the packet loss detection method is applied to the first device, which is specifically a device for receiving data (hereinafter referred to as the receiving end), and the receiving end may specifically be a tablet computer, a personal computer, a mobile phone, etc. This embodiment does not impose any specific restrictions on this.
[0059] Furthermore, the receiving end is connected to a second device, which is a device for sending data (hereinafter referred to as a sending end). The sending end may specifically be a headset, a smart wearable device, etc., and this embodiment does not impose any specific restrictions on this.
[0060] The transmitting end combines the collected data (such as the data collected by the sensor) into a data frame and sends it to the receiving end. The data collected by the transmitting end is the sampling data. In a specific embodiment, the transmitting end can set a buffer area, and cache the collected data in the buffer area until the preset conditions are met, and then combine the data cached in the buffer area into a data frame and send it to the receiving end. After receiving the data frame, the receiving end considers that the data frame is the currently acquired data frame to be detected for packet loss, so as to perform packet loss detection on the data frame. Among them, this preset condition can be when the amount of data cached in the buffer area is greater than or equal to the first preset threshold, or after the transmitting end ends sampling, or the remaining cache space in the buffer area is less than or equal to the second preset threshold, etc. This embodiment does not make specific provisions for this.
[0061] Furthermore, considering that the receiving end may not be able to perform packet loss detection on the received data frame immediately after receiving the data frame, such as when the receiving end receives data frames sent by different sending ends at the same time, or when a new data frame is received during the process of performing packet loss detection on the data frame, the receiving end may be unable to perform packet loss detection on the received data frame immediately. Based on this, the receiving end may set a preset waiting queue, and the receiving end obtains the data frame to be detected for packet loss from the head of the preset waiting queue each time, and when receiving the data frame sent by the sending end, the received data frame is added to the tail of the preset waiting queue, so that the receiving end can perform orderly packet loss detection on the received data frame based on the preset waiting queue.
[0062] The sampled data is the data collected by the sending end, specifically, it can be the data collected by the sensor of the sending end. For example, in one specific embodiment, the sending end is a smart watch, the receiving end is a server, the smart watch collects heart sound signals through a VPU (Voice Pick Up, bone conduction) sensor, and transmits one or more collected heart sound signal values to the server, then the sampled data is one or more heart sound signal values. In another specific embodiment, the sending end is an earphone, the receiving end is a server, the earphone collects temperature through a temperature sensor, and transmits one or more collected temperature values to the server, then the sampled data is one or more temperature values.
[0063] The data frame includes at least one sampled data. For the convenience of subsequent explanation and description, the sampled data can be recorded as Q. Then the sampled data Q included in the data frame can be expressed as [Q 1 , Q 2 ...Q i ....Q n 】, where Q i Represents the sampled data with index i, and n is the total number of sampled data included in the data frame.
[0064] Furthermore, the sampled data in the data frame can be sorted in sequence according to the sampling time, that is, Q i The sampling time is earlier than Q i+1 Specifically, when collecting data, the sending end can store the collected data in sequence according to the sampling time, so that the sampled data transmitted to the receiving end can maintain the original data collection timing, which is convenient for subsequent analysis and processing.
[0065] Step S20, obtaining the start sampling time and the end sampling time of the sampled data, and obtaining the sampling rate of the sampled data;
[0066] The sampling rate represents the sampling rate of the sampled data. Specifically, after the sending end and the receiving end establish a communication connection, before sending the first data frame, the sending end may first notify the receiving end of its own sampling rate, or the sending end and the receiving end may negotiate the sampling rate after establishing a communication connection. If the sampling rate changes during the sampling process of the collected data at the sending end, and the actual sampling rate is different from the notified or negotiated sampling rate, the sampling rate can be assembled in the data frame so that the receiving end can obtain the sampling rate of the sampled data from the data frame. If the sampling rate of the sending end has not changed, there is no need to send the sampling rate repeatedly, and the sampling rate of the sampled data is determined to be the sampling rate at the time of notification or negotiation.
[0067] The start sampling time represents the time when sampling of all the sampled data in the data frame starts, and the end sampling time represents the end time when sampling of all the sampled data in the data frame is completed. 1 , Q 2 ...Q i ....Q n 】, the sampling time starts at the sampling data Q 1 The sampling time of the end sampling time is the sampling data Q n The sampling time.
[0068] The start sampling time and the end sampling time can be recorded by the transmitting end and sent to the receiving end. As for the specific sending method of the start sampling time and the end sampling time, as a first implementation method, the transmitting end can combine the start sampling time, the end sampling time and the sampling data into a data frame, and then send the start sampling time and the end sampling time to the receiving end by the data frame.
[0069] As a second implementation, if the sending end is continuously sampling, the end sampling time and the sampling data can be combined into a data frame, and the data frame carrying the end sampling time is sent to the receiving end, and the end sampling time in the previous data frame is used as the start sampling time of the currently received data frame.
[0070] As a third implementation, it is also possible that the sending end separately sends the start sampling time and the end sampling time to the receiving end. For example, when starting sampling, the sending end can send the start sampling time to the receiving end, then combine the sampling data into data frames and send them to the receiving end, and finally send the end sampling time to the receiving end.
[0071] As a fourth implementation, it is also possible that the receiving end sends a sampling time acquisition request to the sending end. For example, after receiving a data frame, the receiving end sends a sampling time acquisition request for that data frame. After the sending end receives the sampling time acquisition request initiated by the receiving end, it sends the start sampling time and the end sampling time to the receiving end.
[0072] It should be noted that the above are only four feasible implementation methods for obtaining the start sampling time and the end sampling time provided in this embodiment, and this embodiment does not specifically limit the specific implementation methods for obtaining the start sampling time and the end sampling time.
[0073] Step S30: Determine the theoretical sampling quantity based on the start sampling time, the end sampling time, and the sampling rate, and determine the actual sampling quantity of the sampling data;
[0074] It can be understood that the theoretical sampling quantity represents the amount of data that can be collected at this sampling rate from the start sampling time to the end sampling time. Denote the start sampling time as T S , the end sampling time as T E , the sampling rate as R, and the theoretical sampling quantity as TQ. Then TQ = R * (T E - T S ).
[0075] The actual sampling quantity represents the actual quantity of the sampling data. Denote the actual sampling quantity as RQ. The sampling data in the data frame is [Q 1 , Q 2 ... Q i .... Q n , then RQ = n.
[0076] Step S40: If the actual sampling quantity is less than the theoretical sampling quantity, determine that there is data packet loss.
[0077] After obtaining the actual sampling quantity RQ and the theoretical sampling quantity TQ, if RQ < TQ, it is determined that there is a data packet.
[0078] In a preferred embodiment, considering that there may be a phenomenon of sampling rate jitter at the sending end, resulting in a certain deviation between the actual number of samples and the theoretical number of samples. For example, the duration between the start sampling time and the end sampling time is 200 milliseconds, and the sampling rate is 2000 Hz, that is, sampling is performed every 0.5 milliseconds. Then, the theoretical number of samples within 200 milliseconds at a sampling rate of 2000 Hz is 400. However, due to sampling rate jitter, the sending end may actually only sample 398 data. Based on this, when the actual number of samples is less than the theoretical number of samples and the difference between the actual number of samples and the theoretical number of samples is greater than or equal to the actual number of samples, it is determined that there is data packet loss. That is, when RQ < TQ and TQ – RQ >= RQ, it is determined that there is data packet loss. In this way, it is possible to avoid the phenomenon of misjudging data packet loss due to the reduction of sampled data caused by sampling rate jitter at the sending end, thereby improving the accuracy of packet loss detection.
[0079] Exemplarily, taking the case where when RQ < TQ and TQ – RQ >= RQ, it is determined that there is data packet loss as an example, the embodiments of the packet loss detection method of the present application are described and illustrated.
[0080] In this embodiment, a data frame to be detected for packet loss is obtained, where the data frame includes at least one sampled data; the start sampling time and the end sampling time of the sampled data are obtained, and the sampling rate of the sampled data is obtained; the theoretical number of samples is determined based on the start sampling time, the end sampling time, and the sampling rate, and the actual number of samples of the sampled data is determined; by determining the actual number of samples of the sampled data in the data frame and calculating the theoretical number of samples of the sampled data that should be collected theoretically based on the sampling rate, the start sampling time, and the end time, the lost sampled data in the data frame can be quantified based on the actual number of samples and the theoretical number of samples, so as to facilitate subsequent targeted processing of the received sampled data based on the lost data volume. If the actual number of samples is less than the theoretical number of samples, it is determined that there is data packet loss. The theoretical number of samples is calculated based on the start sampled data, the end sampling time, and the sampling rate of the sampled data, and whether there is packet loss is detected by comparing the actual number of samples with the theoretical number of samples. In this way, it is only necessary to know the start sampling time, the end sampling time, and the sampling rate of the sampled data to determine whether there is packet loss in the received data. Then, it is not necessary to perform slicing processing on the data before transmission. Even if slicing is required, it is not necessary to set a sending sequence number for each sliced data, and further, it is not necessary to record the sending sequence numbers of the sliced data one by one, thereby improving the packet loss detection efficiency.
[0081] Based on the above first embodiment, a second embodiment of the packet loss detection method of the present application is proposed. In this embodiment, the same or similar contents as those of the above first embodiment can be referred to the above description, and will not be described in detail later. In this embodiment, the data frame also includes the end sampling time of the sampled data, and the step of obtaining the start sampling time and the end sampling time of the sampled data includes:
[0082] Step A10, obtaining the end sampling time of the sampled data from the data frame, and determining the previous data frame corresponding to the data frame;
[0083] In this embodiment, the transmitting end performs continuous sampling and combines the end sampling time and the sampled data into a data frame, so that the receiving end obtains the end sampling time of the sampled data from the data frame.
[0084] Step A20, obtaining the end sampling time of the previous frame of sampled data from the previous frame of data, and using the end sampling time of the previous frame of sampled data as the start sampling time of the sampled data.
[0085] The previous data frame is a data frame received by the receiving end from the same sending end before receiving the current data frame. For example, assuming that the current data frame is the i-th data frame of the receiving end, the previous data frame is the i-1-th data frame received by the receiving end from the same sending end.
[0086] It should be noted that the current data frame is a data frame that the receiving end is currently aligning for packet loss detection.
[0087] It should be noted that the transmitting end may send the start sampling time of the sampled data in the first frame data frame to the receiving end before sending the first frame data frame, and the receiving end records the start sampling time after receiving the start sampling time, so that for the first frame data frame, the start sampling time of the sampled data in the first frame data can be obtained based on this recorded information. Among them, the first frame data frame means that the transmitting end has not sent any data frame to the receiving end within the preset time length before the data frame, and the preset time length is greater than the sending period of the data frame when the transmitting end continuously collects data. For example, when the transmitting end continuously collects data and sends data frames, a data frame is sent every 200 milliseconds, then the preset time length can be any time length greater than 200 milliseconds.
[0088] In this embodiment, within a data frame, only a limited number of bytes are needed to store an end sampling time, rather than adding a sampling time to each sampled data. This can reduce the overhead in data frame transmission, increase the effective data load, save transmission bandwidth, save memory at the sender and receiver, and improve data transmission efficiency.
[0089] In a possible implementation manner, before the step of acquiring the data frame to be detected for packet loss, the method further includes:
[0090] Step B10, sending a start sampling instruction to the second device, wherein the sampling instruction includes a current timestamp, and the current timestamp is used to synchronize the time of the first device and the second device;
[0091] The current timestamp T 0 Specifically, it can be the current timestamp of the receiving end. The timestamp precision of the current timestamp can be seconds, milliseconds or microseconds, which can be determined by the minimum time resolution that the hardware of the receiving end and the receiving end can support at the same time. If the sending end can handle microsecond precision at the minimum, and the receiving end can handle millisecond precision at the minimum, then the sent timestamp precision is milliseconds.
[0092] It should be noted that, at the sending end, after receiving the start sampling instruction sent by the receiving end, the sending end can start sampling the current timestamp T in the instruction. 0 Start timing for sampling.
[0093] By the current timestamp T 0 It can unify the time source of the sensors in the sending end and ensure the time alignment of the sampling data, thereby ensuring the accuracy of the multi-sensor information fusion related algorithms.
[0094] Step B10: If a response signal based on the start sampling instruction is received from the second device, the step of obtaining the data frame to be detected for packet loss is continued.
[0095] The response signal may specifically include the start sampling time when the transmitting end starts data collection, that is, the sampling time when the transmitting end collects the first data. In a specific embodiment, after the transmitting end receives the start sampling instruction sent by the receiving end, the current timestamp T in the start sampling instruction is used. 0 As the origin of the one-dimensional coordinate of time, start timing and start the acquisition module (start the sensor). The sensor uses the above one-dimensional coordinate of time to start collecting data at a certain sampling rate R to ensure that the initial time of the receiving end is aligned with the initial time of the sending end, and replies to the receiving end with T 0 The current time stamp T for the start of data collection at the origin 1 Sent as a response signal to the receiving end.
[0096] The sender receives the response signal and records the start data collection time T in the response signal. 1 , as the starting sampling time of the sampling data in the first frame of data.
[0097] Based on the above-mentioned first and / or second embodiments, a third embodiment of the packet loss detection method of the present application is proposed. In this embodiment, the same or similar contents as those of the above-mentioned first and second embodiments can be referred to the above introduction, and will not be repeated later. In this embodiment, after the step of determining the actual number of samples of the sampled data, the method further includes:
[0098] Step C10, if the actual sampling number is greater than the theoretical sampling number, downsampling the sampling data to obtain target sampling data;
[0099] If the actual number of samples RQ is greater than the theoretical number of samples TQ, it is considered that the sampling rate of the transmitter is jittering (abnormally increased). A downsampling scheme can be used to reduce the amount of sampled data to TQ to ensure that the amount of sampled data matches the sampling rate R of the transmitter.
[0100] The target sampling data is the sampling data retained after the sampling data is downsampled.
[0101] For example, refer to Figure 4 As shown, assuming that the transmitter collects data at a sampling rate of 2000 Hz and a sampling interval of 0.5 ms, the receiver receives data frame 2, and obtains the end sampling time in this frame data as T3, and the start sampling time as T2. It is calculated that T3-T2=200 ms, and the theoretical number of samples is 0.2*2000=400. The actual number of samples contained in the actual data frame 2 is 500. It is determined that the sampling rate jitter of the transmitter is determined, and the data frame 2 is downsampled by uniform extraction to 400 sampled data. These 400 sampled data are the target sampled data.
[0102] Step C20: If the actual sampling number is less than the theoretical sampling number, packet loss compensation is performed on the sampling data to obtain target sampling data; wherein the data volume of the target sampling data is consistent with the theoretical sampling number.
[0103] If the actual sampling number RQ is less than the theoretical sampling number TQ, packet loss compensation is performed on the sampled data to compensate the data volume of the sampled data by TQ, thereby ensuring that the data volume of the sampled data matches the sampling rate R of the transmitter.
[0104] The target sampling data is the data after the sampling data is compensated, including the original sampling data and the compensated data.
[0105] It should be noted that if the actual sampling number RQ is equal to the theoretical sampling number TQ, it can be determined that the data transmission is normal. Figures 4 to 7As shown, assuming that the sending end collects data at a sampling rate of 2000 Hz and a sampling interval of 0.5 ms, the receiving end receives data frame 1, and obtains the end sampling time in this frame of data as T2, and the start sampling time as T1. It is calculated that T2-T1=200 ms, and the theoretical number of samples is 0.2*2000=400. The actual number of samples contained in the actual data frame 1 is also 400, and it is determined that the data transmission is normal.
[0106] In a possible implementation manner, the step of performing packet loss compensation on the sampled data includes:
[0107] Step D10, upsampling the sampled data;
[0108] Specifically, the upsampling method may be linear interpolation, nearest neighbor interpolation, cubic interpolation, etc., and this embodiment does not impose any specific limitation on this.
[0109] Or step D20, inserting compensation data before the start sampling time of the sampling data;
[0110] The data value of the compensation data may be any value, such as the maximum value of all sampled data, or the average value of all sampled data, or the minimum value of all sampled data, and this embodiment does not impose any specific limitation on this.
[0111] It should be noted that the length of a data frame sent by the transmitter is usually fixed, that is, the sampling duration of a data frame is usually fixed, and the sampling duration is denoted as △T. Based on this, if the interval between the end sampling time of the current data frame and the end sampling time of the previous data frame is greater than △T, the compensation data is inserted before the start sampling time of the current data frame. That is, the data frame that the current receiving end is performing packet loss detection is the i-th data frame received from the transmitter, and the end sampling time of the sampled data in this data frame is T i_E , the end sampling time of the i-1th frame of data received by the receiving end from the same sending end is T i-1_E , if T i_E -T i-1_E If it is greater than △T, the compensation data is inserted before the i-th frame data.
[0112] It can be understood that inserting the compensation data before the start sampling time of the sampled data can be equivalent to inserting the compensation data before the current data frame.
[0113] Or in step D30, the compensation data is inserted after the end sampling time of the sampled data.
[0114] If the interval between the end sampling time of the current data frame and the end sampling time of the previous data frame is less than or equal to △T, the compensation data is inserted after the start sampling time of the current data frame. That is, the data frame currently being detected by the receiving end is the i-th data frame received from the transmitting end, and the end sampling time of the sampled data in this data frame is T i_E , the end sampling time of the i-1th frame of data received by the receiving end from the same sending end is T i-1_E , if T i_E -T i-1_E If it is less than or equal to △T, the compensation data is inserted after the i-th frame data.
[0115] It can be understood that inserting the compensation data after the end sampling time of the sampled data can be equivalent to inserting the compensation data after the current data frame.
[0116] In another possible implementation, the step of performing packet loss compensation on the sampled data includes:
[0117] Step E10, calculating the absolute value of the difference between the actual sampling quantity and the theoretical sampling quantity;
[0118] For the convenience of subsequent explanation and description, the absolute value of the quantity difference is recorded as D.
[0119] Step E20, if the absolute value of the quantity difference is smaller than the actual sampling quantity, upsampling the sampling data;
[0120] If D is less than the actual number of samples RQ, it is considered that the sampling rate of the transmitter is jittering (abnormally decreasing), and an upsampling scheme can be used to increase the amount of sampled data to TQ.
[0121] For example, refer to Figure 5 As shown, assuming that the transmitter collects data at a sampling rate of 2000 Hz and a sampling interval of 0.5 ms, the receiver receives data frame 2, and obtains the end sampling time in this frame of data as T3, and the start sampling time as T2. It is calculated that T3-T2=200 ms, and the theoretical sampling number is 0.2*2000=400. The actual number of sampling data contained in the actual data frame 2 is 390. It is determined that the sampling rate jitter of the transmitter is jittered, and linear interpolation is used to upsample data frame 2 to compensate data frame 2 to 400 sampling data.
[0122] Step E30, if the absolute value of the quantity difference is greater than or equal to the actual sampling quantity and the theoretical sampling quantity is an integer multiple of the absolute value of the quantity difference, then inserting compensation data before the start sampling time of the sampling data, or inserting compensation data after the end sampling time of the sampling data;
[0123] If D is greater than or equal to RQ, and TQ is an integer multiple of D, the compensation data is inserted before the start sampling time of the sampling data, or the compensation data is inserted after the end sampling time of the sampling data.
[0124] For example, refer to Figure 6 As shown, assuming that the transmitting end collects data at a sampling rate of 2000 Hz, the sampling interval is 0.5 ms, the sampling duration of a data frame is 200 milliseconds, and the receiving end receives data frame 2, and obtains that the end sampling time in this frame of data is T3, and the start sampling time is T2. It is calculated that T3-T2=400ms is greater than 200ms, and the theoretical sampling number is 0.4*2000=800. The actual number of sampling data contained in the actual data frame 2 is 400. Then, compensation (800-400)=400 compensation data are inserted before data frame 2. The compensation data is the maximum value of the sampling data, which is the lost data frame 2, and the current data frame is updated to the received data frame 3.
[0125] Step E40, if the absolute value of the quantity difference is greater than or equal to the actual sampling quantity and the theoretical sampling quantity is not an integer multiple of the absolute value of the quantity difference, then up-sample or down-sample the sampling data until the sampling data to be compensated is an integer multiple of the theoretical sampling quantity, and then insert the compensation data before the start sampling time of the sampling data, or insert the compensation data after the end sampling time of the sampling data.
[0126] If D is greater than or equal to RQ, and TQ is not an integer multiple of D, it means that there is data frame loss and sampling rate jitter exists at the sending end. At this time, the sampled data is upsampled or downsampled until the theoretical sampled data is an integer multiple of the sampled data that needs to be compensated. Then, the compensation data is inserted before the start sampling time of the sampled data, or after the end sampling time of the sampled data, to ensure that the amount of sampled data is increased to TQ.
[0127] It should be noted that the preset standard sampling number is H. If TQ mod D is greater than H, the sampled data is upsampled until TQ is an integer multiple of D. If TQ mod D is less than H, the sampled data is downsampled until TQ is an integer multiple of D. The preset standard sampling number H is the theoretical sampling number of a data frame. For example, the transmitter sends a data frame every 200 milliseconds and the sampling rate is 2000 Hz, then H=0.2*2000=400.
[0128] For example, refer to Figure 7As shown, assuming that the transmitter collects data at a sampling rate of 2000 Hz, the sampling interval is 0.5 ms, the sampling duration of a data frame is 200 milliseconds, and the receiver receives data frame 2, and obtains the end sampling time in this frame data as T3, the start sampling time is T2, and T3-T2=400ms is calculated to be greater than 200 ms, the theoretical sampling number is 0.4*2000=800, and the actual number of sampling data contained in the actual data frame 2 is 390 (800mod 390=410>400), then it is determined that the sampling rate of the transmitter is jittered, and linear interpolation is used to upsample data frame 2. After compensating data frame 2 to 400 sampling data, (800-400)=400 compensation data are compensated before the actual receiving data. The compensation data is the maximum value of the sampling data, which is taken as the lost data frame 2, and the current data frame is updated to the received data frame 3. In another scenario, if the actual number of samples contained in the actual data frame 2 is 410 (800mod 410=390<400), the sampling rate jitter at the sending end is determined, and the data frame 2 is downsampled by uniform extraction. After reducing the data frame 2 to 400 sampled data, (800-400)=400 compensation data are compensated before the actual data is received. The compensation data is the maximum value of the sampled data, which is regarded as the lost data frame 2, and the current data frame is updated to the received data frame 3.
[0129] In a possible implementation manner, after the step of obtaining the target sampling data, the method further includes:
[0130] Step F10, setting the sampling time of each of the target sampling data based on the start sampling time and the sampling rate;
[0131] Step F20 , storing each of the target sampling data and the sampling time of each of the target sampling data in association with each other.
[0132] It can be understood that if the sampling rate is known, the time interval between adjacent sampling data can be calculated. The time interval between adjacent sampling data is △t, and the target sampling data is expressed as [Q 1 , Q 2 ...Q i ....Q m 】, where m is the theoretical sampling number, then the sampling time of each target sampling data can be expressed as
T S 、T S +△t...T S +(i-1)△t....T S +(m-1)△t
[0133] By adding a frame timestamp, each sampling moment of the target sampling data can be calculated, so that all sampling data of the required time period can be quickly and accurately extracted using the sampling time as an index.
[0134] In order to help understand the above embodiments of the packet loss detection method of the present application, an example of the packet loss detection method combined with the above embodiments is proposed. Figures 2 to 3 As shown, the specific steps are as follows:
[0135] 1. The receiving end sends the current time stamp T0 (T0 indicates the start sampling instruction) of the local machine to the sending end through the transmission protocol. The timestamp precision can be seconds, milliseconds or microseconds, which is determined by the minimum time resolution that the hardware of both ends can support at the same time. If the sending end can handle microsecond precision at the minimum and the receiving end can handle millisecond precision at the minimum, the sent timestamp precision is milliseconds.
[0136] 2. After receiving the timestamp T0, the sender uses T0 as the origin of the one-dimensional coordinate of time, starts timing and starts the acquisition module (physiological data sensor). The sensor uses the above one-dimensional time coordinate to collect physiological signals at a certain sampling rate R to ensure the initial time alignment. The current time stamp T1 with T0 as the origin is replied to the receiver (T1 represents the response signal of the sender).
[0137] 4. The receiving end saves the time T1 when the sending end starts collecting data.
[0138] 5. The physiological signal data of the sender is continuously stored in the cache module. A sampling number or memory capacity is set as the cache threshold. When the threshold is reached, the current timestamp T2 and all the data in the cache module are combined into a data frame and sent to the receiver through the communication module. Time T2 can be considered as the generation time of the last sample in the current data frame.
[0139] 6. The receiving end receives the data frame and obtains T2, and can obtain the generation time of all samples in the data frame D = T2-T1; at the same time, it obtains the number of all samples in the data frame RQ. In this time interval D, the theoretical number of samples generated is TQ = R*D. By comparing the actual received number RQ with TQ, the number of data packet loss can be analyzed.
[0140] 7. The receiving end continuously receives data frames. From the timestamp Tn of the current data frame, the timestamp Tn-1 of the previously received data frame, and the sampling rate R, the number of samples TQ = R * (Tn – Tn-1) that the current data frame should contain can be obtained. If the actually received number RQ = TQ, the data transmission is normal; if RQ < TQ, it is determined that packet loss has occurred during network transmission or the sensor sampling rate has decreased abnormally; if RQ > TQ, the sensor sampling rate has increased abnormally, and a downsampling scheme is adopted to reduce the data volume to TQ to ensure matching with the device sampling rate R.
[0141] 8. For the case of RQ < TQ, the difference quantity DQ = TQ – RQ. If DQ is within the currently received quantity range, that is, DQ < RQ, it is determined that the sensor sampling rate has decreased abnormally. Upsampling can be performed by interpolation. Between the RQ sampling points, DQ sampling points are compensated to restore the data volume of this frame to match the device sampling rate R.
[0142] 9. For the case of RQ < TQ, the difference quantity DQ = TQ – RQ. If DQ is equal to or exceeds the currently received quantity, that is, DQ ≥ RQ, it is determined that packet loss has occurred during network transmission. Before the RQ samples are received, DQ samples are compensated to ensure that the data volume matches the device sampling rate R.
[0143] 10. Analyze the timestamps and data volumes of adjacent received data frames, analyze the packet loss situation and compensate until the sampling ends.
[0144] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the packet loss detection method of this application. Based on this technical concept, more forms of simple transformations are within the protection scope of this application.
[0145] An embodiment of this application provides a packet loss detection device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the transaction behavior prediction method in the first embodiment above.
[0146] The following refers to Figure 8, which shows a schematic diagram of the structure of a packet loss detection device suitable for implementing the embodiment of the present application. The packet loss detection device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The packet loss detection device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0147] like Figure 8 As shown, the packet loss detection device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the packet loss detection device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the packet loss detection device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a packet loss detection device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0148] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0149] Compared with the prior art, the beneficial effects of the extended reality device provided in the embodiment of the present application are the same as the beneficial effects of the packet loss detection method provided in the above embodiment, and other technical features in the extended reality device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0150] It should be understood that the various parts disclosed in the embodiments of the present application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0151] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0152] An embodiment of the present application provides a computer-readable storage medium having computer-readable program instructions (ie, a computer program) stored thereon, wherein the computer-readable program instructions are used to execute the packet loss detection method in the above embodiment.
[0153] The computer-readable storage medium provided in the embodiment of the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0154] The computer-readable storage medium may be included in the extended reality device, or may exist independently without being assembled into the extended reality device.
[0155] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the extended reality device, the extended reality device performs the functions defined in the method of the embodiment disclosed in the present application.
[0156] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0157] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0158] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0159] The readable storage medium provided in the embodiment of the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned packet loss detection method. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the embodiment of the present application are the same as the beneficial effects of the packet loss detection method provided in the above-mentioned embodiment, which will not be repeated here.
[0160] An embodiment of the present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned packet loss detection method when executed by a processor.
[0161] Compared with the prior art, the beneficial effects of the computer program product provided in the embodiment of the present application are the same as the beneficial effects of the packet loss detection method provided in the above embodiment, which will not be elaborated here.
[0162] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A packet loss detection method, characterized in that: The packet loss detection method comprises the following steps: Acquire a data frame to be detected for packet loss, wherein the data frame includes at least one sampled data; Obtaining the start sampling time and the end sampling time of the sampling data, and obtaining the sampling rate of the sampling data; Determine a theoretical sampling quantity based on the start sampling time, the end sampling time and the sampling rate, and determine an actual sampling quantity of the sampled data; If the actual sampling number is less than the theoretical sampling number, it is determined that data packet loss occurs.
2. The method according to claim 1, characterized in that The data frame also includes the end sampling time of the sampled data, and the step of obtaining the start sampling time and the end sampling time of the sampled data includes: Acquire the end sampling time of the sampled data from the data frame, and determine the previous data frame corresponding to the data frame; The end sampling time of the previous frame of sampling data is obtained from the previous frame of data, and the end sampling time of the previous frame of sampling data is used as the start sampling time of the sampling data.
3. The method according to claim 1, characterized in that After the step of determining the actual sampling number of the sampled data, the method further comprises: If the actual sampling number is greater than the theoretical sampling number, downsampling the sampling data to obtain target sampling data; If the actual sampling number is less than the theoretical sampling number, performing packet loss compensation on the sampling data to obtain target sampling data; The data volume of the target sampling data is consistent with the theoretical sampling quantity.
4. The method according to claim 3, characterized in that The step of performing packet loss compensation on the sampled data comprises: Upsampling the sampled data; or, inserting compensation data before the start sampling time of the sampling data; or, The compensation data is inserted after the end sampling time of the sampling data.
5. The method according to claim 3, characterized in that The step of performing packet loss compensation on the sampled data comprises: Calculating the absolute value of the difference between the actual sampling quantity and the theoretical sampling quantity; If the absolute value of the quantity difference is smaller than the actual sampling quantity, upsampling the sampling data; If the absolute value of the quantity difference is greater than or equal to the actual sampling quantity and the theoretical sampling quantity is an integer multiple of the absolute value of the quantity difference, then inserting compensation data before the start sampling time of the sampling data, or inserting compensation data after the end sampling time of the sampling data; If the absolute value of the quantity difference is greater than or equal to the actual sampling quantity and the theoretical sampling quantity is not an integer multiple of the absolute value of the quantity difference, the sampling data is upsampled or downsampled until the sampling data to be compensated is an integer multiple of the theoretical sampling quantity, and then the compensation data is inserted before the start sampling time of the sampling data, or the compensation data is inserted after the end sampling time of the sampling data.
6. The method according to claim 3, characterized in that After the step of obtaining the target sampling data, the method further includes: Setting a sampling time for each of the target sampling data based on the start sampling time and the sampling rate; Each of the target sampling data and the sampling time of each of the target sampling data are associated and stored.
7. The method according to any one of claims 1 to 6, characterized in that: The packet loss detection method is applied to a first device, the first device is connected to a second device, and before the step of obtaining a data frame to be detected by packet loss, the method further includes: Sending a start sampling instruction to the second device, wherein the sampling instruction includes a current timestamp, and the current timestamp is used to synchronize the time of the first device and the second device; If a response signal of the second device based on the start sampling instruction is received, the step of obtaining the data frame to be detected for packet loss is continued.
8. A packet loss detection device, characterized in that: The packet loss detection device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the packet loss detection method according to any one of claims 1 to 7.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the packet loss detection method according to any one of claims 1 to 7 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the packet loss detection method according to any one of claims 1 to 7 are implemented.
