CN103036692A - Method and device for generating network topologies aimed at IT supporting networks - Google Patents

Method and device for generating network topologies aimed at IT supporting networks Download PDF

Info

Publication number
CN103036692A
CN103036692A CN2011102911566A CN201110291156A CN103036692A CN 103036692 A CN103036692 A CN 103036692A CN 2011102911566 A CN2011102911566 A CN 2011102911566A CN 201110291156 A CN201110291156 A CN 201110291156A CN 103036692 A CN103036692 A CN 103036692A
Authority
CN
China
Prior art keywords
equipment
layer
port
network
annexation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2011102911566A
Other languages
Chinese (zh)
Other versions
CN103036692B (en
Inventor
刘琦
林倜
陆晓东
杨钧
王建宏
冯海连
徐杨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Group Jiangsu Co Ltd
Original Assignee
China Mobile Group Jiangsu Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Group Jiangsu Co Ltd filed Critical China Mobile Group Jiangsu Co Ltd
Priority to CN201110291156.6A priority Critical patent/CN103036692B/en
Publication of CN103036692A publication Critical patent/CN103036692A/en
Application granted granted Critical
Publication of CN103036692B publication Critical patent/CN103036692B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method and a device for generating network topologies aimed at IT supporting networks. The method comprises obtaining attributes of devices in an IT supporting network, wherein the attributes comprises device names and port information; establishing connection relations among the devices through the port information; calculating absolute coordinate positions of the devices on all layers in a network topology; and presenting the network topology through the connection relations and the absolute coordinate positions. According to the method and the device for generating network topologies, the network topologies with network ports as minimum granularities can be generated.

Description

Method and device for IT supporting network generating network topology
Technical field
The present invention relates to IT supporting network technology, relate in particular to method and device for IT supporting network generating network topology.
Background technology
Along with the development of mobile Internet, its customer service and number of users all grow with each passing day, meanwhile, and as the IT supporting network of carrier also ever more important.In order to make the operation that the IT supporting network can stability and high efficiency, in real time and grasp accurately the network configuration of IT supporting network complexity, i.e. network topology becomes one of aspect that field of telecommunications shows great attention to.
At present, the method for IT supporting network generating network topology comprises:
At first, artificial carding equipment information, the static data source of recording device.Described static data source comprises the annexation between device name, the equipment, and which two equipment is this annexation only reflected roughly between that annexation is arranged, and which two port that does not embody in two equipment have annexation.
Then, according to the static data source, calculate the coordinate information of each equipment in the network topology, adopt again the WEB technology such as FLEX, FLASH to customize drafting, present network topology.
Existing method provides the connection diagram of device-to-device take equipment as minimum network node granularity, can't know end to end link information from network topology.And the static data source with manual entry in the existing method generates IT supporting network network topology, and what obtain is static network topology, can not the dynamic acquisition topological data, be difficult to realize dynamic topology, and update efficiency is low; And the IT supporting network network topology that existing method obtains is carried out the network topology drafting to the sub-device of core or regional area, lacks the Global Topological of the whole network.
As seen, there is the defective that can't know end-to-end link information from network topology at least in existing scheme.
Summary of the invention
The invention provides a kind of method for IT supporting network generating network topology, the method can generate the network topology take the network port as minimum particle size.
The invention provides a kind of device for IT supporting network generating network topology, this device can generate the network topology take the network port as minimum particle size.
A kind of method for IT supporting network generating network topology, the method comprises:
Obtain the attribute of each equipment in the IT supporting network, described attribute comprises device name and port information;
By the annexation between the port information apparatus for establishing;
Calculate the absolute coordinate position of each layer equipment in the network topology;
By annexation and absolute coordinate position, present network topology.
A kind of device for IT supporting network generating network topology, this device comprise information acquisition unit, concern and set up unit, position calculation unit and display unit;
Described information acquisition unit, the attribute for obtaining each equipment of IT supporting network sends described relation to and sets up the unit, and described attribute comprises device name and port information;
Described relation is set up the unit, is used for by the annexation between the port information apparatus for establishing, sends described display unit to;
Described position calculation unit, the absolute coordinate position for calculating each layer of network topology equipment sends to described display unit with the absolute location coordinates that calculates;
Described display unit is used for by annexation and absolute coordinate position, presents network topology.
Can find out from such scheme, among the present invention, comprise port information in the attribute of each equipment of IT supporting network that obtains, based on the annexation between the port information apparatus for establishing, present network topology by annexation and absolute coordinate position again.The present invention to port, has realized the network topology of port-to-port with the minimum node granularity refinement, can effectively promote the management fineness, and then improves port and link management maintenance efficiency.
Description of drawings
Fig. 1 is the method indicative flowchart that the present invention is directed to IT supporting network generating network topology;
Fig. 2 is the network topology schematic diagram example that the present invention presents;
Fig. 3 is the apparatus structure schematic diagram that the present invention is directed to IT supporting network generating network topology.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, below in conjunction with embodiment and accompanying drawing, the present invention is described in more detail.
The present invention is based on the annexation between the port information apparatus for establishing, present network topology for the IT supporting network by annexation and absolute coordinate position again.Like this, the minimum node granularity refinement to port, is realized the network topology of port-to-port, can effectively promote the management fineness, and then improved port and link management maintenance efficiency.
Referring to Fig. 1, for the present invention is directed to the method indicative flowchart of IT supporting network generating network topology, the method may further comprise the steps:
Step 101 is obtained the attribute of each equipment in the IT supporting network, and described attribute comprises device name and port information.
The mode of obtaining each device attribute in the IT supporting network has multiple, for example can obtain by the mode of carrying out script, comprise: at first login each equipment, particularly, can adopt existing security protocol (SSH, Secure Shell) 2 or telnet mode to login each equipment; Each equipment is carried out the attribute script, receive the character stream of each equipment feedback; Character stream is resolved, obtain device attribute.Described attribute script is finished in advance, is used for obtaining each device attribute; When needed, each equipment is carried out the attribute script, just can obtain the script of each equipment.
Further, after the attribute of each equipment, the method can also comprise in obtaining the IT supporting network:
With the attributes encapsulation of each equipment of obtaining in the data encapsulation model;
The data encapsulation model of same type is stored in the data set.Like this, when needed, just can know each device attribute by extracting data acquisition system.
The below describes each data encapsulation model:
A) the router layer model comprises following attribute:
Router rs name;
The router port name;
The corresponding media access control layer of router port (MAC, Media Access Control) address;
The opposite end MAC Address of router port;
B) network switch layer model comprises following attribute:
Network switch title;
Network switch management port name;
Network switch management port MAC Address;
Network switch port name;
Network switch port opposite end MAC Address;
C) the server layer model comprises following attribute:
Server name;
Service-Port name (comprising ethernet port and host bus adaptor (HBA, Host Bus Adapter) port);
Service-Port type (comprise two kinds: 1. ethernet port 2.HBA port);
The corresponding MAC Address of port (if HBA port this be empty);
Corresponding global unique name of port (WWN, World Wide Name) number (if ethernet port this be empty);
Need to prove that server not only comprises server itself, also comprise Ethernet card or HBA card, perhaps, comprise simultaneously Ethernet card and HBA card; When comprising Ethernet card, Service-Port comprises ethernet port, and when comprising the HBA card, Service-Port comprises the HBA port;
D) the storage switch layer model comprises following attribute:
The storage switch title;
The storage switch port name;
Corresponding WWN number of storage switch port;
Storage switch port opposite end WWN number;
E) the storage medium layer model comprises following attribute:
The storage medium title;
The storage switch port name;
The storage switch port is corresponding WWN number.
According to the difference of equipment, data acquisition system title and property content be corresponding difference also.The below is illustrated:
When equipment was router, corresponding data acquisition system was the router data set; Port information comprises the corresponding MAC Address of router port name, router port and the opposite end MAC Address of router port;
When equipment was the network switch, corresponding data acquisition system was network switch data acquisition system; Port information comprises network switch management port name, network switch management port MAC Address, network switch port name and network switch port opposite end MAC Address;
When equipment was server, corresponding data acquisition system was server set; Port information comprises the corresponding MAC Address of Service-Port name, Service-Port type, port and corresponding WWN number of port;
When equipment is storage switch, corresponding data acquisition system is the storage switch data acquisition system; Port information comprises corresponding WWN number and storage switch port opposite end WWN number of storage switch port name, storage switch port;
When equipment is storage medium, corresponding data acquisition system is the storage medium data acquisition system; Port information comprises corresponding WWN number of storage switch port name and storage switch port.
Login various device with SSH2 and telnet mode, each equipment carried out the attribute script, resolve according to specific format after obtaining feeding back character stream, thus obtain network topology connect in needed various data.Feedback data is separated sign, property value, attribute separation sign, row separation sign and end mark by beginning flag, attribute-name, key assignments and is formed.
If above sign is as shown in the table:
Beginning flag Key assignments is separated sign Attribute is separated sign Row is separated sign End mark
[[`S` _: {`r`} `E`]]
The below is illustrated, and the data that gather from certain router comprise router rs name: IPSW.name, and port numbers: IPSW.port, mac address, opposite end: IPSW.mac), the character example of feedback is as follows so:
[[`S`
IPSW.name_:IPSW1,IPSW.port_:port01,IPSW.mac_:00-FF-08-F0-F7-00{`r`}
IPSW.name_:IPSW1,IPSW.port_:port02,IPSW.mac_:00-FF-08-F0-F7-01{`r`}
IPSW.name_:IPSW1,IPSW.port_:port03,IPSW.mac_:00-FF-08-F0-F7-02{`r`}
IPSW.name_:IPSW1,IPSW.port_:port80,IPSW.mac_:00-FF-08-F0-F7-80{`r`}
`E`]]
Difference according to device type obtains data with parsing at last, be encapsulated into respectively in aforesaid a, b, c, d and the e corresponding model, the same class model after will encapsulating again is stored in respectively in router data set, network switch data acquisition system, server data set, storage switch data acquisition system and the storage medium data acquisition system.
Step 102 is by the annexation between the port information apparatus for establishing.
Whether the annexation between the equipment can be associated definite by the port information between the equipment; Annexation can adopt the annexation model to record storage, and the annexation model comprises following content: source device name, source port name, target device name and target port name.The below is elaborated for example.
Described IT supporting network comprises IP network and storage area network network (SAN, Storage Area Network), set up the annexation between the IP network equipment and set up annexation between the SAN equipment described being comprised by the annexation between the port information apparatus for establishing:
1) the described annexation of setting up between the IP network equipment comprises: whether the port mac address of judging two equipment in network topology same layer or the adjacent layer is related, if so, then sets up two corresponding relations between the equipment.Particularly:
1a) the foundation of annexation between the router:
By the data pick-up analytic process, the network connection related data with relevant router has left in the router data set, and each element in this set is a router layer model object, comprises following attribute:
Router rs name;
The router port name;
The corresponding MAC Address of router port;
The opposite end MAC Address of router port.
If elements A, element B are two identical copies of router data set, compare one by one with " the opposite end MAC Address of router port " among " the corresponding MAC Address of router port " among the A and the B, if two MAC Address equate, think that then these two elements exist MAC Address related, be to have a physical connection between port, with two element device names and port title attributes encapsulation in the annexation model, warehouse-in; And, compare one by one with " the corresponding MAC Address of router port " among " the opposite end MAC Address of router port " among the A and the B, if two MAC Address equate, think that then these two elements exist MAC Address related, be to have a physical connection between port, with two element device names and port title attributes encapsulation in the annexation model, warehouse-in.
1b) the foundation of annexation between the network switch:
By the data pick-up analytic process, the network connection related data with the related network switch has left in the network switch data acquisition system, and each element in this set is a network exchange layer model object, comprises following attribute:
Network switch title;
Network switch management port name;
Network switch management port MAC Address;
Network switch port name;
Network switch port opposite end MAC Address.
If elements A, element B are two identical copies of network switch data acquisition system, compare one by one with " network switch port opposite end MAC Address " among " network switch management port MAC Address " among the A and the B, if two MAC Address equate, think that then these two elements exist MAC Address related, both there had been a physical connection between port, with two element device names and port title attributes encapsulation in the annexation model, warehouse-in; And, with comparing one by one among " network switch port opposite end MAC Address " among the A and the B " network switch management port MAC Address ", if two MAC Address equate, think that then these two elements exist MAC Address related, be to have a physical connection between port, with two element device names and port title attributes encapsulation in the annexation model, warehouse-in.
1c) the foundation of annexation between the network switch and the router:
If elements A is for to gather identical copy with router data, element B is and the identical copy of network switch data acquisition system, compare one by one with " network switch port opposite end MAC Address " among " the corresponding MAC Address of router port " among the A and the B, if two MAC Address equate, think that then these two elements exist MAC Address related, be to have a physical connection between port, with two element device names and port title attributes encapsulation in the annexation model, warehouse-in; And, compare one by one with " network switch management port MAC Address " among " the opposite end MAC Address of router port " among the A and the B, if two MAC Address equate, think that then these two elements exist MAC Address related, be to have a physical connection between port, with two element device names and port title attributes encapsulation in the annexation model, warehouse-in.
1d) the foundation of annexation between the network switch and the server ethernet port:
By the data pick-up analytic process, the network connection related data with relevant server has left in the server data set, and each element in this set is a server layer model object.
If set A is and the identical copy of network switch data acquisition system, set B is for to gather identical copy with server data, compare one by one with " the corresponding MAC Address of Service-Port (type is Ethernet) " among " network switch port opposite end MAC Address " among the A and the B, if two MAC Address equate, think that then these two elements exist MAC Address related, be to have a physical connection between port, with two element device names and port title attributes encapsulation in the annexation model, warehouse-in.
2) annexation between the described SAN of foundation equipment comprises: whether port WWN number of judging two equipment in network topology same layer or the adjacent layer be related, if so, then sets up two corresponding relations between the equipment.
2e) the foundation of annexation between the storage switch:
By the data pick-up analytic process, the network connection related data with relevant storage switch has left in the storage switch data acquisition system, and each element in this set is a storage switch layer model object, comprises following attribute:
The storage switch title;
The storage switch port name;
Corresponding WWN number of storage switch port;
Storage switch port opposite end WWN number.
If elements A, element B are two identical copies of storage switch data acquisition system, compare one by one with " storage switch port opposite end WWN number " among " storage switch port corresponding WWN number " among the A and the B, if two equate for WWN number, think that then there is the WWN association in these two elements, be to have a physical connection between port, with two element device names and port title attributes encapsulation in the annexation model, warehouse-in; And, " storage switch port corresponding WWN number " among " storage switch port opposite end WWN number " among the A and the B compared one by one, if two equate for WWN number, think that then there is the WWN association in these two elements, be to have a physical connection between port, with two element device names and port title attributes encapsulation in the annexation model, warehouse-in.
2f) the foundation of annexation between storage switch and the server HBA port:
If set A is and the identical copy of storage switch data acquisition system, set B is that server data is gathered identical copy, compare one by one with " Service-Port (type is HBA) corresponding WWN number " among " storage switch port opposite end WWN number " among the A and the B, if two equate for WWN number, think that then there is the WWN association in these two elements, be to have a physical connection between port, with two element device names and port title attributes encapsulation in the annexation model, warehouse-in.
2j) the foundation of annexation between storage switch and the storage medium:
By the data pick-up analytic process, the network connection related data with relevant storage medium has left in the storage medium data acquisition system, and each element in this set is a storage medium layer model object, comprises following attribute:
The storage medium title;
The storage medium port name;
The storage medium port is corresponding WWN number.
If set A is and the identical copy of storage switch data acquisition system, set B is and the identical copy of storage medium data acquisition system, " WWN number that the storage medium port is corresponding " with element among " the opposite end WWN of storage switch port number " among the A and the B compares one by one, if two equate for WWN number, think that then there is the WWN association in these two elements, be to have a physical connection between port, with two element device names and port title attributes encapsulation in the annexation model, warehouse-in.
Step 103 calculates the absolute coordinate position of each layer equipment in the network topology.
Particularly, can carry out layering with device class, adopt absolute coordinate to locate each equipment.The below is elaborated.
Each layer is respectively in the network topology: ground floor be router layer, second layer storage switch layer, the 3rd layer of Ethernet card layer, the 4th layer be that HBA card layer, layer 6 are that storage switch layer, layer 7 are storage medium layer for server layer, layer 5; Among the present invention, Ethernet card and the HBA card of server shown as one deck separately respectively;
Represent the number of plies with n, n is natural number, scope: 1≤n≤7; Xn is n layer equipment top left corner apex initial horizontal coordinate, Y1 is the initial ordinate of ground floor equipment top left corner apex, Δ Xn is the abscissa increment of n layer equipment, latitude between Δ Y is every layer, Δ Yi are line feed latitude in the layer, and Ln is n layer device length, Hn is n layer device height, Cnm is m equipment of n layer, Cnm=m, m 〉=0; The absolute coordinate position of each layer equipment adopts following formula to calculate in the network topology:
Abscissa Xa and the ordinate Ya of ground floor equipment are:
Xa=X1+(C1m-1)*ΔX1+(C1m-1)*L1;
Ya=Y1; Wherein, " * " expression is multiplied each other;
Abscissa Xb and the ordinate Yb of second layer equipment are:
Xb=X2+(C2m-1)*ΔX2+(C2m-1)*L2;
Yb=Y1+ΔY+H1;
Abscissa Xc and the ordinate Yc of three-layer equipment are:
Xc=X3+Kx* (N-1) * Δ X3+Kx (N-1) * L3, (span of Xc is: Xd≤Xc≤Xd+L4);
Yc=Yb+ΔY+H2+Ky*(ΔYi+H3);
Wherein, Kx is the coefficient that laterally enters a new line, and Ky is the coefficient that vertically enters a new line, and N is N the 3rd layer of Ethernet card of certain the 4th layer of equipment, and N is natural number;
The value of Kx and Ky is determined by following formula:
When satisfied [L3+ (N-1) * Δ X3+ (N-1) * L3]/L4>1, Kx=0, Ky=1; Namely, the Ethernet card that will place has exceeded the border of the 4th layer of subordinate server, needs line feed to place the described Ethernet card that will add;
When satisfied [L3+ (N-1) * Δ X3+ (N-1) * L3]/L4≤1, Kx=1, Ky=0; Namely, the Ethernet card that will place does not exceed the border of the 4th layer of subordinate server, and the described Ethernet card that will add of placement need not to enter a new line;
In the drawing process, draw first the 4th layer, draw again the 3rd layer of ethernet device and the layer 5 HBA card apparatus of the 4th layer of each server;
Abscissa Xd and the ordinate Yd of the 4th layer of equipment are:
Xd=X4+(C4m-1)*ΔX4+(C4m-1)*L4;
Yd=max(Yc)+ΔY+H3;
Because three-layer equipment arrangements that may enter a new line, for the situation of line feed: the ordinate Yc of the three-layer equipment of different rows is not identical yet, and described max (Yc) is the value of maximum in the 3rd layer of each equipment Yc value;
Abscissa Xe and the ordinate Ye of layer 5 equipment are:
Xe=X5+Kx* (M-1) * Δ X5+Kx (M-1) * L5, (span of Xe is: Xd≤Xe≤Xd+L4);
Ye=Yd+ΔY+H5+Ky*(ΔYi+H5);
Wherein, M is M layer 5 HBA card of certain the 4th layer of equipment, and M is natural number;
The value of Kx and Ky is determined by following relation:
When satisfied [L5+ (M-1) * Δ X5+ (M-1) * L5]/L4>1, Kx=0, Ky=1; Namely, the HBA card that will place has exceeded the border of the 4th layer of subordinate server, needs line feed to place the described HBA card that will add;
When satisfied [L5+ (M-1) * Δ X5+ (M-1) * L5]/L4≤1, Kx=1, Ky=0; Namely, the HBA card that will place does not exceed the border of the 4th layer of subordinate server, and the described HBA card that will add of placement need not to enter a new line;
Abscissa Xf and the ordinate Yf of layer 6 equipment are:
Xf=X6+(C6m-1)*ΔX6+(C6m-1)*L6;
Yf=max(Ye)+ΔY+H5;
Because arrangements that may enter a new line of layer 5 equipment, for the situation of line feed: the ordinate Ye of the layer 5 equipment of different rows is not identical yet, and described max (Ye) is the value of maximum in each equipment Ye value of layer 5;
Abscissa Xg and the ordinate Yg of layer 7 equipment are:
Xg=X7+(C7m-1)*ΔX7+(C7m-1)*L7;
Yg=Yf+ΔY+H6。
Step 104 by annexation and absolute coordinate position, presents network topology.
Abscissa Xcenter and the ordinate Ycenter of first equipment center point of each layer are:
Xcenter=(Xn+Ln)/2;
Ycenter=(Yn+Hn)/2。Be current, can take (Xcenter, Ycenter) as topological node line end points, draw topology.
Fig. 2 is the network topology schematic diagram example that presents, in this example, comprise 2 routers, 3 network switchs, 2 station servers, 2 storage switch and 2 storage mediums, wherein server 1 has 3 Ethernet cards and 3 HBA cards, server 2 has 2 Ethernet cards and 2 HBA cards, with the EN sign, the HBA card identifies with FC Ethernet card in the drawings in the drawings.Among the figure, the A1 point coordinates is (X1, Y1), and the B point coordinates is ((X1+L1)/2, (Y1+H1)/2).
After knowing annexation and absolute coordinate position, with annexation, the existing Network Mapping instrument of absolute coordinate Position input, just can draw network topology; Characteristics according to the existing network drawing tool, because the annexation of input refine to port, draw out after the network topology, when needs are grasped network configuration by network topology, need to select the connecting link of concern in network topology, drawing tool just can demonstrate the port information of this connecting link terminal device automatically.
Referring to Fig. 3, for the present invention is directed to the device of IT supporting network generating network topology, this device comprises information acquisition unit, concerns and set up unit, position calculation unit and display unit;
Described information acquisition unit, the attribute for obtaining each equipment of IT supporting network sends described relation to and sets up the unit, and described attribute comprises device name and port information;
Described relation is set up the unit, is used for by the annexation between the port information apparatus for establishing, sends described display unit to;
Described position calculation unit, the absolute coordinate position for calculating each layer of network topology equipment sends to described display unit with the absolute location coordinates that calculates;
Described display unit is used for by annexation and absolute coordinate position, presents network topology.
Alternatively, described information acquisition unit comprises the login subelement, carries out subelement and resolves subelement;
Described login subelement is used for each equipment of login, sends enabled instruction to described execution subelement;
Described execution subelement is used for receiving enabled instruction, and each equipment is carried out the attribute script, obtains the character stream of each equipment feedback;
Described parsing subelement is used for character stream is resolved, and obtains device attribute, sends described relation to and sets up the unit.
Alternatively, described parsing subelement comprises package module and sending module;
Described package module is used for the attributes encapsulation of each equipment that will obtain to the data encapsulation model, and the data encapsulation model of same type is stored in the data set;
Described sending module is used for that data acquisition system is sent to described relation and sets up the unit.
Alternatively, described IT supporting network comprises IP network and SAN, and for IP network, described port information comprises MAC Address, and for SAN, described port information comprises WWN number; Described relation is set up the unit and is comprised that the first relation is set up subelement and the second relation is set up subelement;
Described the first relation is set up subelement, is used for judging whether the port mac address of same layer or two equipment of adjacent layer is related, if so, then sets up two corresponding relations between the equipment;
Described the second relation is set up subelement, is used for judging same layer or two equipment of adjacent layer port WWN number whether association, if so, then sets up two corresponding relations between the equipment.
The present invention is directed to the scheme of IT supporting network generating network topology, need not to carry out hand data collection, also need not to change existing network environment and hardware configuration; When needs generating network topology, the flow process of execution graph 1 just can be drawn out network topology structure, like this, by the automatic acquisition equipment attribute, automatically contrasts network connection information, adopts the mode of automatic input to obtain the network connection relation data; Realize the automatic collection of network topological information, automatically renewal, realize dynamic network topology.
The present invention to port, has realized the network topology of port-to-port with the minimum node granularity refinement, can effectively promote the management fineness, and then improves port and link management maintenance efficiency.
And the present invention program has realized crossing over difference between subsystem and net and has generated full mesh topology for the IT supporting network.Comprise in the IT supporting network that IP network also comprises SAN, two kinds of network environment differences, equipment is different, and the present invention program can shield that difference generates topological network automatically between two class networks, thereby the full mesh topology in the IT supporting network is provided, and realizes managing visual.
Moreover, the present invention program adopts with the device type layering, and the stratification ways of presentation with the absolute coordinate location can represent physical interconnection and logical level between the equipment clearly.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, is equal to replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (10)

