CN103441935B - Automatically method and the device of the syntople of identified server and access switch - Google Patents

Automatically method and the device of the syntople of identified server and access switch Download PDF

Info

Publication number
CN103441935B
CN103441935B CN201310359502.9A CN201310359502A CN103441935B CN 103441935 B CN103441935 B CN 103441935B CN 201310359502 A CN201310359502 A CN 201310359502A CN 103441935 B CN103441935 B CN 103441935B
Authority
CN
China
Prior art keywords
server
interface
switch
physical host
access switch
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
Application number
CN201310359502.9A
Other languages
Chinese (zh)
Other versions
CN103441935A (en
Inventor
吴仁海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Star Net Ruijie Networks Co Ltd
Original Assignee
Beijing Star Net Ruijie Networks Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Star Net Ruijie Networks Co Ltd filed Critical Beijing Star Net Ruijie Networks Co Ltd
Priority to CN201310359502.9A priority Critical patent/CN103441935B/en
Publication of CN103441935A publication Critical patent/CN103441935A/en
Application granted granted Critical
Publication of CN103441935B publication Critical patent/CN103441935B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of method of syntople of automatic identified server and access switch and device, NM server, in order to solve the problem that cannot effectively determine the syntople of server physical host and access switch in prior art in data center. NM server is according to the network topology structure of set up data center, obtain the model of the network equipment in this topological structure, go out the edge device of data center according to the type identifier of the obtained network equipment, and according to the ARP table of the access switch identifying, determine the server physical host with the interface communication of described access switch, and set up the interface of described access switch and the corresponding relation of determined server physical host, NM server is determined on server physical host the network interface card with the interface communication of corresponding access switch, set up the corresponding relation of the interface of access switch and the network interface card of server physical host.

Description

Automatically method and the device of the syntople of identified server and access switch
Technical field
The present invention relates to data communication system, particularly, relate to one and be applied in data center environment automaticThe method of the syntople of identified server and access switch and device, NM server.
Background technology
In data center network environment, conventionally there is typical network topology as shown in Figure 1, eventuallyEnd (as research, developing department or sales department) (can comprise multistage access friendship by access switchChange planes) be linked into server area, or by access switch, convergence-level switch and core layer switchBe connected to internet. Wherein, server area comprises that at least one server physical host, storage networking etc. establishStandby. On server physical host, in order to meet the needs of different departments, plan and be provided with multiple virtualServer, for example, develop server, research server and physics DMZ district etc., each virtual serverBe provided with certain authority, the user with corresponding authority could access corresponding virtual server.
On separate unit server physical host, fictionalize multiple servers, can realize the dilatation of server, andAnd save space and the energy consumption scale of whole data center, but original server capability remains unchanged, alsoBe exactly that all departments' access rights are controlled, security strategy is constant.
Wherein the control of security strategy, is responsible for by access switch. If the NM server in Fig. 1 is for moreThe directly security strategy of Control Server physical host (or virtual server), conventionally wish directly fromThe angle of server physical host (or virtual server) arranges corresponding security strategy. Therefore must seekFind the access switch adjacent with server physical host, then corresponding policy distribution is exchanged to accessIn machine.
As shown in Figure 2, server physical host 1 is connected with access switch 1 by switch 1, passes throughSwitch 2 is connected with access switch 2, and therefore the access switch adjacent with server physical host 1 is:Access switch 1 and access switch 2, be provided with virtual server 1~3 and connect on server physical host 1Enter switch and conventionally there is virtual perception, can obtain with access switch by virtual perceptionMAC controller (MAC, the Media of the virtual server on the server physical host of Serial CommunicationAccessController) address.
Because server physical host is not often directly connected with access switch, therebetween may be by multistage friendshipChange planes and be connected, therefore direct perception adjacent access switch with it. If therefore from service implementsThe angle of reason main frame (or virtual server) arranges corresponding security strategy, under prior art condition,Conventionally adopt following scheme:
Scheme one, find out all access switch in this data center network topology, hand over to every accessThe change planes security strategy of the server physical host (or virtual server) that issues the whole network;
Scheme two, the artificial appointment access switch adjacent with server physical host, hand over then to accessChange planes and issue the security strategy relevant to this server physical host (or virtual server);
For above two schemes, in scheme one to all access switch issue whole physical hosts orThe security strategy of virtual server, will become certain performance burden to access exchange mechanism, and due to notSame server physical host or virtual server) needed security strategy difference, therefore likely depositIn the situation of conflict; Scheme two needs the artificial corresponding access switch adjacent with physical host that participate in specifying,In data center network environment, often exist the wiring of more complicated, therefore webmaster personnel are often difficultIn finding the data center switch adjacent with this physical host.
Visible, in prior art due to cannot effectively determine with server (physical host or Virtual ServiceDevice) adjacent access switch, thus phase cannot be set effectively, targetedly on access switchThe security strategy of corresponding server (server physical host or virtual server).
Summary of the invention
In view of this, the embodiment of the present invention provides the adjacency of a kind of automatic identified server and access switchThe method of relation and device, NM server, cannot be effectively in data center in prior art in order to solveIn determine the problem of the syntople of server physical host and access switch.
Embodiment of the present invention technical scheme is as follows:
A method for the syntople of automatic identified server and access switch, comprising: NM serverAccording to the network topology structure of set up data center, obtain the model of the network equipment in this topological structure,The edge device that goes out data center according to the type identifier of the obtained network equipment, edge device at least comprisesServer physical host, access switch, convergence switch and user terminal; NM server is according to identificationAddress resolution protocol (ARP, the AddressResolutionProtocol) table of the access switch going out, reallyThe server physical host of the interface communication of fixed and described access switch, and set up described access switchInterface and the corresponding relation of determined server physical host; NM server is determined server physics masterOn machine with the network interface card of the interface communication of corresponding access switch, interface and the service of setting up access switchThe corresponding relation of the network interface card of device physical host.
Wherein, NM server, according to the ARP table of the access switch identifying, is determined and described accessThe server physical host of the interface communication of switch, specifically comprises: what NM server login identified connectsEnter switch, according to the interface message in the ARP table of this access switch, obtain and this access switchThe model of the direct-connected network equipment of interface, be edge device and determine this border at definite this direct-connected deviceEquipment is in the situation of server physical host, determines the interface of this server physical host and access switchCommunicate. Not edge device at the direct-connected network equipment of interface definite and access switch,Using this direct-connected device as current device, and carry out following processing; Step 1, according to the ARP of current deviceInterface message in table, obtains the model of the equipment direct-connected with the interface of current device, definite this direct-connected establishingStandby is edge device, and determines that this edge device is in the situation of server physical host, processes and proceeds to stepRapid 3, in the case of determining that the equipment direct-connected with the interface of current device is not that edge device, processing is carried outTo step 2; Step 2, using with the direct-connected equipment of the interface of current device as new current device, processReturn to step 1; Step 3, determine that the interface of this server physical host and access switch communicates.
In above-mentioned processing procedure, go out the border of data center according to the type identifier of the obtained network equipmentEquipment, specifically comprises: the model of the obtained network equipment and the unit type prestoring contrasted,In the unit type prestoring, have in the situation of model of the obtained network equipment, according to the equipment type prestoringNumber with the corresponding relation of device type, identify server physical host and the switch of data center; In advanceIn the unit type of depositing, do not have in the situation of model of the obtained network equipment, determine that this network equipment isUser terminal; Be switch at the edge device identifying, to this switch transmission inquiry beThe virtualized order of no support, is receiving after the virtualized reply of support, determines that this switch is for access friendshipChange planes, otherwise be convergence switch;
Determine that this direct-connected device is edge device, specifically comprises: by the model of obtained direct-connected device and pre-The unit type of depositing contrasts, and has the model of obtained direct-connected device in the unit type prestoringIn situation, according to the corresponding relation of the unit type prestoring and device type, determine that this direct-connected device is for serviceDevice physical host or switch; In the unit type prestoring, do not there is the model of the obtained network equipmentIn situation, determine that this network equipment is user terminal.
NM server is determined on server physical host with the interface communication of corresponding access switchNetwork interface card, specifically comprises: NM server obtains the server physical host corresponding with the interface of access switchThe MAC Address of whole network interface cards; And sign in on the switch direct-connected with this server physical host, obtainGet the overall network device mac address communicating with this switch; By obtained described service implementsThe MAC Address of whole network interface cards of reason main frame and whole MAC that obtain and described switch communication groundLocation contrasts, and determines that MAC Address identical in the two is with corresponding on described server physical hostThe MAC Address of the network interface card of access switch communication.
Preferably, described method also comprises interface and the server physical host to set up access switchThe scheme verified of the corresponding relation of network interface card: for interface and the server physical host of access switchNetwork interface card there is the access switch of corresponding relation, NM server signs in on this access switch, passes throughVirtual perception obtain with the server physical host of the interface communication of access switch on virtual serverMAC Address; By the MAC Address of obtained virtual server, build with the interface of access switchThe MAC Address of the network interface card of vertical corresponding relation contrasts, and determines MAC Address correspondence identical in the twoNetwork interface card and the corresponding relation of the interface of access switch be effective corresponding relation.
A device for the syntople of automatic identified server and access switch, comprising: recognition of devices mouldPiece, for according to the network topology structure of set up data center, the network obtaining in this topological structure is establishedStandby model, goes out the edge device of data center according to the type identifier of the obtained network equipment, establish on borderComprise to the utmost less server physical host, access switch, convergence switch and user terminal; First determinesModule, for according to the ARP table of the access switch that identifies, determines and the connecing of described access switchThe server physical host of port communications, and set up interface and the determined server of described access switchThe corresponding relation of physical host; The second determination module, for determining on server physical host with correspondingThe network interface card of the interface communication of access switch, sets up the interface of access switch and the net of server physical hostThe corresponding relation of card.
Wherein, the first determination module, specifically for: the access switch that login identifies, according to this accessInterface message in the ARP table of switch, obtains the network equipment direct-connected with the interface of this access switchModel, definite this direct-connected device be edge device and determine this edge device be server physical hostSituation under, determine that the interface of this server physical host and access switch communicates. Determining and connecingThe direct-connected equipment of interface that enters switch is not in the situation of edge device, and this direct-connected device is established as currentStandby, and carry out following processing; Step 1, according to the interface message in the ARP table of current device, obtain withThe model of the direct-connected equipment of the interface of current device, is edge device at definite this direct-connected device, and determine shouldEdge device is in the situation of server physical host, processes and proceeds to step 3, is determining and current deviceThe direct-connected equipment of interface be not in the situation of edge device, process and proceed to step 2; Step 2, will be withThe direct-connected equipment of the interface of current device, as new current device, is processed and is returned to step 1; Step 3, trueThe interface of fixed this server physical host and access switch communicates.
Described recognition of devices module, goes out the border of data center according to the type identifier of the obtained network equipmentEquipment, specifically for: the model of the obtained network equipment and the unit type prestoring are contrasted,In the unit type prestoring, have in the situation of model of the obtained network equipment, according to the equipment type prestoringNumber with the corresponding relation of device type, identify server physical host and the switch of data center; In advanceIn the unit type of depositing, do not have in the situation of model of the obtained network equipment, determine that this network equipment isUser terminal; Be switch at the edge device identifying, to this switch transmission inquiry beThe virtualized order of no support, is receiving after the virtualized reply of support, determines that this switch is for access friendshipChange planes, otherwise be convergence switch;
The first determination module determines that this direct-connected device is edge device, specifically for: by obtained direct-connected establishingStandby model and the unit type prestoring contrast, and have obtained direct-connected in the unit type prestoringIn the situation of the model of equipment, according to the corresponding relation of the unit type prestoring and device type, determine that this is straightAttached device is server physical host or switch; In the unit type prestoring, do not there is obtained networkIn the situation of the model of equipment, determine that this network equipment is user terminal.
The second determination module is determined on server physical host the interface communication with corresponding access switchNetwork interface card, specifically for whole nets of obtaining the server physical host corresponding with the interface of access switchThe MAC Address of card; And sign in on the switch direct-connected with this server physical host, obtain and this friendshipThe overall network device mac address communicating of changing planes; By obtained described server physical hostAll the MAC Address of network interface cards and that obtain and whole MAC Address described switch communication carry out rightRatio, determines that MAC Address identical in the two is to exchange with corresponding access on described server physical hostThe MAC Address of the network interface card of machine communication.
Preferably, described device also comprises: authentication module, and for the interface for access switch and serviceThere is the access switch of corresponding relation in the network interface card of device physical host, signs in on this access switch, passes throughVirtual perception obtain with the server physical host of the interface communication of access switch on virtual serverMAC Address; By the MAC Address of obtained virtual server, build with the interface of access switchThe MAC Address of the network interface card of vertical corresponding relation contrasts, and determines MAC Address correspondence identical in the twoNetwork interface card and the corresponding relation of the interface of access switch be effective corresponding relation.
Be applied to a NM server for data center, comprise automatic identified server as above and connectEnter the device of the syntople of switch.
According to the technical scheme of the embodiment of the present invention, NM server is according to the network of set up data centerTopological structure, obtains the model of the network equipment in this topological structure, according to the type of the obtained network equipmentNumber identify the edge device of data center, edge device comprise server physical host, access switch,Convergence switch and user terminal, and according to the ARP table of the access switch identifying, determine with described inThe server physical host of the interface communication of access switch, and the interface of setting up described access switch withThe corresponding relation of determined server physical host, NM server is determined on server physical host and instituteThe network interface card of the interface communication of corresponding access switch, the interface and the server physics master that set up access switchThe corresponding relation of the network interface card of machine; Also be that NM server is determined and communicated by letter with access switch from access switch sideServer physical host, i.e. the server physical host adjacent with access switch, then from access exchangeThe server physical host side that machine is corresponding is determined the network interface card of communicating by letter with access switch on server physical host,Thereby set up the corresponding relation of the interface of access switch and the network interface card of server physical host, can be effectivelyDetermine the syntople of server physical host and access switch, and can be accurate to server physicsThe corresponding relation of the network interface card on main frame and the interface of access switch, cannot in prior art thereby can solveEffectively in data center, determine the problem of the syntople of server physical host and access switch.
Other features and advantages of the present invention will be set forth in the following description, and, partly from explanationIn book, become apparent, or understand by implementing the present invention. Object of the present invention and other advantages canRealize and obtain by specifically noted structure in write description, claims and accompanying drawing.
Brief description of the drawings
Fig. 1 is the network topology structure schematic diagram of data center;
Fig. 2 is the annexation block diagram of server physical host and access switch in data center;
The side of the automatic identified server that Fig. 3 provides for the embodiment of the present invention and the syntople of access switchThe workflow diagram of method;
Fig. 4 is the process flowchart of step 302 in Fig. 3;
Fig. 5 is the process flowchart of step 303 in Fig. 3;
The side of the automatic identified server that Fig. 6 provides for the embodiment of the present invention and the syntople of access switchAnother workflow diagram of method;
The dress of the automatic identified server that Fig. 7 provides for the embodiment of the present invention and the syntople of access switchThe structured flowchart of putting;
The dress of the automatic identified server that Fig. 8 provides for the embodiment of the present invention and the syntople of access switchAnother structured flowchart of putting.
Detailed description of the invention
Below in conjunction with accompanying drawing, embodiments of the invention are described, should be appreciated that enforcement described hereinExample only, for description and interpretation the present invention, is not intended to limit the present invention.
Hand over for cannot effectively determine server physical host and access in prior art in data centerThe problem of the syntople of changing planes, the embodiment of the present invention provides a kind of automatic identified server and access exchangeThe method of the syntople of machine and device, NM server, in order to address this problem.
In the technical scheme of the embodiment of the present invention, NM server is determined with access and is handed over from access switch sideChange planes communication server physical host, i.e. the server physical host adjacent with access switch, then fromThe server physical host side that access switch is corresponding is determined on server physical host logical with access switchThe network interface card of letter, thus the corresponding relation of the interface of access switch and the network interface card of server physical host set up,Can effectively determine the syntople of server physical host and access switch, and can be accurate toThe corresponding relation of the network interface card on server physical host and the interface of access switch, thus can solve existingCannot be effectively in technology in data center, determine server physical host and access switch in abutting connection with passThe problem of system.
Below the technical scheme of the embodiment of the present invention is elaborated.
Fig. 3 shows automatic identified server that the embodiment of the present invention provides and the syntople of access switchThe workflow diagram of method, the method comprises:
Step 301, NM server, according to the network topology structure of set up data center, obtain this and open upFlutter the model of the network equipment in structure, go out data center according to the type identifier of the obtained network equipmentEdge device, edge device comprises that server physical host, access switch, convergence switch and user are eventuallyEnd;
Wherein, the model of obtaining the network equipment can realize by technological means of the prior art;
Particularly, NM server gets after the model of the network equipment, by the type of the obtained network equipmentNumber contrast with the unit type prestoring, in the unit type prestoring, there is the obtained network equipmentIn the situation of model, according to the corresponding relation of the unit type prestoring and device type, identify data centerServer physical host and switch; In the unit type prestoring, do not there is the obtained network equipmentIn the situation of model, determine that this network equipment is user terminal;
Be switch at the edge device identifying, send inquiry to this switch and whether supportVirtualized order, receiving after the virtualized reply of support, determines that this switch is access switch,Otherwise be convergence switch;
The ARP table of the access switch that step 302, NM server basis identify,Determine and the server physical host of the interface communication of described access switch, and set up described access exchangeThe corresponding relation of the interface of machine and determined server physical host;
The clothes of the interface communication of definite in step 302 and described access switch have been shown in Fig. 4 particularly,The processing procedure of business device physical host, this process comprises:
Step 3021, NM server are logined the access switch identifying, according to this access switchInterface message in ARP table, obtains the model of the network equipment direct-connected with the interface of this access switch;
Wherein, login access switch, obtain the ARP table of access switch and obtain the network equipmentModel can realize by prior art means;
Step 3022, judge and whether the network equipment that the interface of access switch is direct-connected is edge device,Be defined as in the situation of edge device, process and proceed to step 3023, otherwise, process and proceed to step 3024;
Wherein, judge that the processing that direct-connected device is edge device comprises: by the model of obtained direct-connected deviceContrast with the unit type prestoring, in the unit type prestoring, there is the type of obtained direct-connected deviceNumber situation under, according to the corresponding relation of the unit type prestoring and device type, determine that this direct-connected device isServer physical host or switch; In the unit type prestoring, do not there is the type of the obtained network equipmentNumber situation under, determine that this network equipment is user terminal;
Step 3023, judge and whether edge device that the interface of access switch is direct-connected is server physics masterMachine, in the situation that being defined as being, determines that the interface of this server physical host and access switch leads toLetter, is being defined as no in the situation that, and processing finishes;
Wherein, because NM server is judging that direct-connected device is just to have determined in the process of edge deviceBe server physical host or switch to edge device, judge whether edge device is server physical hostProcessing only need judge whether the type of identified direct-connected device is server physical host;
Step 3024, using with the direct-connected network equipment of the interface of access switch as current device;
Step 3025, according to the interface message in the ARP table of current device, obtain and the connecing of current deviceThe model of mouthful direct-connected equipment, is edge device at definite this direct-connected device, and determines that this edge device is for takingIn the situation of business device physical host, process and proceed to step 3027, determining that the interface with current device is direct-connectedEquipment be not in the situation of edge device, process and proceed to step 3026;
Wherein, determine that whether direct-connected device is the processing procedure in the processing refer step 3022 of edge device,Determine that whether edge device is the processing procedure in the processing refer step 3023 of server physical host;
Step 3026, using with the direct-connected equipment of the interface of current device as new current device, processing is returnedStep 3025;
Step 3027, determine that the interface of this server physical host and access switch communicates;
In the case of the interface of access switch and server physical host direct-connected, can pass through step3021~3023 processing procedure is processed, between the interface and server physical host of access switchIn the situation that at least one-level switch is connected, by step 3021~3022, step 3024~3027Process;
But what determine according to step 302 is the server communicating with the interface of access switchPhysical host, and can not determine obtain with the server physical host of the interface communication of access switch on netCard, this be because on server physical host the virtual server that arranges conventionally can with server physical host onAt least two cards of throwing the net relevant, even by the virtual cognition technology on access switch come perception obtain withThe MAC Address of the interface communication of access switch is the MAC Address of virtual server, but virtual clothesBetween the business MAC of device and the MAC Address of network interface card, there is corresponding or transformational relation, thus can not be directly fromAccess switch side determine with the server physical host of the interface communication of access switch on network interface card; ,Can by following step 303 determine with the server physical host of the interface communication of access switch onNet;
Step 303, NM server are determined on server physical host and the connecing of corresponding access switchThe network interface card of port communications, sets up the corresponding relation of the interface of access switch and the network interface card of server physical host.
Particularly, NM server is determined on server physical host and the interface of corresponding access switchThe processing of the network interface card of communication comprises processing procedure as shown in Figure 5:
Step 3031, NM server obtain the server physical host corresponding with the interface of access switchAll media access controller MAC Address of network interface card;
On server physical host, conventionally have multiple network interface cards, the card of often throwing the net all has MAC Address;
Step 3032, NM server sign in on the switch direct-connected with this server physical host, obtainThe overall network device mac address communicating with this switch;
If server physical host and access switch are direct-connected, what obtain is to lead to access switchThe MAC Address of the overall network equipment of letter, if passed through between server physical host and access switchAt least one-level switch is connected, with server physical host direct-connected be switch, what obtain is and thisThe MAC Address of the overall network equipment that switch communicates;
Step 3033, NM server are by whole network interface cards of obtained described server physical hostMAC Address contrasts with whole MAC Address described switch communication with that obtain, determines the twoIn identical MAC Address be the network interface card of communicating by letter with corresponding access switch on described server physical hostMAC Address;
According to the processing procedure shown in Fig. 5, by the comparison service implements corresponding with the interface of access switchThe MAC Address of whole network interface cards of reason main frame and communicating with server physical host direct-connected switchThe MAC Address of overall network equipment, just can determine that the interface that obtains concrete and access switch leads toThe network interface card of letter.
Further, in concrete application, because the network interface card of having determined server physical host is handed over accessThe corresponding relation of the interface of changing planes, and, the MAC Address of the virtual server on server physical hostThe MAC Address of territory network interface card has correspondence or transformational relation,, can also determine further obtain virtualThe corresponding relation of the interface of server and access switch.
Thereby, according to above-mentioned processing procedure, determine the service of communicating by letter with access switch from access switch sideDevice physical host, i.e. the server physical host adjacent with access switch, then from corresponding with access switchServer physical host side determine the network interface card of communicating by letter with access switch on server physical host, thereby buildThe corresponding relation of the vertical interface of access switch and the network interface card of server physical host, can determine effectivelyThe syntople of server physical host and access switch, and can be accurate on server physical hostNetwork interface card and the corresponding relation of the interface of access switch, cannot be effectively in prior art thereby can solveIn data center, determine the problem of the syntople of server physical host and access switch.
Further, the method for setting up the network topology structure of data center due to NM server has multiple,For example utilize Link Layer Discovery Protocol (LLDP, LinkLayerDiscoveryProtocol) to carry out automaticallyTopology Discovery, also can utilize the ARP of each network equipment to show to carry out automatic Topology Discovery. But,The accuracy that variety of methods is set up network topology structure differs, if in the network topology structure of setting upThere is link connection mistake, can affect the accuracy of the corresponding relation of setting up in step 303. For thisOne problem, the embodiment of the present invention has also proposed a kind of to the access switch of setting up by method shown in Fig. 3The method that the corresponding relation of the network interface card of interface and server physical host is verified.
As shown in Figure 6, on the basis of processing procedure shown in Fig. 3, the automatic knowledge that the embodiment of the present invention providesThe method of the syntople of other server and access switch also comprises following processing procedure:
Step 304, there is corresponding relation for the interface of access switch and the network interface card of server physical hostAccess switch, NM server signs in on this access switch, is obtained and is connect by virtual perceptionEnter the MAC Address of the virtual server on the server physical host of interface communication of switch;
Step 305, by the MAC Address of obtained virtual server, build with the interface of access switchThe MAC Address of the network interface card of vertical corresponding relation contrasts, and determines MAC Address correspondence identical in the twoNetwork interface card and the corresponding relation of the interface of access switch be effective corresponding relation.
Because in above-mentioned steps 303 being comes really by carry out MAC Address comparison from server physical host sideThe network interface card of the server physical host of the interface communication of fixed and access switch, by above-mentioned steps 304~305,Obtain and the server of the interface communication of access switch by virtual cognition technology from access switch sideThe MAC Address of the virtual server on physical host, and by this MAC Address obtaining, with access hand overThe MAC Address that the interface of changing planes has been set up the network interface card of corresponding relation contrasts, only correct at linkIn situation, these two is only identical, thereby in can verification step 303, whether definite corresponding relation beEffectively corresponding relation, thus can filter out the step causing due to the link error in topological structure303 determine and obtain wrong corresponding relation.
Based on identical inventive concept, the embodiment of the present invention also provides a kind of automatic identified server and accessThe device of the syntople of switch, this device is arranged in the NM server of data center.
As shown in Figure 7, the automatic identified server that the embodiment of the present invention provides and access switch in abutting connection with passThe structure of the device of system comprises:
Recognition of devices module 71, for according to the network topology structure of set up data center, obtains this and opens upFlutter the model of the network equipment in structure, go out data center according to the type identifier of the obtained network equipmentEdge device, edge device comprises that server physical host, access switch, convergence switch and user are eventuallyEnd;
Establish on the border that recognition of devices module 71 goes out data center according to the type identifier of the obtained network equipmentStandby, specifically for: the model of the obtained network equipment and the unit type that prestores are contrasted, in advanceIn the unit type of depositing, have in the situation of model of the obtained network equipment, according to the unit type prestoringWith the corresponding relation of device type, identify server physical host and the switch of data center; PrestoringUnit type in do not have in the situation of model of the obtained network equipment, determine this network equipment for useFamily terminal; Be switch at the edge device identifying, whether send inquiry to this switchSupport virtualized order, receiving after the virtualized reply of support, determine that this switch is for access exchangeMachine, otherwise be convergence switch;
The first determination module 72, is connected to recognition of devices module 71, for knowing according to recognition of devices module 71The ARP table of the access switch not going out, determines the service implements with the interface communication of described access switchManage main frame, and set up the corresponding pass of interface with the determined server physical host of described access switchSystem;
Particularly, the first determination module 72 is logined the access switch identifying, according to this access switchARP table in interface message, obtain the model of the network equipment direct-connected with the interface of this access switch,Be edge device and determine that this edge device is be server physical host in the situation that at definite this direct-connected device,The interface of determining this server physical host and access switch communicates;
In the case of determining that the equipment direct-connected with the interface of access switch is not edge device, this is direct-connectedEquipment is as current device, and processing below carrying out; Step 1, according to connecing in the ARP table of current deviceMessage ceases, and obtains the model of the equipment direct-connected with the interface of current device, is border at definite this direct-connected deviceEquipment, and determine that this edge device is in the situation of server physical host, process and proceed to step 3,Determine that the equipment direct-connected with the interface of current device is not in the situation of edge device, process and proceed to step 2;Step 2, using with the direct-connected equipment of the interface of current device as new current device, process and return to step 1;Step 3, determine that the interface of this server physical host and access switch communicates;
The first determination module 72 determines that this direct-connected device is edge device, specifically for: by obtained straightThe model of attached device contrasts with the unit type prestoring, and has obtained in the unit type prestoringIn the situation of the model of direct-connected device, according to the corresponding relation of the unit type prestoring and device type, determineThis direct-connected device is server physical host or switch; In the unit type prestoring, do not have obtainedIn the situation of the model of the network equipment, determine that this network equipment is user terminal;
The second determination module 73, is connected to the first determination module 72, true for determining the second determination module 73On fixed server physical host, with the network interface card of the interface communication of corresponding access switch, set up access and hand overThe corresponding relation of the network interface card of the interface of changing planes and server physical host;
The second determination module 73 is determined on server physical host logical with the interface of corresponding access switchThe network interface card of letter, specifically for: the whole of the server physical host corresponding with the interface of access switch obtainedThe media access controller MAC Address of network interface card; And sign in to the exchange direct-connected with this server physical hostOn machine, obtain the overall network device mac address communicating with this switch; Described in obtainedThe MAC Address of whole network interface cards of server physical host and whole with described switch communication that obtainMAC Address contrasts, determine MAC Address identical in the two be on described server physical host withThe MAC Address of the network interface card of corresponding access switch communication.
Preferably, as shown in Figure 8, on the basis of Fig. 7 shown device, the embodiment of the present invention provide fromThe device of the syntople of moving identified server and access switch also comprises:
Authentication module 74, is connected to the second determination module 73, for the interface for access switch and clothesThere is the access switch of corresponding relation in the network interface card of business device physical host, signs in on this access switch, logicalCross virtual perception obtain with the server physical host of the interface communication of access switch on Virtual ServiceThe MAC Address of device; By the MAC Address of obtained virtual server, with the interface of access switchThe MAC Address of setting up the network interface card of corresponding relation contrasts, and determines MAC Address pair identical in the twoThe corresponding relation of the network interface card of answering and the interface of access switch is effective corresponding relation.
By the device shown in Fig. 7, determine the service implements of communicating by letter with access switch from access switch sideReason main frame, i.e. the server physical host adjacent with access switch, then from the clothes corresponding with access switchBusiness implements reason host computer side is determined the network interface card of communicating by letter with access switch on server physical host, connects thereby set upEnter the corresponding relation of the interface of switch and the network interface card of server physical host, can effectively determine serviceThe syntople of device physical host and access switch, and can be accurate to the net on server physical hostThe corresponding relation of the interface of card and access switch, cannot count effectively thereby can solve in prior artAccording in determine the problem of the syntople of server physical host and access switch in the heart.
According to the device shown in Fig. 8, authentication module 74 can also be verified in the second determination module 73 and to determineWhether corresponding relation is effective corresponding relation, thereby can filter out due to the link error in topological structureAnd the step 303 causing is determined and is obtained wrong corresponding relation.
One of ordinary skill in the art will appreciate that and realize all or part of step that above-described embodiment method is carriedSuddenly be can carry out the hardware that instruction is relevant by program to complete, described program can be stored in a kind of computerIn readable storage medium storing program for executing, this program, in the time carrying out, comprises step of embodiment of the method one or a combination set of.
In addition, the each functional unit in each embodiment of the present invention can be integrated in a processing module,Also can be that the independent physics of unit exists, also can be integrated in a module in two or more unitIn. Above-mentioned integrated module both can adopt the form of hardware to realize, and also can adopt software function moduleForm realizes. If described integrated module realizes and as product independently using the form of software function moduleWhen selling or using, also can be stored in a computer read/write memory medium.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or meterCalculation machine program product. Therefore, the present invention can adopt complete hardware implementation example, completely implement software example or knotClose the form of the embodiment of software and hardware aspect. And the present invention can adopt at one or more wherein bagsThe computer-usable storage medium that contains computer usable program code (include but not limited to magnetic disc store andOptical memory etc.) form of the upper computer program of implementing.
The present invention is that reference is according to the method for the embodiment of the present invention, equipment (system) and computer program productThe flow chart of product and/or block diagram are described. Should understand can be by computer program instructions realization flow figure and/ or block diagram in each flow process and/or flow process in square frame and flow chart and/or block diagram and/Or the combination of square frame. Can provide these computer program instructions to all-purpose computer, special-purpose computer, embeddingThe processor of formula processor or other programmable data processing device, to produce a machine, makes by calculatingThe instruction that the processor of machine or other programmable data processing device is carried out produces for realizing at flow chart oneThe device of the function of specifying in square frame of individual flow process or multiple flow process and/or block diagram or multiple square frame.
These computer program instructions also can be stored in energy vectoring computer or other programmable data processing are establishedIn the standby computer-readable memory with ad hoc fashion work, make to be stored in this computer-readable memoryInstruction produce and comprise the manufacture of command device, this command device is realized in flow process or multiple of flow chartThe function of specifying in square frame of flow process and/or block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, makeMust on computer or other programmable devices, carry out sequence of operations step to produce computer implemented placeReason, thus the instruction of carrying out on computer or other programmable devices is provided for realizing one of flow chartThe step of the function of specifying in square frame of flow process or multiple flow process and/or block diagram or multiple square frame.
Obviously, those skilled in the art can carry out various changes and modification and not depart from this present inventionBright spirit and scope. Like this, if of the present invention these amendment and modification belong to the claims in the present invention andWithin the scope of its equivalent technologies, the present invention be also intended to comprise these change and modification interior.

