Summary of the invention
The invention provides a kind of method, Apparatus and system of link Fast Convergent, when exiting link in order to there to be member port in resolution system, link cannot select new service data interaction port, to the problem that the stability of system has an impact by Fast Convergent.
For achieving the above object, main purpose of the present invention is a kind of method providing link Fast Convergent, and described link establishment is between the member device comprising at least two physical connections, and the method comprises:
Receive the member device of member port exit instruction, send message informing message to opposite end member device, inform that member port described in the member device of opposite end is about to abnormal;
Opposite end member device, after receiving described message informing message, triggers the local member port that connect corresponding to described member port in advance and carries out business switching;
The described member device receiving member port exit instruction performs and exits operation accordingly.
Further, described in receive the member device of member port exit instruction, send message informing message to opposite end member device, specific implementation step comprises:
The logic port of the link exited is numbered by the physical port numbering and the described member port that obtain described member port;
Assembling message informing message, and the message informing message assembled is sent to opposite end member device by limit priority mode;
The described member device receiving member port exit instruction performs and exits operation accordingly, and specific implementation step comprises: from the non-abnormal member port in this locality, select new business forward port, upgrades software and hardware simultaneously and transmits.
Further, described message informing message content comprises: the physical port numbering of type of message, member port, the logic port numbering of respective links.
Further, described message informing message is for being user-defined message.
Further, described opposite end member device is after receiving message informing message, and trigger the local member port that connect corresponding to described member port in advance and carry out business switching, specific implementation step comprises:
Opposite end member device receives after member port exits the message informing message of link, resolves this message informing message, obtains the physical port numbering that is about to the member port exiting link and the logic port of the link exited is numbered by described member port;
The logic port of the link exited is numbered by physical port numbering and described member port according to being about to the member port exiting link, searches the physical port numbering of the corresponding local member port connected with it and the logic port numbering of corresponding connecting link;
After the physical port numbering of the local port found and the logic port numbering of corresponding connecting link, trigger the switching that local member port carries out new business port, upgrade software and hardware simultaneously and transmit.
Another object of the present invention is also, provides a kind of device of link Fast Convergent, and be applied in and set up in the member device of the link comprising at least two physical connections with opposite end member device, described device specifically comprises:
Port numbering acquisition module, for after receiving member port exit instruction, the logic port of the link exited is numbered by the physical port numbering and the described member port that obtain described member port;
Message sending module, for utilizing the physical port of the described member port of acquisition numbering and described member port, the logic port of the link exited is numbered, assembling message informing message, and the message informing message assembled is sent to opposite end member device by limit priority mode;
Port selects module, for complete message informing message at message sending module transmission after, forward port with described member port by selecting new business member port corresponding for the link exited from this locality.
Further, described device also comprises message receiver module, for receiving the message informing message from opposite end member device;
Described port numbering acquisition module, also for resolving the message informing message that described message receiver module receives, the logic port of the link exited is numbered by the physical port numbering and the described member port that obtain the member port of opposite end member device in message informing message; And according to the physical port numbering of the member port of the opposite end member device obtained and described member port by the logic port of the link that exits numbering, the logic port of the physical port numbering and corresponding connecting link of searching the corresponding local member port connected with it is numbered;
Port selects module, and after also getting the physical port numbering of local member port and the logic port numbering of corresponding connecting link for described port numbering, the link triggering the connection of described local member port correspondence carries out the switching of service port.
Further, described device also comprises port update module, transmits for upgrading software and hardware.
Further, described message informing message content comprises: type of message, will exit the physical port numbering of the member port of link and described member port by the logic port of the link that exits numbering.
Further, described message informing message is user-defined message.
Another order of the present invention also comprises a kind of system of link Fast Convergent, comprises the device of two above-mentioned link Fast Convergents, sets up the link comprising at least two physical connections between two described devices.
Beneficial effect of the present invention is: exit in the operating process of link at member port, the port that there is the equipment room of data interaction is not receiving before member port really exits link, predict in advance and exit link event by originating port, the convergence in advance of trigger link, assured forwarding data Pre-handoff, to the physical port of no exceptions, improves the stability of equipment room in system.
Embodiment
For making technical scheme of the present invention clearly understand, now by reference to the accompanying drawings the present invention is described in further details:
The embodiment of the present invention provides a kind of method of link Fast Convergent, the method adopts pre-noiification mechanism, allowing member device in system predict certain member port in link is in advance about to occur abnormal, thus add the setting that the switching of data interaction port in faster link and software and hardware transmit, the stability of elevator system equipment room.
As shown in Figure 1, when member device a certain in system needs its a certain member port to exit link according to demand, prenotice its member port of opposite end member device and be about to abnormal, concrete operating procedure comprises:
S101, receive the member device of member port exit instruction, send message informing message to opposite end member device, inform that member port described in the member device of opposite end is about to abnormal; Specific implementation step comprises:
The member device receiving member port exit instruction obtains the logic port numbering that the link exited was numbered and be about to the local physical port being about to exit the member port of link.Port numbering is User Defined, is mainly used in the identification of different port.
Assembling message informing message, message informing message is User Defined message or expands in existing puppy parc message, the content of message informing message comprises: type of message, and the physical port numbering of the member port of link is numbered and exited to the logic interface of the link have member port to exit for representing in link, having member port to exit.
The message informing message assembled is sent to opposite end member device by limit priority mode, in order to ensure that member device can receive this message informing message of process as early as possible, so message informing message can send with limit priority.
S102, opposite end member device, after receiving described message informing message, trigger the local member port that connect corresponding to described member port in advance and carry out business switching.Specific implementation step comprises:
Opposite end member device receives after member port exits the message informing message of link, resolves this message informing message, obtains the physical port numbering that is about to the member port exiting link and the logic port of the link exited is numbered by described member port; According to the logic interface numbering of link that the physical port of described member port numbering and described member port will exit, the logic port of the physical port numbering and the corresponding link be connected of searching the corresponding local member port connected with it is numbered; According to the logic port numbering of the link that the physical port numbering of the local member port found is connected with correspondence, trigger the switching that local member port carries out new business port, upgrade software and hardware simultaneously and transmit.
S103, described in receive member port exit instruction member device perform exit operation accordingly.Specific implementation comprises: from the non-abnormal member port in this locality, select the business forwarding port of new member port as equipment room, upgrade software and hardware simultaneously and transmit.
The pile system that the embodiment of the present invention forms for two switching equipment describes technical scheme of the present invention and technique effect in detail, as shown in Figure 2, pile system is made up of SW0 equipment and SW1 equipment two three-tier switch, SW0 Equipments Setting has a virtual switch link (vsl-channel0/1), is added with two physical member port te0/1/1 and te0/1/2 in vsl-channel0/1 link.SW1 Equipments Setting has a virtual switch link (vsl-channel1/1), is added with two physical member port te1/1/1 and te1/1/2 in vsl-channel1/1 link.SW0 and SW1 two equipment virtual switch link annexations are the corresponding vsl-channel1/1 of vsl-channel0/1; Two equipment room physical port annexation te0/1/1 connect te1/1/1, te0/1/2 and connect te1/1/2.Have two physical ports inside virtual switch link, stack equipment SW0 and SW1 needs to elect control port, so that by business datum message mutual between control port transceiver; SW0 equipment election te0/1/1 is control port, and SW1 equipment correspondence election te1/1/1 is control port.Meanwhile, two stack equipments also need by electing out main control device and member device alternately, and be SW0 through electing out main control device, member device is SW1.After pile system completes all elections, system will enter stable state.
When SW0 equipment is according to regulatory requirement, receive and need control port te0/1/1 to exit the instruction of virtual switch link vsl-channel0/1 associative operation, the stack port causing te0/1/1 port can not be re-used as SW0 equipment is carried out the operation of business datum message by this operation.In embodiments of the present invention, SW0 equipment is when performing control port te0/1/1 and exiting virtual switch link vsl-channel0/1, and the required concrete operation step performed of SW0 equipment comprises:
Step one: SW0 equipment according to demand, needs control port te0/1/1 to exit virtual switch link vsl-channel0/1, the mode of operation that execution port exits has usually: shell-command configuration and snmp agency perform.
Step 2: SW0 equipment acts on behalf of according to the port data carried in shell-command or snmp the port data issued, obtains the logic port internal number that corresponding to control port te0/1/1, internal port is numbered and virtual switch link vsl-channel0/1 is corresponding.
Step 3: the internal port numbering assembling message informing message of the control port te0/1/1 obtained according to step 2 and virtual switch link vsl-channel0/1, the message informing message assembled in the present embodiment is by realizing the expansion of LMP (LinkManagementProtocol) LMP Link Manager Protocol field.
Step 4: the message informing message assembled according to step 3, SW0 will send principle according to device processes message limit priority and process this message informing message.In order to ensure that member device SW1 equipment can receive this message of process as early as possible, so message informing message can send with limit priority.
Step 5: after sending the success of message informing message, SW0 equipment will elect according to existing member port information the control port te0/1/2 made new advances, in then transmitting the control port information updating that election makes new advances to software and hardware.The business datum transmitting-receiving that this stylish control port te0/1/2 will be responsible between follow-up stack equipment SW0 and SW1.
SW1 equipment is after receiving the message informing message coming from SW0, and the required concrete operation step performed of SW1 equipment comprises:
Step one: SW1 equipment receives the message informing message coming from SW0 equipment, because this message informing message needs priority treatment, so need the Message processing flow performing receiving limit priority according to SW1 equipment.
Step 2: the message informing message received according to step one, resolves the data message obtaining out this message informing message and carry.Comprise in information: type of message, exit internal port numbering corresponding to the control port te0/1/1 of virtual switch link and virtual switch link vsl-channel0/1 logic port internal number.
Step 3, numbers according to the vsl-channel0/1 internal port the gone out numbering of resolving in step 2 and te0/1/1 internal port, inquires virtual switch link vsl-channel1/1 and stacking control port te1/1/1 that SW1 equipment docks with it.
Step 4, according to the stacking control port te1/1/1 of the SW1 equipment that step 3 obtains, anticipation can go out the business datum message that from then on control port te1/1/1 sends and be about to or cannot have arrived stack equipment SW0, because the control port te0/1/1 docked with it is about to exit or exit virtual switch link vsl-channe0/l, te0/1/1 port will become common port, can not carry the transfer capability of stacking business datum again.In order to ensure the forwarding port of the quick stacking business datum of switching carrier of SW1 equipment energy, needing analogue enlargement te1/1/1 port failure, triggering SW1 equipment and control port is elected.
Step 5: the election triggering SW1 device control port according to step 4, SW1 equipment elects the control port te1/1/2 that makes new advances, and the software and hardware then upgrading SW1 stack equipment is transmitted.Te1/1/2 port will carry stacking business datum between SW0 equipment and SW1 equipment and receive and forward.
Under normal circumstances, after the control port te1/1/1 port in SW1 equipment virtual switch link needs to detect DOWN event, the election just carrying out control port switches.SW1 equipment is before carrying out control port switching, all stacking business send data all to be needed to be sent by te1/1/1 port, and the port te0/1/1 now docked with it cannot process stacking business datum, interrupting appears in the data that SW1 equipment will be caused like this to be sent to SW0 equipment, until newly elect control port te1/1/2, business datum forwards could be recovered.Mainly adopt pre-noiification mechanism in embodiments of the present invention, trigger the election switching that stack equipment SW1 equipment carries out control port in virtual switch link in advance, thus accelerate the convergence of virtual switch link, enhance the stability of pile system.
As shown in Figure 3, for the embodiment of the present invention 1 provides a kind of device of link Fast Convergent, this device for carrying out said is equivalent to the member device implementing above-mentioned link method for rapidly converging, set up comprise the link of at least two physical connections two ends member device between be reciprocity, that is namely this device can be the member device sending message informing message, also may be the equipment of receipt message notice message.When as the member device receiving member port exit instruction, specifically comprise:
Port numbering acquisition module 301, for after receiving member port exit instruction, the logic port of the link exited is numbered by the physical port numbering and the described member port that obtain described member port;
Message sending module 302, for utilizing the physical port of the described member port of acquisition numbering and described member port, the logic port of the link exited is numbered, assembling message informing message, and the message informing message assembled is sent to opposite end member device by limit priority mode;
Port selects module 303, for complete message informing message at message sending module transmission after, forward port with described member port by selecting new business member port corresponding for the link exited from this locality.
As shown in Figure 4, for the embodiment of the present invention 2 provides a kind of device of link Fast Convergent, in the present embodiment, realize the device of link Fast Convergent, except comprising three modules in Fig. 3, also comprise message receiver module module 304, for receiving the message informing message from opposite end member device;
Described port numbering acquisition module 301, also for resolving the message informing message that described message receiver module receives, the logic port of the link exited is numbered by the physical port numbering and the described member port that obtain the member port of opposite end member device in message informing message; And according to the physical port numbering of the member port of the opposite end member device obtained and described member port by the logic port of the link that exits numbering, the logic port of the physical port numbering and corresponding connecting link of searching the corresponding local member port connected with it is numbered;
Port selects module 303, and after also getting the physical port numbering of local member port and the logic port numbering of corresponding connecting link for described port numbering, the link triggering the connection of described local member port correspondence carries out the switching of service port.
As shown in Figure 5, for the embodiment of the present invention 3 provides a kind of device of link Fast Convergent, in the present embodiment, realize the device of link Fast Convergent, except comprising four modules in Fig. 4, also comprising port update module 305, transmitting for upgrading software and hardware.
As shown in Figure 6, for the embodiment of the present invention 1 provides a kind of system of link Fast Convergent, this system comprises the first member device and the second member device, sets up the link comprising at least two physical connections between two member devices.When the first member device in system needs the first member port to exit link according to demand, prenoticing its member port of the second member device is about to abnormal, second member device receives the first member port when being about to the message informing message exiting link, triggers this locality second member port that connect corresponding to described first member port in advance and carries out business switching.Wherein,
First member device, for sending message informing message after receiving the first member port exit instruction, informs that the second member device first member port described in it is about to abnormal,
Second member device, for after receiving described message informing message, triggers this locality second member port that connect corresponding to described first member port in advance and carries out business switching.
The embodiment of the present invention is not only applicable to the virtual switch link control port of pile system, is also applicable to the virtual logical port with multiple physical port.As long as certain of equipment energy anticipation port is abnormal, just by sending message toward the service of connection devices, triggering connection device in advance and processing accordingly.
The foregoing is only the preferred embodiment of the application; not in order to limit the protection range of the application; within all spirit in technical scheme and principle, any amendment made, equivalent replacements, improvement etc., all should be included within scope that the application protects.Therefore protection scope of the present invention should described be as the criterion with the protection range of claim.