A Method and Device for Measuring the Configuration of Time-Sensitive Network Time Synchronization Traffic and Gating

By generating test adaptation dictionary and dynamically adjusting the gated configuration, the problem of time-synchronous traffic squeezing service traffic is solved, the accuracy and efficiency of time-sensitive network testing is achieved, manual intervention is reduced, and the accuracy and reliability of test results are ensured.

CN119788554BActive Publication Date: 2025-07-18CHINA ACADEMY OF INFORMATION & COMM
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510280877.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-03-11
Publication Date
2025-07-18
Estimated Expiration
2045-03-11

AI Technical Summary

Technical Problem

In the prior art, the squeeze of time-synchronous traffic on service traffic leads to insufficient accuracy of time-sensitive network testing, and automated testing tools cannot provide sufficient guarantees during high-precision and low-jitter transmission, resulting in the test results not meeting the requirements.

Method used

By generating a test adaptation dictionary, including test status parameters and configuration parameters, dynamically adjusting the gated configuration, ensuring that time synchronization traffic and service traffic are isolated on the physical time slot, and automatically adjusting the configuration parameters using the wrong window judgment conditions to avoid the wrong window phenomenon.

Benefits of technology

It realizes the accuracy and efficiency of time-sensitive network testing, reduces manual intervention, ensures the accuracy and reliability of test results, and avoids interference from time-synchronous traffic on service traffic.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119788554B_ABST
    Figure CN119788554B_ABST
Patent Text Reader

Abstract

The present application discloses a method and apparatus for measuring time synchronization traffic and gating configuration in a time-sensitive network. A test adaptation dictionary is generated, which includes test status parameters and test configuration parameters. Among them, a delay value is determined according to the test status parameters and compared with the gating period to meet the condition of no error window. The test adaptation dictionary is retrieved according to the current test status parameters. If the corresponding test configuration parameter set is matched, the configuration is directly sent to the device under test; if not, a new test configuration parameter set needs to be configured, which includes at least one adjustment operation for a certain queue or multiple queues to ensure the isolation of time synchronization traffic and service traffic in the physical time slot. Whether the test passes is judged according to whether the condition of no error window is met. The present application can solve the problem of insufficient test accuracy caused by the occupation of service traffic by time synchronization traffic.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technologies, and in particular, to a measurement method and device for dynamically adjusting time synchronization traffic and gating configuration in a time-sensitive network. Background Art

[0002] As one of the important protocols in the Time Sensitive Network (TSN) protocol family, the Time Aware Shaper (TAS) mechanism specified in IEEE 802.1Qbv can accurately open or close these gates at a predetermined time by setting 8 gate control lists (GCLs) with priorities ranging from 0 to 7 in ascending order at the switch or router port, ensuring that time-sensitive flows achieve transmission, fine-grained traffic scheduling, and real-time response based on precise clock synchronization of IEEE 802.1AS (generalized Precision Time Protocol, gPTP). How to accurately and efficiently test TAS is a necessary step to ensure the accuracy of its functions, and it is also a means to optimize configuration parameters (time slot allocation, priority allocation, etc.) and identify and solve potential problems.

[0003] The premise for TAS to ensure the accurate transmission of time-sensitive flows is that the time-sensitive flows must be at the entrance of the pre-planned time slots within the time window allowing the transmission of such flows. If the flow misses the window due to transmission or processing delays (i.e., "window miss"), an additional delay of at least one gating cycle (Cycle Time, CT) will be introduced, resulting in the flow not accurately hitting the time window during testing, and ultimately leading to the test delay and jitter not meeting the requirements of IEEE 802.1Qbv. In many current test schemes, additional time-sensitive network devices need to be introduced, which makes the test architecture more complex; many TAS tests still require manual configuration of parameters such as gating cycles and time slots, which is time-consuming and laborious and often leads to improper configuration due to human errors, thus affecting the accuracy of test results; although some automated test tools can reduce human intervention to a certain extent, when faced with problems such as high-precision time synchronization, low-jitter transmission, and preventing flow window misses, existing automated test schemes often cannot provide sufficient guarantees; most current test methods are mostly based on static configurations. Once the test flow sending mode changes, the system under test is difficult to quickly respond and make corresponding adjustments, which will lead to problems such as increased delay and more window miss phenomena during the test process, seriously affecting the accuracy and reliability of the test. In addition, when testing under the premise of achieving high-precision time synchronization, there will still be a situation where the flow allowed to pass by the gating of a certain priority is crowded out by the time synchronization flow carried by it, resulting in window miss and causing the boundedness of the delay and the accuracy of the test not meeting the requirements. This problem has rarely been concerned by current test methods. Therefore, it is necessary to solve the problem of insufficient test accuracy caused by the crowding out of time synchronization flow and time-sensitive service flow in the TAS mechanism, and to achieve automatic adjustment of the configuration of time synchronization flow and TAS service flow to ensure the accuracy and efficiency of the test. Summary of the Invention

