Method and system for testing fine-grained FGU OAM message and electronic equipment

Through the combination of the spectrometer and test module, the problem of high cost and low efficiency of FGU OAM packet testing is solved, and low-cost and efficient FGU OAM packet testing is realized, meeting the testing needs of small and medium-sized operators and equipment manufacturers.

CN120389962APending Publication Date: 2025-07-29杭州初灵信息技术股份有限公司 +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510306407.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-14
Publication Date
2025-07-29

AI Technical Summary

Technical Problem

The prior art is costly and inefficient in the testing scenario of fine-grained FGU OAM packets, manual testing is time-consuming and easy to make mistakes, special testing instruments are costly, and built-in diagnostic functions are incomplete.

Method used

Using a spectrometer and test module, the device to be tested is configured by obtaining message templates and testing scene parameters, analyzing the target message structure, and using dynamic template matching technology to achieve accurate testing, reducing costs and improving efficiency.

Benefits of technology

It realizes low-cost and efficient FGU OAM message testing, improves testing accuracy and efficiency, reduces testing costs by more than 95%, and meets the lightweight testing needs of small and medium-sized operators and equipment manufacturers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120389962A_ABST
    Figure CN120389962A_ABST
Patent Text Reader

Abstract

The invention relates to a fine-grained FGU OAM message testing method and system and electronic device.The method is applied to the fine-grained FGU OAM message testing system, the system comprises a tested device, an optical splitter and a testing module, the method is specifically applied to the testing module, and the method comprises the steps that a message template and testing scene parameters are obtained, and the tested device is configured based on the testing scene parameters; the test module receives a first message sent by the tested device through the optical splitter, and determines a target message from the first message based on the message template, the target message being an FGU OAM message; and analyzing the target message to obtain a target message structure, and determining a judgment result of the target message according to the target message structure and the field structure of the message template.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of packet testing, and in particular to a method, system and electronic device for testing fine-grained FGU OAM packets. Background Art

[0002] The Slicing Packet Network (SPN) is a new generation of converged bearer network architecture based on the slice Ethernet kernel, with technical advantages such as low latency, large bandwidth, ultra-high-precision synchronization, and flexible management and control. The SPN 5Gbps granular hard isolation slicing technology well meets the requirements of the 5G bearer network. The SPN fine-grained slicing technology (Fine Granularity Unit, FGU) inherits the efficient Ethernet kernel of SPN, integrates the fine-grained slicing technology into the overall SPN architecture, and provides a low-cost, refined, and hard-isolated small-granularity bearer pipeline. The FGU technology refines the granularity of the hard isolation slice from 5Gbps to 10Mbps to meet the differentiated service bearer requirements such as small bandwidth, high isolation, and high security in scenarios such as 5G + vertical industry applications and dedicated line services. For the incoming network test or selection test of SPN fine-grained slicing devices, based on the current international and domestic industry standard requirements, it is necessary to test the OAM function of the fine-grained slice channel.

[0003] Existing testing methods include manual testing, testing with dedicated hardware testing instruments, and testing with the built-in diagnostic functions of device manufacturers. The existing testing methods have the following defects: (1) The manual testing method relies on manual bit-by-bit analysis of packets. The high throughput (10Gbps) of the 10GE interface results in a huge amount of captured packet data. Coupled with the fact that FGU data needs to be byte-reversed twice in the high and low bits, manual bit-by-bit analysis is time-consuming and error-prone. (2) Using high-end network testers (such as IXIA, Spirent) to simulate OAM packet interaction and support high-speed interface traffic stress testing. However, such devices are usually for general Ethernet OAM (such as ITU-T Y.1731, IEEE802.1ag), and there is currently no testing instrument adapted to fine-grained 10Mbps OAM (FGU OAM) packets on the market. Moreover, the procurement and maintenance costs of dedicated testing instruments are relatively high. (3) Some SPN devices provide CLI command-line tools or Web interfaces, which can view the interface status through built-in commands, but can only feedback summary results (such as "normal / fault"), and cannot track packet content in real time or locate abnormal nodes.

