Method for automatically generating network topological graph of IDC cabinet equipment

By automatically collecting and processing IDC cabinet equipment information and connection information, the network topology diagram of IDC cabinet equipment is automatically generated, which solves the problems of cumbersome manual drawing and inability to update in real time in the existing technology, and realizes fast and real-time network topology diagram generation and update.

CN119516026APending Publication Date: 2025-02-25CHINA INFOMRAITON CONSULTING & DESIGNING INST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411368124.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

In the prior art, the network topology diagram of IDC cabinet equipment usually needs to be drawn manually, the process is cumbersome, and cannot be used to generate a cable routing list, and it cannot be updated in real time when the network topology changes.

Method used

A method for automatically generating network topology diagrams of IDC cabinet equipment is proposed. By collecting cabinet equipment information and equipment connection information, a device list and connection list are established, and the network topology diagrams are automatically designed and drawn based on this information, including device icons and connections, and the final network topology diagram is generated.

Benefits of technology

It realizes the rapid automatic generation of network topology diagrams of IDC cabinet equipment, improves drawing efficiency, can update charts in real time, discover isolated devices that are not connected to the network, and supports manual addition of labels to beautify topology diagrams.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119516026A_ABST
    Figure CN119516026A_ABST
Patent Text Reader

Abstract

The invention discloses an IDC cabinet equipment network topological graph automatic generation method comprising the following steps: collecting equipment information in each IDC cabinet, and establishing a cabinet equipment list and an equipment connection list; establishing a cable specification list according to cable specifications in the equipment connection list, and designing cable styles; according to equipment categories in the cabinet equipment list, establishing an equipment specification list, and designing equipment icons; defining a hierarchical list of the network topological graph; establishing a device drawing list until all devices in the cabinet device list are processed; adjusting an equipment drawing list; establishing a connection line drawing list, and sequentially adding the connection lines in the equipment connection line list to the connection line drawing list until all the connection lines are processed; and generating a final network topological graph according to the equipment drawing list and the connection line drawing list.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a method for automatically generating a network topology diagram, in particular to a method for automatically generating a network topology diagram of an IDC cabinet device. Background Art

[0002] This section merely provides background information related to the present disclosure and is not necessarily prior art.

[0003] The network topology diagram of IDC cabinet equipment is usually drawn manually, with designers adding device icons to the network topology diagram, naming the device icons, and adding different types of connecting lines between the icons. The drawing process is cumbersome, and when the network topology changes, manual adjustments are required. In addition, the drawn network topology diagram is only a schematic diagram and cannot be used for subsequent operations such as generating a cable wiring list.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0005] Purpose of the invention: The technical problem to be solved by the present invention is to provide a method for automatically generating a network topology diagram of an IDC cabinet device in view of the deficiencies in the prior art.

[0006] In order to solve the above technical problems, the present invention discloses a method for automatically generating a network topology diagram of an IDC cabinet device, comprising the following steps:

[0007] Step 1, collecting device information in each IDC cabinet, establishing a cabinet device list, and initializing the drawing mark in the cabinet device list to undrawn;

[0008] Step 2: Collect the equipment connection information in the computer room and create a equipment connection list;

[0009] Step 3: Create a cable specification list and design the cable style according to the cable specifications in the device connection list;

[0010] Step 4: Create a list of equipment specifications and design equipment icons based on the equipment categories in the cabinet equipment list;

[0011] Step 5: Define the hierarchical list of the network topology diagram, from the first layer to the sixth layer: router, core switch, access switch, server, management switch and management aggregation switch;

[0012] Step 6, establish a device drawing list, process the devices in the cabinet device list in turn, if the drawing mark of the device is not drawn, add the device to the device drawing list, and search for all the opposite devices connected to the device from the device connection list, and search for the drawing mark of the opposite device in the cabinet device list according to the name of the opposite device. If it is not drawn, add the opposite device to the device drawing list and update the drawing mark of the opposite device in the cabinet device list to drawn;

[0013] Step 7: Repeat step 6 until all devices in the cabinet device list are processed;

[0014] Step 8, adjust the equipment drawing list;

[0015] Step 9, establish a line drawing list, add the lines in the device line list to the line drawing list in turn, and obtain the horizontal and vertical coordinates of the devices at both ends of the line from the device drawing list according to the device names at both ends of the line, as the coordinates of the two ends of the line, and the line type of the line is determined according to the specifications of the line until all the lines are processed;

[0016] Step 10, draw device icons and lines in the graphical interface according to the coordinates of the devices in the device drawing list and the line drawing list and the coordinates of both ends of the lines, add device names and line specifications, and generate the final network topology diagram.

[0017] Furthermore, the cabinet equipment list described in step 1 is established as follows:

[0018] Collect the information of each device in each IDC cabinet in the computer room in turn and create a cabinet device list DeviceList;

[0019] The cabinet device list DeviceList includes a device name DeviceName, a device type DeviceType and a drawing mark DrawStatus, wherein the device drawing mark DrawStatus is initially set to not drawn.