[0004] This application proposes a method and device for measuring the time synchronization flow and gating configuration of a time-sensitive network to solve the problem of insufficient test accuracy caused by the crowding out of time synchronization flow and service flow.

[0005] An embodiment of this application proposes a method for measuring the time synchronization flow and gating configuration of a time-sensitive network, including the following steps:

[0006] Generate a test adaptation dictionary, which includes test status parameters and test configuration parameters. The test status parameters include a time synchronization traffic queue, time synchronization accuracy, traffic interval, number of test traffic, necessary transmission delay, and jitter parameters, and also include a status flag indicating whether the wrong window judgment passes; the test configuration parameters include a gating period, queue time slot allocation, and queue priority mapping rule; among them, a delay value is determined according to the test status parameters and compared with the gating period to meet the condition of no wrong window.

[0007] During the test, retrieve the test adaptation dictionary according to the current test status parameters. If a corresponding set of test configuration parameters is matched, directly send the configuration to the device under test.

[0008] If no match is found, a new set of test configuration parameters needs to be configured, including at least one adjustment operation for a certain queue or multiple queues to ensure that the time synchronization traffic is isolated from the service traffic in the physical time slot; determine the delay value according to the test status parameters and compare it with the gating period to determine the number of test traffic under the condition of no wrong window.

[0009] In one embodiment, when the test is only for a certain queue Q X If the time synchronization traffic in it occupies the TAS service traffic, adjust it by modifying the time slot allocation in the GCL Q X for adjustment.

[0010] In one embodiment, when the test is for multiple queues and the time synchronization message is transmitted by a certain queue Q X If the time synchronization traffic in it occupies the TAS service traffic and the test reaches queue Q X Modify the time synchronization traffic to be transmitted in the queue that has passed, so that the time synchronization traffic and the TAS service traffic do not interfere with each other.

[0011] In one embodiment, judge whether the test passes according to the wrong window status flag in the test status parameters. When no wrong window occurs and the number of traffic passing through the time slot N is equal to the number of traffic sent by the test instrument, call the two key parameters of delay and jitter in the test status parameters for output; if a wrong window occurs, automatically discard the current configuration and trigger the reconfiguration process and the re - retrieval process.

[0012] Preferably, before the above - mentioned steps of the method of the present application, it also includes: performing test network time synchronization to meet the set gPTP synchronization time accuracy.

[0013] Preferably, the wrong window judgment condition is: in any gating period TX Determine the allocated time slots within it and the range of the sum of the time and its allowable error; if the sum of the time synchronization accuracy, flow interval, transmission delay, and flow jitter between the test instrument and the device under test exceeds this range, it is determined that a window error has occurred.

[0014] On the other hand, an embodiment of the present application also proposes a time-sensitive network time synchronization traffic and gating configuration measurement device, including: a test adaptation dictionary, an acquisition module, and a determination module;

[0015] The test adaptation dictionary contains test status parameters and test configuration parameters;

[0016] The acquisition module is used to detect the test instrument and the device under test and obtain the test status parameters and test configuration parameters;

[0017] The determination module is used to determine the number of test traffic under the condition of no window error, and to determine the test configuration parameters corresponding to the test status parameters.

[0018] Further, the device further includes an adjustment module for at least one of the following functions: modifying the time slot allocation for Q in the GCL; changing the number of test traffic; modifying the transmission queue of the time synchronization traffic. X changing the number of test traffic; modifying the transmission queue of the time synchronization traffic.

[0019] Further, the device further includes a generation module for generating at least one of the following: test commands, configuration parameters, and test results.

[0020] The above at least one technical solution adopted in the embodiment of the present application can achieve the following beneficial effects:

[0021] The present application aims at the configuration conflict problem that time synchronization traffic squeezes service traffic. By dynamically adjusting the configuration, it realizes the improvement of test accuracy (avoiding window errors) and automatic adaptation (reducing manual intervention). Specifically, the present application provides a test method and device for dynamically adjusting the time synchronization traffic and gating configuration in a time-sensitive network, aiming to solve the problem that the test accuracy does not meet the requirements due to time synchronization traffic squeezing TAS service traffic in the existing test methods, so that time synchronization traffic does not interfere with TAS service traffic, thereby ensuring the accuracy and efficiency of TAS testing; in addition, the present application forms a test network by combining the test instrument, the device under test, and the measurement device, and realizes the automatic adjustment of the configuration of time synchronization traffic and TAS service traffic. The measurement device can automatically match appropriate test configurations according to the squeezing situation of time synchronization traffic on TAS service traffic by pre-collecting traffic status and test configuration parameters, and adjust the GCL of the device under test, thereby improving test accuracy. Description of the Drawings

[0022] The accompanying drawings described herein are used to provide a further understanding of the present application and form a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation of the present application. In the drawings:

[0023] Figure 1 is the test queue in the gating list Q Schematic diagram of the occurrence of 3 wrong windows;

[0024] Figure 2 is a system embodiment of the application scenario of the present application;

[0025] Figure 3 is a flowchart of an embodiment of a method for measuring time-sensitive network time synchronization traffic and gating configuration;

[0026] Figure 4 is a flowchart of an embodiment of the process for determining a test adaptation dictionary included in the method of the present application;

[0027] Figure 5 is a flowchart of an embodiment of the test process included in the method of the present application;

[0028] Figure 6 is a schematic diagram of a typical embodiment of automatically adjusting the GCL configuration according to the traffic state;

[0029] Figure 7 is an embodiment of a device for measuring time-sensitive network time synchronization traffic and gating configuration of the present application. Detailed implementation manners

[0030] To make the objectives, technical solutions, and advantages of the present application clearer, the technical solutions of the present application will be clearly and completely described below in conjunction with specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts shall fall within the protection scope of the present application.

[0031] The following will describe in detail the technical solutions provided by each embodiment of the present application in conjunction with the drawings.

[0032] Figure 1 is the test queue in the gating list Q Schematic diagram of the occurrence of 3 wrong windows. As Figure 1 shown, the traffic of queue Q 3 can be transmitted within the time slot obtained by allocation and the sum of its allowable error time. Within the period T X when the sum of the time synchronization accuracy, traffic interval, transmission delay, and traffic jitter between the test instrument and the device under test exceeds this range, the traffic exceeding this limit range NWill wait for the next cycle T X+1 Queue Q When 3 is open, transmission is carried out, resulting in a wrong window.

[0033] Figure 2 This is a system embodiment of the application scenario of the present application. The networking and interaction schematic diagram of the measurement device, the test instrument, and the device under test proposed in the present application. The measurement device can be built into the test instrument or exist independently outside the test instrument. The measurement device sends a test instruction to the test instrument, and the test instrument responds to the instruction of the device and uploads the clock information, GCL, and test traffic; the measurement device issues a GCL configuration to the device under test, and the device under test uploads the clock information and receives traffic upload to the measurement device.

[0034] Figure 3 This is a flowchart of an embodiment of the method for measuring time-sensitive network time synchronization traffic and gating configuration, including steps 31 to 35.

[0035] Step 31: Perform test network time synchronization to meet the set gPTP synchronization time accuracy.

[0036] Step 32: Generate a test adaptation dictionary, which includes test status parameters and test configuration parameters. The test status parameters include the time synchronization traffic queue, time synchronization accuracy, traffic interval, number of test traffic, necessary transmission delay, and jitter parameters carried, and the test configuration parameters include the gating period, queue time slot allocation, queue priority mapping rules, etc.

[0037] Preferably, the wrong window judgment condition is: within any gating period T X Determine the allocated time slot and the range of the sum of its allowed error time; if the sum of the time synchronization accuracy, traffic interval, transmission delay, and traffic jitter between the test instrument and the device under test exceeds this range, it is determined that a wrong window has occurred. For example, it is judged by formula 2 below.

[0038] Preferably, the test status parameter includes a status flag indicating whether the wrong window judgment passes, that is, a status flag indicating whether the no-wrong-window state is satisfied.

[0039] Determine the delay value according to the test status parameter and compare it with the gating period to determine the number of test traffic under the no-wrong-window condition.

[0040] Step 33: During the test, retrieve the test adaptation dictionary, and in response to the retrieval result, determine the test configuration parameters corresponding to the test status parameters that meet the no-wrong-window condition and issue them to the device under test.

[0041] Preferably, the test configuration parameters corresponding to the test status parameters in the test adaptation dictionary are retrieved. A delay value is determined according to the test status parameters and compared with the gating period to meet the error-free window condition. Then, the test adaptation dictionary is retrieved according to the current test status parameters. If a corresponding set of test configuration parameters is matched, the configuration is directly sent to the device under test.

[0042] Step 34: In response to the inability to retrieve the current test status, adjust the test queue, supplement the test configuration dictionary, determine and generate the test configuration parameters corresponding to the test status parameters, and send them to the device under test.

[0043] If no corresponding set of test configuration parameters is matched, a new set of test configuration parameters needs to be configured, including at least one adjustment operation for a certain queue or multiple queues to ensure that the time synchronization traffic and the service traffic are isolated in the physical time slots. A delay value is determined according to the test status parameters and compared with the gating period to determine the number of test traffic under the error-free window condition.

[0044] In one embodiment, when the test is only for a certain queue Q X if the time synchronization traffic in it occupies the TAS service traffic, the adjustment is made by modifying the time slot allocation in the GCL Q X for this.

[0045] In one embodiment, when the test is for multiple queues and the time synchronization packets are transmitted by a certain queue Q X if the time synchronization traffic in it occupies the TAS service traffic and when the test reaches queue Q X the time synchronization traffic is modified to be transmitted in the queues that have passed, so that the time synchronization traffic and the TAS service traffic do not interfere with each other.

[0046] Step 35: When a new set of test configuration parameters is configured, a new status identifier is generated in the test status parameters. Whether the test passes is judged according to the error window status identifier in the test status parameters. When there is no error window and the number of traffic passing through the time slots N is equal to the number of traffic sent by the test instrument, the two key parameters of delay and jitter in the test status parameters are called for output.

[0047] If an error window still occurs, the current configuration is automatically discarded, and the reconfiguration process and the re-retrieval process are triggered.

[0048] Figure 4 This is the flowchart of the process embodiment for determining the test adaptation dictionary included in the method of the present application. The present application first needs to establish a test adaptation dictionary , is a configuration set that maps test status parameters to test configuration parameters one by one, denoted as , where the key is the test status , and the value is the test configuration parameter of the device under test . During the test, first retrieve the current test status parameter in , and then automatically send the retrieved test configuration to the device under test.

[0049] It should be noted that the described test status does not directly belong to the performance of the flow itself or the test instrument. Some parameters defining the test status are obtained by comparing the flow with the instrument. For example, the test status is defined by comparing the time synchronization accuracy, necessary transmission time, etc. with the time slots obtained from queue allocation and the allowed error.

[0050] Step 41: The measuring device issues a test command. The test instrument sends time synchronization traffic and TAS service test traffic to the device under test. At the same time, the device under test needs to interact with the test instrument for time synchronization traffic to meet the precise time synchronization required by gPTP (usually the synchronization error is within a few hundred nanoseconds). The measuring device needs to record the status of the test instrument and the device under test simultaneously.

[0051] Step 42: The measuring device first collects the gating configuration of the test instrument and sends it to the device under test. Record the status parameters such as the time synchronization traffic queue Q X obtained by detection, the time synchronization accuracy at the current moment , the traffic interval , the number of test traffic sent within a gating window N , the necessary transmission delay , the jitter J , etc. Then, perform a misaligned window judgment on the traffic based on the status parameters and mark whether the test passes. Record the current status in the element of the status parameter set, that is, the i th element of the status parameter set is:

[0052] (1)

[0053] Among them:

[0054] represents the time synchronization accuracy between the device under test and the test instrument at the current moment, as shown in Figure 1 ;

[0055] represents the time difference between the end of the previous traffic transmission and the start of the next traffic transmission. Since the number of transmissions within the gating window is NWhen there is such a time difference, there are N -1 of them, and they need to be summed up, as shown in Equation (1): shown;

[0056] represents the necessary transmission delay when transmitting traffic within the gating window time slot. It is necessary to sum up the necessary transmission delays required for the N traffic transmitted within the time slot, as shown in Equation (1): shown;

[0057] J represents the jitter of the test traffic, and the calculation result is given by , N is the number of test traffic, is the x th arrival time interval between the traffic and the previous traffic, is the average value of all ;

[0058] is the identifier for wrong window judgment and whether it passes. It is a boolean variable, .

[0059] The wrong window judgment is carried out through the following formula. If this formula holds, it is judged that a wrong window appears, is assigned False, and N is gradually reduced and the number of traffic passing through within the time slot is updated until no wrong window occurs; otherwise is assigned True:

[0060] (2)

[0061] , respectively represent the errors allowed for the queue traffic to arrive and leave in the device under test. The left end of Formula 2 is the sum of the time synchronization accuracy, traffic interval, transmission delay, and traffic jitter between the test instrument and the device under test; the right end of Formula 2 is the time sum range of the time slots allocated within the gating period and their allowed errors.

[0062] State parameter set is established and supplemented and improved through testing.

[0063] Step 43: Record the elements of the current configuration parameter set , and this set contains the gating configuration entries num, CT of GCL, and the information of the time slot (TimeSlot, TS) allocation, that is, and corresponds one-to-one with the parameters in Step 42, and incorporates them into the dictionary .

[0064] When is True, it is up to the tester to decide whether to save the current dictionary element; when is False, the current GCL configuration will be automatically discarded when the next test instruction is sent.

[0065] It should be noted that when is False, it means that the current GCL configuration does not match the test traffic, and the test cannot pass. Such a configuration is not necessary to occupy the device memory, otherwise the keys and values of the Dic will become infinite; when is True, the test can pass, and the operation authority of the tester should be retained, and it is up to him to decide whether to directly call this configuration when encountering this kind of traffic in the next test.

[0066] Figure 5 is the flowchart of the test process implementation example included in the method of this application.

[0067] After the test adaptation dictionary is established, subsequent tests will automatically search for the configuration parameters in the adaptation dictionary according to the test status collected by the measuring device and send them to the device under test, and then resend the test instruction for testing. As shown, the specific steps are as follows: Figure 5

[0068] Step 51: First, the measuring device issues a test instruction, and then the time synchronization of the entire test network needs to be performed, including the synchronization between the test instrument and the device under test. The synchronization status of both will be transmitted to the measuring device in real time and must meet the requirements of gPTP time synchronization. The measuring device does not need to have the time synchronization function, which will not cause additional errors in the test due to the introduction of additional time-sensitive devices. It is responsible for counting, monitoring, and managing the entire test network, and has the functions of instruction issuance, status collection and calculation, test adaptation dictionary generation, and test configuration parameter retrieval.

[0069] Step 52: According to the status obtained from collection and calculation (such as formula 1) retrieve the test configuration in the test adaptation dictionary . If the current test status can be retrieved in , then send this test configuration to the device under test , and at the same time reissue the test instruction for the entire network; if the current test status cannot be retrieved in , then perform manual configuration of according to , and the supplement of can be carried out according to the following principles :

[0070] When the test is only for a certain queue Q X and the time synchronization traffic in it crowds out the TAS service traffic (that is, Q X the number of TAS service traffic received within the time slot is less than N ), the adjustment is made by modifying the time slot allocation in the GCL for Q X ;

[0071] When the test is for multiple queues and the time synchronization message is transmitted by a certain queue Q X and the time synchronization traffic in it crowds out the TAS service traffic, when the test reaches the queue Q X , the time synchronization traffic is modified to be transmitted in the queue that has passed, so that the time synchronization traffic and the TAS service traffic do not interfere with each other.

[0072] It should be noted that the queue that has passed refers to the queue that has not been crowded out by the time synchronization traffic and has passed smoothly before, such as Figure 6 in Q 0, Q 1. For the case of multiple queue tests, not only Q x is enabled during the test, but other queues are also enabled at the same time. For example Figure 6 when Q 2 is enabled, other queues Q 0, Q 3, Q 7, etc. are also enabled. It's just that within the enabled time slot corresponding to Q x , the priority traffic corresponding to Q X needs to fall within it; the priority of the time synchronization traffic can be changed. For example Figure 6 in Q 2, since the time synchronization traffic crowds out the TAS traffic, the priority of the time synchronization traffic is modified to Q 1 for transmission, so that the time synchronization traffic is inserted into the queue Q 1.

[0073] Step 53: Determine whether the test passes according to the misaligned window status flag in the current . When there is no misaligned window and the number of traffic passing through the time slot N is equal to the number of traffic sent by the test instrument, output "Pass" and call to output the two key parameters of delay and jitter, and the test is completed.

[0074] It should be noted that the current may not necessarily be stored in the test adaptation dictionary . Each traffic will have during testing, and this will be used for retrieval. When it cannot be detected in Dic , it means that the status parameter of the traffic is False, which means there is a wrong window and it is not included in Dic , so it cannot be detected either, and the test cannot pass; at this time, the parameters need to be manually reconfigured. According to the description of step 42 of the embodiment of the present application, in response to = Ture, will be stored in the test adaptation dictionary . That is to say, only when it is equal to True can it be stored in the dictionary . The Dic of the elements included in will all be True. If the False situation is also included, since there are more False situations, Dic will become infinitely large as the test progresses.

[0075] Figure 6 is a schematic diagram of a typical embodiment for automatically adjusting the GCL configuration according to the traffic status. As Figure 6 shown, it is a typical embodiment for automatically adjusting the GCL configuration when a wrong window is detected during testing. In this embodiment, the test instrument sends test traffic of multiple priorities, among which Q the TAS traffic transmitted by 2 is crowded out by the time synchronization traffic, resulting in a wrong window, increasing the delay and jitter, and causing the test to fail. The present application will detect the traffic status and automatically modify the GCL configuration according to the matching it in .

[0076] First, after the measuring device issues an instruction to start the test, the test instrument generates and sends test traffic, and these traffic will be screened and buffered in the test instrument according to the traffic priority. The test instrument uploads the specified gating configuration rule to the measurement, and the DUT will generate a preliminary GCL configuration according to the configuration rule required by the test instrument collected by the measurement. When the configuration rule of the DUT matches the rule specified by the test instrument, the test continues.

[0077] Then, the test instrument and the DUT perform time synchronization, and the time synchronization accuracy of both will be uploaded to the measurement device; when meets the gPTP requirements (usually requiring When it is less than a nanosecond, the measuring device then instructs the test instrument to send the test flow. After the test flow is sent, all the parameters in its status parameters will be calculated and uploaded to the measuring device. In this embodiment, for the queue Q 2, due to the time synchronization flow squeezing resulting in the TAS flow misaligned window and unable to be transmitted normally, the parameters in it will be assigned False, and the test will be interrupted; the measuring device retrieves the test adaptation dictionary and the configuration in and distributes the retrieved configuration to the device under test.

[0078] According to the preliminary GCL configuration, when the GCL takes effect until TS 2, the TAS flow with a priority of 2 and the time synchronization flow start to be transmitted simultaneously in Q 2. Since the time synchronization flow and the TAS flow have the same priority, the two will adopt the first-come-first-served method for transmission. When the time slot TS 2 is not sufficient to accommodate N the TAS flow and the incorporated time synchronization flow, the TAS flow will have a misaligned window, and thus some flows will be introduced with at least the delay, and the test cannot pass.

[0079] For this state , when the test proceeds to TS 2, the sending of the flow is paused; the measuring device retrieves and modifies the GCL configuration: modifies the time synchronization flow to be transmitted in 1 that has passed the test, and in the time slot Q 2, opens the gating window of queue TS 1 to ensure the transmission of the time synchronization flow. In this way, both the accuracy of time synchronization can be ensured and the transmission of the TAS flow can be not interfered, thus ensuring the accuracy and efficiency of the test and enabling the test to pass smoothly. Q

[0080] Figure 7 This is an embodiment of the measuring device for time synchronization flow and gating configuration of the time-sensitive network of the present application. The measuring device includes: a test adaptation dictionary 75, an acquisition module 71, and a determination module 72;

[0081] The test adaptation dictionary is a data set in the data storage unit, including test status parameters and test configuration parameters;

[0082] The acquisition module is used to detect the test instrument and the device under test, and acquire the test status parameters and test configuration parameters;

[0083] The determining module is configured to determine the number of test traffic under the error-free window condition and determine the test configuration parameters corresponding to the test status parameters. The functions implemented as described in steps 33-34 of the embodiment are not elaborated here.

[0084] Further, the determining module is further configured to determine whether the test passes according to the status representation.

[0085] Further, the device further includes an adjustment module 73 for at least one of the following functions: modifying the time slot allocation for Q X ; changing the number of test traffic; modifying the transmission queue of the time synchronization traffic.

[0086] Further, the device further includes a generating module 74 for generating at least one of the following: test commands, configuration parameters, and test results.

[0087] As Figure 1 shown, the present application also proposes a time-sensitive network time synchronization traffic and gating configuration measurement system, including the time-sensitive network time synchronization traffic and gating configuration measurement device and a test instrument. The system loads the software operation modules of the device of the present application, such as a test adaptation dictionary, an acquisition module, a determination module, an adjustment module, and a generation module.

[0088] The present application dynamically adjusts the gating configuration of time synchronization traffic and service traffic under the TAS mechanism, avoiding the interference of time synchronization traffic on service traffic while meeting the requirements of high-precision time synchronization, and ensuring the efficiency and accuracy of the test.

[0089] The present application establishes an adaptive test adaptation dictionary , which can dynamically select appropriate test configuration parameters according to the occupation situation of time synchronization traffic on service traffic. The measurement device will collect the traffic status and test configuration parameters in advance, so as to ensure that each test can select an appropriate test configuration scheme from according to the current traffic status, improving the accuracy and efficiency of the test, and at the same time reducing the adverse impact of improper manual configuration on the test results.

[0090] The present application designs a measurement device that does not need to have a time synchronization function, and simultaneously collects and monitors the time synchronization status of the test instrument and the device under test to real-time monitor whether the entire test system meets the requirements of high-precision time synchronization. The measurement device can be built into the test instrument or exist independently outside the test instrument, enabling flexible deployment, which not only simplifies the test architecture and reduces the test cost, but also avoids the problem of reduced test accuracy caused by introducing additional errors.

[0091] Compared with the prior art, the gating cycle, jitter, and delay parameters are common parameters that need to be statistically analyzed during testing. The innovation of this application lies in using these data for miswindow judgment and as parameters for generating a test adaptation dictionary, and the methods of parameter collection and processing are also different from those of the prior art.

[0092] The focus of this patent is on dynamic parameter matching and adaptive adjustment. Through a test adaptation dictionary, a miswindow judgment formula, and queue dynamic adjustment, configuration optimization is achieved, and the accuracy of time synchronization is higher. Specifically:

[0093] Test adaptation dictionary: This application dynamically binds test status parameters to configuration parameters that meet the miswindow conditions to achieve automated configuration retrieval and distribution.

[0094] Miswindow judgment condition: By quantifying synchronization accuracy, traffic interval, delay, and jitter, a miswindow threshold is defined to solve the conflict problem.

[0095] Queue priority adjustment: Migrate time synchronization traffic to the passed queue to avoid competition with TAS service traffic.

[0096] It should also be noted that the term "comprising", "including", or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, commodity, or device including a series of elements not only includes those elements but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, commodity, or device. Without further limitation, the elements defined by the statement "including..." do not exclude the existence of additional identical elements in the process, method, commodity, or device including the said elements.

[0097] Those skilled in the art of this technology can understand that unless specifically stated, the singular forms "a", "an", "the", and "said" used may also include the plural form. It should be further understood that the term "including" used in the description of this application means the presence of the said features, integers, steps, operations, modules, and / or devices, but does not exclude the presence or addition of one or more other features, integers, steps, operations, modules, devices, and / or their groups. It should be understood that when a module or device is "connected" to another module or device, it can be directly connected to other modules or devices, or there may also be intermediate modules or devices. In addition, the "connection" used here may include a wireless connection. In the description of this application, unless otherwise stated, "a plurality of" means two or more.

[0098] Those skilled in the art of this technology can understand that unless otherwise defined, all terms (including technical, terminological, and scientific terms) used here have the same meaning as the general understanding of those of ordinary skill in the art to which this application belongs.

[0099] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, various changes and modifications can be made to the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the scope of the claims of the present application.

Claims

1. A method for measuring the time synchronization traffic and gating configuration of a time-sensitive network, characterized in that Including the following steps: Generate a test adaptation dictionary, which includes test status parameters and test configuration parameters. The test status parameters include a time synchronization traffic queue, time synchronization accuracy, traffic interval, number of test traffic, necessary transmission delay, and jitter parameters. The test configuration parameters include a gating period and queue time slot allocation. Among them, a delay value is determined according to the test status parameters and compared with the gating period to meet the error-free window condition; The wrong window judgment condition is: within any door control cycle T X determine the allocated time slot and the range of the sum of the time and its allowable error; if the sum of the time synchronization accuracy, flow interval, transmission delay, and flow jitter between the test instrument and the device under test exceeds this range, it is determined that a wrong window has occurred; Retrieve the test adaptation dictionary according to the current test status parameters. If a corresponding set of test configuration parameters is matched, directly send the configuration to the device under test; If no match is found, a new set of test configuration parameters needs to be configured, including at least one adjustment operation for a certain queue or multiple queues in the test queue in the gating list to ensure that the time synchronization traffic and service traffic are isolated in the physical time slot. Determine the delay value according to the test status parameters and compare it with the gating period to determine the number of test traffic under the error-free window condition.

2. The method for measuring the time synchronization traffic and gating configuration of a time-sensitive network according to claim 1, characterized in that: When the test is only for a certain queue Q X if the time synchronization traffic in it crowds out the TAS service traffic, it is adjusted by modifying the time slot allocation for Q X in the GCL.

3. The method for measuring the time synchronization traffic and gating configuration of a time-sensitive network according to claim 1, characterized in that: When the test is for multiple queues and the time synchronization message is transmitted by a certain queue Q X When transmitting, if the time synchronization traffic in it occupies the TAS service traffic, when the test reaches the queue Q X modify the time synchronization traffic to be transmitted in the queue that has passed, so that the time synchronization traffic and the TAS service traffic do not interfere with each other.

4. The method for measuring the time synchronization traffic and gating configuration of a time-sensitive network according to claim 1, characterized in that: When there is no error window and the number of traffic passing through the time slot N is equal to the number of traffic sent by the test instrument, the two key parameters of delay and jitter in the test status parameters are called for output; If an error window occurs, automatically discard the current configuration and trigger a reconfiguration process and a re-retrieval process.

5. The method for measuring time synchronization traffic and gating configuration of a time-sensitive network according to claim 1, wherein Before each of the above steps, it also includes: Perform test network time synchronization to meet the set gPTP synchronization time accuracy.

6. The method for measuring the time synchronization traffic and gating configuration of a time-sensitive network according to claim 1, characterized in that, The error window judgment condition is: During any gating cycle T X determine the allocated time slots and the range of the sum of the times of their allowable errors; If the sum of the time synchronization accuracy, traffic interval, transmission delay, and traffic jitter between the test instrument and the device under test exceeds this range, it is determined that an error window has occurred.

7. The method for measuring the time synchronization traffic and gating configuration of a time-sensitive network according to claim 1, characterized in that: The test status parameters include a status flag indicating whether an error-free window is met. When the status flag is False, the current GCL configuration is automatically discarded when the next test command is sent.

8. A time-sensitive network time synchronization traffic and gating configuration measurement device for implementing the method according to any one of claims 1 to 7, characterized in that Including: A test adaptation dictionary, an acquisition module, and a determination module; The test adaptation dictionary includes test status parameters and test configuration parameters; The acquisition module is used to detect the test instrument and the device under test and obtain the test status parameters and test configuration parameters; The determination module is used to determine the number of test traffic under the error-free window condition and determine the test configuration parameters corresponding to the test status parameters.

9. The time-sensitive network time synchronization traffic and gating configuration measurement device according to claim 8, characterized in that, It also includes an adjustment module for at least one of the following functions: Modify the time slot allocation for Q X in GCL; Change the number of test traffic; Modify the transmission queue of the time synchronization traffic.

10. The time-sensitive network time synchronization traffic and gating configuration measurement device according to claim 8, wherein, It also includes a generation module for generating at least one of the following: Test commands, configuration parameters, test results.

Citation Information

Patent Citations

  • Business flow scheduling method and device based on deep reinforcement learning, equipment and medium

    CN118214665A

  • Time sensitive network gating configuration method and device

    CN119109887A