[0004] Therefore, the existing testing methods have the problems of high cost and low efficiency in the testing scenario of fine-grained FGU OAM packets. Summary of the Invention

[0005] An embodiment of the present application provides a method, a system, and an electronic device for testing fine-grained FGU OAM packets, so as to at least solve the problems of high cost and low efficiency in the test scenario of fine-grained FGU OAM packets in the related art.

[0006] In a first aspect, an embodiment of the present application provides a method for testing fine-grained FGU OAM packets. The method is applied to a test system for fine-grained FGU OAM packets. The system includes a device under test, an optical splitter, and a test module. The method is specifically applied to the test module, and the method includes:

[0007] Obtain a packet template and test scenario parameters, and configure the device under test based on the test scenario parameters;

[0008] The test module receives a first packet sent by the device under test through the optical splitter, and determines a target packet from the first packet based on the packet template. The target packet is an FGU OAM packet;

[0009] Parse the target packet to obtain a target packet structure, and determine a judgment result of the target packet according to the field structure of the target packet structure and the packet template.

[0010] In an embodiment, the test scenario parameters include: physical damage parameters and OAM packet mode. Configuring the device under test based on the test scenario parameters includes:

[0011] Configure the OAM packet mode and physical damage of the device under test based on the test scenario parameters, and enable the corresponding OAM function of the device under test.

[0012] In an embodiment, the system further includes a data network analyzer and an auxiliary device. The first packet includes service packet data sent by the data network analyzer to the device under test and FGU OAM packets generated by the device under test. The method further includes: the auxiliary device receives the first packet sent by the optical splitter.

[0013] In an embodiment, determining the target packet from the first packet based on the packet template includes:

[0014] Grab the FGU OAM packet from the first packet based on the packet template to filter out packets in non-test scenarios.

[0015] In an embodiment, determining the judgment result of the target packet according to the field structure of the target packet structure and the packet template includes:

[0016] In response to the field structure of the target packet structure being consistent with the field structure of the packet template, it is determined that the target packet is normal;

[0017] In response to the inconsistency between the target message structure and the field structure of the message template, it is determined that the target message is an abnormal message, and the device that sends the target message is used as an abnormal node.

[0018] In one embodiment, after determining that the target message is normal, the method further includes:

[0019] Determine the category of the message template to which the target message belongs, and store the target message and the judgment result based on the category.

[0020] In a second aspect, an embodiment of the present application provides a test system for fine-grained FGU OAM messages. The system is used to implement the test method for fine-grained FGU OAM messages described in the first aspect. The system includes a device under test, an optical splitter, and a test module.

[0021] The test module is used to obtain a message template and test scenario parameters, and configure the device under test based on the test scenario parameters.

[0022] The test module is used to receive a first message sent by the device under test through the optical splitter, and determine a target message from the first message based on the message template. The target message is an FGU OAM message.

[0023] The test module is used to parse the target message to obtain a target message structure, and determine a judgment result of the target message according to the target message structure and the field structure of the message template.

[0024] In one embodiment, the system further includes a data network analyzer and an auxiliary device. The first message includes service message data sent by the data network analyzer to the device under test, and FGU OAM messages generated by the device under test. The optical splitter is used to send the first message to the auxiliary device and the test module.

[0025] In one embodiment, the system further includes an optical attenuator, and the optical attenuator is used to simulate physical damage in a real environment.

[0026] In a third aspect, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, it implements a test method for fine-grained FGU OAM messages as described in the first aspect above.

[0027] The test method, system, and electronic device for fine-grained FGU OAM messages provided by the embodiments of the present application have at least the following technical effects.