[0020] Furthermore, the specific method of establishing the device connection list described in step 2 is as follows:

[0021] Collect the connection information of each peer device to be installed in the equipment room in turn, and establish the device connection list CableList;

[0022] The device connection list CableList includes cable specification CableType, device name DeviceNameFrom and device name DeviceNameTo.

[0023] Furthermore, the cable specification list described in step 3 is established as follows:

[0024] According to the cable specifications CableType in the device connection list CableList, all cable specification lists CableTypeList are summarized and generated, and different line types are defined according to different cable specifications CableType;

[0025] The cable specification list CableTypeList includes cable specification CableType, line type LineType and line width LineWidth.

[0026] Furthermore, the equipment specification list described in step 4 is established as follows:

[0027] According to the device categories DeviceType in the cabinet device list DeviceList, a device specification list DeviceTypeList is established, and different device icons are defined according to different device categories DeviceType;

[0028] The device specification list DeviceTypeList includes a device category DeviceType and a device icon DeviceIcon.

[0029] Furthermore, the specific method of defining the hierarchical list of the network topology diagram described in step 5 is as follows:

[0030] According to the device type DeviceType in the cabinet device list DeviceList, the layers are layered, and the layer number LayerNo and the number of layer devices LayerDeviceNum are set for each layer;

[0031] The layer list LayerList includes a layer number LayerNo, a layer name LayerName and a number of layer devices LayerDeviceNum, wherein the layer number LayerNo starts from 1, the initial value of the number of layer devices LayerDeviceNum is 1, and the layer name LayerName is the same as the device type DeviceType.

[0032] Furthermore, the specific method of establishing the equipment drawing list described in step 6 is as follows:

[0033] Step 6-1, initialize and establish a device drawing list DeviceDrawList, including the device name DeviceName, the device type DeviceType, the device icon DeviceIcon, the horizontal coordinate X and the vertical coordinate Y;

[0034] Step 6, 2, process the devices in the cabinet device list DeviceList in turn. If the drawing mark DrawStatus of the device is not drawn, add the device to the device drawing list DeviceDrawList, and obtain the layer number LayerNo and the number of layer devices LayerDeviceNum of the corresponding layer from the network topology layer list LayerList according to the device category DeviceType. The number of layer devices LayerDeviceNum multiplied by the first preset parameter AA is used as the horizontal coordinate X of the device, and the layer number LayerNo multiplied by the second preset parameter BB is used as the vertical coordinate Y of the device. At the same time, the number of layer devices LayerDeviceNum of the corresponding layer in the network topology layer list LayerList is increased by 1, and the drawing mark DrawStatus in the cabinet device list DeviceList is updated to be drawn;

[0035] Step 6-3, search for all the opposite devices connected to the device from the device connection list CableList in turn, and search for the drawing mark DrawStatus of the opposite device in the cabinet device list according to the device name DeviceName of the opposite device. If it is not drawn, add the opposite device to the device drawing list according to the method in step 6-2 and update the drawing mark DrawStatus of the opposite device in the cabinet device list to drawn, until all the opposite devices connected to the device are processed.

[0036] Furthermore, the specific method of adjusting the device drawing list described in step 8 is as follows:

[0037] Step 8-1, find the maximum value of the number of layer devices LayerDeviceNum in the layer list LayerList of the network topology diagram as the maximum value of the number of layer devices LayerDeviceNumMax;

[0038] Step 8-2, adjust the devices in the device drawing list DeviceDrawList in turn, according to the device category DeviceType of the device in the device drawing list DeviceDrawList, find the number of layer devices LayerDeviceNum whose layer name LayerName is the same as the device category DeviceType in the network topology layer list LayerList, and set the horizontal coordinate X of the device to:

[0039] X=X+(LayerDeviceNumMax-LayerDeviceNum)*AA / 2

[0040] Repeat this step until all devices are processed.

[0041] Furthermore, the specific method of establishing the connection drawing list described in step 9 is as follows:

[0042] Step 9-1, initialize and establish the line drawing list LineDrawList, including the cable specification CableType, the self-device name DeviceNameFrom, the to-device name DeviceNameTo, the self-device horizontal coordinate XFrom, the self-device vertical coordinate YFrom, the to-device horizontal coordinate XTo, the to-device vertical coordinate YTo, the line type LineType and the line width LineWidth;

[0043] Step 9-2, add each line data in the device line list CableList, namely the cable specification CableType, the self-device name DeviceNameFrom and the to-device name DeviceNameTo, to the line drawing list LineDrawList in turn;

[0044] According to the device name DeviceNameFrom and the to-device name DeviceNameTo at both ends of the connection, the horizontal coordinates X and the vertical coordinates Y of the devices at both ends are obtained from the device drawing list DeviceDrawList as the horizontal coordinate XFrom, the vertical coordinate YFrom, the to-device horizontal coordinate XTo and the to-device vertical coordinate YTo of the two ends of the connection;

[0045] The line type LineType and the line width LineWidth are obtained from the cable specification list CableTypeList according to the cable specification CableType in the connection data;

