Disclosure of Invention
The embodiment of the application provides a deployment method of a data center server management network to solve the problems of complex deployment process, easy error and low deployment efficiency in the prior art.
In view of this, a first aspect of the present application provides a deployment method for a data center server management network. In the method, after a network card of a certain server is accessed to the TOR, the TOR can acquire a Media Access Control (MAC) address of the network card and can acquire a corresponding relation between a preset management network card and a management network, wherein in the corresponding relation, each management network card has a unique MAC address, and each management network corresponds to a VLAN; the corresponding relationship is already laid out when the data center is deployed, then, a management network corresponding to the MAC address is tried to be determined according to the corresponding relationship, if the management network of the MAC address can be determined, the inserted network card is the management network card of the server, and at this time, the network card is accessed to a Virtual Local Area Network (VLAN) corresponding to the management network.
It can be seen that, in the deployment process, because the corresponding relationship between the management network card and the management network is preset in advance, each management network corresponds to a VLAN, and the MAC address of each management network card is different, therefore, after the TOR identifies the MAC address of the accessed network card from the access port, the TOR can match the MAC address with the preset corresponding relation, as long as the TOR can match the management network, the TOR can access the network card to the VLAN corresponding to the management network, thereby completing the deployment process, in the mode, the network configuration process and the engineering construction part are carried out, namely, the physical plugging process is separated and decoupled, the network card can be plugged into any port on the TOR in a blind way, the TOR can complete the access of the corresponding management network only according to the MAC address of the accessed network card, therefore, the configuration and deployment process is simplified, the configuration and deployment efficiency is greatly improved, and the hidden trouble of misconnection is eliminated.
In some embodiments, if it is found that the management network corresponding to the MAC address cannot be found according to the correspondence between the preset management network card and the management network, that is, the MAC address does not have a corresponding management network, at this time, configuration information of an access port of the network card access TOR is queried, and the network card is accessed to the VLAN corresponding to the configuration information according to the configuration information when the configuration information exists.
In some embodiments, if the corresponding management network cannot be found according to the MAC address and the access port on the TOR does not have configuration information, in this case, the network card is added to a VLAN preset by the TOR, the access port without configuration information is referred to as an air interface, and the preset VLAN does not correspond to a local area network inside the TOR of any functional network. Further enhancing the realizability of the deployment method.
In some embodiments, a management network corresponding to the MAC address is searched for through the correspondence between the MAC address and the storage, and if the management network can be found, the network card is managed when the network card corresponding to the MAC address is determined, instead of the network card with other functions, such as a service network card.
In some embodiments, the manner in which the TOR obtains the corresponding relationship between the preset management network card and the management network is different according to different storage locations of the corresponding relationship, if the corresponding relationship is directly stored on the TOR, the TOR directly reads an internal memory to obtain the corresponding relationship, and if the corresponding relationship is stored on the network, the TOR needs to be connected to the network and obtain the corresponding relationship by sending a request. The realizability of the deployment method can be enhanced.
In some embodiments, the preset corresponding relationship between the MAC address of the management network card and the management network may be configured by the TOR, and the configuration process may be that the TOR first acquires the MAC addresses of the management network cards of all servers under the TOR, and this manner may be that the MAC addresses of all network cards are directly input according to a deployment plan, or of course, all network cards may be directly plugged into access ports of the TOR and acquired by the TOR; and then the TOR respectively configures the management network cards of all the servers to the VLAN (virtual local area network) based on the MAC address of the corresponding management network according to the MAC address, each management network corresponds to one VLAN, and the configuration process of the corresponding relation is completed. It can be seen that the configuration process can make the corresponding relationship be a one-to-one relationship for the network card, and a one-to-one or one-to-many relationship for the VLAN managing the network. The realizability of the scheme can be enhanced.
A second aspect of an embodiment of the present application further provides a top-rack switch including at least one module configured to perform the deployment method of the data center server management network provided in the first aspect or any embodiment of the first aspect of the present application.
A third aspect of an embodiment of the present application further provides a top-rack switch, including a processor, a memory, a transceiver, and an access port, where the processor, the memory, and the transceiver are all connected to a bus, the access port is connected to the transceiver to implement data transceiving, a program code is stored in the memory, and the processor executes the program code in the memory to implement the deployment method of the data center server management network provided in any one of the first aspect or the first aspect of the present application.
A fourth aspect of the embodiments of the present application further provides a computer storage medium, where a program code, such as a program code of an application layer, is stored in the computer storage medium, and when the program code is executed by a processor, the cache scrubbing method provided in the first aspect or any one of the implementation manners of the first aspect is executed. The computer storage medium includes, but is not limited to, a flash memory (english: flash memory), a hard disk (HDD) or a Solid State Disk (SSD).
Detailed Description
The embodiment of the application provides a deployment method of a management network of a data center server, which enables a network card accessed to a TOR to be automatically accessed to a VLAN (virtual local area network) of a corresponding management network by the TOR through presetting a corresponding relation between an MAC (media access control) address of a configured management network card and the management network, and realizes an automatic configuration process and blind plugging of an interface on the TOR.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments.
The following are detailed below.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the above-described drawings (if any) are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein.
Some of the features of the data center are briefly described below, wherein,
the modularization of the data center should take the adjustment and development of services into consideration, and the network structure and the system structure should be modularized and easy to expand. The modular deployment has the following advantages: the system is easy to expand, flexible in modular design mode, and capable of expanding according to business requirements and shortening planning and deployment periods. The investment utilization rate is improved, and the maintenance cost is reduced. The energy utilization rate is improved, the cold and hot channels are separated, and the requirements of the green and energy-saving principle are met.
The data center has high reliability in that a redundant network design is adopted in the network design to realize the redundancy of key equipment and links; the key equipment selects high-reliability products, and can realize single board, module hot plug, control module design redundancy and power supply redundancy; by reducing the network hierarchy, the network structure is simplified, and the reliability is improved from the networking architecture.
The data center is in safe isolation, namely partition logic isolation is carried out according to services and authorities, and particularly important services are physically isolated. The service taking the server as the center, IP storage backup, a management network and other networks are logically isolated, and the management network adopts physical isolation.
The manageability and maintainability of a data center is that the network should have good manageability. In order to facilitate maintenance, a product with high integration level and universal modules should be selected as far as possible.
The current data center network construction is based on a design principle of flexibility, high availability and easy management, firstly partitions are divided according to service requirements and security levels, each partition is connected to a service core, and a modular design method is adopted in each partition.
The following describes a current data center based on a TOR architecture, please refer to fig. 1, where fig. 1 is an application scenario diagram of an embodiment of the present application, where a TOR is connected to a gateway, a plurality of servers are connected to a bottom of each TOR, the servers are connected to the TOR through network cards, each network card includes a service network card and a management network card, the management network and the service network are established based on the servers, each management network or the service network may be correspondingly allocated with one or more servers, and for a server, generally, the server only corresponds to one management network or one service network, before specific configuration, a corresponding relationship between the management network card and the management network and a corresponding relationship between the service network card and the service network are preset.
In specific configuration (for example, a management network card configuration), a management network card of a server is first plugged into a certain physical port of a TOR, then a port number of the port is recorded, then the management platform of the TOR is logged in, the port is configured into a corresponding management network, configuration of one management network card is completed, when the management network cards of a plurality of servers need to be configured, the physical port numbers plugged into the TOR need to be recorded one by one, and then the management platform of the TOR is configured one by one.
When configuration change is needed, namely, a management network card is changed to access a port of the TOR, the management network card of the server is checked to be connected to an original port number of the TOR, then the management network card of the server is unplugged and plugged into the change port of the TOR, the change port number is recorded, then the management platform of the TOR is logged in, the change port is configured in a corresponding management network, the management network configuration under the original port is removed, and the configuration change process is completed.
It can be seen that, in the above manner, both configuring a new port and changing a port need to perform a physical port access process and a software configuration process, that is, it is equivalent to binding a management network card or a service network card of a server with a port number of a TOR, so that configuration is not allowed to be changed randomly after configuration is completed, and when the management network card changes a port accessed to the TOR, the port needs to be reconfigured so as to be configured into a corresponding management network; secondly, in this method, since the server network card includes the service network card and the management network card, the network card is bound by the port number, so that the deployment process becomes very complicated, and the problem of port plugging error is easily caused, that is, the service network card is plugged into the port of the management network card, or the management network card is plugged into the port of the service network card, and the management network card is plugged into the port corresponding to the management network which is not self-corresponding, and the error easily causes unnecessary problem in the data center.
To solve the above problem, an embodiment of the present application adopts a method for deploying a data center server management network, please refer to fig. 2, where fig. 2 is a diagram of an embodiment of the method for deploying a data center server management network according to the embodiment of the present application, and the method may include:
201. the TOR acquires the MAC address of the network card of the server accessed to the access port of the TOR.
In the data center architecture, when a network card of a server accesses to a TOR in a physical connection manner, the TOR first obtains a MAC address of the network card. Since the MAC address is unique for each network card, it is already allocated before the network card leaves the factory, and thus there are no two network cards with the same MAC address.
202. The TOR acquires the corresponding relation between the MAC address of the preset management network card and the management network.
The corresponding relationship between the management network card and the management network is divided in advance according to a pre-established network deployment plan, that is, specifically, the management network cards are allocated to one management network, the corresponding relationship between the MAC address and the management network can be preset due to the uniqueness of the MAC address of the management network card, in addition, each management network corresponds to one VLAN, and the network card added to the VLAN is equivalent to be accessed to the management network.
Optionally, according to different storage manners of the correspondence between the MAC address of the management network card and the management network, the manner in which the TOR obtains the correspondence is also different, and if the correspondence is stored in the TOR, the TOR reads the local storage to obtain the correspondence, and for example, if the correspondence is stored in a network to which the TOR can be connected, the manner in which the TOR obtains the correspondence is to obtain the correspondence by accessing the network.
203. The TOR judges whether the MAC address has a corresponding management network according to the correspondence between the MAC address of the management network card and the management network, and if so, executes step 204.
It can be understood that, after acquiring the correspondence between the MAC address of the management network card and the management network and the MAC address of the network card accessed to the TOR, the TOR makes a determination to match the MAC address of the network card with the MAC address in the correspondence, and if the MAC address can be matched, it indicates that the network card is the preset management network card, and at this time, the procedure goes to step 204.
204. And the TOR accesses the network card corresponding to the MAC address into the VLAN corresponding to the management network.
After the management network corresponding to the MAC address is determined, the VLAN of the management network corresponding to the MAC address is found, and the MAC address is added into the VLAN, so that the process that the network card is added into the management network is completed.
It can be seen that, in the deployment process, because the corresponding relationship between the management network card and the management network is preset in advance, each management network corresponds to a VLAN, and the MAC address of each management network card is different, therefore, after the TOR identifies the MAC address of the accessed network card from the access port, the TOR can match the MAC address with the preset corresponding relation, as long as the TOR can match the management network, the TOR can access the network card to the VLAN corresponding to the management network, thereby completing the deployment process, in the mode, the network configuration process and the engineering construction part are carried out, namely, the physical plugging process is separated and decoupled, the network card can be plugged into any port on the TOR in a blind way, the TOR can complete the access of the corresponding management network only according to the MAC address of the accessed network card, therefore, the configuration and deployment process is simplified, the configuration and deployment efficiency is greatly improved, and the hidden trouble of misconnection is eliminated.
Optionally, if the TOR determines that the MAC address does not have a corresponding management network according to a preset correspondence between a management network card and a management network, that is, the network card is not one of the pre-planned management network cards, at this time, the TOR queries configuration information of an access port to which the network card is accessed, and accesses the network card corresponding to the MAC address to a VLAN corresponding to the configuration information according to an indication of the configuration information, so as to complete configuration of the network card, thereby ensuring that the network card accessed to the TOR can be correctly identified and allocated.
Of course, if no configuration information is provided on the access port of the TOR, that is, the interface is an air interface, the network card corresponding to the MAC address is accessed to a VLAN preset by the TOR, where the preset VLAN is designed corresponding to the air interface, and at this time, the interface does not correspond to any service network or management network, but is an independent network.
In addition, as for the correspondence between the MAC address of the management network card and the management network, which can be configured by the TOR, specifically referring to fig. 3, fig. 3 is a diagram of another embodiment of the deployment method of the data center server management network according to the embodiment of the present application, in the diagram, a process of configuring the correspondence between the MAC address of the management network card and the management network by the TOR may be:
301. and acquiring MAC addresses of the management network cards of all servers under the TOR.
All servers under the TOR refer to servers which are allocated to the TOR in the process of deploying all data centers, and the management network cards of the servers are connected to the TOR, so that the TOR can match the network cards which access the TOR in the process of actual configuration by acquiring the MAC addresses of the management network cards of the servers.
302. And the TOR respectively configures the management network cards of all the servers to the VLAN based on the MAC address of different management networks according to the MAC address.
After the MAC addresses of the management network cards of all the servers are obtained, each MAC address is assigned to a VLAN of the corresponding management network based on the MAC address according to the function corresponding to each server in the deployment plan, and each management network corresponds to one VLAN. It can be understood that the correspondence between the MAC address and the VLAN is one-to-one correspondence, but the correspondence between the MAC address and the VLAN corresponding to one VLAN can be one-to-many correspondence, that is, the management network cards of a plurality of servers can be added to the same management network, and the management network card of one server cannot be added to two management networks at the same time.
In the above description, a deployment method of a data center server management network of the present application is described, and referring to fig. 4, fig. 4 is a diagram of an embodiment of a switch assumed in the present application, where the top-of-rack switch 4 includes:
an obtaining module 401, configured to obtain an MAC address of a network card of a server accessing to the TOR access port;
the obtaining module 401 is further configured to obtain a correspondence between a preset MAC address of a management network card and a management network, where each management network card has a unique MAC address, and each management network corresponds to one VLAN;
the processing module 402 is configured to access the network card corresponding to the MAC address to the virtual local area network VLAN corresponding to the management network when the management network corresponding to the MAC address is determined according to the correspondence between the MAC address of the management network card and the management network.
It should be noted that the deployment process of the management network of the top-of-rack switch is similar to that of the data center management network in the embodiment shown in fig. 2, and is not described here again.
Optionally, the processing module 402 is further configured to: if the MAC address does not have a corresponding management network according to the corresponding relation between a preset management network card and the management network, inquiring the configuration information of an access port accessed by the network card; and accessing the network card corresponding to the MAC address into the VLAN corresponding to the configuration information according to the configuration information.
It should be noted that the processing procedure is similar to that described in the embodiment shown in fig. 2 with respect to step 204, and is not described here again.
Optionally, the processing module 402 is further configured to: and if the access port accessed by the network card is determined to have no configuration information, accessing the network card corresponding to the MAC address to the VLAN preset by the TOR.
It should be noted that the access port without configuration information is referred to as an air interface, and the preset VLAN does not correspond to a local area network within a TOR of any functional network. The processing procedure is similar to that described with respect to step 204 in the embodiment shown in fig. 2, and is not described here again.
Optionally, the network card of the server includes a service network card and a management network card, and the processing module 402 is further configured to: and when the MAC address has a corresponding management network, determining that the network card corresponding to the MAC address is a management network card.
It should be noted that the processing procedure is similar to that described in the embodiment shown in fig. 2 with respect to step 204, and is not described here again.
Optionally, a preset corresponding relationship between the management network card and the management network is stored in the TOR or in the network, and the obtaining module is specifically configured to: reading a local storage to obtain a corresponding relation between a preset management network card and a management network; or the like, or, alternatively,
and acquiring the corresponding relation between the preset management network card and the management network through the network.
It should be noted that the obtaining process in the embodiment shown in fig. 2 is similar to the description of step 202, and is not described here again.
Optionally, the preset corresponding relationship between the MAC address of the management network card and the management network is configured by the processing module, and the obtaining module 401 is further specifically configured to: acquiring MAC addresses of management network cards of all servers under the TOR; the processing module 402 is further specifically configured to: and respectively configuring the management network cards of all the servers to the VLAN (virtual local area network) based on the MAC address of the corresponding management network according to the MAC address, wherein each management network corresponds to one VLAN.
It should be noted that the manner of acquiring the MAC address may be directly inputting the MAC addresses of all the network cards according to the deployment plan, and certainly, all the network cards may also be directly plugged into the access ports of the TOR and acquired by the TOR, and in addition, the configuration process of the correspondence is similar to the configuration process of the correspondence between the MAC address of the management network card and the management network in the embodiment shown in fig. 3, and is not described here again.
The structure of a top-of-rack switch in the embodiments of the present application is described below with reference to fig. 5, where fig. 5 is a diagram of one embodiment of a top-of-rack switch in the embodiments of the present application, where the top-of-rack switch 5 may include at least one processor 501, at least one transceiver 502, a memory 503, and access ports 504, all connected to a bus, where the top-of-rack switch in the embodiments of the present application may have more or fewer components than shown in fig. 5, may combine two or more components, or may have a different configuration or arrangement of components, and each component may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
Specifically, for the embodiment shown in fig. 4, the processor 501 can implement the functions of the processing module 402 and the obtaining module 401 in the embodiment shown in fig. 4, the transceiver 502 is connected to the access port 504 for transceiving data of the top-rack switch, the memory 503 is used for storing instructions and data to be executed by the processor 501, and the processor 501 is used for executing the instructions in the memory to implement the deployment process of the data center management network.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be replaced; and the modifications or the substitutions do not make the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.