A test method for optical switch unit based on Benes network

By setting up monitoring ports and automated test paths in the Benes network, the problem of low optical switch unit testing efficiency is solved, efficient optical switch unit testing is achieved, and test difficulty and error rates are reduced.

CN117081664BActive Publication Date: 2024-09-27ZHEJIANG LAB
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311051120.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2022-09-05
Filing Date
2023-08-18
Publication Date
2024-09-27
Estimated Expiration
2043-08-18

AI Technical Summary

Technical Problem

The existing optical switch unit testing method requires manual search and repeated testing of each monitoring port, resulting in low testing efficiency and high error rate, making it difficult to achieve efficient testing of large-scale optical switching chips.

Method used

Using a test method based on the Benes network, by setting a monitoring port between the intermediate optical switch and the next-level optical switch, the optical switch unit is automatically traversed, the optical switch unit to be tested is selected and the test path is determined according to its status, and the electric drive module is Perform a voltage scan to determine the optimal operating voltage.

Benefits of technology

It reduces the workload and error rate of manually searching for monitoring ports, automatically traverses each optical switch unit, and significantly reduces the difficulty and time of large-scale optical switch unit testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117081664B_ABST
    Figure CN117081664B_ABST
Patent Text Reader

Abstract

This specification discloses a test method for an optical switch unit based on a Benes network, wherein each monitoring port is set between the intermediate optical switch and the next optical switch of the Benes network, the optical switch unit to be tested is selected and the state of the optical switch unit to be tested is obtained, thereby determining the path to be tested according to the state of the optical switch unit to be tested, determining the target monitoring port for testing the optical switch to be tested from each monitoring port according to the path to be tested, inputting a first test signal to the optical switch unit located at the first position in the path to be tested, performing a voltage scan on the optical switch unit to be tested in the path to be tested, and then receiving a second test signal from the target monitoring port, and determining the test result of the optical switch unit to be tested according to the second test signal. It can be seen that through the above scheme, the workload and error rate of manually testing the optical switch unit are reduced, and the difficulty of large-scale optical switch unit testing is greatly reduced.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims the priority of the invention patent application filed with the State Intellectual Property Office on September 5, 2022, with application number 202211075554.9 and invention name “Automatic testing method and device for large-scale switching units based on Benes network”, the entire contents of which are incorporated by reference in this application. Technical Field

[0002] The present invention relates to the technical field of packaging and testing of silicon-based optoelectronic chips, and in particular to a testing method for an optical switch unit based on a Benes network. Background Art

[0003] With the increasing development of photonic integration technology, the application of large-scale optical switching chips in cloud computing, high-performance computers and data centers has attracted more and more attention. Faced with the ever-increasing amount of data and information exchange, the traditional optical-electrical-optical data exchange method faces many problems such as high exchange delay, small data bandwidth, and high power consumption. The core optical switch in the large-scale optical switching chip adopts the form of all-optical switching, which greatly improves the speed of information exchange and reduces the huge power consumption of data centers.

[0004] The number of optical switches required to rearrange the non-blocking Benes network is minimal, which is conducive to realizing low-power, low-power large-scale optical switching functions. The optical switch changes the phase difference of the interference arm by changing the refractive index of the interference arm, thereby realizing optical path switching. The change in phase is caused by the change in the voltage or current loaded on both ends of the interference arm, resulting in the switch unit presenting two periodic states of "cross state" (Cross) and "through state" (Bar). In addition, due to process limitations, the actual optimal operating voltage of the optical switch is not exactly the same as the design. Therefore, before using the optical switching chip for switch switching function, it is necessary to test the optimal operating voltage of each optical switch unit in the "Cross" and "Bar" states.

[0005] At present, in the test of the optical switch, it is necessary to set a corresponding monitoring port for each optical switch unit in the optical switch, apply a test voltage to the optical switch unit, measure the performance of the optical switch unit under the test voltage, and obtain test data from the monitoring port, so as to obtain the relationship between the working performance and voltage of the optical switch unit, so as to test the optimal working voltage of each optical switch unit.

[0006] However, in the above solution, the monitoring port of each optical switch unit in the optical switch still needs to repeatedly perform the test of each switch unit, which greatly increases the workload of the test and thus reduces the test efficiency of the optical switch unit.

[0007] Based on this, this specification provides a test method for an optical switch unit based on a Benes network. Summary of the invention

[0008] This specification provides a test method, system and device for an optical switch unit based on a Benes network, so as to partially solve the above-mentioned problems existing in the prior art.

[0009] This manual adopts the following technical solutions:

[0010] This specification provides a test method for an optical switch unit based on a Benes network, wherein the Benes network includes optical switches at various levels, and each optical switch at various levels includes multiple optical switch units;

[0011] The method comprises:

[0012] Selecting an intermediate optical switch from the optical switches of each level of the Benes network, and setting each monitoring port between the intermediate optical switch and the optical switch of the next level of the intermediate optical switch;

[0013] Selecting an optical switch unit to be tested from the optical switches of each level, selecting a state of the optical switch unit to be tested from various preset states, and determining a path to be tested in the optical switches of each level that includes the optical switch unit to be tested according to the state of the optical switch unit to be tested;

[0014] According to the path to be tested, determining from the monitoring ports a target monitoring port corresponding to the optical switch unit to be tested for testing the optical switch unit to be tested;

[0015] Transmitting a first test signal through an optical transmitting device, and inputting the first test signal into the optical switch unit located at the first position in the path to be tested based on a first mechanical optical switch, performing a voltage scan on the optical switch unit to be tested in the path to be tested through an electric driving module, outputting a second test signal from a target monitoring port through a second mechanical optical switch, and transmitting the second test signal to an optical receiving device through the second mechanical optical switch;

[0016] The test result of the optical switch unit to be tested is determined according to the second test signal recorded by the optical receiving device.

[0017] Optionally, the monitoring ports are provided between the intermediate optical switch and the optical switch of the next stage of the intermediate optical switch, specifically including:

[0018] For each optical switch unit included in the intermediate optical switch, selecting a target output port from a plurality of output ports included in the optical switch unit;

[0019] According to the target output port, determining a designated optical switch unit corresponding to the optical switch unit among the optical switch units included in the next-stage optical switch;

[0020] A monitoring port is arranged between the target output port of the optical switch unit and the input port of the designated optical switch unit corresponding to the optical switch unit.

[0021] Optionally, the state of the optical switch unit to be tested includes a cross state and a through state;

[0022] The step of determining the paths to be tested in the optical switches of each level including the optical switch unit to be tested according to the state of the optical switch unit to be tested specifically includes:

[0023] Determine a first position of the optical switch unit to be tested in each level of the optical switches;

[0024] Determine, according to the state of the optical switch unit to be tested and the first position, each reference optical switch unit connected to the optical switch unit to be tested;

[0025] Respectively determining the second positions of the reference optical switch units in the optical switches of each level;

[0026] According to the first position and the second positions, the optical switch unit to be tested and the reference optical switch units are connected in sequence to obtain a path to be tested of the optical switch unit to be tested.

[0027] Optionally, the determining, from the monitoring ports according to the path to be tested, a target monitoring port corresponding to the optical switch unit to be tested for testing the optical switch unit to be tested specifically includes:

[0028] Determine each optical switch unit included in the path to be tested;

[0029] Determine, according to the positions of the optical switch units included in the path to be tested in the optical switches at each level, the signal transmission direction of the path to be tested as the designated direction corresponding to the path to be tested;

[0030] According to the specified direction, determining the optical switch unit located at the end among the optical switch units included in the path to be tested;

[0031] According to the optical switch unit located at the end, a target monitoring port corresponding to the optical switch unit to be tested is determined.

[0032] Optionally, before the first mechanical optical switch inputs the first test signal into the optical switch unit located at the first position in the path to be tested, the method further includes:

[0033] According to the designated direction, the optical switch unit located at the first position among the optical switch units included in the path to be tested is determined.

