Power industry Ethernet switch optical port test system, method, device and equipment, storage medium and program product
Through the optical port testing system of the electric power industry Ethernet switch, the systemization steps of the test environment control module, network tester and dimmable optical attenuator are used to solve the problem of labor consuming traditional manual testing, and efficient and accurate switch optical port testing is achieved, saving labor costs and improving testing efficiency.
Patent Information
- Application Number
- CN202510824852.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-19
- Publication Date
- 2025-08-08
AI Technical Summary
Traditional manual testing methods consume a lot of labor costs, making it difficult to fully and accurately verify the forced link mode functions and performance of the electric power industrial Ethernet switch, resulting in inefficient testing.
It provides an optical port testing system for the electric power industrial Ethernet switch, including a test environment control module, a network tester and a dimmable optical attenuator. Through systematization steps, the switch is configured, network test packets are generated, optical signal attenuation and optical power values are recorded, and the test results are summarized and analyzed.
It realizes efficient and reliable functional testing, comprehensively and accurately tests the optical port function and performance of the electric power industrial Ethernet switch, greatly saving labor costs and improving testing efficiency.
Smart Images

Figure CN120454847A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of optical fiber communication technology, and in particular to a power industry Ethernet switch optical port testing system, method, device, computer equipment, computer-readable storage medium, and computer program product. Background Art
[0002] With the advancement of informatization and intelligentization in the power industry, switches have gradually become the hub for control system connectivity and data forwarding, and are widely used. In power industry Ethernet switches, forced link mode is used to force the opening of fiber interfaces to resolve link negotiation failures or compatibility issues.
[0003] Traditionally, the functionality and performance of forced link mode on power industrial Ethernet switches has been tested manually. However, manual testing consumes significant labor costs and is difficult to fully and accurately verify, resulting in low testing efficiency. Summary of the Invention
[0004] Based on this, it is necessary to provide a power industrial Ethernet switch optical port testing system, method, device, computer equipment, computer readable storage medium and computer program product to address the above technical problems.
[0005] In a first aspect, the present application provides a power industry Ethernet switch optical port test system, the system comprising: a test environment control module, a network tester, an adjustable optical attenuator, and a switch to be tested; the test environment control module is respectively connected to the network tester, the adjustable optical attenuator, and the switch to be tested; the adjustable optical attenuator is respectively connected to the network tester and the switch to be tested;
[0006] The test environment control module is configured to obtain a pre-built target test case and configure the network tester, the adjustable optical attenuator, and the switch to be tested respectively according to configuration information of the target test case;
[0007] The network tester is configured to generate network test messages for the target test case and record the statistical results of the reception and transmission of the network test messages; the adjustable optical attenuator is configured to adjust the optical signal attenuation required by the target test case and record and display the adjusted optical attenuation parameters; the switch to be tested is configured to implement the switch optical port function for the target test case and collect optical power values during the optical port test;
[0008] The test environment control module is further configured to summarize and analyze the received transmission and reception statistics, the optical attenuation parameters, and the optical power values, and output a test result information set corresponding to the target test case.
[0009] In one embodiment, the test environment control module is also used to send message configuration and traffic configuration parameters to the network tester; the network tester is also used to generate the network test message based on the message configuration and traffic configuration parameters, record the sending and receiving statistics of the network test message, and return the sending and receiving statistics to the test environment control module.
[0010] In one embodiment, the test environment control module is further used to provide light attenuation configuration parameters to the adjustable optical attenuator; the adjustable optical attenuator is further used to adjust the attenuation of the optical signal according to the light attenuation configuration parameters, obtain the light attenuation parameters, and return the light attenuation parameters to the test environment control module.
[0011] In one embodiment, the test environment control module is further used to transmit optical port function and network forwarding configuration parameters to the switch under test; the switch under test is further used to perform optical port testing based on the optical port function and network forwarding configuration parameters, obtain the optical power value during the optical port testing process, and return the optical power value to the test environment control module.
[0012] In one embodiment, the test environment control module is further used to generate an execution process log for recording the test execution process after the test is performed, and to back up and store the target test case, the execution process log and the test result information set.
[0013] In a second aspect, the present application further provides a method for testing an optical port of an electric power industrial Ethernet switch, which is applied to a test environment control module, and the method comprises:
[0014] Obtaining a pre-built target test case, and configuring the network tester, the adjustable optical attenuator, and the switch to be tested respectively according to the configuration information of the target test case;
[0015] Receiving the sending and receiving statistics of the network test message recorded by the network tester, the optical attenuation parameter recorded by the adjustable optical attenuator, and the optical power value collected by the switch to be tested;
[0016] The sending and receiving statistical results, the optical attenuation parameters and the optical power values are summarized and analyzed, and a test result information set corresponding to the target test case is output.
[0017] In a third aspect, the present application also provides a power industrial Ethernet switch optical port testing device, comprising:
[0018] A use case acquisition unit is used to acquire a pre-built target test case and configure the network tester, the adjustable optical attenuator and the switch to be tested respectively according to the configuration information of the target test case;
[0019] A result receiving unit, configured to receive the sending and receiving statistics of the network test message recorded by the network tester, the optical attenuation parameter recorded by the adjustable optical attenuator, and the optical power value collected by the switch to be tested;
[0020] A summary analysis unit is used to summarize and analyze the transmission and reception statistical results, the optical attenuation parameters and the optical power values, and output a test result information set corresponding to the target test case. In a fourth aspect, the present application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0021] Obtain a pre-built target test case, and configure the network tester, the adjustable optical attenuator, and the switch to be tested respectively according to the configuration information of the target test case; receive the sending and receiving statistics of the network test messages recorded by the network tester, the optical attenuation parameters recorded by the adjustable optical attenuator, and the optical power values collected by the switch to be tested; summarize and analyze the sending and receiving statistics, the optical attenuation parameters, and the optical power values, and output a test result information set corresponding to the target test case.
[0022] In a fifth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0023] Obtain a pre-built target test case, and configure the network tester, the adjustable optical attenuator, and the switch to be tested respectively according to the configuration information of the target test case; receive the sending and receiving statistics of the network test messages recorded by the network tester, the optical attenuation parameters recorded by the adjustable optical attenuator, and the optical power values collected by the switch to be tested; summarize and analyze the sending and receiving statistics, the optical attenuation parameters, and the optical power values, and output a test result information set corresponding to the target test case.
[0024] In a sixth aspect, the present application further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the following steps:
[0025] A pre-built target test case is obtained, and the network tester, the adjustable optical attenuator, and the switch to be tested are configured according to the configuration information of the target test case; the network tester records the transmission and reception statistics of the network test message, the optical attenuation parameters recorded by the adjustable optical attenuator, and the optical power value collected by the switch to be tested; the transmission and reception statistics, the optical attenuation parameters, and the optical power value are summarized and analyzed, and a test result information set corresponding to the target test case is output. The above-mentioned power industry Ethernet switch optical port test system, method, apparatus, computer equipment, computer-readable storage medium, and computer program product first obtains the pre-built target test case through a test environment control module, configures the network tester, the adjustable optical attenuator, and the switch to be tested according to the configuration information of the target test case, then the network tester records the transmission and reception statistics of the network test message, the adjustable optical attenuator records the optical attenuation parameters, and the switch to be tested collects the optical power value; finally, the test environment control module summarizes and analyzes the transmission and reception statistics, the optical attenuation parameters, and the optical power value, and outputs a test result information set corresponding to the target test case. This application provides an efficient and reliable functional testing method. Through systematic testing steps, it comprehensively and accurately tests the functions and performance of the optical ports of power industrial Ethernet switches, greatly saving labor costs and effectively improving the testing efficiency of the optical ports of power industrial Ethernet switches. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following briefly introduces the drawings required for use in the embodiments of the present application or related technical descriptions. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying any creative work.
[0027] Figure 1 A structural block diagram of a power industry Ethernet switch optical port testing system according to an embodiment;
[0028] Figure 2 1. A flow chart of a method for testing an optical port of an electric power industrial Ethernet switch according to an embodiment;
[0029] Figure 3 This is a structural block diagram of a power industry Ethernet switch optical port testing device in one embodiment;
[0030] Figure 4 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0031] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0032] In one embodiment, Figure 1 As shown, a power industry Ethernet switch optical port testing system 100 is provided, which includes: a test environment control module 101, a network tester 102, an adjustable optical attenuator 103 and a switch to be tested 104; the test environment control module 101 is respectively connected to the network tester 102, the adjustable optical attenuator 103 and the switch to be tested 104 in communication; the adjustable optical attenuator 103 is respectively connected to the network tester 102 and the switch to be tested 104 in communication;
[0033] The test environment control module 101 is used to obtain a pre-built target test case and configure the network tester 102, the adjustable optical attenuator 103 and the switch to be tested 104 according to the configuration information of the target test case;
[0034] The network tester 102 is used to generate network test messages for the target test case and record the statistical results of the network test message transmission and reception. The adjustable optical attenuator 103 is used to adjust the optical signal attenuation required by the target test case and record and display the adjusted optical attenuation parameters. The switch under test 104 is used to implement the switch optical port functions for the target test case and collect the optical power values during the optical port test.
[0035] The test environment control module 101 is further configured to summarize and analyze the received transmission and reception statistics, optical attenuation parameters, and optical power values, and output a test result information set corresponding to a target test case.
[0036] Specifically, refer to Figure 1 The power industry Ethernet switch optical port test system 100 responds to the test instruction for the power industry Ethernet switch optical port, and the test environment control module 101 obtains the pre-built target test case, and configures the network tester 102, the adjustable optical attenuator 103 and the switch to be tested 104 according to the configuration information of the target test case; the network tester 102 generates the message under the target test case and records the sending and receiving statistics of the network test message; the adjustable optical attenuator 103 adjusts the optical signal attenuation required in the target test case, and records and displays the adjusted optical attenuation parameters; the switch to be tested 104 implements the switch optical port function under the target test case and collects the optical power value during the optical port test; the test environment control module 101 then summarizes and analyzes the received sending and receiving statistics, optical attenuation parameters and optical power values, and outputs a test result information set corresponding to the target test case.
[0037] Among them, this application can be applied to the link status detection, data transmission and optical signal monitoring functions of the optical port (fiber optic interface) of the power industrial Ethernet switch in the forced link mode (force-link mode).
[0038] Among them, the pre-built target test case can be a force-link test case, including: interface function configuration of force-link mode and non-force-link mode switching, network forwarding configuration, optical signal attenuation configuration in different modes, network test instrument message configuration and traffic configuration, and compatibility configuration under different types of mode optical modules and optical fiber combinations.
[0039] The optical power can be a parameter collected by the switch under test through an optical module, and the optical attenuation is the setting parameter and actual working value of the adjustable optical attenuator; the adjustable optical attenuator is used to attenuate the optical power.
[0040] For example, the power industry Ethernet switch optical port test system 100 obtains a pre-built force-link test case, and the test environment control module 101 executes the case configuration; the test environment control module 101 sends interface configuration parameters and network forwarding configuration to the switch to be tested 104; the test environment control module 101 sends message configuration and traffic configuration parameters to the network tester 102; the test environment control module 101 controls the optical signal attenuation adjustment of the adjustable optical attenuator 103; the test environment control module 101 controls the reading of the network tester's message receiving and sending statistics, optical power measurement results, optical attenuation configuration results, switch configuration results, switch link status and traffic statistics, and switch optical port monitoring information, summarizes and analyzes the collected information, and outputs the test results.
[0041] Further explanation: Force-link test cases can be constructed by combining the following: interface function configuration for switching between force-link and non-force-link modes; optical signal attenuation configuration in different modes, with the minimum attenuation set to 0; test instrument message configuration and traffic configuration; compatibility configuration for different types of optical module and fiber combinations; different fiber connections, including single-switch receive-only, single-switch transmit, and full switch transmit-receive connection; compatibility configuration for different types of optical module and fiber combinations; function configuration, including switch protocol function configuration, interface bandwidth limit configuration, and storm suppression configuration. The constructed test case includes information such as the test case test purpose, network topology connection configuration, network tester message and traffic configuration, fiber link optical power attenuation configuration, switch interface mode configuration, switch protocol function configuration, interface bandwidth limit configuration, and storm suppression configuration.
[0042] In the above-mentioned power industry Ethernet switch optical port test system 100, a pre-built target test case is first obtained through the test environment control module 101, and the network tester 102, the adjustable optical attenuator 103, and the switch to be tested 104 are configured according to the configuration information of the target test case. Then, the network tester 102 records the sending and receiving statistics of the network test message, the adjustable optical attenuator 103 records the optical attenuation parameters, and the switch to be tested collects the optical power value. Finally, the test environment control module 101 summarizes and analyzes the sending and receiving statistics, optical attenuation parameters, and optical power values, and outputs a test result information set corresponding to the target test case. The present application provides an efficient and reliable functional testing method that comprehensively and accurately tests the functions and performance of the optical port of the power industry Ethernet switch through systematic test steps, greatly saving labor costs, thereby effectively improving the efficiency of the power industry Ethernet switch optical port testing.
[0043] In one embodiment, the test environment control module 101 is also used to send message configuration and traffic configuration parameters to the network tester 102; the network tester 102 is also used to generate network test messages based on the message configuration and traffic configuration parameters, record the sending and receiving statistics of the network test messages, and return the sending and receiving statistics to the test environment control module 101.
[0044] The network test message types include known unicast, unknown unicast, known multicast, unknown multicast, and broadcast. The message length settings include fixed length, hop length, and random length. The traffic size configuration includes 0.01% to 100% of the interface bandwidth.
[0045] Specifically, based on the systematic network testing steps, the test environment control module 101 sends message configuration and traffic configuration parameters to the network tester 102. The network tester 102 generates a network test message according to the message configuration and traffic configuration parameters, records the sending and receiving statistics of the network test message, and returns the sending and receiving statistics to the test environment control module 101, which is conducive to improving the efficiency of the optical port test of the power industry Ethernet switch.
[0046] In one embodiment, the test environment control module 101 is further configured to provide light attenuation configuration parameters to the adjustable optical attenuator 103 ; the adjustable optical attenuator 103 is further configured to adjust the attenuation of the optical signal according to the light attenuation configuration parameters, obtain light attenuation parameters, and return the light attenuation parameters to the test environment control module 101 .
[0047] Specifically, the adjustable optical attenuator 103 is connected to the network tester 102 and the switch to be tested 104 through an optical fiber, remotely controls the optical attenuator, measures optical power in real time, displays optical attenuation and optical power in real time, receives optical attenuation configuration parameters issued by the test environment control module 101, adjusts optical signal attenuation according to the configuration parameters, obtains optical attenuation parameters, and responds to the read instruction of the test environment control module 101 to return the optical attenuation parameters, thereby helping to improve the efficiency of optical port testing of power industry Ethernet switches.
[0048] In one embodiment, the test environment control module 101 is further configured to transmit the optical port function and network forwarding configuration parameters to the switch under test 104; the switch under test 104 is further configured to perform an optical port test based on the optical port function and network forwarding configuration parameters, obtain an optical power value during the optical port test, and return the optical power value to the test environment control module 101.
[0049] Specifically, based on the systematic switch testing steps, the test environment control module 101 sends the optical port function and network forwarding configuration parameters to the switch to be tested 104. The switch to be tested 104 performs an optical port test based on the optical port function and network forwarding configuration parameters, obtains the optical power value during the optical port test, and returns the optical power value to the test environment control module 101, which is conducive to improving the optical port testing efficiency of the power industry Ethernet switch.
[0050] In one embodiment, the test environment control module 101 is also used to generate an execution process log for recording the test execution process after the test is performed, and to back up and store the target test cases, execution process logs and test result information sets, thereby achieving efficient storage and utilization of the target test cases, execution process logs and test result information sets.
[0051] Specifically, the test environment control module 101 can be used to parse the input target test case, extract the configuration information and test data in the case, configure the network tester test message and traffic bandwidth, configure the interface mode of the switch to be tested, VLAN (Virtual Local Area Network) and ring network protocol and other parameters, and configure the optical attenuation parameters of the adjustable optical attenuator; finally, read the collected information of the network tester 102, the adjustable optical attenuator 103 and the switch to be tested 104 for analysis to obtain a test result information set, and back up and store the target test case, execution process log and test result information set.
[0052] In one embodiment, Figure 2 As shown, a method for testing the optical port of an electric power industrial Ethernet switch is provided. Figure 1 The power industry Ethernet switch optical port test system 100 is used as an example to illustrate the method, which includes the following steps:
[0053] Step S201: Obtain a pre-built target test case, and configure the network tester, the variable optical attenuator, and the switch to be tested respectively according to the configuration information of the target test case.
[0054] Step S202: receiving the statistical results of receiving and sending network test messages recorded by the network tester, the optical attenuation parameters recorded by the adjustable optical attenuator, and the optical power values collected by the switch to be tested.
[0055] Step S203 , summarizing and analyzing the receiving and transmitting statistical results, the optical attenuation parameters, and the optical power values, and outputting a test result information set corresponding to the target test case.
[0056] Specifically, the power industry Ethernet switch optical port test system first obtains a pre-built target test case, and configures the network tester, adjustable optical attenuator and switch to be tested according to the configuration information of the target test case; then receives the sending and receiving statistics of the network test message recorded by the network tester, the optical attenuation parameters recorded by the adjustable optical attenuator and the optical power value collected by the switch to be tested; finally, the sending and receiving statistics, optical attenuation parameters and optical power values are summarized and analyzed, and the test result information set corresponding to the target test case is output.
[0057] For specific definitions of the above steps, please refer to the relevant embodiments of the power industrial Ethernet switch optical port testing system, which will not be repeated here.
[0058] In the above-mentioned power industry Ethernet switch optical port testing method, a pre-built target test case is first obtained through the test environment control module. The network tester, adjustable optical attenuator, and switch to be tested are configured according to the configuration information of the target test case. The network tester then records the sending and receiving statistics of the network test message, the adjustable optical attenuator records the optical attenuation parameters, and the switch to be tested collects the optical power value. Finally, the test environment control module summarizes and analyzes the sending and receiving statistics, optical attenuation parameters, and optical power values, and outputs the test result information set corresponding to the target test case. The present application provides an efficient and reliable functional testing method that comprehensively and accurately tests the functions and performance of the optical ports of power industry Ethernet switches through systematic testing steps, greatly saving labor costs, thereby effectively improving the efficiency of testing the optical ports of power industry Ethernet switches.
[0059] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.
[0060] Based on the same inventive concept, embodiments of the present application also provide a device for testing an optical port of an industrial Ethernet switch for implementing the aforementioned method for testing an optical port of an industrial Ethernet switch. The solution provided by this device is similar to the solution described in the aforementioned method. Therefore, the specific limitations of one or more embodiments of the device for testing an optical port of an industrial Ethernet switch provided below can be found in the aforementioned method for testing an optical port of an industrial Ethernet switch, and will not be further elaborated here.
[0061] In an exemplary embodiment, Figure 3 As shown, a power industry Ethernet switch optical port test device is provided, comprising:
[0062] The use case acquisition unit 301 is used to acquire a pre-built target test case and configure the network tester, the adjustable optical attenuator and the switch to be tested respectively according to the configuration information of the target test case;
[0063] The result receiving unit 302 is used to receive the sending and receiving statistics of the network test message recorded by the network tester, the optical attenuation parameters recorded by the adjustable optical attenuator, and the optical power value collected by the switch to be tested;
[0064] The summary analysis unit 303 is used to summarize and analyze the receiving and transmitting statistical results, optical attenuation parameters and optical power values, and output a test result information set corresponding to the target test case.
[0065] The specific definitions of the power industry Ethernet switch optical port testing device can be found in the definitions of the power industry Ethernet switch optical port testing method described above and will not be further elaborated here. Each module in the power industry Ethernet switch optical port testing device described above can be implemented in whole or in part through software, hardware, or a combination thereof. Each of these modules can be embedded in or independent of a processor in a computer device in hardware form, or stored in a computer device memory in software form, allowing the processor to call and execute the corresponding operations of each module.
[0066] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 4 As shown. The computer device includes a processor, memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals via wired or wireless means. The wireless means can be implemented via Wi-Fi, mobile cellular networks, near-field communication (NFC), or other technologies. When executed by the processor, the computer program implements a method for testing optical ports of power industry Ethernet switches. The display unit of the computer device is used to produce visual images and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse.
[0067] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0068] In one embodiment, a computer device is further provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps in the above method embodiments when executing the computer program.
[0069] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0070] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0071] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0072] Those skilled in the art will understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. In particular, any reference to memory, database, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The databases involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the various embodiments provided herein may be, but are not limited to, general-purpose processors, central processing units (CPUs), graphics processing units (GPUs), digital signal processors (DSPs), programmable logic devices (PLDs), quantum computing-based data processing logic devices, artificial intelligence (AI) processors, and the like.
[0073] The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0074] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.
Claims
1. A power industry Ethernet switch optical port test system, characterized in that: The system includes: a test environment control module, a network tester, an adjustable optical attenuator, and a switch to be tested; the test environment control module is respectively connected to the network tester, the adjustable optical attenuator, and the switch to be tested; the adjustable optical attenuator is respectively connected to the network tester and the switch to be tested; The test environment control module is configured to obtain a pre-built target test case and configure the network tester, the adjustable optical attenuator, and the switch to be tested respectively according to configuration information of the target test case; The network tester is configured to generate network test messages for the target test case and record the statistical results of the reception and transmission of the network test messages; the adjustable optical attenuator is configured to adjust the optical signal attenuation required by the target test case and record and display the adjusted optical attenuation parameters; the switch to be tested is configured to implement the switch optical port function for the target test case and collect optical power values during the optical port test; The test environment control module is further configured to summarize and analyze the received transmission and reception statistics, the optical attenuation parameters, and the optical power values, and output a test result information set corresponding to the target test case.
2. The system according to claim 1, wherein: The test environment control module is further used to send message configuration and flow configuration parameters to the network tester; The network tester is further configured to generate the network test message according to the message configuration and traffic configuration parameters, record the sending and receiving statistical results of the network test message, and return the sending and receiving statistical results to the test environment control module.
3. The system according to claim 1, wherein: The test environment control module is further used to configure light attenuation parameters for the adjustable optical attenuator; The adjustable optical attenuator is further configured to adjust the attenuation of the optical signal according to the optical attenuation configuration parameter, obtain the optical attenuation parameter, and return the optical attenuation parameter to the test environment control module.
4. The system according to claim 1, wherein: The test environment control module is further used to forward configuration parameters of the light port function and network to the switch under test; The switch to be tested is further configured to perform an optical port test according to the optical port function and network forwarding configuration parameters, obtain the optical power value during the optical port test, and return the optical power value to the test environment control module.
5. The system according to any one of claims 1 to 4, characterized in that The test environment control module is further used to generate an execution process log for recording the test execution process after the test is performed, and to back up and store the target test case, the execution process log and the test result information set.
6. A method for testing the optical port of an electric power industrial Ethernet switch, characterized in that: Applied to a test environment control module, the method includes: Obtaining a pre-built target test case, and configuring the network tester, the adjustable optical attenuator, and the switch to be tested respectively according to the configuration information of the target test case; Receiving the sending and receiving statistics of the network test message recorded by the network tester, the optical attenuation parameter recorded by the adjustable optical attenuator, and the optical power value collected by the switch to be tested; The sending and receiving statistical results, the optical attenuation parameters and the optical power values are summarized and analyzed, and a test result information set corresponding to the target test case is output.
7. A power industry Ethernet switch optical port test device, characterized in that: The device comprises: A use case acquisition unit is used to acquire a pre-built target test case and configure the network tester, the adjustable optical attenuator and the switch to be tested respectively according to the configuration information of the target test case; A result receiving unit, configured to receive the sending and receiving statistics of the network test message recorded by the network tester, the optical attenuation parameter recorded by the adjustable optical attenuator, and the optical power value collected by the switch to be tested; The summary analysis unit is used to summarize and analyze the receiving and sending statistical results, the optical attenuation parameters and the optical power values, and output a test result information set corresponding to the target test case.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to claim 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to claim 6 are implemented.
10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to claim 6 are implemented.
Citation Information
Patent Citations
Automatic test method and system for switch
CN115208787A
Automatic test system and test method for QSFP28 interface optical module
CN119402082A
Four-channel optical module parallel test system
CN210867698U
Methods and apparatus for automated testing and analysis of dense wavelength division multiplexing (DWDM), wavelength selective and / or optical switching devices
US7340166B1
Cited By
Virtual local area network testing method and device of power industry Ethernet switch and computer equipment
CN121644438A