[0046] Until all connections are processed.

[0047] Furthermore, the final network topology diagram is generated in step 10, that is, the corresponding icons and lines are drawn in the graphical interface according to the device coordinates, line coordinates, device icon DeviceIcon, line type LineType and line width LineWidth in the device drawing list DeviceDrawList and the line drawing list LineDrawList, and the device name DeviceName and cable specification CableType are added to obtain the final network topology diagram.

[0048] Beneficial effects:

[0049] 1. By using the method of the present invention, the automatic generation of the network topology diagram of the equipment in the computer room can be realized quickly, and the topology between the devices can be displayed in layers, thereby improving the efficiency of drawing the network topology diagram of the equipment, and verifying and discovering isolated devices that are not connected to the network.

[0050] 2. By utilizing the method of the present invention, when the device connection table information is updated, the network topology diagram can be synchronously updated according to the updated information.

[0051] 3. By using the method of the present invention, the position of the icon can be automatically adjusted according to the drawn network topology map, thereby further beautifying the network topology map.

[0052] 4. By using the method of the present invention, new annotations can be manually added to the drawn network topology diagram. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments, and the above and / or other advantages of the present invention will become more clear.

[0054] Figure 1 It is a schematic diagram of the overall process of the present invention. DETAILED DESCRIPTION

[0055] The present invention proposes a method for automatically generating a network topology diagram of an IDC cabinet device. The specific technical solution for automatically generating a network topology diagram is: a method for automatically generating a network topology diagram of an IDC cabinet device, such as Figure 1 As shown, the method comprises the following steps:

[0056] Step 1, collect the equipment information in each cabinet, collect the information of each device in each cabinet in the computer room in turn to obtain the cabinet equipment list DeviceList, the cabinet equipment list DeviceList includes the device name DeviceName, the device category DeviceType, and the drawing mark DrawStatus, wherein the drawing mark DrawStatus of the device is not drawn.

[0057] Step 2, collect the equipment connection table information in the computer room, collect the connection information of each device to be installed in the computer room in turn to obtain the device connection list CableList, the device connection list CableList includes the cable specification CableType, the device name DeviceNameFrom, and the device name DeviceNameTo.

[0058] Step 3, create a cable specification list CableTypeList, and generate all cable specification lists CableTypeList according to the cable specifications CableType in the device connection list CableList in turn, and define a line type for each cable specification, including bold solid line, dotted line, single-dot dash line, double-dot dash line, etc. The cable specification list CableTypeList includes cable specification CableType, line type LineType, and line width LineWidth.

[0059] Step 4, establish a device specification list DeviceTypeList, and generate all device specification lists DeviceTypeList according to the device categories DeviceType in the cabinet device list DeviceList in turn, define a device icon for each device category, and the device specification list DeviceTypeList includes the device category DeviceType and the device icon DeviceIcon.

[0060] Step 5, define the network topology layer list LayerList, including six layers: router, core switch, access switch, server, management switch, and management aggregation switch. The router is on the first layer and the management aggregation switch is on the sixth layer. Each layer defines the layer number and the number of layer devices. The layer list LayerList includes the layer number LayerNo, the layer name LayerName, and the number of layer devices LayerDeviceNum. The layer number LayerNo starts numbering from 1, and the initial value of the number of layer devices LayerDeviceNum is 1.

[0061] Step 6, establish a device drawing list DeviceDrawList, the device drawing list DeviceDrawList includes the device name DeviceName, the device category DeviceType, the device icon DeviceIcon, the horizontal coordinate X, and the vertical coordinate Y. The devices in the cabinet device list DeviceList are processed in turn. If the drawing mark DrawStatus of the device is not drawn, the device is added to the device drawing list DeviceDrawList. According to the device category DeviceType, the layer number LayerNo and the number of layer devices LayerDeviceNum of the corresponding layer are obtained from the network topology layer list LayerList. The number of layer devices LayerDeviceNum is multiplied by 50 as the horizontal coordinate X of the device, and the layer number LayerNo is multiplied by 100 as the vertical coordinate Y of the device. At the same time, the number of layer devices LayerDeviceNum of the corresponding layer in the network topology layer list LayerList is increased by 1, and the drawing mark DrawStatus in the cabinet device list DeviceList is updated to drawn. Search all the peer devices connected to the device from the device cable list CableList in turn, and search the drawing mark DrawStatus of the peer device in the cabinet device list according to the name of the peer device. If it is not drawn, add the device to the device drawing list according to the above rules and update the drawing mark DrawStatus of the peer device in the cabinet device list to drawn, until all the peer devices connected to the device are processed.

[0062] Step 7: Repeat step 6 until all devices in the cabinet device list DeviceList are processed.

[0063] Step 8, adjust the device drawing position in the center, and obtain the maximum value LayerDeviceNumMax of the number of layer devices LayerDeviceNum in the layer list LayerList of the network topology diagram. Adjust the devices in the device drawing list DeviceDrawList one by one, and find the number of layer devices LayerDeviceNum in the corresponding layer list LayerList of the network topology diagram according to the device category DeviceType of the device in the device drawing list DeviceDrawList, and add the horizontal coordinate X of the device to (the maximum number of layer devices LayerDeviceNumMax-the number of layer devices LayerDeviceNum of the device)*50 / 2 until all devices are processed.

