Methods and systems for verifying network physical topology, processing equipment, software products, and storage media
By acquiring device information and automatically analyzing device connections using a database and network topology analysis module, the problem of low efficiency and error-proneness in manual verification in existing technologies is solved, achieving efficient and accurate network physical topology verification.
Patent Information
- Application Number
- CN202410663778.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2026-01-06
- Estimated Expiration
- 2044-05-27
AI Technical Summary
In existing technologies, the physical topology inspection of data center networks relies on manual verification of cable labels, which is inefficient and prone to errors, especially when there are a large number of devices. Furthermore, in some scenarios, third-party verification is required, and there is a lack of efficient and accurate verification methods.
By acquiring device information, utilizing pre-entered system identifiers and location information in the database, and combining this with the network topology analysis module, the network port connections of the devices are automatically analyzed, and network physical topology diagrams or anomaly information are output. Image and voice recognition technologies are used to assist in verification.
It achieves highly efficient and accurate automatic verification of network physical topology, provides an independent and objective verification method, and simplifies the device connection inspection process.
Smart Images

Figure CN118827346B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of business support technology, and in particular to a method and system for verifying network physical topology, processing equipment, program products, and storage media. Background Technology
[0002] Currently, checking the network physical topology (i.e., the physical connections of network cables and fiber optic cables) of a system in a computer room mainly relies on manual verification of the labels at both ends of the cables. Two people use cable testers at both ends of the cable to complete this task. This method is inefficient and prone to errors. Furthermore, for certain special application scenarios, it is necessary for third-party personnel to perform the verification themselves. Therefore, there is a need for an efficient, accurate, and easy-to-use verification method. Summary of the Invention
[0003] To address the aforementioned technical problems, this application provides a method and system for verifying network physical topology, a processing device, a program product, and a storage medium.
[0004] The method for verifying network physical topology provided in this application includes:
[0005] For each device in the target system, obtain the device information for each device;
[0006] The device information of each device is sent to the database, which pre-enters the system identifier and location information corresponding to each device;
[0007] Based on the device information, system identifier, and location information of each device in the database, each device is analyzed to obtain the analysis results;
[0008] If no abnormal network port information is found in the analysis results, the network physical topology diagram of the target system will be output; if abnormal network port information is found in the analysis results, abnormal information will be output.
[0009] The system for verifying network physical topology provided in this application includes: a network device, which comprises an identification module, a network topology analysis module, and a database; wherein...
[0010] The identification module is used to acquire device information for each device in the target system; and send the device information of each device to the database, which pre-enters the system identifier and location information corresponding to each device.
[0011] The network topology analysis module is used to analyze each device based on the device information, system identifier, and location information of each device in the database, and obtain the analysis results. If there is no abnormal network port information in the analysis results, the network physical topology diagram of the target system is output; if there is abnormal network port information in the analysis results, abnormal information is output.
[0012] The processing device provided in this application includes a processor and a memory, the memory being used to store computer programs, and the processor being used to call and run the computer programs stored in the memory to execute any of the above-described methods for verifying network physical topology.
[0013] This application provides a computer program product comprising: a computer program that, when executed by a processor, implements any of the methods described above.
[0014] The computer-readable storage medium provided in this application is used to store a computer program that causes a computer to perform any of the methods described above.
[0015] In the technical solution of this application, for each device in the target system, device information is acquired for each device; this device information is sent to a database, which pre-stores the system identifier and location information corresponding to each device; based on the device information, system identifier, and location information in the database, each device is analyzed to obtain analysis results; if no abnormal network port information is found in the analysis results, a network physical topology diagram of the target system is output; if abnormal network port information is found in the analysis results, abnormal information is output. Thus, by analyzing the acquired device information and pre-stored information to obtain analysis results, the system can achieve efficient, accurate, reliable, and easy-to-use automatic verification of the system's network physical topology, while also providing an independent and objective verification method. Attached Figure Description
[0016] Figure 1 This is a schematic flowchart of a method for verifying network physical topology provided in an embodiment of this application. Figure 1 ;
[0017] Figure 2 This is a schematic flowchart of a method for obtaining device information for each device provided in an embodiment of this application;
[0018] Figure 3 This is a schematic flowchart of a method for analyzing each network port of a target device according to an embodiment of this application;
[0019] Figure 4 This is a schematic diagram of the system architecture for verifying network physical topology provided in the embodiments of this application. Figure 1 ;
[0020] Figure 5 This is a schematic diagram of the system architecture for verifying network physical topology provided in the embodiments of this application. Figure 2 ;
[0021] Figure 6 This is a schematic diagram of the structural composition of the scanning device provided in the embodiments of this application;
[0022] Figure 7 This is a schematic flowchart of a method for verifying network physical topology provided in an embodiment of this application. Figure 2 ;
[0023] Figure 8 This is a schematic structural diagram of a processing device provided in an embodiment of this application;
[0024] Figure 9 This is a schematic structural diagram of the chip according to an embodiment of this application. Detailed Implementation
[0025] The technical solutions of the embodiments of this application will now be described with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0026] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0027] It should also be noted that the terms "first, second, third, and fourth" used in the embodiments of this application are only used to distinguish similar objects and do not represent a specific order of objects. It is understood that "first, second, third, and fourth" can be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.
[0028] In this document, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this document generally indicates that the preceding and following related objects have an "or" relationship. It should also be understood that "instruction" mentioned in the embodiments of this application can be a direct instruction, an indirect instruction, or an indication of a related relationship. For example, A instructing B can mean that A directly instructs B, for example, B can be obtained through A; it can also mean that A indirectly instructs B, for example, A instructs C, B can be obtained through C; or it can mean that there is a related relationship between A and B. It should also be understood that "correspondence" mentioned in the embodiments of this application can indicate a direct or indirect correspondence between two objects, or an related relationship between two objects, or a relationship of instruction and being instructed, configuration and being configured, etc.
[0029] Currently, checking the network physical topology (i.e., the physical connections of network cables and fiber optic cables) of a system in a computer room to ensure its correctness and compliance with design requirements mainly relies on manual verification of the labels at both ends of the cables. Two people are needed at each end of the cable to complete this task using a cable tester. Given the large number of devices and fiber optic cables in a real computer room, which can be overwhelming, manual inspection of each cable is difficult, error-prone, and extremely inefficient. Furthermore, for certain special application scenarios, it is necessary for third-party personnel to conduct the verification, rather than relying on the actual system administrators. Therefore, there is an urgent need for an efficient, accurate, and easy-to-use verification method. To address the problems of the existing technology, which relies on manual inspection of each cable, is difficult to verify, prone to errors, and extremely inefficient, the following technical solution is proposed in this application.
[0030] To facilitate understanding of the technical solutions of the embodiments of this application, the technical solutions of this application are described in detail below through specific embodiments. The above-mentioned related technologies are optional solutions and can be arbitrarily combined with the technical solutions of the embodiments of this application, all of which fall within the protection scope of the embodiments of this application. The embodiments of this application include at least some of the following contents.
[0031] Figure 1 This is a schematic flowchart of a method for verifying network physical topology provided in an embodiment of this application. Figure 1 ,like Figure 1 As shown, the method for verifying the network physical topology includes the following steps:
[0032] Step 101: For each device in the target system, obtain the device information for each device.
[0033] The target system is the system to be verified. For each device in the system to be verified, it is necessary to obtain the device information of each device. Each device in the target system includes, but is not limited to, switches, routers, firewalls, load balancers, servers, storage devices, etc. The specific devices in the target system need to be determined according to the actual situation, and this application does not make specific limitations in this regard.
[0034] In some implementations, the method for verifying network physical topology is applied to a network device. Specifically, the network device obtains device information for each device in the system to be verified in order to generate the network physical topology for subsequent verification of the system.
[0035] In some implementations... Figure 2 This is a schematic flowchart of a method for obtaining device information for each device provided in an embodiment of this application, such as... Figure 2 As shown, obtaining the device information for each device includes: sequentially designating each device as a target device and executing steps 201 to 202:
[0036] Step 201: Obtain a first photo and a second photo taken by the scanning device. The first photo is obtained by taking a picture of the panel of the target device, and the second photo is obtained by taking a picture of the identification label on the cable connected to the network port on the panel of the target device.
[0037] In some embodiments, the scanning device has a module capable of capturing images. For example, this module can be a camera module. In some embodiments, the camera module is also equipped with a module for fine-tuning the focus. For example, this module is a focus fine-tuning button. The function of the focus fine-tuning button is to zoom in and / or zoom out. For example, the focus fine-tuning button can be set to two independent buttons for adjusting the focus, or it can be set to one button to zoom in and / or zoom out, or it can be set to a rotating button for adjusting the focus. The specific settings of the focus fine-tuning button can be set according to the actual situation, and this application does not make specific limitations in this regard.
[0038] In some implementations, the target device is the device currently being verified. First, the scanning device frames the front panel and / or rear panel of the device being verified, adjusts the focus appropriately, and obtains a first photo. Then, the scanning device takes a picture of the identification label on the cable connected to the network port of the device being verified, adjusts the focus appropriately, and obtains a second photo. The scanning device then sends the first and second photos to the network device. The scanning device also includes a communication module for communication, through which it sends the first and second photos to the network device.
[0039] In some embodiments, acquiring a first photograph and a second photograph taken by a scanning device includes: receiving a first operation signal sent by the scanning device; identifying the first operation signal and generating a first operation instruction corresponding to the first operation signal; sending the first operation instruction to the scanning device, wherein the first operation instruction is used to trigger the scanning device to take a first photograph; receiving the first photograph sent by the scanning device; receiving a second operation signal sent by the scanning device; identifying the second operation signal and generating a second operation instruction corresponding to the second operation signal; sending the second operation instruction to the scanning device, wherein the second operation instruction is used to trigger the scanning device to take a second photograph; and receiving the second photograph sent by the scanning device.
[0040] In some embodiments, the scanning device includes a module for receiving a first operation signal and a second operation signal; exemplarily, this module can be a human-machine interface (HMI) module. In some embodiments, the HMI module on the scanning device receives the first operation signal, and the scanning device sends the first operation signal to a network device via a communication module. The network device identifies the first operation signal and generates a first operation command corresponding to the first operation signal. Then, the network device sends the first operation command to the scanning device, and the scanning device takes a first photograph based on the first operation command. Similarly, the HMI module on the scanning device receives a second operation signal, and the scanning device sends the second operation signal to a network device via a communication module. The network device identifies the second operation signal and generates a second operation command corresponding to the second operation signal. Then, the network device sends the second operation command to the scanning device, and the scanning device takes a second photograph based on the second operation command.
[0041] In some embodiments, the aforementioned human-computer interaction module can be a microphone and / or earphone module. The scanning device receives a first operation signal and a second operation signal through the microphone and / or earphone module. For example, the first and second operation signals are voice signals. The network device generates a corresponding operation command based on the voice signal. Specifically, the first and second operation signals are "take a picture" voice signals. The scanning device receives the "take a picture" voice signal through the microphone and / or earphone module, and then sends the "take a picture" voice signal to the network device through the communication module. After recognizing the "take a picture" voice signal, the network device generates a corresponding "take a picture" operation command. The scanning device receives the "take a picture" operation command and triggers the camera module of the scanning device to take a picture based on the "take a picture" operation command, thereby obtaining a first photo and a second photo. The scanning device then sends the first and second photos to the network device.
[0042] Step 202: Identify the first and second photos to obtain the device information of the target device, which includes the target device's attribute information and network port information.
[0043] In some implementations, the attribute information includes at least one of the following: device type, device name, device identifier, and device panel location; the network port information includes at least one of the following: port type, number of ports, and port occupancy status. For example, the aforementioned device information can be represented in tabular form, the device panel location can be a front panel or a rear panel, the port type can be an optical port or a network port, and the port occupancy status can indicate whether the port is active, etc. The specific identified device information and its representation are set according to specific circumstances, and this application does not impose specific limitations on them.
[0044] In some embodiments, after identifying the first and second photos to obtain the device information of the target device, the method further includes: sending the device information of the target device to a scanning device to display the device information of the target device on the scanning device; receiving a third operation signal sent by the scanning device, identifying the third operation signal and generating first supplementary information of the target device, and updating the device information of the target device in a database according to the first supplementary information, wherein the third operation signal is triggered by the user according to the device information of the target device; and / or sending the device information of N devices in the database to the scanning device to display the device information of N devices on the scanning device, wherein the N devices are devices in the target system other than the target device, and N is a positive integer; receiving a fourth operation signal sent by the scanning device, identifying the fourth operation signal and generating second supplementary information of the target device, and updating the device information of the target device in the database according to the second supplementary information, wherein the fourth operation signal is triggered by the user according to the device information of the N devices.
[0045] It should be noted that network devices include databases.
[0046] In some implementations, the aforementioned scanning device includes a module that can display device information, etc. For example, the module that displays device information can be a display module. Specifically, the network device sends device information to the scanning device, and the display module on the scanning device displays the device information of the target device.
[0047] In some embodiments, based on the device information displayed by the display module, a third operation signal is received through the human-machine interaction module of the scanning device, and the third operation signal is sent to the network device. The network device recognizes the third operation signal and generates first supplementary information for the target device. Based on the first supplementary information, the device information of the target device is updated in the database. The third operation signal is triggered by the user based on the device information of the target device. For example, the third operation signal is a voice signal. The network device receives and recognizes the voice signal and generates the first supplementary information. Specifically, based on the displayed device information, the scanning device receives the user's voice signal through a microphone and / or earphone module. This voice signal is used to input supplementary information about the device to be verified. The network device receives and recognizes the voice signal, generates the first supplementary information, and updates the device information of the target device in the database based on the first supplementary information. That is, the relevant information about the device to be verified is input via voice. In some embodiments, the first supplementary information includes, but is not limited to, assigning an identification (ID) number to the target device, other potentially missing or unrecognized information, etc. The specific first supplementary information is set according to the actual situation, and this application does not specifically limit it.
[0048] In some implementations, the network device can also send device information of N existing devices from the database to the scanning device, so that the device information of the N devices can be displayed on the display module of the scanning device. Here, the N devices are devices in the target system other than the target device, and N is a positive integer. The network device receives a fourth operation signal sent by the scanning device, recognizes the fourth operation signal, generates second supplementary information for the target device, and updates the device information of the target device in the database according to the second supplementary information. The fourth operation signal is triggered by the user based on the device information of the N devices. For example, the fourth operation signal can be a voice signal. The network device receives and recognizes the voice signal and generates the second supplementary information. Specifically, based on the displayed device information, the scanning device receives the user's voice signal through a microphone and / or earphone module. This voice signal is used to input supplementary information about the device to be verified. The network device recognizes the voice signal and generates the second supplementary information for the target device, and updates the device information of the target device in the database according to the second supplementary information, i.e., the relevant information of the device to be verified is input via voice. In some implementations, the second supplementary information can be determined based on the device information of the N devices displayed, including but not limited to the ID number assigned to the target device, other information that may be missing, etc. The specific second supplementary information is set according to the actual situation, and this application does not make specific limitations on it.
[0049] It should be noted that the scanning device can display the device information of the target device alone, or it can display the device information of one or more devices in the system to be verified except for the target device alone, or it can display the device information of the target device and the device information of one or more devices in the system to be verified at the same time. The specific display situation is determined according to the actual situation, and this application does not make specific limitations in this regard.
[0050] Step 102: Send the device information of each device to the database. The database has pre-entered the system identifier and location information corresponding to each device.
[0051] In some implementations, before verifying each device in the system to be verified, a unique system ID number needs to be assigned to the system in the database. All devices belonging to the system to be verified are assigned this system ID number, which serves as the unique identifier for the system. Simultaneously, the location information of the system to be verified is entered into the database. For example, the location information gradually narrows down from a broad geographical area to a specific room. For instance, the location information may include: the city where the server room is located, the street where the server room is located, the latitude and longitude of the server room, the building number of the server room, the room number of the server room, the rack row (column) number where the device of the system to be verified is located, the rack number, and the U-position within the rack. For each location information, if any one of the location elements differs, it is considered a different location. Specifically, when the location information of the devices belonging to the system to be verified is different, multiple location information entries are required. The specific location information can be set according to actual conditions, and this application does not impose specific limitations on it.
[0052] Step 103: Analyze each device based on its device information, system identifier, and location information in the database to obtain the analysis results.
[0053] In some implementations, after all devices in the system to be verified have been verified, the verification personnel automatically invoke the "network topology analysis module" in the network devices through automated means. Specific invocation methods include, but are not limited to, voice commands, real-time commands, timed commands, and command orchestration. The specific invocation method can be determined according to the actual situation, and this application does not impose specific limitations on it. The network topology analysis module automatically processes the device information, system identifier, and location information of each device in the database to obtain the analysis results.
[0054] In some implementations, each device is analyzed based on its device information, system identifier, and location information in the database to obtain analysis results, including: determining devices belonging to the same target system based on the system identifier and location information of each device in the database; and for each device belonging to the same target system, taking each device as a target device in turn, and analyzing each network port of the target device based on the device information of the target device.
[0055] In some implementations... Figure 3 This is a schematic flowchart of a method for analyzing each network port of a target device according to an embodiment of this application. Figure 3 As shown, the analysis of each network port of the target device includes: taking each network port of the target device as the target port in sequence, and executing steps 301 to 303:
[0056] Step 301: Determine if the target port is connected to a cable.
[0057] Step 302: If no cable is connected to the target port, set the target port to idle.
[0058] Step 303: With the target port connected to the cable, determine whether the opposite port of the target port is idle.
[0059] In some implementations, if the peer port is not idle, it is determined whether the physical connection between the peer port and the target port matches. If they do not match, it is determined that the target port is abnormal. If they match, it is determined that the target port is not abnormal. If the peer port is idle, a physical connection between the target port and the peer port is established.
[0060] In some implementations, based on device information, the network ports of each device are analyzed to determine whether each network port is connected to a cable and whether the port on the other end of the cable is idle, so as to determine the connection status of each network port. If the connection status of a network port is occupied, it is determined whether the network port of the other end device is occupied. Or, if the network port of the other end device is not connected to the network port of this end device, the connection status is corrected to generate a topology diagram of the network physical connection of the system to be verified.
[0061] In some implementations, the system first determines whether the target port is connected to a cable. If no cable is connected, the target port is set to "idle." If the target port is connected to a cable, it determines whether the peer port is idle. If the peer port is not idle (i.e., it is occupied), it determines whether the physical connection between the peer port and the target port matches. Specifically, it identifies which device and which port the peer port belongs to. If they do not match, the target port is considered abnormal; if they match, the target port is considered normal. If the peer port is idle, a physical connection is established between the target port and the peer port. If the target port is occupied but no peer port is currently matched, it is temporarily set to "idle."
[0062] In some implementations, after analyzing the target port, the aforementioned device information can be updated in the database based on the analysis results.
[0063] Step 104: If there is no abnormal network port information in the analysis results, output the network physical topology diagram of the target system; if there is abnormal network port information in the analysis results, output the abnormal information.
[0064] In some implementations, if no abnormal network port information is found in the analysis results, a topology diagram reflecting the physical network connections of the target system is output; if abnormal network port information is found in the analysis results, abnormal information is output. For example, abnormal information in the analysis results means that there are contradictions in the analysis results, such as: the cable label of the "local" port of some devices shows that it is occupied, but the "other end" port of the interconnected cable is actually free; or the actual label of the "local" port cable of the device is inconsistent with the actual "other end" port of the interconnected cable, etc., then an error alarm result is output. The specific abnormal information can be set according to the actual situation, and this application does not make specific limitations on it.
[0065] In some implementations, if abnormal network port information is found in the analysis results, a result report indicating the presence of abnormal information is output.
[0066] In some implementations, if abnormal information is found, the abnormal information is corrected and a topology diagram of the physical network connections of the system to be checked is generated.
[0067] In some implementations, the aforementioned anomaly information or network physical topology diagram can be displayed on the display module of the scanning device, making the results easier to confirm.
[0068] In some implementations, multiple scanning devices can be checked simultaneously in different computer rooms, and the various functional modules of the network device can also be shared remotely. For example, the various functional modules of the network device can be shared in the cloud. The aforementioned functional modules located in the cloud support collaborative mechanisms such as caching, queuing, multi-threading, and resource locking to ensure that when requests from multiple scanning devices are received, the relevant processing resources can be called in an orderly manner. The requests from multiple scanning devices include, but are not limited to, scanning data entry, data retrieval, identification, and algorithm invocation. The specific sharing method or the requests from the scanning devices can be determined according to the actual situation, and this application does not make specific limitations in this regard.
[0069] The technical solution provided in this application involves acquiring device information for each device in the target system; sending this device information to a database, which pre-stores the system identifier and location information corresponding to each device; analyzing each device based on its device information, system identifier, and location information to obtain analysis results; outputting a network physical topology diagram of the target system if no abnormal network port information is found in the analysis results; and outputting abnormal information if abnormal network port information is found in the analysis results. Thus, by analyzing the acquired device information and pre-stored information, an analysis result can be obtained, enabling efficient, accurate, reliable, and easy-to-use automatic verification of the system's network physical topology, while also providing an independent and objective verification method.
[0070] Figure 4 This is a schematic diagram of the system architecture for verifying network physical topology provided in the embodiments of this application. Figure 1 ,like Figure 4 As shown, the system includes: a network device 401, which includes an identification module 4011, a network topology analysis module 4012, and a database 4013; wherein,
[0071] The identification module 4011 is used to acquire device information for each device in the target system; and send the device information of each device to the database 4013, in which the system identifier and location information corresponding to each device are pre-entered.
[0072] The network topology analysis module 4012 is used to analyze each device based on the device information, system identifier, and location information of each device in the database 4013, and obtain the analysis results. If there is no abnormal network port information in the analysis results, the network physical topology diagram of the target system is output; if there is abnormal network port information in the analysis results, abnormal information is output.
[0073] In some implementations, each device is sequentially designated as a target device. The identification module 4011 is specifically used to acquire a first photo and a second photo taken by the scanning device. The first photo is obtained by taking a picture of the panel of the target device, and the second photo is obtained by taking a picture of the identification label on the cable connected to the network port on the panel of the target device. The first photo and the second photo are identified to obtain the device information of the target device, which includes the attribute information and network port information of the target device.
[0074] In some implementations, the attribute information includes at least one of the following: device type, device name, device identifier, and device panel location; the network port information includes at least one of the following: port type, number of ports, and port occupancy status.
[0075] In some embodiments, the system further includes: a scanning device 402; the scanning device 402 includes a human-computer interaction module 4021, a camera module 4022, and a communication module 4023; wherein,
[0076] The human-computer interaction module 4021 is used to collect the first operation signal and the second operation signal input by the user.
[0077] The communication module 4023 is used to send a first operation signal and a second operation signal to the identification module 4011; and to receive a first operation instruction and a second operation instruction sent by the identification module 4011. The first operation instruction is used to trigger the scanning device 402 to take a first picture, and the second operation instruction is used to trigger the scanning device 402 to take a second picture.
[0078] The camera module 4022 is used to respond to the first operation command and the second operation command to take a first photo and a second photo. The first photo is obtained by taking a photo of the panel of the target device, and the second photo is obtained by taking a photo of the identification label on the cable connected to the network port on the panel of the target device.
[0079] The communication module 4023 is used to send the first photo and the second photo to the identification module 4011.
[0080] In some embodiments, the identification module 4011 is further configured to identify the first operation signal and generate a first operation instruction corresponding to the first operation signal, and to identify the second operation signal and generate a second operation instruction corresponding to the second operation signal.
[0081] In some embodiments, the scanning device 402 further includes a display module 4024;
[0082] The communication module 4023 is used to receive the device information of the target device sent by the identification module 4011, and / or the device information of N devices in the database 4013, where N devices are devices in the target system other than the target device, and N is a positive integer;
[0083] The display module 4024 is used to display the device information of the target device, and / or the device information of N devices.
[0084] In some embodiments, the identification module 4011 is further configured to receive a third operation signal sent by the scanning device 402, identify the third operation signal and generate first supplementary information of the target device, and update the device information of the target device in the database 4013 according to the first supplementary information, wherein the third operation signal is triggered by the user according to the device information of the target device; and / or receive a fourth operation signal sent by the scanning device 402, identify the fourth operation signal and generate second supplementary information of the target device, and update the device information of the target device in the database 4013 according to the second supplementary information, wherein the fourth operation signal is triggered by the user according to the device information of N devices.
[0085] In some implementations, the network topology analysis module 4012 is specifically used to determine devices belonging to the same target system based on the system identifier and location information of each device in the database 4013; for each device belonging to the same target system, each device is sequentially used as a target device, and each network port of the target device is analyzed based on the device information of the target device.
[0086] In some implementations, each network port of the target device is sequentially designated as the target port. The network topology analysis module 4012 is specifically used to determine whether a target port is connected to a cable; if the target port is not connected to a cable, the target port is set to idle; if the target port is connected to a cable, the module determines whether the peer port of the target port is idle; if the peer port is not idle, the module determines whether the physical connection between the peer port and the target port matches; if they do not match, the module determines that the target port has an anomaly; if they match, the module determines that the target port does not have an anomaly; if the peer port is idle, the module establishes a physical connection between the target port and the peer port.
[0087] In some embodiments, the scanning device 402 is a head-mounted device, and the display module 4024 is used to display a real image and a digital image, with the digital image superimposed on the real image, and the digital image including device information of the target device.
[0088] The network physical topology verification system provided in this application embodiment consists of a network device 401 and a scanning device 402. The network device 401 includes an identification module 4011, a network topology analysis module 4012, and a database 4013. The scanning device 402 includes a human-computer interaction module 4021, a camera module 4022, a communication module 4023, and a display module 4024. The identification module 4011 acquires device information, the network topology analysis module 4012 obtains analysis results, the database 4013 stores the device information, the human-computer interaction module 4021 obtains specific requests, the camera module 4022 acquires images, and the display module 4024 displays device information. Thus, the network physical topology verification system utilizes the interaction between the various modules of the network device and the various modules of the scanning device to obtain the network physical topology map of the system to be verified in a highly efficient, accurate, reliable, and easy-to-use manner. On the one hand, it can be used by the actual construction personnel of the system to be verified to troubleshoot network topology faults, and on the other hand, it provides an independent and objective verification method for third-party personnel.
[0089] Those skilled in the art should understand that Figure 4 The implementation functions of each module in the system for verifying the physical topology of the network shown can be understood by referring to the relevant descriptions of the aforementioned methods. Figure 4 The functions of each module in the system shown for verifying the physical topology of a network can be implemented through programs running on a processor or through specific logic circuits.
[0090] The technical solutions of the embodiments of this application are illustrated below with specific application examples.
[0091] Currently, checking the correctness and compliance of a system's network physical topology in a data center mainly relies on manual verification of the labels at both ends of the cables, requiring two people to use cable testers. Given the large number of devices and fiber optic cables in a data center, manually checking each cable is difficult, error-prone, and extremely inefficient. Furthermore, in certain special cases, third-party verification is necessary, making it unsuitable for the system's developers. Therefore, a more efficient, accurate, and user-friendly verification method is urgently needed. To address the problems of manual, error-prone, and inefficient manual verification, this application provides a highly efficient, accurate, and user-friendly verification method. It aims to collect information such as photos of actual network connections and utilize artificial intelligence image and text recognition technology, speech recognition and synthesis technology, and efficient algorithm processing to provide system developers and independent third parties with a highly efficient, accurate, reliable, and easy-to-use method for verifying the system's network physical topology.
[0092] Based on the foregoing embodiments, Figure 5 This is a schematic diagram of the system architecture for verifying network physical topology provided in the embodiments of this application. Figure 2 .like Figure 5 As shown, the system includes n scanning devices located at n positions. Each scanning device is a head-mounted glasses-like scanning device (hereinafter referred to as "scanning device"). It interacts with other modules via 4G / 5G base stations or WIFI. The system also includes a database, an AI image and text object recognition module, an AI speech recognition and synthesis module, and a network topology automatic generation algorithm module. The database, AI image and text object recognition module, AI speech recognition and synthesis module, and network topology automatic generation algorithm module are equivalent to the relevant functional modules in the aforementioned network devices. The AI image and text object recognition module and the AI speech recognition and synthesis module are equivalent to the aforementioned recognition module, and the network topology automatic generation algorithm module is equivalent to the aforementioned network topology analysis module. Figure 6 This is a schematic diagram of the structural composition of the scanning device provided in the embodiments of this application. Figure 6 As shown, the scanning device is a head-mounted glasses-like device, including a camera lens module, focus adjustment buttons (zoom in, zoom out), a microphone and / or earphone module, two lenses, an imaging and / or projection device, human-computer interaction input buttons (up, down, confirm), a 4G / 5G wireless cellular communication module, a WIFI module, and a micro motherboard. The camera lens module is located in the middle of the lenses, equivalent to the aforementioned camera module; the camera lens module has two focus adjustment buttons for controlling the camera focus, one for zooming in and the other for zooming out, located on the left eye socket; the microphone and / or earphone module are located on both sides of the eye socket; the two lenses are transparent, allowing observation of objects and supporting image display; the scanning device's "lens" houses the imaging and / or projection device, and the two lenses and the imaging and / or projection device are equivalent to the aforementioned display module; the human-computer interaction input... There are three input buttons: an up button, a down button, and a confirmation button. These buttons can be used to adjust volume and / or select menu options on the digital screen, and their specific functions can be configured according to actual needs; this application does not impose specific limitations on this. A 4G / 5G wireless cellular communication module and a Wi-Fi module are used for communication, equivalent to the aforementioned communication module. The focus adjustment button, microphone, and / or headphone module, along with the input buttons, collectively correspond to the aforementioned human-computer interaction module. Based on this, the method for verifying network physical topology provided in the embodiments of this application is further explained.
[0093] After wearing the scanning device, inspectors can send a "take a picture" voice command to the camera lens module via the microphone and / or earphone module. The scanning device then sends the received voice command to the backend AI speech recognition and synthesis module, which automatically recognizes the corresponding operation command. The AI speech recognition and synthesis module then transmits the operation command back to the scanning device, controlling the camera lens module to take a picture. After the camera lens module takes the picture, the scanning device sends the photo to the backend AI image text object recognition module for AI recognition of objects in the photo. The AI image text object recognition module then sends the results back to the scanning device, which displays them on the lens. Similarly, inspectors can speak other information via the microphone and / or earphone module. The scanning device sends the received "voice information" to the backend AI speech recognition and synthesis module, which automatically recognizes the corresponding "text information" and then transmits the "text information" back to the scanning device.
[0094] Before inspectors begin verifying the physical topology of a system's network, a unique system ID is assigned to the system to be verified in the backend database. All devices belonging to this system are subsequently assigned this system ID, which serves as the unique identifier for the system. Simultaneously, the location information of the system to be verified is entered into the backend database. This location information gradually narrows down from a broad geographical area to a more precise room-like location. Examples include: the city where the server room is located, the street where the server room is located, the latitude and longitude of the server room, the building number of the server room, the room number, the rack row (column) number where the equipment of the system to be verified is located, the rack number, and the U-position within the rack. For each location information, if any one of these location elements differs, it is considered a different location. Specifically, when the location information of the devices belonging to the system to be verified differs, multiple location information entries are required.
[0095] When the inspectors begin their inspection, for each device in the system to be inspected (including possible switches, routers, firewalls, load balancers, servers, storage devices, etc.), they first select and assign complete location information (gradually refining from a broad geographical area to the rack unit within a room, as described earlier). The inspectors first take a view of the front (rear) panel of a particular device. They can see the real-time view of the camera module on the lens of the scanning device. After adjusting the focus appropriately, they speak the command "take a picture" through the microphone and / or earphone module. After the camera module takes the picture, the scanning device sends the photo to the backend AI image text object recognition module for AI recognition of the objects in the photo. The latter then sends a list of the recognized results (including information such as "device category, name, device ID, front / rear panel, network port type (optical port, Ethernet port) located on the panel, quantity, and occupancy status (port activation status)") back to the scanning device, which displays the information on the lens. Afterwards, the scanning device can prompt the inspector to take a picture of the label on the cable connected to the network port of the device currently being inspected, and send it to the backend AI image and text object recognition module for AI recognition. The recognition result is then returned to the scanning device, which displays it to the inspector. Afterwards, the scanning device can open the voice input interaction channel for the inspectors, who can supplement the relevant information of the device to be inspected through voice input (including: the assigned device ID number, other potentially missing information, or information not recognized by the AI image and text object recognition module). At the same time, the head-mounted scanning device can present the inspectors with the relevant information of other components of the system to be inspected (including: device ID, front and rear panels, various optical ports / network ports, etc.) that already exist in the background database (i.e., the network physical topology information database of the system to be inspected) for the inspectors to make selections, so as to complete the physical connection matching of each occupied network interface of the device to be inspected with the port of the connected peer device. If a "local" occupied port is not matched with a "remote" port, it is temporarily set to "idle" and can be further processed by the algorithm in the next stage of the "automatic network topology generation algorithm" execution phase.
[0096] After the above work is completed, the device being verified (including all its information) is stored in the background database, and the verification of this device is completed. The verification personnel continue to repeat the above steps to verify the next device in the system to be verified, until all devices are verified and saved in the background database.
[0097] Once all components of the system under verification have been verified, the verification personnel use automated methods, including voice commands, real-time commands, timed commands, and command programming, to automatically invoke a dedicated "network topology automatic generation algorithm module" in the background. This module processes information from the database automatically. If everything is correct, a topology diagram reflecting the physical connections of the network under verification is generated. If there are inconsistencies, such as a device's "local" port cable label indicating it's occupied, but the "peer" port of the interconnected cable is actually free; or the actual cable label on a device's "local" port doesn't match the actual "peer" port of the interconnected cable, an error alarm is output. This allows the verification personnel to clearly see whether the physical topology of the network under verification is accurate.
[0098] Figure 7 This is a schematic flowchart of a method for verifying network physical topology provided in an embodiment of this application. Figure 2 ;like Figure 7 As shown, the method for verifying the network physical topology includes the following steps:
[0099] Step 701: Determine whether the devices belong to the same system ID.
[0100] Before step 701, it is necessary to obtain the device information of each device in the system to be verified and store it in the database. The specific process of obtaining the device information of each device is as described above and will not be repeated here. Before starting the network physical topology verification of a certain system, a unified system ID number will be assigned to the system to be verified in the background database. All devices belonging to the system to be verified will be assigned this system ID number. Based on the system ID number, it is determined whether they belong to the same system ID. If they are devices with the same system ID, proceed to step 702; otherwise, continue to step 701 to determine the next device.
[0101] Step 702: Construct different "output result areas" for the devices in different location areas.
[0102] The output results area is used to display and / or store the analysis results of the device. In the future, it can be used to display the analysis results on the terminal, so that the user can see the analysis results of each area. One output results area can correspond to one device, multiple devices, or a system to be verified. The specific settings of the output results area can be set according to the actual situation, and this application does not make specific limitations on this.
[0103] Step 703: Perform algorithm processing for each device.
[0104] Each device can be processed by the aforementioned network topology automatic generation algorithm module. If there are devices in the system to be checked that have not yet been analyzed, steps 704 to 711 are executed. If all devices in the system to be checked have been analyzed, steps 712 to 714 are executed.
[0105] Step 704: Create a "Network Entity" for the device in the "Output Results Area" of its location.
[0106] For example, create a new network entity 1 in the output results area 1 and set its attributes, including: name, ID, type, etc. Then, you can add the corresponding analysis results to network entity 1.
[0107] Step 705: Analyze each network port (including front and rear panels) of each device one by one.
[0108] If any ports have not yet been analyzed, proceed to steps 706 to 711. If all ports have been analyzed, return to step 703 to analyze the next device.
[0109] Step 706: Determine whether the above network port is not connected to a cable.
[0110] If the above network port is not connected to a cable, proceed to step 707; if the above network port is connected to a cable, proceed to steps 708 to 711.
[0111] Step 707: In the "Output Results Area", set the port of the "Network Entity" to "Idle".
[0112] Step 708: For the above network ports, determine whether the physical connection port on the other end is idle.
[0113] For a network port with a connected cable, determine whether the physical connection port on the other end is idle. If it is idle, proceed to step 709; otherwise, proceed to steps 710 to 711.
[0114] Step 709: For the above network port, establish a link connection with the device to which the physical connection port of its counterpart belongs in the "Output Result Area".
[0115] For network ports where the peer physical connection port is idle, establish a connection with the device to which the peer physical connection port belongs in the "Output Result Area". Then return to step 705 to determine the status of the next port.
[0116] Step 710: Determine whether the physical connection between the peer physical connection port and the currently analyzed network port is consistent.
[0117] For network ports where the physical connection port of the peer is not idle, determine whether the physical connection between the physical connection port of the peer and the network port currently being analyzed is consistent. If they are inconsistent, proceed to step 711. If they are consistent, return to step 705 to determine the next port.
[0118] Step 711: Generate a critical warning.
[0119] A critical warning is generated for ports where the physical connection between the peer's physical connection port and the currently analyzed network port is inconsistent.
[0120] Step 712: Are there any alarms?
[0121] After all devices have been analyzed, determine if there are any alarms, i.e., whether there were any previous warnings. If there are no alarms, proceed to step 713; otherwise, proceed to step 714.
[0122] Step 713: Output a report of the network physical topology results of the system to be checked.
[0123] For systems under investigation that do not generate any alarms, output a network physical topology report of the system under investigation. The algorithm then terminates.
[0124] Step 714: Output a report of any errors.
[0125] For systems under investigation that have alarms, a report of erroneous results is output, which includes the aforementioned alarm information. The algorithm then terminates.
[0126] This verification method provides third-party personnel with a highly efficient, accurate, reliable, and easy-to-use way to verify the physical topology of a system's network.
[0127] Furthermore, the method in this application supports simultaneous verification by multiple people in different computer rooms, requiring only that each person wears a scanning device. The other backend modules, including the "database," "AI image text object recognition module," "AI speech recognition and synthesis module," and "network topology automatic generation algorithm module," are shared in the cloud and can be remotely shared. These cloud-based functional modules support collaborative mechanisms such as caching, queuing, multithreading, and resource locking to ensure that when requests originating from multiple scanning devices (including: scan data entry, data retrieval, AI recognition, and algorithm invocation) are received, the relevant processing resources can be accessed in an orderly manner.
[0128] It should be noted that, Figure 5 , Figure 6 The implementation functions of each module in the system and scanning device for verifying the network physical topology shown can be understood by referring to the relevant descriptions of the aforementioned methods.
[0129] The technical solutions provided in this application include an automatic network physical topology verification method, a network physical topology verification method supporting precise location information, a method supporting multi-person parallel collaboration for verifying cross-regional network physical topology, and an automatic network physical topology generation algorithm based on structured data records. The system network physical topology verification method of this application is highly efficient, accurate, reliable, and easy to use. On the one hand, it can be used by system builders to troubleshoot system network topology faults; on the other hand, it provides third-party personnel with an independent and objective verification method.
[0130] The preferred embodiments of this application have been described in detail above with reference to the accompanying drawings. However, this application is not limited to the specific details of the above embodiments. Within the scope of the technical concept of this application, various simple modifications can be made to the technical solutions of this application, and these simple modifications all fall within the protection scope of this application. For example, the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. To avoid unnecessary repetition, this application will not describe the various possible combinations separately. Furthermore, various different embodiments of this application can also be arbitrarily combined, as long as they do not violate the spirit of this application, they should also be considered as the content disclosed in this application. Moreover, without conflict, the various embodiments and / or the technical features in the various embodiments described in this application can be arbitrarily combined with the prior art, and the resulting technical solutions should also fall within the protection scope of this application.
[0131] It should be understood that in the various method embodiments of this application, the sequence number of each process does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0132] Figure 8 This is a schematic structural diagram of a processing device 800 provided in an embodiment of this application. This processing device can be a system for verifying the physical topology of a network. Figure 8 The processing device 800 shown includes a processor 810, which can call and run computer programs from memory to implement the methods in the embodiments of this application.
[0133] Optionally, such as Figure 8 As shown, the processing device 800 may further include a memory 820. The processor 810 can retrieve and run computer programs from the memory 820 to implement the methods described in the embodiments of this application.
[0134] The memory 820 can be a separate device independent of the processor 810, or it can be integrated into the processor 810.
[0135] Optionally, such as Figure 8 As shown, the processing device 800 may also include a transceiver 830, which the processor 810 can control to communicate with other devices. Specifically, it can send information or data to other devices or receive information or data sent by other devices.
[0136] The transceiver 830 may include a transmitter and a receiver. The transceiver 830 may further include an antenna, and the number of antennas may be one or more.
[0137] Optionally, the processing device 800 may specifically be a system for verifying network physical topology in the embodiments of this application, and the processing device 800 may implement the corresponding processes implemented by the system for verifying network physical topology in the various methods of the embodiments of this application. For the sake of brevity, it will not be described in detail here.
[0138] Figure 9 This is a schematic structural diagram of the chip according to an embodiment of this application. Figure 9 The chip 900 shown includes a processor 910, which can call and run computer programs from memory to implement the methods in the embodiments of this application.
[0139] Optionally, such as Figure 9 As shown, chip 900 may further include memory 920. Processor 910 can retrieve and run computer programs from memory 920 to implement the methods described in this embodiment.
[0140] The memory 920 can be a separate device independent of the processor 910, or it can be integrated into the processor 910.
[0141] Optionally, the chip 900 may also include an input interface 930. The processor 910 can control the input interface 930 to communicate with other devices or chips; specifically, it can acquire information or data sent by other devices or chips.
[0142] Optionally, the chip 900 may also include an output interface 940. The processor 910 can control the output interface 940 to communicate with other devices or chips, specifically, to output information or data to other devices or chips.
[0143] Optionally, the chip can be applied to the system for verifying the network physical topology in the embodiments of this application, and the chip can implement the corresponding processes implemented by the system for verifying the network physical topology in the various methods of the embodiments of this application. For the sake of brevity, it will not be described in detail here.
[0144] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0145] It should be understood that the processor in the embodiments of this application may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method embodiments can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor described above can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method.
[0146] It is understood that the memory in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DR RAM). It should be noted that the memory used in the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0147] It should be understood that the above-described memory is exemplary and not a limiting description. For example, the memory in the embodiments of this application may also be static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DR RAM), etc. That is to say, the memory in the embodiments of this application is intended to include, but is not limited to, these and any other suitable types of memory.
[0148] This application also provides a computer program product, including a computer program.
[0149] Optionally, the computer program product can be applied to the system for verifying network physical topology in the embodiments of this application, and when the computer program is executed by the processor, it implements the corresponding processes implemented by the system for verifying network physical topology in the various methods of the embodiments of this application. For the sake of brevity, it will not be described in detail here.
[0150] This application also provides a computer-readable storage medium for storing computer programs.
[0151] Optionally, the computer-readable storage medium can be applied to the system for verifying network physical topology in the embodiments of this application, and the computer program causes the computer to execute the corresponding processes implemented by the system for verifying network physical topology in the various methods of the embodiments of this application. For the sake of brevity, these will not be described in detail here.
[0152] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0153] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0154] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0155] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0156] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0157] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0158] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method of verifying a cyber physical topology, characterized by, The method comprises: For each device in the target system, obtaining device information of each device; Sending the device information of each device to a database in which the system identifier and location information corresponding to each device are pre-recorded; Analyzing each device according to the device information, system identifier and location information of each device in the database to obtain an analysis result; If there is no abnormal network port information in the analysis result, output the network physical topology of the target system; if there is abnormal network port information in the analysis result, output abnormal information; The analysis of each device according to the device information, system identifier and location information of each device in the database to obtain an analysis result comprises: According to the system identifier and location information of each device in the database, determine the devices belonging to the same target system; for each device belonging to the same target system, take each device as a target device in turn, and analyze each network port of the target device based on the device information of the target device; The analysis of each network port of the target device comprises: taking each network port of the target device as a target port in turn, and executing the following steps: Determine whether the target port is connected to a cable; in the case that the target port is not connected to a cable, set the target port as idle; in the case that the target port is connected to a cable, determine whether the opposite end port of the target port is idle; if the opposite end port is not idle, determine whether the physical connection of the opposite end port and the target port matches, if not, determine that the target port has an abnormality, if yes, determine that the target port has no abnormality; if the opposite end port is idle, establish the physical connection between the target port and the opposite end port.
2. The method of claim 1, wherein, The obtaining of the device information of each device comprises: Taking each device as a target device in turn, and executing the following steps: Obtaining a first photo and a second photo taken by a scanning device, the first photo being obtained by taking a panel of a target device, and the second photo being obtained by taking an identification tag on a cable connected to a network port on the panel of the target device; Identifying the first photo and the second photo to obtain device information of the target device, the device information comprising attribute information and network port information of the target device.
3. The method of claim 2, wherein, The attribute information comprises at least one of the following: device type, device name, device identifier, panel position of the device; the network port information comprises at least one of the following: port type, port quantity, port occupancy.
4. The method of claim 2, wherein, The obtaining of the first photo and the second photo taken by the scanning device comprises: Receiving a first operation signal sent by a scanning device, identifying the first operation signal and generating a first operation instruction corresponding to the first operation signal, sending the first operation instruction to the scanning device, the first operation instruction being used to trigger the scanning device to take the first photo; receiving the first photo sent by the scanning device; receive a second operation signal sent by the scanning device, identify the second operation signal and generate a second operation instruction corresponding to the second operation signal, send the second operation instruction to the scanning device, and the second operation instruction is used to trigger the scanning device to take the second photo; and receive the second photo sent by the scanning device.
5. The method of claim 2, wherein, After the first photo and the second photo are identified to obtain the device information of the target device, the method further comprises: sending the device information of the target device to a scanning device to display the device information of the target device on the scanning device; receiving a third operation signal sent by the scanning device, identifying the third operation signal and generating first supplementary information of the target device, and updating the device information of the target device in the database according to the first supplementary information, wherein the third operation signal is triggered by a user according to the device information of the target device; and / or sending the device information of N devices in the database to a scanning device to display the device information of the N devices on the scanning device, the N devices being devices other than the target device in the target system, and N being a positive integer; receiving a fourth operation signal sent by the scanning device, identifying the fourth operation signal and generating second supplementary information of the target device, and updating the device information of the target device in the database according to the second supplementary information, wherein the fourth operation signal is triggered by a user according to the device information of the N devices.
6. A system for verifying a cyber physical topology, the system comprising: The system comprises a network device, the network device comprising an identification module, a network topology analysis module and a database; wherein, the identification module is configured to obtain device information of each device in a target system; and send the device information of each device to a database, wherein the database has pre-recorded system identifiers and location information corresponding to each device; the network topology analysis module is configured to analyze each device according to the device information, system identifiers and location information of each device in the database, to obtain an analysis result; if there is no abnormal network port information in the analysis result, output a network physical topology diagram of the target system; and if there is abnormal network port information in the analysis result, output abnormal information; the network topology analysis module is specifically configured to determine devices belonging to the same target system according to the system identifiers and location information of each device in the database; and for each device belonging to the same target system, take each device as a target device in turn, and analyze each network port of the target device based on the device information of the target device. The network topology analysis module is specifically configured to determine whether the target port is connected with a cable; in the case that the target port is not connected with a cable, the target port is set as idle; in the case that the target port is connected with a cable, it is determined whether an opposite end port of the target port is idle; if the opposite end port is not idle, it is determined whether a physical connection of the opposite end port and the target port matches, if not, it is determined that the target port is abnormal, if yes, it is determined that the target port is normal; if the opposite end port is idle, a physical connection of the target port and the opposite end port is established.
7. The system of claim 6, wherein, The system further comprises a scanning device; the scanning device comprises a human-computer interaction module, a camera module and a communication module; wherein, The human-computer interaction module is configured to collect a first operation signal and a second operation signal input by a user; The communication module is configured to send the first operation signal and the second operation signal to the identification module; receive a first operation instruction and a second operation instruction sent by the identification module, the first operation instruction being used to trigger the scanning device to take a first photo, and the second operation instruction being used to trigger the scanning device to take a second photo; The camera module is configured to take the first photo and the second photo in response to the first operation instruction and the second operation instruction, the first photo being taken by shooting a panel of a target device, and the second photo being taken by shooting an identification tag on a cable connected to a network port on the panel of the target device; The communication module is configured to send the first photo and the second photo to the identification module.
8. The system of claim 7, wherein, The scanning device further comprises a display module; The communication module is configured to receive device information of the target device and / or device information of N devices in the database, the N devices being devices other than the target device in the target system, and N being a positive integer; The display module is configured to display the device information of the target device and / or the device information of the N devices.
9. The system of claim 8, wherein, The scanning device is a head-mounted device, and the display module is configured to display a real scene and a digital scene, the digital scene being superimposed on the real scene, and the digital scene comprising the device information of the target device.
10. A processing device, characterized by comprising: a processor and a memory for storing a computer program, the processor being configured to invoke and run the computer program stored in the memory to execute the method according to any one of claims 1 to 5.
11. A computer program product, characterised in that, comprising: a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that, a computer program for storing a computer program which enables a computer to execute the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
High-speed interconnection network topology discovery method and device, medium and high-performance computing system
CN111585821A
Troubleshooting method and device, storage medium and computer equipment
CN114157554A