OTN alarm function test method, system, electronic device and storage medium
By comparing the alarm records generated when the OTN device being tested and the OTN standard reference module processed the OTN test frame, the OTN standard reference model was used as the comparison standard to solve the problem of low testing efficiency of the alarm function of OTN equipment, and efficient and automated alarm function testing was achieved.
Patent Information
- Application Number
- CN202310118644.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-30
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2043-01-30
AI Technical Summary
In the research and development and production of OTN equipment, conducting comprehensive testing of the alarm function of OTN equipment for a large number of alarm scenarios is a complicated and labor-intensive task. The existing technology has low testing efficiency and heavy workload.
By using the DUT and OTN standard reference modules under test to process the same OTN test frames, the alarm records generated by the two are compared to judge the correctness of the DUT alarm function, and the alarm records generated by the OTN standard reference model are used as the comparison standard to improve the degree of automation and testing efficiency.
It significantly improves the automation degree and testing efficiency of OTN alarm function testing, reduces the amount of test results data, simplifies the comparison process, and ensures the accuracy of test results.
Smart Images

Figure CN116112396B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to, but is not limited to, the technical field of optical transport network (OTN), and in particular to an OTN alarm function test method, system, electronic device, and storage medium. Background Art
[0002] OTN (Optical Transport Network) is a transmission network based on wavelength division multiplexing technology and organized at the optical layer. It is the next generation backbone transmission network. OTN is a new generation of "digital transmission system" and "optical transmission system" regulated by a series of ITU-T recommendations such as G.872, G.709, and G.798. It can solve the problems of traditional WDM (Wavelength Division Multiplexing) networks, such as poor wavelength / sub-wavelength service scheduling capabilities, weak networking capabilities, and weak protection capabilities. In recent years, OTN has continued to sink and spread to the edge of the network, which has also significantly increased the application scope and equipment requirements of OTN, and the testing and verification requirements for various OTN equipment have also increased accordingly.
[0003] Functional testing of OTN equipment includes many aspects, among which the correctness of various alarm functions is also an important test and verification aspect. OTN frames include a variety of overhead bytes, and corresponding alarm information may be generated in actual operation to facilitate network maintenance personnel to promptly discover network faults and locate problems. Therefore, various OTN devices are required to identify anomalies and report alarms according to relevant specifications when processing OTN frames.
[0004] In view of the large number of alarm scenarios defined in the specification, comprehensive testing of the alarm functions of the endless OTN equipment is a complex and labor-intensive task. Therefore, in the field of OTN equipment R&D and production, it is very important to propose a reusable and highly automated alarm function testing solution to improve the testing efficiency in R&D and production. Summary of the invention
[0005] The disclosed embodiments provide an OTN alarm function test method, system, electronic device and storage medium. The method uses a design under test (DUT) and an OTN standard reference module to independently process the same OTN test frame, and compares the alarm records generated by the two to determine the correctness of the DUT alarm function. The alarm records generated by the OTN standard reference model are used as a comparison standard for automatic comparison, and there is no need to configure the expected test results for various alarm test cases, which significantly improves the automation level and test efficiency of the OTN alarm function test.
[0006] The present disclosure provides an OTN alarm function testing method, including:
[0007] Obtain an alarm record generated by the design DUT under test according to the received optical transport network OTN test frame, and record it as the first alarm record;
[0008] Obtaining an alarm record generated by the OTN standard reference module according to the received OTN test frame, and recording it as a second alarm record;
[0009] Verifying, according to the first alarm record and the second alarm record, whether the alarm function of the DUT for the OTN test frame is correct;
[0010] Wherein, the alarm record includes: state change information and final state of at least one alarm;
[0011] The alarm status includes: alarm generated and alarm not generated.
[0012] In some exemplary embodiments, the alarm state change information includes: the number of alarm state changes.
[0013] In some exemplary embodiments, the OTN test frame includes one frame or multiple frames.
[0014] In some exemplary embodiments, when the first alarm record and the second alarm record are identical, it is determined that the alarm function of the DUT for the OTN test frame is correct.
[0015] In some exemplary embodiments, the first alarm record and the second alarm record are determined to be the same when they meet the following conditions:
[0016] The alarm type included in the first alarm record is the same as the alarm type included in the second alarm record;
[0017] The state change information of each type of alarm in the first alarm record is the same as the state change information of the same type of alarm in the second alarm record;
[0018] The final state of each type of alarm in the first alarm record is the same as the final state of the same type of alarm in the second alarm record.
[0019] The embodiment of the present disclosure also provides an OTN alarm function test system, including:
[0020] A first alarm recording module, a second alarm recording module, an optical transport network OTN standard reference module and a verification module;
[0021] The first alarm recording module is configured to obtain an alarm record generated by the design under test DUT according to the received OTN test frame, and record it as a first alarm record;
[0022] The second alarm record module is configured to obtain an alarm record generated by the OTN standard reference module according to the received OTN test frame, and record it as a second alarm record;
[0023] The verification module is configured to verify whether the alarm function of the DUT for the OTN test frame is correct according to the first alarm record and the second alarm record;
[0024] Wherein, the alarm record includes: state change information and final state of at least one alarm;
[0025] The alarm status includes: alarm generated and alarm not generated.
[0026] Some exemplary embodiments further include: a test frame generation module, configured to generate the OTN test frame and send the OTN test frame to the DUT and the OTN standard reference module respectively.
[0027] In some exemplary embodiments, the DUT includes: a software function to be tested or a device to be tested.
[0028] The present disclosure also provides an electronic device, including:
[0029] one or more processors;
[0030] a storage device for storing one or more programs,
[0031] When the one or more programs are executed by the one or more processors, the one or more processors implement the OTN alarm function testing method as described in any embodiment of the present disclosure.
[0032] The embodiment of the present disclosure further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the OTN alarm function testing method as described in any embodiment of the present disclosure is implemented.
[0033] The OTN alarm function test solution provided by the implementation of the present disclosure not only ensures the comprehensiveness of the alarm test result record, but also reduces the data volume of the alarm test result by recording the alarm state change information and the final alarm state. The alarm record comparison based on the alarm record in the embodiment of the present disclosure simplifies the comparison process, improves the comparison efficiency, and improves the test efficiency as a whole.
[0034] Other aspects will be apparent upon reading and understanding the drawings and detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the embodiments of the present invention 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, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0036] Figure 1 A flow chart of an OTN alarm function testing method provided by an embodiment of the present invention;
[0037] Figure 2 A structural diagram of an OTN alarm function test system provided by an embodiment of the present invention.
[0038] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0039] 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 only 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.
[0040] It should be noted that in the present invention, descriptions such as "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0041] In addition, the technical solutions between the various embodiments of the present invention can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0042] In the field of OTN test verification technology, for the test verification of OTN alarm functions, some feasible solutions adopt the method of manually configuring the expected alarm information for each test case, constructing the stimulus input DUT (Design Under Test) according to the test case, obtaining the alarm information generated by the DUT, and performing a comparison to determine the correctness of the DUT alarm function. It can be understood that since the OTN frame includes more field overheads, the corresponding alarms that may be generated are also more. When using this method to test the alarm function, it is necessary to configure the expected alarm information one by one, and the overall test efficiency is low and the workload is heavy.
[0043] The present disclosure provides an OTN alarm function testing method, such as Figure 1 As shown, including,
[0044] Step 110, obtaining an alarm record generated by the design under test DUT according to the received OTN test frame, recorded as a first alarm record;
[0045] Step 120, obtaining an alarm record generated by the OTN standard reference module according to the received OTN test frame, and recording it as a second alarm record;
[0046] Step 130: Verify whether the alarm function of the DUT for the OTN test frame is correct according to the first alarm record and the second alarm record;
[0047] Wherein, the alarm record includes: state change information and final state of at least one alarm;
[0048] The status of the alarm includes: alarm generated and alarm not generated.
[0049] In some exemplary embodiments, the OTN test frame includes one frame or multiple frames.
[0050] It should be noted that the DUT and the OTN standard reference module may generate multiple alarms for each received OTN test frame, such as OTU_LOF: OTU frame loss alarm, OTU_LOM: OTU multiframe loss alarm; SM_DEG: OTU frame SM segment DEG alarm; OTU_AIS: OTU AIS alarm; PM_DEG: ODU frame PM segment DEG alarm; ODU_AIS: ODU AIS alarm; ODU_LCK: ODU LCK alarm; OOF: frame synchronization loss alarm; etc. More types of alarms are not exemplified here. It can be seen that different overhead fields at different layers in the OTN frame generate different types of alarms, or different situations of the same overhead field generate different types of alarms. Alarms with the same alarm name in the relevant OTN specifications are the same alarm, such as the above alarms: OTU_LOF, OTU_LOM, ODU_AIS, etc.
[0051] When a certain alarm is generated in processing a certain OTN frame, the state of the alarm is alarm generation; when the alarm is not generated, the state of the alarm is alarm non-generation, also called alarm cancellation.
[0052] Accordingly, the state change of an alarm is determined in the following manner: the state of the alarm in the current OTN test frame is different from that in the previous OTN test frame, and it is determined that the state of the alarm has changed. When the current OTN test frame is the first frame, since there is no previous frame, the state of the alarm in the previous OTN test frame can be set to the initial alarm state: the alarm is not generated. In some exemplary embodiments, when an alarm is generated for the first time, the state of the alarm changes, that is, from the alarm not being generated to the alarm being generated.
[0053] It can be understood that in a test cycle, according to the design of the test case, the test frame generation module is used to generate the OTN stimulus to generate the one or more OTN test frames, which are sent to the DUT and the OTN standard reference module respectively. Among them, the multiple OTN test frames sent to the DUT (and the OTN standard reference module) can be the same OTN frame or different OTN frames, and are not limited to specific aspects.
[0054] For example, the alarms generated by the first OTN test frame processing include: Alarm 1, Alarm 2, both of which change from alarm not generated to alarm generated, that is, the status of Alarm 1 and Alarm 2 changes; the alarms generated by the second OTN test frame processing include: Alarm 1, Alarm 3, Alarm 1 maintains the alarm generated state and does not change its state, Alarm 2 becomes alarm not generated and changes its state, Alarm 3 is generated for the first time and changes its state, that is, the status of Alarm 2 and Alarm 3 changes; the alarms generated by the third OTN test frame processing include: Alarm 3, then Alarm 1 becomes alarm not generated and changes its state, Alarm 2 is still in the alarm not generated state and does not change its state, Alarm 3 is still in the alarm generated state and does not change its state, that is, the status of Alarm 1 changes.
[0055] In some exemplary embodiments, the alarm state change information includes: the number of alarm state changes.
[0056] For example, when the OTN test frame includes one frame, the number of state changes of alarm 1 is 1, and the last state is alarm generation; the number of state changes of alarm 2 is 1, and the last state is alarm generation.
[0057] For example, when the OTN test frame includes two frames, the state change number of alarm 1 is 1, and the final state is alarm generation, the state change number of alarm 2 is 2, and the final state is alarm non-generation, and the state change number of alarm 3 is 1, and the final state is alarm generation.
[0058] For example, when the OTN test frame includes three frames, the state change times of alarm 1 is 2, and the final state is that the alarm is not generated, the state change times of alarm 2 is 2, and the final state is that the alarm is not generated, and the state change times of alarm 3 is 1, and the final state is that the alarm is generated.
[0059] It can be understood that the OTN standard reference model is a software module or device that implements a complete and correct alarm function according to the relevant OTN specifications, and the alarm information obtained by processing one or more received OTN frames according to the OTN standard reference model is used as a comparison standard for judging whether the DUT alarm function is correct. The OTN specifications include: ITU-T G.872, ITU-T G.709 or ITU-T G.798, etc.
[0060] In some exemplary embodiments, when the first alarm record and the second alarm record are identical, it is determined that the alarm function of the DUT for the OTN test frame is correct.
[0061] In some exemplary embodiments, the first alarm record and the second alarm record are determined to be the same when they meet the following conditions:
[0062] The alarm type included in the first alarm record is the same as the alarm type included in the second alarm record;
[0063] The state change information of each type of alarm in the first alarm record is the same as the state change information of the same type of alarm in the second alarm record;
[0064] The final state of each type of alarm in the first alarm record is the same as the final state of the same type of alarm in the second alarm record.
[0065] For example, in test case 1, in test cycle 1, when the OTN test frame includes one frame, the first alarm record generated by the DUT includes:
[0066] The number of state changes of alarm 1 is 1, and the last state is alarm generation; the number of state changes of alarm 2 is 1, and the last state is alarm generation;
[0067] The second alarm record generated by the OTN standard reference model includes:
[0068] The number of state changes of alarm 1 is 1, and the last state is alarm generation. The number of state changes of alarm 2 is 1, and the last state is alarm generation.
[0069] Determine the correctness of the alarm function: the first alarm record and the second alarm record both include two types of alarms: alarm 1 and alarm 2; and the state change information of alarm 1 is the number of state changes 1, and the final state of alarm 1 is alarm generation; and the state change information of alarm 2 is the number of state changes 1, and the final state of alarm 2 is alarm generation; determine that the first alarm record and the second alarm record are the same, and determine that the DUT passes the test for test case 1, that is, the alarm function verified for this OTN test frame is correct.
[0070] For example, in test case 2, in test cycle 2, when the OTN test frame includes two frames, the first alarm record generated by the DUT includes:
[0071] The number of state changes of alarm 1 is 2, and the last state is that the alarm is not generated. The number of state changes of alarm 2 is 2, and the last state is that the alarm is not generated. The number of state changes of alarm 3 is 1, and the last state is that the alarm is generated.
[0072] The second alarm record generated by OTN includes:
[0073] The number of state changes of alarm 1 is 1, and the last state is alarm generated. The number of state changes of alarm 2 is 2, and the last state is alarm not generated. The number of state changes of alarm 3 is 1, and the last state is alarm generated.
[0074] Determine the correctness of the alarm function: Both the first alarm record and the second alarm record include three alarms: Alarm 1, Alarm 2 and Alarm 3; but the state change information of Alarm 1 in the first alarm record is the number of state changes 2, and the final state of Alarm 1 is that the alarm is not generated, while the state change information of Alarm 1 in the second alarm record is the number of state changes 1, and the final state of Alarm 1 is that the alarm is generated, that is, the state change information of each alarm in the first alarm record is different from the state change information of the same alarm in the second alarm record, and the final state of each alarm in the first alarm record is different from the final state of the same alarm in the second alarm record; determine that the first alarm record and the second alarm record are different, and determine that the DUT fails the test for test case 2, that is, the alarm function corresponding to the verification of these two OTN test frames is incorrect.
[0075] According to the above examples, we can know how to judge whether the alarm function of the DUT for the current OTN test frame is correct in more cases. More examples are not recorded here one by one.
[0076] In some exemplary embodiments, after a test cycle ends, steps 110 - 130 are performed to determine whether the alarm function of the DUT for the OTN test frame of the test cycle is correct.
[0077] In some feasible solutions, all alarm information generated by the DUT and OTN standard reference modules for each DUT test frame can be recorded, for example, DUT test frame 1, alarm 1, alarm 2, DUT test frame 2, alarm 1, alarm 3, DUT test frame 3, alarm 3, DUT test frame 4, ..., and then compared. It can be seen that when the number of OTN test frames tested in a test cycle is large and / or multiple alarms are involved, all alarm information will be a large amount of data. At the same time, based on the comparison of alarm information of each frame, frame alignment is required to keep the same frames for comparison one by one to ensure the accuracy of the comparison results. When the number of OTN test frames tested in a test cycle is large and / or multiple alarms are involved, the amount of calculation for frame-by-frame comparison is very large.
[0078] The study found that by recording all types of alarms generated in this test, as well as the state change information and final status of various alarms, the generation, change process and final status of the alarms involved can be fully reflected. For the same OTN test frame, the first alarm record generated by the DUT and the second alarm record generated by the OTN standard reference module are compared to ensure the comprehensiveness of the comparison data, thereby ensuring the accuracy of the test results.
[0079] It can be seen that in the OTN alarm function test solution provided by the embodiment of the present disclosure, the alarm record obtained includes the state change information and the final state of various alarms, and does not record the detailed alarm information of each OTN test frame one by one. Compared with recording the detailed alarm information of all OTN test frames, the alarm record is recorded by using the solution of the embodiment of the present disclosure, which not only ensures that the key information related to the alarm result comparison is not missed, but also significantly reduces the amount of recorded data.
[0080] At the same time, compared with the method of recording detailed alarm information of all OTN test frames and then comparing them, the alarm records obtained by the embodiment of the present disclosure are more concise, and the information comparison based on this is simpler. There is no need to compare the type and status information of each alarm generated by each OTN test frame processed in the DUT with the type and status information of each alarm generated in the OTN standard reference model one by one. It is only necessary to compare the alarm types generated by all OTN test frames processed in the DUT and the OTN standard reference model respectively, the status change information of each alarm type and the final alarm status.
[0081] Furthermore, the embodiment of the present disclosure does not need to consider the alignment waiting time required when the frame processing delay may occur when the alarm information generated by each OTN test frame is compared synchronously. The OTN alarm function test solution provided by the embodiment of the present disclosure significantly reduces the amount of data compared with the standard alarm expected result data. In particular, when a test cycle includes a large number of OTN test frames and involves multiple alarms, the test solution provided by the embodiment of the present disclosure can significantly reduce the complexity of data comparison, increase the data comparison speed, and improve the overall test efficiency.
[0082] By adopting the test scheme provided by the embodiment of the present disclosure, it is not necessary to pre-configure the benchmark data for test result comparison for each test case. The benchmark data for test result comparison is obtained for the same OTN test frame using the OTN standard reference module, which reduces the workload of test data configuration and avoids test conclusion errors caused by incorrect configuration of the comparison benchmark data. According to the test scheme provided by the embodiment of the present disclosure, for each alarm function that the DUT needs to verify, it is only necessary to focus on the design of the stimulus required by the test case to generate the corresponding OTN test frame, without configuring the corresponding comparison benchmark data, which can improve the design flexibility of the test case, reduce the complexity of the test configuration, and improve the overall test efficiency. In particular, for OTN software or equipment with a wide variety of alarms, the test configuration workload can be greatly reduced.
[0083] The present disclosure also provides an OTN alarm function test system. Figure 2 As shown, including,
[0084] A first alarm recording module 210, a second alarm recording module 220, an OTN standard reference module 230 and a verification module 240;
[0085] The first alarm recording module 210 is configured to obtain an alarm record generated by the design under test DUT 300 according to the received OTN test frame, which is recorded as a first alarm record;
[0086] The second alarm record module 220 is configured to obtain an alarm record generated by the OTN standard reference module 230 according to the received OTN test frame, which is recorded as a second alarm record;
[0087] The verification module 240 is configured to verify whether the alarm function of the DUT for the OTN test frame is correct according to the first alarm record and the second alarm record;
[0088] Wherein, the alarm record includes: state change information and final state of at least one alarm;
[0089] The status of the alarm includes: alarm generated and alarm not generated.
[0090] In some exemplary embodiments, the system further includes: a test frame generation module 250, configured to generate the OTN test frame and send the OTN test frame to the DUT 300 and the OTN standard reference module 230 respectively.
[0091] It should be noted that the test frame generation module 250 generates one or more standard OTN frames as the OTN test frames according to the alarm function to be verified by the test case in accordance with the requirements of the OTN related specifications. The specific OTN frame generation scheme is not discussed in detail in this application.
[0092] In some exemplary embodiments, the first alarm record module 210 and the second alarm record module 220 may be combined and respectively connected to the DUT 300 and the OTN standard reference module 230 to obtain the first alarm record and the second alarm record.
[0093] In some exemplary embodiments, the DUT 300 includes: a software function to be tested or a device to be tested, that is, an alarm function test may be performed on an OTN software module, or an alarm function test may be performed on an OTN device, without being limited to a specific form.
[0094] In some exemplary embodiments, the verification module 240 is configured to determine that the alarm function of the DUT for the OTN test frame is correct when the first alarm record and the second alarm record are the same.
[0095] In some exemplary embodiments, the verification module 240 is configured to determine that the first alarm record and the second alarm record are the same when the first alarm record and the second alarm record meet the following conditions:
[0096] The alarm type included in the first alarm record is the same as the alarm type included in the second alarm record;
[0097] The state change information of each type of alarm in the first alarm record is the same as the state change information of the same type of alarm in the second alarm record;
[0098] The final state of each type of alarm in the first alarm record is the same as the final state of the same type of alarm in the second alarm record.
[0099] The present disclosure also provides an electronic device, including:
[0100] one or more processors;
[0101] a storage device for storing one or more programs,
[0102] When the one or more programs are executed by the one or more processors, the one or more processors implement the OTN alarm function testing method as described in any embodiment of the present disclosure.
[0103] The embodiment of the present disclosure further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the OTN alarm function testing method as described in any embodiment of the present disclosure is implemented.
[0104] The OTN alarm function test provided by the implementation of the present disclosure not only ensures the comprehensiveness of the alarm test result record, but also reduces the data volume of the alarm test result by recording the alarm state change information and the final alarm state. The alarm record comparison based on the alarm record in the embodiment of the present disclosure not only ensures that the comparison data required for the alarm function test is not missed, but also simplifies the comparison process and improves the comparison efficiency. At the same time, there is no need to pay attention to the processing delay that may exist when the DUT and the OTN standard reference model process the same OTN test frame in parallel. Only the alarm records obtained by completing the test of all OTN test frames in the test cycle are compared. There is no need to debug and prepare the test environment in order to overcome the test frame processing delay, which significantly improves the test efficiency.
[0105] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0106] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the concept of the present invention, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present invention.
Claims
1. A method for testing an optical transport network (OTN) alarm function, characterized in that: include, Obtain an alarm record generated by the design under test DUT according to the received OTN test frame, and record it as the first alarm record; Obtaining an alarm record generated by the OTN standard reference module according to the received OTN test frame, and recording it as a second alarm record; Verifying, according to the first alarm record and the second alarm record, whether the alarm function of the DUT for the OTN test frame is correct; Wherein, the alarm record includes: state change information and final state of at least one alarm; The status of the alarm includes: the alarm is generated and the alarm is not generated; the status change information of the alarm includes: the number of times the status of the alarm changes.
2. The method according to claim 1, characterized in that The OTN test frame includes one frame or multiple frames.
3. The method according to claim 1, characterized in that In a case where the first alarm record and the second alarm record are identical, it is determined that the alarm function of the DUT for the OTN test frame is correct.
4. The method according to claim 3, characterized in that The first alarm record and the second alarm record are determined to be the same when they meet the following conditions: The alarm type included in the first alarm record is the same as the alarm type included in the second alarm record; The state change information of each type of alarm in the first alarm record is the same as the state change information of the same type of alarm in the second alarm record; The final state of each type of alarm in the first alarm record is the same as the final state of the same type of alarm in the second alarm record.
5. An optical transport network OTN alarm function test system, characterized in that: include, A first alarm recording module, a second alarm recording module, an OTN standard reference module and a verification module; The first alarm recording module is configured to obtain an alarm record generated by the design under test DUT according to the received OTN test frame, and record it as a first alarm record; The second alarm record module is configured to obtain an alarm record generated by the OTN standard reference module according to the received OTN test frame, and record it as a second alarm record; The verification module is configured to verify whether the alarm function of the DUT for the OTN test frame is correct according to the first alarm record and the second alarm record; Wherein, the alarm record includes: state change information and final state of at least one alarm; The status of the alarm includes: the alarm is generated and the alarm is not generated; the status change information of the alarm includes: the number of times the status of the alarm changes.
6. The system according to claim 5, characterized in that It also includes: a test frame generation module, which is configured to generate the OTN test frame and send it to the DUT and the OTN standard reference module respectively.
7. The system according to claim 5 or 6, characterized in that The DUT includes: a software function to be tested or a device to be tested.
8. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the optical transport network OTN alarm function testing method as described in any one of claims 1-4.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the optical transport network OTN alarm function testing method as described in any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Method and system for platform-based device field tests
US20150189525A1