CN103036692B - The method and device of network topology is generated for IT supporting network - Google Patents
The method and device of network topology is generated for IT supporting network Download PDFInfo
- Publication number
- CN103036692B CN103036692B CN201110291156.6A CN201110291156A CN103036692B CN 103036692 B CN103036692 B CN 103036692B CN 201110291156 A CN201110291156 A CN 201110291156A CN 103036692 B CN103036692 B CN 103036692B
- Authority
- CN
- China
- Prior art keywords
- layer
- equipment
- network
- port
- abscissa
- 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.)
- Active
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides the method and device generating network topology for IT supporting network, wherein, the method includes: obtaining the attribute of each equipment in IT supporting network, described attribute includes device name and port information;The annexation between equipment is set up by port information;Calculate the absolute coordinate position of each layer equipment in network topology;By annexation and absolute coordinate position, present network topology.The present invention program can generate the network topology with the network port as minimum particle size.
Description
Technical field
The present invention relates to IT supporting network technology, particularly relate to generate for IT supporting network the side of network topology
Method and device.
Background technology
Along with the development of mobile Internet, its customer service and number of users all grow with each passing day, with this
Meanwhile, as the IT supporting network also ever more important of carrier.In order to enable IT supporting network stability and high efficiency
Run, grasp the network structure that IT supporting network is complicated, i.e. network topology in real time and accurately, become telecommunications
One of aspect that field pays high attention to.
At present, the method for IT supporting network generation network topology includes:
First, artificial carding equipment information, the static data source of recording device.Described static data source is wrapped
Include the annexation between device name, equipment, this annexation only reflect roughly any two equipment it
Between have annexation, which two port not embodied in two equipment have annexation.
Then, according to static data source, calculate the coordinate information of each equipment in network topology, then use
The WEB technology such as FLEX, FLASH are customized drawing, and present network topology.
Existing method is with equipment for minimum network node granularity, it is provided that the connection diagram of device-to-device,
Link information end to end cannot be known from network topology.Further, with manual entry in existing method
Static data source generates IT supporting network network topology, and obtain is static network topology, it is impossible to dynamically adopt
Collection topological data, it is difficult to realize dynamic topology, updates efficiency low;And, the IT that existing method obtains
Supporting network network topology device to core or regional area carry out network topology drafting, lack the complete of the whole network
Office's topology.
Visible, at least there is the defect that cannot know end to end connection information from network topology in existing scheme.
Summary of the invention
The invention provides a kind of method generating network topology for IT supporting network, the method can generate
Network topology with the network port as minimum particle size.
The invention provides a kind of device generating network topology for IT supporting network, this device can generate
Network topology with the network port as minimum particle size.
A kind of method generating network topology for IT supporting network, the method includes:
Obtaining the attribute of each equipment in IT supporting network, described attribute includes device name and port information;
The annexation between equipment is set up by port information;
Calculate the absolute coordinate position of each layer equipment in network topology;
By annexation and absolute coordinate position, present network topology.
A kind of device generating network topology for IT supporting network, this device includes information acquisition unit, relation
Set up unit, position calculation unit and display unit;
Described information acquisition unit, for obtaining the attribute of each equipment in IT supporting network, sends described relation to
Setting up unit, described attribute includes device name and port information;
Described relation sets up unit, for being set up the annexation between equipment by port information, sends institute to
State display unit;
Described position calculation unit, for calculating the absolute coordinate position of each layer equipment in network topology, will meter
The absolute location coordinates calculated is sent to described display unit;
Described display unit, for by annexation and absolute coordinate position, presents network topology.
From such scheme it can be seen that the present invention, the attribute of each equipment of IT supporting network of acquisition wraps
Containing port information, set up the annexation between equipment based on port information, then by annexation with absolute
Coordinate position presents network topology.The present invention by minimum node granularity refinement to port, it is achieved that port arrives
The network topology of port, it is possible to effectively promote management fineness, and then improve port and link management maintenance
Efficiency.
Accompanying drawing explanation
Fig. 1 is to the present invention is directed to IT supporting network to generate the method indicative flowchart of network topology;
Fig. 2 is the network topology schematic diagram example that the present invention presents;
Fig. 3 is to the present invention is directed to IT supporting network to generate the apparatus structure schematic diagram of network topology.
Detailed description of the invention
For making the object, 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 sets up the annexation between equipment based on port information, then by annexation and definitely sits
Cursor position presents the network topology for IT supporting network.So, by minimum node granularity refinement to port,
Achieve the network topology of port-to-port, it is possible to effectively promote management fineness, so improve port and
Link management maintenance efficiency.
Seeing Fig. 1, generating the method indicative flowchart of network topology for the present invention is directed to IT supporting network,
The method comprises the following steps:
Step 101, obtains the attribute of each equipment in IT supporting network, and described attribute includes device name and port
Information.
The mode of each device attribute in IT supporting network that obtains has multiple, such as, can obtain by the way of performing script
Take, including: first log into each equipment, specifically, existing security protocol (SSH, Secure Shell) can be used
2 or telnet modes log in each equipment;Each equipment is performed attribute script, receives the character stream of each equipment feedback;
Character stream is resolved, obtains device attribute.Described attribute script is previously-completed, and is used for obtaining each equipment
Attribute;When needed, each equipment is performed attribute script, just can obtain the script of each equipment.
Further, in obtaining IT supporting network after the attribute of each equipment, the method can also include:
By in the attributes encapsulation of each equipment of acquisition to data packaging model;
The data packaging model of same type is stored in a data acquisition system.So, when needed, pass through
Extract data acquisition system and just would know that each device attribute.
Below each data packaging model is illustrated:
A) router layer model comprises with properties:
Router rs name;
Router port name;
Corresponding media access control layer (MAC, the Media Access Control) address of router port;
The opposite end MAC Address of router port;
B) network switch layer model comprises with properties:
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) server layer model comprises with properties:
Server name;
Service-Port name (includes ethernet port and host bus adaptor (HBA, Host Bus Adapter)
Port);
Server port type (includes two kinds: 1. ethernet port 2.HBA port);
The corresponding MAC Address of port (if HBA port this be empty);
The unique name (WWN, World Wide Name) number in the corresponding whole world of port (if ethernet side
Mouthful this for sky);
It should be noted that server not only includes server itself, also include Ethernet card or HBA card,
Or, include Ethernet card and HBA card simultaneously;When including Ethernet card, Service-Port includes ether
Net port, when including HBA card, Service-Port includes HBA port;
D) storage exchanger layer model comprises with properties:
Storage switch name;
Storage switch ports themselves name;
Storage switch ports themselves correspondence WWN;
Storage switch ports themselves opposite end WWN;
E) storage medium layer model comprises with properties:
Storage medium title;
Storage switch ports themselves name;
No. WWN that storage switch ports themselves is corresponding.
According to the difference of equipment, data acquisition system title and property content are also corresponding different.Carry out below illustrating
Bright:
When equipment is router, corresponding data acquisition system is router data set;Port information includes route
Device port name, the corresponding MAC Address of router port and the opposite end MAC Address of router port;
When equipment is the network switch, corresponding data acquisition system is network switch data acquisition system;Port information
Including 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 is server, corresponding data acquisition system is server set;Port information includes server end
Mouth name, server port type, the corresponding MAC Address of port and corresponding No. WWN of port;
When equipment is storage switch, and corresponding data acquisition system is storage exchange data set;Port information bag
Include storage switch ports themselves name, storage switch ports themselves correspondence WWN and storage switch ports themselves opposite end
No. WWN;
When equipment is storage medium, corresponding data acquisition system is storage medium data acquisition system;Port information includes depositing
Storage switch ports themselves name and store corresponding No. WWN of switch ports themselves.
Log in various equipment in SSH2 and telnet mode, each equipment is performed attribute script, obtains feedback words
Fu Liuhou resolves according to specific format, thus obtains various data required during network topology connects.Feedback
Data are separated mark, property value, attribute separation mark, row separation sign by beginning flag, attribute-name, key assignments
Know and end mark forms.
If more than mark is as shown in the table:
Beginning flag | Key assignments separates mark | Attribute separates mark | Row separates mark | End mark |
[[`S` | _: | , | {`r`} | `E`]] |
Being exemplified below, the data gathered from certain router include router rs name: IPSW.name,
Port numbers: IPSW.port, mac address, opposite end: IPSW.mac), then the character example of feedback is as follows:
[[`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`]]
Finally according to the difference of device type, parsing is obtained data, be encapsulated into aforesaid a, b, c, d respectively
With in e corresponding model, then will encapsulation after same class model be separately stored in router data set, network hand over
Change planes in data acquisition system, server data set, storage exchange data set and storage medium data acquisition system.
Step 102, is set up the annexation between equipment by port information.
Whether the annexation between equipment, can be associated by the port information between equipment and determine;Connect
Relation can use annexation model to carry out record storage, and annexation model comprises herein below: source device
Name, source port name, target device name and target port name.Citing below is described in detail.
Described IT supporting network includes IP network and Storage are network (SAN, Storage Area Network),
Described set up the annexation between equipment by port information and include setting up the annexation between IP network equipment
And the annexation set up between SAN equipment:
1) the described annexation set up between IP network equipment includes: judge network topology same layer or adjacent
In Ceng, whether the port mac address of two equipment associates, if it is, the correspondence set up between two equipment
Relation.Specifically:
1a) the foundation of annexation between router:
Analyze process by data pick-up, the network about router is connected related data and leave in
In router data set, each element in this set is a router layer model object, comprises
With properties:
Router rs name;
Router port name;
The corresponding MAC Address of router port;
The opposite end MAC Address of router port.
If elements A, element B are router data set two identical copies, with " road in A
By the corresponding MAC Address of device port " carry out one by one with " the opposite end MAC Address of router port " in B
Contrast, if two MAC Address are equal, then it is assumed that the two element exists MAC Address association, i.e. port
Between there is a physical connection, by two element device names and port title attributes encapsulation to annexation mould
In type, warehouse-in;Further, with " the opposite end MAC Address of router port " in A and " router in B
The corresponding MAC Address of port " contrast one by one, if two MAC Address are equal, then it is assumed that the two
There is MAC Address association in element, i.e. there is a physical connection between port, by two element device names and
Port title attributes encapsulation in annexation model, warehouse-in.
1b) the foundation of annexation between the network switch:
Analyze process by data pick-up, the network of related network switch is connected related data and deposit
In network switch data acquisition system, each element in this set is a network exchange layer model
Object, comprises with properties:
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 network switch data acquisition system two identical copies, with in A
" network switch management port MAC Address " and " network switch port opposite end MAC Address " in B
Contrast one by one, if two MAC Address are equal, then it is assumed that the two element exists MAC Address association,
Both there is a physical connection between port, by two element device names and port title attributes encapsulation to connection
In relational model, warehouse-in;Further, with " network switch port opposite end MAC Address " in A and B " net
Cross winding is changed planes management port MAC Address " in contrast one by one, if two MAC Address are equal, then recognize
There is MAC Address association for the two element, i.e. there is a physical connection between port, two elements are set
Standby title and port title attributes encapsulation in annexation model, warehouse-in.
1c) the foundation of annexation between the network switch and router:
If elements A is copy identical with router data set, element B is and network switch number
According to gathering identical copy, with " the corresponding MAC Address of router port " in A and " net in B
Network switch ports themselves opposite end MAC Address " contrast one by one, if two MAC Address are equal, then it is assumed that
There is MAC Address association in the two element, i.e. there is a physical connection between port, by two element equipment
Title and port title attributes encapsulation in annexation model, warehouse-in;Further, by " router side in A
The opposite end MAC Address of mouth " contrast one by one with " network switch management port MAC Address " in B,
If two MAC Address are equal, then it is assumed that the two element exists MAC Address association, i.e. exists between port
Article one, physical connection, by two element device names and port title attributes encapsulation to annexation model,
Warehouse-in.
1d) the foundation of annexation between the network switch and server ethernet port:
Analyze process by data pick-up, the network about server is connected related data and leave in
In server data set, each element in this set is a server layer model object.
If set A is copy identical with network switch data acquisition system, set B is and server count
According to gathering identical copy, with " network switch port opposite end MAC Address " in A and " clothes in B
The corresponding MAC Address of business device port (type is Ethernet) " contrast one by one, if two MAC ground
Location is equal, then it is assumed that the two element exists MAC Address association, i.e. there is a physical connection between port,
By in two element device names and port title attributes encapsulation to annexation model, warehouse-in.
2) annexation between the described SAN of foundation equipment includes: judge network topology same layer or adjacent
In floor, whether the port of two equipment WWN associates, if it is, the correspondence set up between two equipment
Relation.
2e) the foundation of annexation between storage switch:
Analyze process by data pick-up, the network about storage switch is connected related data and deposit
In storage exchange data set, each element in this set is a storage exchanger layer mould
Type object, comprises with properties:
Storage switch name;
Storage switch ports themselves name;
Corresponding No. WWN of storage switch ports themselves;
Storage switch ports themselves opposite end WWN.
If two identical copies that elements A, element B are storage exchange data set, with in A
" corresponding No. WWN of storage switch ports themselves " and " storage switch ports themselves opposite end WWN " in B
Contrast one by one, if two No. WWN is equal, then it is assumed that the two element exists No. WWN association,
I.e. there is a physical connection between port, by two element device names and port title attributes encapsulation to connection
In relational model, warehouse-in;Further, " storage switch ports themselves opposite end WWN " in A " is deposited with B
Corresponding No. WWN of storage switch ports themselves " contrast one by one, if two No. WWN is equal, then it is assumed that
There is No. WWN association in the two element, i.e. there is a physical connection between port, by two element equipment
Title and port title attributes encapsulation in annexation model, warehouse-in.
2f) the foundation of annexation between storage switch-to-server HBA port:
If set A is and the storage identical copy of exchange data set, set B is server data
Gather identical copy, with " storage switch ports themselves opposite end WWN " in A and " clothes in B
Corresponding No. WWN of business device port (type is HBA) " contrast one by one, if two WWN phases
Deng, then it is assumed that there is No. WWN association in the two element, i.e. there is a physical connection between port, by two
Individual element device name and port title attributes encapsulation in annexation model, warehouse-in.
2j) the foundation of annexation between storage switch and storage medium:
Analyze process by data pick-up, the network about storage medium is connected related data and leave in
In storage medium data acquisition system, each element in this set is a storage medium layer model object,
Comprise with properties:
Storage medium title;
Storage medium port name;
No. WWN that storage medium port is corresponding.
If set A is and the storage identical copy of exchange data set, set B is and storage medium
The identical copy of data acquisition system, with in " opposite end WWN of storage switch ports themselves " in A and B
" No. WWN that storage medium port is corresponding " of element contrasts one by one, if two No. WWN is equal,
Then think that the two element exists No. WWN association, i.e. there is a physical connection between port, by two units
Element device name and port title attributes encapsulation in annexation model, warehouse-in.
Step 103, calculates the absolute coordinate position of each layer equipment in network topology.
Specifically, can be layered with device class, use absolute coordinate to position each equipment.Carry out below
Describe in detail.
In network topology each layer be respectively as follows: ground floor be router layer, the second layer storage exchanger layer, the 3rd
Layer Ethernet card layer, the 4th layer for server layer, layer 5 be HBA card layer, layer 6 be storage switch
Layer, layer 7 are storage medium layer;In the present invention, by the Ethernet card of server and HBA card individually
Show as one layer;
Representing the number of plies with n, n is natural number, scope: 1≤n≤7;Xn is n-th layer equipment top left corner apex
Initial horizontal coordinate, Y1 is the ground floor initial vertical coordinate of equipment top left corner apex, and Δ Xn is n-th layer equipment
Abscissa increment, Δ Y be every layer between latitude, Δ Yi is line feed latitude, Ln in layer
For n-th layer device length, Hn is n-th layer device height, and Cnm is the m-th equipment of n-th layer,
Cnm=m, m >=0;In network topology, the absolute coordinate position of each layer equipment uses following formula to be calculated:
The abscissa Xa and vertical coordinate Ya of ground floor equipment be:
Xa=X1+ (C1m-1) * Δ X1+ (C1m-1) * L1;
Ya=Y1;Wherein, " * " expression is multiplied;
The abscissa Xb and vertical coordinate Yb of second layer equipment be:
Xb=X2+ (C2m-1) * Δ X2+ (C2m-1) * L2;
Yb=Y1+ Δ Y+H1;
The abscissa Xc and vertical coordinate Yc of third layer equipment be:
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 longitudinally enters a new line, and N is the N of certain the 4th layer of equipment
Individual third layer Ethernet card, N is natural number;
The value of Kx and Ky is determined by following formula:
As satisfied [L3+ (N-1) * Δ X3+ (N-1) * L3]/L4 > 1, Kx=0, Ky=1;It is, will
The Ethernet card placed, beyond the border of the 4th layer of subordinate server, needs will add described in line feed placement
Ethernet card;
When satisfied [L3+ (N-1) * Δ X3+ (N-1) * L3]/L4≤1, Kx=1, Ky=0;It is, will
The Ethernet card placed is without departing from the border of the 4th layer of subordinate server, it is not necessary to will add described in line feed placement
The Ethernet card added;
In drawing process, first draw the 4th layer, then draw the third layer ethernet device of the 4th layer of each server
And layer 5 HBA card apparatus;
The abscissa Xd and vertical coordinate Yd of the 4th layer of equipment be:
Xd=X4+ (C4m-1) * Δ X4+ (C4m-1) * L4;
Yd=max (Yc)+Δ Y+H3;
Owing to third layer equipment may arrange in line feed, during for line feed: the third layer equipment of different rows
Vertical coordinate Yc also differs, and described max (Yc) is value maximum in third layer each equipment Yc value;
The abscissa Xe and vertical coordinate Ye of layer 5 equipment be:
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 the m-th 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:
As satisfied [L5+ (M-1) * Δ X5+ (M-1) * L5]/L4 > 1, Kx=0, Ky=1;It is, will
The HBA card placed beyond the border of the 4th layer of subordinate server, needs will to add described in line feed placement
HBA card;
When satisfied [L5+ (M-1) * Δ X5+ (M-1) * L5]/L4≤1, Kx=1, Ky=0;It is, will
HBA card to be placed is without departing from the border of the 4th layer of subordinate server, it is not necessary to will add described in line feed placement
The HBA card added;
The abscissa Xf and vertical coordinate Yf of layer 6 equipment be:
Xf=X6+ (C6m-1) * Δ X6+ (C6m-1) * L6;
Yf=max (Ye)+Δ Y+H5;
Owing to layer 5 equipment may arrange in line feed, during for line feed: the layer 5 equipment of different rows
Vertical coordinate Ye also differs, and described max (Ye) is value maximum in layer 5 each equipment Ye value;
The abscissa Xg and vertical coordinate Yg of layer 7 equipment be:
Xg=X7+ (C7m-1) * Δ X7+ (C7m-1) * L7;
Yg=Yf+ Δ Y+H6.
Step 104, by annexation and absolute coordinate position, presents network topology.
The abscissa Xcenter and vertical coordinate Ycenter of first equipment center point of each layer be:
Xcenter=(Xn+Ln)/2;
Ycenter=(Yn+Hn)/2.In now, can be topological node line with (Xcenter, Ycenter)
End points, draws topology.
Fig. 2 is the network topology schematic diagram example presented, and in this example, comprises 2 routers, 3 networks
Switch, 2 station servers, 2 storage switches and 2 storage mediums, wherein server 1 have 3 with
Too network interface card and 3 HBA cards, server 2 has 2 Ethernet cards and 2 HBA cards, and Ethernet card exists
Identifying with EN in figure, HBA card identifies with FC in the drawings.In figure, A1 point coordinates is (X1, Y1),
B point coordinates is ((X1+L1)/2, (Y1+H1)/2).
After knowing annexation and absolute coordinate position, annexation, absolute coordinate position are inputted existing
Network Mapping instrument, just can draw network topology;According to the feature of existing network drawing tool, due to input
Annexation refine to port, after drawing out network topology, when needs grasp network by network topology
During structure, selecting the connecting link needing to pay close attention in network topology, drawing tool will demonstrate this automatically
The port information of connecting link terminal device.
Seeing Fig. 3, generating the device of network topology for the present invention is directed to IT supporting network, this device includes information
Acquiring unit, relation set up unit, position calculation unit and display unit;
Described information acquisition unit, for obtaining the attribute of each equipment in IT supporting network, sends described relation to
Setting up unit, described attribute includes device name and port information;
Described relation sets up unit, for being set up the annexation between equipment by port information, sends institute to
State display unit;
Described position calculation unit, for calculating the absolute coordinate position of each layer equipment in network topology, will meter
The absolute location coordinates calculated is sent to described display unit;
Described display unit, for by annexation and absolute coordinate position, presents network topology.
Alternatively, described information acquisition unit includes logging in subelement, performing subelement and resolve subelement;
Described login subelement, is used for logging in each equipment, sends enabled instruction to described execution subelement;
Described execution subelement, is used for receiving enabled instruction, each equipment is performed attribute script, obtains each equipment
The character stream of feedback;
Described parsing subelement, for resolving character stream, obtains device attribute, sends described relation to
Set up unit.
Alternatively, described parsing subelement includes package module and sending module;
Described package module, for the attributes encapsulation of each equipment that will obtain in data packaging model, by identical
The data packaging model of type stores in a data acquisition system;
Described sending module, sets up unit for data acquisition system is sent to described relation.
Alternatively, described IT supporting network includes IP network and SAN, for IP network, and described port information
Including MAC Address, for SAN, described port information includes No. WWN;Described relation sets up unit
Set up subelement including the first relation and the second relation sets up subelement;
Described first relation sets up subelement, for judging the port of two equipment in same layer or adjacent layer
Whether MAC Address associates, if it is, the corresponding relation set up between two equipment;
Described second relation sets up subelement, for judging the port of two equipment in same layer or adjacent layer
Whether No. WWN associate, if it is, the corresponding relation set up between two equipment.
The present invention is directed to IT supporting network and generate the scheme of network topology, it is not necessary to carry out hand data collection, also without
Existing network environment and hardware configuration need to be changed;When needs generate network topology, perform the flow process of Fig. 1
Just can draw out network topology structure, so, by automatic acquisition equipment attribute, contrast network connects automatically
Information, uses the mode of automatic input to obtain network connection relation data;Realize the automatic of network topological information
Gather, automatically update, it is achieved dynamic network topology.
The present invention by minimum node granularity refinement to port, it is achieved that the network topology of port-to-port, energy
Enough effectively lifting manages fineness, and then improves port and link management maintenance efficiency.
Further, the present invention program achieves difference between leap subsystem and net and generates for IT supporting network
Full mesh topology.IT supporting network includes that IP network also includes SAN, two kinds of network environment differences, and equipment is different,
The present invention program can shield difference between two class networks and automatically generate topological network, thus provides IT supporting network
In full mesh topology, it is achieved managing visual.
Moreover, the present invention program uses and is layered with device type, with the stratification exhibition of absolute coordinate location
Existing mode, it is possible to represent the physical interconnection between equipment and logical level clearly.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all at this
Within bright spirit and principle, any modification, equivalent substitution and improvement etc. done, should be included in this
Within the scope of invention protection.
Claims (9)
1. the method generating network topology for IT supporting network, it is characterised in that the method includes:
Obtaining the attribute of each equipment in IT supporting network, described attribute includes device name and port information;
The annexation between equipment is set up by port information;
Calculate the absolute coordinate position of each layer equipment in network topology;
By annexation and absolute coordinate position, present network topology;In network topology, each layer is respectively as follows:
Ground floor be router layer, second layer network switch layer, third layer Ethernet card layer, the 4th layer for service
Device layer, layer 5 are that host bus adaptor HBA card layer, layer 6 are for storage exchanger layer, layer 7
Storage medium layer;Representing the number of plies with n, n is natural number, 1≤n≤7, and Xn is top, the n-th layer equipment upper left corner
Point initial horizontal coordinate, Y1 is the ground floor initial vertical coordinate of equipment top left corner apex, and △ Xn is n-th layer equipment
Abscissa increment, △ Y be every layer between latitude, △ Yi is line feed latitude in layer,
Ln is n-th layer device length, and Hn is n-th layer device height, and Cnm is the m-th equipment of n-th layer,
Cnm=m, m > 0;In network topology, the absolute coordinate position of each layer equipment uses following formula to be calculated:
The abscissa Xa and vertical coordinate Ya of ground floor equipment be:
Xa=X1+ (C1m-1) * △ X1+ (C1m-1) * L1;
Ya=Y1;
The abscissa Xb and vertical coordinate Yb of second layer equipment be:
Xb=X2+ (C2m-1) * △ X2+ (C2m-1) * L2;
Yb=Y1+ △ Y+H1;
The abscissa Xc and vertical coordinate Yc of third layer equipment be:
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 longitudinally enters a new line, and N is first the 4th layer of equipment
N-th Ethernet card, N is natural number;As [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;
The abscissa Xd and vertical coordinate Yd of the 4th layer of equipment be:
Xd=X4+ (C4m-1) * △ X4+ (C4m-1) * L4;
Yd=max (Yc)+△ Y+H3;
The abscissa Xe and vertical coordinate Ye of layer 5 equipment be:
Xe=X5+Kx* (M-1) * △ X5+Kx* (M-1) * L5, (Xd≤Xe≤Xd+L4);
Ye=Yd+ △ Y+H4+Ky* (△ Yi+H5);
Wherein, M is the m-th HBA card of first the 4th layer of equipment, and M is natural number;As [L5+ (M-1) *
△ X5+ (M-1) * L5]/L4 > 1 time, Kx=0, Ky=1;When [L5+ (M-1) * △ X5+ (M-1) * L5]/L4≤1
Time, Kx=1, Ky=0;
The abscissa Xf and vertical coordinate Yf of layer 6 equipment be:
Xf=X6+ (C6m-1) * △ X6+ (C6m-1) * L6;
Yf=max (Ye)+△ Y+H5;
The abscissa Xg and vertical coordinate Yg of layer 7 equipment be:
Xg=X7+ (C7m-1) * △ X7+ (C7m-1) * L7;
Yg=Yf+ △ Y+H6.
2. the method for claim 1, it is characterised in that each equipment in described acquisition IT supporting network
Attribute includes:
Log in each equipment;
Each equipment is performed attribute script, receives the character stream of each equipment feedback;
Character stream is resolved, obtains device attribute.
3. the method for claim 1, it is characterised in that each equipment in described acquisition IT supporting network
After attribute, the method includes:
By in the attributes encapsulation of each equipment of acquisition to data packaging model;
The data packaging model of same type is stored in a data acquisition system.
4. method as claimed in claim 3, it is characterised in that
When equipment is router, corresponding data acquisition system is router data set;Port information includes route
Device port name, the corresponding media access control layer MAC Address of router port and the opposite end of router port
MAC Address;
When equipment is the network switch, corresponding data acquisition system is network switch data acquisition system;Port information
Including 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 is server, corresponding data acquisition system is server set;Port information includes server end
Unique name WWN in the corresponding whole world of mouth name, server port type, the corresponding MAC Address of port and port
Number;
When equipment is storage switch, and corresponding data acquisition system is storage exchange data set;Port information bag
Include storage switch ports themselves name, storage switch ports themselves correspondence WWN and storage switch ports themselves opposite end
No. WWN.
5. method as claimed in claim 4, it is characterised in that described IT supporting network include IP network and
Storage are network SAN, described set up the annexation between equipment by port information and includes that setting up IP network sets
Annexation between Bei and the annexation set up between SAN equipment:
The described annexation set up between IP network equipment includes: judge that in same layer or adjacent layer, two set
Whether standby port mac address associates, if it is, the corresponding relation set up between two equipment;
Annexation between the described SAN of foundation equipment includes: judge two equipment in same layer or adjacent layer
Port WWN whether associate, if it is, the corresponding relation set up between two equipment.
6. the device generating network topology for IT supporting network, it is characterised in that this device includes letter
Breath acquiring unit, relation set up unit, position calculation unit and display unit;
Described information acquisition unit, for obtaining the attribute of each equipment in IT supporting network, sends described relation to
Setting up unit, described attribute includes device name and port information;
Described relation sets up unit, for being set up the annexation between equipment by port information, sends institute to
State display unit;
Described position calculation unit, for calculating the absolute coordinate position of each layer equipment in network topology, will meter
The absolute coordinate position calculated is sent to described display unit;
Described display unit, for by annexation and absolute coordinate position, presents network topology;Network
In topology, each layer is respectively as follows: ground floor is router layer, second layer network switch layer, third layer Ethernet
Card layer, the 4th layer for server layer, layer 5 be host bus adaptor HBA card layer, layer 6 be storage
Exchanger layer, layer 7 are storage medium layer;Representing the number of plies with n, n is natural number, 1≤n≤7, and Xn is
N-th layer equipment top left corner apex initial horizontal coordinate, Y1 is the ground floor initial vertical coordinate of equipment top left corner apex,
△ Xn is the abscissa increment of n-th layer equipment, △ Y be every layer between latitude, in △ Yi is layer
Line feed latitude, Ln is n-th layer device length, and Hn is n-th layer device height, and Cnm is n-th
The m-th equipment of layer, Cnm=m, m > 0;Under in network topology, the absolute coordinate position of each layer equipment uses
State formula to be calculated:
The abscissa Xa and vertical coordinate Ya of ground floor equipment be:
Xa=X1+ (C1m-1) * △ X1+ (C1m-1) * L1;
Ya=Y1;
The abscissa Xb and vertical coordinate Yb of second layer equipment be:
Xb=X2+ (C2m-1) * △ X2+ (C2m-1) * L2;
Yb=Y1+ △ Y+H1;
The abscissa Xc and vertical coordinate Yc of third layer equipment be:
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 longitudinally enters a new line, and N is first the 4th layer of equipment
N-th Ethernet card, N is natural number;As [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;
The abscissa Xd and vertical coordinate Yd of the 4th layer of equipment be:
Xd=X4+ (C4m-1) * △ X4+ (C4m-1) * L4;
Yd=max (Yc)+△ Y+H3;
The abscissa Xe and vertical coordinate Ye of layer 5 equipment be:
Xe=X5+Kx* (M-1) * △ X5+Kx* (M-1) * L5, (Xd≤Xe≤Xd+L4);
Ye=Yd+ △ Y+H4+Ky* (△ Yi+H5);
Wherein, M is the m-th HBA card of first the 4th layer of equipment, and M is natural number;As [L5+ (M-1) *
△ X5+ (M-1) * L5]/L4 > 1 time, Kx=0, Ky=1;When [L5+ (M-1) * △ X5+ (M-1) * L5]/L4≤1
Time, Kx=1, Ky=0;
The abscissa Xf and vertical coordinate Yf of layer 6 equipment be:
Xf=X6+ (C6m-1) * △ X6+ (C6m-1) * L6;
Yf=max (Ye)+△ Y+H5;
The abscissa Xg and vertical coordinate Yg of layer 7 equipment be:
Xg=X7+ (C7m-1) * △ X7+ (C7m-1) * L7;
Yg=Yf+ △ Y+H6.
7. device as claimed in claim 6, it is characterised in that described information acquisition unit includes logging in son
Unit, execution subelement and parsing subelement;
Described login subelement, is used for logging in each equipment, sends enabled instruction to described execution subelement;
Described execution subelement, is used for receiving enabled instruction, each equipment is performed attribute script, obtains each equipment
The character stream of feedback;
Described parsing subelement, for resolving character stream, obtains device attribute, sends described relation to
Set up unit.
8. device as claimed in claim 7, it is characterised in that described parsing subelement includes package module
And sending module;
Described package module, for the attributes encapsulation of each equipment that will obtain in data packaging model, by identical
The data packaging model of type stores in a data acquisition system;
Described sending module, sets up unit for data acquisition system is sent to described relation.
9. the device as described in claim 6,7 or 8, it is characterised in that described IT supporting network includes IP
Network and Storage are network SAN, for IP network, described port information includes MAC Address, for SAN,
Described port information includes No. WWN;Described relation is set up unit and is included that the first relation sets up subelement and
Two relations set up subelement;
Described first relation sets up subelement, for judging the port of two equipment in same layer or adjacent layer
Whether MAC Address associates, if it is, the corresponding relation set up between two equipment;
Described second relation sets up subelement, for judging the port of two equipment in same layer or adjacent layer
Whether No. WWN associate, if it is, the corresponding relation set up between two equipment.
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 CN103036692A (en) | 2013-04-10 |
CN103036692B true 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) |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105703923A (en) * | 2014-11-24 | 2016-06-22 | 中兴通讯股份有限公司 | Network asset information demonstration method and device |
CN105577456A (en) * | 2016-03-09 | 2016-05-11 | 浪潮通信信息系统有限公司 | Network topology configuration display method for solving single-domain and cross-domain problems |
CN105847046A (en) * | 2016-03-22 | 2016-08-10 | 浪潮通信信息系统有限公司 | Topology 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 |
CN110855457B (en) * | 2018-08-20 | 2022-10-14 | 阿里巴巴集团控股有限公司 | Method and equipment 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 |
CN112202593B (en) * | 2020-09-03 | 2024-05-31 | 深圳前海微众银行股份有限公司 | Data acquisition method, device, network management system and computer storage medium |
CN112632147B (en) * | 2020-12-11 | 2023-10-24 | 邦彦技术股份有限公司 | Data differentiation comparison method, system and storage medium |
CN113746906B (en) * | 2021-08-13 | 2023-06-02 | 苏州浪潮智能科技有限公司 | Method and system for automatically generating topological graph |
CN114374614B (en) * | 2022-03-03 | 2023-12-26 | 中国工商银行股份有限公司 | Network topology configuration method and device |
CN117354164B (en) * | 2023-12-05 | 2024-02-20 | 长沙先度科技有限公司 | Automatic generation method of Ethernet topology structure |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7738397B2 (en) * | 2004-02-19 | 2010-06-15 | Intel Corporation | Generating topology information identifying devices in a network topology |
-
2011
- 2011-09-29 CN CN201110291156.6A patent/CN103036692B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Also Published As
Publication number | Publication date |
---|---|
CN103036692A (en) | 2013-04-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103036692B (en) | The method and device of network topology is generated for IT supporting network | |
CN103607308B (en) | Virtual machine multi-network management system under cloud computing environment and method | |
CN106992938A (en) | A kind of network traffics dynamic dispatching distribution method and system | |
CN101990004B (en) | Method for distributing virtual ID and virtual IP based on home gateway of internet of things | |
CN101729353B (en) | Method, device and system of network topology layout | |
CN103024028B (en) | Virtual machine IP (Internet Protocol) address detection system and method in cloud computing | |
CN103929368B (en) | Load balance method and device for multiple service units | |
CN105847023A (en) | Service system network topology relationship obtaining method and device | |
CN101409672A (en) | Data distribution apparatus, data distribution method, and distribution control program | |
CN110505152A (en) | Route filtering method, device and electronic equipment | |
CN108777640A (en) | A kind of server detection method, device, system and storage medium | |
CN101303775A (en) | Method and system for presenting network topological structure based on GIS | |
CN102571417A (en) | Method for realizing dynamic topology | |
CN111314107A (en) | Automatic networking system and automatic networking method based on Internet service | |
CN109495383A (en) | A kind of data processing method, device, communication system and the network equipment | |
CN103138990A (en) | Virtual machine management method under cloud computing network and cloud computing network management device | |
CN107179754B (en) | A kind of multi-line system and its centralized management method | |
CN106294299A (en) | A kind of report form generation method and device | |
CN110430265A (en) | A kind of method and device obtaining server and inter-exchange corresponding relationship | |
CN106357723A (en) | Synchronous system and method for multi-cluster information caching based on cloud host | |
CN104426759B (en) | Host routes acquisition methods, apparatus and system | |
CN106878095A (en) | A kind of network collocating method and system based on scenario distributed emulation | |
CN101945110A (en) | Configuration method and device of address resolution protocol entry | |
CN103684841A (en) | Network management server and link discovery comparison method | |
CN107241251A (en) | The software implementation method of multichannel CAN message real-time reception |
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 |