A time-sensitive network TSN test method, device and electronic device

By analyzing TSN system data and generating active test data for clock synchronization testing, the requirements for clock synchronization performance testing of TSN system are solved, and effective detection of clock synchronization performance is achieved without affecting normal operation.

CN115706709BActive Publication Date: 2024-11-08CHINA MOBILE SHANGHAI ICT CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110880721.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-02
Publication Date
2024-11-08
Estimated Expiration
2041-08-02

AI Technical Summary

Technical Problem

The prior art cannot meet the requirements of time-sensitive network (TSN) clock synchronization performance testing, and lacks a clock synchronization performance testing solution specifically for TSN.

Method used

Provide a time-sensitive network testing method, by obtaining the data of the TSN system to be detected, analyzing the data to determine the configuration information, and generating active test data based on the preset configuration information for clock synchronization testing, avoiding interference with normal traffic scheduling and ensuring testing Accuracy of the results.

Benefits of technology

Without affecting the normal operation of the TSN system, testing of clock synchronization performance is implemented, clock synchronization test results are provided, and performance detection and data support of TSN system are supported.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115706709B_ABST
    Figure CN115706709B_ABST
Patent Text Reader

Abstract

The present invention discloses a time-sensitive network TSN test method, device and electronic device, which belongs to the field of computer technology. The method includes: obtaining first data of a TSN system to be tested; parsing the first data to determine first configuration information corresponding to the first data; based on preset configuration information, performing a clock synchronization test on active test data matching a target scheduling transmission rule, wherein the target scheduling transmission rule corresponds to the first configuration information and the preset configuration information respectively; and obtaining the clock synchronization test result of the TSN system to be tested. The present invention can test the clock synchronization performance of a TSN system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer technology, and in particular relates to a time sensitive network (TSN) testing method, device and electronic equipment. Background Art

[0002] TSN provides determinism for traditional Ethernet, supporting time-sensitive and non-time-sensitive data communications without interrupting time-sensitive control tasks, thereby converging automation systems into a single and interconnected network. Accurate clock synchronization lays the foundation for the transmission of time-sensitive data. Data from both the source node and the destination node need to be synchronized, and data transmission also requires an accurate synchronized clock to provide time information.

[0003] The synchronization test methods in the prior art cannot meet the requirements of deterministic network synchronization testing, and there is currently no clock synchronization performance test solution specifically for TSN. Summary of the invention

[0004] The purpose of the present invention is to provide a time-sensitive network testing method, device and electronic equipment, which can test the clock synchronization performance of TSN.

[0005] In order to solve the above-mentioned technical problems, the present invention is achieved as follows:

[0006] In a first aspect, the present invention provides a time-sensitive network TSN testing method, the method comprising:

[0007] Acquire first data of the TSN system to be detected;

[0008] Parsing the first data to determine first configuration information corresponding to the first data;

[0009] Based on preset configuration information, performing a clock synchronization test on active test data matching a target scheduling transmission rule, wherein the target scheduling transmission rule corresponds to the first configuration information and the preset configuration information respectively;

[0010] Obtain a clock synchronization test result of the TSN system to be tested.

[0011] In a second aspect, the present invention further provides a time-sensitive network TSN test device, comprising:

[0012] A first acquisition module, used to acquire first data of the TSN system to be detected;

[0013] A first determining module, configured to parse the first data to determine first configuration information corresponding to the first data;

[0014] A test module, configured to perform a clock synchronization test on active test data matching a target scheduling transmission rule based on preset configuration information, wherein the target scheduling transmission rule corresponds to the first configuration information and the preset configuration information respectively;

[0015] The second acquisition module is used to obtain the clock synchronization test result of the TSN system to be tested.

[0016] In a third aspect, the present invention further provides an electronic device comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.

[0017] In a fourth aspect, the present invention further provides a computer-readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0018] In an embodiment of the present invention, first data of a TSN system to be tested is obtained; the first data is parsed to determine first configuration information corresponding to the first data; based on the preset configuration information, a clock synchronization test is performed on active test data that matches a target scheduling transmission rule, wherein the target scheduling transmission rule corresponds to the first configuration information and the preset configuration information, respectively; and the clock synchronization test result of the TSN system to be tested is obtained. In an embodiment of the present invention, by generating active test data and performing a clock synchronization test based on the active test data, it is possible to avoid interference of the clock synchronization test with normal traffic scheduling in the TSN system, and to implement the test of the clock synchronization performance of the TSN system to be tested under the premise of ensuring the normal operation of the TSN system to be tested. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 is a flow chart of a TSN testing method provided by an embodiment of the present invention;

