A kind of method and system of fast creation network topology
Technical field
The network topology that the present invention relates in the network communication field creates, particularly a kind of method of fast creation network topology.
Background technology
In present most of network management systems, the automatic discoveries of adopting based on physical network on topology establishment mode generate the mode of topology automatically, and it is user's automatic generating network topology that this kind mode is convenient to, also timely discovering network change in topology.
In addition, in a part of network management system, also there is the establishment mode based on the User Defined topology, the user can be according to the real network topology situation, drawing out needs outline equipment and connection, then binding respective physical equipment is connected with connection by the system's equipment in the User Defined topology is monitored and reported to the police processing.
But from user's use angle, all there is associated disadvantages in above two kinds of topological establishment modes: 1, system generates topology automatically, often can not really reflect actual network topology form, can not form the topological view of specialty, more be not easy to the user and pay close attention to network emphasis equipment and be connected with the network emphasis, little to the real value that the user brings; 2, User Defined topology establishment mode then since the initial stage user to create topological workload too large, can not get extensive employing.
Summary of the invention
Technical problem to be solved by this invention is: propose the method that a kind of combination generates the fast creation network topology of topology, User Defined topology advantage automatically.
The present invention solves the problems of the technologies described above the scheme that adopts: a kind of method of fast creation network topology comprises step:
A. a certain topological node of user selection, system starts topological automatic generation function;
B. system is according to the IP address information of described topological node, and the two-layer equipment that discovery and described topological node associate device are direct-connected also generates two layers of link information;
C. system reads the direct-connected routing iinformation of described topological node associate device, and the direct-connected three-layer equipment of discovery and described topological node associate device reaches and generate three layers of link information;
D. system adds the topological node corresponding with the direct-connected two-layer equipment of described topological node associate device and three-layer equipment and generates link information in network topology;
E. the user carries out edit operation to the topological node that adds;
F. repeating step a-e is until finish the as required generation of whole network topology.
Further, among the step a, the concrete mode of a certain topological node of user selection is: the user is under the topology editor pattern, select a topological node that has been tied to real equipment IP address, described real equipment is the associate device of described topological node, and the IP address of described topological node is the IP address of described topological node associate device.
Further, among the step b, system is according to the IP address information of described topological node, uses Link Layer Discovery Protocol to carry out double layer network and finds, to find with the direct-connected two-layer equipment of described topological node associate device and to generate two layers of link information.
Further, the concrete methods of realizing of step c is:
System is according to the IP address information of described topoligical node, read the direct-connected routing iinformation of described topological node, find out the direct-connected network segment of each interface of described topological node associate device, if only there are two equipment in certain network segment, then judge as these two equipment and directly link to each other, be that another equipment is the three-layer equipment direct-connected with described topological node associate device, and generate three layers of link information.
Further, in the steps d, also comprise: the topological node that newly adds is tied to the direct-connected real equipment of described topological node associate device.
Further, among the step e, the user carries out edit operation to the topological node that adds and comprises: topoligical node or topology connection are carried out name modifications and/or position editor and/or color editor and/or deletion.
Another object of the present invention is, a kind of system of fast creation network topology is provided, and comprising:
Node is selected module, is used for the topological node that user selection creates network topology, and enables topological automatically-generating module behind the user selection topological node, starts topological automatic generation function;
The topology automatically-generating module is used for the IP address information according to described topological node, and the two-layer equipment that discovery and described topological node associate device are direct-connected also generates two layers of link information; And read the direct-connected routing iinformation of described topological node associate device, find with the direct-connected three-layer equipment of described topological node associate device and and generate three layers of link information; In network topology, add the topological node corresponding with the direct-connected two-layer equipment of described topological node associate device and three-layer equipment and generate link information;
The topology editor module is used for the user network topology of selecting to create is carried out edit operation.
Further, described topological automatically-generating module also is used for using Link Layer Discovery Protocol to carry out the double layer network discovery, according to opposite equip. management address entity list and opposite end entity list, to find with the direct-connected two-layer equipment of described topological node associate device and to generate two layers of link information; And according to the IP address information of described topoligical node, read the direct-connected routing iinformation of described topological node, find out the direct-connected network segment of each interface of described topological node associate device, if only there are two equipment in certain network segment, then judge as these two equipment and directly link to each other, be that another equipment is the three-layer equipment direct-connected with described topological node associate device, and generate three layers of link information.
Further, described topological automatically-generating module also is tied to the direct-connected real equipment of described topological node associate device for the topological node that will newly add.
Further, described topology editor module is used for the user is carried out name modifications and/or position editor and/or color editor and/or deletion action to network topology topological node or the topology connection of selecting establishment.
The invention has the beneficial effects as follows: merge topology and automatically generate and self-defined generation technique, when guaranteeing that network topology generates fast, also be convenient to the user and as required topology carried out associative operation, be conducive to the focal point network equipment and emphasis network connection.
Description of drawings
Fig. 1 is the method flow diagram of fast creation network topology of the present invention.
Fig. 2 is that fast creation network of the present invention is opened up the structured flowchart of system.
Embodiment
Automatically generate topological mode for employing system in the conventional art, can not really reflect actual network topology form or adopt self-defined topological establishment mode then since the initial stage user to create topological workload too large, can not get the extensively deficiency of employing, the invention discloses the method that a kind of combination generates the fast creation network topology of topology, User Defined topology advantage automatically.
Referring to Fig. 1, said method comprising the steps of:
S210. a certain topological node of user selection is enabled topological automatic generation function;
S220. system is according to the IP address information of described topological node, and the two-layer equipment that discovery and described topological node associate device are direct-connected also generates two layers of link information;
S230. system reads the direct-connected routing iinformation of described topological node, and the three-layer equipment that discovery and described topological node associate device are direct-connected also generates three layers of link information;
S240. system adds the topological node corresponding with the direct-connected two-layer equipment of described topological node associate device and three-layer equipment and generates link information in network topology;
S250. the user edits the topological node that adds;
S260. repeat above-mentioned steps, until finish the as required generation of whole network topology.
At step S210, the user is under the topology editor pattern, select a topological node that has been tied to real equipment IP address, enable topological automatic generation function, described real equipment is the associate device of described topological node, and the IP address of described topological node is the IP address of described topological node associate device.
At step S220, system uses Link Layer Discovery Protocol (LLDP) to carry out double layer network and finds according to the IP address of described topoligical node associate device, reads the LLDP mib information of described equipment, to analyze and the direct-connected equipment of equipment and port information.
According to the opposite equip. management address entity list among the LLDP MIB, carry out double layer network and find opposite equip. and preservation.
According to the opposite end entity list among the LLDP MIB, analyze the local port, the remote port information that are connected with the opposite end, form the link information that directly links to each other with this equipment.
At step S230, system is according to the IP address of described topoligical node associate device, read the direct-connected routing iinformation of described topological node associate device, find out the direct-connected network segment of described each interface of topological node associate device, if only there are two equipment in the described network segment, then think these two equipment be three layers direct-connected, and generation and the direct-connected three-layer equipment of described topological node associate device and interface message.
At step S240, system according to find with described topoligical node associate device direct-connected device and link information, in topology, add the topoligical node direct-connected with described topoligical node associate device, and bind true opposite equip. to newly-generated each topoligical node, generate simultaneously the annexation between new topoligical node and the original described topoligical node, form new topological view.
At step S250, topoligical node, topology to automatic interpolation connect, the user can carry out name modifications to topoligical node, topology connection, the position editor, the edit operations such as color editor, can delete the equipment that described topological view does not need to pay close attention to simultaneously, finish and described topoligical node associate device, need the quick generation of the direct-connected topology of concern.
At step S260, repeat the aforesaid operations process, centered by a topoligical node, to whole topological network circumferential expansion, thereby form fast the practical topology that whole user is concerned about, reach the perfect combination of automatic generating network and User Defined topology.
Referring to Fig. 2, be the structured flowchart of the system of fast creation network topology of the present invention, this system realizes the method for above-mentioned fast creation network topology, comprising:
Node is selected module 201, is used for the topological node that user selection creates network topology, and enables topological automatically-generating module behind the user selection topological node, starts topological automatic generation function;
Topology automatically-generating module 202 is used for the IP address information according to described topological node, and the two-layer equipment that discovery and described topological node associate device are direct-connected also generates two layers of link information; And read the direct-connected routing iinformation of described topological node associate device, find with the direct-connected three-layer equipment of described topological node associate device and and generate three layers of link information; In network topology, add the topological node corresponding with the direct-connected two-layer equipment of described topological node associate device and three-layer equipment and generate link information;
Topology editor module 203 is used for the user network topology of selecting to create is carried out edit operation.
Topological automatically-generating module 202 among the present invention also is used for using Link Layer Discovery Protocol to carry out the double layer network discovery, according to opposite equip. management address entity list and opposite end entity list, to find with the direct-connected two-layer equipment of described topological node associate device and to generate two layers of link information; And according to the IP address information of described topoligical node, read the direct-connected routing iinformation of described topological node, find out the direct-connected network segment of each interface of described topological node associate device, if only there are two equipment in certain network segment, then judge as these two equipment and directly link to each other, be that another equipment is the three-layer equipment direct-connected with described topological node associate device, and generate three layers of link information.The topological node that described topological automatically-generating module 202 also is used for newly adding is tied to the direct-connected real equipment of described topological node associate device.Described topology editor module 203 is used for the user is carried out name modifications and/or position editor and/or color editor and/or deletion action to network topology topological node or the topology connection of selecting establishment.
The system of fast creation network topology of the present invention carries out topology around the topological node of user selection and sets up and represent, the raising user operation ease.