[0034] Optionally, performing voltage scanning on the optical switch unit to be tested in the path to be tested by the electric driving module specifically includes:

[0035] Determining a test voltage range of the optical switch unit to be tested;

[0036] Determine a first input level and a second input level according to the test voltage range; wherein the first input level is a bias level with a fixed amplitude, and the second input level is a control level that increases according to a preset step size;

[0037] The first input level is input to the first input end of the optical switch unit to be tested and the second input level is input to the second input end of the optical switch unit to be tested through the electric driving module, so that the optical switch unit to be tested performs voltage scanning.

[0038] Optionally, determining the test result of the optical switch unit to be tested according to the second test signal recorded by the optical receiving device specifically includes:

[0039] Determining the relationship between the optical power and the test voltage of the optical switch unit to be tested according to the second test signal recorded by the optical receiving device and the test voltage range;

[0040] When the state of the optical switch unit to be tested is a cross state, then in the relationship, the test voltage corresponding to the minimum optical power of the optical switch unit to be tested is the optimal working voltage of the optical switch unit to be tested in the through state, and the test voltage corresponding to the maximum optical power of the optical switch unit to be tested is the optimal working voltage of the optical switch unit to be tested in the cross state;

[0041] When the state of the optical switch unit to be tested is a through state, then in the relationship, the test voltage corresponding to the minimum optical power of the optical switch unit to be tested is the optimal working voltage of the optical switch unit to be tested in the cross state, and the test voltage corresponding to the maximum optical power of the optical switch unit to be tested is the optimal working voltage of the optical switch unit to be tested in the through state.

[0042] This specification provides a test system for an optical switch unit based on a Benes network, the system comprising: an optical transmitting device, a first mechanical optical switch, an optical receiving device, a second mechanical optical switch, an electric driving module and a host computer;

[0043] The host computer is used to execute any one of the above-mentioned testing methods for an optical switch unit based on a Benes network;

[0044] The electric drive module is used to perform voltage scanning on the optical switch unit to be tested in the Benes network;

[0045] The optical transmission device is used to transmit a first test signal;

[0046] The optical receiving device is used to receive and record the second test signal;

[0047] The first mechanical optical switch is used to input the first test signal emitted by the optical emitting device into the optical switch unit located at the first position in the path to be tested;

[0048] The second mechanical optical switch is used to output a second test signal from a target monitoring port corresponding to the optical switch unit to be tested, and send the second test signal to the optical receiving device.

[0049] This specification provides a test device for an optical switch unit based on a Benes network, wherein the Benes network includes optical switches at various levels, and each optical switch at various levels includes a plurality of optical switch units;

[0050] The device comprises:

[0051] A monitoring port determination module is used to select an intermediate optical switch from the optical switches of each level of the Benes network, and set each monitoring port between the intermediate optical switch and the optical switch of the next level of the intermediate optical switch; wherein each optical switch of each level of the optical switch comprises a plurality of optical switch units;

[0052] A to-be-tested path determination module, used for selecting an optical switch unit to be tested from the optical switches of each level, selecting a state of the optical switch unit to be tested from various preset states, and determining a to-be-tested path including the optical switch unit to be tested in the optical switches of each level according to the state of the optical switch unit to be tested;

[0053] A target monitoring port determination module, used to determine, from the monitoring ports, a target monitoring port corresponding to the optical switch unit to be tested for testing the optical switch unit to be tested according to the path to be tested;

[0054] A test module, configured to transmit a first test signal through an optical transmitting device, and input the first test signal into the optical switch unit located at the first position in the path to be tested based on a first mechanical optical switch, perform voltage scanning on the optical switch unit to be tested in the path to be tested through an electric driving module, output a second test signal from a target monitoring port through a second mechanical optical switch, and transmit the second test signal to an optical receiving device through the second mechanical optical switch;

[0055] The test result determination module is used to determine the test result of the optical switch unit to be tested according to the second test signal recorded by the optical receiving device.

[0056] This specification provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned test method of the optical switch unit is implemented.

[0057] The present specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned test method of the optical switch unit when executing the program.

[0058] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects:

[0059] In the test method of the optical switch unit provided in this specification, each monitoring port is set between the intermediate optical switch and the next optical switch, the optical switch unit to be tested is selected and the state of the optical switch unit to be tested is obtained, so as to determine the path to be tested according to the state of the optical switch unit to be tested, determine the target monitoring port for testing the optical switch to be tested from each monitoring port according to the path to be tested, input the first test signal to the optical switch unit located at the first position in the path to be tested, perform voltage scanning on the optical switch unit to be tested in the path to be tested, and then receive the second test signal from the target monitoring port, and determine the test result of the optical switch unit to be tested according to the second test signal. It can be seen that through the above scheme, the workload and error rate of manually searching for the monitoring port of the optical switch unit are reduced, each optical switch unit is automatically traversed, and the difficulty of large-scale optical switch unit testing is greatly reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The illustrative embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification. In the drawings:

[0061] Figure 1 A schematic diagram of a test system for an optical switch unit based on a Benes network in this specification;

[0062] Figure 2 A schematic diagram of a test method for an optical switch unit based on a Benes network in this specification;

[0063] Figure 3 A schematic diagram of a Benes network in this specification;

[0064] Figure 4A schematic diagram of a test method for an optical switch unit based on a Benes network in this specification;

[0065] Figure 5 A schematic diagram of a test method for an optical switch unit based on a Benes network in this specification;

[0066] Figure 6 A schematic diagram of a test result of an optical switch unit based on a Benes network in this specification;

[0067] Figure 7 A schematic diagram of a test device for an optical switch unit based on a Benes network provided in this specification;

[0068] Figure 8 The corresponding Figure 2 Schematic diagram of electronic equipment. DETAILED DESCRIPTION

[0069] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.

[0070] In addition, it should be noted that all actions of acquiring signals, information or data in this manual are performed in compliance with the relevant local data protection laws and policies and with the authorization given by the owner of the corresponding device.

[0071] An optical switch unit is a device or component used to control the routing of optical signals and optical communications. It can achieve connection and switching between optical fibers by switching the path of optical signals, thereby realizing the selection of different optical paths and the transmission of optical signals. It has a wide range of applications in the fields of optical communication, optical interconnection, optical sensing, and optical computing. It provides an effective solution for the control and transmission of optical signals, and promotes the development of optical technology and innovation in applications. An optical switch composed of multiple optical switch units can be used to simultaneously control the routing and switching of multiple optical signals, thereby realizing the routing and switching of optical signals in large-scale optical communication networks, or supporting large-scale data exchange and processing in optical interconnection systems.

[0072] It can be seen that the optical switch unit and the optical switch composed of multiple optical switch units can be widely used in various technical fields, providing an efficient and flexible solution for the control and transmission of optical signals. In order to further improve the performance of optical switches in various technical fields, it is particularly important to make each optical switch unit in the optical switch in the best working state.

[0073] In practical applications, before using the optical switch unit to realize optical signal transmission, it is necessary to test the static working characteristics of the optical switch unit to find the optimal working voltage of the optical switch unit. This is due to the constraints of the current optical switch unit manufacturing process. The characteristic parameters of the manufactured optical switch unit may be different from the pre-designed ones. Therefore, after manufacturing and before actual use, the optical switch unit needs to be tested to determine the actual optimal working voltage. In the current testing method, it is necessary to manually find the monitoring port for each optical switch unit, manually fine-tune the optical fiber coupling of the monitoring port, and repeat the test of each optical switch unit, which greatly reduces the efficiency of the test.

[0074] Based on this, this specification provides a testing method for optical switch units based on the Benes network. By setting a small number of monitoring ports, the optical switch units contained in each level of optical switches are automatically traversed and tested. Compared with the current manual testing of optical switch units in silicon-based integrated optical switching chips, the repetitive labor and imprecision of manual alignment of optical fibers are reduced, and the difficulty of calibration testing of optical switch units in large-scale optical switching chips is greatly reduced.

