CN106998299B - The recognition methods of the network equipment, apparatus and system in data center network - Google Patents
The recognition methods of the network equipment, apparatus and system in data center network Download PDFInfo
- Publication number
- CN106998299B CN106998299B CN201610046155.8A CN201610046155A CN106998299B CN 106998299 B CN106998299 B CN 106998299B CN 201610046155 A CN201610046155 A CN 201610046155A CN 106998299 B CN106998299 B CN 106998299B
- Authority
- CN
- China
- Prior art keywords
- network
- network device
- hierarchy type
- equipment
- control 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 106
- 230000008569 process Effects 0.000 claims description 38
- 239000010410 layer Substances 0.000 claims description 35
- 239000012792 core layer Substances 0.000 claims description 33
- 238000005516 engineering process Methods 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 22
- 238000004891 communication Methods 0.000 description 10
- 238000004364 calculation method Methods 0.000 description 3
- 230000003247 decreasing effect Effects 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 230000002776 aggregation Effects 0.000 description 2
- 238000004220 aggregation Methods 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/02—Topology update or discovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/15—Interconnection of switching modules
- H04L49/1553—Interconnection of ATM switching modules, e.g. ATM switching fabrics
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses the recognition methods of the network equipment, apparatus and system in a kind of data center network, belong to network technique field.The method is for the control equipment in data center network, which comprises receives the connection message that first network equipment is sent in the data center network, the connection message includes the hierarchical identification of the first network equipment;According to the hierarchical identification, the level type of the first network equipment is identified;According to obtain in advance with the control equipment establish connection each network equipment topology information and the first network equipment level type, identification establishes the level type of each network equipment of connection with the control equipment.Present invention reduces computation complexity when identifying to the network equipment in data center network, solve the problems, such as that recognizer complexity in the related technology is higher.The present invention network equipment in data center network for identification.
Description
Technical Field
The present invention relates to the field of network technologies, and in particular, to a method, an apparatus, and a system for identifying a network device in a data center network.
Background
The data center network is a network applied in a data center, and the data center network connects a certain number of servers through network equipment such as a switch, a router and the like to form a server network with high bandwidth, high reliability and load balance, and can provide services such as calculation, storage and the like to the outside. After the network devices in the data center network are deployed, each network device needs to establish a connection with a control device of the data center, so that the control device can control and manage each network device. Then, the control device can obtain topology information of each network device through a topology discovery process, and identify a topology structure of the data center network and a hierarchy type of each network device, such as an overhead switch, a convergence layer switch, a core layer switch, and the like, according to the obtained topology information. Finally, the control equipment can issue corresponding configuration files to the network equipment of different hierarchical types according to the identification result, so that the automatic configuration of the network equipment in the data center network is realized.
In the related art, a scheme for identifying the position of Network equipment in a Data Center Network according to a topology level is introduced in the 2009 SIGCOMM conference paper "PortLand: A Scalable Fault-Tolerant Layer 2Data Center Network Fabric". In the scheme, the control device may obtain and analyze topology information of the network device currently connected to the control device, where the topology information includes connection status of each network device and other network devices, and if the number of ports of a certain network device is K and no more than K/2 ports of the K ports of the network device are connected to other network devices, the control device may identify a hierarchical type of the network device as an overhead switch; further, the control device may identify a hierarchy type of a network device connected to the top of rack switch as a convergence layer switch and identify a hierarchy type of a network device having all ports connected to the convergence layer switch as a core layer switch.
However, in the above network device discovery scheme, when the top rack switch is identified, the connection status of all network devices needs to be analyzed, the calculation complexity of the scheme is high, and the identification flexibility of the network devices is low.
Disclosure of Invention
In order to solve the problem of high computational complexity in the position identification of network equipment in the related art, the embodiment of the invention provides a method, a device and a system for identifying the network equipment in a data center network. The technical scheme is as follows:
in a first aspect, a method for identifying a network device in a data center network is provided, where the method is used for a control device in the data center network, and the method includes:
receiving a connection message sent by first network equipment in the data center network, wherein the connection message comprises a hierarchical identifier of the first network equipment;
identifying a hierarchy type of the first network device according to the hierarchy identification;
and identifying the hierarchy type of each network device connected with the control device according to the pre-acquired topology information of each network device connected with the control device and the hierarchy type of the first network device.
Optionally, the identifying, according to the topology information of each network device that establishes a connection with the control device and the hierarchy type of the first network device, the hierarchy type of each network device that establishes a connection with the control device includes:
dividing the network equipment of which the hierarchy type is determined into identified network equipment, wherein the network equipment of which the hierarchy type is determined comprises the first network equipment;
judging whether network equipment to be identified which is connected with the identified network equipment and is not identified exists in each network equipment which is connected with the control equipment;
when the network equipment to be identified exists in each network equipment which is connected with the control equipment, identifying the hierarchy type of the network equipment to be identified according to the pre-acquired topology information of each network equipment which is connected with the control equipment and the hierarchy type of the identified network equipment;
and repeating the steps until the network equipment to be identified which is connected with the identified network equipment and is not identified does not exist in each network equipment which is connected with the control equipment.
Optionally, when the hierarchy type of the first network device is a virtual switch, a core layer switch, or a soft switch, identifying the hierarchy type of each network device that establishes a connection with the control device according to the topology information of each network device that establishes a connection with the control device and the hierarchy type of the first network device, where the identifying includes:
identifying the hierarchy type of second network equipment connected with the first network equipment according to the pre-acquired topology information of each network equipment connected with the control equipment and the hierarchy type of the first network equipment;
identifying the hierarchy type of third network equipment which is connected with the second network equipment and is not identified according to the topology information of each network equipment which is acquired in advance and is connected with the control equipment and the hierarchy type of the second network equipment;
and identifying the hierarchy type of a fourth network device which is connected with the third network device and is not identified according to the topology information of each network device which is acquired in advance and is connected with the control device and the hierarchy type of the third network device.
Optionally, after identifying, according to the topology information of each network device that establishes a connection with the control device and the hierarchy type of the third network device, the hierarchy type of a fourth network device that is connected to the third network device and is not identified, the method further includes:
judging whether the number of unidentified network devices in each network device which establishes connection with the control device is larger than a first preset threshold value or not and whether the number of fourth network devices is larger than a second preset threshold value or not;
when the number of the unrecognized network devices among the network devices connected to the control device is greater than a first preset threshold, or the number of the fourth network devices is greater than a second preset threshold, performing a recognition correction process, where the recognition correction process includes:
determining the number n of the identified third network devices;
judging whether the number m of the third network devices in the network devices connected with the fourth network device is greater than or equal to the number m of the third network devices in the network devices connected with the fourth network device according to the pre-acquired topology information of each network device connected with the control device
When the number m of the third network devices in the network devices connected with the fourth network device is larger than or equal toThe hierarchy type of the fourth network device is then corrected to the same hierarchy type as the second network device.
Optionally, when the hierarchy type of the first network device is a virtual switch, a core layer switch, or a soft switch, identifying the hierarchy type of each network device that establishes a connection with the control device according to the topology information of each network device that establishes a connection with the control device and the hierarchy type of the first network device, where the identifying includes:
identifying the hierarchy type of second network equipment connected with the first network equipment according to the pre-acquired topology information of each network equipment connected with the control equipment and the hierarchy type of the first network equipment;
identifying the hierarchy type of third network equipment which is connected with the second network equipment and is not identified according to the topology information of each network equipment which is acquired in advance and is connected with the control equipment and the hierarchy type of the second network equipment;
determining the number n of the identified third network devices;
judging whether the number m of the third network devices in the network devices connected with the fourth network device is greater than or equal to the number m of the third network devices in the network devices connected with the fourth network device according to the pre-acquired topology information of each network device connected with the control deviceThe fourth network device is a network device which is connected with the third network and is not identified;
when the number m of the third network devices in the network devices connected with the fourth network device is larger than or equal toIdentifying the hierarchy type of the fourth network device as the same hierarchy type as the second network device;
when the number m of the third network devices in the network devices connected with the fourth network device is less thanAnd then, identifying the hierarchy type of the fourth network device according to the topology information of each network device which is acquired in advance and is connected with the control device and the hierarchy type of the third network device.
Optionally, after the identifying, according to the topology information of each network device that establishes a connection with the control device and the hierarchy type of the first network device, the hierarchy type of each network device that establishes a connection with the control device, the method further includes:
when a newly added network device is connected with the control device, acquiring topology information of the newly added network device;
identifying the hierarchy type of the newly added network equipment according to the topology information of the newly added network equipment, the topology information of each network equipment which is connected with the control equipment and the hierarchy type of each network equipment which is connected with the control equipment;
updating the topology information of each network device connected with the control device according to the topology information of the newly added network device;
and re-identifying the hierarchy type of each network device according to the hierarchy type of the newly added network device and the updated topology information of each network device which is connected with the control device.
Optionally, the hierarchical type of the first network device is a virtual switch or a soft switch, the hierarchical type of the second network device is a top rack switch, the hierarchical type of the third network device is a convergence layer switch, and the hierarchical type of the fourth network device is a core layer switch.
Optionally, the connection packet includes a handshake message, a heartbeat message, or an attribute report message sent by the first network device to the control device.
In a second aspect, a method for identifying a network device in a data center network is provided, where the method is used for a first network device in the data center network, and the method includes:
and sending a connection message to the control equipment in the data center network, wherein the connection message comprises the hierarchy identifier of the first network equipment, so that the control equipment can identify the hierarchy type of the first network equipment according to the hierarchy identifier.
In a third aspect, an apparatus for identifying a network device in a data center network is provided, where the apparatus is located in a control device in the data center network, and the apparatus includes:
a receiving unit, configured to receive a connection packet sent by a first network device in the data center network, where the connection packet includes a hierarchical identifier of the first network device;
a first identification unit, configured to identify a hierarchy type of the first network device according to the hierarchy identifier;
and the second identification unit is used for identifying the hierarchy type of each network device which is connected with the control device according to the topology information of each network device which is connected with the control device and is acquired in advance and the hierarchy type of the first network device.
Optionally, the second identifying unit is further configured to:
dividing the network equipment of which the hierarchy type is determined into identified network equipment, wherein the network equipment of which the hierarchy type is determined comprises the first network equipment;
judging whether network equipment to be identified which is connected with the identified network equipment and is not identified exists in each network equipment which is connected with the control equipment;
when the network equipment to be identified exists in each network equipment which is connected with the control equipment, identifying the hierarchy type of the network equipment to be identified according to the pre-acquired topology information of each network equipment which is connected with the control equipment and the hierarchy type of the identified network equipment;
and repeating the steps until the network equipment to be identified which is connected with the identified network equipment and is not identified does not exist in each network equipment which is connected with the control equipment.
Optionally, when the hierarchical type of the first network device is a virtual switch, a core layer switch, or a soft switch, the second identifying unit includes:
the first identification module is used for identifying the hierarchy type of second network equipment connected with the first network equipment according to the topology information of each network equipment which is acquired in advance and is connected with the control equipment and the hierarchy type of the first network equipment;
the second identification module is used for identifying the hierarchy type of third network equipment which is connected with the second network equipment and is not identified according to the topology information of each network equipment which is acquired in advance and is connected with the control equipment and the hierarchy type of the second network equipment;
and the third identification module is used for identifying the hierarchy type of a fourth network device which is connected with the third network device and is not identified according to the topology information of each network device which is acquired in advance and is connected with the control device and the hierarchy type of the third network device.
Optionally, the second identification unit further includes:
the first judgment module is used for judging whether the number of unidentified network devices in each network device which establishes connection with the control device is larger than a first preset threshold value or not and whether the number of the fourth network devices is larger than a second preset threshold value or not;
a correction module, configured to execute a recognition correction process when the number of unrecognized network devices in each network device that establishes a connection with the control device is greater than a first preset threshold, or the number of fourth network devices is greater than a second preset threshold, where the recognition correction process includes:
determining the number n of the identified third network devices;
judging whether the number m of the third network devices in the network devices connected with the fourth network device is greater than or equal to the number m of the third network devices in the network devices connected with the fourth network device according to the pre-acquired topology information of each network device connected with the control device
When the number m of the third network devices in the network devices connected with the fourth network device is larger than or equal toThe hierarchy type of the fourth network device is then corrected to the same hierarchy type as the second network device.
Optionally, when the hierarchical type of the first network device is a virtual switch, a core layer switch, or a soft switch, the second identifying unit further includes:
a fourth identification module, configured to identify, according to topology information of each network device that establishes a connection with the control device and a hierarchy type of the first network device, a hierarchy type of a second network device that is connected to the first network device;
a fifth identification module, configured to identify, according to topology information of each network device that is acquired in advance and is connected to the control device, and a hierarchy type of the second network device, a hierarchy type of a third network device that is connected to the second network device and is not identified;
a determining module, configured to determine the number n of the identified third network devices;
a second judging module, configured to judge, according to the topology information of each network device that establishes a connection with the control device, whether the number m of the third network devices in the network devices connected to the fourth network device is greater than or equal to the number m of the third network devices in the network devices connected to the fourth network deviceThe fourth network device is a network device which is connected with the third network and is not identified;
a sixth identifying module, configured to, when the number m of the third network devices in the network devices connected to the fourth network device is greater than or equal toIdentifying the hierarchy type of the fourth network device as the same hierarchy type as the second network device;
a seventh identifying module, configured to, when the number m of the third network devices in the network devices connected to the fourth network device is smaller thanAnd then, identifying the hierarchy type of the fourth network device according to the topology information of each network device which is acquired in advance and is connected with the control device and the hierarchy type of the third network device.
Optionally, the apparatus further comprises:
the acquisition unit is used for acquiring the topology information of the newly added network equipment when the newly added network equipment is connected with the control equipment;
a third identification unit, configured to identify a hierarchy type of the newly added network device according to the topology information of the newly added network device, the topology information of each network device that establishes a connection with the control device, and the hierarchy type of each network device that establishes a connection with the control device;
an updating unit, configured to update topology information of each network device that establishes a connection with the control device according to the topology information of the newly added network device;
and the fourth identification unit is used for re-identifying the hierarchy type of each network device according to the hierarchy type of the newly added network device and the updated topology information of each network device which establishes connection with the control device.
Optionally, the hierarchical type of the first network device is a virtual switch or a soft switch, the hierarchical type of the second network device is a top rack switch, the hierarchical type of the third network device is a convergence layer switch, and the hierarchical type of the fourth network device is a core layer switch.
Optionally, the connection packet includes a handshake message, a heartbeat message, or an attribute report message sent by the first network device to the control device.
In a fourth aspect, an apparatus for identifying a network device in a data center network is provided, where the apparatus is located in a first network device in the data center network, and the apparatus includes:
a sending unit, configured to send a connection packet to a control device in the data center network, where the connection packet includes a hierarchical identifier of the first network device, so that the control device identifies a hierarchical type of the first network device according to the hierarchical identifier.
In a fifth aspect, an apparatus for identifying a network device in a data center network is provided, where the apparatus is located in a control device in the data center network, and the apparatus includes: a processor, a memory, and a bus; the bus is used to connect the processor and the memory, the processor is used to execute the program stored in the memory, the program comprises the method of any of the first aspect.
In a sixth aspect, an apparatus for identifying a network device in a data center network is provided, where the apparatus is located in a first network device in the data center network, and the apparatus includes: a processor, a memory, and a bus; the bus is used to connect the processor and the memory, the processor is used to execute the program stored in the memory, the program comprises the method of the second aspect.
A seventh aspect provides an identification system for network devices in a data center network, the system including a control device and a first network device, the control device including an identification apparatus for network devices in the data center network according to any one of the third aspects; the first network device includes the identification apparatus of the network device in the data center network according to the fourth aspect.
In an eighth aspect, a system for identifying network devices in a data center network is provided, where the system includes a control device and a first network device, and the control device includes an identification apparatus for identifying network devices in the data center network according to the fifth aspect; the first network device includes the identifying apparatus of the network device in the data center network according to the sixth aspect.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
the embodiment of the invention provides a method, a device and a system for identifying network equipment in a data center network, wherein the method is used for control equipment in the data center network, and comprises the following steps: receiving a connection message sent by first network equipment in the data center network, wherein the connection message comprises a hierarchical identifier of the first network equipment; identifying a hierarchy type of the first network device according to the hierarchy identification; according to the topology information of each network device which is connected with the control device and is acquired in advance and the hierarchy type of the first network device, the hierarchy type of each network device which is connected with the control device is identified, so that the hierarchy type of the first network device can be identified according to the hierarchy identification carried in the connection message sent by the first network device by the network device identification method provided by the embodiment of the invention, the connection state of the first network device does not need to be analyzed, the calculation complexity of identifying the network device in the data center network is reduced, and the identification flexibility of the network device is higher.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a topology of a data center network in the related art;
FIG. 2-1 is a system architecture diagram of a data center network according to an embodiment of the present invention;
fig. 2-2 is a flowchart of an identification method for a network device in a data center network according to an embodiment of the present invention;
FIG. 3-1 is a flow chart of another method for identifying network devices in a data center network according to an embodiment of the invention;
fig. 3-2 is a schematic diagram of a partial topology structure of a network device in a data center network according to an embodiment of the present invention;
3-3 are schematic diagrams of partial topologies of network devices in another data center network according to an embodiment of the present invention;
3-4 are schematic diagrams of partial topologies of network devices in another data center network according to an embodiment of the present invention;
fig. 4-1 is a flowchart of a method for identifying network devices in a data center network according to another embodiment of the present invention;
fig. 4-2 is a schematic diagram of a partial topology structure of a network device in a data center network according to another embodiment of the present invention;
4-3 are flow diagrams of a method for identifying a correction process according to an embodiment of the present invention;
fig. 5 is a flowchart of a method for identifying network devices in a data center network according to another embodiment of the present invention;
fig. 6-1 is a schematic structural diagram of an identification apparatus for network devices in a data center network according to an embodiment of the present invention;
fig. 6-2 is a schematic structural diagram of an identification apparatus for network devices in another data center network according to an embodiment of the present invention;
fig. 6-3 is a schematic structural diagram of a second identification unit according to an embodiment of the present invention;
fig. 6-4 are schematic structural diagrams of another second identification unit provided by the embodiment of the invention;
fig. 7 is a schematic structural diagram of an identification apparatus for network devices in a data center network according to another embodiment of the present invention;
fig. 8 is a schematic structural diagram of an identification apparatus for network devices in a data center network according to another embodiment of the present invention;
fig. 9 is a schematic structural diagram of an identification apparatus for network devices in a data center network according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of a topology structure of a data center network in the related art, and as shown in fig. 1, taking the topology structure of the data center network as a tree structure, the tree structure may include a plurality of servers 01 at a bottom layer, access layer switches connected to the servers 01, also referred to as Top of rack switches (TOR) 02, aggregation layer switches (End of row) 03 connected to the Top of rack switches 02, and core layer switches 04 connected to the aggregation layer switches 03, where the switches at different layers are interconnected to provide a communication channel for communication between the servers 01. After each network device (including a server and switches of different levels) in the data center network is deployed according to a preset topology structure, each network device needs to establish a connection with a control plane of the data center network, so that the control plane can manage and control each network device, for example, a configuration file is issued to each network device, and automatic configuration of the network device is realized.
Fig. 2-1 is a system architecture diagram of a data center network according to an embodiment of the present invention, as shown in fig. 2-1, the data center network may be divided into a control plane and a data plane, where the control plane is composed of one or more control devices 10, and the data plane includes a plurality of network devices 00, where the plurality of network devices 00 may be divided into different hierarchies according to different topologies of the data center network. For example, if the topology structure of the data center network is a two-layer tree structure, the plurality of network devices may be divided into two hierarchical types of network devices, for example: an access layer switch and a convergence layer switch; if the topology of the data center network is a three-layer Fat-Tree (Fat-Tree) structure, the network devices may be divided into three different hierarchical types of network devices, for example: the access layer switch, the convergence layer switch and the core layer switch; if the topology structure of the data center network is a three-layer Fat-Tree structure, and a virtual switch or a soft switch is installed in a server of the data center network, the virtual switch or the soft switch may be used as a fourth-layer extension of the topology structure of the data center network, and at this time, the hierarchy types of network devices in the data center network may include four types: a virtual switch or soft switch, an access layer switch, a convergence layer switch, and a core layer switch. After the network device 00 with different hierarchical types is connected to the control device 10 in the control plane, the control device 10 may identify the hierarchical type of the different network device 00, so as to issue different configuration files to the network devices with different hierarchical types, thereby implementing the automatic configuration of the network device in the data center network, for example, in fig. 2-1, if the network device in the oval area is connected to the control device 10, the control device 10 may identify the hierarchical type of the network device in the oval area.
Fig. 2-2 is a flowchart of an identification method for a network device in a data center network according to an embodiment of the present invention, where the method may be applied to the control device 10 shown in fig. 2-1, and as shown in fig. 2-2, the method includes:
step 201, receiving a connection packet sent by a first network device in the data center network, where the connection packet includes a hierarchical identifier of the first network device.
Step 202, identifying a hierarchy type of the first network device according to the hierarchy identifier.
Step 203, identifying the hierarchy type of each network device connected with the control device according to the topology information of each network device connected with the control device, which is acquired in advance, and the hierarchy type of the first network device.
In summary, an embodiment of the present invention provides a method for identifying a network device in a data center network, where a control device may quickly identify a hierarchy type of a first network device according to a hierarchy identifier included in a received connection packet sent by the first network device, and then identify, according to topology information of each network device and the hierarchy type of the first network device, the hierarchy type of each network device that establishes a connection with the control device.
An embodiment of the present invention provides another method for identifying a network device in a data center network, where the method may be applied to a first network device in the data center network, where the first network device may be any network device in fig. 2-1, and the method includes:
and sending a connection message to a control device in the data center network, wherein the connection message comprises the hierarchy identifier of the first network device, so that the control device can identify the hierarchy type of the first network device according to the hierarchy identifier.
In this embodiment of the present invention, the first network device may be a network device of any hierarchical type in a data center network, for example, it is assumed that the hierarchical type of the first network device is a virtual switch, and when each virtual switch in the data center network establishes a connection with a control device, a connection message sent by each virtual switch includes a hierarchical identifier of the virtual switch. In the process of establishing connection between the control device and each network device, the hierarchy type of the first network device may be identified according to the hierarchy identifier, and then the hierarchy types of other network devices may be identified one by one according to the topology information of each network device and the hierarchy type of the first network device.
In summary, an embodiment of the present invention provides a method for identifying a network device in a data center network, where a connection packet sent by a first network device to a control device may include a hierarchical identifier of the first network device, so that the control device may quickly identify a hierarchical type of the first network device according to the hierarchical identifier, and then identify a hierarchical type of each network device that establishes a connection with the control device according to topology information of each network device and the hierarchical type of the first network device, and therefore, when identifying the hierarchical type of the first network device, the control device does not need to analyze a connection status of the first network device, thereby reducing computational complexity when identifying each network device in the data center network, and providing higher flexibility for identifying the network device.
Fig. 3-1 is a flowchart of another method for identifying a network device in a data center network according to an embodiment of the present invention, where the method may be applied to the control device 10 shown in fig. 2-1, and as shown in fig. 3-1, the method includes:
step 301, receiving a connection packet sent by a first network device in a data center network, where the connection packet includes a hierarchical identifier of the first network device.
In the embodiment of the present invention, after each network device in the data center network is deployed, each network device needs to establish a connection with the control plane in the data center network, and in a process of establishing a connection, a connection packet sent by a first network device to a control device in the control plane may include a hierarchy identifier of the first network device, where the hierarchy identifier is used to indicate a hierarchy type of the first network device, that is, a hierarchy where the first network device is located in a topology structure of the data center network, and therefore, the control device may identify the hierarchy type of the first network device through the hierarchy identifier, and may determine a relative position relationship between the first network device and other network devices. The first network device may be any hierarchical type of network device, for example, a virtual switch, a soft switch, or other network devices of the same type, or a core layer switch, or other network devices of the same type, where the connection message may be a connection request message sent by the first network device to the control device, or a connection response message or an attribute reporting message, and the like, which is not limited in this embodiment of the present invention.
It should be noted that, when the control device establishes a connection with the network device, the control device may actively send a control channel connection request to the network device, or the network device may actively send a control channel connection request to the control device, which is not limited in the embodiment of the present invention. The process of establishing connection between the control device and the network device may refer to related technologies, which are not described in detail in the embodiments of the present invention.
Step 302, identifying a hierarchy type of the first network device according to the hierarchy identifier.
After receiving the connection packet sent by the first network device, the control device may identify the hierarchy type of the first network device according to the hierarchy identifier carried in the connection packet. For example, if the first network device is a virtual switch, a connection message sent by the virtual switch in the data center network to the control device may include a hierarchy identifier of the virtual switch, and the control device may identify the hierarchy type of the first network device as the virtual switch according to the hierarchy identifier included in the connection message sent by the first network device.
Step 303, dividing the network device with the determined hierarchy type into the identified network devices, wherein the network device with the determined hierarchy type includes the first network device.
Since the topology structure of the data center network is generally a regular structure, after the control device identifies the hierarchy type of the first network device, the control device may sequentially identify the hierarchy types of other network devices connected to the first network device according to the hierarchy type of the first network device. In order to determine whether to continue executing the identification algorithm during the identification of the hierarchy type of each network device by the control device, the control device may classify the network device whose hierarchy type has been determined as the identified network device. For example, fig. 3-2 is a schematic partial topology structure diagram of a network device in a data center network according to an embodiment of the present invention, as shown in fig. 3-2, it is assumed that the network device that establishes a connection with the control device 10 includes SW1 to SW6, and a first network device is SW1, and after the control device identifies that the hierarchical type of the SW1 is a virtual switch according to a connection packet sent by the SW1, the identified network device that the control device can determine includes: SW 1.
And step 304, judging whether the network equipment to be identified which is connected with the identified network equipment and is not identified exists in the network equipment which is connected with the control equipment.
When the network device to be identified exists in the network devices that establish connection with the control device, step 305 is performed, and when the network device to be identified does not exist in the network devices that establish connection with the control device, step 306 is performed. In the embodiment of the present invention, in order to improve the determination efficiency when determining a network device to be identified, the control device may determine only whether there is a network device to be identified that is connected to the most recently identified network device and is not identified, among the network devices. For example, assuming that in fig. 3-2, the control device identifies, according to the connection packet sent by the SW1, that the hierarchical type of the first network device SW1 is a soft switch, and then identifies, according to the hierarchical type of the SW1, the hierarchical type of the SW2 connected to the SW1, in this case, the hierarchical type of the SW2 may be a top-of-rack switch, and then the identified network devices divided by the control device may include: SW1 and SW2, since SW2 is the most recently identified network device, the control device may only determine whether there is a network device to be identified that is connected to SW2 and not identified when determining whether there is a network device to be identified, since in fig. 3-2 SW3 is connected to SW2 and SW3 is not identified by the control device, the control device may determine that there is a network device to be identified: SW 3.
And 305, identifying the hierarchy type of the network device to be identified according to the topology information of each network device which is acquired in advance and is connected with the control device and the hierarchy type of the identified network device.
In the embodiment of the present invention, after a control device is connected to a network device, the control device may obtain topology information of each network device connected to the control device through a topology Discovery process, where in the topology Discovery process, the control device may send a Link Layer Discovery Protocol (LLDP) message to each network device connected to the control device, and then obtain the topology information of each network device according to the message fed back by each network device, and store the topology information of each network device in a memory in a data center network, where the topology information of each network device includes a connection relationship between each network device. As an example, as shown in fig. 3-2, it is assumed that, in the data center network, the network device that establishes a connection with the control device 10 includes: SW1 to SW6, the control device may obtain topology information of the network devices SW1 to SW6 through a topology discovery process as shown in table 1, where the topology information records connection relationships among the network devices, for example, SW1 is connected to port No. 0 of SW2 through port No. 0, SW2 is connected to port No. 0 of SW3 through port No. 1, SW3 is connected to port No. 1 of SW3 through port No. 2, and so on.
TABLE 1
SW1:Port0-------SW2:Port0 |
SW2:Port1-------SW3:Port0 |
SW3:Port2-------SW4:Port1 |
...... |
For the network device to be identified: SW3, the control device may determine from the topology information shown in table 1, and the hierarchy type of the identified network device: the SW1 is a virtual switch, the SW2 is a top of rack switch, and the hierarchy type of the network device SW3 to be identified is identified as a convergence layer switch.
Then, the control device may repeatedly execute the above steps 303 to 305 until there is no network device to be identified that is connected to the identified network device and is not identified in each network device that establishes a connection with the control device.
It should be noted that, each time the control device identifies a hierarchy type of a network device, the hierarchy type of the network device may be marked in the topology information, for example, for the topology structure shown in fig. 3-2, after the control device completes identification of the network devices SW1 to SW6, the hierarchy types of the network devices marked in the topology information may be as shown in table 2, for example, SW1 is marked as a virtual switch, and SW4 is marked as a core layer switch.
TABLE 2
Step 306, when there is a connection between the newly added network device and the control device, obtaining topology information of the newly added network device.
In the embodiment of the present invention, since the process of establishing connection between each network device and the control device in the data center network is not performed synchronously, when a newly added network device is connected to the control device during the process of identifying each network device that has established connection with the control device by the control device, the control device may obtain topology information of the newly added network device through a topology discovery process. For example, assume that the partial topology of the data center network is as shown in fig. 3-3, and the control device has completed identifying network devices SW 31-SW 35, where SW31 and SW32 are first network devices and have a hierarchy type of soft switch, SW33 and SW34 have a hierarchy type of top-of-rack switch, and SW35 has a hierarchy type of convergence layer switch. When there is a newly added network device SW36 to establish a connection with the control device, the control device may acquire topology information of the SW36, which may include the connection relationship of SW35 and SW 36.
Step 307, identifying the hierarchy type of the newly added network device according to the topology information of the newly added network device, the topology information of each network device connected with the control device, and the hierarchy type of each network device connected with the control device.
After the control device obtains the topology information of the newly added network device, the hierarchy type of the newly added network device can be identified according to the determined hierarchy type of each network device. For example, as shown in fig. 3-3, since the topology information of the network device SW36 includes that SW36 is connected to SW35, and the hierarchy type of the network device SW35 is a convergence layer switch, the control device may determine that the newly added network device SW36 is a core layer switch.
It should be noted that, if the hierarchy type of the newly added switch is the same as the hierarchy type of the first network device, the connection packet sent to the control device by the newly added network device when establishing connection with the control device may include the hierarchy identifier of the newly added network device, and at this time, the control device may directly identify the hierarchy type of the newly added network device according to the hierarchy identifier.
And step 308, updating the topology information of each network device connected with the control device according to the topology information of the newly added network device.
After the newly added network device is connected with the control device, the control device may update the topology information of each network device connected with the control device in real time according to the obtained topology information of the newly added network device.
Step 309, re-identifying the hierarchy type of each network device according to the hierarchy type of the newly added network device and the updated topology information of each network device establishing connection with the control device.
After the newly added network device is connected with the control device, the connection condition between the network devices can be changed, and the hierarchy type of each network device identified based on the topology information before updating may have errors, so that the control device can re-identify the hierarchy type of each network device according to the hierarchy type of the newly added network device and the updated topology information of each network device connected with the control device. The re-identification process may refer to the above step 303 to step 305, and the embodiment of the present invention is not described again.
For example, assuming that the newly added network device is SW32 as shown in fig. 3-4, before the network device SW32 establishes a connection with the control device, the control device has completed the identification of the network device SW31 and the network devices SW33 to SW36, and the specific identification result is: the hierarchy type of SW31 is a soft switch, the hierarchy type of SW33 is a top of rack switch, the hierarchy type of SW35 is a convergence layer switch, and the hierarchy types of SW34 and SW36 are core layer switches. After the SW32 establishes a connection with the control device, the control device may identify that the network device SW32 is a soft switch according to the hierarchical identifier carried in the connection message sent by the SW32, and may acquire topology information of the newly added network device SW32, where the SW32 topology information may include: SW32 is connected to SW 34. Further, the control device may, according to the hierarchy type of the newly added network device SW 32: the soft switch, along with the topology information of the newly added network device SW32, re-identifies the tier type of network device SW34 as a top of rack switch.
In practical application, the control device can periodically identify the hierarchy type of each network device connected with the control device, and re-identify and correct the network device which is mistakenly identified according to the newly added topology information of the network device, so that the identification accuracy of the control device in identifying each network device in the data center network is improved.
It should be noted that, the sequence of the steps of the method for identifying a network device in a data center network provided in the embodiment of the present invention may be appropriately adjusted, and the steps may also be increased or decreased according to the circumstances, and any method that can be easily changed within the technical scope disclosed in the present invention by a person skilled in the art should be included in the protection scope of the present invention, and therefore, no further description is given.
To sum up, the embodiments of the present invention provide a method for identifying a network device in a data center network, where a control device may quickly identify a hierarchy type of a first network device according to a hierarchy identifier included in a received connection message sent by the first network device, and then identify, according to topology information of each network device and the hierarchy type of the first network device, the hierarchy type of each network device connected to the control device, and when identifying the hierarchy type of the first network device, the method does not need to analyze a connection status of the first network device, so that computational complexity is reduced when identifying the network device in the data center network, and the identification flexibility of the network device is high, and in the process of identifying the network device in the data center network, the method is not limited by the network topological structure, and network equipment under different topological structures can be flexibly identified; in addition, the network device discovery scheme in the related art can only identify the network device under the complete topology structure, but the data center network is gradually improved from the initial incomplete topology to the complete topology when networking is performed, that is, the life cycle of the data center network includes a longer incomplete topology cycle.
In this embodiment of the present invention, when the hierarchical type of the first network device is a virtual switch, a core layer switch, or a soft switch, the topology structure of the data center network may include a four-layer topology, and assuming that the hierarchical type of the first network device is a soft switch, a process of the control device identifying the hierarchical type of each network device in the data center network may be as shown in fig. 4-1, where the method includes:
step 401, receiving a connection packet sent by a first network device in the data center network, where the connection packet includes a hierarchical identifier of the first network device.
For example, assuming that the topology of the data center network is a Fat-tree structure as shown in fig. 4-2, and the first network device is a soft switch SW41, in the process that the respective network devices SW41 to SW410 establish connection with the control device, the connection packet sent by the first network device SW41 to the control device may include the level identifier of SW 41: a soft switch.
Step 402, identifying a hierarchy type of the first network device according to the hierarchy identifier.
The control device receives the connection message sent by each network device, and determines the hierarchy type of the first network device SW41 according to the hierarchy identifier carried in the connection message sent by the first network device: a soft switch.
Step 403, identifying a hierarchy type of a second network device connected to the first network device according to the topology information of each network device connected to the control device, which is acquired in advance, and the hierarchy type of the first network device.
For example, after the control device establishes connection with the network devices SW41 to SW410, the control device may obtain topology information of the network devices SW41 to SW410 through a topology discovery process, where the topology information includes connection relationships of the respective network devices SW41 to SW410, and then, according to the topology information and the identified hierarchical type of the first network device SW 41: a soft switch that identifies a second network device connected to the first network device SW 41: a hierarchy type of SW42, the hierarchy type of the second network device SW42 may be a top of rack switch.
Step 404, identifying a hierarchy type of a third network device which is connected with the second network device and is not identified according to the topology information of each network device which is acquired in advance and is connected with the control device and the hierarchy type of the second network device.
Further, the control device may be configured to, according to the hierarchical type of the second network device SW 42: a top-of-rack switch that identifies a third network device connected to the second network device SW42 and not identified: the hierarchical type of the SW 46-SW 49, the hierarchical type of the third network device SW 46-SW 49 may be a convergence layer switch.
Step 405, identifying a hierarchy type of a fourth network device which is connected with the third network device and is not identified according to the topology information of each network device which is acquired in advance and is connected with the control device and the hierarchy type of the third network device.
The control device may further identify a hierarchy type of a fourth network device that is not identified and has a connection relationship with any one of the third network devices SW46 to SW49 according to the determined hierarchy type of the third network devices SW46 to SW49, for example, the fourth network device may include SW43 to SW45 and SW410, and the hierarchy type of the fourth network devices SW43 to SW45 and SW410 identified by the control device may be a core layer switch.
Step 406, determining whether the number of unrecognized network devices in each network device connected to the control device is greater than a first preset threshold, and whether the number of the fourth network devices is greater than a second preset threshold.
When the number of unrecognized network devices among the network devices connected to the control device is greater than the first preset threshold, or the number of the fourth network devices is greater than the second preset threshold, the control device may determine that there may be a misrecognition condition in the recognized network devices, and perform step 407; when the number of the network devices that are not identified in the network devices that establish connection with the control device is not greater than the first preset threshold and the number of the fourth network devices is greater than the second preset threshold, the control device may determine that the identification result of the identified network device is correct, and end the identification process.
For example, assuming that the first preset threshold and the second preset threshold are both 2, in the topology shown in fig. 4-2, since the number of unrecognized network devices in each network device establishing connection with the control device is 0, the number is smaller than the first preset threshold, but the number of fourth network devices is 4, and is greater than the second preset threshold: 2, the control device may determine that there may be a misidentified network device among the identified network devices and perform step 407 for correction.
Step 407, executing the recognition correction process.
When the number of unrecognized network devices among the network devices connected to the control device is greater than a first preset threshold, or the number of fourth network devices is greater than a second preset threshold, the control device may determine that there may be a misrecognized network device among the network devices having determined the hierarchical type, and perform a recognition correction process, as shown in fig. 4-3, where the recognition correction process includes:
step 4071, determine the number n of identified third network devices.
The number n of the identified third network devices refers to the number of the third network devices connected to the same second network device. For example, in the topology shown in fig. 4-2, since the third network devices SW46 through SW49 are all connected to the second network device SW42, the control device may determine that the number of identified third network devices is: n is 4.
Step 4072, determining, according to the topology information of each network device that establishes connection with the control device and is acquired in advance, the third network device among the network devices to which the fourth network device is connectedWhether the number m of (a) is greater than or equal to
Wherein,indicating rounding up, when the number m of the third network devices in the network devices connected with the fourth network device is larger than or equal toThen, step 4073 is performed; when the number m of the third network devices in the network devices connected with the fourth network device is less thanWhen so, the recognition correction process is ended.
If the number of the fourth network devices in the identified network devices is greater than 1, in step 4072, the network devices connected to each fourth network device need to be analyzed and counted. For example, as for the fourth network device SW43, according to the topology information of each network device connected to the control device, which is acquired by the control device in advance, the number m of the third network devices in the network devices connected to the fourth network device SW43 is 4, and since m is greater than mThe control device may perform step 4073; for the fourth network device SW410, since the SW410 is only connected to the SW46, that is, the number m of the third network devices connected to the fourth network device SW410 is 1, which is smaller than that of the fourth network device SW410At this time, the control device may determine that the recognition result of the hierarchy type of the fourth network device SW410 is correct, and end the recognition correction process.
Step 4073, the hierarchy type of the fourth network device is corrected to be the same as the hierarchy type of the second network device.
When the number m of the third network devices in the network devices connected with the fourth network device is larger than or equal toThe control device may determine that the identification result of the hierarchy type of the fourth network device is incorrect, and correct the hierarchy type of the fourth network device to the same hierarchy type as the second network device. For example, the control device may: the hierarchy type of the SW 43-SW 45 is modified to be the same as the second network device SW42, i.e., the hierarchy type of the fourth network device SW 43-SW 45 is modified to be a top of rack switch.
It should be noted that, the sequence of the steps of the method for identifying a network device in a data center network provided in the embodiment of the present invention may be appropriately adjusted, and the steps may also be increased or decreased according to the circumstances, and any method that can be easily changed within the technical scope disclosed in the present invention by a person skilled in the art should be included in the protection scope of the present invention, and therefore, no further description is given.
In summary, an embodiment of the present invention provides a method for identifying a network device in a data center network, where a control device may quickly identify a hierarchy type of a first network device according to a hierarchy identifier included in a received connection packet sent by the first network device, and then identify, according to topology information of each network device and the hierarchy type of the first network device, the hierarchy type of each network device that establishes a connection with the control device.
In this embodiment of the present invention, when the hierarchy type of the first network device is a virtual switch, a core layer switch, or a soft switch, it indicates that the topology structure of the data center network may include a four-layer topology, and if the hierarchy type of the first network device is a soft switch, a process of the control device identifying the hierarchy type of each network device in the data center network may be further shown in fig. 5, where the method includes:
step 501, receiving a connection packet sent by a first network device in the data center network, where the connection packet includes a hierarchical identifier of the first network device.
Step 502, identifying a hierarchy type of the first network device according to the hierarchy identifier;
step 503, identifying a hierarchy type of a second network device connected to the first network device according to the topology information of each network device connected to the control device, which is acquired in advance, and the hierarchy type of the first network device.
Step 504, identifying a hierarchy type of a third network device which is connected with the second network device and is not identified according to the topology information of each network device which is acquired in advance and is connected with the control device and the hierarchy type of the second network device.
The specific implementation process of step 501 to step 504 may refer to step 401 to step 404, which is not described again in this embodiment of the present invention.
And step 505, determining the number n of the identified third network devices.
After the control device identifies the hierarchical type of the third network device, the number n of the identified third network devices may be determined, where the number n of the identified third network devices refers to the number of the third network devices connected to the same second network device. . For example, assuming that the third network devices identified by the control device are SW46 to SW49 in the topology shown in fig. 4-2, the control device may determine that the number n of the third network devices is 4.
Step 506, according to the topology information of each network device that is acquired in advance and is connected to the control device, determining whether the number m of the third network devices in the network devices connected to the fourth network device is greater than or equal to the number m of the third network devices in the network devices connected to the fourth network device
The fourth network device is a network device that is not identified and connected to the third network, and if the number of the fourth network devices is greater than 1, the control device needs to respectively determine whether the number m of the third network devices in the network devices connected to each fourth network device is greater than or equal toWhen the number m of the third network devices in the network devices connected with the fourth device is larger than or equal toIf yes, go to step 507; when the number m of the third network devices in the network devices connected with the fourth network device is less thanThen step 508 is performed.
For example, as shown in fig. 4-2, if the network devices connected to the third networks SW46 through SW49 and not identified include the network devices SW43 through SW45 and SW410, the control device may determine that the fourth network devices are SW43 through SW45 and SW 410. For the fourth network devices SW43 to SW45, since the SW43 to SW45 respectively establish connections with the m-4 third network devices, the control device may perform step 507; as for the fourth network device SW410, since only m-1 third network devices SW46 are included in the network devices to which this SW410 is connected, the control device may perform step 508.
Step 507, identifying the hierarchy type of the fourth network device as the same hierarchy type as the second network device.
For example, the control device may: the hierarchy type of SW 43-SW 45 is identified as being associated with a second network device: SW42 are of the same type, i.e., the hierarchy type of the fourth network devices SW 43-SW 45 are identified as top of rack switches.
And step 508, identifying the hierarchy type of the fourth network device according to the topology information of each network device which is acquired in advance and is connected with the control device, and the hierarchy type of the third network device.
When the number m of the third network devices in the network devices connected with the fourth device is larger than or equal toIn this case, the control device may identify the hierarchy type of the fourth network device according to the topology information of each network device that is acquired in advance and that establishes a connection with the control device, and the hierarchy type of the third network device. For SW410, for example, the control device may be according to the topology shown in fig. 4-2 and the hierarchical type of the third network device SW 46: the convergence layer switch recognizes the hierarchy type of the fourth network device SW410 as a core layer switch.
It should be noted that, because the Fat-tree structure may include a plurality of pods, each Pod includes a certain number of second network devices and third network devices, where the second network devices connected to each third network device are the second network devices located in the same Pod as the third network device. If the number of the third network devices included in each Pod is not equal, in step 505, the number n of the identified third network devices determined by the control device is also different, that is, each Pod may correspond to the number n of one identified third network device, so when identifying the hierarchy type of the fourth network device, the number n of the identified third network device corresponding to each Pod needs to be determined according to the Pod where the third network device connected to each fourth network device is located.
It should be further noted that, the sequence of the steps of the method for identifying a network device in a data center network provided in the embodiment of the present invention may be appropriately adjusted, and the steps may also be increased or decreased according to the circumstances, and any method that can be easily changed within the technical scope disclosed in the present invention by a person skilled in the art should be included in the protection scope of the present invention, and therefore, no further description is given.
In summary, an embodiment of the present invention provides a method for identifying a network device in a data center network, where a control device may quickly identify a hierarchy type of a first network device according to a hierarchy identifier included in a received connection packet sent by the first network device, and then identify, according to topology information of each network device and the hierarchy type of the first network device, the hierarchy type of each network device that establishes a connection with the control device.
It should be noted that, in practical applications, an operator may configure a corresponding network device identification algorithm in the control device according to the configuration condition of each server in the data center network. For example, when each server in the data center network is provided with a virtual switch or a soft switch, the control device may identify the hierarchy type of each network device in the data center network by using the identification method based on the network device shown in fig. 4-1; when only a part of the servers in the data center network are provided with virtual switches or soft switches, the control device may identify the hierarchy type of each network device in the data center network by using the identification method based on the network device shown in fig. 5.
It should be further noted that, in each embodiment provided by the present invention, when the hierarchical type of the first network device is a virtual switch or a soft switch, the hierarchical type of the second network device may be a top-of-rack switch, the hierarchical type of the third network device may be a convergence layer switch, and the hierarchical type of the fourth network device may be a core layer switch; when the hierarchy type of the first network device is a core layer switch, the hierarchy type of the second network device may be a convergence layer switch, the hierarchy type of the third network device may be a top-of-rack switch, and the hierarchy type of the fourth network device may be a virtual switch or a soft switch.
It should be further noted that, in each embodiment provided by the present invention, the connection packet sent by the first network device to the control device may include a handshake message, a heartbeat message, or an attribute report message sent by the first network device to the control device, where the handshake message may be a hello message based on an OpenFlow protocol, the attribute report message may be an attribute response message (e.g., feature _ request or similar message) for responding to an attribute request message (e.g., feature _ request or similar message), and the attribute report message may also be another message similar to the attribute response message in type, which is not limited in this embodiment of the present invention; in addition, the present invention provides various embodiments of a hierarchical type of the first network device.
Fig. 6-1 is a schematic structural diagram of an apparatus for identifying a network device in a data center network according to an embodiment of the present invention, where the apparatus is located in a control device in the data center network, and as shown in fig. 6-1, the apparatus includes:
a receiving unit 601, configured to receive a connection packet sent by a first network device in the data center network, where the connection packet includes a hierarchical identifier of the first network device.
A first identifying unit 602, configured to identify a hierarchy type of the first network device according to the hierarchy identifier.
A second identifying unit 603, configured to identify, according to the topology information of each network device that establishes a connection with the control device and the hierarchy type of the first network device, the hierarchy type of each network device that establishes a connection with the control device.
In summary, an embodiment of the present invention provides an apparatus for identifying a network device in a data center network, where the apparatus is located in a control device in the data center network, and the control device may quickly identify a hierarchy type of a first network device according to a hierarchy identifier included in a received connection packet sent by the first network device, and then identify a hierarchy type of each network device that establishes a connection with the control device according to topology information of each network device and the hierarchy type of the first network device.
Fig. 6-2 is a schematic structural diagram of another identification apparatus for network devices in a data center network according to an embodiment of the present invention, where the apparatus is located in a control device in the data center network, and as shown in fig. 6-2, the apparatus includes:
a receiving unit 601, configured to receive a connection packet sent by a first network device in the data center network, where the connection packet includes a hierarchical identifier of the first network device.
A first identifying unit 602, configured to identify a hierarchy type of the first network device according to the hierarchy identifier.
A second identifying unit 603, configured to identify, according to the topology information of each network device that establishes a connection with the control device and the hierarchy type of the first network device, the hierarchy type of each network device that establishes a connection with the control device.
An obtaining unit 604, configured to obtain topology information of the newly added network device when the newly added network device establishes a connection with the control device.
A third identifying unit 605, configured to identify the hierarchy type of the newly added network device according to the topology information of the newly added network device, the topology information of each network device that establishes connection with the control device, and the hierarchy type of each network device that establishes connection with the control device.
An updating unit 606, configured to update topology information of each network device that establishes a connection with the control device according to the topology information of the newly added network device.
A fourth identifying unit 607, configured to re-identify the hierarchy type of each network device according to the hierarchy type of the newly added network device and the updated topology information of each network device that establishes a connection with the control device.
Optionally, the second identifying unit 603 is further configured to:
dividing the network equipment of which the hierarchy type is determined into identified network equipment, wherein the network equipment of which the hierarchy type is determined comprises the first network equipment;
judging whether network equipment to be identified which is connected with the identified network equipment and is not identified exists in each network equipment which is connected with the control equipment;
when the network equipment to be identified exists in each network equipment which is connected with the control equipment, identifying the hierarchy type of the network equipment to be identified according to the pre-acquired topology information of each network equipment which is connected with the control equipment and the hierarchy type of the identified network equipment;
and repeating the steps until the network equipment to be identified which is connected with the identified network equipment and is not identified does not exist in each network equipment which is connected with the control equipment.
Optionally, when the hierarchical type of the first network device is a virtual switch, a core layer switch, or a soft switch, as shown in fig. 6-3, the second identifying unit 603 includes:
a first identifying module 6031, configured to identify, according to topology information of each network device that establishes a connection with the control device and a hierarchy type of the first network device, a hierarchy type of a second network device that is connected with the first network device.
A second identifying module 6032, configured to identify, according to the topology information of each network device that establishes a connection with the control device and the hierarchy type of the second network device, a hierarchy type of a third network device that is connected with the second network device and is not identified.
A third identifying module 6033, configured to identify, according to the topology information of each network device that establishes a connection with the control device and the hierarchy type of the third network device, a hierarchy type of a fourth network device that is connected with the third network device and is not identified.
Optionally, as shown in fig. 6-3, the second identifying unit may further include:
a first determining module 6034, configured to determine whether the number of unrecognized network devices in the network devices connected to the control device is greater than a first preset threshold, and whether the number of the fourth network devices is greater than a second preset threshold.
A correction module 6035, configured to, when the number of unrecognized network devices in the network devices that establish a connection with the control device is greater than a first preset threshold, or the number of fourth network devices is greater than a second preset threshold, perform a recognition correction process, where the recognition correction process includes:
determining the number n of the identified third network devices;
judging whether the number m of the third network devices in the network devices connected with the fourth network device is greater than or equal to the number m of the third network devices in the network devices connected with the fourth network device according to the pre-acquired topology information of each network device connected with the control device
When the number m of the third network devices in the network devices connected with the fourth network device is larger than or equal toThe hierarchy type of the fourth network device is then corrected to the same hierarchy type as the second network device.
Optionally, when the hierarchical type of the first network device is a virtual switch, a core layer switch, or a soft switch, fig. 6-4 is a schematic structural diagram of another second identifying unit 603 provided in the embodiment of the present invention, and as shown in fig. 6-4, the second identifying unit 603 includes:
a fourth identifying module 6036, configured to identify, according to the topology information of each network device that establishes a connection with the control device and the hierarchy type of the first network device, the hierarchy type of a second network device that is connected with the first network device.
A fifth identifying module 6037, configured to identify, according to topology information of each network device that establishes a connection with the control device and the hierarchy type of the second network device, a hierarchy type of a third network device that is connected to the second network device and is not identified;
a determining module 6038, configured to determine the number n of the identified third network devices.
A second determining module 6039, configured to determine, according to topology information of each network device that establishes a connection with the control device and that is obtained in advance, whether the number m of the third network devices in the network devices connected to the fourth network device is greater than or equal to that of the network devices connected to the fourth network deviceThe fourth network device is a network device which is connected with the third network and is not identified.
A sixth identifying module 6040, configured to, when the number m of the third network devices in the network devices connected to the fourth network device is greater than or equal toThe hierarchy type of the fourth network device is identified as the same hierarchy type as the second network device.
A seventh identifying module 6041, configured to, when the number m of the third network devices in the network devices connected to the fourth network device is less thanAnd then, identifying the hierarchy type of the fourth network device according to the topology information of each network device which is acquired in advance and is connected with the control device and the hierarchy type of the third network device.
Optionally, the hierarchical type of the first network device is a virtual switch or a soft switch, the hierarchical type of the second network device is a top rack switch, the hierarchical type of the third network device is a convergence layer switch, and the hierarchical type of the fourth network device is a core layer switch.
Optionally, the connection packet includes a handshake message, a heartbeat message, or an attribute report message sent by the first network device to the control device.
In summary, an embodiment of the present invention provides an apparatus for identifying a network device in a data center network, where the apparatus is located in a control device in the data center network, and the control device may quickly identify a hierarchy type of a first network device according to a hierarchy identifier included in a received connection packet sent by the first network device, and then identify a hierarchy type of each network device that establishes a connection with the control device according to topology information of each network device and the hierarchy type of the first network device.
Fig. 7 is a schematic structural diagram of an apparatus for identifying a network device in a data center network according to another embodiment of the present invention, where the apparatus is located in a first network device in the data center network, and as shown in fig. 7, the apparatus includes:
a sending unit 701, configured to send a connection packet to a control device in the data center network, where the connection packet includes a hierarchical identifier of the first network device, so that the control device identifies a hierarchical type of the first network device according to the hierarchical identifier.
Fig. 8 is a schematic structural diagram of an apparatus for identifying a network device in a data center network according to another embodiment of the present invention, where the apparatus is located in a control device in the data center network, and as shown in fig. 8, the apparatus includes: including at least one processor 801 (e.g., CPU), at least one network interface 802 or other communication interface, memory 803, and at least one communication bus 804 for enabling communications among the devices. The processor 801 is used to execute executable modules, such as computer programs, stored in the memory 803. The memory 803 may include a high-speed Random Access Memory (RAM) and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. The communication connection between the identification means of the network device and at least one other network element in the data center network is realized through at least one network interface 802 (which may be wired or wireless), and the internet, a wide area network, a local area network, a metropolitan area network, and the like may be used.
In some embodiments, the memory 803 stores a program 8031, which program 8031 may be executed by the processor 801, this program 8031 including:
receiving a connection message sent by first network equipment in the data center network, wherein the connection message comprises a hierarchical identifier of the first network equipment;
identifying a hierarchy type of the first network device according to the hierarchy identification;
and identifying the hierarchy type of each network device connected with the control device according to the pre-acquired topology information of each network device connected with the control device and the hierarchy type of the first network device.
Optionally, the identifying, according to the topology information of each network device that establishes a connection with the control device and the hierarchy type of the first network device, the hierarchy type of each network device that establishes a connection with the control device includes:
dividing the network equipment of which the hierarchy type is determined into identified network equipment, wherein the network equipment of which the hierarchy type is determined comprises the first network equipment;
judging whether network equipment to be identified which is connected with the identified network equipment and is not identified exists in each network equipment which is connected with the control equipment;
when the network equipment to be identified exists in each network equipment which is connected with the control equipment, identifying the hierarchy type of the network equipment to be identified according to the pre-acquired topology information of each network equipment which is connected with the control equipment and the hierarchy type of the identified network equipment;
and repeating the steps until the network equipment to be identified which is connected with the identified network equipment and is not identified does not exist in each network equipment which is connected with the control equipment.
Optionally, when the hierarchy type of the first network device is a virtual switch, a core layer switch, or a soft switch, identifying the hierarchy type of each network device that establishes a connection with the control device according to the topology information of each network device that establishes a connection with the control device and the hierarchy type of the first network device, where the identifying includes:
identifying the hierarchy type of second network equipment connected with the first network equipment according to the pre-acquired topology information of each network equipment connected with the control equipment and the hierarchy type of the first network equipment;
identifying the hierarchy type of third network equipment which is connected with the second network equipment and is not identified according to the topology information of each network equipment which is acquired in advance and is connected with the control equipment and the hierarchy type of the second network equipment;
and identifying the hierarchy type of a fourth network device which is connected with the third network device and is not identified according to the topology information of each network device which is acquired in advance and is connected with the control device and the hierarchy type of the third network device.
Optionally, after identifying, according to the topology information of each network device that establishes a connection with the control device and the hierarchy type of the third network device, the hierarchy type of a fourth network device that is connected to the third network device and is not identified, the method further includes:
judging whether the number of unidentified network devices in each network device which establishes connection with the control device is larger than a first preset threshold value or not and whether the number of fourth network devices is larger than a second preset threshold value or not;
when the number of the unrecognized network devices among the network devices connected to the control device is greater than a first preset threshold, or the number of the fourth network devices is greater than a second preset threshold, performing a recognition correction process, where the recognition correction process includes:
determining the number n of the identified third network devices;
judging whether the number m of the third network devices in the network devices connected with the fourth network device is greater than or equal to the number m of the third network devices in the network devices connected with the fourth network device according to the pre-acquired topology information of each network device connected with the control device
When the number m of the third network devices in the network devices connected with the fourth network device is larger than or equal toThe hierarchy type of the fourth network device is then corrected to the same hierarchy type as the second network device.
Optionally, when the hierarchy type of the first network device is a virtual switch, a core layer switch, or a soft switch, identifying the hierarchy type of each network device that establishes a connection with the control device according to the topology information of each network device that establishes a connection with the control device and the hierarchy type of the first network device, where the identifying includes:
identifying the hierarchy type of second network equipment connected with the first network equipment according to the pre-acquired topology information of each network equipment connected with the control equipment and the hierarchy type of the first network equipment;
identifying the hierarchy type of third network equipment which is connected with the second network equipment and is not identified according to the topology information of each network equipment which is acquired in advance and is connected with the control equipment and the hierarchy type of the second network equipment;
determining the number n of the identified third network devices;
judging whether the number m of the third network devices in the network devices connected with the fourth network device is greater than or equal to the number m of the third network devices in the network devices connected with the fourth network device according to the pre-acquired topology information of each network device connected with the control deviceThe fourth network devicePreparing for the network device which establishes connection with the third network and is not identified;
when the number m of the third network devices in the network devices connected with the fourth network device is larger than or equal toIdentifying the hierarchy type of the fourth network device as the same hierarchy type as the second network device;
when the number m of the third network devices in the network devices connected with the fourth network device is less thanAnd then, identifying the hierarchy type of the fourth network device according to the topology information of each network device which is acquired in advance and is connected with the control device and the hierarchy type of the third network device.
Optionally, after the identifying, according to the topology information of each network device that establishes a connection with the control device and the hierarchy type of the first network device, the hierarchy type of each network device that establishes a connection with the control device, the method further includes:
when a newly added network device is connected with the control device, acquiring topology information of the newly added network device;
identifying the hierarchy type of the newly added network equipment according to the topology information of the newly added network equipment, the topology information of each network equipment which is connected with the control equipment and the hierarchy type of each network equipment which is connected with the control equipment;
updating the topology information of each network device connected with the control device according to the topology information of the newly added network device;
and re-identifying the hierarchy type of each network device according to the hierarchy type of the newly added network device and the updated topology information of each network device which is connected with the control device.
Optionally, the hierarchical type of the first network device is a virtual switch or a soft switch, the hierarchical type of the second network device is a top rack switch, the hierarchical type of the third network device is a convergence layer switch, and the hierarchical type of the fourth network device is a core layer switch.
Optionally, the connection packet includes a handshake message, a heartbeat message, or an attribute report message sent by the first network device to the control device.
In summary, an embodiment of the present invention provides an apparatus for identifying a network device in a data center network, where a control device may quickly identify a hierarchy type of a first network device according to a hierarchy identifier included in a received connection packet sent by the first network device, and then identify, according to topology information of each network device and the hierarchy type of the first network device, the hierarchy type of each network device that establishes a connection with the control device.
Fig. 9 is a schematic structural diagram of an apparatus for identifying a network device in a data center network according to another embodiment of the present invention, where the apparatus is located in a control device in the data center network, and as shown in fig. 9, the apparatus includes: the device includes: including at least one processor 901 (e.g., CPU), at least one network interface 902 or other communication interface, memory 903, and at least one communication bus 904 for enabling communications among the devices. The processor 901 is for executing executable modules, e.g. computer programs, stored in the memory 903. The Memory 903 may comprise a high-speed Random Access Memory (RAM) and may also comprise a non-volatile Memory, such as at least one disk Memory. The communication connection between the identification means of the network device and at least one other network element in the data center network is realized through at least one network interface 902 (which may be wired or wireless), and the internet, a wide area network, a local area network, a metropolitan area network, and the like may be used.
In some embodiments, memory 903 stores a program 9031, where program 9031 is executable by processor 901, and where program 9031 includes:
and sending a connection message to the control equipment in the data center network, wherein the connection message comprises the hierarchy identifier of the first network equipment, so that the control equipment can identify the hierarchy type of the first network equipment according to the hierarchy identifier.
The embodiment of the invention provides an identification system of network equipment in a data center network, which comprises control equipment and first network equipment;
the control device comprises an identification means which may comprise a network device in a data centre network as shown in any of figures 6-1 to 6-4;
the first network device may comprise an identification means of a network device in a data centre network as shown in fig. 7.
The embodiment of the invention provides another identification system of network equipment in a data center network, which comprises control equipment and first network equipment;
the control device may include the identification means of the network device in the data center network shown in fig. 8; the first network device may comprise the identification means of the network device in the data centre network shown in fig. 9.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (19)
1. A method for identifying network equipment in a data center network is used for control equipment in the data center network, and the method comprises the following steps:
receiving a connection message sent by first network equipment in the data center network, wherein the connection message comprises a hierarchical identifier of the first network equipment;
identifying a hierarchy type of the first network device according to the hierarchy identification;
and identifying the hierarchy type of each network device connected with the control device according to the pre-acquired topology information of each network device connected with the control device and the hierarchy type of the first network device.
2. The method according to claim 1, wherein the identifying, according to the topology information of each network device that establishes connection with the control device and the hierarchy type of the first network device, the hierarchy type of each network device that establishes connection with the control device comprises:
dividing the hierarchy type-determined network devices into identified network devices, the hierarchy type-determined network devices including the first network device;
judging whether network equipment to be identified which is connected with the identified network equipment and is not identified exists in each network equipment which is connected with the control equipment;
when the network equipment to be identified exists in each network equipment which is connected with the control equipment, identifying the hierarchy type of the network equipment to be identified according to the pre-acquired topology information of each network equipment which is connected with the control equipment and the hierarchy type of the identified network equipment;
and repeating the steps until the network equipment to be identified which is connected with the identified network equipment and is not identified does not exist in each network equipment which is connected with the control equipment.
3. The method of claim 1, wherein when the hierarchy type of the first network device is a virtual switch, a core layer switch, or a soft switch, the identifying the hierarchy type of each network device connected to the control device according to the topology information of each network device connected to the control device and the hierarchy type of the first network device, which are acquired in advance, comprises:
identifying the hierarchy type of second network equipment connected with the first network equipment according to the pre-acquired topology information of each network equipment connected with the control equipment and the hierarchy type of the first network equipment;
identifying the hierarchy type of third network equipment which is connected with the second network equipment and is not identified according to the topology information of each network equipment which is acquired in advance and is connected with the control equipment and the hierarchy type of the second network equipment;
and identifying the hierarchy type of a fourth network device which is connected with the third network device and is not identified according to the topology information of each network device which is acquired in advance and is connected with the control device and the hierarchy type of the third network device.
4. The method according to claim 3, wherein after identifying a hierarchy type of a fourth network device that is connected to the third network device and is not identified, based on topology information of each network device that establishes a connection with the control device acquired in advance and the hierarchy type of the third network device, the method further comprises:
judging whether the number of unidentified network devices in each network device which establishes connection with the control device is larger than a first preset threshold value or not, and whether the number of fourth network devices is larger than a second preset threshold value or not;
when the number of unrecognized network devices among the network devices that establish connection with the control device is greater than a first preset threshold, or the number of fourth network devices is greater than a second preset threshold, performing a recognition correction process, where the recognition correction process includes:
determining the number n of the identified third network devices;
judging whether the number m of the third network devices in the network devices connected with the fourth network device is greater than or equal to the number m of the third network devices in the network devices connected with the fourth network device according to the pre-acquired topology information of each network device connected with the control deviceWherein,represents rounding up;
when the number m of the third network devices in the network devices connected with the fourth network device is greater than or equal toAnd correcting the hierarchy type of the fourth network device to be the same as the hierarchy type of the second network device.
5. The method of claim 1, wherein when the hierarchy type of the first network device is a virtual switch, a core layer switch, or a soft switch, the identifying the hierarchy type of each network device connected to the control device according to the topology information of each network device connected to the control device and the hierarchy type of the first network device, which are acquired in advance, comprises:
identifying the hierarchy type of second network equipment connected with the first network equipment according to the pre-acquired topology information of each network equipment connected with the control equipment and the hierarchy type of the first network equipment;
identifying the hierarchy type of third network equipment which is connected with the second network equipment and is not identified according to the topology information of each network equipment which is acquired in advance and is connected with the control equipment and the hierarchy type of the second network equipment;
determining the number n of the identified third network devices;
judging whether the number m of the third network devices in the network devices connected with the fourth network device is greater than or equal to the number m of the third network devices in the network devices connected with the fourth network device according to the pre-acquired topology information of each network device connected with the control deviceThe fourth network device is a network device which is connected with the third network and is not identified;
when the number m of the third network devices in the network devices connected with the fourth network device is greater than or equal toIdentifying a hierarchy type of the fourth network device as the same hierarchy type as the second network device;
when the number m of the third network devices in the network devices connected with the fourth network device is less thanAnd then, identifying the hierarchy type of the fourth network device according to the topology information of each network device which is acquired in advance and is connected with the control device and the hierarchy type of the third network device.
6. The method according to any one of claims 1 to 5, wherein after identifying the hierarchy type of each network device that establishes connection with the control device according to the topology information of each network device that establishes connection with the control device, which is acquired in advance, and the hierarchy type of the first network device, the method further comprises:
when the newly added network equipment is connected with the control equipment, acquiring the topology information of the newly added network equipment;
identifying the hierarchy type of the newly added network equipment according to the topology information of the newly added network equipment, the topology information of each network equipment which is connected with the control equipment and the hierarchy type of each network equipment which is connected with the control equipment;
updating the topology information of each network device connected with the control device according to the topology information of the newly added network device;
and re-identifying the hierarchy type of each network device according to the hierarchy type of the newly added network device and the updated topology information of each network device which is connected with the control device.
7. The method of claim 3 or 5, wherein the first network device is a virtual switch or a soft switch, the second network device is a top-of-rack switch, the third network device is a convergence layer switch, and the fourth network device is a core layer switch.
8. The method according to any one of claims 1 to 5,
the connection packet includes a handshake message, a heartbeat message, or an attribute report message sent by the first network device to the control device.
9. A method for identifying a network device in a data center network, the method being used for a first network device in the data center network, the method comprising:
and sending a connection message to a control device in the data center network, wherein the connection message comprises a hierarchy identifier of the first network device, so that the control device can identify the hierarchy type of the first network device according to the hierarchy identifier.
10. An apparatus for identifying a network device in a data center network, the apparatus being located in a control device in the data center network, the apparatus comprising:
a receiving unit, configured to receive a connection packet sent by a first network device in the data center network, where the connection packet includes a hierarchical identifier of the first network device;
a first identification unit, configured to identify a hierarchy type of the first network device according to the hierarchy identifier;
and the second identification unit is used for identifying the hierarchy type of each network device which is connected with the control device according to the topology information of each network device which is connected with the control device and is acquired in advance and the hierarchy type of the first network device.
11. The apparatus of claim 10, wherein the second identifying unit is further configured to:
dividing the hierarchy type-determined network devices into identified network devices, the hierarchy type-determined network devices including the first network device;
judging whether network equipment to be identified which is connected with the identified network equipment and is not identified exists in each network equipment which is connected with the control equipment;
when the network equipment to be identified exists in each network equipment which is connected with the control equipment, identifying the hierarchy type of the network equipment to be identified according to the pre-acquired topology information of each network equipment which is connected with the control equipment and the hierarchy type of the identified network equipment;
and repeating the steps until the network equipment to be identified which is connected with the identified network equipment and is not identified does not exist in each network equipment which is connected with the control equipment.
12. The apparatus of claim 10, wherein when the hierarchical type of the first network device is a virtual switch, a core layer switch, or a soft switch, the second identifying unit comprises:
the first identification module is used for identifying the hierarchy type of second network equipment connected with the first network equipment according to the topology information of each network equipment which is acquired in advance and is connected with the control equipment and the hierarchy type of the first network equipment;
the second identification module is used for identifying the hierarchy type of third network equipment which is connected with the second network equipment and is not identified according to the topology information of each network equipment which is acquired in advance and is connected with the control equipment and the hierarchy type of the second network equipment;
and the third identification module is used for identifying the hierarchy type of a fourth network device which is connected with the third network device and is not identified according to the topology information of each network device which is connected with the control device and is acquired in advance and the hierarchy type of the third network device.
13. The apparatus of claim 12, wherein the second identification unit further comprises:
the first judgment module is used for judging whether the number of unidentified network devices in each network device which establishes connection with the control device is larger than a first preset threshold value or not and whether the number of the fourth network devices is larger than a second preset threshold value or not;
a correction module, configured to execute a recognition correction process when the number of unrecognized network devices in the network devices that establish connection with the control device is greater than a first preset threshold, or the number of fourth network devices is greater than a second preset threshold, where the recognition correction process includes:
determining the number n of the identified third network devices;
judging whether the number m of the third network devices in the network devices connected with the fourth network device is greater than or equal to the number m of the third network devices in the network devices connected with the fourth network device according to the pre-acquired topology information of each network device connected with the control deviceWherein,represents rounding up;
when the number m of the third network devices in the network devices connected with the fourth network device is greater than or equal toAnd correcting the hierarchy type of the fourth network device to be the same as the hierarchy type of the second network device.
14. The apparatus of claim 10, wherein when the hierarchical type of the first network device is a virtual switch, a core layer switch, or a soft switch, the second identifying unit further comprises:
a fourth identification module, configured to identify, according to topology information of each network device that establishes a connection with the control device and a hierarchy type of the first network device, a hierarchy type of a second network device that is connected with the first network device;
a fifth identification module, configured to identify, according to topology information of each network device that is acquired in advance and that establishes connection with the control device, and a hierarchy type of the second network device, a hierarchy type of a third network device that is connected to the second network device and that is not identified;
a determining module, configured to determine the number n of the identified third network devices;
a second judging module, configured to judge, according to topology information of each network device that establishes a connection with the control device and that is obtained in advance, whether or not the number m of the third network devices in the network devices connected to the fourth network device is greater than or equal toThe fourth network device is a network device which is connected with the third network and is not identified;
a sixth identification module, configured to identify the network device to which the fourth network device is connectedThe number m of the third network devices is greater than or equal toIdentifying a hierarchy type of the fourth network device as the same hierarchy type as the second network device;
a seventh identifying module, configured to, when the number m of the third network devices in the network devices connected to the fourth network device is smaller thanAnd then, identifying the hierarchy type of the fourth network device according to the topology information of each network device which is acquired in advance and is connected with the control device and the hierarchy type of the third network device.
15. The apparatus of any one of claims 10 to 14, further comprising:
the acquisition unit is used for acquiring the topology information of the newly added network equipment when the newly added network equipment is connected with the control equipment;
a third identification unit, configured to identify a hierarchy type of the newly added network device according to topology information of the newly added network device, topology information of each network device that establishes a connection with the control device, and a hierarchy type of each network device that establishes a connection with the control device;
the updating unit is used for updating the topology information of each network device which is connected with the control device according to the topology information of the newly added network device;
and a fourth identifying unit, configured to re-identify the hierarchy type of each network device according to the hierarchy type of the newly added network device and the updated topology information of each network device that establishes a connection with the control device.
16. The apparatus of claim 12 or 14, wherein the first network device is a virtual switch or a soft switch, the second network device is a top-of-rack switch, the third network device is a convergence layer switch, and the fourth network device is a core layer switch.
17. The apparatus according to any one of claims 10 to 14,
the connection packet includes a handshake message, a heartbeat message, or an attribute report message sent by the first network device to the control device.
18. An apparatus for identifying network devices in a data center network, the apparatus being located in a first network device in the data center network, the apparatus comprising:
a sending unit, configured to send a connection packet to a control device in the data center network, where the connection packet includes a hierarchical identifier of the first network device, so that the control device identifies a hierarchical type of the first network device according to the hierarchical identifier.
19. A system for identifying network devices in a data center network, the system comprising: a control device and a first network device;
the control device comprises identification means of a network device in the data centre network according to any one of claims 10 to 17;
the first network device comprises the identification means of a network device in a data center network of claim 18.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610046155.8A CN106998299B (en) | 2016-01-22 | 2016-01-22 | The recognition methods of the network equipment, apparatus and system in data center network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610046155.8A CN106998299B (en) | 2016-01-22 | 2016-01-22 | The recognition methods of the network equipment, apparatus and system in data center network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106998299A CN106998299A (en) | 2017-08-01 |
CN106998299B true CN106998299B (en) | 2019-10-18 |
Family
ID=59428522
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610046155.8A Active CN106998299B (en) | 2016-01-22 | 2016-01-22 | The recognition methods of the network equipment, apparatus and system in data center network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106998299B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108418727B (en) * | 2018-01-26 | 2020-04-24 | 中国科学院信息工程研究所 | Method and system for detecting network equipment |
CN108566296B (en) * | 2018-03-26 | 2021-07-06 | 新华三技术有限公司 | Network device layering method, network management device and computer readable storage medium |
CN108880899B (en) * | 2018-06-30 | 2021-10-15 | 华为技术有限公司 | Network topological graph generation method and server |
CN109150661B (en) * | 2018-08-30 | 2020-06-09 | 新华三技术有限公司 | Equipment discovery method and device |
CN113315655A (en) * | 2021-05-24 | 2021-08-27 | 恒隆通信技术有限公司 | Information configuration method of intelligent networking environment and intelligent networking system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102143007A (en) * | 2011-05-03 | 2011-08-03 | 中国南方电网有限责任公司 | Distribution-based hierarchical network topology discovery method |
CN102420775A (en) * | 2012-01-10 | 2012-04-18 | 西安电子科技大学 | Routing method for module-expansion-based data center network topology system |
CN103269387A (en) * | 2013-05-21 | 2013-08-28 | 中国科学院计算技术研究所 | Automatic configuration method for data center network addresses |
CN103441935A (en) * | 2013-08-16 | 2013-12-11 | 北京星网锐捷网络技术有限公司 | Method and device capable of automatically recognizing adjacency relation between server and access switch |
CN104518927A (en) * | 2014-12-15 | 2015-04-15 | 清华大学 | Detecting method and device of error connection in data center network |
-
2016
- 2016-01-22 CN CN201610046155.8A patent/CN106998299B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102143007A (en) * | 2011-05-03 | 2011-08-03 | 中国南方电网有限责任公司 | Distribution-based hierarchical network topology discovery method |
CN102420775A (en) * | 2012-01-10 | 2012-04-18 | 西安电子科技大学 | Routing method for module-expansion-based data center network topology system |
CN103269387A (en) * | 2013-05-21 | 2013-08-28 | 中国科学院计算技术研究所 | Automatic configuration method for data center network addresses |
CN103441935A (en) * | 2013-08-16 | 2013-12-11 | 北京星网锐捷网络技术有限公司 | Method and device capable of automatically recognizing adjacency relation between server and access switch |
CN104518927A (en) * | 2014-12-15 | 2015-04-15 | 清华大学 | Detecting method and device of error connection in data center network |
Also Published As
Publication number | Publication date |
---|---|
CN106998299A (en) | 2017-08-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106998299B (en) | The recognition methods of the network equipment, apparatus and system in data center network | |
US9083613B2 (en) | Detection of cabling error in communication network | |
US9990243B2 (en) | Using spanning tree protocol to determine a layer 2 topology of an ethernet type network | |
CN108965014B (en) | QoS-aware service chain backup method and system | |
US10284465B2 (en) | Efficient algorithmic forwarding in fat-tree networks | |
CN111245747B (en) | Networking method for data center network and data center network | |
CN107306224B (en) | Routing path updating method, network management device and routing equipment | |
CN105634974B (en) | Route determining methods and device in software defined network | |
CN105743801A (en) | Method and device of flow forwarding of stack system | |
CN108696453B (en) | Lightweight SDN service flow notification method and system | |
CN108092822B (en) | Method and system for recovering power communication network fault link | |
US20120250700A1 (en) | Method, apparatus, and system for data transmission | |
CN103716187B (en) | Network topology structure determination method and system | |
EP3213441B1 (en) | Redundancy for port extender chains | |
CN115510936A (en) | Model training method based on federal learning and cluster analyzer | |
CN110830394B (en) | Method for generating routing table based on RapidIO network | |
JP7056207B2 (en) | Topology determination device, topology determination method, topology determination program and communication system | |
CN106230717A (en) | Route obtaining method in group system and device | |
US20160315787A1 (en) | Network system, control devices, control method, and program | |
CN110430140A (en) | Path processing method, device, equipment and storage medium | |
CN113507413B (en) | Route optimization method and device and computing equipment | |
CN108989069B (en) | Network link detection method, electronic equipment and computer storage medium | |
CN110086654B (en) | Master and slave deployment method based on reliability under software defined data center | |
CN112468963A (en) | Wireless sensor network connectivity repairing method, device, equipment and storage medium | |
CN115514700A (en) | Method, device and equipment for determining backup path between node equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20211222 Address after: 450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province Patentee after: xFusion Digital Technologies Co., Ltd. Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd. |