The content of the invention
The embodiment of the present application solves existing deployment there is provided a kind of dispositions method of data center server management network
Process is complicated, easily error, the low problem of deployment efficiency.
In view of this, the application first aspect provides the dispositions method that a kind of data center server manages network.The party
As long as after the network interface card of a certain server is linked into TOR in method, TOR can obtain medium access control (MAC, the Media of the network interface card
Access Control) address, and can in the lump obtain default management network interface card and the corresponding relation for managing network, and the correspondence
In relation, each described management network interface card is respectively provided with unique MAC Address, one VLAN of each management network correspondence;The correspondence is closed
System has just been laid out when data center is disposed, and can be attempted determining that the MAC Address is corresponding afterwards according to this corresponding relation
Management network, if can determine that out the management network of the MAC Address, then it represents that the network interface card of insertion is the management network interface card of server,
Now the network interface card can be accessed the corresponding VLAN of management network (VLAN, Virtual Local Area
Network)。
As can be seen that during disposing herein, due to being carried out with the corresponding relation of management network to management network interface card in advance
It is default, and each management network is corresponded into a VLAN, and the MAC Address of each management network interface card is differed, therefore,
TOR just can be carried out itself and default corresponding relation after the MAC Address of network interface card of access is recognized from access interface
Match somebody with somebody, as long as management network can be matched, becoming can be linked into VLAN to that should manage network by the network interface card, so that completion portion
Administration's process, decoupling is separated in this mode by network configuration process and engineering construction part, i.e. physics grafting process, and network interface card can be with blind
The arbitrary port on TOR is plugged into, TOR just can complete connecing for correspondence management network according only to the MAC Address of the network interface card for accessing
Enter, so as to simplify configuration deployment process, greatly improve configuration deployment efficiency, and eliminate the hidden danger of misconnection.
In certain embodiments, if finding to can not find MAC with the corresponding relation of management network according to default management network interface card
The corresponding management network in address, the i.e. MAC Address do not have corresponding management network, can now inquire about the network interface card and access on TOR
The configuration information of access interface, it is just according to the configuration information that network interface card access configuration information is corresponding when with configuration information
VLAN, it can be seen that the network interface card of the management network for accessing carries out network when there is configuration information always according to configuration information
Access, further enhance the realizability of dispositions method.
In certain embodiments, if can not find corresponding management network, and the access interface on TOR according to MAC Address
Also information is configured without, under this situation, the network interface card can be added in the default VLAN of TOR, the incoming end without configuration information
Mouth is referred to as eating dishes without rice or wine, and default VLAN does not correspond to the LAN inside a TOR of any functional network.Further enhance
The realizability of dispositions method.
In certain embodiments, by MAC Address and the management net of the corresponding relation corresponding MAC Address of lookup of storage
Network, if can find, network interface card is managed when being capable of determining that the corresponding network interface card of the MAC Address, rather than the network interface card of other functions,
Such as business network interface card.
In certain embodiments, TOR obtain it is default management network interface card with management network corresponding relation mode according to be somebody's turn to do
The position of corresponding relation storage it is different and different, if being stored directly on TOR such as the corresponding relation, TOR directly reads
The corresponding relation is obtained by taking the memory of inside, if corresponding relation storage is on network, TOR needs to be connected to the net
Network simultaneously obtains the corresponding relation by way of sending request.The realizability of dispositions method can be strengthened.
In certain embodiments, the MAC Address of default management network interface card and the corresponding relation of management network are by can be by TOR
Configuration, the configuration process can be that TOR obtains the MAC Address of the management network interface card of the Servers-all of the TOR subordinate first,
This mode can be the MAC Address that all network interface cards are directly inputted according to deployment plan, it is of course also possible to directly insert all network interface cards
It is connected on the access interface of TOR, is obtained by TOR;TOR matches somebody with somebody the management network interface card of Servers-all according to MAC Address respectively afterwards
The VLAN based on MAC Address of corresponding management network is put, each management network one VLAN of correspondence completes corresponding relation
Configuration process.As can be seen that it is man-to-man relation, pin to enable to corresponding relation to be directed to for network interface card by this configuration process
VLAN to managing network can be then one-to-one or one-to-many relation.It is capable of the realizability of enhanced scheme.
The embodiment of the present application second aspect also provides a kind of frame top formula interchanger, including for performing the application first aspect
Or at least one module of the dispositions method of the data center server management network provided in any embodiment of first aspect.
The embodiment of the present application third aspect also provides a kind of frame top formula interchanger, including processor, memory, transceiver and
Access interface, processor, memory and transceiver are connected with bus, and access interface is connected with transceiver and realizes data
Transmitting-receiving, have program stored therein code in the memory, and the program code in the computing device memory realizes the application
The data center server provided in any embodiment of first aspect or first aspect manages the dispositions method of network.
The embodiment of the present application fourth aspect also provides a kind of computer-readable storage medium, is stored in the computer-readable storage medium
The program code of program code, such as application layer, when the program code is run by processor, performs first aspect or first aspect
The cache method for cleaning that any one implementation is provided.The computer-readable storage medium includes but is not limited to flash memory
(English:Flash memory), hard disk (English:Hard disk drive, referred to as:HDD) or solid state hard disc (English:solid
State drive, referred to as:SSD).
Specific embodiment
The embodiment of the present application provides the dispositions method that a kind of data center server manages network, and the method is by default
The MAC Address of the management network interface card for having configured enables that the network interface card for accessing TOR is connect automatically by TOR with the corresponding relation of management network
Enter the VLAN to corresponding management network, realize the blindmate of the interface on automatic configuration process and TOR.
In order that those skilled in the art more fully understand application scheme, below in conjunction with the embodiment of the present application
Accompanying drawing, is clearly and completely described to the technical scheme in the embodiment of the present application, it is clear that described embodiment is only
The embodiment of the application part, rather than whole embodiments.
It is described in detail individually below.
Term " first ", " second ", " the 3rd " " in the description and claims of this application and above-mentioned accompanying drawing
Four " etc. (if present) is for distinguishing similar object, without for describing specific order or precedence.Should manage
The data that solution is so used can be exchanged in the appropriate case, so that the embodiments described herein can be with except illustrating herein
Or the order beyond the content of description is implemented.
Some characteristics to data center are briefly described below, wherein,
The modularization of data center should be taken into account the adjustment and development of business, network structure and system architecture want modularization,
It is easy to extension.Modularization deployment has the following advantages:Easily extension, flexible modularized design mode extends according to business demand, contracting
Short planning deployment cycle.Investment utilization rate is improved, maintenance cost is reduced.Energy utilization rate is improved, cold and hot channel separation meets green
Color and energy-conservation principles and requirements.
The highly reliable of data center is to be designed using redundant network in network design, realizes key equipment, link redundancy;
Key equipment selects high reliability product, is capable of achieving hot-swappable veneer, module, control module design redundancy, power supply redundancy;Pass through
Network level is reduced, simplifies network structure, reliability is improved from group-network construction.
By business, by authority the security isolation of data center, i.e., carry out zoned logic isolation, and especially important business is adopted
Take physical isolation.Multiple networks such as business, IP storage backup, management network centered on server carry out logic isolation, manage
Reason network takes physical isolation.
The manageability and maintainability of data center are that network should have good manageability.For the ease of
Safeguard, should as far as possible choose the product that integrated level is high, module is generally applicable.
Current data central site network is built, and in line with flexibility, High Availabitity, manageable design principle is first according to business
Demand and safety status classification subregion, each piecewise connection use modular design method to business core inside subregion.
The current data center based on TOR frameworks is illustrated below, refers to Fig. 1, Fig. 1 is the embodiment of the present application
Application scenario diagram, wherein, TOR is connected with gateway, is connected with multiple servers under each TOR, and server passes through network interface card and TOR
Connection, network interface card includes business network interface card and management network interface card, and management network and business network are set up based on server, each management
Network or business network can be corresponded to and distribute one or more server, and for server, normally only correspond to one
Management network or business network, before concrete configuration, can pre-set the corresponding relation of management network interface card and management network,
And the corresponding relation of business network interface card and business network.
In concrete configuration (as a example by managing network card configuration), the management network interface card of server is plugged into certain of TOR first
On one physical port, the port numbers of the port are then write down, then log on the management platform of TOR, it is right that the port is configured to
In the management network answered, complete one management network interface card configuration, then need configure multiple servers management network interface card when, it is necessary to one
One record is plugged into the physical port number on TOR, is then configured one by one in the management platform of TOR.
When needing to carry out configuration change, i.e., change management network interface card accesses the port of TOR, then need in the following manner,
The management network interface card for being still to look at server first is connected to the former port numbers of TOR, then pulls up the management network interface card of the server
And be plugged under the change port of the TOR, and the change port numbers are recorded, the management platform of TOR is then logged on again, by this
Change port is configured in corresponding management network, and removes the management network configuration under former port, completes configuration change process.
As can be seen that aforesaid way whether configures new port or changing port is required for accessing physical port
Journey needs to carry out in the lump with software merit rating process, i.e., equivalent to by the management network interface card of server or the end of business network interface card and TOR
Slogan is bound, so as to not allow arbitrarily to change configuration after configuration is complete, and accesses the end of TOR in management network interface card change
, it is necessary to be reconfigured to the port during mouth, in order to the port is configured in corresponding management network;Secondly, the party
In formula, because server network interface card includes business network interface card and management network interface card, by the way of port numbers binding network interface card, deployment can be caused
Process becomes very cumbersome, and easily the problem of port grafting mistake occurs, will business network interface card be plugged into management network interface card end
Mouthful, or the port that network interface card is plugged into business network interface card is managed, and manage network interface card wrong plug to non-self corresponding management network
Corresponding port, these mistakes easily cause that data center occurs unnecessary problem.
To solve the above problems, the embodiment of the present application manages the dispositions method of network using a kind of data center server,
Fig. 2 is referred to, Fig. 2 is one embodiment figure of the dispositions method of the data center server management network of the embodiment of the present application,
The method may include:
201st, TOR obtains the MAC Address of the network interface card of the server of the access interface for accessing the TOR.
Wherein, in data center architecture, when the network interface card of a server is linked into TOR by way of physical connection
When, TOR can first obtain the MAC Address of the network interface card.For each network interface card it is unique due to MAC Address, goes out in network interface card
Just distributed before factory, therefore without MAC Address two network interface cards of identical.
202nd, TOR obtains the MAC Address of default management network interface card and the corresponding relation of management network.
Wherein, according to the network design plan for pre-establishing, network interface card will can be managed advance with the corresponding relation of management network
Divide, i.e., specific to one management network can be allocated which management network interface card, due to manage network interface card MAC Address it is unique
Property, MAC Address and the corresponding relation of management network can be pre-set, additionally, each management network one VLAN of correspondence,
The management network is just linked into equivalent to the network interface card for being added to the VLAN.
Optionally, according to management network interface card MAC Address and the difference of the corresponding relation storage mode of management network, TOR are obtained
The mode for taking the corresponding relation is also different, and such as corresponding relation is stored on TOR, and now TOR oneself reads and is locally stored
The corresponding relation can be obtained, but for example, the corresponding relation is stored on the network that TOR is connectable to, then TOR obtains this pair
The mode that should be related to is then by accessing the Network Capture corresponding relation.
203rd, TOR judges that the MAC Address is according to the MAC Address of the management network interface card with the corresponding relation of management network
It is no with corresponding management network, if so, then perform step 204.
It is understood that TOR is obtaining the corresponding relation of the MAC Address with management network of management network interface card and access
To after the MAC Address of the network interface card of TOR, will once be judged, by the MAC in the MAC Address of the network interface card and the corresponding relation
Address is matched, if can match, then it represents that the network interface card is management network interface card set in advance, can now jump to step 204.
204th, the corresponding network interface card of the MAC Address is accessed the corresponding VLAN of the management network by TOR.
Wherein, after the corresponding management network of MAC Address is determined, will be by the corresponding management network of the MAC Address
VLAN is found, and the MAC Address is added in the VLAN, so as to complete the process that the network interface card adds management network.
As can be seen that during disposing herein, due to being carried out with the corresponding relation of management network to management network interface card in advance
It is default, and each management network is corresponded into a VLAN, and the MAC Address of each management network interface card is differed, therefore,
TOR just can be carried out itself and default corresponding relation after the MAC Address of network interface card of access is recognized from access interface
Match somebody with somebody, as long as management network can be matched, becoming can be linked into VLAN to that should manage network by the network interface card, so that completion portion
Administration's process, decoupling is separated in this mode by network configuration process and engineering construction part, i.e. physics grafting process, and network interface card can be with blind
The arbitrary port on TOR is plugged into, TOR just can complete connecing for correspondence management network according only to the MAC Address of the network interface card for accessing
Enter, so as to simplify configuration deployment process, greatly improve configuration deployment efficiency, and eliminate the hidden danger of misconnection.
Optionally, if TOR determines the MAC Address not according to default management network interface card with the corresponding relation of management network
During with corresponding management network, that is, one of management network interface card that the network interface card not preplans is represented, now TOR will inquire about this
The configuration information of the access interface that network interface card is accessed, and according to the instruction of configuration information, the corresponding network interface card of the MAC Address is linked into
The corresponding VLAN of the configuration information, completes the configuration of network interface card, so as to ensure that the network interface card for being linked into TOR can be recognized correctly simultaneously
Distribution.
Certainly, if do not have configuration information on the access interface of TOR, i.e., the interface, then can be by the MAC to eat dishes without rice or wine
The corresponding network interface card in address is linked into the default VLAN of TOR, and the default VLAN is that correspondence eats dishes without rice or wine to design, and now the interface is not right
Answer any business network or manage network, but an independent network.
Additionally, can be configured by TOR with the corresponding relation of management network for managing the MAC Address of network interface card, specifically please
Refering to Fig. 3, Fig. 3 is another implementation illustration of the dispositions method of the data center server management network of the embodiment of the present application,
In the figure, MAC Address and the process of the corresponding relation of management network of TOR configuration management network interface cards can be:
301st, the MAC Address of the management network interface card of the Servers-all of TOR subordinate is obtained.
Wherein, the Servers-all of TOR subordinate refers to being assigned to during all data center deployments being connected to this
The server of TOR, and the management network interface card of these servers is all connected on the TOR, now TOR obtains the management of these servers
The MAC Address of network interface card just can to actual disposition during access the network interface card of the TOR and match.
302nd, TOR by the management network interface card of Servers-all according to MAC Address be respectively configured it is different management networks based on
The VLAN of MAC Address.
Wherein, after the MAC Address of management network interface card for obtaining Servers-all, will be according to each server in deployment plan
Corresponding function, each MAC Address is assigned to the VLAN based on MAC Address of corresponding management network, each management net
Network corresponds to a VLAN.It is appreciated that the MAC Address is to correspond with the corresponding relation of VLAN, but a VLAN
Correspondence MAC Address corresponding relation can with one-to-many correspondence, i.e., equivalent to can have multiple servers management network interface card add
To same management network, and a management network interface card for server will not simultaneously be added to two management networks.
The dispositions method to the data center server management network of the application is described above, below to the application
Frame top formula interchanger be introduced, refer to Fig. 4, Fig. 4 be the embodiment of the present application hypothesis be interchanger one embodiment
Figure, wherein, this pushes up formula interchanger 4 to be included:
Acquisition module 401, the MAC Address of the network interface card of the server for obtaining the access interface for accessing the TOR;
Acquisition module 401 is additionally operable to obtain the corresponding relation of the MAC Address with management network of default management network interface card, each
The management network interface card is respectively provided with unique MAC Address, one VLAN of each management network correspondence;
Processing module 402, for being determined when the MAC Address according to the management network interface card and the corresponding relation of management network
During the corresponding management network of the MAC Address, the corresponding network interface card of MAC Address is accessed into the corresponding virtual local area of the management network
Net VLAN.
It should be noted that the number in the deployment process and embodiment illustrated in fig. 2 of the management network of this top formula interchanger
It is similar to according to the deployment process of centre management network, here is omitted.
Optionally, processing module 402 is additionally operable to:If being determined with the corresponding relation of management network according to default management network interface card
The MAC Address does not have corresponding management network, then inquire about the configuration information of the access interface that the network interface card is accessed;According to institute
State configuration information and the corresponding network interface card of the MAC Address is accessed into the corresponding VLAN of the configuration information.
It should be noted that the explanation in the processing procedure embodiment illustrated in fig. 2 for step 204 is similar to, herein no longer
Repeat.
Optionally, processing module 402 is additionally operable to:If it is determined that the access interface that the network interface card is accessed then will without configuration information
The MAC Address corresponding network interface card access default VLAN of TOR.
It should be noted that the access interface without configuration information is referred to as eating dishes without rice or wine, default VLAN does not correspond to any work(
LAN inside one TOR of energy property network.For the explanation class of step 204 in the processing procedure embodiment illustrated in fig. 2
Seemingly, here is omitted.
Optionally, the network interface card of server includes business network interface card and management network interface card, and processing module 402 is additionally operable to:As the MAC
When address has corresponding management network, determine that the corresponding network interface card of the MAC Address is management network interface card.
It should be noted that the explanation in the processing procedure embodiment illustrated in fig. 2 for step 204 is similar to, herein no longer
Repeat.
Optionally, default management network interface card is stored on the TOR or is stored in net with the corresponding relation of management network
Network, the acquisition module specifically for:Reading is locally stored the corresponding relation for obtaining default management network interface card and management network;
Or,
By the default management network interface card of Network Capture and the corresponding relation for managing network.
It should be noted that the explanation in the acquisition process embodiment illustrated in fig. 2 for step 202 is similar to, herein no longer
Repeat.
Optionally, the MAC Address of the default management network interface card is configured with the corresponding relation of management network by processing module,
Acquired module 401 also particularly useful for:Obtain the MAC Address of the management network interface card of the Servers-all of the TOR subordinate;The place
Reason module 402 also particularly useful for:The management network interface card of Servers-all is respectively configured corresponding management network according to MAC Address
The VLAN based on MAC Address, each management network correspondence one VLAN.
It should be noted that the mode for obtaining MAC Address can be the MAC that all network interface cards are directly inputted according to deployment plan
Address, it is of course also possible to directly all network interface cards are plugged on the access interface of TOR, is obtained, additionally, the corresponding relation by TOR
Configuration process and embodiment illustrated in fig. 3 in managing the MAC Address of network interface card and the configuration process of the corresponding relation of management network
Similar, here is omitted.
The structure to frame top formula interchanger in the embodiment of the present application is described below, refers to Fig. 5, and Fig. 5 is the application
One embodiment figure of the frame top formula interchanger of embodiment, wherein, frame top formula interchanger 5 may include to be connected with bus to
Few processor 501, at least one transceiver 502, memory 503 and an access interface 504, the invention relates to frame
Top formula interchanger can have than more or less part illustrated in fig. 5, can combine two or more parts, or
There can be different parts to configure or set up, all parts can be including one or more signal transactings and/or special collection
Combination into circuit in interior hardware, software or hardware and software is realized.
Specifically, for the embodiment shown in Fig. 4, the processor 501 can realize the treatment in embodiment illustrated in fig. 4
The function of module 401 and acquisition module 402, the number that the transceiver 502 is connected for frame top formula interchanger with access interface 504
According to transmitting-receiving, the memory 503 is used to store the instruction and data to be performed of processor 501, and processor 501 is used to performing described
Instruction in memory is realizing the deployment process of data center management network.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with
Realize by another way.For example, device embodiment described above is only schematical, for example, the unit
Divide, only a kind of division of logic function there can be other dividing mode when actually realizing, for example multiple units or component
Can combine or be desirably integrated into another system, or some features can be ignored, or do not perform.It is another, it is shown or
The coupling each other for discussing or direct-coupling or communication connection can be the indirect couplings of device or unit by some interfaces
Close or communicate to connect, can be electrical, mechanical or other forms.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be according to the actual needs selected to realize the mesh of this embodiment scheme
's.
In addition, during each functional unit in the application each embodiment can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.Above-mentioned integrated list
Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is to realize in the form of SFU software functional unit and as independent production marketing or use
When, can store in a computer read/write memory medium.Based on such understanding, the technical scheme of the application is substantially
The part for being contributed to prior art in other words or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are used to so that a computer
Equipment (can be personal computer, server, or network equipment etc.) performs the complete of the application each embodiment methods described
Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
The above, above example is only used to illustrate the technical scheme of the application, rather than its limitations;It still can be with
Technical scheme described in foregoing embodiments is modified, or which part technical characteristic is replaced;And these
Modification is replaced, and appropriate technical solution is departed from the scope of each embodiment technical scheme of the application.