[0075] In addition, in the process of executing the test method of the optical switch unit based on the Benes network, it is necessary to perform voltage scanning on the optical switch unit to be tested, input an optical signal to the optical switch unit to be tested, obtain an output signal from the monitoring port, etc. Therefore, this specification also provides a test device for an optical switch unit based on a Benes network corresponding to the test method of the optical switch unit based on the Benes network, such as Figure 1 As shown, the test system of the optical switch unit based on the Benes network includes an optical transmitting device, a first mechanical optical switch, an optical receiving device, a second mechanical optical switch, an electric drive module and a host computer. The host computer is respectively connected to the optical transmitting device, the first mechanical optical switch, the optical receiving device, the second mechanical optical switch, and the electric drive module. The optical transmitting device includes a laser and a first optical fiber array, and the optical receiving device includes a second optical fiber array and an optical power meter.

[0076] When testing the optical switch in the left half of the Benes network, the signal output end of the laser is connected to the first end of the first mechanical optical switch, the second end of the first mechanical optical switch is connected to the first end of the first optical fiber array, and the second end of the first optical fiber array is connected to the first-level optical switch (the first level in order from left to right) of the left half of the Benes network. The monitoring port set in the Benes network is connected to the first end of the second optical fiber array, the second end of the second optical fiber array is connected to the first end of the second mechanical optical switch, and the second end of the second mechanical optical switch is connected to the signal receiving end of the optical power meter, so that the first test signal emitted by the laser can pass through the first mechanical optical switch and the first optical fiber array in sequence, and enter the optical switch unit located at the first position in the path to be tested (the optical switch unit in the first-level optical switch of the left half network). After passing through the path to be tested, the second test signal is output by the monitoring port and transmitted to the optical power meter via the second optical fiber array and the second mechanical optical switch in sequence. The optical power meter can record the second test signal and return the recorded second test signal to the host computer, and the host computer determines the test result of the optical switch unit to be tested according to the second test signal. Figure 1 That is, it is a schematic diagram that the optical switch unit to be tested is located in the left half of the Benes network.

[0077] Similarly, when testing the optical switch in the right half of the Benes network, Figure 1 On the basis shown, the first fiber array and the second fiber array are disassembled, and the connection relationship between the laser, the first mechanical optical switch and the first fiber array remains unchanged. Only the second end of the first fiber array is connected to the last optical switch of the Benes network (the first optical switch sorted from right to left), and the first end of the second fiber array is connected to the monitoring port set in the Benes network. After that, the connection relationship between the second fiber array, the second mechanical optical switch and the optical power meter remains unchanged. Based on the test system connected in this way, when the first test signal emitted by the laser can pass through the first mechanical optical switch and the first fiber array in sequence, enter the optical switch unit located at the first position in the path to be tested (the optical switch unit in the last optical switch of the right half network), after passing through the path to be tested, the second test signal is output by the monitoring port, and is transmitted to the optical power meter through the second fiber array and the second mechanical optical switch in sequence. The optical power meter can record the second test signal and return the recorded second test signal to the host computer.

[0078] The host computer may be an electronic device such as a server for executing a test method of an optical switch unit based on a Benes network.

[0079] Through the test system of the optical switch unit based on the Benes network, one or more optical switch units in all the optical switch units included in the multi-stage switching network on the large-scale optical switching chip can be tested respectively. The multi-stage switching network can be any existing switching network including optical switch units, such as a rearrangeable non-blocking Benes network, and this specification does not limit this. The following takes the optical switch unit being tested belonging to the Benes network as an example to explain the specific technical solution.

[0080] Specifically, the host computer communicates with the optical transmitting device, the first mechanical optical switch, the optical receiving device, the second mechanical optical switch, and the electric driving module respectively to control the above-mentioned devices, thereby executing the test method of the optical switch unit based on the Benes network provided in this specification.

[0081] Based on the test system of the optical switch unit, when all the optical switch units in the Benes network are tested, the host computer controls the laser to send a first test signal (optical signal), the first test signal enters the first optical fiber array through the first mechanical optical switch, and is input into the optical switch unit to be tested in the Benes network, and the host computer controls the electric drive module to perform voltage scanning on the optical switch unit to be tested, so that the second test signal can be output at the monitoring port pre-set in the Benes network, and the second test signal can enter the optical power meter through the second optical fiber array and the second mechanical optical switch, so that the optical power meter can continuously receive the second test signal until the test of the optical switch unit to be tested is completed. The optical power meter returns the received second test signal to the host computer, so that the host computer can determine the test result of the optical switch unit to be tested based on the second test signal, so as to find the optimal working voltage of the optical switch unit to be tested.

[0082] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.

[0083] Figure 2 A flowchart of a method for testing an optical switch unit based on a Benes network is provided in this specification.

[0084] S100: Selecting an intermediate optical switch from the optical switches of each level of the Benes network, and setting each monitoring port between the intermediate optical switch and an optical switch of a next level of the intermediate optical switch.

[0085] The embodiment of this specification provides a test method for an optical switch unit based on a Benes network. The execution process of the method can be executed by an electronic device such as a server for testing the optical switch unit, and this specification does not limit this. Figure 1The upper computer shown is an electronic device for executing the test method of the optical switch unit based on the Benes network as an example.

[0086] In this specification, the Benes network includes a multi-stage optical switch, and each stage of the optical switch includes a plurality of optical switch units. For example, a 16×16 Benes network is used. Figure 3 Shown is a schematic diagram of a Benes network in this specification, in which 7 columns of optical switches are included, and each level of optical switches includes 8 optical switch units. Since each optical switch unit includes two input ports and two output ports, there are 16 input ports and 16 output ports in total in the Benes network.

[0087] In the current test scheme of optical switch units, it is generally necessary to manually test each optical switch unit to be tested, which results in a huge workload. Moreover, because the monitoring port needs to be deployed by optical fiber etching, the monitoring port is relatively fixed and cannot be flexibly changed. The current scheme requires a large number of monitoring ports, which greatly wastes test resources. For example, Figure 3 The Benes network shown includes 56 optical switch units. According to the current test plan, 56 monitoring ports are required, which reduces the test flexibility and efficiency of the optical switch units.

[0088] To this end, in this specification, a solution of setting each monitoring port between the intermediate optical switch and the next optical switch of the intermediate optical switch is adopted to reduce the number of monitoring ports, thereby saving resources required for deploying the monitoring ports.

[0089] Specifically, in the Benes network, each optical switch unit of the intermediate optical switch has two output ports, that is, by controlling the state of the optical switch unit, the optical signal passing through the optical switch unit can be controlled to be output from any one of the two output ports of the optical switch unit. In order to implement the traversal test of each optical switch unit in the Benes network, it is possible to set monitoring ports on both output ports of each optical switch unit of the intermediate optical switch, and still use Figure 1 For example, the number of monitoring ports set is 16. Compared with the existing 56, only fewer monitoring ports are used in the embodiments of this specification.

[0090] In an optional embodiment of the present specification, in order to further reduce the number of monitoring ports, each monitoring port can also be set after each optical switch unit included in the intermediate-level optical switch and before each optical switch unit included in the intermediate-level optical switch, according to the number of optical switch units. Specifically, for each optical switch unit included in the intermediate-level optical switch, a target output port is selected from a number of output ports included in the optical switch unit, and a designated optical switch unit corresponding to the optical switch unit is determined among each optical switch unit included in the next-level optical switch of the intermediate-level optical switch, and a monitoring port is set between the target output port of the optical switch unit of the intermediate-level optical switch and the input port of the designated optical switch unit corresponding to the optical switch unit. Specifically, the selected target output port is one of the several output ports included in the optical switch unit, that is, if the optical switch unit includes two output ports, the target output port is one of them. Still with Figure 3 For example, the intermediate optical switch includes 8 optical switch units, each of which has two output ports. If the monitoring ports are set according to the above scheme, only 8 monitoring ports need to be set, thereby further reducing the number of monitoring ports. In addition, the designated optical switch unit corresponding to the optical switch unit can be an optical switch unit in the next optical switch of the intermediate optical switch in the same row as the optical switch unit in the Benes network, such as Figure 3 The optical switch unit numbered S4-1 and the optical switch unit numbered S5-1 are the optical switch units in the intermediate optical switch, and are designated optical switch units corresponding to the optical switch units in the next optical switch.

