Distribution frame jumper connection detection method, device, equipment, medium and product
Through the scanner, the current patchwork jumper connection data is collected and combined with theoretical data for detection, the problems of low manual detection efficiency and poor accuracy are solved, efficient and timely detection and abnormal handling are achieved, and detection costs are reduced.
Patent Information
- Application Number
- CN202510217159.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-26
- Publication Date
- 2025-05-27
AI Technical Summary
The reliance on manual verification of patch frame jumper connections in the prior art leads to problems such as high detection cost, low efficiency and poor accuracy.
By obtaining the current patch frame jumper connection data collected by the scanner, and obtaining the theoretical patch frame jumper connection data from the target database based on the device identification, combining the jumper detection method of different port connection types, the current connection data is detected and the target processing method is determined to handle abnormal events.
It has achieved the reduction of the detection cost of patch frame jumper connections, improved the efficiency and timeliness of detection, and ensured the safety and stability of equipment operation.
Smart Images

Figure CN120044437A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer processing technologies, and in particular, to a method, apparatus, device, medium, and product for detecting the connection of patch cords on a patch panel. Background Art
[0002] In the field of communication technologies, a patch panel is usually used to allocate and connect subscriber lines or trunk lines of end users to achieve the connection of various devices (such as computers, routers, etc.). In order to ensure the stability and security of device communication, it is usually necessary to detect whether the patch cord connection on the patch panel is correct.
[0003] Currently, the method for detecting the connection of patch cords on a patch panel usually relies on manual verification of whether the patch cords are correctly connected. This method not only has a high detection cost, but also has problems such as poor detection accuracy and untimely detection. Summary of the Invention
[0004] The present invention provides a method, apparatus, device, medium, and product for detecting the connection of patch cords on a patch panel, so as to achieve the technical effect of improving the detection efficiency and timeliness while reducing the detection cost of the connection of patch cords on a patch panel.
[0005] According to one aspect of the present invention, there is provided a method for detecting the connection of patch cords on a patch panel, the method including:
[0006] Obtain current patch cord connection data collected based on a scanner, and obtain theoretical patch cord connection data associated with the device identifier from a target database based on the device identifier of the scanner; wherein, the current patch cord connection data includes a first port connection array corresponding to at least one port connection type; the theoretical patch cord connection data includes a second port connection array corresponding to at least one of the port connection types;
[0007] For each of the port connection types, detect the first port connection array corresponding to the port connection type according to the patch cord detection method corresponding to the port connection type and the second port connection array to obtain a detection result;
[0008] In the case where the detection result is inconsistent with a preset result, determine a target processing method based on the detection result and historical detection results when they are inconsistent, so as to process an abnormal patch cord connection event corresponding to the detection result based on the target processing method.
[0009] According to another aspect of the present invention, there is provided a device for detecting the connection of patch cords on a patch panel, the device including:
[0010] The patch cord jumper connection data acquisition module is used to acquire the current patch cord jumper connection data collected by a scanner, and based on the device identifier of the scanner, acquire the theoretical patch cord jumper connection data associated with the device identifier from a target database; wherein, the current patch cord jumper connection data includes a first port connection array corresponding to at least one port connection type; and the theoretical patch cord jumper connection data includes a second port connection array corresponding to at least one of the port connection types.
[0011] The detection result determination module is used to, for each of the port connection types, detect the first port connection array corresponding to the port connection type according to the jumper detection method corresponding to the port connection type and the second port connection array, to obtain a detection result.
[0012] The target processing method determination module is used to, when the detection result is inconsistent with a preset result, determine a target processing method based on the detection result and the historical detection result when they are inconsistent, so as to process the abnormal jumper connection event corresponding to the detection result based on the target processing method.
[0013] According to another aspect of the present invention, there is provided an electronic device, which includes:
[0014] At least one processor; and a memory communicatively connected to the at least one processor; wherein,
[0015] The memory stores a computer program executable by the at least one processor, and when the computer program is executed by the at least one processor, the at least one processor is enabled to execute the detection method for patch cord jumper connection according to any embodiment of the present invention.
[0016] According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement the detection method for patch cord jumper connection according to any embodiment of the present invention when executed.
[0017] According to another aspect of the present invention, there is provided a computer program product including a computer program which, when executed by a processor, implements the detection method for patch cord jumper connection according to any embodiment of the present invention.
[0018] The technical solution of the embodiment of the present invention obtains the current patch panel jumper connection data collected by a scanner, and based on the device identifier of the scanner, obtains the theoretical patch panel jumper connection data associated with the device identifier from the target database; the current patch panel jumper connection data includes a first port connection array corresponding to at least one port connection type; the theoretical patch panel jumper connection data includes a second port connection array corresponding to at least one port connection type; for each port connection type, according to the jumper detection method corresponding to the port connection type and the second port connection array, the first port connection array corresponding to the port connection type is detected to obtain a detection result; in the case where the detection result is inconsistent with the preset result, based on the detection result and the historical detection result when they are inconsistent, a target processing method is determined to process the abnormal jumper connection event corresponding to the detection result based on the target processing method, solving the problems in the prior art that rely on manual inspection of whether the patch panel jumper connection is correct, resulting in high detection costs, low efficiency, and poor detection accuracy. It realizes the detection of the first port connection array corresponding to the port connection type in the current patch panel jumper connection data by combining the second port connection array corresponding to the port connection type in the theoretical patch panel jumper connection data based on the jumper detection method corresponding to different port connection types, enabling accurate positioning of the patch panel with jumper errors while improving detection efficiency and accuracy. At the same time, according to the detection result inconsistent with the preset result and in combination with the historical detection result, a target processing method can be determined to effectively process the abnormal jumper connection event corresponding to the detection result based on the target processing method, improving the timeliness of abnormal jumper connection processing while ensuring the safety and stability of device operation.
[0019] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present invention, nor is it used to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0021] Figure 1 is a flowchart of a method for detecting patch panel jumper connections provided in Embodiment 1 of the present invention;
[0022] Figure 2 is a structural schematic diagram of a device for detecting patch panel jumper connections provided in Embodiment 2 of the present invention;
[0023] Figure 3 It is a schematic structural diagram of an electronic device for implementing the detection method of patch cord jumper connection in an embodiment of the present invention. Detailed implementation manners
[0024] In order to enable those skilled in the art to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.
[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such data used in appropriate cases can be interchanged so that the embodiments of the present invention described here can be implemented in an order other than those illustrated or described here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0026] Embodiment 1
[0027] Figure 1 It is a flowchart of a method for detecting patch cord jumper connection according to Embodiment 1 of the present invention. This embodiment is applicable to the situation of detecting patch cord jumper connection. This method can be executed by a detection device for patch cord jumper connection. The detection device for patch cord jumper connection can be implemented in the form of hardware and / or software, and the detection device for patch cord jumper connection can be configured in a computing device. As Figure 1 shown, the method includes:
[0028] S110. Obtain the current patch cord jumper connection data collected based on a scanner, and obtain the theoretical patch cord jumper connection data associated with the device identifier from a target database based on the device identifier of the scanner; the current patch cord jumper connection data includes a first port connection array corresponding to at least one port connection type; the theoretical patch cord jumper connection data includes a second port connection array corresponding to at least one port connection type.
[0029] Among them, the scanner is used to detect the switch states of all ports of all patch panels connected thereto, the jumper connection information of all ports, and the port connection information between patch panels. For example, each scanner can be connected to several patch panels. For instance, the 24 slots of the scanner can be respectively connected to a patch panel. The device identifier can be used to uniquely identify the scanner. For example, the device identifier can be the device serial number or the media access control address of the device, that is, the MAC (Media Access Control) address. The current patch panel jumper connection data refers to the current actual jumper connection data of the patch panel ports. The theoretical patch panel jumper connection data refers to the data on how the patch panel ports should be connected based on jumpers theoretically. The port connection type can be used to characterize the jumper connection method of the ports of the patch panel. Optionally, the port connection type can include the single-connection type; the first element at different element positions in the port connection array corresponding to the single-connection type is used to characterize the jumper connection information of the first ports of the patch panels corresponding to different slots of the scanner. The order of the element positions of the first element is the slot order of the scanner. The first port is the port that is not connected to other patch panel ports; the other patch panels are the patch panels among those connected to the scanner. For example, if a jumper is connected to port 1 of patch panel A and the other end of the jumper is not connected to a patch panel connected to the scanner, then port 1 can be considered as the first port. It should be noted that the number of the first elements can be one or multiple. Optionally, the number of the first elements can correspond to the number of slots of the scanner. Different slots of the scanner are used to connect different patch panels, and the scanner can detect the connection states of all patch panels connected to its slots and the connection states of all first ports on the patch panels. The port connection type can also include the dual-connection type, and the second element in the port connection array corresponding to the dual-connection type is used to characterize the jumper connection information of the second ports between different patch panels. For example, if a jumper is connected between port 2 of patch panel A and port 3 of patch panel B, then port 2 of patch panel A and port 3 of patch panel B can be considered as the second ports. It should be noted that the number of the second elements can be one or multiple. Optionally, the number of the second elements can correspond to the number of pairs of interconnected patch panels, and the scanner can detect the port connection information between patch panels.
[0030] In this embodiment, during the process of sequentially scanning the patch panel connected thereto by the scanner, the device identifier of the scanner can be used as the address value corresponding to the address key in the patch panel jumper connection data. In this way, when receiving or obtaining the current patch panel jumper connection data collected by the scanner, the device identifier of the scanner can be read from the address value corresponding to the address key in the current patch panel jumper connection data. Further, the patch panel jumper connection data associated with the device identifier can be searched from the target database according to the device identifier, and the found patch panel jumper connection data is used as the theoretical patch panel jumper connection data to detect whether the port jumper connection in the current patch panel jumper connection data is correct in combination with the theoretical patch panel jumper connection data.
[0031] Exemplarily, the scanner can periodically scan the patch panel connected thereto, obtain the actual jumper connection data (i.e., the current patch panel jumper connection data), and report the current patch panel jumper connection data to the server through the https protocol. For example, the current patch panel jumper connection data can be data of the JSON type. The current patch panel jumper connection data includes "mac":"11:22", where mac is the address key and 11:22 (representing the MAC address of the scanner) is the address value corresponding to the address key. The server can extract 11:22 as the device identifier, read the jumper connection data associated with the device identifier saved in the target database, and mark it as: the theoretical patch panel jumper connection data.
[0032] S120. For each port connection type, according to the jumper detection method corresponding to the port connection type and the second port connection array, the first port connection array corresponding to the port connection type is detected to obtain a detection result.
[0033] Among them, the detection result can be a result used to characterize whether the jumper connection information of the patch panel and its ports is normal.
[0034] In this embodiment, when detecting the first port connection array for a certain port connection type, according to the jumper detection method corresponding to the port connection type, in combination with the second port connection array corresponding to the port connection type, the first port connection array is detected to detect whether the jumper connection information of the patch panel and its ports in the first port connection array is abnormal, and a detection result is obtained. For example, when the first port connection array and the second port connection array corresponding to the same port connection type are consistent, it can be confirmed that the detection result is a pass.
[0035] In this embodiment, when the port connection type includes the single-connection type, the jumper detection method corresponding to the single-connection type is a method of detecting the jumper connection of the first port according to the element position. Correspondingly, according to the jumper detection method corresponding to the port connection type and the second port connection array, the first port connection array corresponding to the port connection type is detected to obtain a detection result, including: when the port connection type includes the single-connection type, determining a third port connection array corresponding to the single-connection type in the current patch panel jumper connection data and a fourth port connection array corresponding to the single-connection type in the theoretical patch panel jumper connection data; when the first elements corresponding to the same element position in the third port connection array and the fourth port connection array are all consistent, determining that the detection result is a preset result; when the first elements corresponding to the same element position in the third port connection array and the fourth port connection array are inconsistent, determining the detection result based on the first element corresponding to the element position at the time of inconsistency.
[0036] Among them, the preset result is that the detection passes. The first element includes at least one of a numerical array, a null value, and an empty array; the numerical array is used to represent that there is a first port in the patch panel connected to the slot corresponding to it. Different sub-elements in the numerical array are used to represent different first ports in the patch panel. In other words, different sub-elements in the numerical array respectively correspond to different first ports in the patch panel. For example, if the numerical array is the array at the second element position in the port connection array and the numerical array is [1, 2, 3, 4, 5], it can represent that the first, second, third, fourth, and fifth ports of the patch panel connected to the 2nd slot of the scanner are the first ports, that is, there are jumpers on these ports but they are not connected to the other patch panel ports corresponding to this scanner. The null value is used to represent that the slot corresponding to it is not connected to a patch panel. For example, the null value can be represented by null. That is, if the first element is a null value, it means that there is no patch panel connected to the scanner slot corresponding to this first element. The empty array is used to represent that there is no first port in the patch panel connected to the slot corresponding to it. For example, the empty array can be represented by []. That is, if the first element is an empty array, it means that there is no first port in the patch panel connected to the scanner slot corresponding to this first element.
[0037] Specifically, when the port connection type includes the single - connection type, the first port connection array corresponding to the single - connection type can be determined from the current patch panel jumper connection data as the third port connection array. At the same time, the second port connection array corresponding to the single - connection type is determined from the theoretical patch panel jumper connection data as the fourth port connection array. Furthermore, the two first elements corresponding to each element position in the third port connection array and the fourth port connection array can be compared respectively. If they are all the same, the detection result is determined to be passed. If there is any inconsistency between the two first elements corresponding to an element position, it indicates that there may be an abnormality in the jumper connection information. At this time, the detection result can be determined based on the two first elements corresponding to the element position at the time of inconsistency.
[0038] In this embodiment, there are various ways to determine the detection result based on the first element corresponding to the element position at the time of inconsistency:
[0039] One way is: for the two first elements corresponding to the same element position at the time of inconsistency, if the first element corresponding to the element position in the third port connection array is a numerical array or an empty array, and the first element corresponding to the element position in the fourth port connection array is a null value, the detection result is determined to be scanner slot intrusion.
[0040] Specifically, when the first element corresponding to the inconsistent element position in the third port connection array is not a null value and the first element corresponding to the inconsistent element position in the fourth port connection array is a null value, it is considered that the slot corresponding to this first element should not be connected to any patch panel, but in the actual jumper connection, this slot of the scanner is connected to the patch panel. At this time, it can be considered that there is a risk of intrusion in the scanner slot, that is, the detection result is determined to be scanner slot intrusion.
[0041] Another way is: for the two first elements corresponding to the same element position at the time of inconsistency, if the first element corresponding to the element position in the third port connection array is a null value, and the first element corresponding to the element position in the fourth port connection array is a numerical array or an empty array, the detection result is determined to be scanner slot disconnected.
[0042] Specifically, when the first element corresponding to the inconsistent element position in the third port connection array is a null value and the first element corresponding to the inconsistent element position in the fourth port connection array is not a null value, it is considered that the slot corresponding to this first element should be connected to the patch panel, but in the actual jumper connection, this slot of the scanner is not connected to the patch panel. At this time, it can be considered that there is a risk of disconnection between the scanner slot and the patch panel, that is, the detection result is determined to be scanner slot disconnected.
[0043] Another way is as follows: If the first element corresponding to the position of the inconsistent element in the third-port connection array is not a null value, and the first element corresponding to the position of the element in the fourth-port connection array is not a null value, then perform a difference set operation on the sub-elements in the two first elements to obtain the differential sub-elements; the differential sub-elements include the first sub-elements that exist in the third-port connection array but not in the fourth-port connection array, and / or the second sub-elements that exist in the fourth-port connection array but not in the third-port connection array; when the differential sub-elements are the first sub-elements, determine that the detection result is a first-port intrusion; when the differential sub-elements are the second sub-elements, determine that the detection result is a first-port disconnection.
[0044] Specifically, when the first element corresponding to the position of the inconsistent element in the third-port connection array is not a null value, and the first element corresponding to the position of the inconsistent element in the fourth-port connection array is not a null value, determine the difference set between the sub-elements in the two first elements to obtain the differential sub-elements. If the differential sub-elements are the first sub-elements that exist in the third-port connection array but not in the fourth-port connection array, it is considered that the patch panel port corresponding to the first sub-elements should not have been the first port. However, during actual jumper connection, this patch panel port is connected to the jumper, and the other end of the jumper is not connected to other patch panels. At this time, it can be considered that there is a risk of intrusion at the first port, that is, determine that the detection result is a first-port intrusion. If the differential sub-elements are the second sub-elements that exist in the fourth-port connection array but not in the third-port connection array, it is considered that the patch panel port corresponding to the second sub-elements should have been the first port. However, during actual jumper connection, this patch panel port may not be connected to the jumper. At this time, it can be considered that there is a risk of jumper disconnection at the first port, that is, determine that the detection result is a first-port disconnection.
[0045] Another way can also be as follows: If the first element corresponding to the position of the inconsistent element in the third patch panel connection array is a numerical array, and the first element corresponding to the position of the inconsistent element in the fourth patch panel connection array is an empty array, determine that the detection result is a first-port intrusion; if the first element corresponding to the position of the inconsistent element in the third patch panel connection array is an empty array, and the first element corresponding to the position of the inconsistent element in the fourth patch panel connection array is a numerical array, determine that the detection result is a first-port disconnection.
[0046] It can be understood that when the first element corresponding to the inconsistent element position in the third patch panel connection array is a numerical array, and the first element corresponding to this element position in the fourth patch panel connection array is an empty array, it indicates that there is a port jumper intrusion in the corresponding port of the patch panel connected to the notch corresponding to this first element. At this time, the detection result is determined to be the first port intrusion. When the first element corresponding to the inconsistent element position in the third patch panel connection array is an empty array, and the first element corresponding to this element position in the fourth patch panel connection array is a numerical array, it indicates that there is a port jumper disconnection in the corresponding port of the patch panel connected to the notch corresponding to this first element. At this time, the detection result is determined to be the first port disconnection.
[0047] Exemplarily, as shown in Table 1 below, the first elements at the same element positions in the third port connection array and the fourth port connection array are compared to obtain the corresponding detection results.
[0048] Table 1
[0049] Third port connection array Fourth port connection array Detection result Numeric array or empty array Null value Scanner slot intrusion Null value Numeric array or empty array Scanner slot disconnection Empty array Numeric array First port intrusion Numeric array Empty array First port disconnection
[0050] In this embodiment, the port connection type includes a dual-patch connection type; the jumper detection method corresponding to the dual-patch connection type is a method for detecting the jumper connection of the second port of the dual patch panels based on the element content. Correspondingly, based on the jumper detection method corresponding to the port connection type and the second port connection array, the first port connection array corresponding to the port connection type is detected to obtain the detection result, including: when the port connection type includes the dual-patch connection type, determining the fifth port connection array corresponding to the dual-patch connection type in the current patch panel jumper connection data, and the sixth port connection array corresponding to the dual-patch connection type in the theoretical patch panel jumper connection data; performing a difference set process on the third element in the fifth port connection array and the fourth element in the sixth port connection array to obtain the difference elements; the difference elements include the fifth element that exists in the fifth port connection array but does not exist in the sixth port connection array, and / or, the sixth element that exists in the sixth port connection array but does not exist in the fifth port connection array; based on the difference elements, determining the detection result.
[0051] It should be noted that the second element may include the jumper connection information of the second ports between different patch panels. The second port is a port connected to other patch panel ports. For example, the second element includes four subelements. The first subelement represents the identifier of a patch panel, the second subelement represents the port identifier of this patch panel, the third subelement represents the identifier of another patch panel, and the fourth subelement represents the port identifier of the other patch panel. For example, assuming the second element is [4, 20, 5, 1], it means that the 20th port of the 4th patch panel is connected to the 1st port of the 5th patch panel based on a jumper. That is, the 20th port of the 4th patch panel and the 1st port of the 5th patch panel are the second ports.
[0052] Specifically, when the port connection type includes a dual-connection type, the first port connection array corresponding to the dual-connection type can be determined from the current patch panel jumper connection data as the fifth port connection array. At the same time, the second port connection array corresponding to the dual-connection type can be determined from the theoretical patch panel jumper connection data as the sixth port connection array. Furthermore, the difference set of the third element in the fifth port connection array and the fourth element in the sixth port connection array is determined to obtain the difference element. Optionally, the way to determine the difference element can be that the first two subelements in the third element are used as a subelement pair, and the last two subelements are used as a subelement pair. Correspondingly, each third element includes two subelement pairs; the fourth element is divided in this way, and correspondingly, each fourth element includes two subelement pairs. If the two subelement pairs in the third element are the same as the two subelement pairs in the fourth element, it is determined that the third element is the same as the fourth element; otherwise, it is determined that the third element is different from the fourth element to obtain the determined difference element. Further, the detection result can be determined by judging in which port connection array the difference element is.
[0053] In this embodiment, based on the difference element, the way to determine the detection result can be: if the total number of difference elements is a preset threshold, the detection result is determined to be the preset result; if the difference element is the fifth element, the detection result is determined to be a second port intrusion; if the difference element is the sixth element, the detection result is determined to be a second port disconnection.
[0054] Among them, the preset threshold can be 0.
[0055] Specifically, when the total number of different elements is 0, it means there are no different elements, and at this time, it can be determined that the detection result is a pass. If the different element is the fifth element that exists in the fifth port connection array but does not exist in the sixth port connection array, it means that the two patch panel ports in the different elements should not be connected, but during the actual jumper connection, the two patch panel ports are connected. At this time, there is a risk of abnormal port connection, and it can be determined that the detection result is a second port intrusion. If the different element is the sixth element that exists in the sixth port connection array but does not exist in the fifth port connection array, it means that the two patch panel ports in the different elements should be connected, but during the actual jumper connection, the two patch panel ports are not jumper-connected. At this time, there is a risk of abnormal port disconnection, and it can be determined that the detection result is a second port disconnection.
[0056] Exemplarily, as shown in Table 2 below, the elements in the fifth port connection array and the sixth port connection array can be compared to obtain the corresponding detection results.
[0057] Table 2
[0058] Fifth port connection array Sixth port connection array Detection result Differential element None Second port intrusion None Differential element Second port disconnection None None Passed the detection
[0059] S130. In the case where the detection result is inconsistent with the preset result, based on the detection result and the historical detection result when they are inconsistent, determine the target processing method to process the abnormal jumper connection event corresponding to the detection result based on the target processing method.
[0060] Among them, the historical detection result can include the historical detection results before the current moment. The target processing method can be a method for processing the abnormal jumper connection event corresponding to the detection result that is inconsistent with the preset result.
[0061] In this embodiment, when the detection result is inconsistent with the preset result, it can be considered that there is an abnormal jumper connection in the current patch panel or port. At this time, all the detection results inconsistent with the preset result and the historical detection results can be combined to determine the target processing method for the abnormal jumper connection event corresponding to each detection result when they are inconsistent. And process the corresponding abnormal jumper connection event based on the target processing method.
[0062] Optionally, the detection results inconsistent with the preset results include at least one. Based on the detection results at the time of inconsistency and the historical detection results, the target processing method is determined, including: If the historical detection results include a first detection result consistent with the detection results at the time of inconsistency, and the processing status of the first detection result is an unfinished status, then determine that the target processing method is no operation; If there is no second detection result in the historical detection results that is consistent with the detection results at the time of inconsistency, then based on the detection results at the time of inconsistency, determine the target processing method; If the historical detection results include a third detection result that is inconsistent with all the detection results at the time of inconsistency, then determine that the target processing method is to end the processing operation corresponding to the third detection result.
[0063] Among them, the processing status of the first detection result can be used to represent the processing status when processing the abnormal jumper connection event corresponding to the first detection result.
[0064] In this embodiment, when the historical detection results include a first detection result consistent with the detection results at the time of inconsistency, and the processing status of the first detection result is an unfinished status, it indicates that the detection result has been detected before and the abnormal jumper connection event corresponding to the detection result is being processed. At this time, there is no need to perform a re-operation, that is, the target processing method can be no operation. When there is no second detection result in the historical detection results that is consistent with the detection results at the time of inconsistency, it indicates that the detection result is a new abnormal detection result. At this time, the target processing method can be determined according to the detection result. For example, the target processing method can be a warning prompt message corresponding to the detection result. When the historical detection results include a third detection result that is inconsistent with all the detection results at the time of inconsistency, it indicates that the abnormal jumper connection event corresponding to the third detection result has been processed. At this time, it can be determined that the target processing method is to end the processing operation corresponding to the third detection result.
[0065] Exemplarily, as shown in Table 3 below, all the detection results inconsistent with the preset results generated can be marked as new detection results, and the detection results already recorded in the server can be marked as historical detection results. By comparing the new detection results and the historical detection results, the corresponding target processing method is obtained.
[0066] Table 3
[0067]
[0068] In this embodiment, based on the detection results when there is an inconsistency, the determined target processing method can be as follows: when the detection result is that the scanner slot is invaded, the determined target processing method is to disconnect the connection between the scanner slot corresponding to the first element corresponding to the detection result and the patch panel; when the detection result is that the scanner slot is disconnected, the determined target processing method is to establish the connection between the scanner slot corresponding to the first element corresponding to the detection result and the patch panel; when the detection result is that the first port is invaded, the determined target processing method is to disconnect the jumper connection of the first port corresponding to the corresponding sub-element in the first element corresponding to the detection result; when the detection result is that the first port is disconnected, the determined target processing method is to establish the jumper connection of the first port corresponding to the corresponding sub-element in the first element corresponding to the detection result; when the detection result is that the second port is invaded, the determined target processing method is to disconnect the jumper connection of the second port between the two patch panels corresponding to the differential element corresponding to the detection result; when the detection result is that the second port is disconnected, the determined target processing method is to establish the jumper connection of the second port between the two patch panels corresponding to the differential element corresponding to the detection result. The advantage of this setting is that it can improve the processing efficiency of patch panel jumper anomalies and ensure the safety and stability of the operation of patch panel devices.
[0069] In this embodiment, based on the detection results when there is an inconsistency, the determined target processing method can be as follows: when the detection result is that the scanner slot is invaded, the determined target processing method is to add the connection information between the scanner slot corresponding to the first element corresponding to the detection result and the patch panel to the theoretical patch panel jumper connection data; when the detection result is that the scanner slot is disconnected, the determined target processing method is to delete the connection information between the scanner slot corresponding to the first element corresponding to the detection result and the patch panel from the theoretical patch panel jumper connection data; when the detection result is that the first port is invaded, the determined target processing method is to add the jumper connection information of the first port corresponding to the corresponding sub-element in the first element corresponding to the detection result to the theoretical patch panel jumper connection data; when the detection result is that the first port is disconnected, the determined target processing method is to delete the jumper connection information of the first port corresponding to the corresponding sub-element in the first element corresponding to the detection result from the theoretical patch panel jumper connection data; when the detection result is that the second port is invaded, the determined target processing method is to add the jumper connection information of the second port between the two patch panels corresponding to the differential element corresponding to the detection result to the theoretical patch panel jumper connection data; when the detection result is that the second port is disconnected, the determined target processing method is to delete the jumper connection information of the second port between the two patch panels corresponding to the differential element corresponding to the detection result from the theoretical patch panel jumper connection data. The advantage of this setting is that it can achieve a reasonable early warning and avoid frequent early warnings.
[0070] The technical solution of this embodiment is to obtain the current patch panel jumper connection data collected by a scanner, and based on the device identifier of the scanner, obtain the theoretical patch panel jumper connection data associated with the device identifier from the target database; the current patch panel jumper connection data includes a first port connection array corresponding to at least one port connection type; the theoretical patch panel jumper connection data includes a second port connection array corresponding to at least one port connection type; for each port connection type, according to the jumper detection method corresponding to the port connection type and the second port connection array, the first port connection array corresponding to the port connection type is detected to obtain a detection result; in the case where the detection result is inconsistent with the preset result, based on the detection result and the historical detection result when they are inconsistent, a target processing method is determined to process the abnormal jumper connection event corresponding to the detection result based on the target processing method, which solves the problems in the prior art that rely on manual inspection of whether the patch panel jumper connections are correct, resulting in high detection costs, low efficiency, and poor detection accuracy. It realizes the detection of the first port connection array corresponding to the port connection type in the current patch panel jumper connection data by combining the second port connection array corresponding to the port connection type in the theoretical patch panel jumper connection data based on the jumper detection method corresponding to different port connection types, so that it can accurately locate the patch panel with jumper errors while improving the detection efficiency and accuracy. At the same time, according to the detection result inconsistent with the preset result, combined with the historical detection result, a target processing method can be determined, so that the abnormal jumper connection event corresponding to the detection result can be effectively processed based on the target processing method, improving the timeliness of abnormal jumper connection processing while ensuring the safety and stability of device operation.
[0071] Embodiment 2
[0072] Figure 2 is a schematic structural diagram of a detection device for patch panel jumper connections provided according to Embodiment 2 of the present invention. As Figure 2 shown, the device includes: a patch panel jumper connection data acquisition module 210, a detection result determination module 220, and a detection result determination module 220.
[0073] Among them, the patch cord jumper connection data acquisition module 210 is connected to the data acquisition module, and is configured to acquire the current patch cord jumper connection data collected based on the scanner, and acquire the theoretical patch cord jumper connection data associated with the device identifier from the target database based on the device identifier of the scanner; wherein, the current patch cord jumper connection data includes a first port connection array corresponding to at least one port connection type; the theoretical patch cord jumper connection data includes a second port connection array corresponding to at least one of the port connection types; the detection result determination module 220 is configured to, for each of the port connection types, detect the first port connection array corresponding to the port connection type according to the jumper detection method corresponding to the port connection type and the second port connection array, to obtain a detection result; the target processing method determination module 230 is configured to, when the detection result is inconsistent with the preset result, determine a target processing method based on the detection result and the historical detection result when they are inconsistent, so as to process the abnormal jumper connection event corresponding to the detection result based on the target processing method.
[0074] The technical solution of this embodiment is to acquire the current patch cord jumper connection data collected based on the scanner, and acquire the theoretical patch cord jumper connection data associated with the device identifier from the target database based on the device identifier of the scanner; the current patch cord jumper connection data includes a first port connection array corresponding to at least one port connection type; the theoretical patch cord jumper connection data includes a second port connection array corresponding to at least one port connection type; for each port connection type, detect the first port connection array corresponding to the port connection type according to the jumper detection method corresponding to the port connection type and the second port connection array, to obtain a detection result; when the detection result is inconsistent with the preset result, determine a target processing method based on the detection result and the historical detection result when they are inconsistent, so as to process the abnormal jumper connection event corresponding to the detection result based on the target processing method, which solves the problems in the prior art that relying on manual inspection of the patch cord jumper connection is correct, resulting in high detection costs, low efficiency and poor detection accuracy, and realizes the detection of the first port connection array corresponding to the port connection type in the current patch cord jumper connection data by combining the second port connection array corresponding to the port connection type in the theoretical patch cord jumper connection data based on the jumper detection method corresponding to different port connection types, so that while accurately locating the patch panel with jumper errors, the detection efficiency and accuracy are improved. At the same time, the target processing method can be determined according to the detection result inconsistent with the preset result and combined with the historical detection result, so that the abnormal jumper connection event corresponding to the detection result can be effectively processed based on the target processing method, improving the timeliness of abnormal jumper connection processing while ensuring the safety and stability of device operation.
[0075] Based on the above device, optionally, the port connection type includes a dedicated connection type; the first element at different element positions in the port connection array corresponding to the dedicated connection type is used to represent the jumper connection information of the first port of the patch panel corresponding to different slots of the scanner; the jumper detection method corresponding to the dedicated connection type is a method of detecting the jumper connection of the first port according to the element position; wherein, the first port is a port not connected to other patch panel ports; the other patch panels are patch panels among the patch panels connected to the scanner.
[0076] Based on the above device, optionally, the detection result determination module 220 includes:
[0077] A third port connection array determination unit, configured to determine a third port connection array corresponding to the dedicated connection type in the current patch panel jumper connection data and a fourth port connection array corresponding to the dedicated connection type in the theoretical patch panel jumper connection data when the port connection type includes the dedicated connection type;
[0078] A first detection unit, configured to determine that the detection result is a preset result when the first elements corresponding to the same element position in the third port connection array and the fourth port connection array are all consistent; wherein, the preset result is that the detection passes;
[0079] A second detection unit, configured to determine the detection result based on the first element corresponding to the element position when the first elements corresponding to the same element position in the third port connection array and the fourth port connection array are inconsistent;
[0080] Wherein, the first element includes at least one of a numerical array, a null value, and an empty array; different sub-elements in the numerical array are used to represent different first ports in the patch panel; the null value is used to represent that the slot corresponding to it is not connected to the patch panel; the empty array is used to represent that there is no first port in the patch panel connected to the slot corresponding to it.
[0081] Based on the above device, optionally, the second detection unit includes:
[0082] A slot intrusion detection unit, configured to, for two first elements corresponding to the same element position when they are inconsistent, if the first element corresponding to the element position in the third port connection array is a numerical array or an empty array, and the first element corresponding to the element position in the fourth port connection array is a null value, determine that the detection result is scanner slot intrusion;
[0083] A notch disconnection detection unit, configured to determine that the detection result is that the scanner notch is disconnected if the first element corresponding to the element position in the third port connection array is a null value and the first element corresponding to the element position in the fourth port connection array is a numeric array or a null array.
[0084] Based on the above device, optionally, the second detection unit includes:
[0085] A differential sub-element determination unit, configured to perform a difference set process on the sub-elements in the two first elements to obtain differential sub-elements if the first element corresponding to the element position at the time of inconsistency in the third port connection array is not a null value and the first element corresponding to the element position in the fourth port connection array is not a null value; wherein, the differential sub-elements include first sub-elements that exist in the third port connection array but do not exist in the fourth port connection array, and / or second sub-elements that exist in the fourth port connection array but do not exist in the third port connection array;
[0086] A first port intrusion detection unit, configured to determine that the detection result is a first port intrusion when the differential sub-element is a first sub-element;
[0087] A first port disconnection detection unit, configured to determine that the detection result is a first port disconnection when the differential sub-element is a second sub-element.
[0088] Based on the above device, optionally, the port connection type includes a dual-pair connection type; the second element in the port connection array corresponding to the dual-pair connection type is used to represent the jumper connection information of the second port between different patch panels; the jumper detection method corresponding to the dual-pair connection type is a method of detecting the jumper connection of the second port of the dual patch panel based on the element content; wherein, the second port is a port connected to the port of other patch panels.
[0089] Based on the above device, optionally, the detection result determination module 220 includes:
[0090] A fifth port connection array determination unit, configured to determine the fifth port connection array corresponding to the dual-pair connection type in the current patch panel jumper connection data and the sixth port connection array corresponding to the dual-pair connection type in the theoretical patch panel jumper connection data when the port connection type includes the dual-pair connection type;
[0091] A difference element determination unit is configured to perform a difference set process on a third element in the fifth port connection array and a fourth element in the sixth port connection array to obtain difference elements; wherein, the difference elements include a fifth element that exists in the fifth port connection array but does not exist in the sixth port connection array, and / or, a sixth element that exists in the sixth port connection array but does not exist in the fifth port connection array;
[0092] A detection result determination unit is configured to determine a detection result based on the difference elements.
[0093] Based on the above device, optionally, the detection result determination unit includes:
[0094] A third detection unit is configured to determine that the detection result is a preset result if the total number of the difference elements is a preset threshold;
[0095] A second port intrusion detection unit is configured to determine that the detection result is a second port intrusion if the difference element is the fifth element;
[0096] A second port disconnection detection unit is configured to determine that the detection result is a second port disconnection if the difference element is the sixth element.
[0097] Based on the above device, optionally, there is at least one of the detection results that is inconsistent with the preset result, and the target processing method determination module 230 includes:
[0098] A first processing method determination unit is configured to determine that the target processing method is no operation if the historical detection result includes a first detection result that is consistent with the detection result at the time of inconsistency and the processing status of the first detection result is an unfinished status;
[0099] A second processing method determination unit is configured to determine the target processing method based on the detection result at the time of inconsistency if the historical detection result does not include a second detection result that is consistent with the detection result at the time of inconsistency;
[0100] A third processing method determination unit is configured to determine that the target processing method is to end the processing operation corresponding to the third detection result if the historical detection result includes a third detection result that is inconsistent with all the detection results at the time of inconsistency.
[0101] The detection device for patch cord connection provided by the embodiment of the present invention can execute the detection method for patch cord connection provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method.
[0102] Embodiment III
[0103] Figure 3 It is a schematic structural diagram of an electronic device for implementing the detection method of patch cord connection of the embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as, laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, personal digital processors, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are only examples and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0104] As Figure 3 shown, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc. Among them, the memory stores a computer program executable by the at least one processor. The processor 11 can execute various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. The input / output (I / O) interface 15 is also connected to the bus 14.
[0105] Multiple components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0106] The processor 11 can be various general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include but are not limited to a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the detection method of patch cord connection.
[0107] In some embodiments, the method for detecting the connection of patch cord jumpers can be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for detecting the connection of patch cord jumpers described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the method for detecting the connection of patch cord jumpers by any other suitable means (e.g., by means of firmware).
[0108] The various embodiments of the systems and techniques described above in this document can be implemented in digital electronic circuitry, integrated circuit systems, field-programmable gate arrays (FPGA), application-specific integrated circuits (ASIC), application-specific standard products (ASSP), systems-on-a-chip (SOC), complex programmable logic devices (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special-purpose or general-purpose programmable processor that receives data and instructions from a storage system, at least one input device, and at least one output device, and transmits the data and instructions to the storage system, the at least one input device, and the at least one output device.
[0109] The computer programs for implementing the methods of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus, such that when the computer programs are executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer programs can be executed entirely on the machine, partially on the machine, as a stand-alone software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0110] In the context of the present invention, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium can be a machine-readable signal medium. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0111] To provide for interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can also be used to provide for interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, speech input, or tactile input).
[0112] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0113] A computing system may include a client and a server. The client and the server are generally far from each other and usually interact via a communication network. The relationship between the client and the server is created by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system, solving the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services.
[0114] An embodiment of the present invention also provides a computer program product, including a computer program which, when executed by a processor, implements the detection method for patch cord jumper connection provided in any embodiment of the present invention.
[0115] In the process of implementing the computer program product, computer program code for performing the operations of the present invention can be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network - including a local area network (LAN) or a wide area network (WAN) - or can be connected to an external computer (for example, by using an Internet service provider to connect through the Internet).
[0116] It should be understood that various forms of the processes shown above can be used, reordering, adding, or deleting steps. For example, the steps recited in the present invention can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved, and no limitation is imposed herein.
[0117] The above specific embodiments do not constitute a limitation on the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims
1. A method for detecting patch panel jumper connection, characterized in that: include: Acquire current patch panel jumper connection data collected by a scanner, and acquire theoretical patch panel jumper connection data associated with the device identifier from a target database based on the device identifier of the scanner; wherein the current patch panel jumper connection data includes a first port connection array corresponding to at least one port connection type; and the theoretical patch panel jumper connection data includes a second port connection array corresponding to at least one of the port connection types; For each of the port connection types, according to the jumper detection mode corresponding to the port connection type and the second port connection array, the first port connection array corresponding to the port connection type is detected to obtain a detection result; In the case where the detection result is inconsistent with the preset result, a target processing method is determined based on the detection result and historical detection results when inconsistent, so as to process the abnormal jumper connection event corresponding to the detection result based on the target processing method.
2. The method according to claim 1, characterized in that The port connection type includes a single connection type; the first element at different element positions in the port connection array corresponding to the single connection type is used to characterize the jumper connection information of the first port of the patch panel corresponding to different slots of the scanner; the jumper detection method corresponding to the single connection type is a method of detecting the jumper connection of the first port based on the element position; wherein the first port is a port that is not connected to other patch panel ports; the other patch panels are patch panels among the patch panels connected to the scanner.
3. The method according to claim 2, characterized in that The detecting of the first port connection array corresponding to the port connection type according to the jumper detection mode corresponding to the port connection type and the second port connection array to obtain the detection result includes: In the case where the port connection type includes a single-match connection type, determining a third port connection array corresponding to the single-match connection type in the current patch panel jumper connection data, and a fourth port connection array corresponding to the single-match connection type in the theoretical patch panel jumper connection data; In the case where the first elements corresponding to the same element position in the third port connection array and the fourth port connection array are consistent, determining that the detection result is a preset result; wherein the preset result is detection passed; In the case where the first elements corresponding to the same element position in the third port connection array and the fourth port connection array are inconsistent, determining a detection result based on the first element corresponding to the element position when the inconsistency occurs; Among them, the first element includes at least one of a numerical array, a null value and an empty array; different sub-elements in the numerical array are used to represent different first ports in the distribution frame; the null value is used to represent that the corresponding slot is not connected to the distribution frame; the empty array is used to represent that there is no first port in the distribution frame connected to the corresponding slot.
4. The method according to claim 3, characterized in that The determining of the detection result based on the first element corresponding to the element position when the inconsistency occurs includes: For the two first elements corresponding to the same element position when the inconsistency occurs, if the first element corresponding to the element position in the third port connection array is a numerical array or an empty array, and the first element corresponding to the element position in the fourth port connection array is an empty value, then determining that the detection result is a scanner slot intrusion; If the first element corresponding to the element position in the third port connection array is a null value, and the first element corresponding to the element position in the fourth port connection array is a numerical array or an empty array, the detection result is determined to be that the scanner slot is disconnected.
5. The method according to claim 3, characterized in that: The determining of the detection result based on the first element corresponding to the element position when the inconsistency occurs includes: If the first element corresponding to the element position at the time of inconsistency in the third port connection array is not a null value, and the first element corresponding to the element position in the fourth port connection array is not a null value, performing a difference set processing on the sub-elements in the two first elements to obtain a difference sub-element; wherein the difference sub-element includes a first sub-element that exists in the third port connection array but not in the fourth port connection array, and / or a second sub-element that exists in the fourth port connection array but not in the third port connection array; When the difference sub-element is the first sub-element, determining the detection result is a first port intrusion; When the difference sub-element is the second sub-element, it is determined that the detection result is that the first port is disconnected.
6. The method according to claim 1, characterized in that The port connection type includes a dual-connection type; the second element in the port connection array corresponding to the dual-connection type is used to characterize the jumper connection information of the second port between different distribution frames; the jumper detection method corresponding to the dual-connection type is a method of performing jumper connection detection on the second port of the dual distribution frame based on the element content; wherein the second port is a port connected to other distribution frame ports.
7. The method according to claim 6, characterized in that The detecting of the first port connection array corresponding to the port connection type according to the jumper detection mode corresponding to the port connection type and the second port connection array to obtain the detection result includes: In the case where the port connection type includes a dual-match connection type, determining a fifth port connection array corresponding to the dual-match connection type in the current patch panel jumper connection data, and a sixth port connection array corresponding to the dual-match connection type in the theoretical patch panel jumper connection data; Performing a difference set processing on the third element in the fifth port connection array and the fourth element in the sixth port connection array to obtain a difference element; wherein the difference element includes a fifth element that exists in the fifth port connection array but does not exist in the sixth port connection array, and / or a sixth element that exists in the sixth port connection array but does not exist in the fifth port connection array; Based on the difference element, a detection result is determined.
8. The method according to claim 7, characterized in that The step of determining the detection result based on the difference element includes: If the total number of the difference elements is a preset threshold, determining that the detection result is a preset result; If the difference element is the fifth element, determining that the detection result is a second port intrusion; If the difference element is the sixth element, it is determined that the detection result is that the second port is disconnected.
9. The method according to any one of claims 1 to 8, characterized in that The detection result inconsistent with the preset result includes at least one, and the determining of the target processing method based on the detection result when inconsistent and the historical detection result includes: If the historical detection results include a first detection result that is consistent with the detection result when the detection result is inconsistent, and the processing status of the first detection result is an unfinished state, determining the target processing mode as no operation; If there is no second detection result in the historical detection results that is consistent with the detection result at the time of inconsistency, determining the target processing method based on the detection result at the time of inconsistency; If the historical detection results include a third detection result that is inconsistent with all the detection results at the time of inconsistency, the target processing method is determined to end the processing operation corresponding to the third detection result.
10. A device for detecting patch panel jumper connection, characterized in that: include: A patch panel jumper connection data acquisition module, used to acquire current patch panel jumper connection data collected by a scanner, and based on the device identification of the scanner, acquire theoretical patch panel jumper connection data associated with the device identification from a target database; wherein the current patch panel jumper connection data includes a first port connection array corresponding to at least one port connection type; and the theoretical patch panel jumper connection data includes a second port connection array corresponding to at least one of the port connection types; a detection result determination module, configured to detect, for each of the port connection types, the first port connection array corresponding to the port connection type according to the jumper detection mode corresponding to the port connection type and the second port connection array, to obtain a detection result; The target processing method determination module is used to determine the target processing method based on the detection result and historical detection results when the detection result is inconsistent with the preset result, so as to process the abnormal jumper connection event corresponding to the detection result based on the target processing method.