1. method for IT supporting network generating network topology is characterized in that the method comprises:
Obtain the attribute of each equipment in the IT supporting network, described attribute comprises device name and port information;
By the annexation between the port information apparatus for establishing;
Calculate the absolute coordinate position of each layer equipment in the network topology;
By annexation and absolute coordinate position, present network topology.
2. the method for claim 1 is characterized in that, the attribute of each equipment comprises in the described IT of the obtaining supporting network:
Login each equipment;
Each equipment is carried out the attribute script, receive the character stream of each equipment feedback;
Character stream is resolved, obtain device attribute.
3. the method for claim 1 is characterized in that, after the described attribute that obtains each equipment in the IT supporting network, the method comprises:
With the attributes encapsulation of each equipment of obtaining in the data encapsulation model;
The data encapsulation model of same type is stored in the data set.
4. method as claimed in claim 3 is characterized in that,
When equipment was router, corresponding data acquisition system was the router data set; Port information comprises the corresponding media access control layer MAC Address of router port name, router port and the opposite end MAC Address of router port;
When equipment was the network switch, corresponding data acquisition system was network switch data acquisition system; Port information comprises network switch management port name, network switch management port MAC Address, network switch port name and network switch port opposite end MAC Address;
When equipment was server, corresponding data acquisition system was server set; Port information comprises the corresponding MAC Address of Service-Port name, Service-Port type, port and corresponding global unique name WWN number of port;
When equipment is storage switch, corresponding data acquisition system is the storage switch data acquisition system; Port information comprises corresponding WWN number and storage switch port opposite end WWN number of storage switch port name, storage switch port;
When equipment is storage medium, corresponding data acquisition system is the storage medium data acquisition system; Port information comprises corresponding WWN number of storage switch port name and storage switch port.
5. method as claimed in claim 4, it is characterized in that, described IT supporting network comprises IP network and storage area network network SAN, and set up the annexation between the IP network equipment and set up annexation between the SAN equipment described being comprised by the annexation between the port information apparatus for establishing:
The described annexation of setting up between the IP network equipment comprises: whether the port mac address of judging two equipment in same layer or the adjacent layer is related, if so, then sets up two corresponding relations between the equipment;
Annexation between the described SAN of foundation network equipment comprises: whether port WWN number of judging two equipment in same layer or the adjacent layer be related, if so, then sets up two corresponding relations between the equipment.
6. such as each described method in the claim 1 to 5, it is characterized in that each layer is respectively in the network topology: ground floor be router layer, second layer network switch layer, the 3rd layer of Ethernet card layer, the 4th layer be that host bus adaptor HBA card layer, layer 6 are that storage switch layer, layer 7 are storage medium layer for server layer, layer 5;
Represent the number of plies with n, n is natural number, 1≤n≤7, Xn is n layer equipment top left corner apex initial horizontal coordinate, Y1 is the initial ordinate of ground floor equipment top left corner apex, and Δ Xn is the abscissa increment of n layer equipment, the latitude between Δ Y is every layer, Δ Yi is line feed latitude in the layer, Ln is n layer device length, and Hn is n layer device height, and Cnm is m equipment of n layer, Cnm=m, m 〉=0; The absolute coordinate position of each layer equipment adopts following formula to calculate in the network topology:
Abscissa Xa and the ordinate Ya of ground floor equipment are:
Xa=X1+(C1m-1)*ΔX1+(C1m-1)*L1;
Ya=Y1;
Abscissa Xb and the ordinate Yb of second layer equipment are:
Xb=X2+(C2m-1)*ΔX2+(C2m-1)*L2;
Yb=Y1+ΔY+H1;
Abscissa Xc and the ordinate Yc of three-layer equipment are:
Xc=X3+Kx*(N-1)*ΔX3+Kx(N-1)*L3,(Xd≤Xc≤Xd+L4);
Yc=Yb+ΔY+H2+Ky*(ΔYi+H3);
Wherein, Kx is the coefficient that laterally enters a new line, and Ky is the coefficient that vertically enters a new line, and N is N Ethernet card of certain the 4th layer of equipment, and N is natural number; When [L3+ (N-1) * Δ X3+ (N-1) * L3]/L4>1, Kx=0, Ky=1; When [L3+ (N-1) * Δ X3+ (N-1) * L3]/L4≤1, Kx=1, Ky=0;
Abscissa Xd and the ordinate Yd of the 4th layer of equipment are:
Xd=X4+(C4m-1)*ΔX4+(C4m-1)*L4;
Yd=max(Yc)+ΔY+H3;
Abscissa Xe and the ordinate Ye of layer 5 equipment are:
Xe=X5+Kx*(M-1)*ΔX5+Kx(M-1)*L5,(Xd≤Xe≤Xd+L4);
Ye=Yd+ΔY+H5+Ky*(ΔYi+H5);
Wherein, M is M HBA card of certain the 4th layer of equipment, and M is natural number; When [L5+ (M-1) * Δ X5+ (M-1) * L5]/L4>1, Kx=0, Ky=1; When [L5+ (M-1) * Δ X5+ (M-1) * L5]/L4≤1, Kx=1, Ky=0;
Abscissa Xf and the ordinate Yf of layer 6 equipment are:
Xf=X6+(C6m-1)*ΔX6+(C6m-1)*L6;
Yf=max(Ye)+ΔY+H5;
Abscissa Xg and the ordinate Yg of layer 7 equipment are:
Xg=X7+(C7m-1)*ΔX7+(C7m-1)*L7;
Yg=Yf+ΔY+H6。
7. the device for IT supporting network generating network topology is characterized in that, this device comprises information acquisition unit, concerns and set up unit, position calculation unit and display unit;
Described information acquisition unit, the attribute for obtaining each equipment of IT supporting network sends described relation to and sets up the unit, and described attribute comprises device name and port information;
Described relation is set up the unit, is used for by the annexation between the port information apparatus for establishing, sends described display unit to;
Described position calculation unit, the absolute coordinate position for calculating each layer of network topology equipment sends to described display unit with the absolute location coordinates that calculates;
Described display unit is used for by annexation and absolute coordinate position, presents network topology.
8. device as claimed in claim 7 is characterized in that, described information acquisition unit comprises the login subelement, carries out subelement and resolves subelement;
Described login subelement is used for each equipment of login, sends enabled instruction to described execution subelement;
Described execution subelement is used for receiving enabled instruction, and each equipment is carried out the attribute script, obtains the character stream of each equipment feedback;
Described parsing subelement is used for character stream is resolved, and obtains device attribute, sends described relation to and sets up the unit.
9. device as claimed in claim 8 is characterized in that, described parsing subelement comprises package module and sending module;
Described package module is used for the attributes encapsulation of each equipment that will obtain to the data encapsulation model, and the data encapsulation model of same type is stored in the data set;
Described sending module is used for that data acquisition system is sent to described relation and sets up the unit.
10. such as claim 7,8 or 9 described devices, it is characterized in that described IT supporting network comprises IP network and SAN, for IP network, described port information comprises MAC Address, and for SAN, described port information comprises WWN number; Described relation is set up the unit and is comprised that the first relation is set up subelement and the second relation is set up subelement;
Described the first relation is set up subelement, is used for judging whether the port mac address of same layer or two equipment of adjacent layer is related, if so, then sets up two corresponding relations between the equipment;
Described the second relation is set up subelement, is used for judging same layer or two equipment of adjacent layer port WWN number whether association, if so, then sets up two corresponding relations between the equipment.
CN201110291156.6A 2011-09-29 2011-09-29 The method and device of network topology is generated for IT supporting network Active CN103036692B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110291156.6A CN103036692B (en) 2011-09-29 2011-09-29 The method and device of network topology is generated for IT supporting network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110291156.6A CN103036692B (en) 2011-09-29 2011-09-29 The method and device of network topology is generated for IT supporting network

