Search

CN-122027548-A - Network topology verification method, device, electronic equipment and storage medium

CN122027548ACN 122027548 ACN122027548 ACN 122027548ACN-122027548-A

Abstract

The invention relates to the technical field of computer vision and provides a network topology verification method, a device, electronic equipment and a storage medium, wherein the method comprises the steps of carrying out image enhancement on a field image to be detected based on structure priori constraint of target network equipment, and carrying out feature extraction on the enhanced image to obtain physical wiring features of the target network equipment; the method has the advantages that path tracking is carried out based on physical wiring characteristics to obtain physical wiring topology, network topology verification is carried out based on the physical wiring topology and equipment reference topology of target network equipment to obtain topology verification results, the limitation of high dependence on manual work in the traditional network change flow is effectively broken through, under the condition that wiring operation complexity is not remarkably increased, the physical topology defects such as misplug, misplug and cross interconnection in dense optical fiber scenes can be rapidly identified, communication deadlock and loop storm risks caused by visual fatigue or subjective negligence of personnel are avoided, and the delivery efficiency and operation and maintenance intelligent level of the intelligent computing platform are remarkably improved.

Inventors

  • WANG JINYANG
  • WANG QING
  • LI DEWEI
  • LI HAO

Assignees

  • 科大讯飞股份有限公司

Dates

Publication Date
20260512
Application Date
20260414

Claims (12)

  1. 1. A method for verifying a network topology, comprising: Acquiring a device reference topology and a field image to be detected of target network devices; based on the structure priori constraint of the target network equipment, carrying out image enhancement on the field image to be detected to obtain an enhanced image to be detected; extracting features of the enhanced image to be detected to obtain physical wiring features of the target network equipment, wherein the physical wiring features comprise port positions and cable attributes; And carrying out path tracking based on the physical wiring characteristics to obtain a physical wiring topology, and carrying out network topology verification based on the physical wiring topology and the equipment reference topology to obtain a topology verification result.
  2. 2. The network topology verification method of claim 1, wherein the port locations are determined based on the steps of: the method comprises the steps of inputting an enhanced image to be detected into a port detection model to obtain initial detection frames of all ports output by the port detection model, wherein the port detection model is obtained by training based on offset distances between the central points of the prediction detection frames of all sample ports corresponding to the sample image to be detected and the axes of the prediction ports, and the axes of the prediction ports are obtained by fitting based on the central points of the prediction detection frames of all sample ports; performing straight line fitting based on center points of initial detection frames of a plurality of ports positioned in the same row in each port to obtain a standard straight line; And screening effective detection frames from the initial detection frames of the ports in the corresponding rows based on the standard straight line, orthogonally projecting the central point of the effective detection frames to the standard straight line, and determining the port positions of the corresponding ports based on the positions of projection points on the standard straight line.
  3. 3. The network topology verification method of claim 1, wherein the cable attributes comprise cable source and sink information, cable type, and physical link status of each port, the cable attributes being determined based on the steps of: Positioning a label area from the reinforced image to be detected, and performing perspective correction and text recognition on the label area to obtain the cable source and sink information; performing cable classification based on a hue histogram of the cable sheath in the target color space in the to-be-detected enhanced image to obtain the cable type; and determining the physical link state based on the color characteristics and the brightness characteristics of the indicator light area in the enhanced image to be detected.
  4. 4. A network topology verification method according to any one of claims 1 to 3, wherein said performing path tracking based on said physical routing characteristics to obtain a physical routing topology comprises: Performing edge detection and contour analysis on the to-be-detected enhanced image to obtain a cable skeleton line; Determining an initial port based on the port position in the physical wiring characteristic, and carrying out shortest path tracking along the communication domain of the cable skeleton line by taking the initial port as a starting point; and when the cable skeleton line is traced to the crossing breakpoint, the tangential direction of the crossing breakpoint is obtained, and the path extension is carried out in the tangential direction to obtain the physical wiring topology.
  5. 5. The network topology verification method of claim 4, wherein said performing path extension in said tangential direction results in a physical routing topology, comprising: determining a plurality of candidate skeleton segments in the tangential direction based on cable attributes in the physical wiring characteristics, and determining angle deviation between each candidate skeleton segment and the tangential direction, and color difference and width change between each candidate skeleton segment and a current tracking path; Determining the connection cost value corresponding to each candidate skeleton segment based on the angle deviation, the color difference and the width change; Determining a target skeleton segment matched with the current tracking path from the candidate skeleton segments based on the connection cost value; and carrying out path extension on the current tracking path corresponding to the cross breakpoint based on the target skeleton segment.
  6. 6. A network topology verification method according to any one of claims 1 to 3, wherein said performing image enhancement on said field image to be inspected based on a structure priori constraint of said target network device to obtain an enhanced image to be inspected comprises: Extracting edge characteristics of the field image to be detected to obtain physical edge characteristics; performing Hough transformation detection based on the physical edge characteristics to obtain a main direction line; constructing a perspective transformation matrix based on the main direction line, and carrying out orthogonalization re-projection on the field image to be detected based on the perspective transformation matrix to obtain a corrected image; Determining a panel layout template based on the structure priori constraint of the target network equipment, and carrying out feature point registration on the panel layout template and the correction image to obtain a registration result; And masking the corrected image based on the registration result to obtain a wiring area mask, and generating the to-be-detected enhanced image based on the wiring area mask.
  7. 7. The network topology verification method of claim 6, wherein said generating said to-be-inspected enhanced image based on said routing area mask comprises: performing brightness component compression on the corrected image to obtain a compressed image; performing histogram equalization on the compressed image to obtain a detail image; performing bilateral filtering processing on the detail image to obtain a target image; taking the background color of a panel or a label in the field image to be detected as a reference white point, correcting the color temperature of the target image, and stretching the saturation of the image after the color temperature correction; and extracting a wiring area from the image subjected to saturation stretching based on the wiring area mask as the to-be-detected enhanced image.
  8. 8. The network topology verification method of claim 6, wherein said performing network topology verification based on said physical wiring topology and said device reference topology to obtain a topology verification result comprises: Generating a differential thermodynamic diagram based on pixel difference between the enhanced image to be inspected and the panel layout template; Structural matching is carried out based on the physical wiring topology and the equipment reference topology, so that a characteristic comparison result is obtained; Performing sequence recombination based on the physical wiring topology to generate a structured description text, and performing retrieval enhancement based on the structured description text to obtain a target connection definition; performing network topology research and judgment based on the structured description text and the target connection definition to obtain a semantic evaluation result; And determining the topology verification result based on the differential thermodynamic diagram, the characteristic comparison result and the semantic evaluation result.
  9. 9. A network topology verification method according to any one of claims 1 to 3, wherein said performing network topology verification based on said physical wiring topology and said device reference topology, obtaining a topology verification result, further comprises: generating a structured acceptance report based on the topology verification result; Acquiring and displaying an abnormal defect position and a corresponding defect category in any connecting link under the condition that the topology verification result indicates that any connecting link is in an abnormal state; and intercepting an enabling instruction for the target network equipment under the condition that a risk confirmation instruction for the abnormal defect position is not received.
  10. 10. A network topology verification apparatus, comprising: The acquisition unit is used for acquiring the device reference topology and the field image to be detected of the target network device; the enhancement unit is used for carrying out image enhancement on the field image to be detected based on the structure priori constraint of the target network equipment to obtain an enhanced image to be detected; the extraction unit is used for extracting the characteristics of the enhanced image to be detected to obtain the physical wiring characteristics of the target network equipment, wherein the physical wiring characteristics comprise port positions and cable attributes; and the verification unit is used for carrying out path tracking based on the physical wiring characteristics to obtain a physical wiring topology, and carrying out network topology verification based on the physical wiring topology and the equipment reference topology to obtain a topology verification result.
  11. 11. An electronic device comprising a memory, a processor and a computer program stored on the memory and running on the processor, characterized in that the processor implements the network topology verification method of any of claims 1 to 9 when executing the computer program.
  12. 12. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the network topology verification method of any of claims 1 to 9.

