NMS Topology Discovery Performance Test System and method thereof
Technical field
The present invention relates to a kind of Topology Discovery Performance Test System and method thereof of network management server of network communication field.
Background technology
The automatic topological discover of network management server (NMS:network management system) is network management basics, therefore the topology quantity of the network equipment that can find and NMS a myriad of network equipment is found after bearing capacity, be one of important indicator weighing NMS performance.
Current test NMS system automatically finds that topological quantity and performance test thereof depend on and builds huge network with the abundant network equipment.But building huge network needs more funds, and this just brings a difficult problem to performance test.
Summary of the invention
In view of an above-mentioned difficult problem, the object of the present invention is to provide a kind of can reduce build network expense while, method and the device of NMS performance can also be tested.
The object of the invention is to provide a kind of network management server Topology Discovery Performance Test System, described test macro comprises: message generating apparatus, generate and send multiple ARP(Address Resolution Protocol) request message, wherein ARP request message comprises source IP address and object IP address; The first router, receives ARP request message, and forwards the ARP request message received with the forms of broadcasting; Network segment analogue means, comprise and create multiple sub-interface, and configure for each sub-interface the IP scalar/vector that comprises network segment information, and network segment information in received ARP request message identical with the network segment information of configuration time, create and send the arp response message for described ARP request message; Network management server, the information management information bank is read from the first router, and the information in the arp response message stored based on management information bank finds the topological structure of current network, wherein, the first router receives the arp response message from network segment analogue means, and comprises the management information bank of the information stored in arp response message.
Preferably, interface generating unit is each sub-interface configuration Class C IP address.
Preferably, network segment analogue means comprises physical address generation unit, transmitting element and the second ARP table, wherein, described physical address generation unit generates physics (MAC) address corresponding to object IP address, described transmitting element sends the arp response message comprising object IP address and MAC Address, records a pair corresponding object IP address and physical address in described second ARP table.
Preferably, described network segment analogue means also comprises interface memory cell, for the IP address of the quantity and each sub-interface that store created sub-interface.The MIB of the first router possesses the first ARP table and routing table, and the object IP address of recording in the first ARP table in arp response message and physical address are to record the position of the network equipment, record the network segment information of the sub-interface in arp response message in the routing table simultaneously.
Preferably, network management server finds the network segment of current network based on the network segment information of the first routing table, finds the equipment in network simultaneously, thus find network topology structure based on the object IP address in the first ARP table and MAC Address.
Preferably, described Performance Test System also comprises display, the network segment that display network management server has been found that and the network equipment.
The present invention also provides a kind of network management server Topology Discovery performance test methods, it is characterized in that, comprises following several step: A sub-interface generation unit creates multiple sub-interface, and each sub-interface configures the IP address that comprises network segment information; The generation of B message generating apparatus is multiple to be comprised the ARP(Address Resolution Protocol) request message of source IP address and object IP address and is sent in the first router, and then the first router forwards ARP request message with the forms of broadcasting; C, when network segment analogue means receives the network segment information of the object IP address ARP request message consistent with the some sub-interface network segment information in multiple sub-interface, responds described ARP request message, thus sends arp response message; D the first router receives arp response message, and is stored in management information bank by the information in arp response message; E network management server reads the management information bank of the first routing unit, thus finds the topological structure of current network.
Preferably, in step C, network segment analogue means generates the physical address corresponding to object IP address, and send to the first router and comprise corresponding object IP address and the arp response message of physical address, the second ARP table of network segment analogue means also records a pair object IP address in correspondence with each other and physical address simultaneously.
Preferably, in step A, the amount of sub-interface of storage creation and the IP address of each sub-interface in interface memory cell, in D step, in the first ARP table of MIB, record object IP address in arp response message and MAC Address to record the position of the network equipment, in the routing table of MIB, record the network segment information of the sub-interface in arp response message simultaneously.
Preferably, in E step, network management server reads the first routing table in management information bank, thus finds the network segment of network, also read the first ARP table in management information bank, thus topology goes out the equipment in network simultaneously.
The present invention simulates the abundant network segment by network segment analogue means, and simulates the network equipment by message generating apparatus, thus carries out collection calculating without the need to the network equipment of reality, just can complete the performance test to network management server.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of NMS Topology Discovery performance testing device of the present invention.
Fig. 2 is the flow chart of the performance of test NMS.
Embodiment
First, explain equipment used in the present invention and agreement.
Network management server (NMS:Network Management System) is also known as network management system, and network management server mainly carries out monitoring, configuring and failure diagnosis for the network equipment.Major function has the monitoring of automatic topological discover, Remote configuration, performance parameter, failure diagnosis.
One of function that automatic topological discover: NMS is very important is exactly automatic topological discover, and it can allow manager understand the formation situation of whole network topology, and as router, switch, PC etc., for the follow-up management and control for individual equipment provides foundation.The advantage that Topology Discovery utilizes SNMP to carry out Topology Discovery is that discovery speed is fast, and easily realize, prerequisite is that the equipment that will be found will support snmp protocol.
Simple Network Management Protocol (Simple Network Management Protocol): Simple Network Management Protocol (SNMP), the standard managed by a group network forms, comprise an application layer protocol (application layer protocol), database model (database schema), and one group of data object.Whether this agreement can network enabled management server, have anyly cause the upper situation about paying close attention to of management in order to the monitoring equipment be connected on network.SNMP provides a network management platform (NMS) for keeper, is responsible for webmaster order and sends, data storage and data analysis etc.Institutionalized equipment then runs SNMP agency (Agent), be also called proxy server, agency realizes equipment and communicates with the SNMP of management station (NMS).
Management information bank (MIB): the basis of NMS network management system is the database containing being managed element information, each resource table that is managed is shown as an object, and MIB is the structured set of these objects.MIB is the database of a tree.Each system in network, such as work station, server, router etc., all safeguard that can reflect the information bank being managed resource state in systems in which, by reading the value of object in information bank, management station can resource in surveillance, also can by revising the resource that some value is come in control system.The type of object in information bank, meaning is defined by MIB, and management station and agent side as interface communication, can understand mutually the meaning of data by same MIB, realize management.
Below, the present invention is described in detail according to technical conceive of the present invention and accompanying drawing.
In prior art, the network equipment of the agreement of the support SNMP increased in network can only be relied on to carry out collection and to calculate, complete Topology Discovery, therefore need the input of the great network equipment.
Fig. 1 is the schematic diagram of NMS Topology Discovery performance testing device of the present invention.
Known with reference to Fig. 1, network management server Topology Discovery performance testing device of the present invention comprises message generating apparatus 100, the first router 200, network segment analogue means 300, network management server 400.
Below, the annexation between each equipment of NMS Topology Discovery Performance Test System and effect thereof are described in detail.
Message generating apparatus 100 of the present invention generates multiple ARP(address resolution protocol) request message sends simultaneously, and wherein ARP request message comprises source IP address and object IP address.Now, ARP request message is sent in the default gateway of current message generation unit.Default gateway will be possessed at this and be called the first router.
The first router 200 receives ARP request message, and forwards with the forms of broadcasting.As long as the first router possesses the equipment of routing function.Can be that there is the router of routing function, the server enabling Routing Protocol, proxy server.
Network segment analogue means 300 creates multiple sub-interface, and configures for each sub-interface the IP address that comprises network segment information.Wherein, each sub-interface is equivalent to a network segment, and its network segment information represents the concrete network segment.And network segment analogue means 300 can be undertaken by the method for establishment eth sub-interface.Such as create 255*255 sub-interface, and configure the Class C IP address of different segment respectively, then NMS can find 255*255 the network segment by reading routing table information, has explanation after a while to this.The reason arranging Class C IP address is, the figure place of the network address of Class C IP address is 24bit, therefore can simulate a large amount of network segments.
When network segment analogue means 300 receives the network segment information of the object IP address ARP request message consistent with the network segment information that oneself configures, described ARP request is responded, thus creates and send arp response message.
Described network segment analogue means 300 also comprises sub-interface generation unit 310, physical address generation unit 320, transmitting element 330 and the second ARP table 340.Wherein, described physical address generation unit 320 generates the physical address corresponding to object IP address, the arp response message comprising object IP address and physical address sends by described transmitting element 330, records a pair corresponding object IP address and physical address in described second ARP table 340.
Described network segment analogue means 300 also comprises interface memory cell 350, for storing the IP address of created amount of sub-interface and each sub-interface.
Further, the first router 200 comprises MIB 210.Therefore, when the first router 200 receives the arp response message of described transmitting element 330 transmission, the information in arp response message can be stored in management information bank 210.Here, mainly the object IP address in arp response message, physical address, network segment information are stored.
And, MIB 210 comprises the first ARP table 211 and routing table 212, and the object IP address of recording in the first ARP table 211 in arp response message and physical address are in order to record the position of the network equipment, in routing table 212, record the network segment information of the sub-interface in arp response message simultaneously.
The object IP address that first ARP table 211 stores and corresponding physical address just represent a network equipment, carrying out the physical device in analog network by this method, when reducing input, also can ensure the performance test for network management system.
Network management server 400 reads management information bank (MIB) from the first routing unit 200, thus finds the topological structure of current network.Network topology structure is a width figure in fact on its model, and router can regard the summit of figure as, and the connection state (network segment) of network is represented by the limit of figure, and other nodes are network nodes, so the discovery of network topology structure is to graph traversal process.
Graph traversal process mainly contains two kinds of methods, depth-first search (DFS) and BFS (BFS).Due to, Topology Discovery adopts the mode of layering, so the present invention adopts BFS.
Particularly, network management server 400 based on the network segment information of the first routing table 211 come topological go out the network segment of current network, simultaneously based on the object IP address in the first ARP table 212 and physical address come topological go out equipment in network.
In the present invention, Topology Discovery utilizes SNMP(Simple Network Management Protocol) because the speed of discovery block, easily realize.And the first routing unit also supports snmp protocol.
Network management server Topology Discovery Performance Test System also comprises display 500, the display network management server topology network segment (network segment information based on sub-interface) out and the network equipment.Display 500 can read the MIB 210 of the first routing unit 200, thus understands the amount of sub-interface and number of devices that create at present.Display 500 can also obtain from the interface memory cell 340 of network segment analogue means 300 sub-interface and corresponding IP address that create.
Further, the network management server practical topology network segment out (sub-interface) quantity and number of devices compare with the number of devices in the amount of sub-interface in routing table 212 and the first ARP table 211 respectively, thus understand the performance of this network management server.
Below, the method for the Topology Discovery performance of test network management server is elaborated with reference to Fig. 2.
Fig. 2 is the flow chart of the performance of test network management server.
With reference to Fig. 2, network management server Topology Discovery performance test methods has following several step.
First, in step S100, create multiple sub-interface by network segment analogue means 300, and each sub-interface configures the IP address that comprises network segment information.Preferably, to sub-interface configuration Class C IP address.
Secondly, in step S200, generated by message generating apparatus 100 and multiplely comprise the ARP request message of source IP address and object IP address and be sent in the first router 200, then the first router forwards ARP request message with the forms of broadcasting.Order for step S100 and S200 does not have strict requirement, carries out passable simultaneously yet.
In step S300, if when network segment analogue means 300 receives the network segment information of the object IP address ARP request message consistent with the network segment information that oneself configures, respond described ARP request message, thus send arp response message.
In step S300, network segment analogue means 300 generates the physical address corresponding to object IP address, and send to the first router 200 and comprise corresponding object IP address and the arp response message of physical address, the second ARP table 340 of network segment analogue means 300 also records a pair object IP address in correspondence with each other and physical address simultaneously.
In step S400, receive by the first router 200 the arp response message that network segment analogue means 300 feeds back, and the information in arp response message is stored in management information bank.
In step S500, network management server 400 reads the management information bank (MIB) of the first router 200, thus finds the topological structure of current network.Particularly, network management server finds the network segment of current network based on the network segment information of the first routing table, finds the equipment in network simultaneously, thus find network topology structure based on the object IP address in the first ARP table and MAC Address.Wherein, the network equipment of SNMP is supported during the network equipment.
The present invention, without the need to relying on the network equipment of the reality in network, gets final product the performance of test network management server.
The invention is not restricted to above-described embodiment, without departing from the present invention, can various changes and modifications be carried out.