[0028] Based on the pre-acquired message template, this application solves the problems of diverse, difficult-to-capture and analyze FGU OAM messages of SPN devices through dynamic template matching technology, which is conducive to realizing accurate testing of "one device, one template", effectively improving the testing efficiency and accuracy. Moreover, compared with the normal device deployment and use, the testing system of the testing method adopted in this application only additionally adds an optical splitter and a testing module, greatly reducing the testing cost. It can be accessed in the normal SPN device deployment scenario without additional cooperation, is convenient to use, and does not affect the use of the original service scenario. Description of the Drawings

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

[0030] Figure 1 is a flowchart of a method for testing fine-grained FGU OAM messages shown according to an embodiment of the present application;

[0031] Figure 2 is a structural diagram of a testing system for fine-grained FGU OAM messages shown according to an exemplary embodiment;

[0032] Figure 3 is a structural diagram of a testing system for fine-grained FGU OAM messages shown according to another exemplary embodiment;

[0033] Figure 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed Embodiments

[0034] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be described and explained below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application. Based on the embodiments provided by the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present application.

[0035] Obviously, the accompanying drawings in the following description are only some examples or embodiments of the present application. For those of ordinary skill in the art, without creative efforts, the present application can also be applied to other similar scenarios based on these drawings. In addition, it can also be understood that although the efforts made in such a development process may be complex and lengthy, for those of ordinary skill in the art related to the content disclosed in the present application, some design, manufacturing, or production changes based on the technical content disclosed in the present application are only conventional technical means and should not be understood as the content disclosed in the present application being insufficient.

[0036] When the term "embodiment" is mentioned in the present application, it means that the specific features, structures, or characteristics described in combination with the embodiment can be included in at least one embodiment of the present application. The appearance of this phrase at various positions in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those of ordinary skill in the art explicitly and implicitly understand that the embodiments described in the present application can be combined with other embodiments without conflict.

[0037] Unless otherwise defined, the technical terms or scientific terms involved in the present application should have the ordinary meaning understood by those of ordinary skill in the technical field to which the present application belongs. The terms "a", "an", "one kind", "the" and other similar words involved in the present application do not indicate a limitation in quantity and can represent a singular or plural number. The terms "include", "comprise", "have" and any variations thereof involved in the present application are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may further include unlisted steps or units, or may further include other steps or units inherent to these processes, methods, products, or devices. The terms "connect", "be connected", "couple" and other similar words involved in the present application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "a plurality of" involved in the present application means two or more. "And / or" describes the association relationship of associated objects and indicates that three relationships can exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after. The terms "first", "second", "third", etc. involved in the present application are only used to distinguish similar objects and do not represent a specific order for the objects.

[0038] Existing test methods still have defects in the test scenario of fine-grained FGU OAM messages. Specifically:

[0039] (1) The test efficiency of the manual test method is relatively low. Manual testing relies on manual bit-by-bit analysis of packets. The high throughput of the 10GE interface results in a large amount of captured packet data. Moreover, the FGU data needs to be byte-reversed twice (high byte first and then low byte), and manual bit-by-bit analysis is time-consuming and error-prone. For example, the basic unit frame length of the FGU is 1567 bytes, and the FGU frame rate under the 10GE interface is 1.26725 us. When using the existing manual method to capture FGU packets, a general network tester (such as Spirent) can only capture 4369 FGU packets (including service packets and OAM packets), that is, it can only capture data for 5.536 ms each time. However, under the fine-grained slice of 10 Mbps, the OAM packet period is between 2.048 and 8.192 ms, and some FGU OAM packets will last for several or even more than a dozen cycles, resulting in low efficiency in capturing and verifying FGU OAM packets and unable to meet the customer's requirement for rapid identification of FGU frames of SPN devices.

[0040] (2) The cost of dedicated test instruments is relatively high, with high procurement and maintenance costs. Moreover, the firmware needs to be frequently updated to adapt to the upgrade of SPN devices, making it difficult to meet the needs of small and medium-sized operators or device manufacturers for low-cost and lightweight test solutions. In addition, traditional stress testing only focuses on bandwidth utilization and does not combine with the priority mechanism of FGU OAM (FGU OAM has high-level OAM packets and low-level OAM packets).

