Intelligent marking method, device, equipment and system based on network equipment topological graph
By receiving and classifying network device information, generating topology maps and marking abnormal devices, the problem of inefficient troubleshooting caused by the complexity of network device topology maps is solved, and real-time display of device status and intelligent diagnosis are realized.
Patent Information
- Application Number
- CN202411338744.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-25
- Publication Date
- 2025-01-03
AI Technical Summary
The topology diagram of existing network equipment is complex and difficult to understand intuitively, resulting in low efficiency for operation and maintenance personnel in troubleshooting and solving network problems.
Receive network device information through the transport layer protocol, classify and determine the device parent-child relationship, automatically generate a topology map, and re-get device information after clicking the intelligent diagnostic button, mark abnormal devices, and provide solution strategies.
It improves the efficiency of problem detection in the topology diagram of network equipment, ensures real-time display of device status and intelligent diagnosis of problems.
Smart Images

Figure CN119254637A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of topology display, and in particular to an intelligent marking method, device, equipment and system based on a network device topology map. Background Art
[0002] As the scale of the network expands, the topology of network devices may become very complex, resulting in dense nodes and connection lines that are difficult to understand intuitively, and large-scale layout updates are prone to cause user cognitive confusion. However, the topology of network devices cannot be dynamically displayed on the system, which is inconvenient for operation and maintenance personnel to manage. As a result, when large projects encounter network problems, it is difficult for researchers and developers to troubleshoot and solve problems. Summary of the invention
[0003] The main purpose of this application is to provide an intelligent marking method, device, equipment and system based on a network device topology map, aiming to solve the technical problem that it is difficult to troubleshoot problems in existing network device topology maps.
[0004] To achieve the above objectives, the present application proposes an intelligent marking method based on a network device topology map, the intelligent marking method based on a network device topology map comprising:
[0005] receiving first device information of a network device through a transport layer protocol;
[0006] Classifying devices according to the first device information and determining parent-child relationships of devices;
[0007] Analyzing the parent-child relationship of the devices and automatically generating a first network device topology diagram;
[0008] reacquiring second device information of the network device based on the intelligent diagnosis button of the first network device topology map;
[0009] The second network device topology map is regenerated according to the re-acquired second device information, and abnormal network devices are marked in the regenerated second network device topology map.
[0010] In one embodiment, before the step of reacquiring the second device information of the network device by the intelligent diagnosis button based on the network device topology map, the step further includes:
[0011] Adding a smart diagnosis button to the first network device topology map page;
[0012] The step of reacquiring the second device information of the network device based on the intelligent diagnosis button of the network device topology diagram comprises:
[0013] Obtaining a click instruction of the smart diagnosis button, and sending a device information acquisition instruction to the network device according to the click instruction of the smart diagnosis button, so that the network device feeds back device information;
[0014] The second device information and connection information of the online network device are reacquired according to the device information fed back by the network device.
[0015] In one embodiment, the step of regenerating the second network device topology map according to the re-acquired second device information and marking abnormal network devices in the regenerated second network device topology map includes:
[0016] Regenerate a second network device topology map according to the second device information and the connection information;
[0017] Determine, based on the device information fed back by the network device, an offline device, an online device with an abnormal port connection, and a device with a connected port but an abnormal port rate;
[0018] The offline devices, the online devices but with abnormal port connections, and the devices with connected ports but abnormal port rates are marked in the second network device topology map.
[0019] In one embodiment, after the step of marking abnormal network devices in the regenerated second network device topology map, the method further includes:
[0020] Acquire marked abnormal devices, wherein the abnormal devices at least include offline devices, online devices with abnormal port connections, and devices with abnormal port speeds in a connected state;
[0021] For the abnormal situation of the marked abnormal device, a corresponding solution strategy is determined and the solution strategy is displayed.
[0022] In one embodiment, the step of receiving first device information of a network device through a transport layer protocol includes:
[0023] The first device information fed back by the network device through each port link is received through the transport layer protocol, wherein the first device information at least includes device type, device address, device port, port status and port rate.
[0024] In one embodiment, the step of classifying devices according to the first device information and determining the parent-child relationship of devices includes:
[0025] Acquire the first device information;
[0026] Analyzing the connection relationship between the network devices according to the first device information;
[0027] The classification of the parent device and the child device is determined according to the connection relationship, thereby determining the parent-child relationship of the devices.
[0028] In one embodiment, the step of analyzing the parent-child relationship of the devices and automatically generating a first network device topology diagram includes:
[0029] Automatically layout and draw the first network device topology diagram by analyzing the parent-child relationship of the devices;
[0030] Intelligently adjust the node positions and connection lines in the first network device topology map to optimize the layout of the first network device topology map.
[0031] In addition, to achieve the above purpose, the present application also proposes a smart marking device based on a network device topology map, and the smart marking device based on a network device topology map includes:
[0032] A receiving module, used for receiving first device information of a network device through a transport layer protocol;
[0033] A classification module, used to classify devices according to the first device information and determine the parent-child relationship of devices;
[0034] A generating module, used for analyzing the parent-child relationship of the devices and automatically generating a first network device topology diagram;
[0035] an acquisition module, configured to reacquire second device information of the network device based on the intelligent diagnosis button of the first network device topology map;
[0036] The marking module is used to regenerate the second network device topology map according to the re-acquired second device information, and mark abnormal network devices in the re-generated second network device topology map.
[0037] In addition, to achieve the above-mentioned purpose, the present application also proposes an intelligent marking device based on a network device topology map, the device comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of the intelligent marking method based on the network device topology map as described above.
[0038] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the intelligent marking method based on the network device topology map as described above are implemented.
[0039] In addition, to achieve the above-mentioned purpose, the present application also provides a smart marking system based on a network device topology map. The smart marking system based on a network device topology map adopts a B / S architecture, apache tomcat as a web server, mysql as a database to store relevant records, and uses the https protocol for web data interaction. The cloud platform and network devices communicate through the TCP protocol, and the transmitted data format adopts the JSON format.
[0040] One or more technical solutions proposed in this application have at least the following technical effects:
[0041] The first device information of the network device is received through the transport layer protocol; the device is classified according to the first device information, and the parent-child relationship of the device is determined; the parent-child relationship of the device is analyzed and the first network device topology map is automatically generated; the second device information of the network device is re-acquired based on the intelligent diagnosis button of the first network device topology map; the second network device topology map is re-generated according to the re-acquired second device information, and abnormal network devices are marked in the re-generated second network device topology map. Compared with the prior art, the present application improves the efficiency of troubleshooting in the network device topology map by setting an intelligent diagnosis button in the topology map of the network device, thereby re-acquiring the topology map according to the intelligent diagnosis button, and marking abnormal network devices in the re-acquired topology map. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0044] Figure 1 A flow chart of the first embodiment of the intelligent marking method based on the network device topology diagram of the present application;
[0045] Figure 2 A flowchart of an implementable method of the first embodiment of the intelligent marking method based on the network device topology diagram of the present application;
[0046] Figure 3 A flow chart of the second embodiment of the intelligent marking method based on the network device topology diagram of the present application;
[0047] Figure 4A flowchart of the third embodiment of the intelligent marking method based on the network device topology diagram of the present application is provided;
[0048] Figure 5 A schematic diagram of the module structure of the smart marking device based on the network device topology diagram according to an embodiment of the present application;
[0049] Figure 6 It is a schematic diagram of the device structure of the hardware operating environment involved in the intelligent marking method based on the network device topology diagram in the embodiment of the present application.
[0050] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0051] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0052] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0053] The main solutions of the embodiments of this application are:
[0054] As the scale of the network expands, the topology of network devices may become very complex, resulting in dense nodes and connection lines that are difficult to understand intuitively, and large-scale layout updates are prone to cause user cognitive confusion. In the existing technology, the topology of network devices cannot be dynamically displayed on the system, which is inconvenient for operation and maintenance personnel to manage. As a result, when large projects encounter network problems, it is difficult for researchers and developers to troubleshoot and solve problems.
[0055] This application combines the network device topology map with intelligent device diagnosis, which not only solves the problem that the existing network device topology map cannot dynamically display the device status on the system, but also provides intelligent diagnosis and solution strategies for device problems.
[0056] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a smart marking device based on a network device topology map, etc. The following takes the smart marking system based on a network device topology map as an example to illustrate this embodiment and the following embodiments.
[0057] Based on this, the embodiment of the present application provides an intelligent marking method based on a network device topology map, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the intelligent marking method based on the network device topology diagram of the present application.
[0058] In this embodiment, the intelligent marking method based on the network device topology diagram includes steps S10 to S50:
[0059] Step S10: receiving first device information of a network device through a transport layer protocol.
[0060] It should be noted that in the Open System Interconnect (OSI) model and the Transmission Control Protocol (TCP) model / Internet Protocol (IP) model, the transport layer is the fourth layer, located above the network layer and below the application layer. The transport layer is mainly responsible for providing reliable data transmission services between two nodes in the network. In addition, the transport layer protocol mainly used in this application is TCP.
[0061] In addition, the transport layer protocol receives the first device information fed back by the network device through each port link. The first device information includes device type, device MAC, device IP information, device MAC connected to the port, port status, port rate and other related information.
[0062] In addition, the types of network devices mainly include gateways, core switches, aggregation switches, wireless access points (APs), routers, bridges and hubs.
[0063] In addition, the process of receiving device information through the transport layer protocol usually includes the network device connecting to the smart tag system based on the network device topology map through the TCP protocol. The two exchange information by sending and receiving data packets. The system processes and parses the received information for easy understanding and use, which usually involves decoding data formats such as JavaScript Object Notation (JSON), eXtensible Markup Language (XML) or device-specific binary formats.
[0064] Step S20: classify devices according to the first device information and determine the parent-child relationship of devices.
[0065] It should be noted that the parent-child relationship of devices is usually used to describe the hierarchy or dependency between devices in the network. In the network topology, some devices may control or manage other devices to form a hierarchy. For example, a central server may manage multiple workstations. Here, the server is the parent device and the workstation is the child device. The parent-child relationship of devices can also represent the physical or logical connection between devices. For example, a router may connect to multiple switches. The router is the parent device because it provides a path for the switch to access the external network.
[0066] Understandably, understanding device parent-child relationships is critical for troubleshooting and problem solving. A failure in one device may affect its child devices, for example, if a central switch fails, all devices connected to it (child devices) may lose network connectivity. In security policies, parent-child relationships help determine which devices require stricter security controls. Parent devices typically require stronger protections because they have greater control over child devices. When performing system maintenance or software updates, parent-child relationships help determine the order and dependencies of updates, typically updating parent devices first and then child devices to ensure compatibility and stability.
[0067] In addition, device classification generally refers to the process of grouping devices according to their functions, uses, technical characteristics or other common attributes. This classification helps to organize and manage devices, especially in large networks or complex systems, where device classification becomes more important.
[0068] In addition, in the present application, the connection relationship between the network devices can be analyzed based on the first device information, and then the classification of the parent device and the child device can be determined, thereby determining the parent-child relationship of the devices.
[0069] It can be understood that this intelligent determination of the parent-child relationship of devices provides a solid foundation for the subsequent automatic generation of network device topology diagrams.
[0070] Step S30, analyzing the parent-child relationship of the devices and automatically generating a first network device topology diagram.
[0071] It should be noted that a network device topology diagram is a diagram that graphically displays the physical or logical layout of each device (node) in the network and the connection relationship between them. This kind of diagram is very useful for understanding the network structure, planning network upgrades, diagnosing network problems, and performing daily network management tasks.
[0072] In addition, the intelligent marking system based on the network device topology map automatically layouts and draws the first network device topology map by analyzing the parent-child relationship of the devices, and also intelligently adjusts the node positions and connection lines in the first network device topology map to optimize the layout of the first network device topology map.
[0073] It is understandable that this intelligent generation and optimization of the layout of network device topology diagrams is an important part of network management and design. It can improve the readability and aesthetics of network topology diagrams, and also help to more clearly display the network structure and connection relationships.
[0074] Step S40: reacquire the second device information of the network device based on the smart diagnosis button of the first network device topology map.
[0075] It should be noted that the smart tagging system based on the network device topology map adds a smart diagnosis button to the network device topology map page. When you click the smart diagnosis button in the topology map, the system will actively send a TCP request instruction to the network device to obtain device-related information. After receiving the instruction, the device reports the second device information. It is understandable that the second device information also includes relevant information such as device type, device MAC, device IP information, device MAC connected to the port, port status, port rate, etc.
[0076] It is understandable that there may be a long time interval between using the smart diagnosis button and obtaining the first network device topology map, so re-obtaining the second device information of the network device through the smart diagnosis button ensures the real-time connection status of the network device, and improves the accuracy of diagnosis for subsequent troubleshooting through the network device topology map.
[0077] Step S50: regenerate the second network device topology map according to the re-acquired second device information, and mark the abnormal network devices in the re-generated second network device topology map.
[0078] It should be noted that the second network device topology map is automatically generated based on the second device information. It will display the latest device information and connection status of the network device, and will also reflect the parent-child relationship of the device. In addition, the second network device topology map also has an intelligent diagnosis button for the next intelligent diagnosis of the network device.
[0079] In addition, the abnormal network devices at least include offline devices, online devices with abnormal port connections, and devices with abnormal port speeds in a connected state.
[0080] In one possible implementation, refer to Figure 2 , after step S50, steps A11 to A12 may also be included:
[0081] Step A11: Obtain information of the marked abnormal device.
[0082] It should be noted that the information of abnormal devices mainly includes the device's connection status (device online or offline), configuration status, hardware status, security settings and port speed.
[0083] Step A12: Determine a corresponding solution strategy for the abnormal situation of the marked abnormal device, and display the solution strategy.
[0084] It should be noted that the solution strategies usually include: checking the physical connection to ensure that the network cable or fiber optic connector is not loose or damaged; checking the port status through the device management interface or command line interface to confirm whether the port is disabled or misconfigured; using network diagnostic tools to check the network connection; checking the device's log files for possible error messages or warnings; restarting the device can sometimes solve temporary network problems.
[0085] Specifically, the display interface of the intelligent tagging system based on the network device topology map will at least include the network device topology map and a solution strategy display box, which displays the solution strategy for professionals to view and troubleshoot and solve the problem according to the solution strategy. The solution strategy display box includes but is not limited to a text box or a pop-up window.
[0086] This embodiment provides a smart marking method based on a network device topology map, which receives first device information of a network device through a transport layer protocol; classifies devices according to the first device information and determines the parent-child relationship of devices; analyzes the parent-child relationship of devices and automatically generates a first network device topology map; reacquires second device information of the network device based on the smart diagnosis button of the first network device topology map; regenerates the second network device topology map according to the reacquired second device information, and marks abnormal network devices in the regenerated second network device topology map. This application improves the efficiency of troubleshooting in the network device topology map by setting a smart diagnosis button in the topology map of the network device, thereby reacquiring the topology map according to the smart diagnosis button, marking abnormal network devices in the reacquired topology map, and providing a solution strategy.
[0087] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 3 , S40 may include steps S401 to S403:
[0088] Step S401, adding a smart diagnosis button in the first network device topology map page.
[0089] It should be noted that the system will add an intelligent diagnosis button at a suitable position in the generated first network device topology map page to detect click instructions.
[0090] It is understandable that when a professional or relevant person views the first network device topology map, the smart diagnosis button already exists in the topology map page displayed by the system.
[0091] Step S402, obtaining a click instruction of the smart diagnosis button, and sending a device information acquisition instruction to the network device according to the click instruction of the smart diagnosis button, so that the network device feeds back device information.
[0092] It should be noted that clicking usually refers to the action of pressing and then releasing the left or right button of a mouse, and a click instruction usually refers to performing a click operation on a program or web page to trigger a function or command. The click instruction of this application is to perform a click operation on the smart diagnostic button in the network device topology map, thereby triggering the diagnostic function of the network device.
[0093] In addition, when the system obtains the click instruction of the smart diagnosis button, it will send an instruction to obtain device information to the network device, and the acquisition instruction can enable the network device to feedback the corresponding device information to the system.
[0094] Step S403: reacquire the second device information and connection information of the online network device according to the device information fed back by the network device.
[0095] It should be noted that the second device information mainly includes device type, device MAC, device IP information, device MAC connected to the port, port status, port rate and other related information. The connection information at least includes the connection status of the device (online or offline).
[0096] In addition, based on the device information fed back by the network device, the system can re-acquire the second device information and connection information of the online network device. This re-acquisition process allows the system to obtain the online or offline status of the device in real time, ensuring the real-time update of the device information, and the re-acquired second device information and connection information can lay a solid foundation for the subsequent steps of marking abnormal devices.
[0097] This embodiment adds an intelligent diagnosis button to the network device topology diagram, thereby reacquiring device information according to a click instruction of the intelligent diagnosis button, thereby ensuring the accuracy of troubleshooting network device problems each time the intelligent diagnosis is performed.
[0098] Based on the first and second embodiments of the present application, in the third embodiment of the present application, the same or similar contents as those in the first and second embodiments can be referred to the above description, and will not be described in detail later. Figure 4 , step S50 also includes steps S501 to S503:
[0099] Step S501: regenerate a second network device topology map according to the second device information and the connection information.
[0100] It should be noted that the regenerated second network device topology map ensures real-time updating of the network device topology map, thereby helping to determine whether the latest device information has abnormalities.
[0101] Step S502, determining an offline device, an online device but with abnormal port connection, and a device with a connected port but abnormal port rate according to the device information fed back by the network device.
[0102] It should be noted that the system will determine offline devices, online devices but with abnormal port connections, and devices with connected ports but abnormal port rates based on the device information fed back by the network devices, and mark these devices. The system may also record log information of abnormal devices, including the time, duration, and possible causes of the abnormality, so that these devices can be marked more quickly and accurately in the network device topology diagram in the following steps.
[0103] Step S503: Mark the offline devices, the online devices with abnormal port connections, and the devices with connected ports but abnormal port rates in the second network device topology map.
[0104] It should be noted that such marking usually includes color marking, such as using eye-catching colors (such as red) to mark abnormal devices for quick identification; icon changes, such as the icon of an abnormal device may change, such as adding an exclamation mark or question mark icon to indicate that there is a problem with the device or a configuration question; status label, such as adding a text label next to the device to indicate the abnormal status of the device, such as "disconnected", "configuration error" or "degraded performance"; connection line style, such as the connection line of an abnormal device may use a dotted line, a wavy line or a special color to indicate a disconnected or unstable connection; pop-up prompts, such as in an interactive topology map, when the mouse hovers over an abnormal device, a pop-up prompt may be displayed to provide detailed information about the abnormality; group display, such as in a complex network topology, abnormal devices may be displayed in groups for centralized management and troubleshooting.
[0105] This embodiment generates a second network device topology map according to the second device information and marks abnormal devices in the second network device topology map, thereby improving the efficiency of troubleshooting according to the network device topology map.
[0106] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the intelligent marking method based on the network device topology map of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0107] This application also provides a smart marking device based on a network device topology diagram, please refer to Figure 5 , the intelligent marking device based on the network device topology diagram includes:
[0108] A receiving module 10, configured to receive first device information of a network device through a transport layer protocol;
[0109] A classification module 20, configured to classify devices according to the first device information and determine the parent-child relationship of devices;
[0110] A generating module 30, configured to analyze the parent-child relationship of the devices and automatically generate a first network device topology diagram;
[0111] An acquisition module 40, configured to reacquire second device information of the network device based on the smart diagnosis button of the first network device topology map;
[0112] The marking module 50 is used to regenerate the second network device topology map according to the re-acquired second device information, and mark abnormal network devices in the re-generated second network device topology map.
[0113] The intelligent marking device based on the network device topology map provided by the present application adopts the intelligent marking method based on the network device topology map in the above embodiment, which can solve the technical problem that the existing network device topology map is difficult to troubleshoot. Compared with the prior art, the beneficial effects of the intelligent marking device based on the network device topology map provided by the present application are the same as the beneficial effects of the intelligent marking method based on the network device topology map provided by the above embodiment, and the other technical features of the intelligent marking device based on the network device topology map are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0114] In one embodiment, the acquisition module 40 is also used to add a smart diagnosis button in the first network device topology map page; obtain a click instruction of the smart diagnosis button, and send a device information acquisition instruction to the network device according to the click instruction of the smart diagnosis button, so that the network device can feedback device information; and re-acquire the second device information and connection information of the online network device according to the device information fed back by the network device.
[0115] In one embodiment, the marking module 50 is also used to regenerate a second network device topology map based on the second device information and the connection information; determine offline devices, online devices but with abnormal port connections, and devices with ports in a connected state but abnormal port rates based on the device information fed back by the network device; and mark the offline devices, online devices but with abnormal port connections, and devices with ports in a connected state but abnormal port rates in the second network device topology map.
[0116] In one embodiment, the marking module 50 is also used to obtain marked abnormal devices, wherein the abnormal devices at least include offline devices, online devices but with abnormal port connections, and devices whose ports are connected but with abnormal port rates; for the abnormal conditions of the marked abnormal devices, a corresponding solution strategy is determined, and the solution strategy is displayed.
[0117] In one embodiment, the receiving module 10 is further used to receive, through the transport layer protocol, first device information fed back by the network device through each port link, wherein the first device information includes at least device type, device address, device port, port status and port rate.
[0118] In one embodiment, the classification module 20 is further used to obtain the first device information; analyze the connection relationship between the network devices according to the first device information; determine the classification of the parent device and the child device according to the connection relationship, thereby determining the parent-child relationship of the devices.
[0119] In one embodiment, the generation module 30 is further used to automatically layout and draw the first network device topology map by analyzing the parent-child relationship of the devices; and intelligently adjust the node positions and connection lines in the first network device topology map to optimize the layout of the first network device topology map.
[0120] The present application provides a smart marking device based on a network device topology map, and the smart marking device based on the network device topology map includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the smart marking method based on the network device topology map in the above-mentioned embodiment one.
[0121] Reference below Figure 6, which shows a schematic diagram of the structure of a smart tag device based on a network device topology map suitable for implementing an embodiment of the present application. The smart tag device based on a network device topology map in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The smart tag device based on the network device topology diagram shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0122] like Figure 6 As shown, the intelligent tag device based on the network device topology map may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the intelligent tag device based on the network device topology map are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the smart tag device based on the network device topology diagram to communicate with other devices wirelessly or wired to exchange data. Although the figure shows a smart tag device based on the network device topology diagram with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have instead.
[0123] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0124] The intelligent marking device based on the network device topology map provided by the present application adopts the intelligent marking method based on the network device topology map in the above embodiment, which can solve the technical problem that the existing network device topology map is difficult to troubleshoot. Compared with the prior art, the beneficial effects of the intelligent marking device based on the network device topology map provided by the present application are the same as the beneficial effects of the intelligent marking method based on the network device topology map provided by the above embodiment, and the other technical features of the intelligent marking device based on the network device topology map are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0125] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0126] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0127] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the intelligent marking method based on the network device topology map in the above-mentioned embodiment.
[0128] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0129] The computer-readable storage medium may be included in the smart tag device based on the network device topology map; or may exist independently without being assembled into the smart tag device based on the network device topology map.
[0130] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the intelligent marking device based on the network device topology map, the intelligent marking device based on the network device topology map: obtains the house attributes of each building; obtains the design flow of outdoor fire hydrants in the building within the design range according to the house attributes of each building; determines whether the outdoor fire pipe network within the design range is arranged in a ring or branch shape according to the design flow of outdoor fire hydrants in the building within the design range; determines the pipeline layout based on the outdoor fire pipe network arranged in a ring or branch shape based on the center line of the road within the design range, and lays out fire hydrants and valve wells to obtain the outdoor fire pipeline layout result.
[0131] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0132] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0133] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0134] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned intelligent marking method based on the network device topology map, and can solve the technical problem that the existing network device topology map is difficult to troubleshoot. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the intelligent marking method based on the network device topology map provided by the above-mentioned embodiment, and will not be repeated here.
[0135] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned intelligent marking method based on the network device topology map when executed by a processor.
[0136] The computer program product provided by this application can solve the technical problem that it is difficult to troubleshoot problems in existing network device topology maps. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the intelligent marking method based on the network device topology map provided by the above embodiment, which will not be repeated here.
[0137] The present application also provides a smart tagging system based on a network device topology map. The smart tagging system based on a network device topology map adopts a browser / server (B / S) architecture, apache tomcat as a web server, mysql as a database to store relevant records, uses the https protocol for web-side data interaction, and uses the TCP protocol for communication between the cloud platform and the network device. The transmitted data format adopts the JSON format.
[0138] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. An intelligent marking method based on a network device topology diagram, characterized in that: The method comprises: receiving first device information of a network device through a transport layer protocol; Classifying devices according to the first device information and determining parent-child relationships of devices; Analyzing the parent-child relationship of the devices and automatically generating a first network device topology diagram; reacquiring second device information of the network device based on the intelligent diagnosis button of the first network device topology map; The second network device topology map is regenerated according to the re-acquired second device information, and abnormal network devices are marked in the regenerated second network device topology map.
2. The method according to claim 1, characterized in that Before the step of re-acquiring the second device information of the network device by the intelligent diagnosis button based on the network device topology map, the method further includes: Adding a smart diagnosis button to the first network device topology map page; The step of reacquiring the second device information of the network device based on the intelligent diagnosis button of the network device topology diagram comprises: Obtaining a click instruction of the smart diagnosis button, and sending a device information acquisition instruction to the network device according to the click instruction of the smart diagnosis button, so that the network device feeds back device information; The second device information and connection information of the online network device are reacquired according to the device information fed back by the network device.
3. The method according to claim 2, characterized in that The step of regenerating the second network device topology map according to the re-acquired second device information and marking abnormal network devices in the regenerated second network device topology map comprises: Regenerate a second network device topology map according to the second device information and the connection information; Determine, based on the device information fed back by the network device, an offline device, an online device with an abnormal port connection, and a device with a connected port but an abnormal port rate; The offline devices, the online devices but with abnormal port connections, and the devices with connected ports but abnormal port rates are marked in the second network device topology map.
4. The method according to claim 3, characterized in that After the step of marking abnormal network devices in the regenerated second network device topology map, the method further includes: Acquire marked abnormal devices, wherein the abnormal devices at least include offline devices, online devices with abnormal port connections, and devices with abnormal port speeds in a connected state; For the abnormal situation of the marked abnormal device, a corresponding solution strategy is determined and the solution strategy is displayed.
5. The method according to claim 1, characterized in that The step of receiving first device information of a network device through a transport layer protocol comprises: The first device information fed back by the network device through each port link is received through the transport layer protocol, wherein the first device information at least includes device type, device address, device port, port status and port rate.
6. The method according to claim 1, characterized in that The step of classifying devices according to the first device information and determining the parent-child relationship of devices includes: Acquire the first device information; Analyzing the connection relationship between the network devices according to the first device information; The classification of the parent device and the child device is determined according to the connection relationship, thereby determining the parent-child relationship of the devices.
7. The method according to claim 1, characterized in that The step of analyzing the parent-child relationship of the devices and automatically generating a first network device topology diagram comprises: Automatically layout and draw the first network device topology diagram by analyzing the parent-child relationship of the devices; Intelligently adjust the node positions and connection lines in the first network device topology map to optimize the layout of the first network device topology map.
8. An intelligent marking device based on a network device topology diagram, characterized in that: The intelligent marking device based on the network device topology diagram includes: A receiving module, used for receiving first device information of a network device through a transport layer protocol; A classification module, used to classify devices according to the first device information and determine the parent-child relationship of devices; A generating module, used for analyzing the parent-child relationship of the devices and automatically generating a first network device topology diagram; an acquisition module, configured to reacquire second device information of the network device based on the intelligent diagnosis button of the first network device topology map; The marking module is used to regenerate the second network device topology map according to the re-acquired second device information, and mark abnormal network devices in the re-generated second network device topology map.
9. An intelligent marking device based on a network device topology diagram, characterized in that: The device comprises: a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the intelligent marking method based on the network device topology map as described in any one of claims 1 to 7.
10. An intelligent marking system based on a network device topology map, characterized in that: The intelligent marking system based on the network device topology map adopts B / S architecture, apache tomcat as the web server, mysql as the database to store relevant records, uses https protocol for web-side data interaction, and uses TCP protocol for communication between the cloud platform and network devices. The transmitted data format adopts JSON format.
