Summary of the invention
The invention provides a kind of in-band management method and system, the efficient that can solve in-band management of the prior art is low, and needs a large amount of network interface cards, causes the higher problem of cost of in-band management.
For achieving the above object, the present invention adopts following technical scheme:
First aspect, a kind of in-band management method is provided, be applied to a kind of in-band management system, described in-band management system comprises administration module, described in-band management system also comprises the quick peripheral assembly interface PCI E Switching Module that is connected with described administration module, described PCI E Switching Module is connected with the first network interface card of supporting the virtual SR-IOV of single input and output or is connected with the second network interface card of supporting the many virtual MR-IOV of input and output, described the first network interface card comprises hardware capability PF module, described the second network interface card comprises basic function BF module and one or more PF module, and described method comprises:
The type of the network interface card that administration module identification is connected with described PCIE Switching Module;
If recognizing the type of described network interface card is the first network interface card, by the PF module on described the first network interface card, divide virtual functions VF module at described the first network interface card, think that the subscriber's main station and the administration module that connect on the described PC I E Switching Module distribute respectively described VF module;
Administration module, communicates with the subscriber's main station that is connected on the described PCI E Switching Module as the in-band management network interface card with the VF module that is assigned to self;
If recognizing the type of described network interface card is the second network interface card, by the BF module on described the second network interface card, for subscriber's main station and the administration module that connects on the described PCIE Switching Module distributes respectively the PF module;
Administration module, communicates with the subscriber's main station that is connected on the described PCI E Switching Module as the in-band management network interface card with the PF module that is assigned to self.
In conjunction with described first aspect, described by the PF module on described the first network interface card in the first implementation of described first aspect, divide virtual functions VF module at described the first network interface card, comprising:
By the PF module on described the first network interface card, the quantity of described VF module is set, and is each VF module assignment address space and configuration media access control MAC address, wherein different VF modules has different MAC Address.
In conjunction with described first aspect, in the second implementation of described first aspect, at described administration module with the VF module that is assigned to self as the in-band management network interface card, before the subscriber's main station that is connected on the described PCI E Switching Module communicates, comprising:
Administration module loads the described driving that is assigned to the VF module of self, is described VF block configuration IP address, and the I P address of described VF module and business network are in different VLANs.
In conjunction with described first aspect, described first aspect the 3rd in the implementation, at described administration module with the PF module that is assigned to self as the in-band management network interface card, before the subscriber's main station that is connected on the described PCIE Switching Module communicates, comprising:
Administration module loads the described driving that is assigned to the PF module of self, is described PF block configuration IP address, and the I P address of described PF module and business network are in different VLANs.
In conjunction with described first aspect, in the 4th kind of implementation of described first aspect,,, for distributing respectively after the PF module, the subscriber's main station that connects on the described PCIE Switching Module and administration module comprising by the BF module on described the second network interface card described:
Divide virtual functions VF module in described PF module, think that the subscriber's main station that connects on the described PCIE Switching Module distributes described VF module.
In conjunction with described first aspect, in the 5th kind of implementation of described first aspect, described PCIE Switching Module is the PCIE switching matrix that a PCIE exchange chip, a PCIE switch or a plurality of PCIE switch concatenation form.
Second aspect, a kind of in-band management system is provided, comprise administration module, described in-band management system also comprises the quick peripheral assembly interface PCIE Switching Module that is connected with described administration module, described PCIE Switching Module is connected with the first network interface card of supporting the virtual SR-IOV of single input and output or is connected with the second network interface card of supporting the many virtual MR-IOV of input and output, described the first network interface card comprises hardware capability PF module, described the second network interface card comprises basic function BF module and one or more PF module, described administration module comprises:
Recognition unit is for the type of identifying the network interface card that is connected with described PCI E Switching Module;
The network interface card processing unit, if being used for recognizing the type of described network interface card is the first network interface card, by the PF module on described the first network interface card, divide virtual functions VF module at described the first network interface card, think that the subscriber's main station and the administration module that connect on the described PCI E Switching Module distribute respectively described VF module;
Communication unit is used for the VF module that is assigned to self communicating with the subscriber's main station that is connected on the described PCI E Switching Module as the in-band management network interface card;
Described network interface card processing unit is if be the second network interface card for the type that recognizes described network interface card also, by the BF module on described the second network interface card, for subscriber's main station and the administration module that connects on the described PCIE Switching Module distributes respectively the PF module;
Described communication unit also is used for the PF module that is assigned to self communicating with the subscriber's main station that is connected on the described PCIE Switching Module as the in-band management network interface card.
In conjunction with described second aspect, in the first implementation of described second aspect, described network interface card processing unit specifically is used for:
By the PF module on described the first network interface card, the quantity of described VF module is set, and is each VF module assignment address space and configuration media access control MAC address, wherein different VF modules has different MAC Address.
In conjunction with described second aspect, in the second implementation of described second aspect, described administration module also comprises:
Allocation unit is used for loading the described driving that is assigned to the VF module of self, is described VF block configuration IP address, and the IP address of described VF module and business network are in different VLANs.
In conjunction with described second aspect, in the third implementation of described second aspect, described administration module also comprises:
Allocation unit is used for administration module and loads the described driving that is assigned to the PF module of self, is described PF block configuration IP address, and the IP address of described PF module and business network are in different VLANs.
In conjunction with described second aspect, in the 4th kind of implementation of described second aspect, described administration module also comprises:
The Microsoft Loopback Adapter processing unit is used for dividing virtual functions VF module in described PF module, thinks that the subscriber's main station that connects on the described PCIE Switching Module distributes described VF module.
In conjunction with described second aspect, in the 5th kind of implementation of described second aspect, described PCIE Switching Module is the PCIE switching matrix that a PCIE exchange chip, a PCIE switch or a plurality of PCIE switch concatenation form.
The in-band management method and system that the embodiment of the invention provides, because administration module connects the first network interface card or the second network interface card by the PCIE Switching Module, realized that administration module is undertaken by PC I E network with communicating by letter of subscriber's main station, and divide the VF module with as Microsoft Loopback Adapter at the first network interface card, perhaps with the PF module on the second network interface card as Microsoft Loopback Adapter, administration module and subscriber's main station communicate by Microsoft Loopback Adapter, realize in-band management, administration module and subscriber's main station share same the first network interface card or the second network interface card.And in the prior art, administration module is fixed against Ethernet with communicating by letter of subscriber's main station, and administration module only can carry out in-band management to a subscriber's main station by a network interface card.Therefore the present invention realizes in-band management by PCI E network, PCI E network transmission speed is faster than Ethernet speed, thereby so that the efficient of in-band management improves, simultaneously administration module can be realized in-band management to many subscriber's main stations by a network interface card, save the network interface card resource, thereby reduced the cost of in-band management.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
For the advantage that makes technical solution of the present invention is clearer, below in conjunction with drawings and Examples the present invention is elaborated.
As shown in Figure 1, the in-band management method that the embodiment of the invention provides, be applied to a kind of in-band management system, described in-band management system comprises administration module, described in-band management system also comprises quick peripheral assembly interface (the Peripheral Component Interconnection Expre s s that is connected with described administration module, be called for short PCI E) Switching Module, described PCI E Switching Module is connected with supports virtual (the Single Root-IO Vi rtualization of single input and output, be called for short SR-IOV) the first network interface card or be connected with and support many virtual (the Multi Root-I O Vi r tua li za ti on of input and output, abbreviation MR-I OV) the second network interface card, described the first network interface card comprises hardware capability (Physical Function, be called for short PF) module, described the second network interface card comprises basic function (Ba si c Func ti on, be called for short BF) module and one or more PF module, described method comprises:
101, administration module is identified the type of the network interface card that is connected with described PCI E Switching Module.
If 102 types that recognize described network interface card are the first network interface card, by the PF module on described the first network interface card, divide virtual functions (Vi s ua l Func ti at described the first network interface card, be called for short VF) module, think that the subscriber's main station and the administration module that connect on the described PCIE Switching Module distribute respectively described VF module.
Concrete, under described the first network interface card, can configure a plurality of VF modules by the PF module, when described PCIE Switching Module is connected with a plurality of subscriber's main station, each subscriber's main station all can shine upon a VF module, this moment, the VF module was equivalent to Microsoft Loopback Adapter, and administration module also is mapped with a VF module simultaneously, thereby administration module can communicate by ICP/IP protocol and each subscriber's main station.
103, administration module, communicates with the subscriber's main station that is connected on the described PCI E Switching Module as the in-band management network interface card with the VF module that is assigned to self.
If 104 types that recognize described network interface card are the second network interface card, by the BF module on described the second network interface card, for subscriber's main station and the administration module that connects on the described PCIE Switching Module distributes respectively the PF module.
Concrete, under described the second network interface card, PF module on the second network interface card can be distributed by the BF module, wherein administration module need to configure a PF module, and each subscriber's main station that is connected with described PCIE Switching Module can every all distributes a PF module, this moment, described PF module was equivalent to physical network card, thereby administration module can communicate by ICP/IP protocol and each subscriber's main station.
105, administration module, communicates with the subscriber's main station that is connected on the described PCI E Switching Module as the in-band management network interface card with the PF module that is assigned to self.
Concrete, described PCIE Switching Module can be the PCIE switching matrix of a PCIE exchange chip, a PCIE switch or a plurality of PCIE switch concatenation composition, but not only is confined to this.
What deserves to be explained is that described administration module is logic module, can be processor, field programmable gate array (Field-Programmable Gate Array, be called for short FPGA) etc. circuit realize, described administration module can be connected with network management server or be used for the computer of network management, but not only is confined to this.
The in-band management method that the embodiment of the invention provides, because administration module connects the first network interface card or the second network interface card by the PCIE Switching Module, realized that administration module is undertaken by the PCIE network with communicating by letter of subscriber's main station, and divide the VF module with as Microsoft Loopback Adapter at the first network interface card, perhaps with the PF module on the second network interface card as Microsoft Loopback Adapter, administration module and subscriber's main station communicate by Microsoft Loopback Adapter, realize in-band management, administration module and subscriber's main station share same the first network interface card or the second network interface card.And in the prior art, administration module is fixed against Ethernet with communicating by letter of subscriber's main station, and administration module only can carry out in-band management to a subscriber's main station by a network interface card.Therefore the present invention realizes in-band management by PCI E network, PCI E network transmission speed is faster than Ethernet speed, thereby so that the efficient of in-band management improves, simultaneously administration module can be realized in-band management to many subscriber's main stations by a network interface card, save the network interface card resource, thereby reduced the cost of in-band management.
As shown in Figure 2, the in-band management method that further embodiment of this invention provides, be applied to a kind of in-band management system, described in-band management system comprises administration module, described in-band management system also comprises quick peripheral assembly interface (the Peripheral Component InterconnectionExpres s that is connected with described administration module, be called for short PCIE) Switching Module, described PCIE Switching Module is connected with supports virtual (the Single Root-IO Virtualization of single input and output, abbreviation SR-IOV) the first network interface card, described the first network interface card comprises hardware capability (Physical Function, be called for short PF) module, described method comprises:
201, administration module powers on, and initialization self system.
Concrete, administration module initialization self system manages the module self check, and initialization I/O pin and supervisor state etc. are so that administration module can normally move.
202, administration module carries out initialization to the PCIE Switching Module.
Concrete, administration module also needs the upstream and downstream state of the port of PCI allocation E Switching Module, the address space of port etc., but not only is confined to this.
203, administration module is identified the type of the network interface card that is connected with described PCI E Switching Module.
If 204 types that recognize described network interface card are the first network interface card, for described the first network interface card distributes address space.
205, administration module loads the driving of the PF module on described the first network interface card, by the PF module on described the first network interface card, the quantity of described VF module is set, and is each VF module assignment address space and configuration media access control MAC address.
Wherein, different VF modules has different MAC Address.Concrete, under described the first network interface card, can configure a plurality of VF modules by the PF module, when described PCI E Switching Module is connected with a plurality of subscriber's main station, each subscriber's main station all can shine upon a VF module, this moment, the VF module was equivalent to Microsoft Loopback Adapter, and administration module also is mapped with a VF module simultaneously, thereby administration module can communicate by ICP/IP protocol and each subscriber's main station.
206, administration module for self be connected the subscriber's main station that connects on the PCIE Switching Module and distribute respectively described VF module.
207, administration module loads the described driving that is assigned to the VF module of self, is described VF block configuration IP address.
Wherein, the IP address of described VF module and business network are in different VLANs.Realized so the relative isolation of supervising the network and business network.
208, administration module, communicates with the subscriber's main station that is connected on the described PCIE Switching Module as the in-band management network interface card with the VF module that is assigned to self.
Concrete, described administration module can carry out temperature sensor control, heat dissipation equipment management, equipment fault detection and recovery etc. to subscriber's main station to the in-band management that subscriber's main station carries out, but not only is confined to this.
What deserves to be explained is that described administration module is logic module, can be processor, field programmable gate array (Field-Programmable Gate Array, be called for short FPGA) etc. circuit realize, described administration module can be connected with network management server or be used for the computer of network management, but not only is confined to this.
The in-band management method that the embodiment of the invention provides, because administration module connects the first network interface card by the PCIE Switching Module, realized that administration module is undertaken by the PCIE network with communicating by letter of subscriber's main station, and divide the VF module with as Microsoft Loopback Adapter at the first network interface card, administration module and subscriber's main station communicate by Microsoft Loopback Adapter, realize in-band management, administration module and subscriber's main station share same the first network interface card.And in the prior art, administration module is fixed against Ethernet with communicating by letter of subscriber's main station, and administration module only can carry out in-band management to a subscriber's main station by a network interface card.Therefore the present invention realizes in-band management by the PCIE network, the PCIE network transmission speed is faster than Ethernet speed, thereby so that the efficient of in-band management improves, simultaneously administration module can be realized in-band management to many subscriber's main stations by a network interface card, save the network interface card resource, thereby reduced the cost of in-band management.
As shown in Figure 3, the in-band management method that another embodiment of the present invention provides, be applied to a kind of in-band management system, described in-band management system comprises administration module, described in-band management system also comprises quick peripheral assembly interface (the Peripheral Component InterconnectionExpress that is connected with described administration module, be called for short PCIE) Switching Module, described PCIE Switching Module is connected with supports many virtual (the MultiRoot-IO Virtualization of input and output, abbreviation MR-IOV) the second network interface card, described the second network interface card comprises basic function (Basic Function, be called for short BF) module and one or more PF module, described method comprises:
301, administration module powers on, and initialization self system.
Concrete, administration module initialization self system manages the module self check, and initialization I/O pin and supervisor state etc. are so that administration module can normally move.
302, administration module carries out initialization to the PCIE Switching Module.
Concrete, administration module also needs the upstream and downstream state of the port of PCI allocation E Switching Module, the address space of port etc., but not only is confined to this.
303, administration module is identified the type of the network interface card that is connected with described PCI E Switching Module.
If 304 types that recognize described network interface card are the second network interface card, for described the second network interface card distributes address space.
305, administration module loads the driving of the BF module on described the second network interface card, by the BF module on described the second network interface card, for self be connected the subscriber's main station that connects on the PCIE Switching Module and distribute respectively described PF module.
Concrete, under described the second network interface card, PF module on the second network interface card can be distributed by the BF module, wherein administration module need to configure a PF module, and each subscriber's main station that is connected with described PCIE Switching Module can every all distributes a PF module, this moment, described PF module was equivalent to physical network card, thereby administration module can communicate by ICP/IP protocol and each subscriber's main station.
306, administration module loads the described driving that is assigned to the PF module of self, is described PF block configuration IP address.
Wherein, the IP address of described PF module and business network are in different VLANs.Realized so the relative isolation of supervising the network and business network.
307, administration module, communicates with the subscriber's main station that is connected on the described PCIE Switching Module as the in-band management network interface card with the VF module that is assigned to self.
Concrete, described administration module can carry out temperature sensor control, heat dissipation equipment management, equipment fault detection and recovery etc. to subscriber's main station to the in-band management that subscriber's main station carries out, but not only is confined to this.
In addition, above-mentioned steps 306-307 can also be substituted by following steps:
308, divide virtual functions VF module in described PF module, think administration module self and be connected the subscriber's main station that connects on the PCIE Switching Module and distribute described VF module.
309, administration module loads the described driving that is assigned to the VF module of self, is described VF block configuration IP address.
Wherein, the IP address of described VF module and business network are in different VLANs.
310, administration module, communicates with the subscriber's main station that is connected on the described PCIE Switching Module as the in-band management network interface card with the VF module that is assigned to self.
Concrete, by in described PF module, dividing a plurality of VF modules, each VF module is equivalent to a Microsoft Loopback Adapter, can be mapped to more subscriber's main station, thereby so that administration module can carry out in-band management to more subscriber's main station by second network interface card.
What deserves to be explained is that described administration module is logic module, can be processor, field programmable gate array (Field-Programmable Gate Array, be called for short FPGA) etc. circuit realize, described administration module can be connected with network management server or be used for the computer of network management, but not only is confined to this.
The in-band management method that the embodiment of the invention provides, because administration module connects the second network interface card by the PCIE Switching Module, realized that administration module is undertaken by the PCIE network with communicating by letter of subscriber's main station, with the PF module on the second network interface card as Microsoft Loopback Adapter, administration module and subscriber's main station communicate by Microsoft Loopback Adapter, realize in-band management, administration module and subscriber's main station share same the second network interface card.And in the prior art, administration module is fixed against Ethernet with communicating by letter of subscriber's main station, and administration module only can carry out in-band management to a subscriber's main station by a network interface card.Therefore the present invention realizes in-band management by the PCIE network, the PCIE network transmission speed is faster than Ethernet speed, thereby so that the efficient of in-band management improves, simultaneously administration module can be realized in-band management to many subscriber's main stations by a network interface card, save the network interface card resource, thereby reduced the cost of in-band management.
Shown in Fig. 4 (a) and Fig. 4 (b), the in-band management system that the embodiment of the invention provides, comprise administration module 41, described in-band management system also comprises the quick peripheral assembly interface PCIE Switching Module 42 that is connected with described administration module 41, in Fig. 4 (a), described PCIE Switching Module 42 is connected with the first network interface card 43 of supporting the virtual SR-IOV of single input and output or in Fig. 4 (b), described PCIE Switching Module 42 is connected with the second network interface card 44 of supporting the many virtual MR-IOV of input and output, described the first network interface card 43 comprises hardware capability PF module 45, and described the second network interface card 44 comprises basic function BF module 46 and one or more PF module 45.
Concrete, the described administration module 41 general hardware lines that pass through are connected with the host side interface of PCIE Switching Module 42.Because the in-band management data volume is limited, described host port can be that administration module 41 is by the PCIE line connection of a pair of differential signal.In addition, administration module 41 can also connect by another management port of described PCIE Switching Module 42 to the PCIE line of differential signal, managing described PCIE Switching Module 42, and is connected to equipment on the described PCIE Switching Module 42 etc.When administration module is realized management to the PCIE Switching Module, can carry out the configuration of PC I E global address space, PC I E equipment hot swap, link management, mismanage etc. to PCI E Switching Module 42, but not only be confined to this.
Concrete, described a plurality of subscriber's main stations can be connected on the described PCI E Switching Module 42, and are concrete, and each subscriber's main station goes out on the NT port or uplink port on the power board that the ROOT port is connected to PCIE Switching Module 42.Wherein, described a plurality of main frames are separate, and each subscriber's main station all has basic operating system separately etc., can communicate by letter mutually by PCIE Switching Module 42 between subscriber's main station.
Described administration module 41 comprises:
Recognition unit 411 is for the type of identifying the network interface card that is connected with described PCIE Switching Module 42.
Network interface card processing unit 412, if being used for recognizing the type of described network interface card is the first network interface card 43, by the PF module 45 on described the first network interface card 43, divide virtual functions VF module 47 at described the first network interface card 43, think that the subscriber's main station and the administration module 41 that connect on the described PCIE Switching Module 42 distribute respectively described VF module 47;
Communication unit 413 is used for the VF module 47 that is assigned to self communicating with the subscriber's main station that is connected on the described PCIE Switching Module 42 as the in-band management network interface card;
Described network interface card processing unit 412 is if be the second network interface card 44 for the type that recognizes described network interface card also, by the BF module 46 on described the second network interface card 44, for subscriber's main station and the administration module 41 that connects on the described PCIE Switching Module 42 distributes respectively PF module 45;
Described communication unit 413 also is used for the PF module 45 that is assigned to self communicating with the subscriber's main station that is connected on the described PCIE Switching Module 42 as the in-band management network interface card.
Concrete, shown in Fig. 5 (a), described network interface card processing unit 412 specifically is used for:
PF module 45 by on described the first network interface card 43 arranges the quantity of described VF module 47, and is that each VF module 47 is distributed address space and configuration media access control MAC address, and wherein 47 of different VF moulds have different MAC Address.
Further, shown in Fig. 5 (a), described administration module 41 also comprises:
Allocation unit 414 is used for loading the described driving that is assigned to the VF module 47 of self, is described VF module 47 configuration of IP address.
Wherein, the IP address of described VF module and business network are in different VLANs.
Further, shown in Fig. 5 (b), described administration module 41 also comprises:
Allocation unit 414 is used for administration module 41 and loads the described driving that is assigned to the PF module 45 of self, is described PF module 45 configuration I P addresses, and the IP address of described PF module 45 and business network are in different VLANs.
Further, shown in Fig. 5 (b), described administration module 41 also comprises:
Microsoft Loopback Adapter processing unit 415 is used for dividing virtual functions VF module 47 in described PF module 45, thinks that the subscriber's main station that connects on the described PCIE Switching Module 42 distributes described VF module 47.
Concrete, described PCIE Switching Module 45 can be the PCIE switching matrix of a PCIE exchange chip, a PCIE switch or a plurality of PCIE switch concatenation composition, but not only is confined to this.
The in-band management system that the embodiment of the invention provides, because administration module connects the first network interface card or the second network interface card by the PCIE Switching Module, realized that administration module is undertaken by the PCIE network with communicating by letter of subscriber's main station, and divide the VF module with as Microsoft Loopback Adapter at the first network interface card, perhaps with the PF module on the second network interface card as Microsoft Loopback Adapter, administration module and subscriber's main station communicate by Microsoft Loopback Adapter, realize in-band management, administration module and subscriber's main station share same the first network interface card or the second network interface card.And in the prior art, administration module is fixed against Ethernet with communicating by letter of subscriber's main station, and administration module only can carry out in-band management to a subscriber's main station by a network interface card.Therefore the present invention realizes in-band management by the PCIE network, the PCIE network transmission speed is faster than Ethernet speed, thereby so that the efficient of in-band management improves, simultaneously administration module can be realized in-band management to many subscriber's main stations by a network interface card, save the network interface card resource, thereby reduced the cost of in-band management.
Through the above description of the embodiments, the those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential common hardware, can certainly pass through hardware, but the former is better execution mode in a lot of situation.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium that can read, floppy disk such as computer, hard disk or CD etc., comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
The above; be the specific embodiment of the present invention only, but protection scope of the present invention is not limited to this, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by described protection range with claim.