[0041] (3) The test coverage of the built-in diagnostic function is not comprehensive. The built-in diagnostic function can only detect obvious faults (such as link interruption) and is unaware of hidden defects (such as misalignment of packet fields). For example, existing network testers on the market lack the ability to deeply analyze the dedicated FGU OAM packet format of SPN devices (such as connectivity indication, remote fault indication, error detection, etc. of BAS code blocks), resulting in incomplete test scenario coverage and unable to verify the OAM service logic strongly bound to the SPN architecture.

[0042] Based on the above situation, the embodiments of the present application provide a test method, system, and electronic device for fine-grained FGU OAM packets.

[0043] In a first aspect, the embodiments of the present application provide a test method for fine-grained FGU OAM packets. The method is applied to a test system for fine-grained FGU OAM packets. The system includes a device under test, an optical splitter, and a test module. The method is specifically applied to the test module.

[0044] Optionally, the test method for the fine-grained FGU OAM message proposed in this application is specifically used to test the FGU OAM message of the 10GE physical interface of the SPN device. The device under test is an SPN device, and the system further includes an auxiliary device. The auxiliary device and the SPN device under test can be of the same model. The device under test and the auxiliary device are interconnected through a 10GE physical interface. The device under test and the auxiliary device are connected through an optical splitter to send message data to the auxiliary device. The device under test is also communicatively connected to the test module through the optical splitter to send message data to the test module. Among them, the optical splitter is a passive optical device.

[0045] Figure 1 is a flowchart of a test method for a fine-grained FGU OAM message shown according to an embodiment of the present application, as Figure 1 shown, the method includes:

[0046] Step S101, obtain a message template and test scenario parameters, and configure the device under test based on the test scenario parameters.

[0047] Optionally, obtain the FGU OAM message template library selected by the user (the template library includes BAS code blocks, CS code blocks, CV code blocks, APS code blocks, 1DM code blocks, 2DMM code blocks, 2DMR code blocks). Obtain test scenario parameters, and the test scenario parameters include: physical damage (such as received optical power), OAM message mode (such as fixed period, on demand, event trigger).

[0048] In one example, the test scenario parameters include: physical damage parameters and OAM message mode. Step S101 includes: configuring the OAM message mode and physical damage of the device under test based on the test scenario parameters, and enabling the corresponding OAM function of the device under test. Optionally, extract the FGU OAM message structure corresponding to the scenario from the FGU OAM template library, set the FGU message filtering condition to configure the message template library to take effect. Configure the FGU services of the device under test and the auxiliary device, and enable the corresponding OAM function to generate FGU OAM messages according to the configured message mode.

[0049] Step S102, the test module receives the first message sent by the device under test through the optical splitter, and determines the target message from the first message based on the message template. The target message is an FGU OAM message. In this way, through the dynamic template matching technology, the problem of diverse and difficult-to-capture FGU OAM messages of the SPN device is solved, which is beneficial to realizing accurate testing of "one device, one template".

[0050] In one example, the system further includes a data network analyzer and an auxiliary device. The first message includes service message data sent by the data network analyzer to the device under test and FGU OAM messages generated by the device under test. The method further includes: the auxiliary device receives the first message sent by the optical splitter.

[0051] Optionally, the device under test and the auxiliary device are interconnected through a 10GE physical interface. The device under test and the auxiliary device are connected through an optical splitter to send message data to the auxiliary device. The device under test is also communicatively connected to the test module through the optical splitter to send message data to the test module. The network analyzer is used to send service messages to the device under test and the auxiliary device to simulate a normal service usage scenario.

[0052] In one example, step S102 includes: capturing the FGU OAM message from the first message based on the message template to filter out messages in non-test scenarios.

[0053] Optionally, the test module receives the first message sent by the device under test through the optical splitter, caches the first message, matches the FGU OAM message in the test scenario through the message template, and filters out the FGU service message and the FGU OAM message in non-test scenarios to reduce redundant data analysis. The message acquisition duration is determined according to the test scenario requirements and the storage space. The data captured by the test module usually needs to cover the full-cycle function of the FGU OAM to avoid missed detections caused by insufficient sampling.

[0054] In this way, based on the pre-acquired message template, through the dynamic template matching technology, the problem of diverse and difficult-to-capture FGU OAM messages of SPN devices is solved, which is beneficial to realizing accurate testing of "one device, one template".

[0055] Step S103, parse the target message to obtain the target message structure, and determine the judgment result of the target message according to the field structure of the target message structure and the message template.

[0056] Optionally, call Wireshark to parse the message fields, compare with the template library, and determine whether the field structure of the target message structure is consistent with the message template in the template library to determine the judgment result of the target message. In this way, only the optical splitter and the FGU OAM test module are used to replace the dedicated instrument, effectively reducing the test cost (the cost is reduced by more than 95%).

[0057] In one example, step S103 includes: in response to the field structure of the target message structure being consistent with the message template, determining that the target message is normal. In response to the field structure of the target message structure being inconsistent with the message template, determining that the target message is an abnormal message, and taking the device that sends the target message as an abnormal node.

[0058] In one example, after determining that the target message is normal, the method further includes: determining the category of the message template to which the target message belongs, and storing the target message and the judgment result based on the category. Optionally, the target message and the judgment result are classified and saved according to the message template category (such as BAS, CV).

[0059] In summary, compared with the normal deployment and use of SPN devices, the test system of the test method adopted in this application only additionally adds a splitter and a 10GE network card of the test module, greatly reducing the test cost. The splitter adopted is a passive optical device, and the 10GE network card uses general computer components, which can be accessed in the normal SPN device deployment scenario without additional cooperation, is easy to use, and does not affect the use of the original service scenario. Based on the pre-acquired message template, this application solves the problem that the FGU OAM messages of SPN devices are diverse and difficult to capture through dynamic template matching technology, which is conducive to realizing accurate testing of "one device, one template", effectively improving the test efficiency and accuracy. And it can filter out FGU service messages and FGU OAM messages in non-test scenarios through template matching, reducing redundant data analysis and improving the test efficiency.

[0060] In a second aspect, an embodiment of the present application provides a test system for fine-grained FGU OAM messages, characterized in that the system is used to implement the test method for fine-grained FGU OAM messages in the first aspect. Figure 2 is a structural diagram of a test system for fine-grained FGU OAM messages shown according to an exemplary embodiment, as Figure 2 shown, the system includes a device under test 100, a splitter 200, and a test module 300.

[0061] The test module 300 is used to obtain a message template and test scenario parameters, and configure the device under test 100 based on the test scenario parameters.

[0062] The test module 300 is used to receive a first message sent by the device under test 100 through the splitter 200, and determine a target message from the first message based on the message template, where the target message is an FGU OAM message.

[0063] The test module 300 is used to parse the target message to obtain the target message structure, and determine the judgment result of the target message according to the field structure of the target message structure and the message template.

[0064] Optionally, the device under test 100 is an SPN device, and the system further includes an auxiliary device. The auxiliary device and the device under test SPN device can be of the same model. The device under test 100 and the auxiliary device are interconnected through a 10GE physical interface. The device under test 100 and the auxiliary device are connected through a splitter 200 to send message data to the auxiliary device, and the device under test is also communicatively connected to the test module through the splitter to send message data to the test module.

[0065] In one example, the system further includes a data network analyzer 400 and an auxiliary device 500. The first message includes service message data sent from the data network analyzer 400 to the device under test 100, and FGU OAM messages generated by the device under test 100. The optical splitter 200 is configured to send the first message to the auxiliary device 500 and the test module 300.

[0066] Optionally, Figure 3 FIG. is a structural diagram of a test system for fine-grained FGU OAM messages shown according to another exemplary embodiment, as Figure 3 shown, the device under test 100 and the auxiliary device 500 are interconnected through a 10GE physical interface. The device under test 100 and the auxiliary device 500 are connected through an optical splitter to send message data to the auxiliary device 500. The device under test 100 is also communicatively connected to the test module 300 through the optical splitter 200 to send message data to the test module 300. The network analyzer 400 is configured to send service messages to the device under test 100 and the auxiliary device 500 to simulate a normal service usage scenario.

[0067] In one example, the system further includes an optical attenuator 600, and the optical attenuator 600 is configured to simulate physical impairments in a real environment. Optionally, as Figure 3 shown, the optical attenuator 600 is configured to simulate physical layer impairments such as optical power attenuation in a real environment.

[0068] In one example, the test scenario parameters include: physical impairment parameters and OAM message modes. Configuring the device under test 100 based on the test scenario parameters includes: configuring the OAM message mode and physical impairments of the device under test based on the test scenario parameters, and enabling the corresponding OAM function of the device under test 100.

[0069] In one example, determining a target message from the first message based on a message template includes: capturing the FGU OAM message from the first message based on the message template to filter out messages in non-test scenarios.

[0070] In one example, determining a judgment result of the target message according to the target message structure and the field structure of the message template includes: in response to the target message structure being consistent with the field structure of the message template, determining that the target message is normal; in response to the target message structure being inconsistent with the field structure of the message template, determining that the target message is an abnormal message, and taking the device that sent the target message as an abnormal node.

[0071] In one example, after determining that the target message is normal, the system further includes: determining the category of the message template to which the target message belongs, and storing the target message and the judgment result based on the category.

[0072] In summary, compared with the normal deployment and use of SPN devices, the test system adopted in this application only additionally adds an optical splitter and a 10GE network card for the test module, greatly reducing the test cost. The adopted optical splitter is a passive optical device, and the 10GE network card uses general computer components, which can be accessed in the normal SPN device deployment scenario without additional cooperation, is easy to use, and does not affect the use of the original service scenario. Based on the pre-acquired message template, this application solves the problem of diverse and difficult-to-capture FGU OAM messages of SPN devices through dynamic template matching technology, which is conducive to achieving accurate testing of "one device, one template", effectively improving the test efficiency and accuracy. And it can filter out FGU service messages and FGU OAM messages in non-test scenarios through template matching, reducing redundant data analysis and improving the test efficiency.

[0073] In a third aspect, an embodiment of the present application provides an electronic device, Figure 4 which is a schematic structural diagram of an electronic device provided by an embodiment of the present application. The electronic device includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, it implements a test method for a fine-grained FGU OAM message provided in the first aspect. Figure 4 The displayed electronic device 60 is only an example and should not bring any restrictions to the functions and usage scope of the embodiments of the present application.

[0074] The electronic device 60 may be presented in the form of a general computing device, for example, it may be a server device. The components of the electronic device 60 may include, but are not limited to: at least one of the above-mentioned processors 61, at least one of the above-mentioned memories 62, and a bus 63 connecting different system components (including the memory 62 and the processor 61).

[0075] The bus 63 includes a data bus, an address bus, and a control bus.

[0076] The memory 62 may include volatile memory, such as random access memory (RAM) 621 and / or cache memory 622, and may further include read-only memory (ROM) 623.

[0077] The memory 62 may further include a program / utilities 625 having a set (at least one) of program modules 624. Such program modules 624 include, but are not limited to: an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include the implementation of a network environment.

[0078] The processor 61 executes various functional applications and data processing by running the computer program stored in the memory 62, such as a test method for a fine-grained FGU OAM message provided in the first aspect of the present application.

[0079] The electronic device 60 can also communicate with one or more external devices 64 (such as a keyboard, a pointing device, etc.). Such communication can be carried out through the input / output (I / O) interface 65. Moreover, the model generation device 60 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN) and / or a public network, such as the Internet) through the network adapter 66. As shown in the figure, the network adapter 66 communicates with other modules of the model generation device 60 through the bus 63. It should be understood that although not shown in the figure, other hardware and / or software modules can be used in combination with the model generation device 60, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (redundant array of independent disks) systems, tape drives, and data backup storage systems, etc.

[0080] It should be noted that although several units / modules or sub-units / modules of the electronic device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present invention, the features and functions of two or more of the above-described units / modules can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided and embodied by multiple units / modules.

[0081] The technical features of the above-described embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope recorded in this specification.

[0082] The above-described embodiments only represent several implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation on the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the appended claims.

Claims

1. A test method for fine-grained FGU OAM messages, characterized in that, The method is applied to a test system for fine-grained FGU OAM packets. The system includes a device under test, an optical splitter, and a test module. The method is specifically applied to the test module and includes: Obtain a packet template and test scenario parameters, and configure the device under test based on the test scenario parameters; The test module receives a first packet sent by the device under test through the optical splitter, and determines a target packet from the first packet based on the packet template. The target packet is an FGU OAM packet; Parse the target packet to obtain a target packet structure, and determine a judgment result of the target packet according to the field structure of the target packet structure and the packet template.

2. The test method for a fine-grained FGU OAM message according to claim 1, wherein The test scenario parameters include: physical impairment parameters and OAM packet mode. Configuring the device under test based on the test scenario parameters includes: Configure the OAM packet mode and physical impairment of the device under test based on the test scenario parameters, and enable the corresponding OAM function of the device under test.

3. The test method for a fine-grained FGU OAM message according to claim 2, wherein The system further includes a data network analyzer and an auxiliary device. The first packet includes service packet data sent by the data network analyzer to the device under test, and FGU OAM packets generated by the device under test. The method further includes: The auxiliary device receives the first packet sent by the optical splitter.

4. The test method for a fine-grained FGU OAM message according to claim 1, wherein, Determining the target packet from the first packet based on the packet template includes: Grab the FGU OAM packet from the first packet based on the packet template to filter out packets in non-test scenarios.

5. A test method for a fine-grained FGU OAM message according to claim 1, characterized in that, Determining the judgment result of the target packet according to the field structure of the target packet structure and the packet template includes: In response to the target packet structure being consistent with the field structure of the packet template, determine that the target packet is normal; In response to the target packet structure being inconsistent with the field structure of the packet template, determine that the target packet is an abnormal packet, and use the device that sent the target packet as an abnormal node.

6. The test method for a fine-grained FGU OAM message according to claim 5, characterized in that, After determining that the target packet is normal, the method further includes: Determine the category of the packet template to which the target packet belongs, and store the target packet and the judgment result based on the category.

7. A test system for fine-grained FGU OAM messages, characterized in that, The system is used to implement the test method for fine-grained FGU OAM packets described in any one of claims 1-6. The system includes a device under test, an optical splitter, and a test module. The test module is used to obtain a packet template and test scenario parameters, and configure the device under test based on the test scenario parameters; The test module is used to receive a first packet sent by the device under test through the optical splitter, and determine a target packet from the first packet based on the packet template. The target packet is an FGU OAM packet; The test module is used to parse the target packet to obtain a target packet structure, and determine a judgment result of the target packet according to the field structure of the target packet structure and the packet template.

8. The test system for a fine-grained FGU OAM message according to claim 7, characterized in that, The system further includes a data network analyzer and auxiliary equipment. The first message includes service message data sent by the data network analyzer to the device under test, and FGU OAM messages generated by the device under test. The optical splitter is used to send the first message to the auxiliary equipment and the test module.

9. The test system for a fine-grained FGU OAM message according to claim 7, wherein The system further includes an optical attenuator, which is used to simulate physical damage in a real environment.

10. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, it implements a method for testing fine-grained FGU OAM messages according to any one of claims 1 to 6.