[0091] S102: Select an optical switch unit to be tested from the optical switches of each level, select a state of the optical switch unit to be tested from various preset states, and determine a path to be tested in the optical switches of each level that includes the optical switch unit to be tested according to the state of the optical switch unit to be tested.

[0092] Specifically, since all optical switch units in each level of optical switches need to be tested, the optical switch units included in each level of optical switches can be respectively selected as optical switch units to be tested.

[0093] The preset states of the optical switch unit include a cross state and a straight-through state. The routing and switching of the optical signal in the optical switch unit are realized by changing the control signal input to the optical switch unit. That is, the change of the control signal can control the state of the optical switch unit to switch between the cross state and the straight-through state. Generally, the optical switch unit needs to work in one of the cross state and the straight-through state. Therefore, in this step, the state of the optical switch unit to be tested is selected from the preset states.

[0094] In a Benes network, one end of the Benes network is used as the input of a test signal, and a monitoring port is used as the output of a test signal. The path along which the test signal is transmitted in the Benes network is the path to be tested. The path to be tested includes multiple optical switch units, and each optical switch unit included in the path to be tested includes at least the optical switch unit to be tested selected in this step.

[0095] Specifically, according to the state of the optical switch unit to be tested, the previous optical switch unit and the next optical switch unit connected to the optical switch unit to be tested can be determined first. Then, the state of the previous optical switch unit and the state of the next optical switch unit are determined, and then the next optical switch unit is further determined based on the state of the previous optical switch unit, until the optical switch unit as the input of the Benes network is reached. Correspondingly, the next optical switch unit is not determined based on the state memory of the next optical switch unit, until the monitoring port is reached.

[0096] For example, Figure 3 As shown, it is assumed that the optical switch unit numbered S2-4 is the optical switch unit to be tested, and the state of S2-4 is a cross state. Therefore, the previous optical switch unit connected to S2-4 in the Benes network is S1-8, and the next optical switch unit connected to S2-4 is S3-2. Furthermore, since S1-8 is an optical switch unit of the first-level optical switch and belongs to the left half port of the Benes network, S1-8 has no previous optical switch unit. The monitoring port is set between the 4th-level optical switch and the 5th-level optical switch, so according to the state of S3-2 being a cross state, it can be determined that the next optical switch unit connected to S3-2 is S4-1.

[0097] S104: According to the path to be tested, determine from the monitoring ports a target monitoring port corresponding to the optical switch unit to be tested for testing the optical switch unit to be tested.

[0098] In practical applications, the path to be tested may start from the left half port of the Benes network and end at the monitoring port; or may start from the right half port of the Benes network and end at the monitoring port. In this way, even if the monitoring port divides the Benes network into the left half and the right half, the path to be tested containing the optical switch unit to be tested can be queried regardless of whether the optical switch unit to be tested is in the left half or the right half of the Benes network. Since the monitoring port is generally deployed at the optical switch unit at the end of each optical switch unit included in the path to be tested, the target monitoring port corresponding to the optical switch unit to be tested can be determined based on the optical switch unit at the end of the path to be tested.

[0099] It should be noted that, with the deployment position of the monitoring port as the center, the Benes network is divided into the left half network or the right half network, and the optical switch unit to be tested can be an optical switch unit in the optical switch matrix of each level contained in the left half network of the Benes network, or it can be an optical switch unit in the optical switch matrix of each level contained in the right half network of the Benes network. Since the transmission direction of the test signal is different in the left and right half networks of the Benes network, when determining the optical switch unit located at the end of each optical switch unit contained in the path to be tested, it is necessary to determine it in combination with the transmission direction of the test signal in the path to be tested.

[0100] S106: A first test signal is transmitted through an optical transmitting device, and the first test signal is input into the optical switch unit located at the first position in the path to be tested based on a first mechanical optical switch, a voltage scan is performed on the optical switch unit to be tested in the path to be tested through an electric driving module, a second test signal is output from a target monitoring port through a second mechanical optical switch, and the second mechanical optical switch transmits the second test signal to an optical receiving device.

[0101] In combination with the above discussion, the order of the optical switch units included in the path to be tested can be determined by the transmission direction of the test signal in the path to be tested where the optical switch unit to be tested is located, and the optical switch unit at the first position is generally the left half port of the Benes network (an optical switch unit in the first level of optical switches sorted from left to right) or the right half port (an optical switch unit in the last level of optical switches sorted from left to right).

[0102] Among them, when the optical switch unit to be tested is located in the left half network of the Benes network, the optical switch unit located first in the path to be tested is the left port of the Benes network; when the optical switch unit to be tested is located in the right half network of the Benes network, the optical switch unit located first in the path to be tested is the right port of the Benes network.

[0103] The host computer sends a test request to the optical transmission device, and the laser in the optical transmission device responds to the test request and transmits a first test signal, which may be an optical signal. The host computer simultaneously sends a control instruction to the first mechanical optical switch to control the switch in the first mechanical optical switch corresponding to the optical switch unit located at the first position in the path to be tested to be turned on, so that through the first mechanical optical switch, the first test signal can enter the optical switch unit located at the first position in the path to be tested via the first optical fiber array, thereby starting to test the optical switch unit to be tested in the path to be tested.

[0104] At the same time, since the first test signal alone cannot enable the optical switch unit, a voltage needs to be input into the optical switch unit to be tested. Since the purpose of the test in this specification is to determine the voltage at which the optical switch unit to be tested performs best, it is necessary to continuously input multiple test voltages of different sizes into the optical switch unit to be tested, and find the optimal working voltage of the optical switch unit to be tested by observing the working performance of the optical switch unit to be tested. To this end, the voltage of the optical switch unit to be tested in the path to be tested is scanned by the electric drive module, and when the first test signal passes through the path to be tested, multiple voltage values ​​are continuously input into the optical switch unit to be tested, so that the optical switch unit to be tested works at different voltage values ​​respectively.

[0105] It should be noted here that, in the process of testing the optical switch unit to be tested, except for the optical switch unit to be tested which is voltage-enabled (voltage scanning is performed) in the test path including the optical switch unit to be tested, no voltage is enabled for other optical switch units. Thus, other optical switch units are not in a working state. Therefore, the second test signal detected from the target monitoring port can only characterize the performance of the optical switch unit to be tested.

[0106] Furthermore, after the first test signal is transmitted through the path to be tested, it can be output from the target monitoring port. The host computer sends a control instruction to the second mechanical optical switch to control the switch corresponding to the optical switch unit at the end of the path to be tested in the second mechanical optical switch to open, so that the second test signal output from the target monitoring port can be transmitted to the optical power meter of the optical receiving device through the second mechanical optical switch and the second optical fiber array at one time. The second test signal is received and recorded in real time by the optical power meter and sent to the host computer.

[0107] S108: Determine a test result of the optical switch unit to be tested according to the second test signal recorded by the optical receiving device.

[0108] Furthermore, since the voltage scanning of the optical switch unit to be tested through the electric drive module is controlled by the host computer, the host computer can obtain the test voltage range for the voltage scanning of the optical switch unit to be tested, so that the test voltage range and the second test signal obtained in real time can be matched to establish a static operating characteristic curve of the optical switch unit to be tested, that is, the optical power-voltage curve.

[0109] Based on the optical power-voltage curve, it is possible to observe at which test voltage value the optical power of the optical switch to be tested is the highest and at which test voltage value the optical power is the lowest, thereby determining the optimal operating voltage of the optical switch to be tested.

[0110] In addition, in actual applications, different states (cross or straight) of the optical switch unit to be tested correspond to different optimal operating voltages. Due to the characteristics of the optical switch unit, the optimal operating voltages corresponding to the two different states can be determined through an optical power-voltage curve, thereby eliminating the need to test the optical switch unit twice.

[0111] In the test method of the optical switch unit based on the Benes network provided in the present specification, each monitoring port is set between the intermediate optical switch and the next-level optical switch, the optical switch unit to be tested is selected and the state of the optical switch unit to be tested is obtained, so as to determine the path to be tested according to the state of the optical switch unit to be tested, and determine the target monitoring port for testing the optical switch to be tested from each monitoring port according to the path to be tested, input a first test signal to the optical switch unit located at the first position in the path to be tested, perform a voltage scan on the optical switch unit to be tested in the path to be tested, and then receive a second test signal from the target monitoring port, and determine the test result of the optical switch unit to be tested according to the second test signal.

[0112] It can be seen that the testing method of the optical switch unit based on the Benes network provided in this specification reduces the workload and error rate of manually searching for the monitoring port of the optical switch unit, automatically traverses each optical switch unit, and greatly reduces the difficulty of large-scale optical switch unit testing.

[0113] In an optional embodiment of the present specification, the state of the optical switch unit to be tested includes a cross state and a straight-through state. By changing the control signal input to the optical switch unit to be tested, the route of the optical signal in the optical switch unit to be tested can be changed, that is, the state of the optical switch unit to be tested switches between the cross state and the straight-through state. Based on this, for the optical switch unit to be tested in different states, the paths to be tested that can contain the optical switch unit to be tested will be different. Correspondingly, for the optical switch unit to be tested in different states, the optical switch units other than the optical switch unit to be tested included in the paths to be tested will also be different. For this reason, the above S102 can also determine the paths to be tested corresponding to the optical switch unit to be tested through the following scheme, such as Figure 4 As shown:

[0114] S200: Determine a first position of the optical switch unit to be tested in each level of the optical switches.

[0115] Specifically, in this specification, the optical switch units in each level of optical switches included in the Benes network can be numbered to improve the efficiency of finding the path to be tested and the target monitoring port. Specifically, the number of optical switch levels is used as a column, and the order of the optical switch units included in the first level of optical switches from top to bottom is used as a row, and the number of each optical switch unit in the Benes network is constructed in the form of "S rows-columns". For example, Figure 3 The 8th optical switch unit from top to bottom in the first-stage optical switch is numbered as "S1-8". Similarly, the 4th optical switch unit from top to bottom in the second-stage optical switch is numbered as "S2-4".

[0116] Afterwards, since the number of the optical switch unit represents the position of the optical switch unit in each level of the optical switch of the Benes network, after determining the optical switch unit to be tested, it is only necessary to query the number of the optical switch unit to be tested to determine the first position of the optical switch unit to be tested in the optical switches at each level.

[0117] S202: Determine reference optical switch units connected to the optical switch unit to be tested according to the state of the optical switch unit to be tested and the first position.

[0118] Specifically, after different control signals are applied to the optical switch unit to be tested, its state will switch between the straight-through state and the cross state. In addition, when the optical switch unit to be tested is in different states, the transmission path of the test signal in the optical switch unit to be tested is different. Therefore, the positions of the two optical switch units connected to the optical switch unit to be tested in different states will also be different. Therefore, according to the state of the optical switch unit to be tested and the first position, the reference optical switch units connected to the optical switch unit to be tested are determined.

[0119] For example, Figure 3 For example, the optical switch unit numbered S2-4 is the optical switch unit to be tested, and the state of S2-4 is a cross state. Therefore, in the Benes network, the previous optical switch unit connected to S2-4 is S1-8, and the next optical switch unit connected to S2-4 is S3-2. Therefore, S1-8 and S3-2 are both reference optical switch units directly connected to the optical switch unit S2-4 to be tested.

[0120] It should be noted here that in order to establish a complete path to be tested from one side port (left half port or right half port) of the Benes network to the monitoring port, in addition to determining the reference optical switch units connected to the optical switch unit to be tested, it is also necessary to determine other reference optical switch units connected to the reference optical switch units directly connected to the optical switch unit to be tested, that is, the so-called "connection" in this specification is not only a direct connection with the optical switch unit to be tested, but also an indirect connection with the optical switch unit to be tested (that is, a connection with the directly connected reference optical switch units).

[0121] For example, still taking the above as an example, since S1-8 is the optical switch unit of the first-level optical switch and belongs to the left half port of the Benes network, S1-8 does not have a previous optical switch unit. The monitoring port is set between the fourth-level optical switch and the fifth-level optical switch, so according to the state of S3-2 being the cross state, it can be determined that the next optical switch unit connected to S3-2 is S4-1. Therefore, S4-1 is the reference optical switch unit indirectly connected to the optical switch unit to be tested S2-4.

[0122] S204: respectively determine the second positions of the reference optical switch units in the optical switches of each level.

[0123] Similar to the above step S200, after determining each reference optical switch unit, the serial number of each reference optical switch unit is queried to determine each second position of each reference optical switch unit in each level of optical switch, which will not be described in detail here.

[0124] S206: Connecting the optical switch unit to be tested and the reference optical switch units in sequence according to the first position and the second positions to obtain a path to be tested of the optical switch unit to be tested.

[0125] In this specification, the path to be tested starts with a side port (left half port or right half port) of the Benes network and ends with a monitoring port. The path to be tested at least includes an optical switch unit to be tested. As for the number of optical switch units included in the path to be tested, it can be determined based on the number of optical switches included in the network on one side of the Benes network where the optical switch unit to be tested is located.

[0126] Further, in one or more embodiments of the present specification, the above step S104 can also be implemented by the following schemes: Figure 5 As shown:

[0127] S300: Determine each optical switch unit included in the path to be tested.

[0128] Specifically, in this specification, after determining the path to be tested where the optical switch to be tested is located in S102, each optical switch unit included in the path to be tested can be determined.

[0129] S302: Determine the signal transmission direction of the path to be tested according to the positions of the optical switch units included in the path to be tested in the optical switches of each level, as the designated direction corresponding to the path to be tested.

[0130] Because before this step, all optical switch units included in the optical switches at each level in the Benes network can be numbered, the positions of the optical switch units included in the path to be tested in the optical switches at each level can be determined by finding the numbers corresponding to the optical switch units included in the path to be tested.

[0131] Further, according to the position of the optical switch unit to be tested, the optical switch where the optical switch unit to be tested is located is determined, and based on whether the optical switch where the optical switch unit to be tested is located in the left half or the right half in the Benes network, it is determined whether the optical switch unit to be tested is located in the left half or the right half in the Benes network. Further, based on this, the signal transmission direction of the path to be tested is determined.

[0132] Specifically, when the optical switch unit to be tested is in the left half of the Benes network, the signal transmission direction of the path to be tested is input from the left half port of the Benes network and output from the target monitoring port corresponding to the optical switch unit to be tested. When the optical switch unit to be tested is in the right half of the Benes network, the signal transmission direction of the path to be tested is input from the right half port of the Benes network and output from the target monitoring port corresponding to the optical switch unit to be tested.

[0133] S304: Determine, according to the specified direction, an optical switch unit located at the end among the optical switch units included in the path to be tested.

[0134] Furthermore, based on the specified direction corresponding to the path to be tested, the optical switch unit located at the first position in the path to be tested can be determined. Thus, starting from the optical switch unit located at the first position and traversing each optical switch unit in the path to be tested along the specified direction, the optical switch unit located at the last position among the optical switch units included in the path to be tested can be determined.

[0135] S306: Determine a target monitoring port corresponding to the optical switch unit to be tested according to the optical switch unit located at the end.

[0136] Since each monitoring port is deployed between the intermediate optical switch and the optical switch at the next level of the intermediate optical switch, the optical switch unit at the end of the path to be tested belongs to the intermediate optical switch, or belongs to the optical switch at the next level of the intermediate optical switch. Since there is a corresponding relationship between each monitoring port and each optical switch unit included in the intermediate optical switch or each optical switch unit included in the optical switch at the next level of the intermediate optical switch, the optical switch unit at the end is determined, and based on the optical switch unit at the end and the corresponding relationship, the target monitoring port corresponding to the optical switch unit to be tested can be determined.

[0137] Furthermore, based on Figure 3After the scheme determines the designated direction corresponding to the path to be tested including the optical switch unit to be tested, in addition to determining the target monitoring port based on the optical switch unit located at the end of each optical switch unit included in the path to be tested, the optical switch unit located at the first position among each optical switch unit included in the path to be tested can also be determined based on the designated direction corresponding to the path to be tested. Thus, in the above S106, the first test signal is directly input by using the optical transmitting device based on the optical switch unit located at the first position determined by the designated direction, thereby starting to test the optical switch unit to be tested.

[0138] In an optional embodiment of this specification, if Figure 1 In step S106, the voltage scanning is performed on the optical switch unit to be tested in the path to be tested by the electric drive module. In this specification, the purpose of the voltage scanning is to detect the static working characteristics of the optical switch unit to be tested under different test voltage values, especially the optical power characteristics, so as to find the test voltage corresponding to the maximum optical power value, so as to find the optimal working voltage of the optical switch unit to be tested. In order to achieve the purpose of voltage scanning of the optical switch unit to be tested, it is necessary to gradually change the voltage applied to the optical switch unit to be tested by the electric drive module. Based on this, it can be implemented according to the following scheme:

[0139] The first step: determining the test voltage range of the optical switch unit to be tested.

[0140] Specifically, when the optical switch unit to be tested is designed and manufactured, there is a preset optimal operating voltage. It is only due to the limitations of the manufacturing process that there is a difference between its actual optimal operating voltage and the preset optimal operating voltage. This specification is intended to test the actual optimal operating voltage of the optical switch unit to be tested.

[0141] Generally, although the manufacturing process of the optical switch unit limits the accuracy of the optimal operating voltage of the optical switch unit to be tested, the difference between its actual optimal operating voltage and the preset optimal operating voltage is generally within a controllable range. For this reason, the test voltage range can be determined based on the preset optimal operating voltage of the optical switch unit to be tested so that the test voltage range can include the actual optimal operating voltage.

[0142] Of course, if the actual optimal operating voltage of the optical switch unit to be tested is not found based on the second test signal, the test voltage range may be adjusted and the test may be performed again to improve the accuracy of the test.

[0143] In this manual, the test voltage range is taken as -1.5V to +1.5V as an example.

[0144] Step 2: Determine a first input level and a second input level according to the test voltage range, wherein the first input level is a bias level with a fixed amplitude, and the second input level is a control level that increases according to a preset step size;

[0145] The voltage scan is to apply a continuous test voltage to the optical switch unit to be tested, so that the optical switch unit to be tested transmits the test signal under different test voltages. To this end, a first input level can be loaded on one end of the optical switch unit to be tested, and a second input level can be loaded on the other end of the optical switch unit to be tested. By superimposing the first input level and the second input level, the optical switch unit to be tested can work under a continuous test voltage within the test voltage range.

[0146] Specifically, the first input level may be a bias level with a fixed amplitude, and the second input level may be a control level with a preset step size, and the specific size of the step size and the increment range may be determined based on the fixed amplitude of the first input level and the test voltage range. Thus, the superposition of the first input level and the second input level is a continuously changing test voltage signal. Of course, it may also be the other way around, that is, the second input level is a fixed bias level, and the first input level may be a control level with an increment step size, and this specification does not limit this.

[0147] The first input level and the second input level may be determined according to a test voltage range.

[0148] For example, still taking the test voltage range of -1.5V to +1.5V as an example, the first input level can be a fixed bias voltage of 1.5V, and the second input level can be a voltage signal that periodically increases from 0-3V. The superposition of the two can realize the voltage scanning of the optical switch unit to be tested from -1.5V to +1.5V.

[0149] Step 3: input the first input level to the first input terminal of the optical switch unit to be tested and input the second input level to the second input terminal of the optical switch unit to be tested through the electric driving module, so that the optical switch unit to be tested performs voltage scanning.

[0150] Furthermore, after the voltage scan is performed on the optical switch unit to be tested according to the above scheme, when the first test signal is input to the path to be tested, the second test signal that is continuously output during the voltage scan of the optical switch unit to be tested can be received from the target monitoring port by an optical receiving device, so as to analyze and obtain the test result of the optical switch unit to be tested based on the second test signal. In this specification, the second test signal is also an optical signal, but due to the effect of the optical switch unit to be tested on the path to be tested, the first test signal and the second test signal are different in power. Therefore, the second test signal is received by the optical power meter in the optical receiving device, and the optical power of the second test signal is analyzed, so as to obtain a test result that can characterize the performance of the optical switch unit to be tested. This specification takes the test result as the test voltage corresponding to the maximum optical power as an example, and the specific technical scheme is explained below.

[0151] Specifically, the relationship between the optical power and the test voltage of the optical switch unit to be tested is determined according to the second test signal and the test voltage range. Figure 6 The optical power variation curve of the optical switch unit to be tested under different test voltage values ​​is determined according to the second test signal and the test voltage range, that is, the optical power-voltage curve of the optical switch unit to be tested.

[0152] Since the working state of the optical switch unit to be tested can be a cross state or a straight state, the optimal working voltage of the optical switch unit to be tested will be different in different states. Specifically:

[0153] When the state of the optical switch unit to be tested is a cross state, then in the relationship, the test voltage corresponding to the minimum optical power of the optical switch unit to be tested is the optimal working voltage of the optical switch unit to be tested in the through state, and the test voltage corresponding to the maximum optical power of the optical switch unit to be tested is the optimal working voltage of the optical switch unit to be tested in the cross state.

[0154] When the state of the optical switch unit to be tested is a through state, then in the relationship, the test voltage corresponding to the minimum optical power of the optical switch unit to be tested is the optimal working voltage of the optical switch unit to be tested in the cross state, and the test voltage corresponding to the maximum optical power of the optical switch unit to be tested is the optimal working voltage of the optical switch unit to be tested in the through state.

[0155] by Figure 6For example, the optical power-voltage curve of the optical switch unit to be tested is obtained based on the voltage scanning of the optical switch unit to be tested in the cross state. The curve represents the change of optical power when different test voltages are applied to the optical switch unit to be tested in the cross state. Among them, point V1 corresponds to the maximum value of the optical power-voltage curve, and point V2 corresponds to the maximum value of the optical power-voltage curve. Since the curve is obtained by testing when the optical switch unit to be tested is in the cross state, the test voltage value corresponding to point V1 is the optimal working voltage of the optical switch unit to be tested in the cross state, and the test voltage value corresponding to point V2 is the optimal working voltage of the optical switch unit to be tested in the straight-through state.

[0156] If the curve represents the change in optical power when different test voltages are applied to the optical switch unit to be tested in the straight-through state, then contrary to the above, the test voltage value corresponding to point V1 is the optimal operating voltage of the optical switch unit to be tested in the straight-through state, and the test voltage value corresponding to point V2 is the optimal operating voltage of the optical switch unit to be tested in the crossover state.

[0157] Figure 7 A schematic diagram of a test device for an optical switch unit based on a Benes network provided in this specification, wherein the Benes network includes optical switches at various levels, and each optical switch at various levels includes multiple optical switch units; the device specifically includes:

[0158] The monitoring port determination module 400 is used to select an intermediate optical switch from the optical switches of each level of the Benes network, and set each monitoring port between the intermediate optical switch and the optical switch of the next level of the intermediate optical switch; wherein each optical switch of each level of the optical switch comprises a plurality of optical switch units;

[0159] A to-be-tested path determination module 402 is used to select an optical switch unit to be tested from the optical switches of each level, select a state of the optical switch unit to be tested from various preset states, and determine, according to the state of the optical switch unit to be tested, a to-be-tested path in the optical switches of each level that includes the optical switch unit to be tested;