Publications (2)

Publication Number Publication Date
CN103036692A true CN103036692A (en) 2013-04-10
CN103036692B CN103036692B (en) 2016-12-07

Family

ID=48023207

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110291156.6A Active CN103036692B (en) 2011-09-29 2011-09-29 The method and device of network topology is generated for IT supporting network

Country Status (1)

Country Link
CN (1) CN103036692B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105577456A (en) * 2016-03-09 2016-05-11 浪潮通信信息系统有限公司 Network topology configuration display method for solving single-domain or cross-domain problems
WO2016082350A1 (en) * 2014-11-24 2016-06-02 中兴通讯股份有限公司 Network asset information display method and device
CN105847046A (en) * 2016-03-22 2016-08-10 浪潮通信信息系统有限公司 Topological configuration and display method of mobile communication performance management system
CN108074030A (en) * 2017-03-03 2018-05-25 哈尔滨安天科技股份有限公司 A kind of safety analysis of assets information and Visualized management system and method
CN108429640A (en) * 2018-02-27 2018-08-21 北京天元创新科技有限公司 A kind of display methods and device of the node of the network equipment
CN108462587A (en) * 2017-02-20 2018-08-28 中兴通讯股份有限公司 A kind of network topology treating method and apparatus
CN110213107A (en) * 2019-06-11 2019-09-06 广东电网有限责任公司 A kind of autoplacement method, device and equipment for network topological diagram
CN110855457A (en) * 2018-08-20 2020-02-28 阿里巴巴集团控股有限公司 Method and device for generating network model and configuring network
CN112202593A (en) * 2020-09-03 2021-01-08 深圳前海微众银行股份有限公司 Data acquisition method, device, network management system and computer storage medium
CN112632147A (en) * 2020-12-11 2021-04-09 邦彦技术股份有限公司 Data differentiation comparison method, system and storage medium
CN113468700A (en) * 2021-07-08 2021-10-01 安天科技集团股份有限公司 Topology information identification method and device, computing equipment and storage medium
CN113746906A (en) * 2021-08-13 2021-12-03 苏州浪潮智能科技有限公司 Method and system for automatically generating topological graph
CN114374614A (en) * 2022-03-03 2022-04-19 中国工商银行股份有限公司 Network topology configuration method and device
CN117354164A (en) * 2023-12-05 2024-01-05 长沙先度科技有限公司 Automatic generation method of Ethernet topology structure

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050185599A1 (en) * 2004-02-19 2005-08-25 Intel Corporation Generating topology information identifying devices in a network topology
CN101931560A (en) * 2010-09-02 2010-12-29 华为技术有限公司 Method and device for acquiring connection relationship between network equipment
CN102185706A (en) * 2011-04-13 2011-09-14 北京航空航天大学 Method for generating IEEE1394 (Institute of Electrical and Electronics Engineers 1394) network topological graph

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050185599A1 (en) * 2004-02-19 2005-08-25 Intel Corporation Generating topology information identifying devices in a network topology
CN101931560A (en) * 2010-09-02 2010-12-29 华为技术有限公司 Method and device for acquiring connection relationship between network equipment
CN102185706A (en) * 2011-04-13 2011-09-14 北京航空航天大学 Method for generating IEEE1394 (Institute of Electrical and Electronics Engineers 1394) network topological graph

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016082350A1 (en) * 2014-11-24 2016-06-02 中兴通讯股份有限公司 Network asset information display method and device
CN105577456A (en) * 2016-03-09 2016-05-11 浪潮通信信息系统有限公司 Network topology configuration display method for solving single-domain or cross-domain problems
CN105847046A (en) * 2016-03-22 2016-08-10 浪潮通信信息系统有限公司 Topological configuration and display method of mobile communication performance management system
CN108462587A (en) * 2017-02-20 2018-08-28 中兴通讯股份有限公司 A kind of network topology treating method and apparatus
CN108074030A (en) * 2017-03-03 2018-05-25 哈尔滨安天科技股份有限公司 A kind of safety analysis of assets information and Visualized management system and method
CN108429640B (en) * 2018-02-27 2021-03-30 北京天元创新科技有限公司 Display method and device for nodes of network equipment
CN108429640A (en) * 2018-02-27 2018-08-21 北京天元创新科技有限公司 A kind of display methods and device of the node of the network equipment
CN110855457B (en) * 2018-08-20 2022-10-14 阿里巴巴集团控股有限公司 Method and equipment for generating network model and configuring network
CN110855457A (en) * 2018-08-20 2020-02-28 阿里巴巴集团控股有限公司 Method and device for generating network model and configuring network
CN110213107B (en) * 2019-06-11 2022-04-01 广东电网有限责任公司 Automatic layout method, device and equipment for network topological graph
CN110213107A (en) * 2019-06-11 2019-09-06 广东电网有限责任公司 A kind of autoplacement method, device and equipment for network topological diagram
CN112202593A (en) * 2020-09-03 2021-01-08 深圳前海微众银行股份有限公司 Data acquisition method, device, network management system and computer storage medium
CN112632147A (en) * 2020-12-11 2021-04-09 邦彦技术股份有限公司 Data differentiation comparison method, system and storage medium
CN112632147B (en) * 2020-12-11 2023-10-24 邦彦技术股份有限公司 Data differentiation comparison method, system and storage medium
CN113468700A (en) * 2021-07-08 2021-10-01 安天科技集团股份有限公司 Topology information identification method and device, computing equipment and storage medium
CN113746906A (en) * 2021-08-13 2021-12-03 苏州浪潮智能科技有限公司 Method and system for automatically generating topological graph
CN114374614A (en) * 2022-03-03 2022-04-19 中国工商银行股份有限公司 Network topology configuration method and device
CN114374614B (en) * 2022-03-03 2023-12-26 中国工商银行股份有限公司 Network topology configuration method and device
CN117354164A (en) * 2023-12-05 2024-01-05 长沙先度科技有限公司 Automatic generation method of Ethernet topology structure
CN117354164B (en) * 2023-12-05 2024-02-20 长沙先度科技有限公司 Automatic generation method of Ethernet topology structure

Also Published As

Publication number Publication date
CN103036692B (en) 2016-12-07

Similar Documents

Publication Publication Date Title
CN103036692A (en) Method and device for generating network topologies aimed at IT supporting networks
CN104883547B (en) Method and NVR based on network access equipment physical port access IPC
CN101990004B (en) Method for distributing virtual ID and virtual IP based on home gateway of internet of things
CN101997725B (en) A kind of system and device carrying DOCSIS business based on PON
CN101409672A (en) Data distribution apparatus, data distribution method, and distribution control program
CN111314107B (en) Automatic networking system and method based on internet service
CN105376101B (en) A kind of method and system of material object equipment access of virtual network
CN102932201A (en) Display control system and method for network monitoring data
CN105610996B (en) A kind of DHCP collision detection methods applied to interchanger
CN105847023A (en) Service system network topology relationship obtaining method and device
CN102904977B (en) Network address allocation method, server and node
CN103024028A (en) Virtual machine IP (Internet Protocol) address detection system and method in cloud computing
CN100352210C (en) Method for managing network device
CN105187781A (en) Method and device for adding monitoring equipment automatically
CN106878095A (en) A kind of network collocating method and system based on scenario distributed emulation
CN103532746A (en) Method and system for generating business topology of industrial system
CN105812221A (en) Data transmission device and method in virtual extensible local area network
CN109769038A (en) A kind of method and device of configuring internet protocol address
CN101534218B (en) A management method, device and system for open application architecture
CN105610669A (en) Address distribution method and device for Supervlan flattened network
CN103685587A (en) Method and device for assigning MAC (Media Access Control) address
CN103929378B (en) The communication link distribution of cross-domain data transmission and cross-domain data transmission method and system
CN105591871A (en) Method and device for configuration of auto discovery virtual private network (ADVPN) spoke
CN111865749B (en) Port binding method and device
CN103178985B (en) Network equipment polling method, network equipment polling system and network equipment polling device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant