Jitter detection method, system, device, equipment, medium and product
By determining the expected period and actual timestamp of data packets in a time-sensitive network and calculating the instantaneous jitter value, the problem of jitter affecting the stability of data packet transmission in the TSN system is solved. Real-time jitter detection and evaluation of service traffic is realized, ensuring that data packets are transmitted stably at predetermined time intervals.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- PURPLE MOUNTAIN LAB
- Filing Date
- 2026-03-06
- Publication Date
- 2026-05-01
AI Technical Summary
In Time-Sensitive Networking (TSN) systems, the magnitude of time jitter affects the stability of data packet transmission and the efficiency of the receiving end in processing data packets. It is necessary to detect jitter in the network in real time and take measures to ensure that data packets are transmitted stably at predetermined time intervals.
By using the forwarding strategy of service traffic sent by the Time-Sensitive Network (TSN) controller, the expected period for data packets to be sent to the receiving terminal is determined, the actual timestamp of the data packets is obtained, the instantaneous jitter value is calculated, and the jitter detection value and preset threshold are combined to realize the time jitter detection and evaluation of the target service traffic.
It enables real-time jitter detection and accurate assessment of target service traffic, allowing for timely identification of jitter issues in the network and the implementation of corresponding measures to ensure stable data packet transmission.
Smart Images

Figure CN121967279A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a jitter detection method, system, apparatus, device, medium, and product. Background Technology
[0002] Time-Sensitive Networking (TSN) uses mechanisms such as data scheduling and network configuration to ensure that data packets are transmitted in a predetermined time and order, thereby avoiding problems such as network congestion and packet loss, and thus providing deterministic guarantees for data transmission.
[0003] However, in TSN systems, the magnitude of time jitter directly affects the stability of data packet transmission and the efficiency of the receiver in processing data packets. Therefore, it is necessary to detect network jitter in real time and take corresponding measures (such as traffic shaping, priority scheduling, etc.) to reduce jitter and ensure that data packets can be transmitted stably according to the predetermined time intervals. Summary of the Invention
[0004] Therefore, it is necessary to provide a jitter detection method, apparatus, computer equipment, computer-readable storage medium, and computer program product to address the aforementioned technical problems.
[0005] Firstly, this application provides a jitter detection method, which includes:
[0006] Based on the forwarding strategy of the service traffic sent by the Time-Sensitive Network (TSN) controller, the expected period for sending each data packet corresponding to the target service traffic to the receiving terminal is determined.
[0007] Based on the traffic detection characteristics sent by the TSN controller, the actual timestamp of each data packet sent to the receiving terminal is obtained;
[0008] For each pair of adjacent data packets, the instantaneous jitter value of the data packet is determined based on the difference between the actual timestamp of the subsequent data packet and the actual timestamp of the preceding data packet, as well as the expected period.
[0009] Based on the instantaneous jitter value of each data packet, the time jitter detection result of the target service traffic is determined.
[0010] In one embodiment, the time jitter detection result of the target service traffic is determined based on the instantaneous jitter value of each data packet, including:
[0011] Based on the instantaneous jitter values, determine the jitter detection value of the target service traffic;
[0012] The time jitter detection result is determined based on the jitter detection value and the preset threshold.
[0013] In one embodiment, determining the jitter detection value of the target service traffic based on each instantaneous jitter value includes: determining the jitter detection value based on the variance of each instantaneous jitter value.
[0014] In one embodiment, the method further includes: analyzing parameter information related to the time jitter of the target service traffic based on each instantaneous jitter value; the parameter information includes at least one of the average value of the instantaneous jitter, the maximum value of the instantaneous jitter, and the standard deviation of the instantaneous jitter; and sending the parameter information to the TSN controller so that the TSN controller can visualize the parameter information.
[0015] In one embodiment, the method further includes: if the time jitter detection result indicates that the target service traffic is experiencing jitter anomalies, reporting the time jitter detection result to the TSN controller, so that the TSN controller outputs alarm information and updates the forwarding policy based on the time jitter detection result.
[0016] Secondly, this application also provides a time jitter detection system, including a time-sensitive network detector, a receiving terminal, a transmitting terminal, a TSN switch, and a TSN controller; the receiving terminal and the transmitting terminal are connected through the TSN switch, and the time-sensitive network detector is connected to both the receiving terminal and the TSN switch; the time-sensitive network detector, the receiving terminal, the transmitting terminal, and the TSN controller are clock-synchronized.
[0017] The TSN controller is used to generate forwarding strategies for service traffic between the sending terminal and the receiving terminal.
[0018] The sending terminal is used to send service traffic to the receiving terminal through the TSN switch;
[0019] A time-sensitive network detector is used to perform the time jitter detection method of any of the first aspects.
[0020] Thirdly, this application also provides a jitter detection device, which includes:
[0021] The expected period determination module is used to determine the expected period for each data packet corresponding to the target service traffic to be sent to the receiving terminal based on the forwarding strategy of the service traffic sent by the Time-Sensitive Network (TSN) controller.
[0022] The actual timestamp determination module is used to obtain the actual timestamp of each data packet sent to the receiving terminal based on the traffic detection characteristics sent by the TSN controller.
[0023] The instantaneous jitter value determination module is used to determine the instantaneous jitter value of each pair of adjacent data packets based on the difference between the actual timestamp of the later data packet and the actual timestamp of the earlier data packet, as well as the expected period.
[0024] The jitter detection result determination module is used to determine the time jitter detection result of the target service traffic based on the instantaneous jitter value of each data packet.
[0025] Fourthly, this application also provides a computer device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0026] Based on the forwarding strategy of the service traffic sent by the Time-Sensitive Network (TSN) controller, the expected period for sending each data packet corresponding to the target service traffic to the receiving terminal is determined.
[0027] Based on the traffic detection characteristics sent by the TSN controller, the actual timestamp of each data packet sent to the receiving terminal is obtained;
[0028] For each pair of adjacent data packets, the instantaneous jitter value of the data packet is determined based on the difference between the actual timestamp of the subsequent data packet and the actual timestamp of the preceding data packet, as well as the expected period.
[0029] Based on the instantaneous jitter value of each data packet, the time jitter detection result of the target service traffic is determined.
[0030] Fifthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:
[0031] Based on the forwarding strategy of the service traffic sent by the Time-Sensitive Network (TSN) controller, the expected period for sending each data packet corresponding to the target service traffic to the receiving terminal is determined.
[0032] Based on the traffic detection characteristics sent by the TSN controller, the actual timestamp of each data packet sent to the receiving terminal is obtained;
[0033] For each pair of adjacent data packets, the instantaneous jitter value of the data packet is determined based on the difference between the actual timestamp of the subsequent data packet and the actual timestamp of the preceding data packet, as well as the expected period.
[0034] Based on the instantaneous jitter value of each data packet, the time jitter detection result of the target service traffic is determined.
[0035] Fifthly, this application also provides a computer program product comprising a computer program that, when executed by a processor, performs the following steps:
[0036] Based on the forwarding strategy of the service traffic sent by the Time-Sensitive Network (TSN) controller, the expected period for sending each data packet corresponding to the target service traffic to the receiving terminal is determined.
[0037] Based on the traffic detection characteristics sent by the TSN controller, the actual timestamp of each data packet sent to the receiving terminal is obtained;
[0038] For each pair of adjacent data packets, the instantaneous jitter value of the data packet is determined based on the difference between the actual timestamp of the subsequent data packet and the actual timestamp of the preceding data packet, as well as the expected period.
[0039] Based on the instantaneous jitter value of each data packet, the time jitter detection result of the target service traffic is determined.
[0040] The aforementioned jitter detection methods, systems, devices, equipment, storage media, and products determine the expected period for each data packet corresponding to the target service traffic to be sent to the receiving terminal based on the forwarding strategy of the service traffic sent by the Time-Sensitive Network (TSN) controller; obtain the actual timestamp of each data packet sent to the receiving terminal based on the traffic detection characteristics sent by the TSN controller; for each pair of adjacent data packets, determine the instantaneous jitter value of the data packet based on the difference between the actual timestamp of the subsequent data packet and the actual timestamp of the preceding data packet, as well as the expected period; and determine the time jitter detection result of the target service traffic based on the instantaneous jitter value of each data packet. This application adopts the above method, first determining the expected period and actual timestamp of each data packet corresponding to the target service traffic to be sent to the receiving terminal, then calculating the instantaneous jitter value of each data packet, and finally determining the time jitter detection result of the target service traffic based on the instantaneous jitter value of each data packet, thus achieving real-time jitter detection and accurate evaluation of the target service traffic. Attached Figure Description
[0041] Figure 1 This application provides schematic diagrams of the structure of a time-sensitive network system for some embodiments.
[0042] Figure 2 Schematic diagrams of the structure of a time-sensitive network detector provided in some embodiments of this application;
[0043] Figure 3 Schematic diagrams of the structure of a time-sensitive network detector provided in other embodiments of this application;
[0044] Figure 4 Flowcharts of jitter detection methods provided in some embodiments of this application;
[0045] Figure 5 A flowchart illustrating the determination of timing jitter detection results provided in some embodiments of this application;
[0046] Figure 6 Flowcharts for visualizing parameter information provided in some embodiments of this application;
[0047] Figure 7A flowchart illustrating a jitter detection method provided in a detailed embodiment of this application;
[0048] Figure 8 This is a structural block diagram of a jitter detection device provided in some embodiments of this application;
[0049] Figure 9 This is an internal structural diagram of a computer device provided in some embodiments of this application. Detailed Implementation
[0050] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0051] The jitter detection method provided in this application embodiment can be applied to, for example... Figure 1 The jitter detection system shown includes a time-transmitting terminal 102, a TSN switch 104, a time-sensitive network detector 106, a receiving terminal 108, and a TSN controller 110. The receiving terminal 108 and the transmitting terminal 102 are communicatively connected through the TSN switch 104, and the time-sensitive network detector 106 is connected to both the receiving terminal 108 and the TSN switch 104. The time-sensitive network detector 106, the receiving terminal 108, the transmitting terminal 102, and the TSN controller 110 are clock-synchronized. The TSN controller 110 is used to generate a forwarding strategy for service traffic between the transmitting terminal 102 and the receiving terminal 108. The transmitting terminal 102 is used to send service traffic to the receiving terminal 108 through the TSN switch 104. The time-sensitive network detector 106 is used to execute the time jitter detection method provided in this embodiment.
[0052] In this system, each receiving terminal 108 and TSN switch 104 can be equipped with a corresponding Time-Sensitive Network Detector 106 to detect time jitter deviations. The Time-Sensitive Network Detector 106 achieves clock synchronization with the receiving terminal 108 and TSN switch 104 through a clock synchronization module, ensuring that the TSN time slots are on the same time basis. The time synchronization module supports the IEEE 802.1Qbv protocol. The Time-Sensitive Network Detector 106 includes at least one processor, a memory connected to the processor, and a repeater connected to the processor. The physical form of the repeater includes, but is not limited to, FPGA (Field-Programmable Gate Array) and ASIC (Application-Specific Integrated Circuit) chips. The processor implements functions such as service controller configuration, traffic jitter parameter analysis and calculation, clock synchronization protocol stack, and TSN controller 110 configuration interaction. The memory stores and saves the service parameters of the detector. The repeater performs deterministic forwarding of traffic and detection of reception time.
[0053] The TSN controller 110 can configure and manage the service traffic of the transmitting terminal 102, receiving terminal 108, TSN switch 104, and time-sensitive network detector 106. Service traffic characteristics include: source port, destination port, period, packet size, maximum latency, and jitter requirements. The TSN controller 110 can also plan and schedule based on the global topology and service traffic, generate TSN forwarding policies, and synchronously send these policies to the receiving terminal 108, TSN switch 104, and time-sensitive network detector 106 via the NETCONF protocol, ensuring that each TSN switch 104 accurately forwards service traffic according to the time slots specified in the forwarding policy. The TSN controller 110 conforms to the 802.1Qcc protocol and adopts a fully centralized configuration model, providing a guarantee of real-time traffic transmission on the control plane.
[0054] In addition, in a time-sensitive network (TSN) system, the TSN controller 110 is also responsible for sending traffic detection features to the latency detector. The TSN latency detector identifies the forwarded traffic based on the sent traffic detection features and performs latency statistics and analysis on the matched target service traffic, so that the TSN controller 110 can update the forwarding strategy based on the jitter detection results of the TSN detector 106. For example, the traffic detection features are more like matching rules. The traffic detection features may include source address, destination address, source port number, destination port number, and protocol type. The source address is the IP address of the sending terminal 102 that sends a data packet; the destination address is the IP address of the receiving terminal 108 that receives the data packet; the source port number is the port number on the sending terminal 102 that sends the data packet; the destination port number is the port number on the receiving terminal 108 that receives the data packet; and the protocol type is the transport layer protocol used by the data packet, which can be TCP (Transmission Control Protocol) or UDP (User Datagram Protocol).
[0055] Specifically, the jitter detection method provided in this application embodiment is executed by a Time-Sensitive Network (TSN) detector 106. The TSN detector 106 first determines the expected period for each data packet corresponding to the target service traffic to be sent to the receiving terminal 108 based on the forwarding strategy of the service traffic sent by the TSN controller 110. Then, based on the traffic detection characteristics sent by the TSN controller 110, it obtains the actual timestamp of each data packet sent to the receiving terminal 108. Next, for each pair of adjacent data packets, based on the difference between the actual timestamp of the subsequent data packet and the actual timestamp of the preceding data packet, and the expected period, it determines the instantaneous jitter value of the data packet. Finally, based on the instantaneous jitter value of each data packet, it determines the time jitter detection result of the target service traffic. In this way, real-time jitter detection and accurate evaluation of the target service traffic can be achieved.
[0056] In one embodiment, such as Figure 2 As shown, Figure 2 This is a schematic diagram of a Time-Sensitive Network (TSN) detector. The TSN detector is applied in a Time-Sensitive Network (TSN) system and may include a clock synchronization module 210, a service control configuration module 220, and a data forwarding and analysis module 230.
[0057] The clock synchronization module 210 is used to synchronize the clocks of the time-sensitive network detector, the receiving terminal, and the TSN switch, thereby ensuring that the TSN time slots are on the same time basis.
[0058] The service control configuration module 220 is used to control clock synchronization, the issuance and updating of forwarding policies, and the identification of service traffic characteristics. Clock synchronization completes clock alignment with the terminal and TSN switch; forwarding policy implementation enables end-to-end deterministic forwarding; and service traffic characteristic identification enables the identification of service traffic.
[0059] The data forwarding and parsing module 230 is used to forward service traffic, detect jitter, and perform calculation and analysis. The time-sensitive network detector is connected between the TSN switch and the receiving terminal. The time-sensitive network detector accepts the configuration of the TSN controller to realize deterministic forwarding of service traffic. At the same time, the time-sensitive network detector identifies the arrival time of service traffic, counts historical arrival times, and performs analysis and calculation of jitter.
[0060] In another embodiment, such as Figure 3 As shown, Figure 3 This is a schematic diagram of another time-sensitive network detector, which is also used in time-sensitive network (TSN) systems. The time-sensitive network detector includes a processing module 310, a storage module 320, and a forwarding module 330.
[0061] The processing module 330 is responsible for configuring the diagnostic instrument's TSN policy, configuring the clock synchronization protocol stack, and performing jitter calculation and analysis, thereby achieving interconnection with the TSN controller; the storage module 320 is used to store the jitter instrument configuration and process data; and the forwarding module 330 implements the TSN mechanism forwarding of service flow packets, clock synchronization, and service traffic identification.
[0062] In one embodiment, such as Figure 4 As shown, this method is applied to Figure 1 This example uses a time-sensitive network detector to illustrate the method. In this embodiment, the method includes the following steps:
[0063] Step 402: Based on the forwarding strategy of the service traffic sent by the Time-Sensitive Network (TSN) controller, determine the expected period for each data packet corresponding to the target service traffic to be sent to the receiving terminal.
[0064] In a time-sensitive network (TSN), service traffic refers to data generated by the sending terminal and transmitted to the receiving terminal. Service traffic can be various types of business data, such as sensor data and control commands in industrial automation. Target service traffic refers to critical service flows that require jitter detection. Target service traffic can be highly sensitive to time jitter, such as real-time control commands in industrial automation or keyframes in audio / video streams. Stable transmission of these service flows is crucial for the normal operation of the system, therefore, real-time jitter detection is necessary. For example, in a workshop network, there are many service flows, including flow F1 controlling machine tool A, flow F2 controlling machine tool B, video surveillance flow F3, and file transfer flow F4. Since flow F1 and F2 are highly sensitive to time jitter, they can be identified as target service flows.
[0065] The forwarding strategy for service traffic is generated by the TSN controller after planning and scheduling based on the global topology and service traffic conditions. The forwarding strategy specifies the forwarding path, forwarding time, and priority of each data packet in the service traffic within the network, ensuring that data packets are transmitted according to the predetermined time and order. For example, the forwarding strategy might specify that a certain data packet is forwarded through a specific switch port in a specific time slot. Data packets are the basic unit of data transmission in the network. In time-sensitive networks, data packets contain service data and some control information, such as source address, destination address, and protocol type.
[0066] A receiving terminal is a device that receives service traffic. It can be an actuator in industrial automation, a display device in a monitoring system, an audio / video playback device, etc. The receiving terminal communicates with the sending terminal through a TSN switch, receiving and processing the service traffic transmitted from the sending terminal. The expected period is the ideal time interval between two adjacent data packets preset by the TSN controller for the target service traffic. When generating forwarding policies, the TSN controller plans a suitable expected period for the target service traffic based on factors such as network topology, bandwidth resources, and existing traffic configurations.
[0067] Optionally, the TSN controller plans and schedules based on the global topology and service traffic, generates a service traffic forwarding policy, and distributes the forwarding policy to the time-sensitive network detector. The time-sensitive network detector determines the destination of each data packet for the receiving terminal based on the data packet forwarding path, network topology, bandwidth resources, existing traffic configuration, and other information specified in the forwarding policy.
[0068] Step 404: Based on the traffic detection features sent by the TSN controller, obtain the actual timestamp of each data packet sent to the receiving terminal.
[0069] Traffic detection features are a set of rules issued by the TSN controller to the Time-Sensitive Network Monitor (TSN) to identify target service traffic that matches the rules. Traffic detection features can include source address, destination address, source port number, destination port number, and protocol type. The TSN can then identify data packets within the target service traffic based on these traffic detection features.
[0070] Optionally, when issuing forwarding policies, the TSN controller will also issue detection traffic characteristics. The time-sensitive network detector (TSN) identifies data packets in the target service traffic based on these traffic detection characteristics and records the arrival time (actual timestamp) of each received data packet. Alternatively, a dedicated timestamp recording module can be deployed on the receiving terminal. This module can then filter and identify received data packets based on the traffic detection characteristics sent by the TSN controller and record the actual arrival time of each data packet.
[0071] Step 406: For each pair of adjacent data packets, determine the instantaneous jitter value of the data packet based on the difference between the actual timestamp of the subsequent data packet and the actual timestamp of the preceding data packet, as well as the expected period.
[0072] The actual timestamp is the time when each data packet is actually forwarded from the time-sensitive network detector to the receiving terminal. When the time-sensitive network detector receives a data packet, it records the arrival time of each data packet; this time is the actual timestamp. The instantaneous jitter value is determined for each pair of adjacent data packets based on the difference between their corresponding actual timestamps, the actual timestamp of the previous data packet, and the expected period. The instantaneous jitter value reflects the time deviation of the data packet during transmission, thus measuring the transmission stability of a single data packet.
[0073] Optionally, the time-sensitive network detector subtracts the actual timestamp of the previous data packet from the actual timestamp of each two adjacent data packets, and then subtracts the expected period to obtain the instantaneous jitter value of the data packet.
[0074] Step 408: Determine the time jitter detection result of the target service traffic based on the instantaneous jitter value of each data packet.
[0075] The time jitter detection result for target service traffic is calculated based on the instantaneous jitter values of each data packet. The time jitter detection result can include statistical measures such as average jitter value, maximum jitter value, and jitter standard deviation, used to comprehensively assess the time jitter of the target service traffic. The time jitter detection result for target service traffic can help network administrators promptly identify jitter issues in the network and take corresponding measures to reduce jitter, ensuring that data packets are transmitted stably at predetermined time intervals.
[0076] Optionally, the time-sensitive network detector can perform statistical analysis on the instantaneous jitter values of each data packet, and calculate statistical quantities such as average jitter value, maximum jitter value, and jitter standard deviation, as the time jitter detection results of the target service traffic.
[0077] The jitter detection method described above first determines the expected period and actual timestamp of each data packet corresponding to the target service traffic being sent to the receiving terminal, then calculates the instantaneous jitter value of each data packet, and finally determines the time jitter detection result of the target service traffic based on the instantaneous jitter value of each data packet, thus enabling real-time jitter detection and accurate evaluation of the target service traffic.
[0078] In one embodiment, such as Figure 5 As shown, based on the instantaneous jitter values of each data packet, the time jitter detection results of the target service traffic are determined, including:
[0079] Step 502: Determine the jitter detection value of the target service traffic based on each instantaneous jitter value.
[0080] The jitter detection value is a numerical value that comprehensively reflects the jitter of the target service traffic, calculated based on the instantaneous jitter value of each data packet. The jitter detection value can be various statistical measures, such as average jitter value, maximum jitter value, and standard deviation of jitter, used to describe the temporal jitter characteristics of the target service traffic from different perspectives.
[0081] For example, the instantaneous jitter values of all data packets can be summed first, and then divided by the total number of data packets to obtain the average jitter value. Then, the square of the difference between each instantaneous jitter value and the average value can be calculated. These squared values can then be summed and divided by the number of data packets to obtain the jitter variance value. The jitter variance value can be used as the jitter detection value of the target service traffic.
[0082] Step 504: Determine the time jitter detection result based on the jitter detection value and the preset threshold.
[0083] The preset threshold is a pre-set reference value used to determine whether the jitter of the target service traffic is within an acceptable range. This threshold is usually determined based on the service requirements and network performance requirements. For example, for industrial automation control services with high requirements for time jitter, the preset threshold may be set lower; while for some services with relatively relaxed time requirements, the preset threshold can be appropriately increased.
[0084] Optionally, the jitter detection value is compared with a preset threshold. If the jitter detection value is greater than the preset threshold, the time jitter detection result is determined to be jitter abnormal; if the jitter detection value is not greater than the preset threshold, the time jitter detection result is determined to be jitter normal.
[0085] In this embodiment, the jitter of the target service traffic is quantified by calculating the jitter detection value, making the jitter assessment more objective and accurate; and by comparing the jitter detection value with a preset threshold, it is possible to quickly determine whether the time jitter of the target service traffic is normal.
[0086] In one embodiment, determining the jitter detection value of the target service traffic based on each instantaneous jitter value includes: determining the jitter detection value based on the variance of each instantaneous jitter value.
[0087] Understandably, variance reflects the dispersion of a set of instantaneous jitter values. In time-sensitive networks, if the instantaneous jitter values of individual data packets are relatively concentrated, it indicates that the network jitter is relatively stable; conversely, if the dispersion of instantaneous jitter values is large, it indicates that there are significant fluctuations in the network, potentially indicating some unstable factors such as network congestion or equipment failure. Using variance as a jitter detection value provides a direct understanding of the stability of target service traffic jitter.
[0088] In one embodiment, such as Figure 6 As shown, the method also includes:
[0089] Step 602: Based on each instantaneous jitter value, analyze the parameter information related to the time jitter of the target service traffic.
[0090] The parameter information comprises statistical characteristics related to the jitter of the target service traffic, obtained through analysis of each instantaneous jitter value. These characteristics may include at least one of the following: the average instantaneous jitter, the maximum instantaneous jitter, and the standard deviation of the instantaneous jitter. The average instantaneous jitter is obtained by summing the instantaneous jitter values of all data packets and dividing by the total number of data packets; it reflects the average level of time jitter in the target service traffic. The maximum instantaneous jitter reflects the maximum possible amplitude of time jitter in the target service traffic. The standard deviation of the instantaneous jitter measures the dispersion of each instantaneous jitter value relative to the average; a larger standard deviation indicates more dispersed instantaneous jitter values and greater fluctuations in time jitter.
[0091] Optionally, after obtaining each instantaneous jitter value, the time-sensitive network analyzer can determine the maximum instantaneous jitter value based on each instantaneous jitter value, or obtain the average instantaneous jitter value based on the calculation method of each instantaneous jitter value and the average value, or obtain the standard deviation of the instantaneous jitter value based on the calculation formula of each instantaneous jitter value, the average value and the variance.
[0092] For example, the average value of instantaneous jitter can be calculated using the following formula:
[0093] ;
[0094] In the formula, This represents the average value of the instantaneous jitter. The actual timestamp of the current data packet of the target service traffic being sent to the receiving terminal; The timestamp of the previous data packet sent to the receiving terminal; The theoretical period; This represents the total number of data packets in the target service traffic.
[0095] The standard deviation of instantaneous jitter can be calculated using the following formula:
[0096] ;
[0097] In the formula, The standard deviation of the instantaneous jitter; For the first The instantaneous jitter value of each interval; k is the total number of intervals.
[0098] Step 604: Send the parameter information to the TSN controller so that the TSN controller can visualize the parameter information.
[0099] Optionally, the Time-Sensitive Network Monitor (TSN) can encapsulate the data containing parameter information into a single data structure using a suitable network protocol (such as TCP or UDP) and send it over the network to the TSN controller. Alternatively, if the system provides an interface for interacting with the TSN controller, that interface can be invoked to pass the parameter information to the TSN controller.
[0100] In this embodiment, by analyzing each instantaneous jitter value, multiple parameter information reflecting the characteristics of time jitter is obtained, thereby comprehensively describing the time jitter of service traffic from different perspectives. This parameter information is then sent to the TSN controller for visualization, enabling network administrators to intuitively see the relevant data on time jitter and quickly identify problems or jitter trends.
[0101] In one embodiment, the method further includes: if the time jitter detection result indicates that the target service traffic is experiencing jitter anomalies, reporting the time jitter detection result to the TSN controller, so that the TSN controller outputs alarm information and updates the forwarding policy based on the time jitter detection result.
[0102] Optionally, if the time jitter detection result indicates that the target service traffic is experiencing abnormal jitter, the time jitter detection result will be reported to the TSN controller, and alarm information (such as SMS, email, etc.) can be sent to notify network management. Based on the received time jitter detection result, the TSN controller will automatically recalculate and issue an updated forwarding policy to adjust the transmission priority or reserved bandwidth of the target service traffic.
[0103] In a detailed embodiment, such as Figure 7 As shown, a jitter detection method includes the following specific steps:
[0104] Step 700: Based on the forwarding strategy of the service traffic sent by the Time-Sensitive Network (TSN) controller, determine the expected period for each data packet corresponding to the target service traffic to be sent to the receiving terminal.
[0105] Step 702: Based on the traffic detection features sent by the TSN controller, obtain the actual timestamp of each data packet sent to the receiving terminal.
[0106] Step 704: For each pair of adjacent data packets, determine the instantaneous jitter value of the data packet based on the difference between the actual timestamp of the subsequent data packet and the actual timestamp of the preceding data packet, as well as the expected period.
[0107] Step 706: Determine the jitter detection value based on the variance of each instantaneous jitter value.
[0108] Step 708: Determine the time jitter detection result based on the jitter detection value and the preset threshold.
[0109] Step 710: If the time jitter detection result indicates that the target service traffic is experiencing jitter anomalies, the time jitter detection result is reported to the TSN controller so that the TSN controller outputs alarm information and updates the forwarding policy based on the time jitter detection result.
[0110] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0111] Based on the same inventive concept, this application also provides a jitter detection device for implementing the jitter detection method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more jitter detection device embodiments provided below can be found in the limitations of the jitter detection method described above, and will not be repeated here.
[0112] In one embodiment, such as Figure 8As shown, a jitter detection device is provided, including: a desired period determination module 802, an actual timestamp determination module 804, an instantaneous jitter value determination module 806, and a jitter detection result determination module 808, wherein:
[0113] The expected period determination module 802 is used to determine the expected period for each data packet corresponding to the target service traffic to be sent to the receiving terminal based on the forwarding strategy of the service traffic sent by the Time Sensitive Network (TSN) controller.
[0114] The actual timestamp determination module 804 is used to obtain the actual timestamp of each data packet sent to the receiving terminal based on the traffic detection characteristics sent by the TSN controller.
[0115] The instantaneous jitter value determination module 806 is used to determine the instantaneous jitter value of each pair of adjacent data packets based on the difference between the actual timestamp of the later data packet and the actual timestamp of the earlier data packet, as well as the expected period.
[0116] The jitter detection result determination module 808 is used to determine the time jitter detection result of the target service traffic based on the instantaneous jitter value of each data packet.
[0117] In one embodiment, the jitter detection result determination module 608 is further configured to: determine the jitter detection value of the target service traffic based on each instantaneous jitter value; and determine the time jitter detection result based on the jitter detection value and a preset threshold.
[0118] In one embodiment, the jitter detection result determination module 608 is further configured to: determine the jitter detection value based on the variance of each instantaneous jitter value.
[0119] In one embodiment, the device further includes a parameter information determination module, which is used to: analyze parameter information related to the time jitter of the target service traffic based on each instantaneous jitter value; the parameter information includes at least one of the average value of the instantaneous jitter, the maximum value of the instantaneous jitter, and the standard deviation of the instantaneous jitter; and send the parameter information to the TSN controller so that the TSN controller can visualize the parameter information.
[0120] In one embodiment, the apparatus further includes a forwarding policy update module, which is used to: report the time jitter detection result to the TSN controller when the time jitter detection result indicates that the target service traffic has jitter anomalies, so that the TSN controller outputs alarm information and updates the forwarding policy based on the time jitter detection result.
[0121] Each module in the aforementioned jitter detection device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0122] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 9 As shown, the computer device includes a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When executed by the processor, the computer program implements a jitter detection method. The display screen can be an LCD screen or an e-ink display. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the computer device casing, or an external keyboard, touchpad, or mouse.
[0123] Those skilled in the art will understand that Figure 9 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0124] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0125] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in the above method embodiments.
[0126] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0127] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0128] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0129] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0130] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A jitter detection method, characterized in that, The method includes: Based on the forwarding strategy of the service traffic sent by the Time-Sensitive Network (TSN) controller, the expected period for sending each data packet corresponding to the target service traffic to the receiving terminal is determined. Based on the traffic detection characteristics sent by the TSN controller, the actual timestamp of each data packet sent to the receiving terminal is obtained; For each pair of adjacent data packets, the instantaneous jitter value of the data packet is determined based on the difference between the actual timestamp of the subsequent data packet and the actual timestamp of the preceding data packet, as well as the expected period. Based on the instantaneous jitter value of each data packet, the time jitter detection result of the target service traffic is determined.
2. The method according to claim 1, characterized in that, The determination of the time jitter detection result of the target service traffic based on the instantaneous jitter value of each data packet includes: Based on the instantaneous jitter values, the jitter detection value of the target service traffic is determined; The time jitter detection result is determined based on the jitter detection value and the preset threshold.
3. The method according to claim 2, characterized in that, The step of determining the jitter detection value of the target service traffic based on each of the instantaneous jitter values includes: The jitter detection value is determined based on the variance of each instantaneous jitter value.
4. The method according to claim 2, characterized in that, The method further includes: Based on each of the instantaneous jitter values, analyze the parameter information related to the time jitter of the target service traffic; the parameter information includes at least one of the average instantaneous jitter, the maximum instantaneous jitter, and the standard deviation of the instantaneous jitter; The parameter information is sent to the TSN controller so that the TSN controller can visualize the parameter information.
5. The method according to claim 1, characterized in that, The method further includes: If the time jitter detection result indicates that the target service traffic is experiencing abnormal jitter, the time jitter detection result is reported to the TSN controller, so that the TSN controller outputs alarm information and updates the forwarding policy based on the time jitter detection result.
6. A time jitter detection system, characterized in that, The time jitter detection system includes a time-sensitive network detector, a receiving terminal, a transmitting terminal, a TSN switch, and a TSN controller; the receiving terminal and the transmitting terminal are communicatively connected through the TSN switch, and the time-sensitive network detector is connected to both the receiving terminal and the TSN switch; the time-sensitive network detector, the receiving terminal, the transmitting terminal, and the TSN controller are clock-synchronized. The TSN controller is used to generate a forwarding strategy for service traffic between the sending terminal and the receiving terminal. The sending terminal is used to send the service traffic to the receiving terminal through the TSN switch; The time-sensitive network detector is used to perform the time jitter detection method according to any one of claims 1-5.
7. A vibration detection device, characterized in that, The device includes: The expected period determination module is used to determine the expected period for each data packet corresponding to the target service traffic to be sent to the receiving terminal based on the forwarding strategy of the service traffic sent by the Time-Sensitive Network (TSN) controller. The actual timestamp determination module is used to obtain the actual timestamp of each data packet sent to the receiving terminal based on the traffic detection characteristics sent by the TSN controller; The instantaneous jitter value determination module is used to determine the instantaneous jitter value of each two adjacent data packets based on the difference between the actual timestamp of the later data packet and the actual timestamp of the earlier data packet, as well as the expected period. The jitter detection result determination module is used to determine the time jitter detection result of the target service traffic based on the instantaneous jitter value of each data packet.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.