[0020] Figure 2 It is a structural schematic diagram of a test network to which a TSN test method provided by an embodiment of the present invention can be applied;

[0021] Figure 3 is a flow chart of another TSN testing method provided by an embodiment of the present invention;

[0022] Figure 4 is a structural diagram of a TSN test device provided by an embodiment of the present invention;

[0023] Figure 5 It is a structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0024] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0025] The terms "first", "second", etc. in the specification and claims of the present invention are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0026] See also Figure 1 , is a flow chart of a TSN testing method adopted by an embodiment of the present invention, such as Figure 1 As shown, the method may include the following steps:

[0027] Step 101: Acquire first data of a TSN system to be detected.

[0028] In a specific implementation, the first data may be understood as a clock synchronization data stream in the TSN system to be detected, that is, the first data may include multiple frames of data.

[0029] Step 102: parse the first data to determine first configuration information corresponding to the first data.

[0030] This step can be understood as: performing traffic analysis on the traffic data in the TSN system to be detected to obtain first configuration information of the first data in the TSN system to be detected. For example, the first configuration information is: the virtual local area network (VLAN) tag of the current system traffic under test is 2, the priority is 2, etc.

[0031] Step 103: Based on preset configuration information, perform a clock synchronization test on active test data matching a target scheduling transmission rule, wherein the target scheduling transmission rule corresponds to the first configuration information and the preset configuration information, respectively.

[0032] The above-mentioned preset configuration information may include configuration information such as detection indicators, detection processes and detection schemes of clock synchronization tests. According to different configuration information, detection of different clock synchronization performances of the TSN system to be detected can be achieved. For example, by adjusting the preset configuration information, at least one of the clock synchronization performances of the TSN system to be detected, such as clock synchronization accuracy, clock synchronization reliability, protocol consistency, Best Master Clock Algorithm (BMCA) source selection, clock synchronization scale and noise tolerance, can be detected.

[0033] In addition, in the process of testing different types of clock synchronization performance, the test principles, test processes, and required test data adopted may be different. At this time, the above-mentioned target scheduling transmission rules correspond to the first configuration information and the preset configuration information respectively, which can be understood as: using the target scheduling transmission rules corresponding to the preset configuration information to generate active test data that conflicts or does not conflict with the first configuration information, for example: when the preset configuration information is used to configure the detection of the clock synchronization accuracy of the TSN system to be detected, the target scheduling transmission rule corresponding to the preset configuration information is: generating active test data that does not conflict with the first configuration information, that is, generating active test data that does not conflict with the normal data flow in the TSN system to be detected. For another example: when the preset configuration information is used to configure the detection of the clock synchronization reliability of the TSN system to be detected, the target scheduling transmission rule corresponding to the preset configuration information is: generating active test data that conflicts with the first configuration information, for example: interference test data or abnormal test data, that is, generating active test data that conflicts with the normal data flow in the TSN system to be detected.

[0034] In specific implementation, the target scheduling transmission rules may also include: network address (IP address) and subnet mask of each node in the TSN system to be tested, data frame size and sending period of active test data, time and frequency synchronization period, accuracy threshold of reliable synchronization, etc. For example, the current test indicator can be configured as clock synchronization accuracy test through remote configuration client, the test duration is 1 hour, the test data sending rate is 20MB / s, etc.

[0035] Of course, in addition to determining the target scheduling transmission rules according to the correspondence between the above-mentioned target scheduling transmission rules and the first configuration information and the preset configuration information, the above-mentioned preset configuration information can also configure what kind of test process and / or test plan to execute on the active test data. In other words, the test indicators, test process, test plan, timestamp adding method and test duration of the clock synchronization test can also be determined according to the preset configuration information, so that the corresponding clock synchronization test function can be executed according to the preset configuration information. The specific content of the preset configuration information is not exhaustively listed here.

[0036] In implementation, the above-mentioned clock synchronization test on the active test data matching the target scheduling transmission rule based on the preset configuration information may include: injecting the active test data generated according to the target scheduling transmission rule into the TSN system to be tested, and obtaining the test data corresponding to the output of the TSN system to be tested, so as to perform traffic analysis on the test data, and compare the parsed clock data with the preset clock information (for example: Global Positioning System (GPS) clock information) to obtain the final clock synchronization test result.

[0037] In a specific implementation, the TSN system to be tested may have at least one master clock and multiple slave clocks, wherein the master clock and each slave clock exchange messages through the corresponding clock link. In this way, after the above active test data is injected into the TSN system to be tested, it can be transmitted from the master clock to the slave clock along the clock link between the master clock and each slave clock. At this time, the active test data transmitted on the clock link can record the local clock information of each clock synchronization node on the clock link. In this way, the clock information recorded in the active test data after passing through the TSN system to be tested is compared with the preset clock information as the reference clock, and the clock synchronization test results such as the clock synchronization accuracy and synchronization reliability of each clock synchronization node in the TSN system to be tested can be obtained.