[0064] Step 9, establish a line drawing list LineDrawList, the line drawing list LineDrawList includes cable specifications CableType, self-device name DeviceNameFrom, to-device name DeviceNameTo, self-device horizontal coordinate XFrom, self-device vertical coordinate YFrom, to-device horizontal coordinate XTo, to-device vertical coordinate YTo, line type LineType, line width LineWidth, add the lines of the device line list CableList to the line drawing list LineDrawList in sequence, and obtain the horizontal coordinate X and vertical coordinate Y of the devices at both ends from the device drawing list DeviceDrawList according to the self-device name DeviceNameFrom and to-device name DeviceNameTo at both ends of the line as the self-device horizontal coordinate XFrom, self-device vertical coordinate YFrom, to-device horizontal coordinate XTo, to-device vertical coordinate YTo at both ends of the line, and the line type LineType and line width LineWidth are obtained from the cable specification list CableTypeList according to the specification CableType of the line until all the lines are processed.

[0065] Step 10, according to the coordinates of the devices and lines in the device drawing list DeviceDrawList and the line drawing list LineDrawList, draw the corresponding icons and lines in the graph, and add the device name DeviceName and the line specification CableType to obtain the final network topology diagram.

[0066] Example:

[0067] The technical solutions in the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0068] A method for automatically generating an IDC cabinet equipment network topology diagram, the method comprising the following steps:

[0069] Step 1, collect the equipment information in each cabinet, collect the information of each device in each cabinet in the computer room in turn to obtain the cabinet equipment list DeviceList, the cabinet equipment list DeviceList includes the device name DeviceName, the device category DeviceType, and the drawing mark DrawStatus, wherein the drawing mark DrawStatus of the device is not drawn.

[0070] As shown in Table 1, this is the data input format for the cabinet equipment information part, and each line is the information of a cabinet equipment.

[0071] Table 1 Cabinet equipment information table (partially omitted)

[0072]

[0073] The contents of the cabinet device list DeviceList are:

[0074] [{"Computing Server-01","Server","Not drawn"},{"Computing Server-02","Server","Not drawn"},{"Computing Server-03","Server","Not drawn"},{"Access Switch-01","Server","Not drawn"},{"Computing Server-04","Server","Not drawn"},{"Computing Server-05","Server","Not drawn"},{"Computing Server-06","Server","Not drawn"},{"Access Switch-02","Server","Not drawn"},{"Core Switch-01","Server","Not drawn"},{"Core Switch-02","Server","Not drawn"}]

[0075] Step 2, collect the equipment connection table information in the computer room, collect the connection information of each device to be installed in the computer room in turn to obtain the device connection list CableList, the device connection list CableList includes the cable specification CableType, the device name DeviceNameFrom, and the device name DeviceNameTo.

[0076] As shown in Table 2, it is a display of the data input format of the device connection information part, and each line is the information of a device connection.

[0077] Table 2 Equipment connection information table (partially omitted)

[0078] Cable Type DeviceNameFrom DeviceNameTo 2*100GE Core switch-01 Core Switch-02 2*100GE Access switch-01 Access switch-02 100GE Core switch-01 Access switch-01 100GE Core switch-01 Access switch-02 100GE Core Switch-02 Access switch-01 100GE Core Switch-02 Access switch-02 GE Access switch-01 Computing Server-01 GE Access switch-02 Computing Server-01

[0079] The content of the device connection list CableList is:

[0080] [{"2*100GE","Core Switch-01","Core Switch-02"},{"2*100GE","Access Switch-01","Access Switch-02"},{"100GE","Core Switch-01","Access Switch-01"},{"100GE","Core Switch-01","Access Switch-02"},{"100GE","Core Switch-02","Access Switch-01"},{"100GE","Core Switch-02","Access Switch-02"},{"GE","Access Switch-01","Computing Server-01"},{"GE","Access Switch-02","Computing Server-01"}]

[0081] Step 3, create a cable specification list CableTypeList, and generate all cable specification lists CableTypeList according to the cable specifications CableType in the device connection list CableList in turn, and define a line type for each cable specification, including bold solid line, dotted line, single-dot dash line, double-dot dash line, etc. The cable specification list CableTypeList includes cable specification CableType, line type LineType, and line width LineWidth.

[0082] As shown in Table 3, the data input format of the cable specification information is displayed, and each line is the information of a cable specification.

[0083] Table 3 Cable specification information table (partially omitted)

[0084] Cable Type LineType LineWidth GE dotted line 1 10GE Solid Line 2 6*10GE Solid Line 2 25GE Solid Line 4 40GE Solid Line 6 2*40GE Solid Line 6 100GE Solid Line 8

[0085] The content of the device connection list CableTypeList is:

[0086] [{"GE","dashed line",1},{"10GE","solid line",2},{"6*10GE","solid line",2},{"25GE","solid line",4},{"40GE","solid line",6},{"2*40GE","solid line",6},{"100GE","solid line",8}]

[0087] Step 4, establish a device specification list DeviceTypeList, and generate all device specification lists DeviceTypeList according to the device categories DeviceType in the cabinet device list DeviceList in turn, define a device icon for each device category, and the device specification list DeviceTypeList includes the device category DeviceType and the device icon DeviceIcon.

[0088] As shown in Table 4, the data changes of the device specification information are displayed in a certain format, and each line is the information of a device specification.

[0089] Table 4 Equipment specification information table (partially omitted)

[0090]

[0091]

[0092] The content of the device specification list DeviceTypeList is:

[0093] [{"Router","Icon1"},{"Core Switch","Icon2"},{"Access Switch","Icon3"},{"Server","Icon4"},{"Management Switch","Icon5"},{"Management Aggregation Switch","Icon6"}]

[0094] Step 5, define the network topology layer list LayerList, including six layers: router, core switch, access switch, server, management switch, and management aggregation switch. The router is on the first layer and the management aggregation switch is on the sixth layer. Each layer defines the layer number and the number of layer devices. The layer list LayerList includes the layer number LayerNo, the layer name LayerName, and the number of layer devices LayerDeviceNum. The layer number LayerNo starts numbering from 1, and the initial value of the number of layer devices LayerDeviceNum is 1.

[0095] As shown in Table 5, part of the data changes in the hierarchical information are displayed, and each line is information for one layer.

[0096] Table 5 Layered information table (partially omitted)

[0097]

[0098] The contents of the network topology layer list LayerList are:

[0099] [{1,"Router",1},{2,"Core switch",1},{3,"Access switch",1},{4,"Server",1},{5,"Management switch",1},{6,"Management aggregation switch",1}]

[0100] Step 6, establish a device drawing list DeviceDrawList, the device drawing list DeviceDrawList includes the device name DeviceName, the device category DeviceType, the device icon DeviceIcon, the horizontal coordinate X, and the vertical coordinate Y. The devices in the cabinet device list DeviceList are processed in turn. If the drawing mark DrawStatus of the device is not drawn, the device is added to the device drawing list DeviceDrawList. According to the device category DeviceType, the layer number LayerNo and the number of layer devices LayerDeviceNum of the corresponding layer are obtained from the network topology layer list LayerList. The number of layer devices LayerDeviceNum is multiplied by 50 as the horizontal coordinate X of the device, and the layer number LayerNo is multiplied by 100 as the vertical coordinate Y of the device. At the same time, the number of layer devices LayerDeviceNum of the corresponding layer in the network topology layer list LayerList is increased by 1, and the drawing mark DrawStatus in the cabinet device list DeviceList is updated to drawn. Search all the peer devices connected to the device from the device cable list CableList in turn, and search the drawing mark DrawStatus of the peer device in the cabinet device list according to the name of the peer device. If it is not drawn, add the device to the device drawing list according to the above rules and update the drawing mark DrawStatus of the peer device in the cabinet device list to drawn, until all the peer devices connected to the device are processed.

[0101] As shown in Table 6, the data changes of the device drawing information are displayed in a certain format, and each line is the information drawn by one device.

[0102] Table 6 Equipment drawing information table (partially omitted)

[0103]

[0104] The content of the device drawing list DeviceDrawList is:

[0105] [{"Computing Server-01","Server","Icon4",50,400},{"Access Switch-01","Access Switch","Icon3",50,300},{"Access Switch-02","Access Switch","Icon3",100,300}]

[0106] As shown in Table 7, the data changes of the cabinet equipment information are displayed in a certain format, and each line is the information of a cabinet equipment.

[0107] Table 7 Cabinet equipment information table (partially omitted)

[0108]

[0109]

[0110] The contents of the cabinet device list DeviceList are:

[0111] [{"Computing Server-01","Server","Drawn"},{"Computing Server-02","Server","Not drawn"},{"Computing Server-03","Server","Not drawn"},{"Access Switch-01","Server","Drawn"},{"Computing Server-04","Server","Not drawn"},{"Computing Server-05","Server","Not drawn"},{"Computing Server-06","Server","Not drawn"},{"Access Switch-02","Server","Drawn"},{"Core Switch-01","Server","Not drawn"},{"Core Switch-02","Server","Not drawn"}]

[0112] Step 7: Repeat step 6 until all devices in the cabinet device list DeviceList are processed.

[0113] As shown in Table 8, the data changes of the device drawing information are displayed in a certain format, and each line is the information drawn by one device.

[0114] Table 8 Equipment drawing information table (partially omitted)

[0115]

[0116]

[0117] The content of the device drawing list DeviceDrawList is:

[0118] [{"Computing Server-01","Server","Icon4",50,400},{"Access Switch-01","Access Switch","Icon3",50,300},{"Access Switch-02","Access Switch","Icon3",100,300},{"Computing Server-02","Server","Icon4",100,400},{"Computing Server-03","Server","Icon4",150,400}, {"Computing Server-04","Server","Icon4",200,400},{"Computing Server-05","Server","Icon4",250,400},{"Computing Server-06","Server","Icon4",300,400},{"Core Switch-01","Core Switch","Icon2",50,200},{"Core Switch-02","Core Switch","Icon2",100,200}]

[0119] As shown in Table 9, the data changes of the cabinet equipment information are displayed in a certain format, and each line is the information of a cabinet equipment.

[0120] Table 9 Cabinet equipment information table (partially omitted)

[0121]

[0122] The contents of the cabinet device list DeviceList are:

[0123] [{"Computing Server-01","Server","Drawn"},{"Computing Server-02","Server","Drawn"},{"Computing Server-03","Server","Drawn"},{"Access Switch-01","Server","Drawn"},{"Computing Server-04","Server","Drawn"},{"Computing Server-05","Server","Drawn"},{"Computing Server-06","Server","Drawn"},{"Access Switch-02","Server","Drawn"},{"Core Switch-01","Server","Drawn"},{"Core Switch-02","Server","Drawn"}]

[0124] As shown in Table 10, the data changes of the layered information are displayed in a certain format, and each line is information of one layer.

[0125] Table 10 Layered information table (partially omitted)

[0126]

[0127] The contents of the network topology layer list LayerList are:

[0128] [{1,"Router",1},{2,"Core switch",3},{3,"Access switch",3},{4,"Server",7},{5,"Management switch",1},{6,"Management aggregation switch",1}]

[0129] Step 8, adjust the device drawing position in the center, and obtain the maximum value LayerDeviceNumMax of the number of layer devices LayerDeviceNum in the layer list LayerList of the network topology diagram. Adjust the devices in the device drawing list DeviceDrawList one by one, and find the number of layer devices LayerDeviceNum in the corresponding layer list LayerList of the network topology diagram according to the device category DeviceType of the device in the device drawing list DeviceDrawList, and add the horizontal coordinate X of the device to (the maximum number of layer devices LayerDeviceNumMax-the number of layer devices LayerDeviceNum of the device)*50 / 2 until all devices are processed.

[0130] LayerDeviceNumMax is 7.

[0131] As shown in Table 11, the data changes of the device drawing information are displayed in a certain format, and each line is the information drawn by one device.

[0132] Table 11 Equipment drawing information table (partially omitted)

[0133]

[0134]

[0135] The content of the device drawing list DeviceDrawList is:

[0136] [{"Computing Server-01","Server","Icon4",50,400},{"Access Switch-01","Access Switch","Icon3",150,300},{"Access Switch-02","Access Switch","Icon3",200,300},{"Computing Server-02","Server","Icon4",100,400},{"Computing Server-03","Server","Icon4",150,400}, {"Computing Server-04","Server","Icon4",200,400},{"Computing Server-05","Server","Icon4",250,400},{"Computing Server-06","Server","Icon4",300,400},{"Core Switch-01","Core Switch","Icon2",150,200},{"Core Switch-02","Core Switch","Icon2",200,200}]

[0137] Step 9, establish a line drawing list LineDrawList, the line drawing list LineDrawList includes cable specifications CableType, self-device name DeviceNameFrom, to-device name DeviceNameTo, self-device horizontal coordinate XFrom, self-device vertical coordinate YFrom, to-device horizontal coordinate XTo, to-device vertical coordinate YTo, line type LineType, line width LineWidth, add the lines of the device line list CableList to the line drawing list LineDrawList in sequence, and obtain the horizontal coordinate X and vertical coordinate Y of the devices at both ends from the device drawing list DeviceDrawList according to the self-device name DeviceNameFrom and to-device name DeviceNameTo at both ends of the line as the self-device horizontal coordinate XFrom, self-device vertical coordinate YFrom, to-device horizontal coordinate XTo, to-device vertical coordinate YTo at both ends of the line, and the line type LineType and line width LineWidth are obtained from the cable specification list CableTypeList according to the specification CableType of the line until all the lines are processed.

[0138] As shown in Table 12, part of the data format of the line drawing information is displayed, and each line is the information of a line drawing.

[0139] Table 12 Connection drawing information table (partially omitted)

[0140]

[0141]

[0142] The contents of the line drawing list LineDrawList are:

[0143] [{"2*100GE","Core Switch-01","Core Switch-02",150,200,200,200,"Solid Line",8},{"2*100GE","Access Switch-01","Access Switch-02",150,300,300,200,"Solid Line",8},{"100GE","Core Switch-01","Access Switch-01",150,200,150,300,"Solid Line",8},{"100GE","Core Switch-01","Access Switch-02",150,200,200,300," Solid line",8},{"100GE","Core switch-02","Access switch-01",200,200,150,300,"Solid line",8},{"100GE","Core switch-02","Access switch-02",200,200,200,300,"Solid line",8},{"GE","Access switch-01","Computing server-01",150,300,50,400,"Dotted line",1},{"GE","Access switch-02","Computing server-01",200,300,50,400,"Dotted line",1}]

[0144] Step 10, according to the coordinates of the devices and lines in the device drawing list DeviceDrawList and the line drawing list LineDrawList, draw the corresponding icons and lines in the graph, and add the device name DeviceName and the line specification CableType to obtain the final network topology diagram.

[0145] At this point, the automatic generation of the IDC cabinet equipment network topology diagram is completed.

[0146] When automatically generating the network topology diagram of the IDC cabinet equipment, the hierarchical display of different types of equipment is taken into consideration. It is displayed from top to bottom according to the levels of routers, core switches, access switches, servers, management switches, and management aggregation switches. The mutual backup devices are arranged side by side to avoid the problem of chaotic arrangement of equipment in the topology diagram, which is conducive to topology review. The topology diagram can be quickly and automatically generated based on information such as device connections, saving manual drawing time. The topology diagram can be automatically updated according to the device connection adjustment to improve the update efficiency. The single link problem can be discovered through algorithmic methods.

[0147] In a specific implementation, the present application provides a computer storage medium and a corresponding data processing unit, wherein the computer storage medium can store a computer program, and when the computer program is executed by the data processing unit, the invention content of the method for automatically generating a network topology diagram of an IDC cabinet device provided by the present invention and some or all of the steps in each embodiment can be executed. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0148] Those skilled in the art can clearly understand that the technical solutions in the embodiments of the present invention can be implemented by means of computer programs and their corresponding general hardware platforms. Based on such an understanding, the technical solutions in the embodiments of the present invention can be essentially or partly contributed to the prior art in the form of computer programs, i.e., software products, which can be stored in a storage medium and include several instructions for enabling a device including a data processing unit (which can be a personal computer, a server, a single-chip microcomputer, an MCU or a network device, etc.) to execute the methods described in various embodiments of the present invention or certain parts of the embodiments.

[0149] The present invention provides an idea and method for automatically generating a network topology diagram of an IDC cabinet device. There are many methods and ways to implement the technical solution. The above is only a preferred implementation of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the protection scope of the present invention. All components not specified in this embodiment can be implemented using existing technologies.

Claims

1. A method for automatically generating a network topology diagram of an IDC cabinet device, characterized in that: The steps include: Step 1, collecting device information in each IDC cabinet, establishing a cabinet device list, and initializing the drawing mark in the cabinet device list to undrawn; Step 2: Collect the equipment connection information in the computer room and create a equipment connection list; Step 3: Create a cable specification list and design the cable style according to the cable specifications in the device connection list; Step 4: Create a list of equipment specifications and design equipment icons based on the equipment categories in the cabinet equipment list; Step 5, define the hierarchical list of the network topology, from the first layer to the sixth layer: router, core switch, access switch, server, management switch and management aggregation switch; Step 6, establish a device drawing list, process the devices in the cabinet device list in turn, if the drawing mark of the device is not drawn, add the device to the device drawing list, and search for all the opposite devices connected to the device from the device connection list, and search for the drawing mark of the opposite device in the cabinet device list according to the name of the opposite device, if it is not drawn, add the opposite device to the device drawing list and update the drawing mark of the opposite device in the cabinet device list to drawn; Step 7: Repeat step 6 until all devices in the cabinet device list are processed; Step 8, adjust the equipment drawing list; Step 9, establish a line drawing list, add the lines in the device line list to the line drawing list in turn, and obtain the horizontal and vertical coordinates of the devices at both ends of the line from the device drawing list according to the device names at both ends of the line, as the coordinates of the two ends of the line, and the line type of the line is determined according to the specifications of the line until all the lines are processed; Step 10, draw device icons and lines in the graphical interface according to the coordinates of the devices in the device drawing list and the line drawing list and the coordinates of both ends of the lines, add device names and line specifications, and generate the final network topology diagram.

2. According to claim 1, a method for automatically generating an IDC cabinet equipment network topology diagram is characterized in that: The specific method for creating the cabinet equipment list described in step 1 is as follows: Collect the information of each device in each IDC cabinet in the computer room in turn and create a cabinet device list DeviceList; The cabinet device list DeviceList includes a device name DeviceName, a device type DeviceType and a drawing mark DrawStatus, wherein the device drawing mark DrawStatus is initially set to not drawn.

3. According to claim 2, a method for automatically generating an IDC cabinet equipment network topology diagram is characterized in that: The specific method of establishing the device connection list described in step 2 is as follows: Collect the connection information of each peer device to be installed in the equipment room in turn, and establish the device connection list CableList; The device connection list CableList includes cable specification CableType, device name DeviceNameFrom and device name DeviceNameTo.

4. According to claim 3, a method for automatically generating an IDC cabinet equipment network topology diagram is characterized in that: The cable specification list described in step 3 is as follows: According to the cable specifications CableType in the device connection list CableList, all cable specification lists CableTypeList are summarized and generated, and different line types are defined according to different cable specifications CableType; The cable specification list CableTypeList includes cable specification CableType, line type LineType and line width LineWidth.

5. According to claim 4, a method for automatically generating a network topology diagram of an IDC cabinet device is characterized in that: To create the equipment specification list described in step 4, the specific method is as follows: According to the device categories DeviceType in the cabinet device list DeviceList, a device specification list DeviceTypeList is established, and different device icons are defined according to different device categories DeviceType; The device specification list DeviceTypeList includes a device category DeviceType and a device icon DeviceIcon.

6. According to claim 5, a method for automatically generating a network topology diagram of an IDC cabinet device is characterized in that: The specific method for defining the network topology hierarchical list described in step 5 is as follows: According to the device type DeviceType in the cabinet device list DeviceList, the layers are layered, and the layer number LayerNo and the number of layer devices LayerDeviceNum are set for each layer; The layer list LayerList includes a layer number LayerNo, a layer name LayerName and a number of layer devices LayerDeviceNum, wherein the layer number LayerNo starts from 1, the initial value of the number of layer devices LayerDeviceNum is 1, and the layer name LayerName is the same as the device type DeviceType.

7. According to claim 6, a method for automatically generating an IDC cabinet equipment network topology diagram is characterized in that: The specific method of establishing the equipment drawing list described in step 6 is as follows: Step 6-1, initialize and establish a device drawing list DeviceDrawList, including the device name DeviceName, the device type DeviceType, the device icon DeviceIcon, the horizontal coordinate X and the vertical coordinate Y; Step 6, 2, process the devices in the cabinet device list DeviceList in turn. If the drawing mark DrawStatus of the device is not drawn, add the device to the device drawing list DeviceDrawList, and obtain the layer number LayerNo and the number of layer devices LayerDeviceNum of the corresponding layer from the network topology layer list LayerList according to the device category DeviceType. The number of layer devices LayerDeviceNum multiplied by the first preset parameter AA is used as the horizontal coordinate X of the device, and the layer number LayerNo multiplied by the second preset parameter BB is used as the vertical coordinate Y of the device. At the same time, the number of layer devices LayerDeviceNum of the corresponding layer in the network topology layer list LayerList is increased by 1, and the drawing mark DrawStatus in the cabinet device list DeviceList is updated to be drawn; Step 6-3, search for all the opposite devices connected to the device from the device connection list CableList in turn, and search for the drawing mark DrawStatus of the opposite device in the cabinet device list according to the device name DeviceName of the opposite device. If it is not drawn, add the opposite device to the device drawing list according to the method in step 6-2 and update the drawing mark DrawStatus of the opposite device in the cabinet device list to drawn, until all the opposite devices connected to the device are processed.

8. According to claim 7, a method for automatically generating a network topology diagram of an IDC cabinet device is characterized in that: The specific method for adjusting the device drawing list described in step 8 is as follows: Step 8-1, find the maximum value of the number of layer devices LayerDeviceNum in the layer list LayerList of the network topology diagram as the maximum value of the number of layer devices LayerDeviceNumMax; Step 8-2, adjust the devices in the device drawing list DeviceDrawList in turn, according to the device category DeviceType of the device in the device drawing list DeviceDrawList, find the number of layer devices LayerDeviceNum whose layer name LayerName is the same as the device category DeviceType in the network topology layer list LayerList, and set the horizontal coordinate X of the device to: X=X+(LayerDeviceNumMax-LayerDeviceNum)*AA / 2 Repeat this step until all devices are processed.

9. The method for automatically generating a network topology diagram of an IDC cabinet device according to claim 8, characterized in that: The specific method of establishing the connection drawing list described in step 9 is as follows: Step 9-1, initialize and establish the line drawing list LineDrawList, including the cable specification CableType, the self-device name DeviceNameFrom, the to-device name DeviceNameTo, the self-device horizontal coordinate XFrom, the self-device vertical coordinate YFrom, the to-device horizontal coordinate XTo, the to-device vertical coordinate YTo, the line type LineType and the line width LineWidth; Step 9-2, add each line data in the device line list CableList, namely the cable specification CableType, the self-device name DeviceNameFrom and the to-device name DeviceNameTo, to the line drawing list LineDrawList in turn; According to the device name DeviceNameFrom and the to-device name DeviceNameTo at both ends of the connection, the horizontal coordinates X and the vertical coordinates Y of the devices at both ends are obtained from the device drawing list DeviceDrawList as the horizontal coordinate XFrom, the vertical coordinate YFrom, the to-device horizontal coordinate XTo and the to-device vertical coordinate YTo of the two ends of the connection; The line type LineType and the line width LineWidth are obtained from the cable specification list CableTypeList according to the cable specification CableType in the connection data; Until all connections are processed.

10. The method for automatically generating a network topology diagram of an IDC cabinet device according to claim 9, characterized in that: The generation of the final network topology diagram described in step 10 is to draw the corresponding icons and lines in the graphical interface according to the device coordinates, line coordinates, device icon DeviceIcon, line type LineType and line width LineWidth in the device drawing list DeviceDrawList and the line drawing list LineDrawList, and add the device name DeviceName and cable specification CableType to obtain the final network topology diagram.