Method and device for measuring time synchronization traffic and gating configuration of time sensitive network
By dynamically adjusting the time synchronization traffic and gated configuration in the time-sensitive network, the problem of time synchronization traffic squeezing service traffic is solved, the accuracy and efficiency of the test are achieved, and the wrong window phenomenon is avoided.
Patent Information
- Application Number
- CN202510280877.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-11
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2045-03-11
AI Technical Summary
Under the premise of achieving high-precision time synchronization, it is difficult to avoid the squeezing of time synchronization traffic on business traffic, resulting in insufficient test accuracy and an increase in the phenomenon of wrong windows.
By dynamically adjusting the time synchronization traffic and gated configuration in a time-sensitive network, we ensure that the time synchronization traffic and service traffic are isolated on the physical time slot. The test adaptation dictionary and wrong window judgment formula are used to automatically match and adjust the test configuration parameters.
The accuracy and efficiency of the test are achieved, the wrong window phenomenon is avoided, the time synchronization traffic does not interfere with the service traffic, and the automated adaptability of the test is improved.
Smart Images

Figure CN119788554A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a measurement method and device for dynamically adjusting time synchronization traffic and gating configuration of a time-sensitive network. Background Art
[0002] IEEE 802.1Qbv is one of the important protocols in the Time Sensitive Network (TSN) protocol family. Its Time Aware Shaper (TAS) mechanism can accurately open or close these gates at a predetermined time by setting 8 gate control lists (GCL) with priorities from 0 to 7 on the switch or router port, ensuring that time-sensitive flows can achieve transmission, fine-grained traffic scheduling and real-time response based on IEEE 802.1AS (generalized Precision Time Protocol, gPTP) precise clock synchronization. How to accurately and efficiently test TAS is a necessary step to ensure its functional accuracy, 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 of TAS to ensure accurate transmission of time-sensitive flows is that the time-sensitive flows must be located at the entrance of the pre-planned time slot in the time window that allows the flow to be transmitted. If the flow misses the window (i.e., "missed window") due to transmission or processing delays, an additional delay of at least one gating cycle (CT) will be introduced, resulting in the flow being unable to accurately hit the time window during the test, and ultimately causing the test delay and jitter to fail to meet the IEEE 802.1Qbv requirements. In many current test schemes, additional time-sensitive network devices need to be introduced, which makes the test architecture more complicated; many TAS tests still require manual configuration of parameters such as gating cycle and time slot, which is time-consuming and labor-intensive and often leads to improper configuration due to human errors, thus affecting the accuracy of the test results; although some automated test tools can reduce human intervention to a certain extent, in the face of high-precision time synchronization, low-jitter transmission and prevention of traffic mismatch, the existing automated test schemes often cannot provide sufficient protection; currently, many test methods are mostly based on static configuration. Once the test traffic sending mode changes, it is difficult for the tested system to respond quickly and make corresponding adjustments, which will lead to increased delay and mismatch during the test process, which seriously affects 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 traffic allowed to pass by a certain priority gate is squeezed by the time synchronization traffic it carries, resulting in mismatch, resulting in the boundedness of the delay and the accuracy of the test not meeting the requirements. There are currently few test methods to pay attention to this problem. Therefore, it is necessary to solve the problem of insufficient test accuracy caused by the crowding out of time synchronization traffic and time-sensitive business traffic when they are transmitted under the TAS mechanism, and to automatically adjust the configuration of time synchronization traffic and TAS business traffic to ensure the accuracy and efficiency of the test. Summary of the invention
[0004] The present application proposes a method and device for measuring time synchronization traffic and gating configuration in a time-sensitive network, which solves the problem of insufficient test accuracy caused by the crowding out of time synchronization traffic and business traffic.
[0005] The embodiment of the present application provides a method for measuring time synchronization traffic and gating configuration in a time-sensitive network, including the following steps: Generate a test adaptation dictionary, which includes test state parameters and test configuration parameters. The test state parameters include a time synchronization traffic queue, time synchronization accuracy, traffic interval, test traffic number, necessary sending delay and jitter parameters, and a state flag of whether the error window judgment is passed; the test configuration parameters include a gating cycle, queue time slot allocation, and queue priority mapping rules; wherein the delay value is determined according to the test state parameters, compared with the gating cycle, and the error-free window condition is met; During the test, 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 no match is found, a new test configuration parameter set 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 business traffic are isolated in the physical time slot; the 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. In one embodiment, when the test is only for a certain queue Q X If the time synchronization traffic squeezes the TAS service traffic, modify the GCL Q X The time slot allocation is adjusted.
[0006] In one embodiment, when the test targets multiple queues and the time synchronization message is sent by a queue Q X During transmission, if the time synchronization traffic squeezes the TAS service traffic, the test is carried out to the queue Q X When the time synchronization traffic is modified, it is transmitted to the queue that has already passed, so that the time synchronization traffic and TAS business traffic do not interfere with each other.
[0007] In one embodiment, the error window status flag in the test status parameter is used to determine whether the test is passed. N When the traffic volume is equal to the traffic volume 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, the current configuration is automatically discarded, and the reconfiguration process and re-retrieval process are triggered.
[0008] Preferably, the method of the present application further includes, before each of the steps: performing a test network time synchronization to meet the set gPTP synchronization time accuracy.
[0009] Preferably, the error window judgment condition is: in any gating period T X Within the time range, the allocated time slot and its allowable error are determined; 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, an error window is determined.
[0010] On the other hand, the embodiment of the present application also proposes a device for measuring time-sensitive network time synchronization traffic and gating configuration, 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 acquire the test status parameters and the test configuration parameters; The determination module is used to determine the number of test flows under the error-free window condition, and to determine the test configuration parameters corresponding to the test state parameters.
[0011] Furthermore, the device further comprises an adjustment module, which is used for at least one of the following functions: modifying the Q X time slot allocation; change the number of test flows; modify the transmission queue of time synchronization flows.
[0012] Furthermore, the device also includes a generation module for generating at least one of the following: a test command, a configuration parameter, and a test result.
[0013] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects: The present application is aimed at the configuration conflict problem of time synchronization traffic crowding out business traffic, and by dynamically adjusting the configuration, it realizes the improvement of test accuracy (avoiding wrong windows) and automatic adaptation (reducing manual intervention). Specifically, the present application provides a test method and device for dynamically adjusting 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 the crowding out of TAS business traffic by time synchronization traffic in the existing test methods, so that the time synchronization traffic does not interfere with the TAS business traffic, thereby ensuring the accuracy and efficiency of TAS testing; in addition, the present application realizes automatic adjustment of the configuration of time synchronization traffic and TAS business traffic by combining test instruments, tested devices and measuring devices into a test network. By pre-collecting the traffic status and test configuration parameters, the measuring device can automatically match the appropriate test configuration according to the crowding out of the TAS business traffic by the time synchronization traffic, and adjust the GCL of the tested device, thereby improving the test accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The drawings described herein are used to provide a further understanding of the present application and constitute 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 on the present application. In the drawings: Figure 1 Test queues in the gated list Q 3 Schematic diagram of the occurrence of stray windows; Figure 2 This is a system implementation example for the application scenario of this application; Figure 3 A flow chart of an embodiment of a method for measuring time synchronization traffic and gating configuration for a time-sensitive network; Figure 4A flowchart of an embodiment of a process for determining a test adaptation dictionary included in the method of the present application; Figure 5 A flow chart of an embodiment of the test process included in the method of this application; Figure 6 A schematic diagram of a typical embodiment of automatically adjusting the GCL configuration according to the flow state; Figure 7 This is an embodiment of a device for measuring time synchronization traffic and gating configuration in a time-sensitive network of the present application. DETAILED DESCRIPTION
[0015] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0016] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0017] Figure 1 Test queues in the gated list Q 3 Schematic diagram of the occurrence of stray windows. Figure 1 As shown, the queue Q The traffic of 3 can be transmitted within the allocated time slot and the time and range of its allowed error. X 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, the traffic outside the limited range will be N Will wait for the next cycle T X+1 queue Q 3. If the transmission is performed when the data is opened, an error window will be generated.
[0018] Figure 2 This is a system implementation example of the application scenario of this application. The networking and interaction diagram of the measuring device, test meter and device under test proposed in this application, the measuring device can be built into the test meter or exist independently outside the test meter. The measuring device sends a test instruction to the test meter, and the test meter responds to the instruction of the device and uploads the clock information, GCL and test traffic; the measuring device sends the GCL configuration to the device under test, and the device under test uploads the clock information and received traffic to the measuring device.
[0019] Figure 3 The flow chart of an embodiment of a method for measuring time synchronization traffic and gating configuration in a time-sensitive network includes steps 31 to 35.
[0020] Step 31: Test network time synchronization to meet the set gPTP synchronization time accuracy.
[0021] 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 sending delay and jitter parameters. The test configuration parameters include gating period, queue time slot allocation, queue priority mapping rules, etc.
[0022] Preferably, the error window judgment condition is: in any gating cycle T X The allocated time slot and the time and range of its allowable error are determined within the range; 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 the range, it is determined that an error window has occurred. For example, the judgment is made by the following formula 2.
[0023] Preferably, the test status parameter includes a status indicator of whether the error window judgment is passed, that is, a status indicator indicating whether the error-free window is satisfied.
[0024] The delay value is determined according to the test state parameter and compared with the gating period, so as to determine the number of test flows under the error-free window condition.
[0025] Step 33: During the test, the test adaptation dictionary is retrieved, and in response to the retrieval result, the test configuration parameters that meet the error-free window condition corresponding to the test status parameters are determined and sent to the device under test. Preferably, the test configuration parameters corresponding to the test state parameters in the test adaptation dictionary determine the delay value according to the test state parameters, and compare it with the gating period to meet the error-free window condition. Then, the test adaptation dictionary is retrieved according to the current test state parameters, and if the corresponding test configuration parameter set is matched, the configuration is directly sent to the device under test.
[0026] Step 34: In response to the current test status being unable to be retrieved, the test queue is adjusted, the test configuration dictionary is supplemented, and test configuration parameters corresponding to the test status parameters are determined and generated, and sent to the device under test.
[0027] If the corresponding test configuration parameter set is not matched, a new test configuration parameter set needs to be configured, which includes at least one adjustment operation for a queue or multiple queues to ensure that the time synchronization traffic and business traffic are isolated in the physical time slot; determine the delay value based on the test status parameter, compare it with the gating period, and determine the number of test traffic under the error-free window condition.
[0028] In one embodiment, when the test is only for a certain queue Q XIf the time synchronization traffic squeezes the TAS service traffic, modify the GCL Q X The time slot allocation is adjusted.
[0029] In one embodiment, when the test targets multiple queues and the time synchronization message is sent by a queue Q X During transmission, if the time synchronization traffic squeezes the TAS service traffic, the test is carried out to the queue Q X When the time synchronization traffic is modified, it is transmitted to the queue that has already passed, so that the time synchronization traffic and TAS business traffic do not interfere with each other.
[0030] Step 35: When configuring a new test configuration parameter set, generate a new status flag in the test status parameter. Determine whether the test is passed based on the error window status flag in the test status parameter. If no error window occurs and the number of flows passing the time slot is N When the flow rate is equal to the flow rate sent by the test instrument, the two key parameters of delay and jitter in the test status parameters are called for output.
[0031] If an error window still occurs, the current configuration will be automatically abandoned, and the reconfiguration process and re-retrieval process will be triggered.
[0032] Figure 4 This is a flowchart of an embodiment of the process of determining a test adaptation dictionary included in the method of this application. This 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, expressed as , where the key is the test state , the value is the test configuration parameter of the device under test During the test, first The current test status parameters are retrieved from the test system, and the retrieved test configuration is automatically sent to the device under test.
[0033] It should be noted that the test status is not directly attributed to the traffic itself or the performance of the test instrument. Some parameters that define the test status are obtained based on the comparison between the traffic and the instrument. For example, the test status is defined based on the comparison of time synchronization accuracy, necessary transmission time, etc., with the time slot obtained by queue allocation and the allowed error.
[0034] Step 41: The measuring device issues a test command, and the test meter 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 meter for time synchronization traffic to meet the precise time synchronization required by gPTP (usually the synchronization error is within 100 nanoseconds). The measuring device needs to record the status of the test meter and the device under test at the same time.
[0035] Step 42: The measuring device first collects the gating configuration of the test instrument and sends it to the device under test, and then sends the detected time synchronization traffic queue to the device under test. Q X , the time synchronization accuracy at the current moment , flow interval , the number of test flows sent within a gating window N , Necessary sending delay , Jitter J The state parameters are recorded, and the flow error window judgment and whether the test is passed are marked according to the state parameters, and the current state is recorded in the elements of the state parameter set. , which is the first i The elements are: (1) in: It indicates the time synchronization accuracy between the device under test and the test instrument at the current moment. Figure 1 As shown; It 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 N When N -1, and it is necessary to sum them, as shown in formula (1) As shown; Indicates the necessary sending delay when transmitting traffic within the gated window time slot. N The necessary transmission delays required for each flow are summed up, as shown in formula (1): As shown; J Indicates the jitter of the test traffic, represented by Given the calculation results, N is the amount of test traffic, It is x The time interval between the arrival of a flow and the previous flow, Yes all The average value of It is the flag for error window judgment and whether it passes. It is a Boolean variable. .
[0036] The error window judgment is carried out by the following formula. If the formula is established, it is judged that the error window occurs. Assigned to False, gradually decreasing N The number of flows passing through the time slot is updated until no window error occurs; otherwise is assigned the value True: (2) , The left side 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 side of formula 2 is the time slot allocated in the gating cycle and the time and range of its allowable error.
[0038] State parameter set The establishment of is supplemented and improved through testing.
[0039] Step 43: Record the elements of the current configuration parameter set , this set contains the information of the gating configuration entry num, CT, and time slot (TS) allocation of GCL, that is, And with the parameters of step 42 Make a one-to-one correspondence and include it in the dictionary middle.
[0040] when When True, the tester decides whether to save the current dictionary element; when When it is False, the current GCL configuration will be automatically discarded when the next test instruction is sent.
[0041] It should be noted that when When it is False, it means that the current GCL configuration does not match the test traffic and the test cannot pass. Such a configuration does not need to occupy the device memory, otherwise the keys and values of Dic will become infinite. When True, the test can pass, and the tester's operation permissions should be retained. It is up to him to decide whether to directly call the configuration when encountering this type of traffic in the next test.
[0042] Figure 5 The present invention is a flowchart of an embodiment of the testing process included in the method of the present application.
[0043] After the test adaptation dictionary is established, subsequent tests will be based on the test status collected by the measurement device. Automatically search for configuration parameters in the adaptation dictionary , and send it to the device under test, and then resend the test command for testing, such as Figure 5 As shown, the specific steps are as follows: Step 51: First, the measuring device issues a test command, and then the time synchronization of the entire test network is required, including the synchronization between the test instrument and the device under test. The synchronization status of the two 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 a 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 statistics, monitoring and management of the entire test network, and has the functions of issuing commands, collecting and calculating status, generating test adaptation dictionaries, and retrieving test configuration parameters.
[0044] Step 52: According to the collected and calculated state (such as formula 1), In the test adaptation dictionary Test configuration in If the current test status is If it can be retrieved in the test, the test configuration is sent to the device under test. , and re-issue the test command to the entire network; if the current test status is If it cannot be retrieved, then according to conduct Manual configuration can be done according to the following principles Supplement: When the test is only for a certain cohort Q X If the time synchronization traffic squeezes the TAS service traffic (i.e. Q X The number of TAS traffic received in the time slot is less than N ), then by modifying the GCL Q X The time slot allocation is adjusted; When the test targets multiple queues and the time synchronization message is sent by a certain queue Q X During transmission, if the time synchronization traffic squeezes the TAS service traffic, the test is carried out to the queue Q X When the time synchronization traffic is modified, it is transmitted to the queue that has already passed, so that the time synchronization traffic and TAS business traffic do not interfere with each other.
[0045] It should be noted that the queues that have passed are those that have not been previously occupied by time synchronization traffic and have passed smoothly, for example Figure 6 In Q 0. Q 1. For multi-queue testing, it is not just Q x Enable, and other queues are also enabled at the same time, for example Figure 6 middle Q 2 Other queues when turned on Q 0. Q 3. Q 7 is also open, but Q x In the open time slot, corresponding to Q X The priority of the time synchronization traffic can be changed, such as Figure 6 In Q 2 Because time synchronization traffic squeezes TAS traffic, the priority of time synchronization traffic is changed to Q 1 is transmitted, thus inserting the time synchronization traffic into the queue Q 1.
[0046] Step 53: According to the current Error window status indicator in To determine whether the test has passed, when the error-free window occurs and the number of flows passing through the time slot is N When the flow rate is equal to the flow rate sent by the test instrument, the output is "passed" and the The two key parameters of delay and jitter are output and the test is completed.
[0047] It should be noted that the current Not necessarily stored in the test adapter dictionary Each flow will have ,Should will be used to retrieve Dic The traffic state parameter is False, which means an error window occurs and it is not included in Dic Therefore, it cannot be detected and the test fails; in this case, the parameters need to be manually reconfigured. According to the description of step 42 of the embodiment of the present application, in response to = True, Store the test adapter dictionary in In other words, stored in the dictionary Can only be equal to True. Dic The elements in will all be True. If False cases are also included, since there are more False cases, Dic will become infinite as the test progresses.
[0048] Figure 6 FIG. 1 is a schematic diagram of a typical embodiment of automatically adjusting the GCL configuration according to the flow state. Figure 6 FIG. 1 is a typical embodiment of automatically adjusting the GCL configuration when a window error is detected during a test. In this embodiment, the test instrument sends test traffic of multiple priorities, wherein Q 2 The transmitted TAS traffic is squeezed by the time synchronization traffic, resulting in a wrong window, which increases the delay and jitter, causing the test to fail. This application will detect the traffic status And according to Matching Automatically modify GCL configuration.
[0049] First, after the measurement device issues the test start command, the test instrument generates and sends the test traffic, which will be screened and buffered in the test instrument according to the traffic priority. The test instrument uploads the specified gating configuration rules to the measurement, and the device under test generates a preliminary GCL configuration based on the configuration rules that the test instrument needs to meet collected by the measurement. When the configuration rules of the device under test match the rules specified by the test instrument, the test continues.
[0050] Then, the test instrument and the device under test are synchronized, and the time synchronization accuracy of the two is will be uploaded to the measuring device; when Comply with gPTP requirements (usually requires When the test flow is less than 100 nanoseconds, the measuring device instructs the test instrument to send the test flow. After the test flow is sent, its status parameters All parameters in will be calculated and uploaded to the measurement device. Q 2. Due to the crowding out of time synchronization traffic, TAS traffic is out of window and cannot be transmitted normally. In The parameter will be assigned the value False and the test will be interrupted; the measuring device passes Retrieve test adapter dictionary Configuration in and sends the retrieved configuration to the device under test.
[0051] According to the initial GCL configuration, when GCL takes effect TS 2, the TAS traffic with priority 2 and the time synchronization traffic are both in Q2, since the time synchronization traffic and TAS traffic have the same priority, they will be transmitted on a first-come-first-served basis. TS 2 Not enough to accommodate N When the TAS traffic is mixed with the time synchronization traffic, the TAS traffic will have a staggered window, so part of the traffic will be introduced into at least The test fails due to the delay.
[0052] For this status , during the test TS 2, the flow is suspended; the measuring device is Retrieved And modify the GCL configuration: modify the time synchronization traffic to the one that has passed the test Q 1 is transmitted, and in the time slot TS 2. Open the queue Q 1 gating window is set to ensure the transmission of time synchronization traffic. This can ensure the accuracy of time synchronization and not interfere with the transmission of TAS traffic, thereby ensuring the accuracy and efficiency of the test and allowing the test to pass smoothly.
[0053] Figure 7 In the embodiment of the time-sensitive network time synchronization traffic and gating configuration measurement device of the present application, the measurement device includes: a test adaptation dictionary 75, an acquisition module 71, and a determination module 72; The test adaptation dictionary is a data set in the data storage unit, including test status parameters and test configuration parameters; The acquisition module is used to detect the test instrument and the device under test, and acquire the test status parameters and the test configuration parameters; The determination module is used to determine the number of test flows under the error-free window condition and to determine the test configuration parameters corresponding to the test state parameters. The functions described in steps 33 to 34 of the embodiment are realized and will not be described in detail here.
[0054] Furthermore, the determination module is also used to determine whether the test passes according to the status description.
[0055] Furthermore, the device further comprises an adjustment module 73, which is used for at least one of the following functions: modifying the GCL Q X time slot allocation; change the number of test flows; modify the transmission queue of time synchronization flows.
[0056] Furthermore, the device also includes a generation module 74, which is used to generate at least one of the following: a test command, a configuration parameter, and a test result.
[0057] like Figure 1As 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 running module 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.
[0058] This application avoids the interference of time synchronization traffic on business traffic while meeting the high-precision time synchronization requirement by dynamically adjusting the gating configuration of time synchronization traffic and business traffic under the TAS mechanism, thereby ensuring the efficiency and accuracy of the test.
[0059] This application establishes an adaptive test adaptation dictionary , can be based on the time synchronization traffic crowding out business traffic through Dynamically select appropriate test configuration parameters. The measurement device will collect the flow status and test configuration parameters in advance to ensure that each test can be carried out according to the current flow status. Selecting the appropriate test configuration scheme can increase the accuracy and efficiency of the test, while reducing the adverse effects of improper human configuration on the test results.
[0060] This application designs a measuring device that does not need to have a time synchronization function, and at the same time collects and monitors the time synchronization status of the test instrument and the device under test, so as to monitor in real time whether the entire test system meets the high-precision time synchronization requirements. The measuring device can be built into the test instrument or exist independently outside the test instrument, and can be flexibly deployed, which not only simplifies the test architecture and reduces the test cost, but also avoids the problem of introducing additional errors and causing a decrease in test accuracy.
[0061] Compared with the prior art, the gating period, jitter and delay parameters are common parameters that need to be statistically analyzed during testing. The innovation of this application is that these data are used for error window judgment and as parameters for generating test adaptation dictionaries, and the way of parameter collection and processing is also different from the prior art.
[0062] This patent focuses on dynamic parameter matching and adaptive adjustment, and achieves configuration optimization through testing the adaptation dictionary, error window judgment formula, and dynamic adjustment of the queue, with higher accuracy of time synchronization. Specifically: Test adaptation dictionary: This application dynamically binds the test status parameters with the configuration parameters that meet the error window conditions to achieve automatic configuration retrieval and distribution.
[0063] Error window judgment conditions: By quantifying synchronization accuracy, traffic interval, delay and jitter, the error window threshold is defined to solve the conflict problem.
[0064] Queue priority adjustment: Migrate time synchronization traffic to the passed queue to avoid competition with TAS service traffic.
[0065] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of further restrictions, the elements defined by the sentence "comprises..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0066] Those skilled in the art will appreciate that, unless expressly stated, the singular forms "one", "said", and "the" used may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the 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 groups thereof. It should be understood that when a module or device is "connected" to another module or device, it may be directly connected to the other modules or devices, or there may also be intermediate modules or devices. In addition, the "connection" used here may include wireless connections. In the description of the present application, unless otherwise stated, "plurality" refers to two or more.
[0067] Those skilled in the art will understand that, unless otherwise defined, all terms (including technical, technical and scientific terms) used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs.
[0068] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A method for measuring time synchronization traffic and gating configuration in a time-sensitive network, characterized in that: The following steps are involved: Generate a test adaptation dictionary, which includes test state parameters and test configuration parameters, wherein the test state parameters include a time synchronization traffic queue, time synchronization accuracy, traffic interval, test traffic number, necessary sending delay and jitter parameters, and the test configuration parameters include a gating cycle; wherein the delay value is determined according to the test state parameters, and compared with the gating cycle to meet the error-free window condition; 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 no match is found, a new test configuration parameter set 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 business traffic are isolated in the physical time slot; the 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.
2. A method for measuring time-sensitive network time synchronization traffic and gating configuration as claimed in claim 1, characterized in that: When the test is only for a certain cohort Q X If the time synchronization traffic squeezes the TAS traffic, modify the GCL Q X The time slot allocation is adjusted.
3. A method for measuring time-sensitive network time synchronization traffic and gating configuration as claimed in claim 1, characterized in that: When the test targets multiple queues and the time synchronization message is sent by a certain queue Q X During transmission, if the time synchronization traffic squeezes the TAS service traffic, the test is carried out to the queue Q X When the time synchronization traffic is modified, it is transmitted to the queue that has already passed, so that the time synchronization traffic and TAS business traffic do not interfere with each other.
4. A method for measuring time-sensitive network time synchronization traffic and gating configuration as claimed in claim 1, characterized in that: When the error-free window occurs and the number of flows passing through the time slot N When the flow rate is equal to the flow rate 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, the current configuration will be automatically abandoned, and the reconfiguration process and re-retrieval process will be triggered.
5. A method for measuring time-sensitive network time synchronization traffic and gating configuration as claimed in claim 1, characterized in that: Before each of the steps, the method further includes: Test network time synchronization to meet the set gPTP synchronization time accuracy.
6. A method for measuring time-sensitive network time synchronization traffic and gating configuration as claimed in claim 1, characterized in that: The error window judgment conditions are: In any gating cycle T X Within, determine the allocated time slot and the time and range of its allowable error; 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. A method for measuring time-sensitive network time synchronization traffic and gating configuration as claimed in claim 1, characterized in that: The test status parameter includes a status flag indicating whether the error-free window is met; when the status flag is False, the current GCL configuration is automatically discarded when the next test instruction is sent.
8. A device for measuring time-sensitive network time synchronization traffic and gating configuration, used to implement the method according to any one of claims 1 to 7, characterized in that: include: Test the adaptation dictionary, acquisition module and 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 acquire the test status parameters and the test configuration parameters; The determination module is used to determine the number of test flows under the error-free window condition, and to determine the test configuration parameters corresponding to the test state parameters.
9. A device for measuring time-sensitive network time synchronization traffic and gating configuration as claimed in claim 8, characterized in that: Also includes an adjustment module for at least one of the following functions: Modify the GCL Q X Time slot allocation; Change the number of test flows; Modify the transmit queue for time synchronization traffic.
10. A device for measuring time-sensitive network time synchronization traffic and gating configuration as claimed in claim 8, characterized in that: Also includes a generation module for generating at least one of the following: Test commands, configuration parameters, and test results.
Citation Information
Patent Citations
Flow shaping test method, system, equipment and medium
CN115277519A
Flow scheduling system and method for in-vehicle software defined time sensitive network
CN117880195A
Business flow scheduling method and device based on deep reinforcement learning, equipment and medium
CN118214665A
Time sensitive network gating configuration method and device
CN119109887A
Priority scheduling method and device, electronic equipment, storage medium and program product
CN119496750A