[0038] Step 104: Obtain the clock synchronization test result of the TSN system to be tested.

[0039] In practical applications, given that the development of TSN systems and their equipment is still in its initial stages, the clock synchronization test results obtained by the TSN test method provided in the embodiment of the present invention can provide performance testing and data support for the research and development of technologies related to the TSN system and the development of equipment.

[0040] In an embodiment of the present invention, first data of a TSN system to be tested is obtained; the first data is parsed to determine first configuration information corresponding to the first data; based on the preset configuration information, a clock synchronization test is performed on active test data that matches a target scheduling transmission rule, wherein the target scheduling transmission rule corresponds to the first configuration information and the preset configuration information, respectively; and the clock synchronization test result of the TSN system to be tested is obtained. In an embodiment of the present invention, by generating active test data and performing a clock synchronization test based on the active test data, it is possible to avoid interference of the clock synchronization test with normal traffic scheduling in the TSN system, and to implement the test of the clock synchronization performance of the TSN system to be tested under the premise of ensuring the normal operation of the TSN system to be tested.

[0041] As an optional implementation manner, the preset configuration information includes clock synchronization accuracy detection configuration information, and the clock synchronization test is performed on the active test data matching the target scheduling transmission rule based on the preset configuration information, including:

[0042] Generate first active test data according to a scheduling transmission rule for active test data that does not conflict with the first configuration information, wherein the scheduling transmission rule for active test data that does not conflict with the first configuration information corresponds to the clock synchronization accuracy detection configuration information;

[0043] Injecting the first active test data into the TSN system to be detected to obtain second active test data output by the TSN system to be detected;

[0044] Acquire the first clock information recorded in the second active test data;

[0045] The obtaining of the clock synchronization test result of the TSN system to be tested includes:

[0046] Comparing the test result of the clock synchronization test with the preset clock information to obtain a first detection result of the TSN system to be detected;

[0047] The first clock information includes the clock information of each clock synchronization node in the TSN system to be tested when the first active test data passes through the clock synchronization node, and the test result of the clock synchronization test includes the first clock information, and the clock synchronization test result includes the first detection result.

[0048] In a specific implementation, the above-mentioned second active test data can be understood as the same data as the first active test data, and the only difference between the two is that the first active test data is the data injected into the TSN system to be detected, and the second active test data is the data after the TSN system to be detected adds a timestamp and other processing to the first active test data. In this way, the second active test data can record the local clock information of each time synchronization node in the TSN system to be detected through which it passes.

[0049] In addition, the above-mentioned preset clock information may include GPS clock information, and for the convenience of explanation, the preset clock is used as an example to illustrate the GPS clock in the following embodiments.

[0050] On this basis, the test system used to test the TSN system to be tested continuously receives GPS clock data to compare the received GPS clock data with the test results of the clock synchronization test to obtain the time synchronization accuracy of each time synchronization node in the TSN system to be tested. At this time, the clock synchronization accuracy test result of the TSN system to be tested can be determined based on the average value or absolute average value of the time synchronization accuracy of all time synchronization nodes in the TSN system to be tested.

[0051] In practical applications, before clock synchronization detection is performed, the test system used to test the TSN system to be detected generates normal clock synchronization data based on the configuration information such as time and frequency synchronization period obtained after parsing the first data of the TSN system to be detected, so as to use the normal clock synchronization data to synchronize the clock of the above test system with the TSN system to be detected. In other words, the master clock in the TSN system to be detected is provided with a higher level of clock information by the GPS clock module in the above test system. Furthermore, the above clock synchronization detection process is started only when the clock synchronization of all nodes in the TSN system to be detected is basically stable and basically synchronized with the master clock and the GPS clock in the test system.

[0052] In a specific implementation, it can be achieved by setting a time threshold or detecting whether the clocks of some nodes are basically stable, etc., to determine whether the clock synchronization of all nodes in the TSN system to be tested is basically stable and basically synchronized with the master clock and the GPS clock in the test system.

[0053] In this embodiment, for the clock synchronization accuracy detection of the TSN system to be detected, the scheduling rules of the active test traffic do not conflict with the original traffic data of the TSN system to be detected. In this way, when the first active test data generated based on the scheduling rules is injected into the TSN system to be detected, it is possible to not interfere with the original traffic data in the TSN system to be detected; in addition, after the first active test data passes through the clock synchronization link in the TSN system to be detected, the second active test data output by the TSN system to be detected is obtained, and the clock information of each time synchronization node in the TSN system to be detected recorded in the second active test data is compared with the GPS clock data respectively, so that the clock signal synchronization accuracy or clock synchronization error of each time synchronization node in the TSN system to be detected can be obtained, and then, according to the clock signal synchronization accuracy or clock synchronization error of each time synchronization node in the TSN system to be detected, the overall clock synchronization accuracy detection result of the TSN system to be detected can be determined.

[0054] Further, comparing the test result of the clock synchronization test with the preset clock information to obtain the first detection result of the TSN system to be detected includes:

[0055] Obtain the sum of the clock information of each clock synchronization node in the TSN system to be detected and the transparent clock information of each clock synchronization node passed through, and compare the obtained sum with the preset clock information to obtain the clock synchronization accuracy of each clock synchronization node in the TSN system to be detected, wherein the first detection result includes the clock synchronization accuracy detection result.

[0056] In a specific implementation, the above transparent clock information has the same meaning as the transparent clock information proposed in the IEEE 1588 protocol. Specifically, when the master clock node and the slave clock node in the TSN system to be detected perform clock synchronization, some other nodes may be included between the master node and the slave node. At this time, the time synchronization data will generate a residence time between these other nodes, and the transparent clock indicates the residence time of these nodes. In other words, these nodes can be regarded as special links, and the link delay is the residence time generated by these nodes. In this way, it is equivalent to that these nodes are transparent, and the information is directly transmitted in the link between the master and slave nodes.

[0057] In this way, the test system adds the local clock information of each time synchronization node and the transparent clock information, and compares the sum with the GPS clock information of the current test system to obtain the clock synchronization accuracy information of each time synchronization node. Furthermore, by averaging and normalizing the clock synchronization accuracy information of all or part of the time synchronization nodes in the TSN system to be tested, the overall clock synchronization accuracy test result of the TSN system to be tested can be obtained.

[0058] Furthermore, by further analyzing the changes in the clock synchronization accuracy obtained above, it can be obtained that the clock synchronization accuracy detection result of the TSN system to be detected can be determined when the clock accuracy of each node in the TSN system to be detected is basically stable.

[0059] Furthermore, when the clock accuracy of each node in the TSN system to be tested is basically stable, the clock synchronization reliability performance of the TSN system to be tested can also be tested in the following ways:

[0060] The preset configuration information also includes clock synchronization reliability detection configuration information. After summing the clock information of each clock synchronization node in the system to be detected and the transparent clock information of each clock synchronization node passed through, and comparing the sum value with the preset clock information to obtain the clock synchronization accuracy of each clock synchronization node in the TSN system to be detected, the method also includes:

[0061] Generate interference test data or generate abnormal test data according to the scheduling transmission rule of active test data that conflicts with the first configuration information, wherein the clock synchronization reliability detection configuration information corresponds to the generation rule of the interference test data or the abnormal test data;

[0062] Sending the interference test data or the abnormal test data to the TSN system to be detected to obtain the clock synchronization accuracy jitter value of each clock synchronization node in the TSN system to be detected;

[0063] A second detection result of the TSN system to be detected is determined according to the clock synchronization accuracy jitter value, wherein the second detection result includes a clock synchronization reliability result.

[0064] In a specific implementation, the above-mentioned interference test data can be understood as: generating interference test data in a targeted manner according to the first configuration information of the clock synchronization traffic data in the TSN system to be detected.

[0065] In addition, the above-mentioned interference test data and abnormal test data can make it impossible for other normal clock synchronization information in the TSN system to be detected to be transmitted from the master clock to the slave clock in a timely or accurate manner, that is, the normal clock synchronization of the TSN system to be detected is interfered with by the interference test data and the abnormal test data. In this way, by detecting the time synchronization test indicators such as the time synchronization accuracy of the TSN system to be detected under the interference condition, and comparing them with the time synchronization test indicators under normal conditions, it is possible to obtain the degree to which the time synchronization performance of the TSN system to be detected is affected by the interference condition, and then obtain the test results such as the clock synchronization reliability of the TSN system to be detected.

[0066] That is to say, the above-mentioned acquisition of the clock synchronization accuracy jitter value of each clock synchronization node in the TSN system to be detected can be understood as: according to the difference, variance, etc. between the clock synchronization accuracy of each clock synchronization node in the TSN system to be detected under the above-mentioned interference situation and the clock synchronization accuracy under the above-mentioned normal situation, the clock synchronization accuracy jitter value of each clock synchronization node in the TSN system to be detected is determined. The larger the jitter value, the worse the anti-interference ability of the clock synchronization node in the TSN system to be detected, so that it can be determined that the overall clock synchronization reliability of the TSN system to be detected is lower.

[0067] It should be noted that the above-mentioned clock synchronization reliability detection configuration information corresponds to the generation rules of the interference test data or the abnormal test data. The specific meaning can be referred to the description in the previous implementation manner: the scheduling transmission rules of the active test data that does not conflict with the first configuration information correspond to the clock synchronization accuracy detection configuration information. The specific meaning will not be elaborated here.

[0068] As an optional implementation manner, before obtaining the first data of the time-sensitive network TSN system to be detected, the method further includes:

[0069] receiving a first input from a user;

[0070] In response to the first input, the preset configuration information is determined or updated, wherein the preset configuration information includes at least one of the following: a clock synchronization test process, a clock synchronization test indicator, and a clock synchronization test scheme.

[0071] In a specific implementation, the first input may be a configuration operation performed by a user locally on the test system, or the first input may be a configuration operation performed by a user on a remote configuration client connected to the test system, which is not specifically limited herein.

[0072] Based on the above-mentioned first input, the preset configuration information input by the user or the update information of the preset configuration information can be obtained, so that the test system can generate corresponding control data according to the preset configuration information or the update information of the preset configuration information, so as to adjust the clock synchronization test indicators, clock synchronization test process, clock synchronization test scheme and other configurations of the test system through the control data.

[0073] In this implementation, the clock synchronization test process, clock synchronization test indicators, and clock synchronization test scheme of the TSN system to be tested can be configured according to the user's input. In this way, for TSN systems with different services and different requirements, the clock synchronization test can be configured in a targeted manner to achieve customization of the clock synchronization test scheme and improve the scalability of the clock synchronization test process.

[0074] For ease of understanding, in the embodiments of the present invention, the Figure 2 Take the TSN test method of the test network shown as an example to illustrate:

[0075] like Figure 2 As shown, the test network to which the TSN test method provided by the present invention can be applied includes: a configuration information parsing module, a test module, a storage module, a traffic generation module, a traffic parsing module, a GPS module and a local configuration module.

[0076] Among them, the input end of the traffic analysis module is used to connect with the output end of the TSN system to be tested (hereinafter referred to as the system under test); the output end of the traffic analysis module is connected to the first end of the storage module; the output end of the GPS module is connected to the second end of the storage module; the first end of the configuration information analysis module is connected to the third end of the storage module; the second end of the configuration information analysis module is connected to the first end of the test module; the third end of the configuration information analysis module is connected to the local configuration module; the second end of the test module is connected to the input end of the traffic generation module, and the output end of the traffic generation module is connected to the input end of the system under test.

[0077] The system under test includes multiple time synchronization nodes: node 1 to node n.

[0078] During operation, the local configuration module may display a local configuration interface to receive a first input (ie, a configuration operation) from the user on the interface, thereby determining the preset configuration information.

[0079] Of course, in actual applications, the configuration information parsing module can also be connected to a remote configuration client, so that the user can configure the preset configuration information of the test network by performing configuration operations on the remote configuration client.

[0080] In addition, if Figure 2The GPS module in the test network shown is used to receive GPS clock data and store it in the storage module.

[0081] Configuration information parsing module: used to parse the preset configuration information input by the user through the remote configuration client or the local configuration interface into control data to control the test module; at the same time, the configuration information parsing module also interacts with the storage module to realize data analysis and calculation;

[0082] Test module: used to formulate test plans, select test plans according to the control data of the configuration information parsing module, and control the traffic generation module to generate active test traffic;

[0083] Traffic generation module: used to generate active test data according to the rules indicated by the test module, and inject it into the system under test. When sending data, it adds a timestamp to the data according to the GPS real-time clock to determine the time when the data is sent;

[0084] Traffic analysis module: used to collect the original traffic of the system under test, analyze the configuration information of the original traffic of the system under test, receive the active test traffic transmitted through the system under test, and store the data in the storage module.

[0085] Storage module: responsible for storing clock information and receiving data and other information.

[0086] See also Figure 3 , the following takes remote configuration as an example, when building Figure 2 Based on the topological structure of the test network shown, another TSN test method provided by the present invention may include the following steps:

[0087] Step 301: Determine whether to receive preset configuration information.

[0088] If the judgment result of this step is "yes", step 302 is executed, otherwise this step is repeated.

[0089] In a specific implementation, the above preset configuration information is similar to Figure 1 The preset configuration information in the illustrated method embodiment has the same meaning, for example: the configuration information provided by the remote configuration client for the test network mainly includes the network IP and subnet mask of each node, the data frame size and sending period of the active test traffic, the time and frequency synchronization period, the accuracy threshold of reliable synchronization, etc. Another example: the test system is configured with test indicators and test schemes through the remote configuration client or the local configuration interface, such as remotely configuring the current test indicator to be a clock synchronization accuracy test, the test duration to be 1 hour, and the test data sending rate to be 20MB / s.

[0090] Step 302: parse the preset configuration information.

[0091] After parsing the preset configuration information, the test system may first generate normal clock synchronization data according to the time and frequency synchronization period etc. obtained by the traffic parsing module, so as to synchronize the clocks of the system under test with the test system.

[0092] Step 303: Store the parsed preset configuration information into a storage module.

[0093] In this step, the test system simultaneously stores the parsed preset configuration information of the test system into the storage module and generates a log file.

[0094] Step 304: Adjust test indicators and processes.

[0095] In this step, after receiving the remote configuration information or the local configuration information, the test system begins to parse the relevant configuration information to generate control data, and uses the control data to modify the indicators of the test module to the clock synchronization accuracy test. The test plan starts by changing the default test time to 1 hour and the default test data sending rate to 20MB / s.

[0096] Step 305: Determine whether to receive the original data of the system under test.

[0097] If the judgment result of this step is "yes", step 306 is executed, otherwise this step is repeated.

[0098] In this step, the test system detects the flow information of the current system under test through the flow analysis module, analyzes the configuration information of the current system under test flow in the system under test, and then stores the flow configuration information in the current system under test into the storage module. For example, the VLAN tag of the current system under test flow is analyzed to be 2, and the priority is 2.

[0099] In this step, the configuration information parsing module also reads the current flow configuration information in the system under test, and plans the scheduling and transmission rules of the active test flow, so that the scheduling rules of the active test flow do not conflict with the original flow of the system under test, and transmits the scheduling rules to the test module. For example, the configuration test data measurement VLAN tag is 3, the priority is 3, etc. Among them, the active test flow is used to inject into the system under test to synchronize the time of the system under test. After a period of time, when the clock synchronization of each node is basically stable, the test module selects the clock synchronization accuracy index according to the control data of the configuration information parsing module and executes the clock synchronization accuracy test process.

[0100] Step 306: Send active test data.

[0101] In this step, the traffic generation module generates test traffic according to the designed active test traffic scheduling rules, and injects the generated active test traffic into the system under test, and then receives the test traffic passing through the system under test through the traffic analysis module and stores it in the storage module.

[0102] The active test data generated by the test system records the local clock information of the current node each time it passes through a node. Moreover, the GPS module of the test system continuously receives GPS clock data and stores it in the storage module.

[0103] Step 307: Determine whether to receive active test data.

[0104] If the judgment result of this step is "yes", step 303 is executed, that is, the received active test data is stored in the storage module, otherwise this step is repeated.

[0105] Step 308: parse the stored data and analyze the clock synchronization performance.

[0106] In this step, the test system compares the local clock information of each node plus the passed transparent clock information with the current test system GPS clock information to obtain the clock synchronization accuracy of each node, and analyze the changes in synchronization accuracy.

[0107] Furthermore, after a period of synchronization, when the clock accuracy of each node is basically stable, the test system can generate interference data and send it to the system under test, occupying a certain proportion of the available bandwidth, and observe the changes in the clock synchronization accuracy of each node, and calculate the clock synchronization accuracy jitter. By observing the jitter of the synchronization accuracy, the synchronization stability can be judged. The jitter is compared with the preset threshold. When the maximum synchronization accuracy jitter is greater than the preset threshold, it is considered that a synchronization abnormality occurs.

[0108] Specifically, the user configures the test network through the first input to implement the configuration information for testing the clock synchronization reliability of the system under test. According to the configuration information, abnormal data can be generated through the traffic generation module, or interference information can be generated in a targeted manner according to the configuration information of the clock synchronization traffic in the current system under test, so that normal clock synchronization information cannot be transmitted from the master clock to the slave clock in a timely and accurate manner. The active test traffic passing through the system under test is obtained through the traffic analysis module and stored in the storage module. The configuration information analysis module obtains the active test data in the storage module for analysis and compares it with the log information in the storage module under normal circumstances, so as to analyze the reliability and other performance of the system under test.

[0109] See also Figure 4 , is a structural diagram of a TSN test device provided by an embodiment of the present invention, such as Figure 4As shown, the TSN test device 400 includes:

[0110] A first acquisition module 401 is used to acquire first data of a TSN system to be detected;

[0111] A first determining module 402, configured to parse the first data to determine first configuration information corresponding to the first data;

[0112] A test module 403 is used to perform a clock synchronization test on active test data matching a target scheduling transmission rule based on preset configuration information, wherein the target scheduling transmission rule corresponds to the first configuration information and the preset configuration information respectively;

[0113] The second acquisition module 404 is used to obtain the clock synchronization test result of the TSN system to be tested.

[0114] Optionally, the preset configuration information includes clock synchronization accuracy detection configuration information, and the test module 403 includes:

[0115] A generating unit, configured to generate first active test data according to a scheduling transmission rule of active test data that does not conflict with the first configuration information, wherein the scheduling transmission rule of active test data that does not conflict with the first configuration information corresponds to the clock synchronization accuracy detection configuration information;

[0116] A first acquisition unit, configured to inject the first active test data into the TSN system to be detected, and obtain second active test data output by the TSN system to be detected;

[0117] A second acquisition unit, used to acquire the first clock information recorded in the second active test data;

[0118] The second acquisition module 404 is specifically used for:

[0119] Comparing the test result of the clock synchronization test with the preset clock information to obtain a first detection result of the TSN system to be detected;

[0120] The first clock information includes the clock information of each clock synchronization node in the TSN system to be tested when the first active test data passes through the clock synchronization node, and the test result of the clock synchronization test includes the first clock information, and the clock synchronization test result includes the first detection result.

[0121] Optionally, the second acquisition module 404 is specifically configured to:

[0122] Obtain the sum of the clock information of each clock synchronization node in the TSN system to be detected and the transparent clock information of each clock synchronization node passed through, and compare the obtained sum with the preset clock information to obtain the clock synchronization accuracy of each clock synchronization node in the TSN system to be detected, wherein the first detection result includes the clock synchronization accuracy detection result.

[0123] Optionally, the preset configuration information further includes clock synchronization reliability detection configuration information, and the TSN test device 400 further includes:

[0124] A generating module, configured to generate interference test data or abnormal test data according to a scheduling transmission rule of active test data that conflicts with the first configuration information, wherein the clock synchronization reliability detection configuration information corresponds to a generation rule of the interference test data or the abnormal test data;

[0125] A third acquisition module is used to send the interference test data or the abnormal test data to the TSN system to be detected, so as to obtain the clock synchronization accuracy jitter value of each clock synchronization node in the TSN system to be detected;

[0126] The third determination module is used to determine a second detection result of the TSN system to be detected according to the clock synchronization accuracy jitter value, wherein the second detection result includes a clock synchronization reliability result.

[0127] Optionally, the TSN test device 400 further includes:

[0128] A receiving module, used for receiving a first input from a user;

[0129] The second determination module is used to determine or update the preset configuration information in response to the first input, wherein the preset configuration information includes at least one of the following: a clock synchronization test process, a clock synchronization test indicator, and a clock synchronization test scheme.

[0130] Optionally, the clock synchronization test result includes at least one of the following: clock synchronization accuracy, clock synchronization reliability, protocol consistency, best master clock algorithm BMCA source selection, clock synchronization scale, and noise tolerance.

[0131] The TSN test device 400 provided by the embodiment of the present invention can achieve Figure 1 or Figure 3 The various processes implemented by the method embodiment shown can achieve the same beneficial effects, and will not be described again here to avoid repetition.

[0132] Optional, such as Figure 5As shown, the embodiment of the present invention further provides an electronic device 500, including a processor 501, a memory 502, a program or instruction stored in the memory 502 and executable on the processor 501, and the program or instruction is executed by the processor 501 to implement the following Figure 1 The various processes of the method embodiment shown can achieve the same technical effect, and will not be described again here to avoid repetition.

[0133] It should be noted that the electronic devices in the embodiments of the present invention include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0134] The embodiment of the present invention further provides a computer-readable storage medium, wherein a program or instruction is stored on the computer-readable storage medium, and when the program or instruction is executed by a processor, the following is implemented: Figure 1 The various processes of the method embodiment shown can achieve the same technical effect, and will not be described again here to avoid repetition.

[0135] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0136] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article 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, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present invention is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0137] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0138] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the enlightenment of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A time sensitive network TSN testing method, characterized in that: include: Acquire first data of the TSN system to be detected; Parsing the first data to determine first configuration information corresponding to the first data, where the first configuration information is configuration information of the first data in the TSN system to be detected obtained by performing traffic parsing on traffic data in the TSN system to be detected; Based on preset configuration information, a clock synchronization test is performed on active test data that matches the target scheduling transmission rule, wherein the preset configuration information includes configuration information of at least one of a detection indicator, a detection process, and a detection scheme of the clock synchronization test, the target scheduling transmission rule corresponds to the first configuration information and the preset configuration information respectively, and the active test data includes test data that conflicts with or does not conflict with the first configuration information and is generated by using the target scheduling transmission rule corresponding to the preset configuration information; Obtain a clock synchronization test result of the TSN system to be tested.

2. The method according to claim 1, characterized in that The preset configuration information includes clock synchronization accuracy detection configuration information, and the clock synchronization test is performed on the active test data matching the target scheduling transmission rule based on the preset configuration information, including: Generate first active test data according to a scheduling transmission rule for active test data that does not conflict with the first configuration information, wherein the scheduling transmission rule for active test data that does not conflict with the first configuration information corresponds to the clock synchronization accuracy detection configuration information; Injecting the first active test data into the TSN system to be detected to obtain second active test data output by the TSN system to be detected; Acquire the first clock information recorded in the second active test data; The obtaining of the clock synchronization test result of the TSN system to be tested includes: Comparing the test result of the clock synchronization test with the preset clock information to obtain a first detection result of the TSN system to be detected; The first clock information includes the clock information of each clock synchronization node in the TSN system to be tested when the first active test data passes through the clock synchronization node, and the test result of the clock synchronization test includes the first clock information, and the clock synchronization test result includes the first detection result.

3. The method according to claim 2, characterized in that The comparing the test result of the clock synchronization test with the preset clock information to obtain the first detection result of the TSN system to be detected includes: Obtain the sum of the clock information of each clock synchronization node in the TSN system to be detected and the transparent clock information of each clock synchronization node passed through, and compare the obtained sum with the preset clock information to obtain the clock synchronization accuracy of each clock synchronization node in the TSN system to be detected, wherein the first detection result includes the clock synchronization accuracy detection result.

4. The method according to claim 3, characterized in that The preset configuration information also includes clock synchronization reliability detection configuration information. After summing the clock information of each clock synchronization node in the TSN system to be detected and the transparent clock information of each clock synchronization node passed through, and comparing the sum value with the preset clock information to obtain the clock synchronization accuracy of each clock synchronization node in the TSN system to be detected, the method also includes: Generate interference test data or generate abnormal test data according to the scheduling transmission rule of active test data that conflicts with the first configuration information, wherein the clock synchronization reliability detection configuration information corresponds to the generation rule of the interference test data or the abnormal test data; Sending the interference test data or the abnormal test data to the TSN system to be detected to obtain the clock synchronization accuracy jitter value of each clock synchronization node in the TSN system to be detected; A second detection result of the TSN system to be detected is determined according to the clock synchronization accuracy jitter value, wherein the second detection result includes a clock synchronization reliability result.

5. The method according to claim 1, characterized in that Before acquiring the first data of the time-sensitive network TSN system to be detected, the method further includes: receiving a first input from a user; In response to the first input, the preset configuration information is determined or updated, wherein the preset configuration information includes at least one of the following: a clock synchronization test process, a clock synchronization test indicator, and a clock synchronization test scheme.

6. The method according to claim 1, characterized in that The clock synchronization test result includes at least one of the following: clock synchronization accuracy, clock synchronization reliability, protocol consistency, best master clock algorithm BMCA source selection, clock synchronization scale and noise tolerance.

7. A time sensitive network TSN test device, characterized in that: include: A first acquisition module, used to acquire first data of the TSN system to be detected; A first determination module is used to parse the first data to determine first configuration information corresponding to the first data, where the first configuration information is configuration information of the first data in the TSN system to be detected obtained by performing traffic parsing on traffic data in the TSN system to be detected; A test module, configured to perform a clock synchronization test on active test data matching a target scheduling transmission rule based on preset configuration information, wherein the preset configuration information includes configuration information of at least one of a detection indicator, a detection process, and a detection scheme of the clock synchronization test, the target scheduling transmission rule corresponds to the first configuration information and the preset configuration information respectively, and the active test data includes test data that conflicts with or does not conflict with the first configuration information and is generated by using the target scheduling transmission rule corresponding to the preset configuration information; The second acquisition module is used to obtain the clock synchronization test result of the TSN system to be tested.

8. The device according to claim 7, characterized in that Also includes: A receiving module, used for receiving a first input from a user; The second determination module is used to determine or update the preset configuration information in response to the first input, wherein the preset configuration information includes at least one of the following: a clock synchronization test process, a clock synchronization test indicator, and a clock synchronization test scheme.

9. An electronic device, characterized in that: The invention comprises a processor, a memory and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the steps in the time-sensitive network (TSN) testing method as claimed in any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the time-sensitive network TSN testing method according to any one of claims 1 to 6 are implemented.