Description

Network topology verification method, device, electronic equipment and storage medium Technical Field The present invention relates to the field of computer vision, and in particular, to a network topology verification method, device, electronic apparatus, and storage medium. Background At the moment of the vigorous development of the generated artificial intelligence and large language models, intelligent computing clusters constructed based on thousands or even tens of thousands of high-performance GPU (Graphics Processing Unit) become core facilities. The method adopts a non-blocking network architecture and a high-performance network protocol, has extremely high requirements on network communication performance, and the accuracy of physical wiring is the basis for guaranteeing the release of cluster computing power. However, the intelligent computing cluster optical fiber jumpers are huge in number, the port density of the switch is extremely high, massive physical connection line plugging and changing operations exist in construction delivery, capacity expansion and line loading and operation and maintenance, and serious problems such as communication deadlock and performance degradation are easily caused by wiring errors, so that idle computing force waste is caused. At present, the network topology consistency is ensured in the industry mainly depending on a manual multiple protection system, an operator needs to hold the table to check information or assist with tools such as a red light pen and the like, and then the operator judges the information through logic layer means such as observing an indicator lamp, checking LLDP (LINK LAYER Discovery Protocol) neighbor information and the like. However, in the face of massive high-density optical fiber interconnection scenes, the system has the problems of heavy human dependence, low efficiency, lag in verification means, difficult mapping and tracing of physical and digital worlds, high hidden error checking difficulty, high cost and the like. Disclosure of Invention The invention provides a network topology verification method, a device, electronic equipment and a storage medium, which are used for solving the problems of high hidden error checking cost caused by heavy human dependence, low efficiency, verification hysteresis, difficult mapping tracing of physical and digital worlds in the prior art. The invention provides a network topology verification method, which comprises the following steps: Acquiring a device reference topology and a field image to be detected of target network devices; based on the structure priori constraint of the target network equipment, carrying out image enhancement on the field image to be detected to obtain an enhanced image to be detected; extracting features of the enhanced image to be detected to obtain physical wiring features of the target network equipment, wherein the physical wiring features comprise port positions and cable attributes; And carrying out path tracking based on the physical wiring characteristics to obtain a physical wiring topology, and carrying out network topology verification based on the physical wiring topology and the equipment reference topology to obtain a topology verification result. According to the network topology verification method provided by the invention, the port position is determined based on the following steps: the method comprises the steps of inputting an enhanced image to be detected into a port detection model to obtain initial detection frames of all ports output by the port detection model, wherein the port detection model is obtained by training based on offset distances between the central points of the prediction detection frames of all sample ports corresponding to the sample image to be detected and the axes of the prediction ports, and the axes of the prediction ports are obtained by fitting based on the central points of the prediction detection frames of all sample ports; performing straight line fitting based on center points of initial detection frames of a plurality of ports positioned in the same row in each port to obtain a standard straight line; And screening effective detection frames from the initial detection frames of the ports in the corresponding rows based on the standard straight line, orthogonally projecting the central point of the effective detection frames to the standard straight line, and determining the port positions of the corresponding ports based on the positions of projection points on the standard straight line. According to the network topology verification method provided by the invention, the cable attribute comprises cable source and sink information, cable types and physical link states of all ports, and the cable attribute is determined based on the following steps: Positioning a label area from the reinforced image to be detected, and performing perspective correction and text recognition on the label area to obtain the cab