A testing method, system, device, and storage medium for active optical cables.
By using computer programs to control terminal equipment for 400G cable testing, the high cost problem has been solved, and low-cost, high-reliability cable testing has been achieved.
Patent Information
- Application Number
- CN202410164542.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-05
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2044-02-05
AI Technical Summary
Currently, 400G cable testing equipment is expensive. How can we reduce testing costs?
Testing is conducted by controlling existing terminal equipment through computer programs, including preliminary detection of cable connections, removal of interference data, acquisition of bit error rate and signal quality, and simulation of data attack scenarios to identify packet loss and latency anomalies, thus avoiding the use of dedicated testing instruments.
This reduces testing costs, improves the reliability and accuracy of test information, identifies defective cables for repair, and ensures cable reliability.
Smart Images

Figure CN118041439B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of optical cable testing, and in particular to a testing method, system, device and storage medium for active optical cables. Background Technology
[0002] 400G cable testing is a common task in data centers and large-scale networks. As data transmission rates continue to increase, the testing requirements for cables are also becoming more stringent.
[0003] Many manufacturers have launched testing solutions for 400G cables, offering comprehensive testing capabilities including bit error rate (BER) testing, eye diagram testing, and jitter testing. Due to the extremely high data transmission rate of 400G cables, the requirements for testing accuracy are also very high, making testing equipment expensive. Therefore, reducing the cost of cable testing is a pressing technical problem that needs to be solved. Summary of the Invention
[0004] This application provides a testing method, system, device, and storage medium for active optical cables. It allows for testing using existing terminal equipment controlled by a computer program, eliminating the need to develop new testing equipment and thus reducing testing costs.
[0005] The first aspect of this application provides a testing method for active optical cables: a testing method for active optical cables, applied to the cable under test, the method comprising:
[0006] Obtain the test command for the cable under test;
[0007] According to the test command of the cable under test, determine whether there is a connection abnormality. The connection abnormality is an abnormal state such as no cable is inserted into the target port, no normal connection, and / or inconsistent speed.
[0008] If there is no connection anomaly, then clear the interference data. The interference data consists of residual information generated after the most recent batch of tested cables were disconnected and the access information of the cable to be tested.
[0009] Obtain the port information of the target port, the port information including bit error rate and signal quality;
[0010] Based on the bit error rate and signal quality, determine whether there is a signal anomaly;
[0011] If no signal abnormality is found, log information is obtained after a preset control time, and the target port is judged to have packet loss, delay abnormality and / or disconnection based on the log information.
[0012] If there is no packet loss, no delay anomaly, and / or no connection failure, then the cable under test is determined to have completed the cable test.
[0013] By adopting the above technical solution, after the program is imported into the testing equipment, the equipment first performs a preliminary test on the cable under test at the access port, that is, it checks whether the cable is connected, whether the connection is secure, and whether the port detection rate matches the theoretical rate. After the preliminary test is passed, interference data is cleared to avoid residual information from the previous batch of tested cables and unstable information when the cable under test is newly connected, thereby improving information reliability. Then, the bit error rate and signal quality of the port are obtained to determine whether there are any anomalies. After confirming that there are no anomalies, the target port is controlled to simulate a scenario of large-scale data attack, and is tested again after the corresponding control time to determine whether there are any packet loss, delay anomalies, and / or disconnection. If none are found, the cable under test is determined to have passed the test. Thus, the computer program performs the test on the cable under test, avoiding the use of specific testing instruments and reducing testing costs.
[0014] Optionally, the method further includes:
[0015] If the connection error exists, a connection error message will be sent.
[0016] Repair the connection error according to the connection error message until the error state is resolved.
[0017] By adopting the above technical solution, if a connection failure or speed inconsistency is found between the cable under test and the target port during the initial inspection, a corresponding cable abnormality warning message is sent and the cable is returned for repair. After repair, the cable is tested again until no abnormalities are found before proceeding to the next inspection step. This process effectively filters out a batch of cables that may have quality problems during the initial inspection, allowing for timely repair.
[0018] Optionally, the method further includes:
[0019] If the cable under test is abnormal, a signal abnormality prompt message will be sent.
[0020] Perform fault repair based on the signal anomaly message until the signal anomaly is resolved.
[0021] By adopting the above technical solution, after the initial test is passed, the interference log information is cleared and the bit error rate and signal quality of the target port are obtained to determine whether there is a quality problem with the cable under test. If there is, an abnormality prompt message is sent accordingly. After the corresponding repair is carried out according to the prompt message, the test is repeated until the abnormality is resolved before proceeding to the next test step. Thus, a second test is performed after the initial test, and a batch of cables under test with excessively high bit error rates and / or poor signal quality are screened out and returned for repair.
[0022] Optionally, the method further includes:
[0023] If the packet loss, latency anomaly, and / or connection failure occurs, a reliability anomaly warning message will be sent.
[0024] Perform fault repair based on the reliability anomaly message until there are no more packet loss, latency anomalies, or connection drops.
[0025] By adopting the above technical solution, the target port is controlled to simulate a scenario where a large amount of data is sent through the port of the cable under test. After simulating the preset control time, the log information is read to determine whether there is packet loss, delay anomaly and / or disconnection, thereby detecting the reliability of the cable under test. If there is, an anomaly prompt is sent accordingly, and the cable is returned for maintenance based on the anomaly prompt to ensure the reliability of the cable under test.
[0026] Optionally, before the step of obtaining the port information of the target port, wherein the port information includes the bit error rate and signal quality of the cable under test, the method further includes:
[0027] Obtain the serial number of the cable under test;
[0028] The serial number of the cable under test is associated with the cable under test one by one for the purpose of anomaly tracing in subsequent testing.
[0029] By adopting the above technical solution, the serial number of the cable under test is associated with the cable under test one by one, and the serial number of the cable under test is returned to ensure that the test data corresponds one by one with the cable under test, and subsequent anomalies can be traced.
[0030] Optionally, the step of obtaining log information after a preset control time if the cable under test does not have any abnormalities includes:
[0031] The target port is subjected to pressure to control it into port storm mode, in which a large amount of fake traffic is generated to simulate a network attack scenario.
[0032] After entering the port storm mode, the log information is obtained after the control period.
[0033] By adopting the above technical solution, the target port is pressured to enter port storm mode. In port storm mode, the target port receives a large amount of data and simulates a large amount of data entering. After the control period, log information is read to determine the performance and defense capabilities of the target port.
[0034] Optionally, before the step of obtaining the test command for the cable under test, the method includes:
[0035] Get test management instructions;
[0036] According to the test management instructions, the test terminal is connected to the test system to perform the cable test through the test terminal.
[0037] By adopting the above technical solution, the corresponding management permissions are obtained and corresponding test management instructions are sent based on the management permissions, so as to connect the relevant terminal devices under management. Then, according to the test management instructions, the terminal under test is connected to the manager so that the subsequent test steps can be executed through the manager.
[0038] A second aspect of this application provides a testing system for active optical cables, comprising:
[0039] The test command acquisition module is used to acquire test commands for the cable under test.
[0040] The first anomaly detection module is used to determine whether there is a connection anomaly based on the test command of the cable under test. The connection anomaly is an abnormal state such as no cable is inserted into the target port, no normal connection, and / or inconsistent speed.
[0041] The interference data clearing module is used to clear interference data if there is no connection abnormality. The interference data includes residual information generated after the most recent batch of tested cables were disconnected and access information of the cable to be tested.
[0042] The port information acquisition module is used to acquire the port information of the target port, including bit error rate and signal quality.
[0043] The second anomaly detection module is used to determine whether there is a signal anomaly based on the bit error rate and signal quality.
[0044] The third anomaly detection module is used to obtain log information after a preset control time if there is no signal anomaly, and to determine whether there is packet loss, delay anomaly and / or disconnection on the target port based on the log information.
[0045] The test completion determination module is used to determine that the cable under test has completed the cable test if there is no packet loss, delay abnormality and / or disconnection.
[0046] A third aspect of this application provides an apparatus including a memory and a processor, the memory storing a computer program capable of executing the above-described test method for active optical cables.
[0047] The fourth aspect of this application provides a storage medium storing a computer program capable of executing the above-described test method for active optical cables.
[0048] In summary, this application has at least one of the following beneficial effects:
[0049] 1. After importing the program into the testing equipment, the equipment first performs a preliminary test on the cable under test at the access port, that is, it checks whether the cable is connected, whether the connection is secure, and whether the port detection rate matches the theoretical rate. After the preliminary test is passed, interference data is cleared to avoid residual information from the previous batch of tested cables and unstable information when the cable under test is newly connected, thereby improving information reliability. Then, the bit error rate and signal quality of the port are obtained to determine if there are any anomalies. After confirming that there are no anomalies, the target port is controlled to simulate a scenario of large-scale data attack, and is tested again after the corresponding control time to determine if there are any packet loss, delay anomalies, and / or disconnection. If none are found, the cable under test is determined to have passed the test. Thus, the cable under test is tested by the computer program, avoiding the use of specific testing instruments and reducing testing costs.
[0050] 2. After the initial test passes, the interference log information is cleared and the bit error rate and signal quality of the target port are obtained to determine whether there is a quality problem with the cable under test. If so, an abnormality prompt message is sent accordingly. Repairs are carried out according to the prompt message, and the test is repeated until the abnormality is resolved before proceeding to the next testing step. This secondary test after the initial test filters out a batch of cables under test with excessively high bit error rates and / or poor signal quality and returns them for repair. Clearing the log information can avoid interference from residual information of the most recently tested cables and inaccurate information caused by the instability of newly connected cables under test, thereby improving the reliability of the log information.
[0051] 3. Apply pressure to the target port to put it into port storm mode. In port storm mode, the target port receives a large amount of data and simulates a large influx of data. After the control period, read the log information to determine the performance and defense capabilities of the target port. If the preset control period is simulated, read the log information to determine whether there is packet loss, delay anomaly and / or disconnection, thereby detecting the reliability of the cable under test. If any issues are found, send an anomaly prompt and return to maintenance based on the anomaly prompt to ensure the reliability of the cable under test. Attached Figure Description
[0052] Figure 1 This is a schematic flowchart of the testing method for active optical cables provided in the embodiments of this application;
[0053] Figure 2 This is a virtual structural diagram of the active optical cable testing system provided in this application. Detailed Implementation
[0054] The following embodiments will help those skilled in the art to further understand the function of this application, but do not limit this application in any way. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of this application. These all fall within the protection scope of this application.
[0055] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.
[0056] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.
[0057] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0058] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if [the described condition or event] is detected" may be interpreted, depending on the context, as "once determined," "in response to determination," "once [the described condition or event] is detected," or "in response to detection of [the described condition or event]."
[0059] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0060] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0061] To make the purpose, technical solution and advantages of this application clearer, the testing method of the active optical cable of this application will be described below from the perspective of the testing device for the active optical cable. The testing device for the active optical cable can be an electronic device, such as a mobile phone terminal, a computer terminal and other devices.
[0062] The present application will be further described in detail below with reference to the accompanying drawings.
[0063] Reference Figure 1 , Figure 1 This is a flowchart illustrating the testing method for active optical cables provided in this application embodiment, applied to the cable under test and the target port for connecting to the cable under test. The following describes the method in conjunction with... Figure 1 The steps involved in the testing method are explained in detail:
[0064] In step S1, the test command for the cable under test is obtained.
[0065] Specifically, the test command for the cable under test is sent by the relevant test personnel (hereinafter referred to as the target user) through the relevant control equipment (hereinafter referred to as the control equipment). The sending method includes, but is not limited to, knobs, buttons, touch controls, etc. Before sending the test command for the cable under test, the target user also needs to obtain the corresponding test permission, which is explained in detail below:
[0066] Get test management instructions;
[0067] According to the test management instructions, the test terminal is connected to the test system to perform the cable test through the test terminal.
[0068] Specifically, in this embodiment, the target user first needs to control the server to enter root mode. Server root mode refers to the mode in which one logs in or executes commands as a superuser in the server operating system. Enabling root mode grants administrative privileges, which are then used to open the SM management function. SM management function typically refers to Session Management, an important component of network applications. Through the SM management function, the terminal under test (DUT), including the target port, is connected to the manager. The manager is a terminal device with the function of managing the DUT, and can be a control device used by the target user to control the execution of test steps and receive test data. It is worth noting that testing active optical cables typically includes testing both the cable itself and the connection ports; that is, in this test, both the performance of the cable under test and the performance of the ports to which the cable is connected are tested.
[0069] In step S2, according to the test command of the cable under test, it is determined whether there is a connection abnormality. The connection abnormality is an abnormal state such as no cable is inserted into the target port, no normal connection, and / or inconsistent speed.
[0070] Specifically, a preliminary test is performed on the connection status of the cable under test connected to the target port. In this embodiment, four speeds are supported: 56G, 100G, 200G, and 400G. The test instructions include corresponding script instructions. That is, the corresponding test script is selected according to the different speeds required for the test. Then, the corresponding standard information for comparison and judgment is extracted according to the selected test script, so as to determine whether the target port is connected to the cable, whether the cable under test is successfully connected to the target port, and whether the comparison result of the measured speed is within a certain range, thereby determining whether there is an abnormality in the connection.
[0071] More specifically, in the event of a connection error, the target port or the cable under test needs to be returned for repair. The details are as follows:
[0072] If the connection error exists, a connection error message will be sent.
[0073] Repair the connection error according to the connection error message until the error state is resolved.
[0074] Specifically, connection error messages can be issued according to the type of connection error, allowing for manual intervention or automatic correction by the device for maintenance. After maintenance, the connection status is retested until the connection status is correct before proceeding to the next testing step.
[0075] In step S3, if there is no connection abnormality, the interference data is cleared. The interference data consists of residual information generated after the most recent batch of tested cables were disconnected and the access information of the cable to be tested.
[0076] Specifically, clearing interference data means clearing the log information. The cleared log information includes, but is not limited to, log information left over from the testing of historical test cables, as well as log information related to instability that may occur when the cable under test is first started after the target port is connected to the cable under test. After clearing, the test is started to eliminate interference information and improve test reliability.
[0077] In step S4, the port information of the target port is obtained, including the bit error rate and signal quality;
[0078] In step S5, based on the bit error rate and signal quality, it is determined whether there is a signal abnormality.
[0079] Specifically, after clearing log information that may cause interference, the port information of the target port is read, including the bit error rate and signal quality. Based on the returned information of bit error rate and signal quality, standard information from the corresponding script is extracted and compared to determine whether the signal quality and bit error rate of the target port meet the preset standards. The preset standards can be set by the target user through the manager. If there are signal abnormalities, the corresponding prompt information is sent to return for maintenance. The details are explained below:
[0080] If the cable under test is abnormal, a signal abnormality prompt message will be sent.
[0081] Perform fault repair based on the signal anomaly message until the signal anomaly is resolved.
[0082] Specifically, the equipment is manually calibrated or controlled to perform repairs. After repairs, the connection status is retested until the connection status is correct before proceeding to the next testing step.
[0083] Furthermore, to ensure that the returned information corresponds correctly, this embodiment also provides an identification method, which is described in detail below:
[0084] Obtain the serial number of the cable under test;
[0085] The serial number of the cable under test is associated with the cable under test one by one for the purpose of anomaly tracing in subsequent testing.
[0086] Specifically, when the relevant testing equipment detects information about the cable under test and returns it to the manager, it identifies and matches the data, that is, returns the serial number of the cable under test, to ensure that the test data corresponds one-to-one with the cable under test, and subsequent anomalies can be traced.
[0087] In step S6, if there is no signal abnormality, log information is obtained after a preset control time, and the target port is judged to have packet loss, delay abnormality and / or disconnection based on the log information.
[0088] Specifically, if no signal abnormalities are found, it can be understood that no abnormalities have been detected in the target port and the cable under test at the current state. However, for the purpose of testing the performance of the target port and the cable under test, port management still needs to be enabled. In this embodiment, port management is implemented in port storm mode, which will be explained in detail below:
[0089] The target port is subjected to pressure to control it into port storm mode, in which a large amount of fake traffic is generated to simulate a network attack scenario.
[0090] After entering the port storm mode, the log information is obtained after the control period.
[0091] Specifically, a port storm mode is activated under pressure. In port storm mode, the target port can accept and transmit a large number of data packets. Port storm mode is used to simulate a situation where a large number of network ports are attacked simultaneously to test the performance and defense capabilities of network devices. In port storm mode, the testing tool generates a large amount of fake traffic and attempts to connect to multiple ports of the target host to simulate a real network attack scenario. This test can help testers identify potential security vulnerabilities and performance bottlenecks and take corresponding measures to improve them. After a certain period of execution, i.e., the control period, the log information is read again to determine whether there is packet loss, latency anomalies, and / or disconnection, in order to test the performance of the target port and the cable under test.
[0092] More specifically, if there is a reliability risk, meaning the device cannot withstand port storm mode output, it should be returned for repair. Details are as follows:
[0093] If the packet loss, latency anomaly, and / or connection failure occurs, a reliability anomaly warning message will be sent.
[0094] Perform fault repair based on the reliability anomaly message until there are no more packet loss, latency anomalies, or connection drops.
[0095] Specifically, if, after port storm mode, packet loss, incorrect latency, or link failure (link down in network communication refers to the link state between two devices becoming LINK DOWN when the connection between them is broken or communication is impossible, which may be due to physical layer failure, configuration error, or other reasons) occurs, then the maintenance steps are returned according to the corresponding exception type. After maintenance, the initial steps are returned, that is, steps S1-S6 are repeated until it is determined that there are no reliability exceptions at the port to ensure cable quality.
[0096] In step S7, if there is no packet loss, delay anomaly, and / or disconnection, then the cable under test is determined to have completed the cable test.
[0097] Specifically, once it is confirmed that the above-mentioned situations do not exist, the performance and reliability of the product are ensured. In this case, the testers can mark the corresponding product as qualified and proceed to the packaging step by marking or other means.
[0098] In another aspect, this application discloses a testing system for active optical cables; please refer to [link to relevant documentation]. Figure 2 , Figure 2 This is a virtual structural diagram of the active optical cable testing system provided in this application. The active optical cable testing system includes:
[0099] Test command acquisition module 100 is used to acquire test commands for the cable under test;
[0100] The first anomaly judgment module 200 is used to determine whether there is a connection anomaly according to the test command of the cable under test. The connection anomaly is an abnormal state such as no cable is inserted into the target port, no normal connection, and / or inconsistent speed.
[0101] The interference data clearing module 300 is used to clear interference data if there is no connection abnormality. The interference data includes residual information generated after the most recent batch of tested cables were disconnected and access information of the cable to be tested.
[0102] The port information acquisition module 400 is used to acquire the port information of the target port, the port information including bit error rate and signal quality;
[0103] The second anomaly detection module 500 is used to determine whether there is a signal anomaly based on the bit error rate and signal quality.
[0104] The third anomaly judgment module 600 is used to obtain log information after a preset control time if there is no signal anomaly, and to determine whether there is packet loss, delay anomaly and / or disconnection on the target port based on the log information.
[0105] The test completion determination module 700 is used to determine that the cable under test has completed the cable test if there is no packet loss, no delay abnormality and / or no disconnection.
[0106] Specific limitations regarding the testing system for active optical cables can be found in the above description of the testing methods for active optical cables, and will not be repeated here. Each module in the aforementioned testing system for active optical cables can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in hardware or independent of the processor in a computer device, or stored in software in the memory of a computer device, so that the processor can call and execute the corresponding operations of each module.
[0107] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0108] The active optical cable testing method provided in this application embodiment can be applied to terminal devices such as electronic devices, computers, wearable devices, vehicle-mounted devices, tablet computers, laptop computers, netbooks, personal digital assistants (PDAs), augmented reality (AR) / virtual reality (VR) devices, and mobile phones. This application embodiment does not impose any restrictions on the specific type of terminal device.
[0109] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps described in the various embodiments of the above methods.
[0110] This application provides a computer program product that, when run on a mobile terminal, enables the mobile terminal to implement the steps described in the various embodiments of the above methods.
[0111] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. A computer-readable medium can include at least: any entity or device capable of carrying computer program code to a photographing device / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.
[0112] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0113] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0114] In the embodiments provided in this application, it should be understood that the disclosed apparatus / network devices and methods can be implemented in other ways. For example, the apparatus / network device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0115] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0116] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A testing method for active optical cables, characterized in that, The method, applied to the cable under test and a target port for connecting the cable under test, includes: Obtain the test command for the cable under test; According to the test command of the cable under test, determine whether there is a connection abnormality. The connection abnormality is an abnormal state such as no cable is inserted into the target port, no normal connection, and / or inconsistent speed. If there is no connection anomaly, then clear the interference data. The interference data consists of residual information generated after the most recent batch of tested cables were disconnected and the access information of the cable to be tested. Obtain the port information of the target port, including the bit error rate and signal quality; determine whether there is a signal anomaly based on the bit error rate and signal quality; If no signal abnormality is found, log information is obtained after a preset control time, and the target port is judged to have packet loss, delay abnormality and / or disconnection based on the log information. If there is no packet loss, no delay anomaly, and / or no connection failure, then the cable under test is determined to have completed the cable test. The step of obtaining log information after a preset control time if no signal abnormality exists includes: The target port is subjected to pressure to control it into port storm mode, in which a large amount of fake traffic is generated to simulate a network attack scenario. After entering the port storm mode, the log information is obtained after the control period.
2. The testing method for active optical cables according to claim 1, characterized in that, The method further includes: If the connection error exists, a connection error message will be sent. Repair the connection error according to the connection error message until the error state is resolved.
3. The testing method for active optical cables according to claim 1, characterized in that, The method further includes: If the signal is abnormal, a signal abnormality prompt message will be sent; Perform fault repair based on the signal anomaly message until the signal anomaly is resolved.
4. The testing method for active optical cables according to claim 1, characterized in that, The method further includes: If the packet loss, latency anomaly, and / or connection failure occurs, a reliability anomaly warning message will be sent. Perform fault repair based on the reliability anomaly message until there are no more packet loss, latency anomalies, or connection drops.
5. The testing method for active optical cables according to claim 1, characterized in that, Before the step of obtaining the port information of the target port, wherein the port information includes the bit error rate and signal quality of the cable under test, the method further includes: Obtain the serial number of the cable under test; The serial number of the cable under test is associated with the cable under test one by one for the purpose of anomaly tracing in subsequent testing.
6. The testing method for active optical cables according to claim 1, characterized in that, Before the step of obtaining the test command for the cable under test, the method includes: Get test management instructions; According to the test management instructions, the test terminal is connected to the test system to perform the cable test through the test terminal.
7. A testing system for active optical cables, characterized in that, include: The test command acquisition module is used to acquire test commands for the cable under test. The first anomaly detection module is used to determine whether there is a connection anomaly based on the test command of the cable under test. The connection anomaly is an abnormal state such as no cable is inserted into the target port, no normal connection, and / or inconsistent speed. The interference data clearing module is used to clear interference data if there is no connection abnormality. The interference data includes residual information generated after the most recent batch of tested cables were disconnected and access information of the cable to be tested. The port information acquisition module is used to acquire the port information of the target port, including bit error rate and signal quality. The second anomaly detection module is used to determine whether there is a signal anomaly based on the bit error rate and signal quality. The third anomaly detection module is used to obtain log information after a preset control time if there is no signal anomaly, and to determine whether there is packet loss, delay anomaly and / or disconnection on the target port based on the log information. The test completion determination module is used to determine that the cable under test has completed the cable test if there is no packet loss, no delay abnormality and / or no disconnection. The third anomaly detection module includes: The target port is subjected to pressure to control it into port storm mode, in which a large amount of fake traffic is generated to simulate a network attack scenario. This is used to obtain the log information after entering the port storm mode and after the control period has elapsed.
8. A device, characterized in that, It includes a memory and a processor, the memory storing a computer program capable of executing the test method for active optical cables as described in any one of claims 1-6.
9. A storage medium, characterized in that, The computer program stores a test method for an active optical cable as described in any one of claims 1-6.
Citation Information
Patent Citations
Optical module introduction test method and system
CN113872682A