Summary of the invention
In view of this, the embodiment of the invention provides a kind of method, device and system that realizes outband management, adopts this technical scheme, can solve the problem that can not carry out outband management that causes with the management ethernet mouth cisco unity malfunction on the management board owing to main.
The embodiment of the invention realizes through following technical scheme:
An aspect according to the embodiment of the invention provides a kind of method that realizes outband management, comprising:
After the virtual management Ethernet interface of creating in the switch receives message; Confirm the main management ethernet mouth of using; Wherein, The said main management ethernet mouth that uses is the management ethernet mouth of from the management ethernet mouth that is in normal communication state, selecting, and said master has identical configuration with management ethernet mouth and said virtual management Ethernet interface;
If said master is positioned at the main management board of using with the management ethernet mouth, then said message is forwarded to said master through said master with the management ethernet mouth and handles with the central processing unit of management board;
If said master is positioned at subsequent use management board with the management ethernet mouth, then said message is forwarded to said master through said main central processing unit with management ethernet mouth and said subsequent use management board and handles with the central processing unit of management board.
According to another aspect of the embodiment of the invention, a kind of method that realizes outband management also is provided, comprising:
The central processing unit of the management board of switch receives the main message that sends with the management ethernet mouth on the management board of place, wherein, and the said main management ethernet mouth of management ethernet mouth that use for from the management ethernet mouth that is in normal communication state, selecting;
If said management board is the main management board of using, then said central processing unit is directly handled the said message that receives;
If said management board is subsequent use management board, then said central processing unit is forwarded to the master with said message and handles with the central processing unit of management board;
After the master of switch confirms message to be sent with the central processing unit of management board, confirm that the master uses the management ethernet mouth, wherein, the said main management ethernet mouth that uses is the management ethernet mouth of from the management ethernet mouth that is in normal communication state, selecting;
If said master is positioned at the said main management board of using with the management ethernet mouth, then directly send said message with the management ethernet mouth through said master;
If said master is positioned at subsequent use management board with the management ethernet mouth, then the central processing unit by said subsequent use management board is forwarded to said message said main with the transmission of management ethernet mouth.
According to another aspect of the embodiment of the invention, a kind of device of realizing outband management also is provided, comprising:
Receiver module is used to adopt with main receive message with the identical configuration of management ethernet mouth;
Main with management ethernet mouth determination module, be used for after said receiver module receives message, confirm that the master uses the management ethernet mouth, wherein, the said main management ethernet mouth of management ethernet mouth that use for from the management ethernet mouth that is in normal communication state, selecting;
The message distribution module; Be used for main mainly being positioned at mainly when using management board with the management ethernet mouth, said message be forwarded to said master through said master with the management ethernet mouth handle with the central processing unit of management board with what management ethernet mouth determination module was determined said; And; When the said main master who determines with management ethernet mouth determination module is positioned at subsequent use management board with the management ethernet mouth, said message is forwarded to said master through said main central processing unit with management ethernet mouth and said subsequent use management board handles with the central processing unit of management board.
According to another aspect of the embodiment of the invention, a kind of device of realizing outband management also is provided, comprising:
Main with management ethernet mouth selection module, be used for selecting the main management ethernet mouth of using from the management ethernet mouth that is in normal communication state;
Receiver module is used to receive by the said main main message that sends with the management ethernet mouth of selecting module to select with the management ethernet mouth;
Message processing module (MPM), it is main when use management board being used at said management board, and the said message of said receiver module reception is handled;
The message distribution module is used for when said management board is subsequent use management board, and the said message that said receiver module is received is forwarded to mainly to be handled with the central processing unit of management board.
According to another aspect of the embodiment of the invention, a kind of device of realizing outband management also is provided, comprising:
Main with management ethernet mouth selection module, be used for selecting the main management ethernet mouth of using from the management ethernet mouth that is in normal communication state;
Main with management ethernet mouth determination module, be used for after confirming message to be sent, confirm the said main main management ethernet mouth of using of selecting module to select with the management ethernet mouth;
The message distribution module is used for confirming that with management ethernet mouth determination module the master is positioned at the said main management board of using with the management ethernet mouth, directly sends said message by said master with the management ethernet mouth said master; And, confirm that with management ethernet mouth determination module the master is positioned at subsequent use management board with the management ethernet mouth said master, then the central processing unit by said subsequent use management board is forwarded to said message said main with the transmission of management ethernet mouth.
According to another aspect of the embodiment of the invention, a kind of system that realizes outband management also is provided, comprise virtual management Ethernet interface, main with management board and subsequent use management board; Wherein, said master comprises central processing unit and management ethernet mouth respectively with management board and subsequent use management board;
Said virtual management Ethernet interface; After being used to receive message; Confirm the main management ethernet mouth of using; Wherein, the said main management ethernet mouth that uses is the management ethernet mouth of from the management ethernet mouth that is in normal communication state, selecting, and said master has identical configuration with management ethernet mouth and said virtual management Ethernet interface; Use management board if said master is positioned at the master with the management ethernet mouth, then said message is sent to said master with the management ethernet mouth on the management board; If said master is positioned at subsequent use management board with the management ethernet mouth, then said message is sent to the management ethernet mouth on the said subsequent use management board;
Said subsequent use management board is used for the said message that the management ethernet mouth that comprises receives is forwarded to the central processing unit that comprises, and by the central processing unit that comprises said message is forwarded to said main central processing unit with management board;
Said master uses management board, is used for that the said message by said virtual management Ethernet interface transmission that the management ethernet mouth that comprises receives is forwarded to the central processing unit that comprises and handles; And the said message that the central processing unit that said subsequent use management board is comprised through the central processing unit that comprises sends is handled.
According to another aspect of the embodiment of the invention, a kind of system that realizes outband management also is provided, comprise main with management board and subsequent use management board; Wherein, said master comprises central processing unit and management ethernet mouth respectively with management board and subsequent use management board;
The said main management board of using; Be used for after the central processing unit that comprises is confirmed message to be sent; Confirm that the master uses the management ethernet mouth, wherein, the said main management ethernet mouth of management ethernet mouth that use for from the management ethernet mouth that is in normal communication state, selecting; Use management board if said master is positioned at said master with the management ethernet mouth, then directly send said message through the management ethernet mouth that comprises; If said master is positioned at subsequent use management board with the management ethernet mouth, then said message is sent to the central processing unit of said subsequent use management board;
Said subsequent use management board is used for receiving the message that said master sends with management board through the central processing unit that comprises, and said message is sent through the management ethernet mouth that comprises.
Above-mentioned at least one technical scheme that provides by the embodiment of the invention; Can from switch, be in the main management ethernet mouth of selecting in the management ethernet mouth of normal communication state of using in advance; And the virtual management Ethernet interface is set; When switch receives message; Can message be sent to the main management ethernet mouth of using by the virtual management Ethernet interface that is provided with; And and then according to the main management board that is positioned at the management ethernet mouth, message is sent to main central processing unit processing with management board; When switch sends message, promptly after the master of switch confirms message to be sent with the central processing unit of management board, can message be sent to the master send according to the main management board that is positioned at the management ethernet mouth with the management ethernet mouth.According to this technical scheme; The master can be positioned at main with management board or subsequent use management board with the management ethernet mouth; And message can send through the management ethernet mouth of selecting that is in normal communication state, thereby compared with prior art; Avoid the problem that can not carry out outband management that causes with the management ethernet mouth cisco unity malfunction on the management board owing to main, improved the success rate of outband management.
Other features and advantages of the present invention will be set forth in specification subsequently, and, partly from specification, become apparent, perhaps understand by embodiment of the present invention.The object of the invention can be realized through the structure that in the specification of being write, claims and accompanying drawing, is particularly pointed out and obtained with other advantages.
Embodiment
Solve the implementation that can not carry out the problem of outband management that causes with the management ethernet mouth cisco unity malfunction on the management board owing to main in order to provide; The embodiment of the invention provides a kind of method, device and system that realizes outband management; Below in conjunction with Figure of description the preferred embodiments of the present invention are described; Should be appreciated that preferred embodiment described herein only is used for explanation and explains the present invention, and be not used in qualification the present invention.And under the situation of not conflicting, embodiment and the characteristic among the embodiment among the application can make up each other.
Implement one
The embodiment of the invention one provides a kind of system that realizes outband management; In this system; Main can be positioned at master that switch comprises with management board or subsequent use management board, and main use management ethernet mouth is the management ethernet mouth of selecting that is in normal communication state with the management ethernet mouth.
Fig. 3 shows the sketch map of the network system that system was suitable for of the realization outband management that present embodiment one provides, and as shown in Figure 3, this network system comprises:
Webmaster terminal 301,L2 layer switch 302 andmanagement switch 303;
Wherein, can realize communication through the management dedicated network betweenwebmaster terminal 301 and theL2 layer switch 302,webmaster terminal 301 andL2 layer switch 302 are kept existing capability;Management switch 303 can be the switch (being commonly referred to box switch or cabinet switch) of case structure, and the present technique scheme is primarily aimed atmanagement switch 303 and has carried out technological improvement, below describes the structure of management switch in detail.
Fig. 4 shows the structural representation of the management switch system after improving in this enforcement one; As shown in Figure 4; This management switch comprises main virtualmanagement Ethernet interface 403 withmanagement board 401, subsequentuse management board 402 and setting; Wherein, main with comprisingmanagement ethernet mouth 401A and central processing unit (CPU) 401B on themanagement board 401, comprisemanagement ethernet mouth 402A andcentral processing unit 402B on the subsequentuse management board 402; There are mapping relations in virtualmanagement Ethernet interface 403 withmanagement ethernet mouth 401A andmanagement ethernet mouth 402A respectively for the external network interface of management switch.
Based on network system shown in Figure 3 and management switch shown in Figure 4, the virtual management Ethernet interface realizes externally providing the unified management interface, and the webmaster terminal can be realized the management of equipment through the virtual management Ethernet interface.Corresponding manager; The management ethernet mouth that need not be concerned about which management board of concrete use and management switch is carrying related service; The virtual management Ethernet interface need be realized physical management Ethernet interface (the management ethernet mouth that comprises on the management board is called the physical management Ethernet interface) management; The packet sending and receiving service is provided, fault detect.
In the present embodiment one, virtualmanagement Ethernet interface 403 is created when switch device starts usually, and in the practical application, the implementation procedure of this virtualmanagement Ethernet interface 403 is following:
As stated; The management switch generally comprises main with management board and subsequent use management board; Each management board all has a physical management Ethernet interface; The virtual management Ethernet interface is exactly the management that realizes two physics Ethernet interfaces, realizes the mapping of virtual management Ethernet interface and physical management Ethernet interface, the attribute query of management ethernet mouth and setting.After the management switch system plays machine; Can at first create the virtual management Ethernet interface; And select main management ethernet mouth to use the management ethernet mouth as main with any one available (promptly being in normal communication state) in physical management Ethernet interface on the management board and the physical management Ethernet interface on the subsequent use management board, another one management ethernet mouth is as subsequent use management Ethernet interface.
The attribute that disposes for the virtual management Ethernet interface can comprise MAC (Media Access Control; The medium access control) address, IP (Internet Protocol; Internet protocol) address, device id (Identity; Sign) and parameter such as network interface ID, particularly, for MAC Address, IP address and the device id of this virtual management Ethernet interface setting can be managed switch corresponding MAC Address, IP address and device id for this.
After the virtual management Ethernet interface was accomplished attribute configuration, the attribute that need be based upon the configuration of virtual management Ethernet interface was configured with the management ethernet mouth the master who selects, and promptly the virtual management Ethernet interface has identical configuration with main with the management ethernet mouth.Simultaneously, need the subsequent use management Ethernet interface of configuration to forbid transceive data, to guarantee having only a path can receive and dispatch message on the management path.
In the present embodiment one; Except the virtual management Ethernet interface is disposed the above-mentioned base attribute; The all right further port base attribute of configuration virtual management ethernet mouth; The port base attribute of virtual management Ethernet interface comprises: one or more in SPEED (data rate), duplex, flow control, the MTU parameters such as (Maximum Transmission Unit, maximum transmitted modules).When configuration virtual management ethernet mouth, need configuration be set to the physical management Ethernet interface, promptly need carry out corresponding configuration to main management board with management ethernet mouth place.
The technical scheme that provides according to the embodiment of the invention one; The master dynamically updates with the management ethernet mouth; Promptly main break down (such as LinkDown etc.), need lead switching, promptly choose current subsequent use management Ethernet interface and use the management ethernet mouth as the master with management mouthful with the management ethernet mouth what select; Simultaneously; Need configuration information, the master who newly selects is configured with the management ethernet mouth, thereby guarantee to provide business service constant the user according to the management ethernet mouth that breaks down.And it is unavailable that the state that the fault master uses the management ethernet mouth need be set, and forbids packet sending and receiving.
In the preferred implementation that present embodiment one provides, if the fault recovery that the management ethernet mouth occurs, it is subsequent use management Ethernet interface that this management ethernet mouth then can be set.
In the practical application, the state information of virtual management Ethernet interface is made up of with the state information of the physical management Ethernet interface on the management board and the state information of the physical management Ethernet interface on the subsequent use management board main usually, and is specific as follows:
The main state that uses physical management Ethernet interface and the physical management Ethernet interface on the subsequent use management board on the management board is during all as DOWN (promptly unavailable), and virtual management Ethernet interface state is LINK_DOWN (being that link is unavailable); The master uses a physical management Ethernet interface and a management ethernet mouth state in the physical management Ethernet interface on the subsequent use management board on the management board to be UP (promptly available), and virtual management Ethernet interface state is LINK_UP (being that link can be used); When the Link of virtual management Ethernet interface (link) state is become UP or become DOWN by UP by DOWN, need send advertised information to the webmaster terminal.
The technique scheme that provides based on the embodiment of the invention one; Through the virtual management Ethernet interface of external configuration, use the management ethernet mouth with the physical management Ethernet interface on management board and the subsequent use management board as the master thereby can select to lay respectively at the master flexibly in switch inside as the unified transmitting-receiving of message interface.Behind configuration virtual management ethernet mouth, the inner packet sending and receiving path of switch also changes to some extent, and is specific as follows:
Fig. 5 shows the packet sending and receiving path sketch map when the master is positioned at the master with management board with the management ethernet mouth; As shown in Figure 5; Be positioned at the management ethernet mouth under the main situation main with management board; The path of packet sending and receiving receives packet route and is shown in four-headed arrow: virtual management Ethernet interface → master is with the CPU of management ethernet mouth → master with management board, and the transmission packet route is: lead CPU → master with management board with management ethernet mouth → virtual management Ethernet interface.Fig. 6 shows the packet sending and receiving path sketch map when the master is positioned at subsequent use management board with the management ethernet mouth; As shown in Figure 6; Be positioned under the situation of subsequent use management board with the management ethernet mouth main; The path of packet sending and receiving is shown in four-headed arrow; The reception packet route is: virtual management Ethernet interface → master is with the CPU → master of the management ethernet mouth → subsequent use management board CPU with management board, sends packet route and is: the CPU → master of main CPU → subsequent use management board with management board is with management ethernet mouth → virtual management Ethernet interface.
Embodiment two
The present invention implements two message processing procedures when providing switch as the message recipient.
When Fig. 7 showed switch as the message recipient, the virtual management Ethernet interface receives the schematic flow sheet of message, and was as shown in Figure 7, mainly comprises the steps:
After the virtual management Ethernet interface of creating instep 701, the switch receives message, confirm the main management ethernet mouth of using.
In thisstep 701, the administrative message that the message that the virtual management Ethernet interface receives can be managed equipment for office terminal being used for of sending also can be the message of other types.Main is the management ethernet mouth of from the management ethernet mouth that is in normal communication state, selecting according to the technical scheme that the foregoing description one provides with the management ethernet mouth, and this master has identical configuration with the management ethernet mouth with the virtual management Ethernet interface.
Step 702, virtual management Ethernet interface are confirmed the management board that the master is positioned at the management ethernet mouth, use management board if the master is positioned at the master with the management ethernet mouth, and execution instep 703 is if the master is positioned at subsequent use management board with the management ethernet mouth, execution instep 704.
In thisstep 702; Mapping relations have been preserved in the virtual management Ethernet interface in advance with the physical management Ethernet; Particularly; These mapping relations can comprise the virtual management Ethernet interface respectively with main mapping relations with management ethernet mouth and subsequent use management Ethernet interface, also can include only virtual management Ethernet interface and main mapping relations with management ethernet, these mapping relations can main be selected out with the management ethernet mouth after setting.
Step 703, virtual management Ethernet interface are sent to message main with the management ethernet mouth on the management board.
In thisstep 703; Because the master is positioned at the main management board of using with the management ethernet mouth; The virtual management Ethernet interface is sent to message and leads with the master on the management board with behind the management ethernet mouth; This master can directly be sent to the main of place with message with the management ethernet mouth and handle with the central processing unit of management board, reception packet route shown in Figure 5 in the corresponding the foregoing description one of this message RX path, i.e. and virtual management Ethernet interface → master is with the CPU of management ethernet mouth → master with management board.
Step 704, virtual management Ethernet interface are sent to the management ethernet mouth on the subsequent use management board with message.
In thisstep 704; Because the master is positioned at subsequent use management board with the management ethernet mouth; The virtual management Ethernet interface is sent to leading with behind the management ethernet mouth on the subsequent use management board with message; This master is sent to the central processing unit of the subsequent use management board at place with the management ethernet mouth with message, further this message is sent to main central processing unit with management board by the central processing unit of subsequent use management board and handles reception packet route shown in Figure 6 in this packet sending and receiving path correspondence the foregoing description one.
So far, the virtual management Ethernet interface receives the flow process end of message.
When Fig. 8 showed switch as the message recipient, central processing unit receives the schematic flow sheet of message, and was as shown in Figure 8, mainly comprises the steps:
The central processing unit of the management board of step 801, switch receives the main message that sends with the management ethernet mouth on the management board of place.
In this step 801, the administrative message that the message that central processing unit receives can be managed equipment for office terminal being used for of sending also can be the message of other types.Particularly, be positioned at mainly when use management board with the management ethernet mouth when main, the management board that receives this message is to lead to use management board, and when being positioned at subsequent use management board with the management ethernet mouth, the management board that receives this message is subsequent use management board when main.
Step 802, central processing unit are confirmed the type of the management board at place, if the master uses management board, then execution in step 803, if subsequent use management board, then execution in step 804.
Step 803, central processing unit are directly handled the message that receives.
In this step 803, reception packet route shown in Figure 5 in the corresponding the foregoing description one in packet sending and receiving path.
Step 804, central processing unit are forwarded to the master with message and handle with the central processing unit of management board.
In this step 804, reception RX path shown in Figure 6 in the corresponding the foregoing description one of message RX path, i.e. virtual management Ethernet interface → master is with the CPU → master of the management ethernet mouth → subsequent use management board CPU with management board.
In above-mentioned steps 803 and the step 804, lead with the processing procedure behind the central processing unit reception message of management board identically in the process that main central processing unit with management board is handled message and the prior art, repeat no more here.
So far, central processing unit receives the flow process end of message.
The technique scheme that provides through the embodiment of the invention one; When switch receives message; Can message be sent to the main management ethernet mouth of using through the virtual management Ethernet interface that is provided with; And and then according to the main management board that is positioned at the management ethernet mouth, message is sent to main central processing unit with management board handles, owing to message can send through the management ethernet mouth of selecting that is in normal communication state; Thereby avoided the problem that can not carry out outband management that causes with the management ethernet mouth cisco unity malfunction on the management board owing to main, improved the success rate of outband management.
Embodiment three
The present invention implements three message process of transmittings when providing switch as message transmitting party.
When Fig. 9 showed switch as the message recipient, switch sends the schematic flow sheet of message, and was as shown in Figure 9, mainly comprises the steps:
The main ofstep 901, switch confirmed message to be sent with the central processing unit of management board.
In thisstep 901, the message to be sent that central processing unit is confirmed can be handled the message of back feedback for the administrative message that sends to the office terminal, also can enumerate no longer one by one for the message of other types here.
Step 902, master confirm that with the central processing unit of management board the master uses the management ethernet mouth, use management board if the master is positioned at the master with the management ethernet mouth, and then execution instep 903, if the master is positioned at subsequent use management board with the management ethernet mouth, then execution instep 904.
In thisstep 902, can preserve the main information of determining in advance in the central processing unit, the promptly main management board that is positioned at the management ethernet mouth with the management ethernet mouth.
Step 903, central processing unit directly send this message with the master that management board comprises with the management ethernet mouth through the master at place.
In thisstep 903; Because the master is positioned at the main management board of using with the management ethernet mouth; After the master determines the message that will send with the central processing unit of management board; Can directly send this message through the main management ethernet mouth that belongs to management board, message transmit path shown in Figure 5 in the corresponding the foregoing description one of this message transmit path, promptly main CPU → master with management board uses the management ethernet mouth.
Step 904, the central processing unit central processing unit through subsequent use management board is forwarded to message and mainly sends with the management ethernet mouth.
In thisstep 904; Because the master is positioned at subsequent use management board with the management ethernet mouth; After the master determines the message that will send with the central processing unit of management board; Need at first this message to be forwarded to the central processing unit of subsequent use management board; And then by the central processing unit of subsequent use management board message further is forwarded to main that the subsequent use management board in place comprises and sends with the management ethernet mouth, message transmit path shown in Figure 6 in the corresponding the foregoing description one of this message transmit path, promptly the master uses the management ethernet mouth with the CPU → master of the CPU → subsequent use management board of management board.
In thisstep 904, the main message that sends with the management ethernet mouth can at first be sent to the virtual management Ethernet interface and sent.
So far, switch sends the flow process end of message.
The technique scheme that provides through the embodiment of the invention one; When switch sends message; Promptly after the master of switch confirms message to be sent with the central processing unit of management board; Can message be sent to the master send, because message can send through the management ethernet mouth of selecting that is in normal communication state according to the main management board that is positioned at the management ethernet mouth with the management ethernet mouth; Thereby avoided the problem that can not carry out outband management that causes with the management ethernet mouth cisco unity malfunction on the management board owing to main, improved the success rate of outband management.
Embodiment four
The embodiment of the invention four provides the specific embodiment of related main selection mode with the management ethernet mouth in the foregoing description one to embodiment three.
Switch generally comprises main with management board and subsequent use management board; All comprise the management ethernet mouth on each management board; In the present embodiment, the main management ethernet mouth that be in normal communication state of management ethernet mouth that use for from the management ethernet mouth that the main management ethernet mouth that comprises with management board and subsequent use management board comprise, selecting.
Figure 10 shows the main schematic flow sheet with the management ethernet mouth of selection from the management ethernet mouth that is in normal communication state that present embodiment four provides, and is shown in figure 10, main with comprising the steps:
Step 1001, confirm that master in the switch is with the communications status of the management ethernet mouth on the management board and the communications status of the management ethernet mouth on the subsequent use management board.
In thisstep 1001; The communications status of management ethernet mouth generally comprises and is used to identify this network interface and can uses and disabled information; The specifying information classification can be looked different situations and decided; For example, this communications status can be enumerated for DOWN (representing that this network interface is unavailable) or UP (represent this network interface can use) here no longer one by one.
Step 1002, from the normal management ethernet mouth of communications status, select a management ethernet mouth as the main management ethernet mouth of using.
In thisstep 1002; All be in normal communication state if confirm the master with management ethernet mouth on the management board and the management ethernet mouth on the subsequent use management board, then selecting management ethernet mouth and any management ethernet mouth in the management ethernet mouth on the subsequent use management board on the main use management board is the main management ethernet mouth of using; If confirm mainly to be in normal communication state with one in management ethernet mouth on the management board and the management ethernet mouth on the subsequent use management board, the management ethernet mouth of then selecting to be in normal communication state is the main management ethernet mouth of using.
So far, select main flow process to finish with the management ethernet mouth.Above-mentioned flow process can be carried out by main central processing unit with management board.
The preferred implementation that provides according to present embodiment four; Be in normal communication state if confirm the master with one in management ethernet mouth on the management board and the management ethernet mouth on the subsequent use management board; Can further adjust the state that is in the management ethernet mouth of improper communications status in main management ethernet mouth and the management ethernet mouth on the subsequent use management board that uses on the management board and be normal communication state; Promptly the management ethernet mouth that is in improper communications status is carried out handled; Make this network interface be in normal communication state, here, handled can comprise adjustment network interface parameter, reinforce netting twine or directly change processing such as network interface.
According to the technical scheme that present embodiment four provides, can from the management ethernet mouth that is in normal communication state, select the management ethernet mouth that is in normal operating conditions and use the management ethernet mouth as the master.In practical application; The management ethernet mouth gets into improper communications status along with being used problem possibly appear; Therefore, for fear of the influence that this problem is brought, present embodiment four provides a preferred implementation; This preferred implementation has provided the scheme of master with the communications status of management ethernet mouth that dynamically update; Particularly, from the management ethernet mouth that is in normal communication state, select main with the management ethernet mouth after, can be further to leading with the management ethernet mouth or/and the communications status of subsequent use management Ethernet interface detect; And after the detection master was improper with the communications status of management ethernet mouth, reselecting the management ethernet mouth that is in normal communication state was the main management ethernet mouth of using.In the practical application, the communications status of management ethernet mouth is detected in can be in the following way one or more:
Hardware detection: through port is provided with winding, detection port transmitting-receiving message is used for confirming whether port hardware is normal;
Link (link) state-detection:, be used for confirming whether netting twine connects through obtaining ports physical Link state;
IP Track detects: whether the route of surveying from the virtual management Ethernet interface to the supervising the network main frame through ICMP Echo technology can reach.
Should be appreciated that the technology that the communications status of Ethernet interface is managed in above cited detection is merely realization optimization technique of the present invention, in the practical application, can also enumerate according to other detection techniques of real system environmental selection no longer one by one here.
The technical scheme of crossing through embodiment of the invention four-way; Owing to can guarantee main normal communication state with the management ethernet mouth; Thereby the management ethernet mouth that can realize switch carries out the purpose of outband management to equipment, and, when main when breaking down (coming off) such as hardware damage or netting twine with the management ethernet mouth; Can reselect the source as the case may be and switch with Ethernet interface, thereby improve the availability of outband management in the master of normal communication state.
Embodiment five
The embodiment of the invention five provides a kind of device of realizing outband management; Carry out outband management through this device; Can avoid the problem that can not carry out outband management that causes with the management ethernet mouth cisco unity malfunction on the management board owing to main, improve the success rate of outband management.
Figure 11 shows a kind of structural representation of realizing the device of outband management that the embodiment of the invention five provides, and shown in figure 11, this device mainly comprises:
Receiver module 1101, main with management ethernetmouth determination module 1102 andmessage distribution module 1103;
Wherein:
Receiver module 1101 is used to adopt with main receive message with the identical configuration of management ethernet mouth;
Main with management ethernetmouth determination module 1102, be used for afterreceiver module 1101 receives message, confirm that the master uses the management ethernet mouth, wherein, the main management ethernet mouth of management ethernet mouth that use for from the management ethernet mouth that is in normal communication state, selecting;
Message distribution module 1103 is used for main being positioned at mainly when using management board with the management ethernet mouth main with what management ethernetmouth determination module 1102 was determined, message is forwarded to the master through the master with the management ethernet mouth handles with the central processing unit of management board; And; When the main master who determines with management ethernetmouth determination module 1102 is positioned at subsequent use management board with the management ethernet mouth, message is forwarded to the master through main central processing unit with management ethernet mouth and subsequent use management board handles with the central processing unit of management board.
In the preferred implementation that present embodiment five provides; What device shown in Figure 11 comprised is main with management ethernetmouth determination module 1102; Specifically be used for according to that be provided with and main mapping relations with the management ethernet mouth; Confirm the main management ethernet mouth of using, mapping relations are selected out the back setting main with the management ethernet mouth.
The device of realization outband management shown in Figure 11 can be configured virtual management ethernet mouth in the switch, to realize corresponding management functions.
Figure 12 show that the embodiment of the invention five provides another realize the structural representation of the device of outband management, this device can be arranged in the central processing unit on the management board, and is shown in figure 12, this device mainly comprises:
Main with management ethernetmouth selection module 1201,receiver module 1202, message processing module (MPM) 1203 andmessage distribution module 1204;
Wherein:
Main with management ethernetmouth selection module 1201, be used for selecting the main management ethernet mouth of using from the management ethernet mouth that is in normal communication state;
Receiver module 1202 is used to receive the main message that sends with the management ethernet mouth of selecting module to select with the management ethernet mouth by main;
Message processing module (MPM) 1203, being used at the main main management board with management ethernet mouth place of selectingmodule 1201 to select with the management ethernet mouth is master when using management board, and the message ofreceiver module 1202 receptions is handled;
Message distribution module 1204; Be used for when the main main management board that uses management ethernet mouth place that uses that the management ethernet mouth selects thatmodule 1201 selects is subsequent use management board, the message thatreceiver module 1202 is received is forwarded to mainly to be handled with the central processing unit of management board.
Shown in figure 13, in the preferred implementation that present embodiment five provides, what device shown in Figure 12 comprised is main with management ethernetmouth selection module 1201, may further include:
Communications status is confirmedsubmodule 1201A and main with management ethernetmouth chooser module 1201B;
Wherein:
Communications status is confirmedsubmodule 1201A, and the master who is used for confirming switch is with the communications status of the management ethernet mouth on the management board and the communications status of the management ethernet mouth on the subsequent use management board;
Main with management ethernetmouth chooser module 1201B; Be used for when communications status confirms thatsubmodule 1201A confirms that the master all is in normal communication state with management ethernet mouth on the management board and the management ethernet mouth on the subsequent use management board; Selecting management ethernet mouth and any management ethernet mouth in the management ethernet mouth on the subsequent use management board on the main use management board is the main management ethernet mouth of using; When communications status confirmed thatsubmodule 1201A confirms that the master is in normal communication state with one in management ethernet mouth on the management board and the management ethernet mouth on the subsequent use management board, the management ethernet mouth that selection is in normal communication state was the main management ethernet mouth of using.
Shown in figure 14, in the preferred implementation that present embodiment five provides, what device shown in Figure 13 comprised is main with management ethernetmouth selection module 1201, may further include:
State adjustment submodule 1201C; Be used for when communications status confirms thatsubmodule 1201A confirms that main with management ethernet mouth on the management board and the management ethernet mouth on the subsequent use management board one is in normal communication state, adjustment is main uses the state that is in the management ethernet mouth of improper communications status in management ethernet mouth and the management ethernet mouth on the subsequent use management board on the management board to be normal communication state.
In the preferred implementation that present embodiment five provides; Figure 12 leads with management ethernetmouth selection module 1201 to what device shown in Figure 14 comprised; Also be used for selecting main with behind the management ethernet mouth from the management ethernet mouth that is in normal communication state; Main communications status with the management ethernet mouth is detected, and after the detection master was improper with the communications status of management ethernet mouth, reselecting the management ethernet mouth that is in normal communication state was the main management ethernet mouth of using.
The device of the realization outband management that Figure 12 is extremely shown in Figure 14 can be arranged in the central processing unit of management board, is mainly used in the reception processing procedure that realizes message.
Figure 15 show that the embodiment of the invention five provides another realize the structural representation of the device of outband management, this device can be arranged in the central processing unit on the management board, and is shown in figure 15, this device mainly comprises:
Main with management ethernetmouth selection module 1501, main with management ethernetmouth determination module 1502 andmessage distribution module 1503;
Wherein:
Main with management ethernetmouth selection module 1501, be used for selecting the main management ethernet mouth of using from the management ethernet mouth that is in normal communication state;
Main with management ethernetmouth determination module 1502, be used for after confirming message to be sent, confirm the main main management ethernet mouth of using of selectingmodule 1501 to select with the management ethernet mouth;
Message distribution module 1503 is used for confirming that with management ethernetmouth determination module 1502 master is positioned at the main management board of using with the management ethernet mouth, directly sends message through main with the management ethernet mouth main; And, confirm that with management ethernetmouth determination module 1502 mainly are positioned at subsequent use management board with the management ethernet mouth main, then the central processing unit through subsequent use management board is forwarded to message to lead and sends with the management ethernet mouth.
Shown in figure 16, in the preferred implementation that present embodiment five provides, what device shown in Figure 15 comprised is main with management ethernetmouth selection module 1501, may further include:
Communications status is confirmedsubmodule 1501A and main with management ethernetmouth chooser module 1501B;
Wherein:
Communications status is confirmedsubmodule 1501A, and the master who is used for confirming switch is with the communications status of the management ethernet mouth on the management board and the communications status of the management ethernet mouth on the subsequent use management board;
Main with management ethernetmouth chooser module 1501B; Be used for when communications status confirms thatsubmodule 1501A confirms that the master all is in normal communication state with management ethernet mouth on the management board and the management ethernet mouth on the subsequent use management board; Selecting management ethernet mouth and any management ethernet mouth in the management ethernet mouth on the subsequent use management board on the main use management board is the main management ethernet mouth of using; When communications status confirmed thatsubmodule 1501A confirms that the master is in normal communication state with one in management ethernet mouth on the management board and the management ethernet mouth on the subsequent use management board, the management ethernet mouth that selection is in normal communication state was the main management ethernet mouth of using.
Shown in figure 17, in the preferred implementation that present embodiment five provides, what device shown in Figure 16 comprised is main with management ethernetmouth selection module 1501, may further include:
State adjustment submodule 1501C; Be used for when communications status confirms thatsubmodule 1501A confirms that main with management ethernet mouth on the management board and the management ethernet mouth on the subsequent use management board one is in normal communication state, adjustment is main uses the state that is in the management ethernet mouth of improper communications status in management ethernet mouth and the management ethernet mouth on the subsequent use management board on the management board to be normal communication state.
In the preferred implementation that present embodiment five provides; Figure 15 leads with management ethernetmouth selection module 1501 to what device shown in Figure 17 comprised; Also be used for selecting main with behind the management ethernet mouth from the management ethernet mouth that is in normal communication state; Main communications status with the management ethernet mouth is detected, and after the detection master was improper with the communications status of management ethernet mouth, reselecting the management ethernet mouth that is in normal communication state was the main management ethernet mouth of using.
The device of the realization outband management that Figure 15 is extremely shown in Figure 17 can be arranged in the central processing unit of management board, is mainly used in the transmission processing procedure that realizes message.
Should be appreciated that module that the device of above realization outband management comprises is merely the logical partitioning that the function that realizes according to this device is carried out, and in the practical application, can carry out the stack or the fractionation of above-mentioned module.And the method flow of the realization outband management that provides in the function that the device of the realization outband management that this embodiment provides is realized and the foregoing description one to embodiment four is corresponding one by one; The more detailed handling process that realizes for this device; In said method embodiment, done detailed description, be not described in detail here.
And the device of the realization outband management in the present embodiment five also has the functional module that can realize embodiment one to embodiment four directions case, repeats no more here.
Embodiment six
The embodiment of the invention six provides a kind of system that realizes outband management, adopts this system, can avoid the problem that can not carry out outband management that causes with the management ethernet mouth cisco unity malfunction on the management board owing to main, has improved the success rate of outband management.
Figure 18 shows the sketch map of the system of the realization outband management that present embodiment six provides, and shown in figure 18, the system of this outband management mainly comprises:
Virtualmanagement Ethernet interface 1801, main withmanagement board 1802 and subsequentuse management board 1803; Wherein, the master comprises central processing unit and management ethernet mouth (not illustrating in the drawings) respectively with management board and subsequent use management board;
Wherein:
Virtualmanagement Ethernet interface 1801; After being used to receive message; Confirm the main management ethernet mouth of using; Wherein, Main with the management ethernet mouth of management ethernet mouth for from the management ethernet mouth that is in normal communication state, selecting, and the master has identical configuration with management ethernet mouth and virtual management Ethernet interface; If it is main withmanagement board 1802 that the master is positioned at the management ethernet mouth, then message is sent to main with the management ethernet mouth on themanagement board 1802; If the master is positioned at subsequentuse management board 1803 with the management ethernet mouth, then message is sent to the management ethernet mouth on the subsequentuse management board 1803;
Subsequentuse management board 1803; Being used at the management ethernet mouth that comprises is when leading with the management ethernet mouth; The message that the management ethernet mouth that will comprise receives is forwarded to the central processing unit that comprises, and by the central processing unit that comprises message is forwarded to main central processing unit with management board;
Lead withmanagement board 1802, being used at the management ethernet mouth that comprises is when leading with the management ethernet mouth, and the message by the transmission of virtual management Ethernet interface that the management ethernet mouth that will comprise receives is forwarded to the central processing unit that comprises and handles; And when the management ethernet mouth that comprises was subsequent use management Ethernet interface, the message that the central processing unit that subsequent use management board is comprised through the central processing unit that comprises sends was handled.
In the system of the described realization outband management of Figure 18 that present embodiment six provides; Virtualmanagement Ethernet interface 1801 can be further be divided into a plurality of functional units according to the concrete function of its realization; For example; This virtualmanagement Ethernet interface 1801 can corresponding the foregoing description five in the device of the described realization outband management of Figure 11; For the more concrete function of these virtualmanagement Ethernet interface 1801 realizations and the dividing mode of functional unit, can be not described in detail referring to the device of the corresponding realization outband management of Figure 11 in the foregoing description five here.
In like manner; Main also can be further be divided into a plurality of functional units according to the concrete function of its realization withmanagement board 1802 and subsequentuse management board 1803; And; This master with the central processing unit that comprises inmanagement board 1802 and the subsequentuse management board 1803 can corresponding the foregoing description five in the device of the described realization outband management of Figure 12 to Figure 14, or the device of the described realization outband management of Figure 15 to Figure 17 in corresponding the foregoing description five.
The system of above-mentioned realization outband management can be arranged in switch, is mainly used in the reception processing procedure that realizes message.
Figure 19 shows present embodiment six provides another to realize the sketch map of the system of outband management, and shown in figure 19, this system mainly comprises:
Main withmanagement board 1901 and subsequentuse management board 1902; Wherein, the master comprises central processing unit and management ethernet mouth (not illustrating in the drawings) respectively with management board and subsequent use management board;
Wherein:
Themain management board 1901 of using is used for after the central processing unit that comprises is confirmed message to be sent, confirms that the master uses the management ethernet mouth, and is wherein, main with the management ethernet mouth of management ethernet mouth for from the management ethernet mouth that is in normal communication state, selecting; If the master is positioned at the main management board of using with the management ethernet mouth, then directly send message by the management ethernet mouth that comprises; If the master is positioned at subsequentuse management board 1902 with the management ethernet mouth, then message is sent to the central processing unit of subsequentuse management board 1902;
Subsequentuse management board 1902, it is main during with the management ethernet mouth being used at the management ethernet mouth that comprises, receives the main message that sends withmanagement board 1901 by the central processing unit that comprises, and message is sent by the management ethernet mouth that comprises.
Shown in figure 20, in the preferred implementation that present embodiment six provides, system shown in Figure 19 can further include virtualmanagement Ethernet interface 1903, and this virtualmanagement Ethernet interface 1903 has identical configuration with main with the management ethernet mouth;
Correspondingly, lead withmanagement board 1901, specifically being used at the management ethernet mouth that comprises is when leading with the management ethernet mouth, message to be sent to virtualmanagement Ethernet interface 1903 through the management ethernet mouth that comprises;
Subsequentuse management board 1902, specifically being used at the management ethernet mouth that comprises is when leading with the management ethernet mouth, message to be sent to virtualmanagement Ethernet interface 1903 through the management ethernet mouth that comprises;
Virtualmanagement Ethernet interface 1903 is used to send the message of reception.
In the system of the described realization outband management of Figure 19 that present embodiment six provides and Figure 20,
Main can be further be divided into a plurality of functional units according to the concrete function of its realization withmanagement board 1901 and subsequentuse management board 1902; For example; This main withmanagement board 1901 and subsequentuse management board 1902 can corresponding the foregoing description five in the device of the described realization outband management of Figure 12 to Figure 14; Or the device of the described realization outband management of Figure 15 to Figure 17 in corresponding the foregoing description five; Main for this withmanagement board 1901 and the more concrete function of subsequentuse management board 1902 realizations and the dividing mode of functional unit; Can be not described in detail referring to the device of the described realization outband management of Figure 12 to Figure 14 in the foregoing description five or the device of the described realization outband management of Figure 15 to Figure 17 here.
Switch is corresponding among the system that should be appreciated that the realization outband management that present embodiment provides and the said method embodiment, and the system of this realization outband management can have the corresponding function module of the function that realizes that above-mentioned switch is accomplished.
Technique scheme provided by the invention can also be used for the process that box-shaped device piles up or box-type equipment piles up realization outband management under the scene.
Although described the application's preferred embodiment, in a single day those skilled in the art get the basic inventive concept could of cicada, then can make other change and modification to these embodiment.So accompanying claims is intended to be interpreted as all changes and the modification that comprises preferred embodiment and fall into the application's scope.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.