[0160] A target monitoring port determination module 404 is used to determine, according to the path to be tested, from the monitoring ports, a target monitoring port corresponding to the optical switch unit to be tested for testing the optical switch unit to be tested;

[0161] The test module 406 is used to transmit a first test signal through an optical transmitting device, and input the first test signal into the optical switch unit located at the first position in the path to be tested based on a first mechanical optical switch, perform voltage scanning on the optical switch unit to be tested in the path to be tested through an electric driving module, output a second test signal from a target monitoring port through a second mechanical optical switch, and transmit the second test signal to an optical receiving device through the second mechanical optical switch;

[0162] The test result determination module 408 is used to determine the test result of the optical switch unit to be tested according to the second test signal recorded by the optical receiving device.

[0163] Optionally, the monitoring port determination module 400 is specifically used to select a target output port from several output ports included in each optical switch unit included in the intermediate optical switch; determine, according to the target output port, a designated optical switch unit corresponding to the optical switch unit among the optical switch units included in the next-level optical switch; and set a monitoring port between the target output port of the optical switch unit and the input port of the designated optical switch unit corresponding to the optical switch unit.

[0164] Optionally, the state of the optical switch unit to be tested includes a cross state and a through state;

[0165] Optionally, the module 402 for determining the path to be tested is specifically used to determine the first position of the optical switch unit to be tested in the optical switches at each level; determine the reference optical switch units connected to the optical switch unit to be tested according to the state of the optical switch unit to be tested and the first position; respectively determine the second positions of the reference optical switch units in the optical switches at each level; and connect the optical switch unit to be tested and the reference optical switch units in sequence according to the first position and the second positions to obtain the path to be tested of the optical switch unit to be tested.

[0166] Optionally, the target monitoring port determination module 404 is specifically used to determine the optical switch units included in the path to be tested; determine the signal transmission direction of the path to be tested as the designated direction corresponding to the path to be tested according to the positions of the optical switch units included in the path to be tested in the optical switches at each level; determine the optical switch unit located at the end among the optical switch units included in the path to be tested according to the designated direction; and determine the target monitoring port corresponding to the optical switch unit to be tested according to the optical switch unit located at the end.

[0167] Optionally, the device further comprises:

[0168] The search module 410 is specifically configured to determine, according to the specified direction, the optical switch unit located at the first position among the optical switch units included in the path to be tested.

[0169] Optionally, the test module 406 is specifically used to determine a test voltage range of the optical switch unit to be tested; determine a first input level and a second input level according to the test voltage range; wherein the first input level is a bias level with a fixed amplitude, and the second input level is a control level that increases according to a preset step size; input the first input level to the first input end of the optical switch unit to be tested, and input the second input level to the second input end of the optical switch unit to be tested, through an electric drive module, so that the optical switch unit to be tested performs a voltage scan.

[0170] Optionally, the test result determination module 408 is specifically used to determine the relationship between the optical power and the test voltage of the optical switch unit to be tested according to the second test signal recorded by the optical receiving device and the test voltage range; when the state of the optical switch unit to be tested is a cross state, then in the relationship, the test voltage corresponding to the minimum optical power of the optical switch unit to be tested is the optimal working voltage of the optical switch unit to be tested in a straight-through state, and the test voltage corresponding to the maximum optical power of the optical switch unit to be tested is the optimal working voltage of the optical switch unit to be tested in a cross state; when the state of the optical switch unit to be tested is a straight-through state, then in the relationship, the test voltage corresponding to the minimum optical power of the optical switch unit to be tested is the optimal working voltage of the optical switch unit to be tested in the cross state, and the test voltage corresponding to the maximum optical power of the optical switch unit to be tested is the optimal working voltage of the optical switch unit to be tested in the straight-through state.

[0171] This specification also provides a computer-readable storage medium, which stores a computer program, which can be used to execute the above Figure 2 The test method of the optical switch unit based on the Benes network is shown.

[0172] This manual also provides Figure 8 The schematic structure diagram of the electronic device shown in FIG. Figure 8 As mentioned above, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 2The test method of the optical switch unit based on the Benes network is shown. Of course, in addition to the software implementation, this specification does not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0173] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0174] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

[0175] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0176] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0177] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0178] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0179] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0180] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0181] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0182] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0183] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0184] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0185] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0186] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0187] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0188] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.

Claims

1. A test method for an optical switch unit based on a Benes network, characterized in that: The Benes network includes optical switches at various levels, and each optical switch at each level includes multiple optical switch units; the method is applied to a host computer, and the host computer belongs to a test system for optical switch units based on the Benes network, and the system also includes an optical transmitting device, a first mechanical optical switch, an optical receiving device, a second mechanical optical switch, and an electric driving module; The method comprises: Selecting an intermediate optical switch from the optical switches of each level of the Benes network, and setting each monitoring port between the intermediate optical switch and the optical switch of the next level of the intermediate optical switch; Selecting an optical switch unit to be tested from the optical switches of each level, selecting a state of the optical switch unit to be tested from various preset states, and determining a path to be tested in the optical switches of each level that includes the optical switch unit to be tested according to the state of the optical switch unit to be tested; According to the path to be tested, determining from the monitoring ports a target monitoring port corresponding to the optical switch unit to be tested for testing the optical switch unit to be tested; Transmitting a first test signal through an optical transmitting device, and inputting the first test signal into the optical switch unit located at the first position in the path to be tested based on a first mechanical optical switch, performing a voltage scan on the optical switch unit to be tested in the path to be tested through an electric driving module, outputting a second test signal from a target monitoring port through a second mechanical optical switch, and transmitting the second test signal to an optical receiving device through the second mechanical optical switch; Determining a test result of the optical switch unit to be tested according to the second test signal recorded by the optical receiving device; The monitoring ports are arranged between the intermediate optical switch and the next optical switch of the intermediate optical switch, specifically including: For each optical switch unit included in the intermediate optical switch, a target output port is selected from a plurality of output ports included in the optical switch unit; wherein the target output port is one of the plurality of output ports included in the optical switch unit; According to the target output port, determining a designated optical switch unit corresponding to the optical switch unit among the optical switch units included in the next-stage optical switch; A monitoring port is provided between a target output port of the optical switch unit and an input port of a designated optical switch unit corresponding to the optical switch unit; The transmitting device includes a laser and a first optical fiber array, and the optical receiving device includes a second optical fiber array and an optical power meter; When the optical switch unit to be tested belongs to the left half network of the Benes network, the signal output end of the laser is connected to the first end of the first mechanical optical switch, the second end of the first mechanical optical switch is connected to the first end of the first optical fiber array, and the second end of the first optical fiber array is connected to the first-level optical switch of the left half network of the Benes network; the monitoring port set in the Benes network is connected to the first end of the second optical fiber array, the second end of the second optical fiber array is connected to the first end of the second mechanical optical switch, and the second end of the second mechanical optical switch is connected to the signal receiving end of the optical power meter; wherein the first-level optical switch of the left half network of the Benes network is the first-level optical switch of the Benes network sorted from left to right; When the optical switch unit to be tested belongs to the right half network of the Benes network, the signal output end of the laser is connected to the first end of the first mechanical optical switch, the second end of the first mechanical optical switch is connected to the first end of the first optical fiber array, and the second end of the first optical fiber array is connected to the first-level optical switch of the right half network of the Benes network; the monitoring port set in the Benes network is connected to the first end of the second optical fiber array, the second end of the second optical fiber array is connected to the first end of the second mechanical optical switch, and the second end of the second mechanical optical switch is connected to the signal receiving end of the optical power meter; wherein the first-level optical switch of the right half network of the Benes network is the first-level optical switch of the Benes network sorted from right to left; The method of transmitting a first test signal through an optical transmitting device and inputting the first test signal into an optical switch unit located at the first position in the path to be tested based on a first mechanical optical switch specifically includes: The first test signal is emitted by the laser, and sequentially passes through the first mechanical optical switch and the first optical fiber array, and the first test signal is input into the optical switch unit located at the first position in the path to be tested; Outputting the second test signal from the target monitoring port through the second mechanical optical switch, and transmitting the second test signal to the optical receiving device through the second mechanical optical switch, specifically includes: The second test signal output from the target detection port is transmitted to the optical power meter via the second optical fiber array and the second mechanical optical switch in sequence.

2. The method according to claim 1, characterized in that The state of the optical switch unit to be tested includes a cross state and a through state; The step of determining the paths to be tested in the optical switches of each level including the optical switch unit to be tested according to the state of the optical switch unit to be tested specifically includes: Determine a first position of the optical switch unit to be tested in each level of the optical switches; Determine, according to the state of the optical switch unit to be tested and the first position, each reference optical switch unit connected to the optical switch unit to be tested; Respectively determining the second positions of the reference optical switch units in the optical switches of each level; According to the first position and the second positions, the optical switch unit to be tested and the reference optical switch units are connected in sequence to obtain a path to be tested of the optical switch unit to be tested.

3. The method according to claim 1, characterized in that The step of determining, according to the path to be tested, from the monitoring ports, a target monitoring port corresponding to the optical switch unit to be tested for testing the optical switch unit to be tested specifically includes: Determine each optical switch unit included in the path to be tested; Determine, according to the positions of the optical switch units included in the path to be tested in the optical switches at each level, the signal transmission direction of the path to be tested as the designated direction corresponding to the path to be tested; According to the specified direction, determining the optical switch unit located at the end among the optical switch units included in the path to be tested; According to the optical switch unit located at the end, a target monitoring port corresponding to the optical switch unit to be tested is determined.

4. The method according to claim 3, characterized in that Inputting the first test signal into the optical switch unit located at the first position in the path to be tested based on the first mechanical optical switch, the method further includes: According to the designated direction, the optical switch unit located at the first position among the optical switch units included in the path to be tested is determined.

5. The method according to claim 1, characterized in that The method of performing voltage scanning on the optical switch unit to be tested in the path to be tested by the electric driving module specifically includes: Determining a test voltage range of the optical switch unit to be tested; Determine a first input level and a second input level according to the test voltage range; wherein the first input level is a bias level with a fixed amplitude, and the second input level is a control level that increases according to a preset step size; The first input level is input to the first input end of the optical switch unit to be tested and the second input level is input to the second input end of the optical switch unit to be tested through the electric driving module, so that the optical switch unit to be tested performs voltage scanning.

6. The method according to claim 5, characterized in that Determining a test result of the optical switch unit to be tested according to the second test signal recorded by the optical receiving device specifically includes: Determining the relationship between the optical power and the test voltage of the optical switch unit to be tested according to the second test signal recorded by the optical receiving device and the test voltage range; When the state of the optical switch unit to be tested is a cross state, then in the relationship, the test voltage corresponding to the minimum optical power of the optical switch unit to be tested is the optimal working voltage of the optical switch unit to be tested in the through state, and the test voltage corresponding to the maximum optical power of the optical switch unit to be tested is the optimal working voltage of the optical switch unit to be tested in the cross state; When the state of the optical switch unit to be tested is a through state, then in the relationship, the test voltage corresponding to the minimum optical power of the optical switch unit to be tested is the optimal working voltage of the optical switch unit to be tested in the cross state, and the test voltage corresponding to the maximum optical power of the optical switch unit to be tested is the optimal working voltage of the optical switch unit to be tested in the through state.

7. A test system for an optical switch unit based on a Benes network, characterized in that: The system comprises: a light emitting device, a first mechanical optical switch, a light receiving device, a second mechanical optical switch, an electric driving module and a host computer; The host computer is used to execute the test method of the optical switch unit based on the Benes network according to any one of claims 1 to 6; The electric drive module is used to perform voltage scanning on the optical switch unit to be tested in the Benes network; The optical transmission device is used to transmit a first test signal; The optical receiving device is used to receive and record the second test signal; The first mechanical optical switch is used to input the first test signal emitted by the optical emitting device into the optical switch unit located at the first position in the path to be tested; The second mechanical optical switch is used to output a second test signal from a target monitoring port corresponding to the optical switch unit to be tested, and send the second test signal to the optical receiving device.

8. A test device for an optical switch unit based on a Benes network, characterized in that: The Benes network includes optical switches at various levels, and each optical switch at each level includes multiple optical switch units; the device is applied to a host computer, and the host computer belongs to a test system for optical switch units based on the Benes network, and the system also includes an optical transmitting device, a first mechanical optical switch, an optical receiving device, a second mechanical optical switch, and an electric driving module; The device comprises: A monitoring port determination module is used to select an intermediate optical switch from the optical switches of each level of the Benes network, and set each monitoring port between the intermediate optical switch and the optical switch of the next level of the intermediate optical switch; wherein each optical switch of each level of the optical switch comprises a plurality of optical switch units; A to-be-tested path determination module, used for selecting an optical switch unit to be tested from the optical switches of each level, selecting a state of the optical switch unit to be tested from various preset states, and determining a to-be-tested path including the optical switch unit to be tested in the optical switches of each level according to the state of the optical switch unit to be tested; A target monitoring port determination module, used to determine, from the monitoring ports, a target monitoring port corresponding to the optical switch unit to be tested for testing the optical switch unit to be tested according to the path to be tested; A test module, configured to transmit a first test signal through an optical transmitting device, and input the first test signal into the optical switch unit located at the first position in the path to be tested based on a first mechanical optical switch, perform voltage scanning on the optical switch unit to be tested in the path to be tested through an electric driving module, output a second test signal from a target monitoring port through a second mechanical optical switch, and transmit the second test signal to an optical receiving device through the second mechanical optical switch; A test result determination module, used to determine the test result of the optical switch unit to be tested according to the second test signal recorded by the optical receiving device; The monitoring port determination module is specifically used to select a target output port from a plurality of output ports included in each optical switch unit included in the intermediate optical switch; wherein the target output port is one of the plurality of output ports included in the optical switch unit; according to the target output port, determine a designated optical switch unit corresponding to the optical switch unit among the optical switch units included in the next-stage optical switch; and set a monitoring port between the target output port of the optical switch unit and an input port of the designated optical switch unit corresponding to the optical switch unit; The transmitting device includes a laser and a first optical fiber array, and the optical receiving device includes a second optical fiber array and an optical power meter; When the optical switch unit to be tested belongs to the left half network of the Benes network, the signal output end of the laser is connected to the first end of the first mechanical optical switch, the second end of the first mechanical optical switch is connected to the first end of the first optical fiber array, and the second end of the first optical fiber array is connected to the first-level optical switch of the left half network of the Benes network; the monitoring port set in the Benes network is connected to the first end of the second optical fiber array, the second end of the second optical fiber array is connected to the first end of the second mechanical optical switch, and the second end of the second mechanical optical switch is connected to the signal receiving end of the optical power meter; wherein the first-level optical switch of the left half network of the Benes network is the first-level optical switch of the Benes network sorted from left to right; When the optical switch unit to be tested belongs to the right half network of the Benes network, the signal output end of the laser is connected to the first end of the first mechanical optical switch, the second end of the first mechanical optical switch is connected to the first end of the first optical fiber array, and the second end of the first optical fiber array is connected to the first-level optical switch of the right half network of the Benes network; the monitoring port set in the Benes network is connected to the first end of the second optical fiber array, the second end of the second optical fiber array is connected to the first end of the second mechanical optical switch, and the second end of the second mechanical optical switch is connected to the signal receiving end of the optical power meter; wherein the first-level optical switch of the right half network of the Benes network is the first-level optical switch of the Benes network sorted from right to left; The test module is specifically used to transmit a first test signal through the laser, pass through the first mechanical optical switch and the first optical fiber array in sequence, and input the first test signal into the optical switch unit located at the first position in the path to be tested; The test module is specifically used to transmit the second test signal output from the target detection port to the optical power meter via the second optical fiber array and the second mechanical optical switch in sequence.

9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 6 is implemented.