CN103036725A - Network administration device and method for discovery of network topology - Google Patents

Network administration device and method for discovery of network topology Download PDF

Info

Publication number
CN103036725A
CN103036725A CN2012105464643A CN201210546464A CN103036725A CN 103036725 A CN103036725 A CN 103036725A CN 2012105464643 A CN2012105464643 A CN 2012105464643A CN 201210546464 A CN201210546464 A CN 201210546464A CN 103036725 A CN103036725 A CN 103036725A
Authority
CN
China
Prior art keywords
equipment
network topology
subnet
link
management device
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
CN2012105464643A
Other languages
Chinese (zh)
Other versions
CN103036725B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210546464.3A priority Critical patent/CN103036725B/en
Publication of CN103036725A publication Critical patent/CN103036725A/en
Application granted granted Critical
Publication of CN103036725B publication Critical patent/CN103036725B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention provides a network administration device and a method for discovery of network topology. The method is capable of achieving that discovery of network topology can be carried out on networks with various types of devices mixed. The method comprises the steps of confirming a root device in a subnet by the network administration device, obtaining a media access control (MAC) forwarding table and /or an address resolution protocol (ARP) table of each device in the subnet, according to the MAC forwarding table and /or the (ARP) table of each device in the subnet, discovering network topology devices from a first layer to an N layer of the subnet, discovering a network topology device of an M-1 layer which is directly connected with a network topology device of an M layer, and obtaining a network topology structure of the subnet according to the confirmed network topology devices of the N layers and the network topology device of the M-1 layer which is directly connected with the network topology device of the M layer. The network administration device and the method for discovery of the network topology relate to the field of computer networks.

Description

A kind of method of discovering network topology and network management device
Technical field
The present invention relates to computer network field, relate in particular to a kind of method and network management device of discovering network topology.
Background technology
Network topology (English is: network topology) refers in the communication network, and the annexation between each network node, these network nodes comprise router, switch, bridge, hub (hub) and end host etc.
(English is: what network topology discovery) refer to the acquiring and maintaining network node exists information and the connection relation information between them to discovering network topology, and provide on this basis the diagram of the connection status of whole network, help the network management personnel that whole topology of networks is had on the whole understanding and understanding, and effectively help the keeper to carry out network failure location and performance evaluation.
In the prior art, mainly contain and utilize Simple Network Management Protocol (simple networkmanagement protocol, the abbreviation snmp protocol) obtains forwarding information base (forward information base the is called for short FIB) routing table of network node and the relevant information of neighbor device and carry out the discovery of network topology.And the down hop (nexthop) in the FIB routing table of each network node has only recorded the information of optimum routing device, causes like this network management device can't find complete network topology.There is a large amount of two-layer equipments in the existing network in addition, such as switch, because two-layer equipment does not use route to transmit, but adopt medium access control (Media Access Control, abbreviation MAC) transmit the address, and this is so that network management device only obtains the FIB routing table of network node by snmp protocol and the relevant information of neighbor device can't be found two-layer equipment.
Also proposed Link Layer Discovery Protocol (Link Layer DiscoveryProtocol is called for short LLDP) in the prior art and carried out link discovery, but because LLDP only supports the discovery to the equipment of link layer work, can't find for three-layer equipment.
Summary of the invention
Embodiments of the invention provide a kind of method and network management device of discovering network topology, can realize the network that dissimilar equipment mix is carried out discovering network topology.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, the embodiment of the invention provide a kind of method of discovering network topology, and the method comprises:
Network management device is determined the root device in the subnet;
The MAC that described network management device obtains each equipment in the described subnet transmits and/or the ARP table;
Described network management device is transmitted and/or the ARP table according to the MAC of each equipment in the described subnet, find ground floor network topology equipment to the N layer network topology equipment of described subnet, N is the network topology number of plies of described subnet, wherein M layer network topology equipment is the MAC Address of its MAC Address and described root device, be stored in the equipment of the same interface of the same equipment in M+1 layer network topology equipment to the N layer network topology equipment in the described subnet, described M gets 1 to N;
Described network management device is transmitted and/or the ARP table according to the MAC of each equipment in the described subnet, find the M-1 layer network topology equipment direct-connected with M layer network topology equipment, the direct-connected M-1 layer network topology equipment of described and M layer network topology equipment is: distinct interface stores respectively the equipment of the MAC Address of the MAC Address of described root device and described M layer network topology equipment;
Described network management device obtains the network topology structure of described subnet according to the N layer network topology equipment of determining and M-1 layer network topology equipment described and that M layer network topology equipment is direct-connected.
In the possible implementation of the first, according to first aspect, the MAC that described network management device obtains each equipment in the described subnet transmit and/or the ARP table before, the method also comprises:
Described network management device indicates described root device to trigger miscellaneous equipment in the described subnet, so that the MAC separately of the renewal of the equipment in the described subnet transmits and/or the ARP table.
In the possible implementation of the second, the implementation possible according to the first, described network management device indicates described root device to trigger that miscellaneous equipment is specially in the described subnet:
Described network management device indicates described root device miscellaneous equipment in the described subnet to send the Ping order.
In the third possible implementation, in conjunction with first aspect or the first to the possible implementation of the second, described network management device is according to the N layer network topology equipment of determining and M-1 layer network topology equipment described and that M layer network topology equipment is direct-connected, obtain after the network topology structure of described subnet, the method also comprises:
If there is the second network topology equipment in the described subnet, then create virtual concentrator hub equipment, there are physical connection in the same interface of described the second network topology equipment and the interface of plural equipment;
Described virtual hub equipment is defined as next layer network topology equipment of described second network topology equipment, link to each other with described second network topology equipment, and exist two above equipment of physical connection to link to each other with interface with the topological equipment of described second network respectively described virtual hub equipment.
In the 4th kind of possible implementation, to the third possible implementation, described network management device determines that the root device in the subnet specifically comprises in conjunction with first aspect or the first:
Described network management device successively each equipment in the subnet sends telnet test;
Until with described network management device telnet successful connection, then the equipment with described and described network management device telnet successful connection is defined as root device;
If described network management device be connected all devices telnet in the subnet and connect unsuccessfully, then the arbitrary equipment in the described subnet is defined as root device; Or
Described network management device determines that the root device in the subnet specifically comprises:
Described network management device is defined as root device with the arbitrary equipment in the described subnet.
In the 5th kind of possible implementation, in first aspect or four kinds of possible implementations of the first to the, before network management device was determined root device in the subnet, the method also comprised:
Described network management device determines to carry out the equipment of discovering network topology, and the described equipment that will carry out discovering network topology is at least one equipment of described network management device management;
Described network management device is determined the described subnet that will carry out discovering network topology according to the interface that will carry out the equipment of discovering network topology.
In the 6th kind of possible implementation, in first aspect or five kinds of possible implementations of the first to the, the method also comprises:
Travel through all links of described network management device storage, the first link, the second link and the 3rd link are defined as the described link that will carry out the subnet of discovering network topology;
Wherein, the IP address that described the first link is arbitrary equipment and mask calculate the subnet mask that the obtains link consistent with the described subnet that will carry out discovering network topology, described the second link is on any two continuous equipment the link that belongs to same subnet to be arranged, described the 3rd link is any two continuous equipment, and wherein the MAC Address of the interface of the equipment of the IP address of the equipment of an end and opposite end belongs to the link of same subnet;
Before the described network topology structure of obtaining described subnet, the method also comprises:
N layer network topology equipment and the M-1 layer network topology equipment described and that M layer network topology equipment direct-connected definite according to described network management device, and described the first definite link, the second link and the 3rd link are determined the link that described subnet comprises;
The described network topology structure of obtaining described subnet specifically comprises:
According to the link that the described subnet of determining comprises, obtain the network topology structure of described subnet.
In the 7th kind of possible implementation, in first aspect or six kinds of possible implementations of the first to the, include at least a kind of in the following type equipment in the described subnet:
Router, switch, fire compartment wall, server, hub and personal computer.
Second aspect, the embodiment of the invention provide a kind of network management device, and described equipment comprises:
The first determining unit is for the root device of determining subnet;
The first acquiring unit is transmitted and/or the ARP table for the MAC that obtains described each equipment of subnet;
First finds the unit, be used for transmitting and/or the ARP table according to the MAC of described each equipment of subnet, find ground floor network topology equipment to the N layer network topology equipment of described subnet, N is the network topology number of plies of described subnet, wherein M layer network topology equipment is the MAC Address of its MAC Address and described root device, be stored in the equipment of the distinct interface of the same equipment in M+1 layer network topology equipment to the N layer network topology equipment in the described subnet, described M gets 1 to N;
Second finds the unit, be used for transmitting and/or the ARP table according to the MAC of described each equipment of subnet, find the M-1 layer network topology equipment direct-connected with M layer network topology equipment, the direct-connected M-1 layer network topology equipment of described and M layer network topology equipment is: distinct interface stores respectively the equipment of the MAC Address of the MAC Address of described root device and described M layer network topology equipment;
Second acquisition unit is used for obtaining the network topology structure of described subnet according to the N layer network topology equipment of determining and M-1 layer network topology equipment described and that M layer network topology equipment is direct-connected.
In the possible implementation of the first, in conjunction with second aspect, described equipment also comprises:
Indicating member is used to indicate described root device and triggers miscellaneous equipment in the described subnet, so that the MAC separately of the renewal of the equipment in the described subnet transmits and/or the ARP table.
In the possible implementation of the second, the implementation possible according to the first, described indicating member specifically is used to indicate described root device miscellaneous equipment in the described subnet and sends the Ping order.
In the third possible implementation, to the possible implementation of the second, described equipment also comprises in conjunction with second aspect or the first:
There is the second network topology equipment in creating unit if be used for described subnet, then creates virtual concentrator hub equipment, and there are physical connection in the same interface of described the second network topology equipment and the interface of plural equipment;
The second determining unit, be used for will described virtual hub equipment being defined as next layer network topology equipment of described second network topology equipment, exist two above equipment of physical connection to link to each other with interface with the topological equipment of described second network respectively described virtual hub equipment.
In the 4th kind of possible implementation, to the third possible implementation, described the first determining unit specifically comprises in conjunction with second aspect or the first:
Sending module is used for successively sending telnet test to each equipment of described subnet;
Determination module is used for:
If find and the equipment of described network management device telnet successful connection, will be defined as root device with the equipment of described network management device telnet successful connection;
If described network management device be connected all devices telnet in the subnet and connect unsuccessfully, then the arbitrary equipment in the described subnet is defined as root device; Or
Described the first determining unit, concrete being used for is defined as root device with arbitrary equipment of described subnet.
In the 5th kind of possible implementation, in conjunction with second aspect or four kinds of possible implementations of the first to the, this equipment also comprises:
The 3rd determining unit is used for definite equipment that will carry out discovering network topology, and the described equipment that will carry out discovering network topology is at least one equipment of described network management device management;
The 4th determining unit is used for determining the described subnet that will carry out discovering network topology according to the interface that will carry out the equipment of discovering network topology.
In the 6th kind of possible implementation, in conjunction with second aspect or five kinds of possible implementations of the first to the, this equipment also comprises:
The 5th determining unit is used for traveling through all links that described network management device is stored, and the first link, the second link and the 3rd link are defined as the described link that will carry out the subnet of discovering network topology;
Wherein, the IP address that described the first link is arbitrary equipment and mask calculate the subnet mask that the obtains link consistent with the described subnet that will carry out discovering network topology, described the second link is on any two continuous equipment the link that belongs to same subnet to be arranged, described the 3rd link is any two continuous equipment, and wherein the MAC Address of the interface of the equipment of the IP address of the equipment of an end and opposite end belongs to the link of same subnet;
Updating block, be used for N layer network topology equipment and the M-1 layer network topology equipment described and that M layer network topology equipment direct-connected definite according to described network management device, and described the first definite link, the second link and the 3rd link are determined the link that described subnet comprises;
Second acquisition unit specifically is used for the link that definite described subnet comprises, obtains the network topology structure of described subnet.
In the 7th kind of possible implementation, in second aspect or six kinds of possible implementations of the first to the, include at least a kind of in the following type equipment in the described subnet:
Router, switch, fire compartment wall, server, hub and personal computer.
The method of the discovering network topology that the embodiment of the invention provides and network management device, this network management device can be transmitted according to the MAC of each equipment in the described subnet that obtains and/or the ARP table, MAC Address by its MAC Address and described root device, whether be not stored in the distinct interface of the same equipment except root device to the M-1 layer network topology equipment in the described subnet, determine whether this is M layer network topology equipment, and then whether store respectively the MAC Address of the MAC Address of described root device and described M+1 layer network topology equipment by distinct interface, determine whether for M+1 layer network topology equipment physical connection with the direct-connected M-1 layer network topology equipment of M layer network topology equipment, so according to the N layer network topology equipment of determining and M-1 layer network topology equipment described and that M layer network topology equipment is direct-connected, can obtain the network topology structure of described subnet.Because in the method, do not distinguish device type, such as terminals such as two-layer equipment, three-layer equipment or PC, only be that MAC according to all devices in the subnet transmits and/or the ARP table obtains the network topology structure of this subnet, therefore adopt the method can realize the network that dissimilar equipment mix is carried out discovering network topology.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 provides a kind of method flow schematic diagram of discovering network topology for the embodiment of the invention;
Fig. 2 provides the method flow schematic diagram of another kind of discovering network topology for the embodiment of the invention;
The method flow schematic diagram of the link subnet division that Fig. 3 provides for the embodiment of the invention;
The structured flowchart of a kind of network management device that Fig. 4 provides for the embodiment of the invention;
The structured flowchart of the another kind of network management device that Fig. 5 provides for the embodiment of the invention;
The structured flowchart of another network management device that Fig. 6 provides for the embodiment of the invention;
A kind of network topology structure schematic diagram that Fig. 7 provides for the embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Embodiment one,
The embodiment of the invention provides a kind of method of discovering network topology, and as shown in Figure 1, the method comprises:
101, network management device is determined the root device in the subnet.
Need to prove that the described subnet of the embodiment of the invention only is confined to the network of tree.For the network that has loop, because loop network can cause broadcast storm, whole LAN environment is unavailable, can't correctly carry out link discovery, so the embodiment of the invention does not consider to exist the situation of the network of loop.Certainly for the network that has link redundancy, this network management device can start Spanning-Tree Protocol (Spanning Tree Protocol is called for short the STP agreement) and carry out cutting, avoids forming loop.
In an embodiment, before this network management device is determined the root device of subnet, this network management device judges that at first whether the number of devices that comprises in this subnet is more than or equal to 2, if less than 2, illustrate then and may only have a link in this subnet that then network management device finishes the discovery to the network topology structure of this subnet.If be not less than 2, then network management device is determined the root device of this subnet.
The subnet that the embodiment of the invention is described is the network of tree, and then network management device can be defined as the arbitrary equipment in this subnet the root device of this subnet net topological structure.
Described network management device determine in the subnet root device can also for:
Described network management device successively each equipment in the described subnet sends telnet test;
When the arbitrary equipment in the subnet and described network management device telnet successful connection, then the equipment with described and described network management device telnet successful connection is defined as root device;
If described network management device be connected all devices telnet in the subnet and connect unsuccessfully, then the arbitrary equipment in the described subnet is defined as root device.
Further need to prove, in embodiments of the present invention, can comprise the equipment of at least a type of two-layer equipment, three-layer equipment and other type in this subnet.Certainly, the equipment that comprises in the described subnet may be not limited to this, and the embodiment of the invention is not done concrete restriction to this.
Two-layer equipment refers to only be operated in the equipment of data link layer, adopts MAC Address to carry out addressing.Three-layer equipment refers to the equipment of supported data link layer and network layer, and three-layer equipment adopts MAC Address to carry out addressing in same subnet, and three-layer equipment adopts IP address routing addressing when striding subnet.
For instance, switch is two-layer equipment, only is operated in data link layer; Router, hub, fire compartment wall are three-layer equipment.The equipment of other types such as server, individual calculus PC (Personal Computer).
102, the described network management device MAC that obtains each equipment in the described subnet transmits and/or the ARP table.
Usually, two-layer equipment adopts MAC Address to transmit such as switch, namely only stores MAC in the switch and transmits, and MAC transmits the MAC Address that stores with the interface of this two-layer equipment physical connection.And three-layer equipment, adopt route to transmit such as router, then store address resolution protocol (Address Resolution Protocol in the router, be called for short ARP) table, store in the ARP table and the IP address of the interface of this three-layer equipment physical connection and the correspondence relationship information of MAC Address.
Need to prove that part two-layer equipment of the prior art and three-layer equipment also may be supported store M AC to transmit with ARP to show simultaneously.
In the present embodiment, described network management device can obtain in the following information any by snmp protocol from all devices of subnet: MAC transmits, ARP shows, MAC transmits transmits with ARP.
For PC and the such terminal of server, owing to do not support snmp protocol, so network management device can't obtain the MAC Address of PC and server, then network management device can obtain the IP address of PC or server and the mapping relations of MAC Address from the ARP table of root device, and then obtains MAC Address.Because root device can order the MAC that obtains all devices in this subnet to transmit and/or the ARP table by Ping.
Certainly, described network management device can also pass through other agreement or mode, for example the mode of Telnet echo is obtained in the following information any from all devices of subnet: MAC transmits, ARP shows, MAC transmits transmits with ARP, and the embodiment of the invention is not described specifically this.
Optionally, the MAC that described network management device obtains each equipment in the described subnet transmit and/or the ARP table before, described network management device can also indicate described root device to trigger miscellaneous equipment in the described subnet, so that the MAC separately of the renewal of the equipment in the described subnet transmits and/or the ARP table.
The MAC that like this, can guarantee each equipment that described network management device obtains transmit and/or ARP table complete sum accurate.
In the present embodiment, described network management device indicates described root device miscellaneous equipment in the described subnet to send the Ping order, comes so that the MAC separately of the renewal of the equipment in the described subnet transmits and/or the ARP table with this.
103, described network management device is transmitted and/or the ARP table according to the MAC of each equipment in the described subnet, finds ground floor to the N layer network topology equipment of described subnet.
Wherein, N is the network topology number of plies of described subnet, wherein M layer network topology equipment is the MAC Address of its MAC Address and described root device, be stored in the equipment of the same interface of the same equipment in M+1 layer network topology equipment to the N layer network topology equipment in the described subnet, described M gets 1 to N.
Why described M layer network topology equipment is the MAC Address of its MAC Address and described root device, be stored in the equipment of the same interface of the same equipment in M+1 layer network topology equipment to the N layer network topology equipment in the described subnet, because common M-1 layer equipment stores the MAC Address of root device near the interface of root device, and M-1 layer equipment need to be to M layer device forwards data, then M-1 layer equipment stores the MAC Address of M layer equipment near the interface of M layer equipment, and the network topology equipment of M+1 layer to the N layer, on the close interface of root device, must store the MAC Address of root device, certainly on the close interface of root device, may store the network topology equipment of M layer, these actual conditions according to network are decided, so except root device to the M-1 layer network topology equipment, the network topology equipment of other layer just can not stored respectively the MAC Address of M layer and the MAC Address of described root device on distinct interface.
Need to prove that in this enforcement, suppose that this subnet has comprised N layer network topology equipment, arbitrary layer network topology equipment can be used as M layer network topology equipment and describes, wherein M gets 1 to N, and M is integer.
104, described network management device is transmitted and/or the ARP table according to the MAC of each equipment in the described subnet, finds the M-1 layer network topology equipment direct-connected with M layer network topology equipment.
In this enforcement, the direct-connected M-1 layer network topology equipment of described and M layer network topology equipment is: distinct interface stores respectively the equipment of the MAC Address of the MAC Address of described root device and described M+1 layer network topology equipment.
By the description in step 104, when determining with the direct-connected M-1 layer network topology equipment of M layer network topology equipment, because the M-1 layer network device is in the MAC Address that stores described root device near root interface, store the MAC Address of M-1 layer network topology equipment at the interface near M layer network topology equipment, the direct-connected M-1 layer network topology equipment of described and M layer network topology equipment stores respectively the equipment of the MAC Address of the MAC Address of described root device and described M layer network topology equipment on distinct interface.
After determining the network topology equipment of every one deck, need to determine the equipment with each layer network topology equipment physical connection, namely with the direct-connected M-1 layer network topology equipment of M layer network topology equipment, just can obtain the network topology structure of whole subnet.
Described network management device can by recursive fashion find in this subnet with each layer network topology equipment physical connection with the direct-connected M-1 layer network topology equipment of M layer network topology equipment.
105, described network management device obtains the network topology structure of described subnet according to the N layer network topology equipment of determining and M-1 layer network topology equipment described and that M layer network topology equipment is direct-connected.
Optionally, after described network management device obtains the network topology structure of described subnet, if there is the second network topology equipment in the described subnet, can also create virtual hub equipment, wherein, there are physical connection in the same interface of described the second network topology equipment and the interface of plural equipment.
Then, described management equipment can be defined as described virtual hub equipment next layer network topology equipment of described second network topology equipment, link to each other with described second network topology equipment, and exist two above equipment of physical connection to link to each other with interface with described second network topology equipment respectively the described virtual hub equipment, and upgrade the network topology structure of described subnet with this.
The method of the discovering network topology that the embodiment of the invention provides, this network management device can be transmitted according to the MAC of each equipment in the described subnet that obtains and/or the ARP table, MAC Address by its MAC Address and described root device, whether be not stored in the distinct interface of the same equipment except root device to the M-1 layer network topology equipment in the described subnet, determine whether this is M layer network topology equipment, and then whether store respectively the MAC Address of the MAC Address of described root device and described M+1 layer network topology equipment by distinct interface, determine whether for M+1 layer network topology equipment physical connection with the direct-connected M-1 layer network topology equipment of M layer network topology equipment, so according to the N layer network topology equipment of determining and M-1 layer network topology equipment described and that M layer network topology equipment is direct-connected, can obtain the network topology structure of described subnet.Because in the method, do not distinguish device type, such as terminals such as two-layer equipment, three-layer equipment or PC, only be that MAC according to all devices in the subnet transmits and/or the ARP table obtains the network topology structure of this subnet, therefore adopt the method can realize the network that dissimilar equipment mix is carried out discovering network topology.
Embodiment two,
On the basis of the method for discovering network topology that embodiment one provides, the embodiment of the invention also provides a kind of method of discovering network topology, and present embodiment is said as an example of whole local area network (LAN) example, comprise more than one subnet in this whole network, concrete, the method as shown in Figure 2, the method comprises:
201, described network management device determines to carry out the equipment of discovering network topology.
The described equipment that will carry out discovering network topology is at least one equipment of described network management device management.
In embodiments of the present invention, the method for this discovering network topology supports full dose to find and the part discovery.
Wherein, described full dose finds to refer to that this network management device finds the link of the all-ones subnet of management, and described part finds to refer to that this network management device finds the link of the subnet at parton equipment place.
Described network management device determines to carry out the equipment of discovering network topology according to actual needs.
202, described network management device is determined the described subnet that will carry out discovering network topology according to the interface message that will carry out the equipment of discovering network topology.
After described network management device determines to carry out the equipment of discovering network topology, obtain the information of the interface that this equipment comprises.
Described interface message specifically comprises at least one in the following information: IP address, mask and the MAC Address of interface.
In the present embodiment, described network management device is being determined describedly will carry out the subnet of discovering network topology the time, calculates according to IP address and the mask of the interface of each equipment in the subnet, and the interface that will belong to the consolidated network address is divided in the subnet.
At first described network management device judges whether this equipment exists IP address, mask and MAC Address.If IP address or MAC Address disappearance, then the interface of this equipment does not carry out the subnet division.If only there is the IP address in the interface of this equipment, do not get access to mask, do not support the equipment of snmp protocol such as PC etc., already present subnet mask in the IP address of the interface of this equipment and the described network management device can be carried out subnet and calculate.
Concrete, calculate according to the IP address mask of the interface of each equipment, determine the ins and outs with the subnet at this interface place, those skilled in the art understands in order to know, and therefore not to repeat here for the embodiment of the invention.
203, described network management device travels through all links of described network management device storage, and the first link, the second link and the 3rd link are defined as the described link that will carry out the subnet of discovering network topology.
Wherein, described the first link is for calculating the subnet mask that the obtains link consistent with the mask of the described subnet that will carry out discovering network topology according to the IP address of arbitrary equipment and mask, described the second link is on any two continuous equipment the interface that belongs to same subnet to be arranged, described the 3rd link is any two continuous equipment, and wherein the MAC Address of the interface of the equipment of the IP address of the equipment of an end and opposite end belongs to the link of same subnet.
204, described network management device is determined the root device in the subnet.
After described network management device is determined link that the described subnet that will carry out discovering network topology comprises, determine the root device of described subnet.
205, the described network management device MAC that obtains each equipment in the described subnet transmits and/or the ARP table.
206, described network management device is transmitted and/or the ARP table according to the MAC of each equipment in the described subnet, finds ground floor to the N layer network topology equipment of described subnet.
Wherein, N is the network topology number of plies of described subnet, wherein M layer network topology equipment is the MAC Address of its MAC Address and described root device, be stored in the equipment of the same interface of the same equipment in M+1 layer network topology equipment to the N layer network topology equipment in the described subnet, described M gets 1 to N.
207, described network management device is transmitted and/or the ARP table according to the MAC of each equipment in the described subnet, finds the M-1 layer network topology equipment direct-connected with M layer network topology equipment.
Wherein, the direct-connected M-1 layer network topology equipment of described and M layer network topology equipment is: distinct interface stores respectively the equipment of the MAC Address of the MAC Address of described root device and described M layer network topology equipment.
208, N layer network topology equipment and the M-1 layer network topology equipment described and that M layer network topology equipment is direct-connected determined according to described network management device, and described the first definite link, the second link and the 3rd link are determined the link that described subnet comprises.
Worth explanation, according to the N layer network topology equipment of determining and M-1 layer network topology equipment described and that the topological equipment of M layer network is direct-connected, determine the link that the described subnet that carries out discovering network topology comprises according to described network management device.Then the link in the link that the described subnet that carries out discovering network topology is comprised and the described link set of being determined described subnet by the first link, the second link and the 3rd link compares one by one, if the link that the described subnet that carries out discovering network topology comprises does not belong to the link in the link set of described subnet, then the link that does not belong in the link set of described subnet is added in the link set of described subnet; If belong to the link in the link set of described subnet, then this link in the link set of described subnet do not operated; If there is the 4th link in the link set of described subnet, described the 4th link is not for belonging to the link that the described subnet that carries out discovering network topology comprises, and described the 4th link is not the link of manual creation, then will delete described the 4th link from the link set of described subnet; If described the 4th link is the link of manual creation, then the link set at described subnet keeps described the 4th link.
So far, all links that comprised described subnet in the link set of described subnet.
209, the link that comprises according to the described subnet of determining obtains the network topology structure of described subnet.
The description details of concrete step 204-207 sees the explanation of embodiment one for details, and the embodiment of the invention does not repeat them here.
Certainly, if the definite subnet that need to carry out discovering network topology of described network management device is a plurality of, described network management device can carry out discovering network topology to each subnet successively, namely after finding first subnet, rebound step 204, repeated execution of steps 204-207 carries out discovering network topology to next subnet.
In the present embodiment, described network management device travels through all links of described network management device storage, the concrete implementation of link that the first link, the second link and the 3rd link are defined as the described subnet that will carry out discovering network topology specifically comprises as shown in Figure 3:
301, described network management device inquiry link.
302, an interface judging described link is three layer interfaces whether.
If then execution in step 303; If not, execution in step 306 then.
303, obtain the IP address of this interface, and judge whether described interface stores mask.
If then execution in step 304; If not, execution in step 306 then.
304, the mask by described IP address and described storage calculates corresponding subnet.
If the subnet of 305 correspondences of calculating is the subnets that need to carry out discovering network topology, described link is divided in the described subnet execution in step 317.
306, obtain interface with arbitrary opposite end of this interface physical connection.
307, judge described to end interface three layer interfaces whether.
If then execution in step 308; If not, execution in step 312 then.
308, judge described whether end interface to be stored mask.
If then execution in step 304; If not, execution in step 309 then.
309, judge it is that the interface which is held is three layer interfaces.
If the interface at top is three layer interfaces, then execution in step 317; If the interface of opposite end is three layer interfaces, then execution in step 310.
310, obtain the MAC Address of all three layer interfaces (vlanif) on the opposite equip..
311, the IP address of judging top whether have with opposite equip. on the MAC Address of all vlanif in same subnet.
If then execution in step 305; If not, execution in step 317 then.
312, judged whether that an end is hub.
If then execution in step 313; If not, execution in step 314 then.
313, obtain the subnet of described hub, and execution in step 305.
314, judge it is that the interface which is held is three layer interfaces.
If the interface at top is three layer interfaces, then execution in step 310; If the interface of opposite end is three layer interfaces, then execution in step 315.
315, obtain the MAC Address of all vlanif that top and opposite equip. comprise.
316, judge whether to have on two equipment the MAC Address of the vlanif that belongs to same subnet.
If then execution in step 305; If not, execution in step 317 then.
317, judge that described link is the last item link of storing in the described network management device.If then finish; If not, execution in step 301-317 again then.
Concrete, below the discovery procedure of whole network topology structure is described as an example of network topology structure shown in Figure 7 example.
Wherein, network management device can determine to carry out the equipment of discovering network topology from whole network topology structure, can certainly find whole network topology structure.Suppose that network management device determines that core switch is the equipment that will carry out discovering network topology.Wherein this core exchange switch interface message comprises two IP addresses, i.e. 192.168.0.2 and 10.0.0.1.And then this network management device subnet of determining to carry out discovering network topology to be respectively subnet 1 and the address field that address field is 192.168.0.0~192.168.255.255 be the subnet 2 of 10.0.0.0~10.0.255.255.
For local area network (LAN) 1, store the IP address of each equipment in the network topology structure in the network management device, thereby this network management device can adopt embodiment one or implement two step 204 to 209 described methods, obtains the network of described local area network (LAN) 1 and opens up structure.
For local area network (LAN) 2, store the IP address of each equipment in the network topology structure in the network management device, thereby this network management device can adopt embodiment one or implement two step 204 to 209 described methods, obtains the network of described local area network (LAN) 1 and opens up structure.
For the sequencing that the network topology structure of local area network (LAN) 1 and local area network (LAN) 2 is found, the embodiment of the invention is not done concrete restriction to this.
The method of the discovering network topology that the embodiment of the invention provides, this network management device can be transmitted according to the MAC of each equipment in the described subnet that obtains and/or the ARP table, MAC Address by its MAC Address and described root device, whether be not stored in the distinct interface of the same equipment except root device to the M-1 layer network topology equipment in the described subnet, determine whether this is M layer network topology equipment, and then whether store respectively the MAC Address of the MAC Address of described root device and described M+1 layer network topology equipment by distinct interface, determine whether for M+1 layer network topology equipment physical connection with the direct-connected M-1 layer network topology equipment of M layer network topology equipment, so according to the N layer network topology equipment of determining and M-1 layer network topology equipment described and that M layer network topology equipment is direct-connected, can obtain the network topology structure of described subnet.Because in the method, do not distinguish device type, such as terminals such as two-layer equipment, three-layer equipment or PC, only be that MAC according to all devices in the subnet transmits and/or the ARP table obtains the network topology structure of this subnet, therefore adopt the method can realize the network that dissimilar equipment mix is carried out discovering network topology.
Embodiment three,
The embodiment of the invention provides a kind of network management device, and as shown in Figure 4, described equipment comprises:
The first determining unit 41 is for the root device of determining subnet.
The first acquiring unit 42 is transmitted and/or the ARP table for the MAC that obtains described each equipment of subnet.
First finds unit 43, be used for transmitting and/or the ARP table according to the MAC of described each equipment of subnet, find ground floor network topology equipment to the N layer network topology equipment of described subnet, N is the network topology number of plies of described subnet, wherein M layer network topology equipment is the MAC Address of its MAC Address and described root device, be stored in the equipment of the distinct interface of the same equipment in M+1 layer network topology equipment to the N layer network topology equipment in the described subnet, described M gets 1 to N.
Second finds unit 44, be used for transmitting and/or the ARP table according to the MAC of described each equipment of subnet, find the M-1 layer network topology equipment direct-connected with M layer network topology equipment, described the first network topology equipment is: distinct interface stores respectively the equipment of the MAC Address of the MAC Address of described root device and described M layer network topology equipment.
Second acquisition unit 45 is used for obtaining the network topology structure of described subnet according to the N layer network topology equipment of determining and M-1 layer network topology equipment described and that M layer network topology equipment is direct-connected.
Optionally, as shown in Figure 5, described equipment also comprises indicating member 46.
Described indicating member 46 is used to indicate described root device and triggers miscellaneous equipment in the described subnet, so that the MAC separately of the renewal of the equipment in the described subnet transmits and/or the ARP table.
Concrete, described indicating member 46 specifically is used to indicate described root device miscellaneous equipment in the described subnet and sends the Ping order.
Optionally, as shown in Figure 5, described equipment also comprises creating unit 47 and the second determining unit 48.
There is the second network topology equipment in creating unit 47 if be used for described subnet, then creates virtual hub equipment, and there are physical connection in the same interface of described the second network topology equipment and the interface of plural equipment.
The second determining unit 48, be used for will described virtual hub equipment being defined as next layer network topology equipment of described second network topology equipment, exist two above equipment of physical connection to link to each other with interface with the topological equipment of described second network respectively described virtual hub equipment.
Optionally, as shown in Figure 5, described the first determining unit 41 specifically comprises:
Sending module 411 is used for successively sending telnet test to each equipment of described subnet.
Determination module 412 is used for:
If find and the equipment of described network management device telnet successful connection, will be defined as root device with the equipment of described network management device telnet successful connection;
If described network management device be connected all devices telnet in the subnet and connect unsuccessfully, then the arbitrary equipment in the described subnet is defined as root device.
Optionally, described the first determining unit 41, concrete being used for is defined as root device with arbitrary equipment of described subnet.
Concrete, include at least a kind of in the following type equipment in the described subnet:
Router, switch, fire compartment wall, server, hub and personal computer.
Optionally, as shown in Figure 5, this equipment also comprises:
The 3rd determining unit 49 is used for definite equipment that will carry out discovering network topology, and the described equipment that will carry out discovering network topology is at least one equipment of described network management device management.
The 4th determining unit 50 is used for determining the described subnet that will carry out discovering network topology according to the interface that will carry out the equipment of discovering network topology.
Optionally, as shown in Figure 5, this equipment also comprises:
The 5th determining unit 51 is used for traveling through all links that described network management device is stored, and the first link, the second link and the 3rd link are defined as the described link that will carry out the subnet of discovering network topology.
Wherein, the IP address that described the first link is arbitrary equipment and mask calculate the subnet mask that the obtains link consistent with the described subnet that will carry out discovering network topology, described the second link is on any two continuous equipment the link that belongs to same subnet to be arranged, described the 3rd link is any two continuous equipment, and wherein the MAC Address of the interface of the equipment of the IP address of the equipment of an end and opposite end belongs to the link of same subnet.
Updating block 52, be used for N layer network topology equipment and the M-1 layer network topology equipment described and that M layer network topology equipment direct-connected definite according to described network management device basis, and described the first definite link, the second link and the 3rd link are determined the link that described subnet comprises.
Second acquisition unit 45 specifically is used for the link that the definite described subnet of basis comprises, obtains the network topology structure of described subnet.
Concrete, described network management device carries out the process of discovering network topology, can be referring to the description of embodiment one and embodiment two, and the embodiment of the invention does not repeat them here.
The network management device that the embodiment of the invention provides, this network management device can be transmitted according to the MAC of each equipment in the described subnet that obtains and/or the ARP table, MAC Address by its MAC Address and described root device, whether be not stored in the distinct interface of the same equipment except root device to the M-1 layer network topology equipment in the described subnet, determine whether this is M layer network topology equipment, and then whether store respectively the MAC Address of the MAC Address of described root device and described M+1 layer network topology equipment by distinct interface, determine whether for M+1 layer network topology equipment physical connection with the direct-connected M-1 layer network topology equipment of M layer network topology equipment, so according to the N layer network topology equipment of determining and M-1 layer network topology equipment described and that M layer network topology equipment is direct-connected, can obtain the network topology structure of described subnet.Because in the method, do not distinguish device type, such as terminals such as two-layer equipment, three-layer equipment or PC, only be that MAC according to all devices in the subnet transmits and/or the ARP table obtains the network topology structure of this subnet, therefore adopt the method can realize the network that dissimilar equipment mix is carried out discovering network topology.
Embodiment four,
The embodiment of the invention provides a kind of network management device, and as shown in Figure 6, described equipment comprises: processor 101.
Described processor 101 is for the root device of determining subnet.
Described processor 101 is also transmitted for the MAC that obtains described each equipment of subnet and/or the ARP table.
Described processor 101, also be used for transmitting and/or the ARP table according to the MAC of described each equipment of subnet, find ground floor to the N layer network topology equipment of described subnet, N is the network topology number of plies of described subnet, wherein M layer network topology equipment is the MAC Address of its MAC Address and described root device, be stored in the equipment of the distinct interface of the same equipment in M+1 layer network topology equipment to the N layer network topology equipment in the described subnet, described M gets 1 to N.
Described processor 101, also be used for transmitting and/or the ARP table according to the MAC of described each equipment of subnet, find the M-1 layer network topology equipment direct-connected with M layer network topology equipment, the direct-connected M-1 layer network topology equipment of described and M layer network topology equipment is: distinct interface stores respectively the equipment of the MAC Address of the MAC Address of described root device and described M layer network topology equipment.
Described processor 101 also is used for obtaining the network topology structure of described subnet according to the N layer network topology equipment of determining and M-1 layer network topology equipment described and that M layer network topology equipment is direct-connected.
Optionally, described equipment also comprises transmitter 102.
Described processor 101 also is used for indication information is sent described transmitter 102, and described indication information is used to indicate described root device and triggers miscellaneous equipment in the described subnet, so that the MAC separately of the renewal of the equipment in the described subnet transmits and/or the ARP table.
Described transmitter 102 is used for receiving the indication information of described processor 101, and described indication information is sent to root device in the described subnet.
Optionally, described indication information specifically is used to indicate described root device miscellaneous equipment in the described subnet and sends the Ping order.
Optionally, there is the second network topology equipment in described processor 101 if also be used for described subnet, then creates virtual hub equipment, and there are physical connection in the same interface of described the second network topology equipment and the interface of plural equipment;
Described virtual hub equipment is defined as next layer network topology equipment of described second network topology equipment, exists two above equipment of physical connection to link to each other with interface with described second network topology equipment respectively described virtual hub equipment.
Optionally, described processor 101 determines that the root device in the subnets specifically comprises:
Described network management device traversal sends the telnet test to the equipment in the described subnet;
Until find and described network management device telnet successful connection that then the equipment with described and described network management device telnet successful connection is defined as root device;
If described network management device be connected all devices telnet in the subnet and connect unsuccessfully, then the arbitrary equipment in the described subnet is defined as root device.
Optionally, described processor 101, concrete being used for is defined as root device with arbitrary equipment of described subnet.
Concrete, include at least a kind of in the following type equipment in the described subnet:
Router, switch, fire compartment wall, server, hub and personal computer.
Optionally, described processor 101 also is used for definite equipment that will carry out discovering network topology, and the described equipment that will carry out discovering network topology is at least one equipment of described network management device management;
According to the interface that will carry out the equipment of discovering network topology, determine the described subnet that will carry out discovering network topology.
Optionally, described processor 101 also is used for traveling through all links that described network management device is stored, and the first link, the second link and the 3rd link are defined as the described link that will carry out the subnet of discovering network topology.
Wherein, the IP address that described the first link is arbitrary equipment and mask calculate the subnet mask that the obtains link consistent with the described subnet that will carry out discovering network topology, described the second link is on any two continuous equipment the link that belongs to same subnet to be arranged, described the 3rd link is any two continuous equipment, and wherein the MAC Address of the interface of the equipment of the IP address of the equipment of an end and opposite end belongs to the link of same subnet.
Described processor 101, also be used for N layer network topology equipment and the M-1 layer network topology equipment described and that M layer network topology equipment direct-connected definite according to described network management device, and described the first definite link, the second link and the 3rd link are determined the link that described subnet comprises.
Described processor 101 also is used for the link that the definite described subnet of basis comprises, obtains the network topology structure of described subnet.
Concrete, described network management device carries out the process of discovering network topology, can be referring to the description of embodiment one and embodiment two, and the embodiment of the invention does not repeat them here.
The network management device that the embodiment of the invention provides, this network management device can be transmitted according to the MAC of each equipment in the described subnet that obtains and/or the ARP table, MAC Address by its MAC Address and described root device, whether be not stored in the distinct interface of the same equipment except root device to the M-1 layer network topology equipment in the described subnet, determine whether this is M layer network topology equipment, and then whether store respectively the MAC Address of the MAC Address of described root device and described M+1 layer network topology equipment by distinct interface, determine whether for M+1 layer network topology equipment physical connection with the direct-connected M-1 layer network topology equipment of M layer network topology equipment, so according to the N layer network topology equipment of determining and M-1 layer network topology equipment described and that M layer network topology equipment is direct-connected, can obtain the network topology structure of described subnet.Because in the method, do not distinguish device type, such as terminals such as two-layer equipment, three-layer equipment or PC, only be that MAC according to all devices in the subnet transmits and/or the ARP table obtains the network topology structure of this subnet, therefore adopt the method can realize the network that dissimilar equipment mix is carried out discovering network topology.
Alternatively, above-mentioned processor 101 can be central processing unit (Central ProcessingUnit, CPU).Above-mentioned transmitter 102 can comprise the General Physics interface, and described physical interface can be ether (Ethernet) interface or asynchronous transfer mode (Asynchronous TransferMode, ATM) interface.Above-mentioned transmitter 102 and processor 101 can be integrated into one or more independently circuit or hardware, as: application-specific integrated circuit (ASIC) (Application SpecificIntegrated Circuit, ASIC).
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: the various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
The above; be the specific embodiment of the present invention only, but protection scope of the present invention is not limited to this, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.

Claims (16)

1. the method for a discovering network topology is characterized in that, the method comprises:
Network management device is determined the root device in the subnet;
The MAC that described network management device obtains each equipment in the described subnet transmits and/or the ARP table;
Described network management device is transmitted and/or the ARP table according to the MAC of each equipment in the described subnet, find ground floor to the N layer network topology equipment of described subnet, N is the network topology number of plies of described subnet, wherein M layer network topology equipment is the MAC Address of its MAC Address and described root device, be stored in the equipment of the same interface of the same equipment in M+1 layer network topology equipment to the N layer network topology equipment in the described subnet, described M gets 1 to N;
Described network management device is transmitted and/or the ARP table according to the MAC of each equipment in the described subnet, find the M-1 layer network topology equipment direct-connected with M layer network topology equipment, the direct-connected M-1 layer network topology equipment of described and M layer network topology equipment is: distinct interface stores respectively the equipment of the MAC Address of the MAC Address of described root device and described M layer network topology equipment;
Described network management device obtains the network topology structure of described subnet according to the N layer network topology equipment of determining and M-1 layer network topology equipment described and that M layer network topology equipment is direct-connected.
2. method according to claim 1 is characterized in that, the MAC that described network management device obtains each equipment in the described subnet transmit and/or the ARP table before, the method also comprises:
Described network management device indicates described root device to trigger miscellaneous equipment in the described subnet, so that the MAC separately of the renewal of the equipment in the described subnet transmits and/or the ARP table.
3. method according to claim 2 is characterized in that, described network management device indicates described root device to trigger that miscellaneous equipment is specially in the described subnet:
Described network management device indicates described root device miscellaneous equipment in the described subnet to send the Ping order.
4. each described method according to claim 1-3, it is characterized in that, described network management device is according to the N layer network topology equipment of determining and M-1 layer network topology equipment described and that M layer network topology equipment is direct-connected, obtain after the network topology structure of described subnet, the method also comprises:
If there is the second network topology equipment in the described subnet, then create virtual concentrator hub equipment, there are physical connection in the same interface of described the second network topology equipment and the interface of plural equipment;
Described virtual hub equipment is defined as next layer network topology equipment of described second network topology equipment, link to each other with described second network topology equipment, and exist two above equipment of physical connection to link to each other with interface with the topological equipment of described second network respectively described virtual hub equipment.
5. each described method is characterized in that according to claim 1-4, and described network management device determines that the root device in the subnet specifically comprises:
Described network management device successively each equipment in the described subnet sends telnet test;
Until find and described network management device telnet successful connection, then will be defined as root device with the equipment of described network management device telnet successful connection;
If described network management device be connected all devices telnet in the subnet and connect unsuccessfully, then the arbitrary equipment in the described subnet is defined as root device; Or
Described network management device determines that the root device in the subnet specifically comprises: described network management device is defined as root device with the arbitrary equipment in the described subnet.
6. each described method is characterized in that according to claim 1-5, and before network management device was determined root device in the subnet, the method also comprised:
Described network management device determines to carry out the equipment of discovering network topology, and the described equipment that will carry out discovering network topology is at least one equipment of described network management device management;
Described network management device is determined the described subnet that will carry out discovering network topology according to the interface that will carry out the equipment of discovering network topology.
7. each described method according to claim 1-6 is characterized in that the method also comprises:
Travel through all links of described network management device storage, the first link, the second link and the 3rd link are defined as the described link that will carry out the subnet of discovering network topology;
Wherein, the IP address that described the first link is arbitrary equipment and mask calculate the subnet mask that the obtains link consistent with the described subnet that will carry out discovering network topology, described the second link is on any two continuous equipment the link that belongs to same subnet to be arranged, described the 3rd link is any two continuous equipment, and wherein the MAC Address of the interface of the equipment of the IP address of the equipment of an end and opposite end belongs to the link of same subnet;
Before the described network topology structure of obtaining described subnet, the method also comprises:
N layer network topology equipment and the M-1 layer network topology equipment described and that M layer network topology equipment direct-connected definite according to described network management device, and described the first definite link, the second link and the 3rd link are determined the link that described subnet comprises;
The described network topology structure of obtaining described subnet specifically comprises:
According to the link that the described subnet of determining comprises, obtain the network topology structure of described subnet.
8. each described method is characterized in that according to claim 1-7, includes at least a kind of in the following type equipment in the described subnet:
Router, switch, fire compartment wall, server, hub and personal computer.
9. a network management device is characterized in that, described equipment comprises:
The first determining unit is for the root device of determining subnet;
The first acquiring unit is transmitted and/or the ARP table for the MAC that obtains described each equipment of subnet;
First finds the unit, be used for transmitting and/or the ARP table according to the MAC of described each equipment of subnet, find ground floor network topology equipment to the N layer network topology equipment of described subnet, N is the network topology number of plies of described subnet, wherein M layer network topology equipment is the MAC Address of its MAC Address and described root device, be stored in the equipment of the distinct interface of the same equipment in M+1 layer network topology equipment to the N layer network topology equipment in the described subnet, described M gets 1 to N;
Second finds the unit, be used for transmitting and/or the ARP table according to the MAC of described each equipment of subnet, find the M-1 layer network topology equipment direct-connected with M layer network topology equipment, the direct-connected M-1 layer network topology equipment of described and M layer network topology equipment is: distinct interface stores respectively the equipment of the MAC Address of the MAC Address of described root device and described M layer network topology equipment;
Second acquisition unit is used for obtaining the network topology structure of described subnet according to the N layer network topology equipment of determining and M-1 layer network topology equipment described and that M layer network topology equipment is direct-connected.
10. equipment according to claim 9 is characterized in that, described equipment also comprises:
Indicating member is used to indicate described root device and triggers miscellaneous equipment in the described subnet, so that the MAC separately of the renewal of the equipment in the described subnet transmits and/or the ARP table.
11. equipment according to claim 10 is characterized in that, described indicating member specifically is used to indicate described root device miscellaneous equipment in the described subnet and sends the Ping order.
12. each described equipment is characterized in that according to claim 9-11, described equipment also comprises:
There is the second network topology equipment in creating unit if be used for described subnet, then creates virtual concentrator hub equipment, and there are physical connection in the same interface of described the second network topology equipment and the interface of plural equipment;
The second determining unit, be used for will described virtual hub equipment being defined as next layer network topology equipment of described second network topology equipment, exist two above equipment of physical connection to link to each other with interface with the topological equipment of described second network respectively described virtual Hub equipment.
13. each described equipment is characterized in that according to claim 9-12, described the first determining unit specifically comprises:
Sending module is used for successively sending telnet test to each equipment of described subnet;
Determination module is used for:
If find and the equipment of described network management device telnet successful connection, will be defined as root device with the equipment of described network management device telnet successful connection;
If described network management device be connected all devices telnet in the subnet and connect unsuccessfully, then the arbitrary equipment in the described subnet is defined as root device; Or
Described the first determining unit, concrete being used for is defined as root device with arbitrary equipment of described subnet.
14. each described equipment is characterized in that according to claim 9-13, this equipment also comprises:
The 3rd determining unit is used for definite equipment that will carry out discovering network topology, and the described equipment that will carry out discovering network topology is at least one equipment of described network management device management;
The 4th determining unit is used for determining the described subnet that will carry out discovering network topology according to the interface that will carry out the equipment of discovering network topology.
15. each described equipment is characterized in that according to claim 9-14, this equipment also comprises:
The 5th determining unit is used for traveling through all links that described network management device is stored, and the first link, the second link and the 3rd link are defined as the described link that will carry out the subnet of discovering network topology;
Wherein, the IP address that described the first link is arbitrary equipment and mask calculate the subnet mask that the obtains link consistent with the described subnet that will carry out discovering network topology, described the second link is on any two continuous equipment the link that belongs to same subnet to be arranged, described the 3rd link is any two continuous equipment, and wherein the MAC Address of the interface of the equipment of the IP address of the equipment of an end and opposite end belongs to the link of same subnet;
Updating block, be used for N layer network topology equipment and the M-1 layer network topology equipment described and that M layer network topology equipment direct-connected definite according to described network management device, and described the first definite link, the second link and the 3rd link are determined the link that described subnet comprises;
Second acquisition unit specifically is used for the link that definite described subnet comprises, obtains the network topology structure of described subnet.
16. each described equipment is characterized in that according to claim 9-15, includes at least a kind of in the following type equipment in the described subnet:
Router, switch, fire compartment wall, server, hub and personal computer.
CN201210546464.3A 2012-12-17 2012-12-17 A kind of method of discovering network topology and network management device Active CN103036725B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210546464.3A CN103036725B (en) 2012-12-17 2012-12-17 A kind of method of discovering network topology and network management device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210546464.3A CN103036725B (en) 2012-12-17 2012-12-17 A kind of method of discovering network topology and network management device

Publications (2)

Publication Number Publication Date
CN103036725A true CN103036725A (en) 2013-04-10
CN103036725B CN103036725B (en) 2015-08-19

Family

ID=48023238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210546464.3A Active CN103036725B (en) 2012-12-17 2012-12-17 A kind of method of discovering network topology and network management device

Country Status (1)

Country Link
CN (1) CN103036725B (en)

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104092576A (en) * 2014-07-30 2014-10-08 浙江宇视科技有限公司 Network topology calculation method and device
CN104219153A (en) * 2013-05-31 2014-12-17 中国电信股份有限公司 Network topology self-discovering method and device based on MAC (Media Access Control) address orientation search
CN104410537A (en) * 2014-12-22 2015-03-11 上海斐讯数据通信技术有限公司 Generation system of tree type network topological graph and generation method of tree type network topological graph
CN104579979A (en) * 2015-01-21 2015-04-29 武汉微创光电股份有限公司 Network topology discovery method based on MAC information
CN105245386A (en) * 2015-10-26 2016-01-13 上海华讯网络系统有限公司 Method and system for automatic positioning of server connection relation
CN105376163A (en) * 2015-10-14 2016-03-02 山东超越数控电子有限公司 Discovery method and device of network topological structure
CN105978808A (en) * 2016-05-06 2016-09-28 上海上讯信息技术股份有限公司 Method and device for calculating bi-layer network link
CN105991334A (en) * 2015-02-28 2016-10-05 中国移动通信集团广西有限公司 Network topology self-discovering method and device
CN106330723A (en) * 2015-06-15 2017-01-11 中兴通讯股份有限公司 Discovery method and method for network neighbor device
CN106713042A (en) * 2016-12-29 2017-05-24 中国银联股份有限公司 Method and device for determination of network topology
CN107547382A (en) * 2017-05-23 2018-01-05 紫光华山信息技术有限公司 A kind of neighborhood finds method and apparatus
CN109257225A (en) * 2018-10-12 2019-01-22 北京信研汇智信息技术有限公司 Generate method, apparatus, storage medium and the processor of network topology
CN110247784A (en) * 2018-03-07 2019-09-17 北京京东尚科信息技术有限公司 The method and apparatus for determining network topology structure
CN110535693A (en) * 2019-08-12 2019-12-03 深圳亚联发展科技股份有限公司 A kind of network is opened up and mends generation method, network is opened up and mends generation system and network structure
CN112350874A (en) * 2021-01-06 2021-02-09 博智安全科技股份有限公司 Automatic target range method and system based on dynamic discovery equipment
CN112615787A (en) * 2021-01-06 2021-04-06 博智安全科技股份有限公司 Method and system for automatically generating network topology
CN113452545A (en) * 2020-03-24 2021-09-28 阿自倍尔株式会社 Network device and network configuration discrimination method
CN113595750A (en) * 2020-04-30 2021-11-02 华为技术有限公司 Network topology dividing method and device and network topology management equipment
CN114567590A (en) * 2022-03-03 2022-05-31 锐捷网络股份有限公司 Topological structure generation method, device, equipment and storage medium
CN116827801A (en) * 2023-08-25 2023-09-29 武汉吧哒科技股份有限公司 Network topology construction method, device, computer equipment and readable storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109067569B (en) * 2018-07-20 2021-06-01 杭州安恒信息技术股份有限公司 Industrial control network topological structure visualization method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040255184A1 (en) * 2003-05-27 2004-12-16 Lucent Technologies Inc. System and method for determining the physical topology of a network having multiple subnets
CN101610178A (en) * 2009-07-20 2009-12-23 南京联创科技股份有限公司 Method for obtaining physical layer link network topology based on address forwarding mechanism
CN101668025A (en) * 2008-09-04 2010-03-10 北京启明星辰信息技术股份有限公司 Method and device for discovering link layer network topology
CN101873230A (en) * 2010-07-05 2010-10-27 北京星网锐捷网络技术有限公司 Method and device for discovering physical network topology
CN102801567A (en) * 2012-08-28 2012-11-28 北京傲天动联技术有限公司 Method for automatically discovering hierarchical network topology and method for establishing hierarchical network topology

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040255184A1 (en) * 2003-05-27 2004-12-16 Lucent Technologies Inc. System and method for determining the physical topology of a network having multiple subnets
CN101668025A (en) * 2008-09-04 2010-03-10 北京启明星辰信息技术股份有限公司 Method and device for discovering link layer network topology
CN101610178A (en) * 2009-07-20 2009-12-23 南京联创科技股份有限公司 Method for obtaining physical layer link network topology based on address forwarding mechanism
CN101873230A (en) * 2010-07-05 2010-10-27 北京星网锐捷网络技术有限公司 Method and device for discovering physical network topology
CN102801567A (en) * 2012-08-28 2012-11-28 北京傲天动联技术有限公司 Method for automatically discovering hierarchical network topology and method for establishing hierarchical network topology

Cited By (35)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104219153A (en) * 2013-05-31 2014-12-17 中国电信股份有限公司 Network topology self-discovering method and device based on MAC (Media Access Control) address orientation search
CN104219153B (en) * 2013-05-31 2018-02-13 中国电信股份有限公司 Network topology self-discovery method and apparatus based on MAC addresses beam search
CN104092576A (en) * 2014-07-30 2014-10-08 浙江宇视科技有限公司 Network topology calculation method and device
CN104092576B (en) * 2014-07-30 2018-04-27 浙江宇视科技有限公司 A kind of network topology computational methods and device
CN104410537A (en) * 2014-12-22 2015-03-11 上海斐讯数据通信技术有限公司 Generation system of tree type network topological graph and generation method of tree type network topological graph
CN104410537B (en) * 2014-12-22 2019-10-11 上海斐讯数据通信技术有限公司 A kind of tree network topology map generalization system and its generation method
CN104579979A (en) * 2015-01-21 2015-04-29 武汉微创光电股份有限公司 Network topology discovery method based on MAC information
CN105991334A (en) * 2015-02-28 2016-10-05 中国移动通信集团广西有限公司 Network topology self-discovering method and device
CN106330723A (en) * 2015-06-15 2017-01-11 中兴通讯股份有限公司 Discovery method and method for network neighbor device
CN106330723B (en) * 2015-06-15 2020-03-13 中兴通讯股份有限公司 Discovery method and device of network neighbor equipment
CN105376163A (en) * 2015-10-14 2016-03-02 山东超越数控电子有限公司 Discovery method and device of network topological structure
CN105245386B (en) * 2015-10-26 2018-07-20 上海华讯网络系统有限公司 The automatic positioning method and system of server connection relation
CN105245386A (en) * 2015-10-26 2016-01-13 上海华讯网络系统有限公司 Method and system for automatic positioning of server connection relation
CN105978808A (en) * 2016-05-06 2016-09-28 上海上讯信息技术股份有限公司 Method and device for calculating bi-layer network link
CN105978808B (en) * 2016-05-06 2019-12-03 上海上讯信息技术股份有限公司 A kind of method and apparatus of double layer network link calculation
CN106713042A (en) * 2016-12-29 2017-05-24 中国银联股份有限公司 Method and device for determination of network topology
CN106713042B (en) * 2016-12-29 2020-05-26 中国银联股份有限公司 Method and device for determining network topology
CN107547382A (en) * 2017-05-23 2018-01-05 紫光华山信息技术有限公司 A kind of neighborhood finds method and apparatus
CN107547382B (en) * 2017-05-23 2020-06-09 新华三信息技术有限公司 Neighbor relation discovery method and device
CN110247784A (en) * 2018-03-07 2019-09-17 北京京东尚科信息技术有限公司 The method and apparatus for determining network topology structure
CN110247784B (en) * 2018-03-07 2023-09-26 北京京东尚科信息技术有限公司 Method and device for determining network topology structure
CN109257225A (en) * 2018-10-12 2019-01-22 北京信研汇智信息技术有限公司 Generate method, apparatus, storage medium and the processor of network topology
CN109257225B (en) * 2018-10-12 2021-08-10 北京信研汇智信息技术有限公司 Method, device, storage medium and processor for generating network topology
CN110535693A (en) * 2019-08-12 2019-12-03 深圳亚联发展科技股份有限公司 A kind of network is opened up and mends generation method, network is opened up and mends generation system and network structure
CN113452545B (en) * 2020-03-24 2023-11-14 阿自倍尔株式会社 Network device and network configuration identification method
CN113452545A (en) * 2020-03-24 2021-09-28 阿自倍尔株式会社 Network device and network configuration discrimination method
CN113595750B (en) * 2020-04-30 2023-06-20 华为技术有限公司 Network topology dividing method and device and network topology management equipment
CN113595750A (en) * 2020-04-30 2021-11-02 华为技术有限公司 Network topology dividing method and device and network topology management equipment
CN112615787A (en) * 2021-01-06 2021-04-06 博智安全科技股份有限公司 Method and system for automatically generating network topology
CN112615787B (en) * 2021-01-06 2021-12-14 博智安全科技股份有限公司 Method and system for automatically generating network topology
CN112350874A (en) * 2021-01-06 2021-02-09 博智安全科技股份有限公司 Automatic target range method and system based on dynamic discovery equipment
CN114567590B (en) * 2022-03-03 2023-06-16 锐捷网络股份有限公司 Topology structure generation method, device, equipment and storage medium
CN114567590A (en) * 2022-03-03 2022-05-31 锐捷网络股份有限公司 Topological structure generation method, device, equipment and storage medium
CN116827801A (en) * 2023-08-25 2023-09-29 武汉吧哒科技股份有限公司 Network topology construction method, device, computer equipment and readable storage medium
CN116827801B (en) * 2023-08-25 2023-12-15 武汉吧哒科技股份有限公司 Network topology construction method, device, computer equipment and readable storage medium

Also Published As

Publication number Publication date
CN103036725B (en) 2015-08-19

Similar Documents

Publication Publication Date Title
CN103036725B (en) A kind of method of discovering network topology and network management device
CN110661669B (en) Network topology automatic discovery method of network equipment based on ICMP, TCP and UDP protocols
CN101621414B (en) Method and apparatus for discovering network resource and topology
US6628623B1 (en) Methods and systems for determining switch connection topology on ethernet LANs
US7548540B2 (en) Dynamic discovery of ISO layer-2 topology
CN102801567B (en) Method for automatically discovering hierarchical network topology and method for establishing hierarchical network topology
CN102164091B (en) Method for building MAC (Media Access Control) address table and provider edge device
EP2286554B1 (en) Using spanning tree protocol (stp) to enhance layer-2 network topology maps
CN101873230B (en) Method and device for discovering physical network topology
CN101170483B (en) A method for stacking route switching device
US6944130B1 (en) Method and apparatus for determining a layer 2 path in a switched network
EP1463245A2 (en) Ethernet path verification
CN101873229B (en) Network topology discover method and device based on SNMP (Simple Network Management Protocol)
CN102158348A (en) Network topology discovery method, device and network equipment
CN104717081A (en) Gateway function realization method and device
CN110545194B (en) Network topology generation method and device
CN101383772B (en) Method and device for automatically discovering and establishing MAC route information table
CN105393511A (en) Method, device and system for switching switch modes
CN101022371A (en) Automatic discovering and managing method for extendable interconnection network measurement server
CN104429022A (en) Connectivity fault management in communication network
US7369513B1 (en) Method and apparatus for determining a network topology based on Spanning-tree-Algorithm-designated ports
CN104579978A (en) Link-layer topology discovery method for dynamic network
CN102497324B (en) Data transmission method between a kind of different Multiple Spanning Tree (MST) region and equipment
CN102904776B (en) Detection method in a kind of VLAN, device and equipment
CN107733677B (en) Alarm generation method and device for overlay network

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