Claims (13)

1. a method for the syntople of automatic identified server and access switch, is characterized in that,Comprise:
NM server, according to the network topology structure of set up data center, obtains in this topological structureThe model of the network equipment, goes out the edge device of data center according to the type identifier of the obtained network equipment,Edge device at least comprises server physical host, access switch, convergence switch and user terminal;
NM server, according to the ARP table of the access switch identifying, is determined and instituteState the server physical host of the interface communication of access switch, and set up the interface of described access switchCorresponding relation with determined server physical host;
NM server is determined on server physical host with the interface communication of corresponding access switchNetwork interface card, sets up the corresponding relation of the interface of access switch and the network interface card of server physical host.
2. method according to claim 1, is characterized in that, NM server basis identifiesThe ARP table of access switch, determines and the server physical host of the interface communication of described access switch,Specifically comprise:
NM server is logined the access switch identifying, in showing according to the ARP of this access switchInterface message, obtains the model of the network equipment direct-connected with the interface of this access switch, is determining that this is direct-connectedEquipment is edge device and determines that this edge device is in the situation of server physical host, determines this serviceThe interface of device physical host and access switch communicates.
3. method according to claim 2, is characterized in that, described method also comprises:
Not edge device at the direct-connected network equipment of interface definite and access switch, shouldDirect-connected device is as current device, and processing below carrying out;
Step 1, according to the interface message in the ARP table of current device, obtain the interface direct with current deviceThe model of the equipment connecting, is edge device at definite this direct-connected device, and determines that this edge device is serverIn the situation of physical host, process and proceed to step 3, determining the equipment direct-connected with the interface of current deviceBe not in the situation of edge device, process and proceed to step 2;
Step 2, using with the direct-connected equipment of the interface of current device as new current device, process and return to stepRapid 1;
Step 3, determine that the interface of this server physical host and access switch communicates.
4. method according to claim 2, is characterized in that, according to the obtained network equipmentType identifier goes out the edge device of data center, specifically comprises:
The model of the obtained network equipment and the unit type prestoring are contrasted to the equipment type prestoringIn number, have in the situation of model of the obtained network equipment, according to the unit type prestoring and device typeCorresponding relation, identify server physical host and the switch of data center; The unit type prestoringIn do not have in the situation of model of the obtained network equipment, determine that this network equipment is user terminal;
Be switch at the edge device identifying, send inquiry to this switch and whether supportVirtualized order, receiving after the virtualized reply of support, determines that this switch is access switch,Otherwise be convergence switch;
Determine that this direct-connected device is edge device, specifically comprises:
The model of obtained direct-connected device and the unit type prestoring are contrasted to the equipment type prestoringIn number, have in the situation of model of obtained direct-connected device, according to the unit type prestoring and device typeCorresponding relation, determine that this direct-connected device is server physical host or switch; The unit type prestoringIn do not have in the situation of model of the obtained network equipment, determine that this network equipment is user terminal.
5. method according to claim 1, is characterized in that, NM server is determined service implementsOn reason main frame, with the network interface card of the interface communication of corresponding access switch, specifically comprise:
NM server obtains whole network interface cards of the server physical host corresponding with the interface of access switchMedia access controller MAC Address;
And sign in on the switch direct-connected with this server physical host, obtain with this switch and communicateOverall network device mac address;
By the MAC Address of whole network interface cards of obtained described server physical host and obtain with instituteWhole MAC Address of stating switch communication contrast, and determine that MAC Address identical in the two is for instituteState the MAC Address of the network interface card of communicating by letter with corresponding access switch on server physical host.
6. according to the method described in any one in claim 1~5, it is characterized in that, described method is also wrappedDraw together:
Exist the access of corresponding relation to hand over for the interface of access switch and the network interface card of server physical hostChange planes, NM server signs in on this access switch, obtains and access switch by virtual perceptionThe server physical host of interface communication on the MAC Address of virtual server;
By the MAC Address of obtained virtual server, set up corresponding relation with the interface of access switchThe MAC Address of network interface card contrast, determine network interface card that MAC Address identical in the two is corresponding and connectThe corresponding relation that enters the interface of switch is effective corresponding relation.
7. a device for the syntople of automatic identified server and access switch, is characterized in that,Comprise:
Recognition of devices module, for according to the network topology structure of set up data center, obtains this topologyThe model of the network equipment in structure, goes out the limit of data center according to the type identifier of the obtained network equipmentBoundary's equipment, edge device at least comprises server physical host, access switch, convergence switch and userTerminal;
The first determination module, the ARP table of the access switch identifying for basis,Determine and the server physical host of the interface communication of described access switch, and set up described access exchangeThe corresponding relation of the interface of machine and determined server physical host;
The second determination module, for determining on server physical host and the interface of corresponding access switchThe network interface card of communication, sets up the corresponding relation of the interface of access switch and the network interface card of server physical host.
8. device according to claim 7, is characterized in that, the first determination module, specifically for:
The access switch that login identifies, according to the interface message in the ARP table of this access switch,Obtaining the model of the network equipment direct-connected with the interface of this access switch, is border at definite this direct-connected deviceEquipment and definite this edge device are in the situation of server physical host, determine this server physical hostCommunicate with the interface of access switch.
9. device according to claim 8, is characterized in that, the first determination module, also for:
In the case of determining that the equipment direct-connected with the interface of access switch is not edge device, this is direct-connectedEquipment is as current device, and processing below carrying out;
Step 1, according to the interface message in the ARP table of current device, obtain the interface direct with current deviceThe model of the equipment connecting, is edge device at definite this direct-connected device, and determines that this edge device is serverIn the situation of physical host, process and proceed to step 3, determining the equipment direct-connected with the interface of current deviceBe not in the situation of edge device, process and proceed to step 2;
Step 2, using with the direct-connected equipment of the interface of current device as new current device, process and return to stepRapid 1;
Step 3, determine that the interface of this server physical host and access switch communicates.
10. device according to claim 8, is characterized in that, described recognition of devices module, according toThe type identifier of the network equipment obtaining goes out the edge device of data center, specifically for:
The model of the obtained network equipment and the unit type prestoring are contrasted to the equipment type prestoringIn number, have in the situation of model of the obtained network equipment, according to the unit type prestoring and device typeCorresponding relation, identify server physical host and the switch of data center; The unit type prestoringIn do not have in the situation of model of the obtained network equipment, determine that this network equipment is user terminal;
Be switch at the edge device identifying, send inquiry to this switch and whether supportVirtualized order, receiving after the virtualized reply of support, determines that this switch is access switch,Otherwise be convergence switch;
The first determination module determines that this direct-connected device is edge device, specifically for:
The model of obtained direct-connected device and the unit type prestoring are contrasted to the equipment type prestoringIn number, have in the situation of model of obtained direct-connected device, according to the unit type prestoring and device typeCorresponding relation, determine that this direct-connected device is server physical host or switch; The unit type prestoringIn do not have in the situation of model of the obtained network equipment, determine that this network equipment is user terminal.
11. devices according to claim 7, is characterized in that, the second determination module is determined serverOn physical host with the network interface card of the interface communication of corresponding access switch, specifically for:
Obtain the media access of whole network interface cards of the server physical host corresponding with the interface of access switchController MAC Address;
And sign in on the switch direct-connected with this server physical host, obtain with this switch and communicateOverall network device mac address;
By the MAC Address of whole network interface cards of obtained described server physical host and obtain with instituteWhole MAC Address of stating switch communication contrast, and determine that MAC Address identical in the two is for instituteState the MAC Address of the network interface card of communicating by letter with corresponding access switch on server physical host.
12. according to the device described in any one in claim 7~11, it is characterized in that, described device alsoComprise:
Authentication module, exists corresponding for the interface for access switch with the network interface card of server physical hostThe access switch of relation, signs in on this access switch, is obtained and is accessed exchange by virtual perceptionThe MAC Address of the virtual server on the server physical host of the interface communication of machine;
By the MAC Address of obtained virtual server, set up corresponding relation with the interface of access switchThe MAC Address of network interface card contrast, determine network interface card that MAC Address identical in the two is corresponding and connectThe corresponding relation that enters the interface of switch is effective corresponding relation.
13. 1 kinds are applied to the NM server of data center, it is characterized in that, comprise as claim 7~11The device of the automatic identified server described in middle any one and the syntople of access switch.
CN201310359502.9A 2013-08-16 2013-08-16 Automatically method and the device of the syntople of identified server and access switch Active CN103441935B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310359502.9A CN103441935B (en) 2013-08-16 2013-08-16 Automatically method and the device of the syntople of identified server and access switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310359502.9A CN103441935B (en) 2013-08-16 2013-08-16 Automatically method and the device of the syntople of identified server and access switch

Publications (2)

Publication Number Publication Date
CN103441935A CN103441935A (en) 2013-12-11
CN103441935B true CN103441935B (en) 2016-05-25

Family

ID=49695601

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310359502.9A Active CN103441935B (en) 2013-08-16 2013-08-16 Automatically method and the device of the syntople of identified server and access switch

Country Status (1)

Country Link
CN (1) CN103441935B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105391568B (en) 2014-09-05 2019-07-23 华为技术有限公司 A kind of implementation method, the device and system of software defined network SDN
CN106998299B (en) * 2016-01-22 2019-10-18 华为技术有限公司 The recognition methods of the network equipment, apparatus and system in data center network
CN107959602B (en) * 2016-10-14 2019-04-09 视联动力信息技术股份有限公司 A kind of method of network entry and device
CN106789168B (en) * 2016-11-28 2020-03-20 华为技术有限公司 Deployment method of data center server management network and rack top type switch
CN107547382B (en) * 2017-05-23 2020-06-09 新华三信息技术有限公司 Neighbor relation discovery method and device
CN110430078B (en) * 2019-08-05 2022-04-08 云南电网有限责任公司电力科学研究院 Method and system for recognizing type, configuring and functionally enabling electric power automation terminal
CN111740877B (en) * 2020-05-29 2021-08-10 苏州浪潮智能科技有限公司 Link detection method and system
CN112398738B (en) * 2020-11-05 2022-06-28 竞技世界(北京)网络技术有限公司 Method and device for acquiring connection relation, equipment and computer readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101980490A (en) * 2010-12-01 2011-02-23 杭州华三通信技术有限公司 Link establishment method for virtual switch and physical switch and device thereof
WO2011140028A1 (en) * 2010-05-03 2011-11-10 Brocade Communications Systems, Inc. Virtual cluster switching

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8407366B2 (en) * 2010-05-14 2013-03-26 Microsoft Corporation Interconnecting members of a virtual network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011140028A1 (en) * 2010-05-03 2011-11-10 Brocade Communications Systems, Inc. Virtual cluster switching
CN101980490A (en) * 2010-12-01 2011-02-23 杭州华三通信技术有限公司 Link establishment method for virtual switch and physical switch and device thereof

Also Published As

Publication number Publication date
CN103441935A (en) 2013-12-11

Similar Documents

Publication Publication Date Title
CN103441935B (en) Automatically method and the device of the syntople of identified server and access switch
CN107580083A (en) A kind of method and system of container IP address distribution
CN106031116B (en) A kind of correlating method, the apparatus and system of NS and VNF
CN104350467B (en) Elasticity for the cloud security using SDN carries out layer
CN106301829B (en) A kind of method and apparatus of network service dilatation
CN105812171B (en) A kind of the network function VNF control method and equipment of virtualization
CN103856350B (en) The network of object-oriented
CN103930873B (en) The configuration of the interface based on dynamic strategy for virtualized environment
CN102291452B (en) Virtual machine management method, cloud management server and cloud system based on cloud strategy
CN107846313B (en) A kind of method and the network equipment of the generation of network service moulding plate
CN104618312B (en) A kind of remote login methods, devices and systems of M2M application
CN104583955A (en) Method and apparatus for IP commissioning and decom-missioning in orchestrated computing environments
CN105162702B (en) A kind of AC drainage method and device
CN103607430A (en) Network processing method and system, and network control center
CN109639455A (en) A kind of network management and system of container cloud platform
CN106131167A (en) For managing the method and system of Internet of Things user and equipment
CN105429811B (en) network management system and method
CN103607432B (en) A kind of method and system of network creation and the network control center
CN104133776B (en) Storage array automatic configuration method, device and storage system
CN107967140A (en) The initiating method of software modification, the method and device for issuing metadata
CN107113892A (en) A kind of method and device of gateway device automatic network-building
CN106878204A (en) The creation method and device of a kind of virtual machine
CN107979614A (en) Data packet detection method and device
CN103684861B (en) Method and device for processing network configuration and communication system
CN106161603B (en) A kind of method of networking, equipment and framework

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant