Nothing Special   »   [go: up one dir, main page]

CN103441935A - Method and device capable of automatically recognizing adjacency relation between server and access switch - Google Patents

Method and device capable of automatically recognizing adjacency relation between server and access switch Download PDF

Info

Publication number
CN103441935A
CN103441935A CN2013103595029A CN201310359502A CN103441935A CN 103441935 A CN103441935 A CN 103441935A CN 2013103595029 A CN2013103595029 A CN 2013103595029A CN 201310359502 A CN201310359502 A CN 201310359502A CN 103441935 A CN103441935 A CN 103441935A
Authority
CN
China
Prior art keywords
access switch
server
physical host
interface
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.)
Granted
Application number
CN2013103595029A
Other languages
Chinese (zh)
Other versions
CN103441935B (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

Images

Landscapes

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

Abstract

The invention discloses a method and device capable of automatically recognizing the adjacency relation between a server and an access switch and a webmaster server. The problem that the adjacency relation between a server physical host and the access switch cannot be effectively determined in a data center in the prior art is solved. According to a network topological structure of the established data center, the webmaster can acquire the type of network equipment in the topological structure. Edge devices of the data center can be recognized according to the type of the network equipment. According to a recognized APP list of the access switch, the server physical host communicated with an interface of the access switch can be determined. Furthermore, the corresponding relation between the interface of the access switch and the determined server physical hose is established, and the webmaster server can determine a network card, communicated with the corresponding interface of the access switch, of the server physical host to establish the corresponding relation between the interface of the access switch and the network card of the server physical host.

Description

Method and the device of the syntople of automatic identified server and access switch
Technical field
The present invention relates to data communication system, particularly, relate to a kind of method that is applied in data center environment the syntople of identified server and access switch automatically and device, NM server.
Background technology
In the data center network environment, usually there is typical network topology as shown in Figure 1, terminal (as research, developing department or sales department) is linked into server area by access switch (can comprise multistage access switch), or is connected to the Internet by access switch, convergence-level switch and core layer switch.Wherein, server area comprises the equipment such as at least one server physical host, storage networking.On the server physical host, in order to meet the needs of different departments, plan and be provided with a plurality of virtual servers, such as exploitation server, research server and physics DMZ district etc., each virtual server is provided with certain authority, and the user with corresponding authority could access corresponding virtual server.
Fictionalize multiple servers on separate unit server physical host, can realize the dilatation of server, and save space and the energy consumption scale of whole data center, but original server capability remains unchanged, namely all departments' access rights are controlled, and security strategy is constant.
The wherein control of security strategy, be responsible for by access switch.As the NM server in Fig. 1, for the security strategy of Control Server physical host (or virtual server) more directly, usually wish directly from the angle of server physical host (or virtual server), corresponding security strategy to be set.Therefore must search out the access switch adjacent with the server physical host, then by corresponding policy distribution in access switch.
As shown in Figure 2, server physical host 1 is connected with access switch 1 by switch 1, by switch 2, with access switch 2, be connected, 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 access switch on server physical host 1 and usually there is virtual perception, can obtain the MAC controller (MAC of the virtual server on the server physical host communicated with access switch by virtual perception, Media Access Controller) address.
Therefore because the server physical host often directly is not connected with access switch, may be connected by multistage switches therebetween, direct perception adjacent access switch with it.If therefore from the angle of server physical host (or virtual server), corresponding security strategy is set, under the prior art condition, usually adopts following scheme:
Scheme one, find out all access switch in this data center network topology, issue the security strategy of the server physical host (or virtual server) of the whole network to every access switch;
Scheme two, the artificial appointment access switch adjacent with the server physical host, then issue the security strategy relevant to this server physical host (or virtual server) to access switch;
For above two schemes, in scheme one, all access switch are issued the security strategy of whole physical hosts or virtual server, to become certain performance burden to the access exchange mechanism, and due to server physical host or virtual server to different) needed security strategy difference, therefore likely there is the situation of conflicting; Scheme two needs artificial the participation to specify the corresponding access switch adjacent with physical host, in the data center network environment, often exist the wiring of more complicated, so the webmaster personnel often is difficult to find the data center switch adjacent with this physical host.
Visible, in prior art owing to can't effectively determining the access switch adjacent with server (physical host or virtual server), thereby the security strategy of corresponding server (server physical host or virtual server) can't be set effectively, targetedly on access switch.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method of syntople of automatic identified server and access switch and device, NM server, in order to solve in prior art, can't effectively in data center, determine the problem of the syntople of server physical host and access switch.
Embodiment of the present invention technical scheme is as follows:
The method of the syntople of a kind of automatic identified server and access switch, comprise: 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, edge device at least comprises server physical host, access switch, convergence switch and user terminal; NM server is according to the address resolution protocol (ARP of the access switch identified, Address Resolution Protocol) table, 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 the server physical host network interface card with the interface communication of corresponding access switch, sets up the corresponding relation of the network interface card of the interface of access switch and server physical host.
Wherein, NM server is according to the ARP table of the access switch identified, determine the server physical host with the interface communication of described access switch, specifically comprise: the access switch that the gateway server login identifies, according to the interface message in the ARP table of this access switch, obtain the model of the network equipment direct-connected with the interface of this access switch, in the situation that determine that this direct-connected device is edge device and determine that this edge device is the server physical host, determine that the interface of this server physical host and access switch communicates.In the situation that determine that the network equipment direct-connected with the interface of access switch is not edge device, using this direct-connected device as current device, and carry out following the processing; Step 1, according to the interface message in the ARP of current device table, obtain the model of the equipment direct-connected with the interface of current device, at definite this direct-connected device, it is edge device, and determine in the situation that this edge device is the server physical host, processing proceeds to step 3, in the situation that determine that the equipment direct-connected with the interface of current device is not edge device, process and proceed to step 2; Step 2, equipment that will be direct-connected with the interface of current device, as new current device, is processed and is returned 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 edge device of data center according to the type identifier of the obtained network equipment, specifically comprise: the model of the obtained network equipment and the unit type prestored are contrasted, in the situation that there is the model of the obtained network equipment in the unit type prestored, according to the corresponding relation of the unit type prestored and device type, identify server physical host and the switch of data center; In the situation that do not there is the model of the obtained network equipment in the unit type prestored, determine that this network equipment is user terminal; In the situation that the edge device identified is switch, send and inquire the whether order of virtual support to this switch, after the reply that receives virtual support, determine that this switch is access switch, otherwise be convergence switch;
Determine that this direct-connected device is edge device, specifically comprise: the model of obtained direct-connected device and the unit type prestored are contrasted, in the situation that there is the model of obtained direct-connected device in the unit type prestored, according to the corresponding relation of the unit type prestored and device type, determine that this direct-connected device is server physical host or switch; In the situation that do not there is the model of the obtained network equipment in the unit type prestored, determine that this network equipment is user terminal.
NM server determines on the server physical host and the network interface card of the interface communication of corresponding access switch, and specifically comprise: NM server obtains the MAC Address of whole network interface cards of the server physical host corresponding with the interface of access switch; And sign in on the switch direct-connected with this server physical host, obtain the overall network device mac address communicated with this switch; By the MAC Address of whole network interface cards of obtained described server physical host with that obtain contrasted with whole MAC Address described switch communication, determine the MAC Address that MAC Address identical in the two is the network interface card of communicating by letter with corresponding access switch on described server physical host.
Preferably, described method also comprises the scheme that the corresponding relation of the network interface card of the interface of set up access switch and server physical host is verified: the access switch that has corresponding relation for the network interface card of the interface of access switch and server physical host, NM server signs in on this access switch, obtains the MAC Address of the virtual server on the server physical host with the interface communication of access switch by virtual perception; The MAC Address of setting up the network interface card of corresponding relation by the MAC Address of obtained virtual server, with the interface of access switch is contrasted, and determines that the corresponding relation of the interface of network interface card that MAC Address identical in the two is corresponding and access switch is effective corresponding relation.
The device of the syntople of a kind of automatic identified server and access switch, comprise: the recognition of devices module, for the network topology structure according to 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, edge device at least comprises server physical host, access switch, convergence switch and user terminal; The first determination module, for the table of the ARP according to the access switch that identifies, 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; The second determination module, for determining on the server physical host network interface card with the interface communication of corresponding access switch, set up the corresponding relation of the network interface card of the interface of access switch and server physical host.
Wherein, 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, obtain the model of the network equipment direct-connected with the interface of this access switch, in the situation that determine that this direct-connected device is edge device and determine that this edge device is the server physical host, determine that the interface of this server physical host and access switch communicates.In the situation that determine that the equipment direct-connected with the interface of access switch is not edge device, using this direct-connected device as current device, and carry out following the processing; Step 1, according to the interface message in the ARP of current device table, obtain the model of the equipment direct-connected with the interface of current device, at definite this direct-connected device, it is edge device, and determine in the situation that this edge device is the server physical host, processing proceeds to step 3, in the situation that determine that the equipment direct-connected with the interface of current device is not edge device, process and proceed to step 2; Step 2, equipment that will be direct-connected with the interface of current device, as new current device, is processed and is returned to step 1; Step 3, determine that the interface of this server physical host and access switch communicates.
Described recognition of devices module, go out the edge device of data center according to the type identifier of the obtained network equipment, specifically for: the model of the obtained network equipment and the unit type prestored are contrasted, in the situation that there is the model of the obtained network equipment in the unit type prestored, according to the corresponding relation of the unit type prestored and device type, identify server physical host and the switch of data center; In the situation that do not there is the model of the obtained network equipment in the unit type prestored, determine that this network equipment is user terminal; In the situation that the edge device identified is switch, send and inquire the whether order of virtual support to this switch, after the reply that receives virtual support, determine 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 prestored are contrasted, in the situation that there is the model of obtained direct-connected device in the unit type prestored, according to the corresponding relation of the unit type prestored and device type, determine that this direct-connected device is server physical host or switch; In the situation that do not there is the model of the obtained network equipment in the unit type prestored, determine that this network equipment is user terminal.
The second determination module is determined on the server physical host network interface card with the interface communication of corresponding access switch, specifically for: the MAC Address of obtaining whole network interface cards of the server physical host corresponding with the interface of access switch; And sign in on the switch direct-connected with this server physical host, obtain the overall network device mac address communicated with this switch; By the MAC Address of whole network interface cards of obtained described server physical host with that obtain contrasted with whole MAC Address described switch communication, determine the MAC Address that MAC Address identical in the two is the network interface card of communicating by letter with corresponding access switch on described server physical host.
Preferably, described device also comprises: authentication module, there is the access switch of corresponding relation for the network interface card of the interface for access switch and server physical host, sign in on this access switch, obtain the MAC Address of the virtual server on the server physical host with the interface communication of access switch by virtual perception; The MAC Address of setting up the network interface card of corresponding relation by the MAC Address of obtained virtual server, with the interface of access switch is contrasted, and determines that the corresponding relation of the interface of network interface card that MAC Address identical in the two is corresponding and access switch is effective corresponding relation.
A kind of NM server that is applied to data center, comprise the device of the syntople of automatic identified server as above and access switch.
Technical scheme according to the embodiment of the present invention, 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, edge device comprises the server physical host, access switch, convergence switch and user terminal, and show according to the ARP of the access switch identified, 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 the server physical host network interface card with the interface communication of corresponding access switch, set up the corresponding relation of the network interface card of the interface of access switch and server physical host, be also that NM server is determined the server physical host of communicating by letter with access switch from the access switch side, the i.e. server physical host adjacent with access switch, determine the network interface card of communicating by letter with access switch the server physical host from the server physical host side corresponding with access switch again, thereby set up the corresponding relation of the network interface card of the interface of access switch and server physical host, can effectively determine the syntople of server physical host and access switch, and can be accurate to the corresponding relation of the interface of network interface card on the server physical host and access switch, thereby can solve in prior art and can't effectively 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 specification, become apparent, or understand by implementing the present invention.Purpose of the present invention and other advantages can realize and obtain by specifically noted structure in the specification write, claims and accompanying drawing.
The accompanying drawing explanation
The network topology structure schematic diagram that Fig. 1 is data center;
The annexation block diagram that Fig. 2 is server physical host and access switch in data center;
The workflow diagram of the method for the automatic identified server that Fig. 3 provides for the embodiment of the present invention and the syntople of access switch;
The process flowchart that Fig. 4 is step 302 in Fig. 3;
The process flowchart that Fig. 5 is step 303 in Fig. 3;
Another workflow diagram of the method for the automatic identified server that Fig. 6 provides for the embodiment of the present invention and the syntople of access switch;
The structured flowchart of the device of the automatic identified server that Fig. 7 provides for the embodiment of the present invention and the syntople of access switch;
Another structured flowchart of the device of the automatic identified server that Fig. 8 provides for the embodiment of the present invention and the syntople of access switch.
Embodiment
Below in conjunction with accompanying drawing, embodiments of the invention are described, should be appreciated that embodiment described herein, only for description and interpretation the present invention, is not intended to limit the present invention.
For in prior art, can't effectively in data center, determining the problem of the syntople of server physical host and access switch, the embodiment of the present invention provides a kind of method of syntople of automatic identified server and access switch 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 the server physical host of communicating by letter with access switch from the access switch side, the i.e. server physical host adjacent with access switch, determine the network interface card of communicating by letter with access switch the server physical host from the server physical host side corresponding with access switch again, thereby set up the corresponding relation of the network interface card of the interface of access switch and server physical host, can effectively determine the syntople of server physical host and access switch, and can be accurate to the corresponding relation of the interface of network interface card on the server physical host and access switch, thereby can solve in prior art and can't effectively in data center, determine the problem of the syntople of server physical host and access switch.
Below the technical scheme of the embodiment of the present invention is elaborated.
Fig. 3 shows the workflow diagram of method of the syntople of automatic identified server that the embodiment of the present invention provides and access switch, and the method comprises:
Step 301, NM server are 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, edge device comprises server physical host, access switch, convergence switch and user terminal;
Wherein, the model of obtaining the network equipment can realize by technological means of the prior art;
Particularly, after NM server gets the model of the network equipment, the model of the obtained network equipment and the unit type prestored are contrasted, in the situation that there is the model of the obtained network equipment in the unit type prestored, according to the corresponding relation of the unit type prestored and device type, identify server physical host and the switch of data center; In the situation that do not there is the model of the obtained network equipment in the unit type prestored, determine that this network equipment is user terminal;
In the situation that the edge device identified is switch, send and inquire the whether order of virtual support to this switch, after the reply that receives virtual support, determine 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 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;
Particularly, illustrated in Fig. 4 in step 302 and to have determined and the processing procedure of the server physical host of the interface communication of described access switch, this process comprises:
The access switch that step 3021, gateway server login identify, according to the interface message in the ARP table of this access switch, obtain the model of the network equipment direct-connected with the interface of this access switch;
Wherein, login access switch, the model obtaining the ARP table of access switch and obtain the network equipment can realize by the prior art means;
Whether the direct-connected network equipment of the interface of step 3022, judgement and access switch is edge device, in the situation that be defined as edge device, process and proceed to step 3023, otherwise, process and proceed to step 3024;
Wherein, the processing that the judgement direct-connected device is edge device comprises: the model of obtained direct-connected device and the unit type prestored are contrasted, in the situation that there is the model of obtained direct-connected device in the unit type prestored, according to the corresponding relation of the unit type prestored and device type, determine that this direct-connected device is server physical host or switch; In the situation that do not there is the model of the obtained network equipment in the unit type prestored, determine that this network equipment is user terminal;
Whether the direct-connected edge device of the interface of step 3023, judgement and access switch is the server physical host, in the situation that be defined as be, the interface of determining this server physical host and access switch communicates, in the situation that be defined as noly, processing finishes;
Wherein, because NM server has just determined that obtaining edge device is server physical host or switch in the judgement direct-connected device process that is edge device, judge that whether edge device is that the processing of server physical host only need judge whether the type of identified direct-connected device is that the server physical host gets final product;
Step 3024, will be direct-connected with the interface of access switch the network equipment as current device;
Step 3025, according to the interface message in the ARP of current device table, obtain the model of the equipment direct-connected with the interface of current device, at definite this direct-connected device, it is edge device, and determine in the situation that this edge device is the server physical host, processing proceeds to step 3027, in the situation that determine that the equipment direct-connected with the interface of current device is not 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, equipment that will be direct-connected with the interface of current device, as new current device, is processed and is returned to step 3025;
Step 3027, determine that the interface of this server physical host and access switch communicates;
In the situation that the interface of access switch and server physical host are direct-connected, can be processed by the processing procedure of step 3021~3023, in the situation that be connected by one-level switch at least between the interface of access switch and server physical host, by step 3021~3022, step 3024~3027, process;
But, what according to step 302, determine is the server physical host that the interface with access switch communicates, and can not determine the network interface card on the server physical host obtained with the interface communication of access switch, this is that card is relevant because the virtual server arranged on the server physical host is understood usually and at least two on the server physical host thrown the net, even coming perception to obtain with the MAC Address of the interface communication of access switch by the virtual cognition technology on access switch is the MAC Address of virtual server, but there is corresponding or transformational relation between the MAC Address of the MAC of virtual server and network interface card, so can not be directly from the access switch side, determine the network interface card the server physical host with the interface communication of access switch, , can determine the net on the server physical host with the interface communication of access switch by following step 303,
Step 303, NM server are determined on the server physical host network interface card with the interface communication of corresponding access switch, set up the corresponding relation of the network interface card of the interface of access switch and server physical host.
Particularly, NM server is determined on the server physical host with the processing of the network interface card of the interface communication of corresponding access switch and is comprised processing procedure as shown in Figure 5:
Step 3031, NM server obtain the media access controller MAC Address of whole network interface cards of the server physical host corresponding with the interface of access switch;
Usually have multiple network interface cards on the server physical host, the card of often throwing the net all has MAC Address;
Step 3032, gateway server sign in on the switch direct-connected with this server physical host, obtain the overall network device mac address communicated with this switch;
If server physical host and access switch are direct-connected, what obtain is the MAC Address of the overall network equipment that communicates with access switch, if be connected by one-level switch at least between server physical host and access switch, with the server physical host direct-connected be switch, what obtain is the MAC Address of the overall network equipment that communicates with this switch;
Step 3033, gateway server are by the MAC Address of whole network interface cards of obtained described server physical host and that obtain with whole MAC Address described switch communication, contrasted, and determine the MAC Address that MAC Address identical in the two is the network interface card of communicating by letter with corresponding access switch on described server physical host;
According to the processing procedure shown in Fig. 5, the MAC Address of the MAC Address of the whole network interface cards by the comparison server physical host corresponding with the interface of access switch and the overall network equipment that communicates with the direct-connected switch of server physical host, just can determine and obtain specifically and network interface card that the interface of access switch communicates.
Further, in concrete application, corresponding relation due to the interface of the network interface card of having determined the server physical host and access switch, and, the MAC Address of the MAC Address territory network interface card of the virtual server on the server physical host has correspondence or transformational relation,, can also determine further the corresponding relation of the interface that obtains virtual server and access switch.
Thereby, according to above-mentioned processing procedure, determine the server physical host of communicating by letter with access switch from the access switch side, the i.e. server physical host adjacent with access switch, determine the network interface card of communicating by letter with access switch the server physical host from the server physical host side corresponding with access switch again, thereby set up the corresponding relation of the network interface card of the interface of access switch and server physical host, can effectively determine the syntople of server physical host and access switch, and can be accurate to the corresponding relation of the interface of network interface card on the server physical host and access switch, thereby can solve in prior art and can't effectively in data center, determine the problem of the syntople of server physical host and access switch.
Further, the method of setting up the network topology structure of data center due to NM server has multiple, for example utilize Link Layer Discovery Protocol (LLDP, Link Layer Discovery Protocol) carry out automatic Topology 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 there is the link connection mistake in the network topology structure of setting up, can affect the accuracy of the corresponding relation of setting up in step 303.For this problem, the embodiment of the present invention has also proposed the method that the corresponding relation of the network interface card of a kind of interface to the access switch set up by method shown in Fig. 3 and server physical host is verified.
As shown in Figure 6, on the basis of processing procedure shown in Fig. 3, the method for the automatic identified server that the embodiment of the present invention provides and the syntople of access switch also comprises following processing procedure:
Step 304, there is the access switch of corresponding relation for the network interface card of the interface of access switch and server physical host, NM server signs in on this access switch, obtains the MAC Address of the virtual server on the server physical host with the interface communication of access switch by virtual perception;
Step 305, the MAC Address of setting up the network interface card of corresponding relation by the MAC Address of obtained virtual server, with the interface of access switch are contrasted, and determine that the corresponding relation of the interface of network interface card that MAC Address identical in the two is corresponding and access switch is effective corresponding relation.
Because in above-mentioned steps 303 being determines the network interface card with the server physical host of the interface communication of access switch by carry out MAC Address comparison from server physical host side, by above-mentioned steps 304~305, obtain the MAC Address of the virtual server the server physical host with the interface communication of access switch by virtual cognition technology from the access switch side, and the MAC Address that this is obtained, the MAC Address of having set up the network interface card of corresponding relation with the interface of access switch is contrasted, only in the situation that link is correct, these two is only identical, thereby in can verification step 303, whether definite corresponding relation be effective corresponding relation, thereby can filter out the step 303 that causes due to the link error in topological structure determines and obtains wrong corresponding relation.
Inventive concept based on identical, the embodiment of the present invention also provides the device of the syntople of a kind of automatic identified server and access switch, and this device is arranged in the NM server of data center.
The structure of the device of the automatic identified server that as shown in Figure 7, the embodiment of the present invention provides and the syntople of access switch comprises:
Recognition of devices module 71, for the network topology structure according to 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, edge device comprises server physical host, access switch, convergence switch and user terminal;
Recognition of devices module 71 goes out the edge device of data center according to the type identifier of the obtained network equipment, specifically for: the model of the obtained network equipment and the unit type prestored are contrasted, in the situation that there is the model of the obtained network equipment in the unit type prestored, according to the corresponding relation of the unit type prestored and device type, identify server physical host and the switch of data center; In the situation that do not there is the model of the obtained network equipment in the unit type prestored, determine that this network equipment is user terminal; In the situation that the edge device identified is switch, send and inquire the whether order of virtual support to this switch, after the reply that receives virtual support, determine that this switch is access switch, otherwise be convergence switch;
The first determination module 72, be connected to recognition of devices module 71, ARP table for the access switch that identifies according to recognition of devices module 71, 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;
Particularly, the access switch that the first determination module 72 logins identify, according to the interface message in the ARP table of this access switch, obtain the model of the network equipment direct-connected with the interface of this access switch, in the situation that determine that this direct-connected device is edge device and determine that this edge device is the server physical host, determine that the interface of this server physical host and access switch communicates;
In the situation that determine that the equipment direct-connected with the interface of access switch is not edge device, using this direct-connected device as current device, and carry out following the processing; Step 1, according to the interface message in the ARP of current device table, obtain the model of the equipment direct-connected with the interface of current device, at definite this direct-connected device, it is edge device, and determine in the situation that this edge device is the server physical host, processing proceeds to step 3, in the situation that determine that the equipment direct-connected with the interface of current device is not edge device, process and proceed to step 2; Step 2, equipment that will be direct-connected with the interface of current device, as new current device, is processed and is returned 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: the model of obtained direct-connected device and the unit type prestored are contrasted, in the situation that there is the model of obtained direct-connected device in the unit type prestored, according to the corresponding relation of the unit type prestored and device type, determine that this direct-connected device is server physical host or switch; In the situation that do not there is the model of the obtained network equipment in the unit type prestored, determine that this network equipment is user terminal;
The second determination module 73, be connected to the first determination module 72, for determining on the definite server physical host of the second determination module 73 network interface card with the interface communication of corresponding access switch, set up the corresponding relation of the network interface card of the interface of access switch and server physical host;
The second determination module 73 is determined on the server physical host network interface card with the interface communication of corresponding access switch, specifically for: the media access controller MAC Address of obtaining whole network interface cards of the server physical host corresponding with the interface of access switch; And sign in on the switch direct-connected with this server physical host, obtain the overall network device mac address communicated with this switch; By the MAC Address of whole network interface cards of obtained described server physical host with that obtain contrasted with whole MAC Address described switch communication, determine the MAC Address that MAC Address identical in the two is the network interface card of communicating by letter with corresponding access switch on described server physical host.
Preferably, as shown in Figure 8, on the basis of Fig. 7 shown device, the device of the automatic identified server that the embodiment of the present invention provides and the syntople of access switch also comprises:
Authentication module 74, be connected to the second determination module 73, there is the access switch of corresponding relation for the network interface card of the interface for access switch and server physical host, sign in on this access switch, obtain the MAC Address of the virtual server on the server physical host with the interface communication of access switch by virtual perception; The MAC Address of setting up the network interface card of corresponding relation by the MAC Address of obtained virtual server, with the interface of access switch is contrasted, and determines that the corresponding relation of the interface of network interface card that MAC Address identical in the two is corresponding and access switch is effective corresponding relation.
By the device shown in Fig. 7, determine the server physical host of communicating by letter with access switch from the access switch side, the i.e. server physical host adjacent with access switch, determine the network interface card of communicating by letter with access switch the server physical host from the server physical host side corresponding with access switch again, thereby set up the corresponding relation of the network interface card of the interface of access switch and server physical host, can effectively determine the syntople of server physical host and access switch, and can be accurate to the corresponding relation of the interface of network interface card on the server physical host and access switch, thereby can solve in prior art and can't effectively in data center, determine the problem of the syntople of server physical host and access switch.
According to the device shown in Fig. 8, authentication module 74 can also verify whether corresponding relation definite in the second determination module 73 is effective corresponding relation, thereby can filter out the step 303 that causes due to the link error in topological structure, determines and obtains wrong corresponding relation.
One of ordinary skill in the art will appreciate that and realize that all or part of step that above-described embodiment method is carried is to come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium, this program, when carrying out, comprises step of embodiment of the method one or a combination set of.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, can be also that the independent physics of unit exists, and also can be integrated in a module two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, also can adopt the form of software function module to realize.If described integrated module usings that the form of software function module realizes and during as production marketing independently or use, 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 computer program.Therefore, the present invention can adopt complete hardware implementation example, implement software example or in conjunction with the form of the embodiment of software and hardware aspect fully.And the present invention can adopt the form that wherein includes the upper computer program of implementing of computer-usable storage medium (including but not limited to magnetic disc store and optical memory etc.) of computer usable program code one or more.
The present invention describes with reference to flow chart and/or the block diagram of method, equipment (system) and computer program according to the embodiment of the present invention.Should understand can be in computer program instructions realization flow figure and/or block diagram each flow process and/or the 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 the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, make the instruction of carrying out by the processor of computer or other programmable data processing device produce for realizing the device in the function of flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, make the instruction be stored in this computer-readable memory produce the manufacture that comprises command device, this command device is realized the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
These computer program instructions also can be loaded on computer or other programmable data processing device, make and carry out the sequence of operations step to produce computer implemented processing on computer or other programmable devices, thereby the instruction of carrying out on computer or other programmable devices is provided for realizing the step of the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
Obviously, those skilled in the art can carry out various changes and modification and not break away from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention also is intended to comprise these changes and modification interior.

Claims (13)

1. the method for the syntople of an automatic identified server and access switch, is characterized in that, comprising:
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, edge device at least comprises server physical host, access switch, convergence switch and user terminal;
NM server is according to the ARP table of the access switch identified, 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 the server physical host network interface card with the interface communication of corresponding access switch, sets up the corresponding relation of the network interface card of the interface of access switch and server physical host.
2. method according to claim 1, is characterized in that, NM server is according to the ARP table of the access switch that identifies, determines and the server physical host of the interface communication of described access switch, specifically comprises:
The access switch that the gateway server login identifies, according to the interface message in the ARP table of this access switch, obtain the model of the network equipment direct-connected with the interface of this access switch, in the situation that determine that this direct-connected device is edge device and determine that this edge device is the server physical host, determine that the interface of this server physical host and access switch communicates.
3. method according to claim 2, is characterized in that, described method also comprises:
In the situation that determine that the network equipment direct-connected with the interface of access switch is not edge device, using this direct-connected device as current device, and carry out following the processing;
Step 1, according to the interface message in the ARP of current device table, obtain the model of the equipment direct-connected with the interface of current device, at definite this direct-connected device, it is edge device, and determine in the situation that this edge device is the server physical host, processing proceeds to step 3, in the situation that determine that the equipment direct-connected with the interface of current device is not edge device, process and proceed to step 2;
Step 2, equipment that will be direct-connected with the interface of current device, as new current device, is processed and is returned to step 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, goes out the edge device of data center according to the type identifier of the obtained network equipment, specifically comprises:
The model of the obtained network equipment and the unit type prestored are contrasted, in the situation that there is the model of the obtained network equipment in the unit type prestored, according to the corresponding relation of the unit type prestored and device type, identify server physical host and the switch of data center; In the situation that do not there is the model of the obtained network equipment in the unit type prestored, determine that this network equipment is user terminal;
In the situation that the edge device identified is switch, send and inquire the whether order of virtual support to this switch, after the reply that receives virtual support, determine 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 prestored are contrasted, in the situation that there is the model of obtained direct-connected device in the unit type prestored, according to the corresponding relation of the unit type prestored and device type, determine that this direct-connected device is server physical host or switch; In the situation that do not there is the model of the obtained network equipment in the unit type prestored, determine that this network equipment is user terminal.
5. method according to claim 1, is characterized in that, NM server is determined on the server physical host and the network interface card of the interface communication of corresponding access switch, specifically comprised:
NM server obtains the media access controller MAC Address of whole network interface cards of the server physical host corresponding with the interface of access switch;
And sign in on the switch direct-connected with this server physical host, obtain the overall network device mac address communicated with this switch;
By the MAC Address of whole network interface cards of obtained described server physical host with that obtain contrasted with whole MAC Address described switch communication, determine the MAC Address that MAC Address identical in the two is the network interface card of communicating by letter with corresponding access switch on described server physical host.
6. according to the described method of any one in claim 1~5, it is characterized in that, described method also comprises:
There is the access switch of corresponding relation for the network interface card of the interface of access switch and server physical host, NM server signs in on this access switch, obtains the MAC Address of the virtual server on the server physical host with the interface communication of access switch by virtual perception;
The MAC Address of setting up the network interface card of corresponding relation by the MAC Address of obtained virtual server, with the interface of access switch is contrasted, and determines that the corresponding relation of the interface of network interface card that MAC Address identical in the two is corresponding and access switch is effective corresponding relation.
7. the device of the syntople of an automatic identified server and access switch, is characterized in that, comprising:
The recognition of devices module, for the network topology structure according to 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, edge device at least comprises server physical host, access switch, convergence switch and user terminal;
The first determination module, ARP table for the access switch according to 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;
The second determination module, for determining on the server physical host network interface card with the interface communication of corresponding access switch, set up the corresponding relation of the network interface card of the interface of access switch and 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, obtain the model of the network equipment direct-connected with the interface of this access switch, in the situation that determine that this direct-connected device is edge device and determine that this edge device is the server physical host, determine that the interface of this server physical host and access switch communicates.
9. device according to claim 8, is characterized in that, the first determination module, also for:
In the situation that determine that the equipment direct-connected with the interface of access switch is not edge device, using this direct-connected device as current device, and carry out following the processing;
Step 1, according to the interface message in the ARP of current device table, obtain the model of the equipment direct-connected with the interface of current device, at definite this direct-connected device, it is edge device, and determine in the situation that this edge device is the server physical host, processing proceeds to step 3, in the situation that determine that the equipment direct-connected with the interface of current device is not edge device, process and proceed to step 2;
Step 2, equipment that will be direct-connected with the interface of current device, as new current device, is processed and is returned to step 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, go out the edge device of data center according to the type identifier of the obtained network equipment, specifically for:
The model of the obtained network equipment and the unit type prestored are contrasted, in the situation that there is the model of the obtained network equipment in the unit type prestored, according to the corresponding relation of the unit type prestored and device type, identify server physical host and the switch of data center; In the situation that do not there is the model of the obtained network equipment in the unit type prestored, determine that this network equipment is user terminal;
In the situation that the edge device identified is switch, send and inquire the whether order of virtual support to this switch, after the reply that receives virtual support, determine 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 prestored are contrasted, in the situation that there is the model of obtained direct-connected device in the unit type prestored, according to the corresponding relation of the unit type prestored and device type, determine that this direct-connected device is server physical host or switch; In the situation that do not there is the model of the obtained network equipment in the unit type prestored, determine that this network equipment is user terminal.
11. device according to claim 7, is characterized in that, the second determination module is determined on the server physical host network interface card with the interface communication of corresponding access switch, specifically for:
Obtain the media access controller MAC Address of whole network interface cards of the server physical host corresponding with the interface of access switch;
And sign in on the switch direct-connected with this server physical host, obtain the overall network device mac address communicated with this switch;
By the MAC Address of whole network interface cards of obtained described server physical host with that obtain contrasted with whole MAC Address described switch communication, determine the MAC Address that MAC Address identical in the two is the network interface card of communicating by letter with corresponding access switch on described server physical host.
12. according to the described device of any one in claim 7~11, it is characterized in that, described device also comprises:
Authentication module, there is the access switch of corresponding relation for the network interface card of the interface for access switch and server physical host, sign in on this access switch, obtain the MAC Address of the virtual server on the server physical host with the interface communication of access switch by virtual perception;
The MAC Address of setting up the network interface card of corresponding relation by the MAC Address of obtained virtual server, with the interface of access switch is contrasted, and determines that the corresponding relation of the interface of network interface card that MAC Address identical in the two is corresponding and access switch is effective corresponding relation.
13. a NM server that is applied to data center, is characterized in that, comprises the device of the syntople of automatic identified server as described as any one in claim 7~12 and 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 true CN103441935A (en) 2013-12-11
CN103441935B 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)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105391568A (en) * 2014-09-05 2016-03-09 华为技术有限公司 SDN (Software Defined Network) implementation method, device and system
CN106789168A (en) * 2016-11-28 2017-05-31 华为技术有限公司 A kind of data center server manages the dispositions method and frame top formula interchanger of network
CN106998299A (en) * 2016-01-22 2017-08-01 华为技术有限公司 The recognition methods of the network equipment, apparatus and system in data center network
CN107547382A (en) * 2017-05-23 2018-01-05 紫光华山信息技术有限公司 A kind of neighborhood finds method and apparatus
CN107959602A (en) * 2016-10-14 2018-04-24 北京视联动力国际信息技术有限公司 A kind of method of network entry and device
CN110430078A (en) * 2019-08-05 2019-11-08 云南电网有限责任公司电力科学研究院 The method and system that power automation terminal type identifies, configuration and function are online
CN111740877A (en) * 2020-05-29 2020-10-02 苏州浪潮智能科技有限公司 Link detection method and system
CN112398738A (en) * 2020-11-05 2021-02-23 竞技世界(北京)网络技术有限公司 Method, device and equipment for acquiring connection relation and computer readable storage medium

Citations (3)

* 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
US20110283017A1 (en) * 2010-05-14 2011-11-17 Microsoft Corporation Interconnecting Members of a Virtual Network

Patent Citations (3)

* 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
US20110283017A1 (en) * 2010-05-14 2011-11-17 Microsoft Corporation Interconnecting Members of a Virtual Network
CN101980490A (en) * 2010-12-01 2011-02-23 杭州华三通信技术有限公司 Link establishment method for virtual switch and physical switch and device thereof

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016034074A1 (en) * 2014-09-05 2016-03-10 华为技术有限公司 Method, apparatus and system for implementing software-defined networking (sdn)
CN105391568A (en) * 2014-09-05 2016-03-09 华为技术有限公司 SDN (Software Defined Network) implementation method, device and system
CN105391568B (en) * 2014-09-05 2019-07-23 华为技术有限公司 A kind of implementation method, the device and system of software defined network SDN
US11444841B2 (en) 2014-09-05 2022-09-13 Huawei Technologies Co., Ltd. Method, apparatus, and system for implementing software-defined network SDN
US10560337B2 (en) 2014-09-05 2020-02-11 Huawei Technologies Co., Ltd. Method, apparatus, and system for implementing software-defined network SDN
CN106998299A (en) * 2016-01-22 2017-08-01 华为技术有限公司 The recognition methods of the network equipment, apparatus and system in data center network
CN106998299B (en) * 2016-01-22 2019-10-18 华为技术有限公司 The recognition methods of the network equipment, apparatus and system in data center network
CN107959602A (en) * 2016-10-14 2018-04-24 北京视联动力国际信息技术有限公司 A kind of method of network entry and device
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
CN106789168A (en) * 2016-11-28 2017-05-31 华为技术有限公司 A kind of data center server manages the dispositions method and frame top formula interchanger of network
CN107547382A (en) * 2017-05-23 2018-01-05 紫光华山信息技术有限公司 A kind of neighborhood finds method and apparatus
CN110430078B (en) * 2019-08-05 2022-04-08 云南电网有限责任公司电力科学研究院 Method and system for recognizing type, configuring and functionally enabling electric power automation terminal
CN110430078A (en) * 2019-08-05 2019-11-08 云南电网有限责任公司电力科学研究院 The method and system that power automation terminal type identifies, configuration and function are online
CN111740877A (en) * 2020-05-29 2020-10-02 苏州浪潮智能科技有限公司 Link detection method and system
CN111740877B (en) * 2020-05-29 2021-08-10 苏州浪潮智能科技有限公司 Link detection method and system
CN112398738A (en) * 2020-11-05 2021-02-23 竞技世界(北京)网络技术有限公司 Method, device and equipment for acquiring connection relation and computer readable storage medium
CN112398738B (en) * 2020-11-05 2022-06-28 竞技世界(北京)网络技术有限公司 Method and device for acquiring connection relation, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN103441935B (en) 2016-05-25

Similar Documents

Publication Publication Date Title
CN103441935A (en) Method and device capable of automatically recognizing adjacency relation between server and access switch
CN107846313B (en) A kind of method and the network equipment of the generation of network service moulding plate
CN102291452B (en) Virtual machine management method, cloud management server and cloud system based on cloud strategy
CN103731514B (en) Virtual network management method
CN103944869B (en) Access the method and high in the clouds connector of remote resource
CN104753697B (en) A kind of method, equipment and system controlling the automatic beginning of the network equipment
US9749182B2 (en) Method and apparatus for configuring network policy of virtual network
CN105718785B (en) Computer-implemented mode and system for authentication-exempt configuration
CN109804648A (en) IoT configuration service
EP3698533A1 (en) Single sign-in for iot devices
CN106873553A (en) Field apparatus control management method and device based on industry internet operating system
CN112953774B (en) Network topology generation method, system, equipment and computer storage medium
CN106031116A (en) Method, apparatus and system for associating NS with VNF
CN101951369A (en) Batch terminal upgrading method and system based on automatic discovery
CN107113892A (en) A kind of method and device of gateway device automatic network-building
CN109474467A (en) Network automatically management method, device, storage medium and electronic equipment
CN109474443A (en) A kind of configuration method, device, system and the communication equipment of newly-increased server
CN103684861B (en) Method and device for processing network configuration and communication system
CN108933844A (en) The method and apparatus of DHCP service is provided
US20140156820A1 (en) Configuration information selection based on extracted information
CN106708483A (en) Generating method and generating device of control interface of internet-of-things equipment
CN108259523A (en) A kind of data transmission method and Internet of things system, Network Access Method
CN109861869B (en) Configuration file generation method and device
CN103812672A (en) Method for discovering newly-added network element device, correlative device, and system
CN102789388B (en) In MIPS IA frame serverPC, the method and system of network interface card function are increased based on BMC

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