Gating scheduling precision measurement method and equipment
By performing clock synchronization and shaping scheduling test packets between the measurement end and the measured end, the problem of complexity and low efficiency of 802.1Qci gating scheduling accuracy measurement is solved, and a fast, general and efficient measurement process is achieved, reducing the Hardware cost.
Patent Information
- Application Number
- CN202410779469.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2044-06-17
AI Technical Summary
In the prior art, the 802.1Qci gating scheduling accuracy measurement method is complex and inefficient. Users need to design the test process and adjust the instrument settings themselves, which makes the measurement process cumbersome and difficult to adapt to measurements of different gate sizes.
By clocking the measurement end with the measured end, the delay estimation value is determined, and the test packet is shaped based on the gate configuration information, the delay estimation value is corrected, the reference time is adjusted, and the optimal gate length and scheduling accuracy are finally determined. , simplify the testing process and improve measurement efficiency.
It realizes fast and efficient gate scheduling accuracy measurement, and is suitable for gated of all sizes, without relying on high-end test instruments, reducing hardware costs, and has strong scenario adaptability and versatility.
Smart Images

Figure CN118945086A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of gated scheduling measurement technology, and in particular to a gated scheduling accuracy measurement method and device. Background Art
[0002] In the field of time-sensitive networking (TSN), 802.1Qci gating strategy plays a vital role. It improves the reliability of the network by accurately supervising and controlling data flow. However, although 802.1Qci is a key indicator for measuring TSN performance, the measurement method of its gating scheduling accuracy has some limitations. At present, measuring the 802.1Qci gating scheduling accuracy mainly depends on the TSN tester, and users need to plan and build the corresponding test process by themselves. For different gating sizes, users need to design different test flows and check whether the start time and interval of the instrument packet meet the requirements, which not only increases the complexity of the test, but also reduces the efficiency.
[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present application is to provide a method and device for measuring the accuracy of gated scheduling, aiming to solve the technical problems of the traditional 802.1Qci gated scheduling accuracy measurement method in the prior art, which has a complex measurement process and low measurement efficiency.
[0005] To achieve the above-mentioned purpose, the present application provides a gated scheduling accuracy measurement method, which is applied to a gated scheduling accuracy measurement system. The gated scheduling accuracy measurement system at least includes a measured end and a measuring end. The gated scheduling accuracy measurement method includes:
[0006] Performing clock synchronization between the measuring end and the measured end, and determining an estimated value of a time delay between the measuring end and the measured end;
[0007] Based on the first gating configuration information, the test message received by the measuring end is shaped and scheduled to the measured end, so as to obtain a first test result of the measured end on the test message;
[0008] Based on the first test result, correct the delay estimation value to obtain an optimal delay estimation value;
[0009] Based on the optimal delay estimation value, align the reference time of the measuring end and the measured end, and determine the second gating configuration information based on the gating scheduling value of the gating to be measured;
[0010] Based on the second gating configuration information, the test message received by the measuring end is shaped and scheduled to the tested end configured with the gating to be tested, so as to obtain a second test result of the gating to be tested on the test message;
[0011] Based on the second test result, determining an optimal gate length of the measuring end;
[0012] Based on the optimal gating length, the scheduling accuracy of the gating to be tested is determined.
[0013] In one embodiment, the first gating configuration information at least includes a first gating cycle period and a first gating length, and before the step of shaping and scheduling the test message received by the measuring end to the measured end based on the first gating configuration information and obtaining a first test result of the measured end on the test message, the step further includes:
[0014] Setting the first gating cycle period of the measuring end and the measured end to the cycle period of the gate to be measured;
[0015] Setting a first gating length of a first gating in the tested end to a first message passing time, wherein the first message passing time allows a test message to pass;
[0016] Setting a first gating length of a second gating in the tested end to a first remaining time, wherein the sum of the first remaining time and the first message passing time is the first gating cycle period, and the first remaining time does not allow a test message to pass;
[0017] Setting a first gating length of a first gating in the measuring end to a second message passing time, wherein the second message passing time is equal to twice the first message passing time, and the second message passing time allows a test message to pass;
[0018] The first gating length of the second gating in the tested end is set to the second remaining time, the sum of the second remaining time and the second message passing time is the first gating cycle period, and the second remaining time does not allow the test message to pass.
[0019] In one embodiment, the step of correcting the delay estimation value based on the first test result to obtain the optimal delay estimation value includes:
[0020] When the first test result is that the first test message passes and the second test message is discarded within the first gating cycle, fine-tuning the delay estimation value;
[0021] When the delay estimation value after fine-tuning meets the critical requirement, using the delay estimation value after fine-tuning as the optimal delay estimation value;
[0022] When the delay estimate value after fine-tuning does not meet the critical requirement, the reference time of the measuring end and the measured end is adjusted based on the delay estimate value after fine-tuning, and the step of returning to execute, based on the first gating configuration information, shaping and scheduling the test message received by the measuring end to the measured end, and obtaining the first test result of the test message by the measured end.
[0023] In one embodiment, the second gating configuration information at least includes a second gating cycle period and a second gating length, and the step of determining the second gating configuration information based on the gating scheduling value of the gating to be measured includes:
[0024] Setting the second gating cycle period of the measuring end and the measured end to the cycle period of the gating to be measured;
[0025] configuring the first gating in the tested end as the gating to be tested, the gating to be tested allowing the test message to pass;
[0026] Determine a third remaining time according to the second gating cycle period and the gating scheduling value of the gating to be tested, set the second gating length of the second gating in the tested end to the third remaining time, and the third remaining time does not allow the test message to pass;
[0027] The second gating length of the measuring end is determined according to the gating scheduling value of the gate to be measured.
[0028] In one embodiment, the step of determining the second gating length of the measuring end according to the gating scheduling value of the gating to be measured includes:
[0029] When the gating scheduling value of the gate to be tested is greater than or equal to the first message length and less than or equal to the second message length, setting the second gating length of the first gate in the measuring end to a first preset time, and the first preset time does not allow the test message to pass;
[0030] Setting a second gating length of the first gating in the measuring end to a second message passing time, wherein the second message passing time allows the test message to pass;
[0031] According to the second gating cycle period, the first preset time and the second message passing time, the fourth remaining time is determined, and the second gating length of the third gating in the measuring end is set to the fourth remaining time, and the fourth remaining time does not allow the test message to pass.
[0032] In one embodiment, the step of determining the second gating length of the measuring end according to the gating scheduling value of the gating to be measured includes:
[0033] When the gating scheduling value of the gate to be tested is greater than the second message length, setting the second gating length of the first gate in the measuring end to a first message passing time, the first message passing time allowing the test message to pass;
[0034] Setting a second gating length of a second gating in the measuring end to a second preset time, wherein the second preset time does not allow a test message to pass;
[0035] Setting a second gating length of the third gating in the measuring end to a second message passing time, wherein the second message passing time allows the test message to pass;
[0036] The fifth remaining time is determined according to the second gating cycle period, the second preset time, the first message passing time and the second message passing time, and the second gating length of the fourth gating in the measuring end is set to the fifth remaining time. The fifth remaining time does not allow the test message to pass.
[0037] In one embodiment, the step of determining the optimal gating length based on the second test result includes:
[0038] When the second test result is that the first test message passes and the second test message is discarded within the second gating cycle, fine-tuning the first preset time;
[0039] When the first preset time after fine-tuning meets the critical requirement, the first preset time after fine-tuning is used as the optimal gating length;
[0040] The step of determining the scheduling accuracy of the gate to be tested based on the optimal gate length includes:
[0041] Obtaining a first corresponding relationship between an optimal gating length, a second message passing time, and a scheduling accuracy;
[0042] The scheduling accuracy of the gate to be tested is determined based on the optimal gate length, the second message passing time and the first corresponding relationship.
[0043] In one embodiment, the step of determining the optimal gating length based on the second test result includes:
[0044] When the second test result is that the first test message and the second test message pass and the third test message is discarded within the second gating cycle, fine-tuning the second preset time;
[0045] When the second preset time after fine-tuning meets the critical requirement, the second preset time after fine-tuning is used as the optimal gating length;
[0046] The step of determining the scheduling accuracy of the gate to be tested based on the optimal gate length includes:
[0047] Obtaining a second corresponding relationship between an optimal gating length, a first message passing time, and a scheduling accuracy;
[0048] The scheduling accuracy of the gate to be tested is determined based on the optimal gate length, the first message passing time and the second corresponding relationship.
[0049] In one embodiment, the step of determining the estimated value of the delay between the measuring end and the measured end comprises:
[0050] Obtaining a third corresponding relationship among output delay, link transmission delay, message reception delay, introduced error and delay estimation value;
[0051] The estimated value of the delay between the measuring end and the measured end is determined according to the output delay, the link transmission delay, the message reception delay, the introduced error and the third corresponding relationship.
[0052] In addition, to achieve the above purpose, the present application also proposes a gated scheduling accuracy measurement device, the gated scheduling accuracy measurement device comprising:
[0053] A data measurement module, used to synchronize the clocks of the measuring end and the measured end, and determine the estimated value of the delay between the measuring end and the measured end;
[0054] The data measurement module is further configured to shape and dispatch the test message received by the measuring end to the measured end based on the first gating configuration information, and obtain a first test result of the measured end on the test message;
[0055] The data measurement module is further used to correct the delay estimation value based on the first test result to obtain an optimal delay estimation value;
[0056] The data measurement module is further configured to align the reference time of the measuring end and the measured end based on the optimal delay estimation value, and determine the second gating configuration information based on the gating scheduling value of the gating to be measured;
[0057] The data measurement module is further configured to shape and dispatch the test message received by the measuring end to the tested end configured with the gating to be tested based on the second gating configuration information, and obtain a second test result of the gating to be tested on the test message;
[0058] The data measurement module is further used to determine the optimal gate length of the measurement end based on the second test result;
[0059] The accuracy analysis module is used to determine the scheduling accuracy of the gate to be tested based on the optimal gate length.
[0060] In addition, to achieve the above-mentioned purpose, the present application also proposes a gated scheduling accuracy measurement device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the gated scheduling accuracy measurement method as described above.
[0061] In addition, to achieve the above-mentioned purpose, the present invention also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the gated scheduling accuracy measurement method described above are implemented.
[0062] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the gated scheduling accuracy measurement method described above are implemented.
[0063] The present application provides a method for measuring the accuracy of gated scheduling, which performs clock synchronization between a measuring end and a measured end, and determines an estimated delay value between the measuring end and the measured end; based on first gated configuration information, shapes and schedules a test message received by the measuring end to the measured end, and obtains a first test result of the measured end for the test message; based on the first test result, corrects the estimated delay value to obtain an optimal estimated delay value; based on the optimal estimated delay value, aligns the reference time of the measuring end and the measured end, and determines second gated configuration information based on a gated scheduling value of a gate to be measured; based on the second gated configuration information, shapes and schedules the test message received by the measuring end to the measured end configured with the gate to be measured, and obtains a second test result of the gate to be measured for the test message; based on the second test result, determines an optimal gated length of the measuring end; and based on the optimal gated length, determines the scheduling accuracy of the gate to be measured. This application simplifies the test process and can quickly start measurement without complicated settings or adjustments, thereby improving measurement efficiency. It is also applicable to gated measurements of various sizes and can maintain consistent performance regardless of how the gate size changes. It has strong scene adaptability and versatility. In addition, it does not need to rely on high-end test instruments with TSN capabilities, greatly reducing hardware costs and solving the technical problems of complex measurement process and low measurement efficiency of traditional 802.1Qci gated scheduling accuracy measurement methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0065] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0066] Figure 1 This is a flow chart of Embodiment 1 of the method for measuring gated scheduling accuracy of the present application;
[0067] Figure 2 A schematic diagram of the measurement system structure of the gated scheduling accuracy measurement method provided in Example 1 of the present application;
[0068] Figure 3 A schematic diagram of a process for solving a delay estimation value of a gated scheduling accuracy measurement method provided in Embodiment 1 of the present application;
[0069] Figure 4 A brief schematic diagram of solving the delay estimation value of the gated scheduling accuracy measurement method provided in Example 1 of the present application;
[0070] Figure 5 This is a flow chart of Embodiment 2 of the method for measuring gated scheduling accuracy of the present application;
[0071] Figure 6 A schematic diagram of a flow chart of solving a first preset time of the gated scheduling accuracy measurement method provided in the second embodiment of the present application;
[0072] Figure 7 A brief schematic diagram of solving the first preset time of the gate control scheduling accuracy measurement method provided in the second embodiment of the present application;
[0073] Figure 8 A schematic diagram of a flow chart of solving a second preset time of the gated scheduling accuracy measurement method provided in the second embodiment of the present application;
[0074] Fig. 9 A brief schematic diagram of solving the second preset time of the gate control scheduling accuracy measurement method provided in the second embodiment of the present application;
[0075] Fig.10 This is a schematic diagram of the module structure of the gated scheduling accuracy measurement device according to an embodiment of the present application;
[0076] Fig.11 Schematic diagram of the device structure of the hardware operating environment involved in the gated scheduling accuracy measurement method in the embodiment of the present application.
[0077] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0078] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0079] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0080] The main solution of the embodiment of the present application is: synchronize the clocks of the measuring end and the measured end, and determine the delay estimation value between the measuring end and the measured end; based on the first gating configuration information, shape and schedule the test message received by the measuring end to the measured end, and obtain a first test result of the measured end on the test message; based on the first test result, correct the delay estimation value to obtain an optimal delay estimation value; based on the optimal delay estimation value, align the reference time of the measuring end and the measured end, and determine the second gating configuration information based on the gating scheduling value of the gating to be tested; based on the second gating configuration information, shape and schedule the test message received by the measuring end to the measured end configured with the gating to be tested, and obtain a second test result of the gating to be tested on the test message; based on the second test result, determine the optimal gating length of the measuring end; based on the optimal gating length, determine the scheduling accuracy of the gating to be tested.
[0081] At present, for different gate sizes, users need to design different test flows and check whether the start time and interval of instrument packets meet the requirements, which not only increases the complexity of the test, but also reduces efficiency.
[0082] The present application provides a solution to simplify the test process. The measurement can be started quickly without complicated settings, which improves the measurement efficiency. It can also be applied to gated measurements of various sizes. Regardless of how the gate size changes, consistent performance can be maintained. It has strong scene adaptability and versatility. In addition, it does not need to rely on high-end test instruments with TSN capabilities, which greatly reduces hardware costs and solves the technical problems of the traditional 802.1Qci gated scheduling accuracy measurement method with complex measurement process and low measurement efficiency.
[0083] The present application embodiment provides a method for measuring gated scheduling accuracy. Figure 1 , Figure 1 This is a flow chart of the first embodiment of the gated scheduling accuracy measurement method of the present application.
[0084] In this embodiment, the gate control scheduling accuracy measurement method includes steps S10 to S70:
[0085] Step S10, performing clock synchronization between the measuring end and the measured end, and determining an estimated value of a time delay between the measuring end and the measured end;
[0086] It should be noted that this embodiment is applied to a gated scheduling accuracy measurement system. The execution subject of this embodiment is a gated scheduling accuracy measurement system, which at least includes a measured end and a measuring end. Figure 2 , the gated scheduling accuracy measurement system can also be set up with a sending end / receiving end / analyzing end, which is not specifically limited. The sending end / receiving end / analyzing end is usually equipped with a traffic processing module, which can send test messages, receive test messages, perform message detection, and can collect the measurement results of the measuring end, analyze and evaluate the 802.1Qci gated scheduling accuracy. The measuring end and the measured end need clock synchronization. Both the measuring end and the measured end are equipped with a clock synchronization module to achieve clock synchronization. In addition to the clock synchronization module, the measuring end is usually also equipped with a receiving module and a shaping scheduling module. The receiving module is used to receive the test message, and the shaping scheduling module is used to shape the test message. That is to say, the measuring end can shape the received test message and schedule it to the measured end; the measured end is usually also equipped with a flow control module and a sending module. The flow control module is used to turn on 802.1Qci gating for measurement, and the sending module is used to return the passed test message to the receiving end for tracking. In addition, the scheduling accuracy and stability requirements of the measuring end are relatively high.
[0087] In addition, it should be noted that in this embodiment, the gate that needs to be measured is 802.1Qci gate, that is, the gate to be measured is 802.1Qci gate, and the gate to be measured is usually configured at the measured end for measurement. e , the rate at which the traffic generator at the sending end sends test packets needs to be greater than 3 e The length of the test message is generally the minimum frame length of 64B, which can be flexibly adjusted according to actual needs and is not specifically limited.
[0088] It can be understood that there is a delay between the test message being dispatched from the measuring end and being received by the tested end through 802.1Qci gating, and the delay estimation value is the value obtained by estimating the delay.
[0089] In a feasible implementation manner, the step of determining the estimated value of the delay between the measuring end and the measured end may include steps S101 to S102:
[0090] Step S101, obtaining a third corresponding relationship among output delay, link transmission delay, message reception delay, introduced error and delay estimation value;
[0091] It should be noted that the output delay refers to the delay between the shaping scheduling module and the output port, the link transmission delay refers to the delay in the link, and the message reception delay refers to the delay in receiving the message and transmitting it to the flow control module. Among them, the time t fIt is the main component of the message receiving delay. In the store-and-forward mode, the longer the message frame length is, the greater the message receiving delay is. The introduced error refers to the error introduced by synchronization and other introduced errors. The third corresponding relationship between the output delay, link transmission delay, message receiving delay, introduced error and delay estimation is the calculation relationship of the delay estimation value, as shown below:
[0092] Δ delay =Δ out +Δ link +Δ in +Δ error
[0093] In the formula, Δ delay Denotes the estimated delay value, Δ out Represents the output delay, Δ link represents the link transmission delay, Δ in Indicates the message receiving delay, Δ error Indicates the introduction of error.
[0094] Step S102, determining an estimated value of the delay between the measuring end and the measured end according to the output delay, the link transmission delay, the message reception delay, the introduced error and the third corresponding relationship.
[0095] It is understandable that the output delay, link transmission delay, message reception delay, and introduced error are substituted into the third corresponding relationship to calculate the estimated delay between the measuring end and the measured end. Since the estimated delay value is an estimated value, it is not accurate enough and needs to be further corrected later.
[0096] Step S20: Based on the first gating configuration information, the test message received by the measuring end is shaped and scheduled to the measured end, so as to obtain a first test result of the measured end on the test message;
[0097] It should be noted that after setting the first gating configuration information, the test end can shape and schedule the received test messages, and send the test messages that need to be sent within the specified period to the tested end, for example: sending 2 test messages within a cycle, so that the packet sending interval and time between the test messages meet the measurement requirements. After the test end sends the test message to the tested end, the tested end can obtain the corresponding test result, that is, the first test result, which usually includes the pass status of the test message, for example: the first message passes, and the second message is abandoned (fails).
[0098] In a feasible implementation manner, before step S20, it also includes: setting the first gating cycle period of the measuring end and the measured end to the cycle period of the gate to be measured, setting the first gating length of the first gate in the measured end to the first message passing time, setting the first gating length of the second gate in the measured end to the first remaining time, setting the first gating length of the first gate in the measuring end to the second message passing time, and setting the first gating length of the second gate in the measured end to the second remaining time.
[0099] It should be noted that the first gating configuration information at least includes the first gating cycle period and the first gating length. In this embodiment, the first gating cycle period of the measuring end and the measured end are both set to the cycle period of the gating to be measured, that is, the cycle period of all gatings in the measuring end and the measured end is T e . The first message passing time is equal to the time for the first preset number of test messages to pass, the first preset number is 1, the first message passing time is the time for one test message to pass, the first message passing time allows the test message to pass, and the first gating configuration is 802.1Qci gating with a length of the first message passing time. The sum of the first remaining time and the first message passing time is the first gating cycle period, and the corresponding first remaining time can be calculated based on the first message passing time and the first gating cycle period, and the first remaining time does not allow the test message to pass. The second message passing time is equal to the time for the second preset number of test messages to pass, the second preset number is 2, the second message passing time is the time for two test messages to pass, the second message passing time is equal to twice the first message passing time, and the second message passing time allows the test message to pass. The sum of the second remaining time and the second message passing time is the first gating cycle period, and the corresponding second remaining time can be calculated based on the second message passing time and the second gating cycle period, and the second remaining time does not allow the test message to pass.
[0100] In addition, it should be noted that the base time (Basetime) of the measuring end and the measured end differs by the estimated delay value Δ delay .
[0101] It is understandable that after setting the first gating cycle period and the first gating length of the measuring end, in each first gating cycle period, the measuring end sends two test messages to the measured end, and the measured end can only pass one message.
[0102] Step S30, based on the first test result, correcting the delay estimation value to obtain an optimal delay estimation value;
[0103] It should be noted that 802.1Qci controls the ingress direction. When data reaches the 802.1Qci flow control module, if it is in the time when the gating does not allow it to pass, it will be discarded. If it is in the time when it is allowed to pass, it will continue to be forwarded. So in an 802.1Qci gating, if a message that is allowed to pass happens to come in at the starting time when the gating takes effect, only one message is allowed to pass before the gating is about to expire. When the second message allowed to pass comes in, the interval between the two messages can be used to measure the scheduling accuracy of the 802.1Qci gating. Therefore, it is necessary to observe the test results to correct the data.
[0104] In a feasible implementation, step S30 may include steps S301 to S302:
[0105] Step S301, when the first test result is that the first test message in the period is passed and the second test message is discarded, fine-tuning the delay estimation value;
[0106] It should be noted that the first test message passing and the second test message being discarded in a period means that in each first gating cycle period, the first message sent by the test end passes and the second message sent by the test end fails.
[0107] It is understandable that by observing the reception of the test message by the tested end, the reference time can be adjusted so that the first test message passes and the second test message is discarded within the cycle. If the first test message passes and the second test message is discarded within the cycle, the delay estimation value is fine-tuned.
[0108] Step S302, when the delay estimate value after fine-tuning meets the critical requirement, the delay estimate value after fine-tuning is used as the optimal delay estimate value; when the delay estimate value after fine-tuning does not meet the critical requirement, based on the delay estimate value after fine-tuning, the reference time between the measuring end and the measured end is adjusted, and the step of returning to execute, based on the first gating configuration information, shaping and scheduling the test message received by the measuring end to the measured end, and obtaining the first test result of the test message by the measured end.
[0109] It should be noted that the delay estimation value meeting the critical requirement means that the delay estimation value is a critical value, and the delay estimation value not meeting the critical requirement means that the delay estimation value is not a critical value. In this embodiment, by fine-tuning the delay estimation value, the delay estimation value is adjusted to the point where the first test message is just not discarded, and the delay estimation value at this time is considered to be a critical value and meets the critical requirement.
[0110] It is understandable that if the delay estimation value after fine-tuning is the critical value, it is used as the optimal delay estimation value, which is a more appropriate value and is usually more accurate. If the delay estimation value after fine-tuning is not the critical value, further adjustment is required, and the test result is observed again in step S20.
[0111] In this embodiment, reference Figure 3 and Figure 4 , the measuring end and the measured end are configured with the same gate cycle period T e (cycle period of the gate to be measured), the difference between the reference time of the measuring end and the measured end is the delay estimation value Δ delay , the measuring end configures the gate 1 length to be the time required for 2 test messages to pass through in one cycle, allowing the test message to pass, and the gate 2 length to be the remaining time of a cycle, and not allowing the test message to pass; the measured end configures the gate 1 length to be the time required for 1 test message to pass, allowing the test message to pass, and the gate 2 length to be the remaining time of a cycle, and not allowing the test message to pass. After the test message enters the measuring end, it is shaped and scheduled according to the configuration of the gate 1 and gate 2 of the measuring end above, so that the packet interval and time between the test messages meet the measurement requirements. The measuring end only sends 2 messages f1 and f2 in each cyclic scheduling period, observes the message reception situation, adjusts the benchmark time of the measuring end until message f1 passes and f2 is discarded, and then estimates the delay value Δ delay Fine-tune and confirm whether it is the critical value. If so, get the final delay estimate Δ delay .
[0112] Step S40, aligning the reference time of the measuring end and the measured end based on the optimal delay estimation value, and determining the second gating configuration information based on the gating scheduling value of the gating to be measured;
[0113] It is understandable that after finding a suitable delay estimation value, the reference time of the measuring end and the measured end needs to be aligned, that is, the reference time of the measured end is the reference time of the measuring end + the optimal delay estimation value.
[0114] It should be understood that the second gating configuration information at least includes a second gating cycle period and a second gating length. Since the tested end is configured with the gating to be tested, different gating scheduling values of the gating to be tested need to set different gating lengths, that is, the second gating configuration information needs to be determined according to the gating scheduling value of the gating to be tested.
[0115] Step S50: Based on the second gating configuration information, the test message received by the measuring end is shaped and scheduled to the tested end configured with the gating to be tested, so as to obtain a second test result of the gating to be tested on the test message;
[0116] It can be understood that after setting the second gating configuration information, the test end can shape and schedule the received test messages, and send the test messages that need to be sent within the specified period to the tested end, so that the packet sending interval and time between the test messages meet the measurement requirements. After the test end sends the test message to the tested end, the tested end can obtain the corresponding test result, that is, the second test result, which usually includes the pass status of the test message.
[0117] Step S60, determining the optimal gate length of the measuring end based on the second test result;
[0118] It should be noted that the optimal gating length is the key gating length in the final measurement end. Different gating scheduling values of the gating to be measured correspond to different second gating configuration information, and different second gating configuration information corresponds to different optimal gating lengths.
[0119] Step S70: determining the scheduling accuracy of the gate to be tested based on the optimal gate length.
[0120] It can be understood that the scheduling accuracy of the gate to be measured is calculated using the optimal gate length of the measuring end.
[0121] It should be understood that after obtaining the scheduling accuracy of the gate to be tested, if the actual scheduling accuracy of the gate to be tested can be obtained, the calculated scheduling accuracy can be evaluated according to the difference between the actual scheduling accuracy and the calculated scheduling accuracy.
[0122] The present embodiment provides a method for measuring the accuracy of gated scheduling, which performs clock synchronization between a measuring end and a measured end, and determines an estimated delay value between the measuring end and the measured end; based on first gated configuration information, shapes and schedules a test message received by the measuring end to the measured end, and obtains a first test result of the measured end for the test message; based on the first test result, corrects the estimated delay value, and obtains an optimal estimated delay value; based on the optimal estimated delay value, aligns the reference time of the measuring end and the measured end, and determines second gated configuration information based on a gated scheduling value of a gate to be measured; based on the second gated configuration information, shapes and schedules the test message received by the measuring end to the measured end configured with the gate to be measured, and obtains a second test result of the gate to be measured for the test message; based on the second test result, determines an optimal gated length of the measuring end; and based on the optimal gated length, determines the scheduling accuracy of the gate to be measured. The test process is simplified. You can quickly start measuring without complicated settings or adjustments, which improves measurement efficiency. It can be applied to gated measurements of various sizes. Regardless of the size of the gate, it can maintain consistent performance. It has strong scene adaptability and versatility. In addition, it does not need to rely on high-end test instruments with TSN capabilities, which greatly reduces hardware costs.
[0123] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 5 , the step S40 may include steps S401 to S404:
[0124] Step S401, setting the second gating cycle period of the measuring end and the measured end as the gating cycle period to be measured;
[0125] It should be noted that, in this embodiment, the second gate control cycle period of the measuring end and the measured end is set to the cycle period of the gate to be measured, that is, the cycle period of all gates in the measuring end and the measured end is T e .
[0126] Step S402, configuring the first gating in the tested terminal as the gating to be tested, and the gating to be tested allows the test message to pass;
[0127] It should be noted that the gate 1 of the tested end is configured as the gate to be tested (802.1Qci gate), and the gate to be tested allows the test message to pass.
[0128] Step S403, determining a third remaining time according to the second gating cycle period and the gating scheduling value of the gate to be tested, setting the second gating length of the second gate in the tested end to the third remaining time, and the third remaining time does not allow the test message to pass;
[0129] It should be noted that the sum of the gating scheduling value of the gate to be tested and the third remaining time is the second gating cycle period. According to the second gating cycle period and the gating scheduling value of the gate to be tested, the corresponding third remaining time can be calculated. The third remaining time does not allow the test message to pass.
[0130] Step S404: determining a second gating length of the measuring end according to the gating scheduling value of the gating to be measured.
[0131] It should be noted that there are two scenarios in this embodiment: the first scenario is that the gating scheduling value of the gate to be tested is greater than or equal to the first message length and less than or equal to the second message length; the second scenario is that the gating scheduling value of the gate to be tested is greater than the second message length.
[0132] In a feasible implementation, step S304 may include steps A11 to A13:
[0133] Step A11, when the gating scheduling value of the gate to be tested is greater than or equal to the first message length and less than or equal to the second message length, setting the second gating length of the first gate in the measuring end to a first preset time, and the first preset time does not allow the test message to pass;
[0134] It should be noted that the first message length is the length of one test message, and the second message length is the length of two test messages. The gating scheduling value of the gating to be tested is greater than or equal to the first message length and less than or equal to the second message length, which means that the gating scheduling value of the gating to be tested is greater than or equal to the length of one test message and less than the length of two test messages. The first preset time Δ1 needs to be further adjusted later. The first preset time does not allow the test message to pass, that is, the gating 1 of the test end does not allow the test message to pass.
[0135] Step A12, setting the second gating length of the first gating in the measuring end to a second message passing time, wherein the second message passing time allows the test message to pass;
[0136] It should be noted that the second gating length of the first gating in the measuring end is the time Δ required for two consecutive test messages to just pass through. frame2 .
[0137] It can be understood that the magnitude relationship between the first gate and the second gate in the measurement end is: Δ t =Δ1+Δ frame2 / 2, where Δ t is the actual scheduling accuracy of the gate to be tested, Δ frame2 is the second gating length, and Δ1 is the first preset time.
[0138] Step A13, determine the fourth remaining time according to the second gating cycle period, the first preset time and the second message passing time, set the second gating length of the third gating in the measuring end to the fourth remaining time, and the fourth remaining time does not allow the test message to pass.
[0139] It should be noted that the sum of the first preset time, the second message passing time and the fourth remaining time is the second gating cycle period, so the fourth remaining time can be calculated according to the second gating cycle period, the first preset time and the second message passing time: Δ3= e -Δ1-Δ frame2 , where Δ frame2 is the second message passing time, Δ1 is the first preset time, T e is the cycle period of the gate to be measured, and Δ3 is the fourth remaining time.
[0140] Step S60 may include: Steps A14 to A15:
[0141] Step A14, when the second test result is that the first test message passes and the second test message is discarded within the second gating cycle, fine-tuning the first preset time;
[0142] It should be noted that the first test message passing and the second test message discarding in the second gating cycle means that in each second gating cycle, the first message sent by the test end passes and the second message sent by the test end fails.
[0143] It can be understood that by observing the reception of the test message by the tested end, the first preset time Δ1 can be adjusted so that the first test message passes and the second test message is discarded within the second gating cycle period. If the first test message passes and the second test message is discarded within the second gating cycle period, the first preset time Δ1 is continuously increased according to a certain value.
[0144] Step A15: When the first preset time after fine-tuning meets the critical requirement, the first preset time after fine-tuning is used as the optimal gating length.
[0145] It should be noted that the first preset time meeting the critical requirement means that the first preset time is a critical value. In this embodiment, by continuously increasing the first preset time, it is adjusted to the point where the first test message just passes and the second test message is discarded. At this time, the first preset time is considered to be a critical value and meets the critical requirement.
[0146] It is understandable that if the first preset time after fine adjustment is the critical value, it is used as the optimal gating length for calculating the scheduling accuracy. If the first preset time after fine adjustment is not the critical value, further adjustment is required, and the test result is returned to step S50 to observe.
[0147] Step S70 may include: Steps A16 to A17:
[0148] Step A16, obtaining a first corresponding relationship between an optimal gating length, a second message passing time, and a scheduling accuracy;
[0149] It should be noted that the first corresponding relationship between the optimal gating length, the second message passing time and the scheduling accuracy, that is, the calculation relationship of the scheduling accuracy, is as follows:
[0150]
[0151] In the formula, Indicates the scheduling accuracy of the gate to be tested, Δ frame2 represents the second message passing time, and Δ1 represents the optimal gating length (the first preset time).
[0152] Step A17: determining the scheduling accuracy of the gate to be tested based on the optimal gate length, the second message passing time and the first corresponding relationship.
[0153] It can be understood that the optimal gating length and the second message passing time are substituted into the above first corresponding relationship to calculate and obtain the scheduling accuracy of the gating to be measured.
[0154] In this embodiment, reference Figure 6 and Figure 7 , the cycle scheduling period of the measuring end and the measured end is T e , the measurement end schedule is adjusted to gate 1, which does not allow the test message to pass, with a length of Δ1, and gate 2, which allows the test message to pass, with a length of the time Δ required for two consecutive test messages to pass frame2 , the two messages are f1 and f2 respectively. The magnitude relationship between gate 1 and gate 2 is: Δ t =Δ1+Δ frame2 / 2, the gate 3 length is Δ3, and the test message is not allowed to pass. Send a test message for measurement. If the test message is not f1 passed and f2 is discarded in a cycle, adjust the value of Δ1 until the test message f1 passes and f2 is discarded in each cycle. Then increase the value of Δ1 according to the minimum gate scheduling size supported by the measurement end until the message f1 just passes and f2 is discarded, and find the optimal Δ1 value. Perform multiple measurements and obtain the scheduling accuracy of the gate to be tested at the measured end from the measurement end. contrast With Δ t The difference between and is used to evaluate the scheduling accuracy.
[0155] In a feasible implementation, step S304 may include steps B11 to B13:
[0156] Step B11, when the gating scheduling value of the gate to be tested is greater than the second message length, setting the second gating length of the first gate in the measuring end to a first message passing time, the first message passing time allowing the test message to pass;
[0157] It should be noted that the gating scheduling value is greater than the second message length means that the gating scheduling value of the gate to be tested is greater than the length of two test messages. When the gating scheduling value of the gate to be tested is greater than the second message length, the length of the gate 1 in the measuring end is set to the time Δ for a test message to pass through. frame1 .
[0158] Step B12, setting the second gating length of the second gating in the measuring end to a second preset time, the second preset time does not allow the test message to pass, and setting the second gating length of the third gating in the measuring end to a second message passing time, the second message passing time allows the test message to pass;
[0159] It should be noted that the second preset time Δ2 needs to be further adjusted later. The second preset time does not allow the test message to pass, that is, the gate control 2 of the test end does not allow the test message to pass. Δ2 = Δ t -2*Δ frame1 , where Δ t Indicates the actual scheduling accuracy of the gate to be tested, Δ frame1 is the first gating length, Δ2 is the second preset time. The length of gating 3 in the measuring end is the time it takes for two test messages to pass Δ3=2*Δ frame1 .
[0160] Step B13, determine the fifth remaining time according to the second gating cycle period, the second preset time, the first message passing time and the second message passing time, set the second gating length of the fourth gating in the measuring end to the fifth remaining time, and the fifth remaining time does not allow the test message to pass.
[0161] It should be noted that the sum of the second preset time, the first message passing time, the second message passing time and the fifth remaining time is the second gating cycle period, so the fifth remaining time can be calculated according to the second gating cycle period, the first preset time, the second message passing time and the second message passing time: Δ4= e -Δ frame1 -Δ2-Δ3, where Δ frame1 is the first message passing time, Δ2 is the second preset time, T e is the cycle period of the gate to be measured, Δ3 is the second gate length (second message passing time) of the third gate in the measuring end, and Δ4 is the fifth remaining time.
[0162] Step S60 may include steps B14 to B15:
[0163] Step B14: when the second test result is that the first test message and the second test message pass and the third test message is discarded within the second gating cycle, fine-tune the second preset time;
[0164] It should be noted that the first test message and the second test message pass and the third test message is discarded in the second gating cycle period means that in each second gating cycle period, the first test message and the second test message sent by the test end pass and the third message sent by the test end fails.
[0165] It can be understood that by observing the reception of the test message by the tested end, the second preset time Δ2 can be adjusted so that the first test message and the second test message pass through and the third test message is discarded within the second gating cycle period. If the first test message and the second test message pass through and the third test message is discarded within the second gating cycle period, the second preset time Δ2 is continuously increased according to a certain value.
[0166] Step B15: When the fine-tuned second preset time meets the critical requirement, the fine-tuned second preset time is used as the optimal gating length.
[0167] It should be noted that the second preset time meets the critical requirement means that the second preset time is a critical value. In this embodiment, by continuously increasing the second preset time, it is adjusted to the point where the first test message and the second test message just pass through, and the third test message is discarded. At this time, the second preset time is considered to be a critical value and meets the critical requirement.
[0168] It is understandable that if the second preset time after fine adjustment is the critical value, it is used as the optimal gating length for calculating the scheduling accuracy. If the second preset time after fine adjustment is not the critical value, further adjustment is required, and the test result is returned to step S50 to observe.
[0169] Step S70 may include steps B16 to B17:
[0170] Step B16, obtaining a second corresponding relationship between the optimal gating length, the first message passing time and the scheduling accuracy;
[0171] It should be noted that the first corresponding relationship between the optimal gating length, the second message passing time and the scheduling accuracy, that is, the calculation relationship of the scheduling accuracy, is as follows:
[0172]
[0173] In the formula, Indicates the scheduling accuracy of the gate to be tested, Δ frame1 represents the first message passing time, and Δ2 represents the optimal gating length (the second preset time).
[0174] Step B17: determining the scheduling accuracy of the gate to be tested based on the optimal gate length, the first message passing time and the second corresponding relationship.
[0175] It can be understood that the optimal gating length and the first message passing time are substituted into the second corresponding relationship to calculate the scheduling accuracy of the gating to be measured.
[0176] In this embodiment, reference Figure 8 and Fig. 9 , the cycle scheduling period of the measuring end and the measured end is T e , the measurement end schedule is adjusted to gate 1 to allow 1 test message to pass, and the size is the time Δ required to pass 1 test message frame1 , gate 2 does not allow the test message to pass, the size is Δ2 = Δ t -2*Δ frame1 , gate 3 allows 2 test messages to pass, the size is the time required to pass two test messages Δ3 = 2*Δ frame1 , gate 4 size is Δ4= e -Δ frame1 -Δ2-Δ3, test packets are not allowed to pass. Send test packets for measurement. If the test packets are not f1 and f2 passed in a cycle, and f3 is discarded, adjust the value of Δ2 until the test packets f1 and f2 pass and f3 is discarded in each cycle. Then increase the value of Δ2 according to the minimum gate scheduling size supported by the measurement end until packets f1 and f2 pass and f3 is discarded. Find the optimal Δ2 value. Perform multiple measurements and obtain the scheduling accuracy of the gate to be tested from the measurement end. contrast With Δ t The difference between and is used to evaluate the scheduling accuracy.
[0177] This embodiment provides a method for measuring the accuracy of gated scheduling, which sets the second gated cycle period of the measuring end and the measured end to the cycle period of the gated control to be measured; configures the first gated control in the measured end as the gated control to be measured, and the gated control to be measured allows the test message to pass; determines the third remaining time according to the second gated cycle period and the gated scheduling value of the gated control to be measured, sets the second gated length of the second gated control in the measured end to the third remaining time, and the third remaining time does not allow the test message to pass; determines the second gated length of the measuring end according to the gated scheduling value of the gated control to be measured. The test process is simplified, and the measurement can be started quickly without complicated settings or adjustments, which improves the measurement efficiency, and can be applied to gated measurements of various sizes. Regardless of how the gated size changes, it can maintain consistent performance, has strong scene adaptability and versatility, and does not need to rely on high-end test instruments with TSN capabilities, which greatly reduces hardware costs.
[0178] This application also provides a gate control scheduling accuracy measurement device, please refer to Fig.10 , the gate control scheduling accuracy measurement device comprises:
[0179] The data measurement module 10 is used to synchronize the clocks of the measuring end and the measured end, and determine the estimated value of the delay between the measuring end and the measured end;
[0180] The data measurement module 10 is further configured to shape and dispatch the test message received by the measuring end to the measured end based on the first gating configuration information, and obtain a first test result of the measured end on the test message;
[0181] The data measurement module 10 is further configured to correct the delay estimation value based on the first test result to obtain an optimal delay estimation value;
[0182] The data measurement module 10 is further configured to align the reference time of the measuring end and the measured end based on the optimal delay estimation value, and determine the second gating configuration information based on the gating scheduling value of the gating to be measured;
[0183] The data measurement module 10 is further configured to shape and dispatch the test message received by the measuring end to the tested end configured with the gating to be tested based on the second gating configuration information, and obtain a second test result of the gating to be tested on the test message;
[0184] The data measurement module 10 is further used to determine the optimal gate length of the measurement end based on the second test result;
[0185] The accuracy analysis module 20 is used to determine the scheduling accuracy of the gate to be tested based on the optimal gate length.
[0186] In a feasible implementation manner, the data measurement module 10 is further used to set the first gating cycle period of the measuring end and the measured end to the cycle period of the gate to be measured;
[0187] Setting a first gating length of a first gating in the tested end to a first message passing time, wherein the first message passing time allows a test message to pass;
[0188] Setting a first gating length of a second gating in the tested end to a first remaining time, wherein the sum of the first remaining time and the first message passing time is the first gating cycle period, and the first remaining time does not allow a test message to pass;
[0189] Setting a first gating length of a first gating in the measuring end to a second message passing time, wherein the second message passing time is equal to twice the first message passing time, and the second message passing time allows a test message to pass;
[0190] The first gating length of the second gating in the tested end is set to the second remaining time, the sum of the second remaining time and the second message passing time is the first gating cycle period, and the second remaining time does not allow the test message to pass.
[0191] In a feasible implementation manner, the data measurement module 10 is further configured to fine-tune the delay estimation value when the first test result is that the first test message passes and the second test message is discarded within the first gating cycle period;
[0192] When the delay estimation value after fine-tuning meets the critical requirement, using the delay estimation value after fine-tuning as the optimal delay estimation value;
[0193] When the delay estimate value after fine-tuning does not meet the critical requirement, the reference time of the measuring end and the measured end is adjusted based on the delay estimate value after fine-tuning, and the step of returning to execute, based on the first gating configuration information, shaping and scheduling the test message received by the measuring end to the measured end, and obtaining the first test result of the test message by the measured end.
[0194] In a feasible implementation manner, the data measurement module 10 is further used to set the second gating cycle period of the measuring end and the measured end to be the cycle period of the gate to be measured;
[0195] configuring the first gating in the tested end as the gating to be tested, the gating to be tested allowing the test message to pass;
[0196] Determine a third remaining time according to the second gating cycle period and the gating scheduling value of the gating to be tested, set the second gating length of the second gating in the tested end to the third remaining time, and the third remaining time does not allow the test message to pass;
[0197] The second gating length of the measuring end is determined according to the gating scheduling value of the gate to be measured.
[0198] In a feasible implementation manner, the data measurement module 10 is further configured to set the second gating length of the first gating in the measuring end to a first preset time when the gating scheduling value of the gating to be tested is greater than or equal to the first message length and less than or equal to the second message length, and the first preset time does not allow the test message to pass;
[0199] Setting a second gating length of the first gating in the measuring end to a second message passing time, wherein the second message passing time allows the test message to pass;
[0200] According to the second gating cycle period, the first preset time and the second message passing time, the fourth remaining time is determined, and the second gating length of the third gating in the measuring end is set to the fourth remaining time, and the fourth remaining time does not allow the test message to pass.
[0201] In a feasible implementation manner, the data measurement module 10 is further configured to set the second gating length of the first gating in the measuring end to a first message passing time when the gating scheduling value of the gating to be tested is greater than the second message length, and the first message passing time allows the test message to pass;
[0202] Setting a second gating length of a second gating in the measuring end to a second preset time, wherein the second preset time does not allow a test message to pass;
[0203] Setting a second gating length of the third gating in the measuring end to a second message passing time, wherein the second message passing time allows the test message to pass;
[0204] The fifth remaining time is determined according to the second gating cycle period, the second preset time, the first message passing time and the second message passing time, and the second gating length of the fourth gating in the measuring end is set to the fifth remaining time. The fifth remaining time does not allow the test message to pass.
[0205] In a feasible implementation manner, the data measurement module 10 is further configured to fine-tune the first preset time when the second test result is that the first test message passes and the second test message is discarded within the second gating cycle period;
[0206] When the first preset time after fine-tuning meets the critical requirement, the first preset time after fine-tuning is used as the optimal gating length;
[0207] The step of determining the scheduling accuracy of the gate to be tested based on the optimal gate length includes:
[0208] Obtaining a first corresponding relationship between an optimal gating length, a second message passing time, and a scheduling accuracy;
[0209] The scheduling accuracy of the gate to be tested is determined based on the optimal gate length, the second message passing time and the first corresponding relationship.
[0210] In a feasible implementation manner, the data measurement module 10 is further used to obtain a third corresponding relationship between the output delay, the link transmission delay, the message reception delay, the introduced error and the delay estimation value;
[0211] The estimated value of the delay between the measuring end and the measured end is determined according to the output delay, the link transmission delay, the message reception delay, the introduced error and the third corresponding relationship.
[0212] The gated scheduling accuracy measurement device provided by the present application adopts the gated scheduling accuracy measurement method in the above embodiment, which can solve the technical problems of the traditional 802.1Qci gated scheduling accuracy measurement method having a complex measurement process and low measurement efficiency. Compared with the prior art, the beneficial effects of the gated scheduling accuracy measurement device provided by the present application are the same as the beneficial effects of the gated scheduling accuracy measurement method provided by the above embodiment, and the other technical features in the gated scheduling accuracy measurement device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0213] The present application provides a gated scheduling accuracy measurement device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the gated scheduling accuracy measurement method in the above-mentioned embodiment one.
[0214] Reference below Fig.11 , which shows a schematic diagram of the structure of a gate control scheduling accuracy measurement device suitable for implementing the embodiment of the present application. The gate control scheduling accuracy measurement device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, personal digital assistants, tablet computers), portable multimedia players, vehicle-mounted terminals, etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.11 The gated scheduling accuracy measurement device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0215] like Fig.11As shown, the gated scheduling accuracy measurement device may include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. Various programs and data required for the operation of the gated scheduling accuracy measurement device are also stored in RAM1004. The processing device 1001, ROM1002, and RAM1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the gated scheduling accuracy measurement device to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a gated scheduling accuracy measurement device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have instead.
[0216] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0217] The gated scheduling accuracy measurement device provided by the present application adopts the gated scheduling accuracy measurement method in the above embodiment, which can solve the technical problems of the traditional 802.1Qci gated scheduling accuracy measurement method having a complex measurement process and low measurement efficiency. Compared with the prior art, the beneficial effects of the gated scheduling accuracy measurement device provided by the present application are the same as the beneficial effects of the gated scheduling accuracy measurement method provided by the above embodiment, and the other technical features in the gated scheduling accuracy measurement device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0218] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0219] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the gated scheduling accuracy measurement method in the above-mentioned embodiment.
[0220] The computer-readable storage medium may be included in the gate control scheduling accuracy measurement device; or may exist independently without being assembled in the gate control scheduling accuracy measurement device.
[0221] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the gated scheduling accuracy measurement device, the gated scheduling accuracy measurement device: synchronizes the clocks of the measuring end and the measured end, and determines the delay estimation value between the measuring end and the measured end; based on the first gating configuration information, shapes and schedules the test message received by the measuring end to the measured end, and obtains a first test result of the measured end on the test message; based on the first test result, corrects the delay estimation value to obtain an optimal delay estimation value; based on the optimal delay estimation value, aligns the reference time of the measuring end and the measured end, and determines the second gating configuration information based on the gating scheduling value of the gate to be tested; based on the second gating configuration information, shapes and schedules the test message received by the measuring end to the measured end configured with the gate to be tested, and obtains a second test result of the gate to be tested on the test message; based on the second test result, determines the optimal gating length of the measuring end; based on the optimal gating length, determines the scheduling accuracy of the gate to be tested.
[0222] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0223] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0224] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned gated scheduling accuracy measurement method, and can solve the technical problems of the traditional 802.1Qci gated scheduling accuracy measurement method having a complex measurement process and low measurement efficiency. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the gated scheduling accuracy measurement method provided in the above-mentioned embodiment, and will not be repeated here.
[0225] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned gated scheduling accuracy measurement method when executed by a processor.
[0226] The computer program product provided by the present application can solve the technical problems of the traditional 802.1Qci gated scheduling accuracy measurement method, which has a complex measurement process and low measurement efficiency. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as those of the gated scheduling accuracy measurement method provided by the above embodiment, and will not be described in detail here.
[0227] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A method for measuring gate scheduling accuracy, characterized in that: Applied to a gated scheduling accuracy measurement system, the gated scheduling accuracy measurement system at least includes a measured end and a measuring end, and the gated scheduling accuracy measurement method includes: Performing clock synchronization between the measuring end and the measured end, and determining an estimated value of a time delay between the measuring end and the measured end; Based on the first gating configuration information, the test message received by the measuring end is shaped and scheduled to the measured end, so as to obtain a first test result of the measured end on the test message; Based on the first test result, correct the delay estimation value to obtain an optimal delay estimation value; Based on the optimal delay estimation value, align the reference time of the measuring end and the measured end, and determine the second gating configuration information based on the gating scheduling value of the gating to be measured; Based on the second gating configuration information, the test message received by the measuring end is shaped and scheduled to the tested end configured with the gating to be tested, so as to obtain a second test result of the gating to be tested on the test message; Based on the second test result, determining an optimal gate length of the measuring end; Based on the optimal gating length, the scheduling accuracy of the gating to be tested is determined.
2. The method according to claim 1, characterized in that The first gating configuration information at least includes a first gating cycle period and a first gating length. Before the step of shaping and scheduling the test message received by the measuring end to the measured end based on the first gating configuration information and obtaining a first test result of the measured end on the test message, the step also includes: Setting the first gating cycle period of the measuring end and the measured end to the cycle period of the gate to be measured; Setting a first gating length of a first gating in the tested end to a first message passing time, wherein the first message passing time allows a test message to pass; Setting a first gating length of a second gating in the tested end to a first remaining time, wherein the sum of the first remaining time and the first message passing time is the first gating cycle period, and the first remaining time does not allow a test message to pass; Setting a first gating length of a first gating in the measuring end to a second message passing time, wherein the second message passing time is equal to twice the first message passing time, and the second message passing time allows a test message to pass; The first gating length of the second gating in the tested end is set to the second remaining time, the sum of the second remaining time and the second message passing time is the first gating cycle period, and the second remaining time does not allow the test message to pass.
3. The method according to claim 1, characterized in that The step of correcting the delay estimation value based on the first test result to obtain the optimal delay estimation value comprises: When the first test result is that the first test message passes and the second test message is discarded within the first gating cycle, fine-tuning the delay estimation value; When the delay estimation value after fine-tuning meets the critical requirement, using the delay estimation value after fine-tuning as the optimal delay estimation value; When the delay estimate value after fine-tuning does not meet the critical requirement, the reference time of the measuring end and the measured end is adjusted based on the delay estimate value after fine-tuning, and the step of returning to execute, based on the first gating configuration information, shaping and scheduling the test message received by the measuring end to the measured end, and obtaining the first test result of the test message by the measured end.
4. The method according to claim 1, characterized in that The second gating configuration information at least includes a second gating cycle period and a second gating length, and the step of determining the second gating configuration information based on the gating scheduling value of the gating to be measured includes: Setting the second gating cycle period of the measuring end and the measured end to the cycle period of the gating to be measured; configuring the first gating in the tested end as the gating to be tested, the gating to be tested allowing the test message to pass; Determine a third remaining time according to the second gating cycle period and the gating scheduling value of the gating to be tested, set the second gating length of the second gating in the tested end to the third remaining time, and the third remaining time does not allow the test message to pass; The second gating length of the measuring end is determined according to the gating scheduling value of the gate to be measured.
5. The method according to claim 4, characterized in that The step of determining the second gating length of the measuring end according to the gating scheduling value of the gating to be measured comprises: When the gating scheduling value of the gate to be tested is greater than or equal to the first message length and less than or equal to the second message length, setting the second gating length of the first gate in the measuring end to a first preset time, and the first preset time does not allow the test message to pass; Setting a second gating length of the first gating in the measuring end to a second message passing time, wherein the second message passing time allows the test message to pass; According to the second gating cycle period, the first preset time and the second message passing time, the fourth remaining time is determined, and the second gating length of the third gating in the measuring end is set to the fourth remaining time, and the fourth remaining time does not allow the test message to pass.
6. The method according to claim 4, characterized in that The step of determining the second gating length of the measuring end according to the gating scheduling value of the gating to be measured comprises: When the gating scheduling value of the gate to be tested is greater than the second message length, setting the second gating length of the first gate in the measuring end to a first message passing time, the first message passing time allowing the test message to pass; Setting a second gating length of a second gating in the measuring end to a second preset time, wherein the second preset time does not allow a test message to pass; Setting a second gating length of the third gating in the measuring end to a second message passing time, wherein the second message passing time allows the test message to pass; The fifth remaining time is determined according to the second gating cycle period, the second preset time, the first message passing time and the second message passing time, and the second gating length of the fourth gating in the measuring end is set to the fifth remaining time. The fifth remaining time does not allow the test message to pass.
7. The method according to claim 5, characterized in that The step of determining the optimal gating length based on the second test result comprises: When the second test result is that the first test message passes and the second test message is discarded within the second gating cycle, fine-tuning the first preset time; When the first preset time after fine-tuning meets the critical requirement, the first preset time after fine-tuning is used as the optimal gating length; The step of determining the scheduling accuracy of the gate to be tested based on the optimal gate length includes: Obtaining a first corresponding relationship between an optimal gating length, a second message passing time, and a scheduling accuracy; The scheduling accuracy of the gate to be tested is determined based on the optimal gate length, the second message passing time and the first corresponding relationship.
8. The method according to claim 6, characterized in that The step of determining the optimal gating length based on the second test result comprises: When the second test result is that the first test message and the second test message pass and the third test message is discarded within the second gating cycle, fine-tuning the second preset time; When the second preset time after fine-tuning meets the critical requirement, the second preset time after fine-tuning is used as the optimal gating length; The step of determining the scheduling accuracy of the gate to be tested based on the optimal gate length includes: Obtaining a second corresponding relationship between an optimal gating length, a first message passing time, and a scheduling accuracy; The scheduling accuracy of the gate to be tested is determined based on the optimal gate length, the first message passing time and the second corresponding relationship.
9. The method according to any one of claims 1 to 8, characterized in that The step of determining the estimated value of the delay between the measuring end and the measured end comprises: Obtaining a third corresponding relationship among output delay, link transmission delay, message reception delay, introduced error and delay estimation value; The estimated value of the delay between the measuring end and the measured end is determined according to the output delay, the link transmission delay, the message reception delay, the introduced error and the third corresponding relationship.
10. A gate control scheduling accuracy measurement device, characterized in that: The gated scheduling accuracy measurement device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the gated scheduling accuracy measurement method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Flow shaping test method, system, equipment and medium
CN115277519A
Methods, systems, and computer readable media for measuring schedule update time for a time aware shaper implementation
US20210226843A1
Apparatus, method, system and medium for measuring pulse signal width
US20230003781A1
