CN102123085A - Switch control method and device for uplink - Google Patents
Switch control method and device for uplink Download PDFInfo
- Publication number
- CN102123085A CN102123085A CN2011100389904A CN201110038990A CN102123085A CN 102123085 A CN102123085 A CN 102123085A CN 2011100389904 A CN2011100389904 A CN 2011100389904A CN 201110038990 A CN201110038990 A CN 201110038990A CN 102123085 A CN102123085 A CN 102123085A
- Authority
- CN
- China
- Prior art keywords
- switch
- link
- node device
- npv
- message
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention discloses a switch control method and a switch control device for an uplink. After an n-port virtualization (NPV) switch determines that an uplink of any N node equipment is needed to be switched to a new link, the NPV switch transmits a request message which represents that the N node equipment needs to switch the uplink to the upstream switch. If the upstream switch finds a downlink port on which the N node equipment is recorded in the upstream switch according to the request message, the upstream switch can update the downlink port of the N node equipment according to the new link and inform the NPV switch which initiates switch of updating the uplink port of the N node equipment according to the new link, so that the switch of the uplink can be directly realized under the condition that the N node equipment is not needed to be registered to a core switch again. Furthermore, the N node equipment does not needlessly and forcedly initiate re-registration due to the operation of the uplink switch which is determined by the NPV switch.
Description
Technical field
The present invention relates to the link switchover technology, particularly the switching control of a kind of method for handover control of up link and a kind of up link.
Background technology
Increase along with Internet uses constantly, the webserver needs data quantity stored increasing, thereby makes the memory capacity of the webserver have to increase thereupon.When the interior storage capacity of the webserver can't satisfy the demand that information increases, just need be with the storage " externalizing " of server.
In order to address this problem, storage networking (Storage Area Networks has been proposed in the prior art, SAN) notion, it provides special-purpose exterior storage environment for the webserver, makes full use of storage hardware technology and network technology and satisfies demands such as storage, visit and backup to the highly reliable data of big capacity.Among the SAN main use optical-fibre channel (Fibre Channel, FC) agreement is carried out transfer of data so that can provide than Ethernet and ICP/IP protocol more at a high speed, big data quantity transmission performance efficiently.
In SAN, several for example N such as server, memory device node device all undertaken alternately by an optical fiber (Fabric) network, the Fabric network is made of several FC core switch (this paper abbreviates " core switch " as with " FC core switch ").
Effective Domain ID only is 239 in the Fabric network because every core switch in the Fabric network need distribute a unique domain identifier (Domain ID), therefore, be subject to the quantity of Domain ID, constitute Fabric server switch quantity and mostly be 239 most, cause the small of Fabric network.But the N node device quantity among the SAN is very big, and the connection that the Fabric network only provides 239 core switch to be used for the N node device can't satisfy the demands.
Thus, for fear of the restricted number of the core switch that can supply the N node device to connect, prior art has increased the FC switch (this paper abbreviates " NPV switch " as with " the FC switch of NPV pattern ") of NPV pattern in SAN.
As shown in Figure 1, the NPV switch can be used for acting on behalf of the N node device and registers and ask core switch distribution FC address to core switch between N node device and core switch.The NPV switch is that a core switch and interface are rendered as the F pattern for the N node device, is rendered as the N pattern but the NPV switch is again a N node device and interface for core switch.
The NPV switch can be direct-connected with the N node device, also can pass through other NPV switches and N node device cascade, and similarly, the NPV switch can be direct-connected with core switch, also can pass through other NPV switches and core switch cascade.For every NPV switch, direct-connected link and the link by cascade between other NPV switches and the N node device all are called down link between this NPV switch and the N node device, and other NPV switches in the down link of cascade are the NPV switch in downstream; For every NPV switch, direct-connected link and the link by cascade between other NPV switches and the core switch are called up link between this NPV switch and the core switch, and other NPV switches in the up link of cascade are the NPV switch of upstream.
The NPV switch can receive FLOGIN message and the FDISC message that the N node device sends by down link, in the information of extraction N node device from FLOGIN message and FDISC message and after this organizational security is deposited, can act on behalf of the N node device, the content in FLOGIN message and the FDISC message is regenerated to sending to core switch by up link behind the FDISC message again.
In the practical application, the up link that can have many direct-connected or cascades between NPV switch and same the core switch, in this case, the NPV switch can be selected the up link of a correspondence for every N node device arbitrarily, and, when the NPV switch think need to switch this N node device correspondence up link (for example, the NPV switch finds that a certain the pairing N node device of up link is too much, needing wherein, a part of N node device switches to other up links, to realize load balancing) time, the up link that also can trigger every N node device is switched.
Need to prove that in this article, for NPV switch and the direct-connected situation of core switch, described up link for the selection of NPV switch, switching is meant whole piece up link direct-connected between NPV switch and the core switch; And for the situation of NPV switch and core switch cascade, the described up link of selecting, switching for the NPV switch is meant the part between the NPV switch of NPV switch and its direct-connected upstream in the whole piece up link.
Yet, when the NPV switch is arbitrary N node device when switching up link, must notice N node device again to the core switch registration, set up new up link and obtain new FC address by re-registering to this N node device.Thereby even if the up link of N node device correspondence does not break down, this N node device also has to interrupt its service traffics, is the new FC address of its distribution again until re-registering to finish and obtain core switch.
And, owing to can't guarantee that core switch is identical with the former FC address before this N node device for the new FC address that the N node device distributes again, therefore, this N node device re-register finish after, also need all devices to upgrade the FC address of this N node device.But before renewal is finished, still can there be the message that sends to this N node device to the FC address with the former FC address before this N node device, promptly, the destination address of these messages is the former FC address before this N node device, thereby will owing to and FC address after the current renewal of the destination address of message and this N node device is inconsistent, and cause message can't arrive this N node device and lose.
That is to say that even if corresponding up link does not break down, the N node device also can be forced to owing to the operation that the up link that the NPV switch is decided in its sole discretion is switched initiate to re-register, thereby the business of N node device is caused the influence on meaningless ground.
Summary of the invention
In view of this, the invention provides a kind of method for handover control of up link and a kind of switching control of up link.
The method for handover control of a kind of up link provided by the invention is applied on the NPV switch, and described NPV switch is used for acting on behalf of the registration of the N node of FC network to core switch, and this method for handover control comprises:
This machine is after determining the pairing former up link of arbitrary N node device need to be switched to another new link, need switch the request message of up link by this N node device of described new link FC switch transmission upstream expression, and receive the response message of upstream FC switch responds described request message;
If described response message is a confirmation message, then the uplink port with this N node device of local record is updated to the port that this machine connects described new link;
If described response message is the refusal message, then notify this N node device to initiate registration to core switch by the down link between this machine and this N node device.
Described upstream FC switch is upstream core switch or another the NPV switch direct-connected with this machine, and is described direct-connected for not having other NPV switch between this machine and upstream core switch or another NPV switch.
The described request message is the message of ELS agreement, it comprises command code field and device identification field, wherein, the command code of filling in the described command code field represents that needs switch the identification information of the N node device that carries needs switching up link in up link, the device identification field.
Described identification information is: the WWN of the port of the down link between described and this N node device of the connection of this N node device.
The method for handover control of another kind of up link provided by the invention is applied on core switch or the NPV switch, and described NPV switch is used for acting on behalf of the registration of the N node of FC network to core switch, and this method for handover control comprises:
This machine receives the request message that this N node device of expression that the NPV switch in downstream sends need switch up link, inquires about the downlink port that whether records this N node device in this machine and returns response message by described new link according to the described request message then;
If record then changes to the downlink port of this N node device correspondence of writing down in this machine that this machine connects the port of described new link and the described response message that returns is a confirmation message;
If record not, the described response message that then returns are the refusal messages.
This machine and described downstream NPV switchboard direct connection, described direct-connected for not having other NPV switch between this machine and the downstream NPV switch.
The described request message is the message of ELS agreement, it comprises command code field and device identification field, wherein, the command code of filling in the described command code field represents that needs switch the identification information of the N node device that carries needs switching up link in up link, the device identification field.
Described identification information is: the WWN of the port of the down link between described and this N node device of the connection of this N node device.
A kind of switching control provided by the invention, this switching control is positioned at the NPV switch, and described NPV switch is used for acting on behalf of the registration of the N node of FC network to core switch, and this switching control comprises:
The handoff request module, be used for after determining the pairing former up link of arbitrary N node device need to be switched to another new link, sending the request message that this N node device of expression need switch up link by the upstream FC switch of described new link;
The handoff response module is used to receive the response message of upstream FC switch responds described request message; If described response message is a confirmation message, then the uplink port with this N node device of local record is updated to the port that this machine connects described new link; If described response message is the refusal message, then by and this N node device between down link notify this N node device to initiate registration to core switch.
Described upstream FC switch is upstream core switch or another the NPV switch direct-connected with this machine, and is described direct-connected for not having other NPV switch between this machine and upstream core switch or another NPV switch.
The described request message is the message of ELS agreement, it comprises command code field and device identification field, wherein, the command code of filling in the described command code field represents that needs switch the identification information of the N node device that carries needs switching up link in up link, the device identification field.
Described identification information is: the WWN of the port of the down link between described and this N node device of the connection of this N node device.
Another kind of switching control provided by the invention, this switching control are positioned at core switch or NPV switch, and described NPV switch is used for acting on behalf of the registration of the N node of FC network to core switch, and this switching control comprises:
The message receiver module is used to receive the request message that this N node device of expression that the NPV switch in this machine downstream sends need switch up link;
The switch decision module is used for inquiring about this machine according to the described request message and whether records the downlink port of this N node device and return response message by described new link; If record then changes to the downlink port of this N node device correspondence of writing down in this machine that this machine connects the port of described new link and the described response message that returns is a confirmation message; If record not, the described response message that then returns are the refusal messages.
This machine and described downstream NPV switchboard direct connection, described direct-connected for not having other NPV switch between this machine and the downstream NPV switch.
The described request message is the message of ELS agreement, it comprises command code field and device identification field, wherein, the command code of filling in the described command code field represents that needs switch the identification information of the N node device that carries needs switching up link in up link, the device identification field.
Described identification information is: the WWN of the port of the down link between described and this N node device of the connection of this N node device.
As seen from the above technical solution, among the present invention, after the NPV switch is determined the pairing former up link of arbitrary N node device to be switched to another new link, be not to notify this N node device immediately, but send the request message that this N node device of expression need switch up link to its upstream switches earlier again to the core switch registration.If this upstream switches inquires the downlink port that records this N node device according to this request message at this machine, then this upstream switches can according to new link upgrade this N node device downlink port, and the NPV switch that initiate to switch of notice upgrade the uplink port of this N node device according to new link, thereby need not this N node device can directly be realized up link again to the core switch registration switching.Have only at its upstream switch according to this request message inquire this machine do not write down the downlink port of this N node device, when this N node device has not yet registered, the NPV switch that just needs to initiate to switch is notified this N node device registration.Based on the present invention, the operation that the N node device switches with regard to the up link that can not decide in its sole discretion owing to the NPV switch and be forced to initiate to re-register meaninglessly.
Description of drawings
Fig. 1 is for being provided with the exemplary architecture schematic diagram of the SAN of NPV switch in the prior art;
Fig. 2 is a kind of preferred construction schematic diagram of employed request message in the embodiment of the invention;
Fig. 3 is a preferable schematic flow sheet of up link method for handover control in the embodiment of the invention;
Fig. 4 is another preferable schematic flow sheet of up link method for handover control in the embodiment of the invention;
Fig. 5 a to Fig. 5 c is the schematic diagram that switches example in the embodiment of the invention.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, the present invention is described in more detail.
In the present embodiment, the switching of up link is not necessarily to realize by re-registering of N node device, but can realize by the NPV switch upstream FC switch direct-connected with it.
Direct-connected (present embodiment described " NPV switch and core switch are direct-connected " is meant no longer have other NPV switch between arbitrary NPV switch and the core switch for the NPV switch that initiate to switch and core switch, but and do not limit the device that has other transparent transmission messages between arbitrary NPV switch and the core switch) situation, the upstream FC switch of present embodiment discussion is meant core switch, correspondingly, the switching of the up link that is realized in the present embodiment is the link switchover between same the core switch of same NPV switch and its upstream.
The NPV switch of initiating to switch is after determining to need the pairing former up link of the arbitrary N node device of switching, can reselect a new uplink port for this N node device, the NPV switch of initiating then to switch switches by the core switch request of new chain road direction and its upstream.
Because an end of former up link connects the corresponding uplink port of the NPV switch of initiating switching, the corresponding downlink port that the other end connects core switch, therefore, the N node device of Qie Huaning then must record the downlink port of this N node device in this core switch registration in the core switch of upstream if desired.Thereby, as long as the core switch of upstream inquires the downlink port that this machine has recorded this N node device, then because an end of new link connects another corresponding uplink port of initiating the NPV switch that switches, another corresponding downlink port that the other end connects core switch too equally, thereby the core switch of upstream can change to another corresponding downlink port that this machine connects new link with the corresponding downlink port of the former up link of connection of local record.
After this, only need to initiate the NPV switch that switches and the more corresponding uplink port of the former up link of connection of its local record is changed to another corresponding uplink port that this machine connects new link, can finish switching and need not to make the upstream core switch of this N node device to re-register.But the N node device of Qie Huaning is not in this core switch registration if desired, and the NPV switch that then needs to initiate to switch is notified the upstream core switch registration of this N node device (because the N node device has not yet registered thereby " registration " described herein is not " re-registering ").
In the practical application,, may be by due to following two kinds of reasons if need the situation of N node device unwritten downlink port in core switch of switching:
Wherein a kind of reason is, though the N node device that needs to switch is registered at the core switch of upstream, but owing to some log-on message that causes unusually comprising downlink port in this core switch is lost, thereby the NPV switch that still needs to initiate to switch is notified this N node device registration.
Another kind of reason is, the N node device that needs to switch succeeds in registration at the core switch of upstream, but because more than one of the upstream core switch of the NPV switch that initiate to switch, therefore, if the upstream core switch of the selected new link other end of NPV switch that the initiation meet is changed, the upstream core switch that is different from the former link other end, the downlink port of the upstream core switch inquiry of the new link other end then may occur, thereby the NPV switch that still needs to initiate to switch is notified this N node device registration less than this N node device.
That is to say that when the upstream core switch that has only new link and former link opposite end was same core switch, switching just might be successfully.
For the situation of the NPV switch that initiate to switch by other switches and core switch cascade (present embodiment described " NPV switch and core switch cascade " is meant at least also have other NPV switch between arbitrary NPV switch and the core switch), the upstream FC switch of present embodiment discussion promptly refers to be positioned at another NPV switch of upstream of the NPV switch of initiation switching.Correspondingly, the up link of being switched just is meant the NPV switch of initiation switching and one section up link between this another NPV switch.Certainly, one section of the whole piece up link switching has taken place, also has been equivalent to change this up link.And the switching of this section up link that is realized in the present embodiment only limits between another identical core switch of same NPV switch and its upstream.
The NPV switch of initiating to switch is after determining to need the pairing former up link of the arbitrary N node device of switching, can reselect a new uplink port for this N node device, the NPV switch of initiating then to switch switches by new chain road direction and upstream NPV switch request;
Because an end of former up link connects the corresponding uplink port of the NPV switch of initiating switching, the corresponding downlink port that the other end connects direct-connected upstream NPV switch, therefore, the N node device of Qie Huaning is by the core switch registration of upstream NPV switch in upstream if desired, must record the downlink port of this N node device in the core switch of then upstream and the upstream NPV switch.Thereby, as long as upstream NPV switch query has recorded the downlink port of this N node device to this machine, then because an end of new link connects another corresponding downlink port that another corresponding uplink port, the other end of initiating the NPV switch that switches connect direct-connected upstream NPV switch too equally, thereby upstream NPV switch can change to another corresponding downlink port that this machine connects new link with the corresponding downlink port of the former up link of connection of local record.
After this, only need to initiate the NPV switch that switches and the more corresponding uplink port of the former up link of connection of its local record is changed to another corresponding uplink port that this machine connects new link, and need not to make this N node device can finish switching to the core switch registration of upstream again.But the N node device of Qie Huaning is in the core switch registration of upstream if desired, and the NPV switch that then needs to initiate to switch is notified the core switch registration (because N node device have not yet registered thereby described herein " registration " be not " re-register ") of this N node device to upstream.
In the practical application,, may be by due to following two kinds of reasons if need the situation of N node device unwritten downlink port in the NPV switch of upstream of switching:
Wherein a kind of reason is, though the N node device that need to switch is in the core switch registration of upstream, but owing to some downlink port that causes unusually writing down in the NPV switch of upstream is lost, thereby the NPV switch that still needs to initiate to switch is notified this N node device registration;
Another kind of reason is, the N node device that need to switch succeeds in registration at the core switch of upstream, but because more than one of the upstream NPV switch of the NPV switch that initiate to switch, therefore, if the upstream NPV switch of the selected new link other end of NPV switch that the initiation meet is changed, the upstream NPV switch that is different from the former link other end, the downlink port of upstream, the upstream NPV switch query of the new link other end then may occur, thereby the NPV switch that still needs to initiate to switch is notified the core switch registration of this N node device to upstream less than this N node device.
That is to say that if new link is different upstream NPV switches with the opposite end of former link, then switching is difficult to successfully.
There is a kind of special case in addition, the other end of the new link that the NPV switch that the initiation meet is changed is selected is not the upstream NPV switch of former link opposite end, but what the other end of this new link was direct-connected is the upstream core switch of the upstream NPV switch of former link opposite end, at this moment, owing to record the log-on message (comprising the downstream end slogan) that needs the N node device that switches in the core switch of upstream, thereby for this special situation, switching still can be successful.
Need to prove that how the NPV switch of initiating to switch need determines whether switches, can set Rule of judgment arbitrarily according to existing mode; And the NPV switch of initiating switching is selected the principle of new link, can be provided with arbitrarily with reference to the Rule of judgment of setting according to existing mode.
In order to make the NPV switch can be to switching with the core switch of its upstream or other NPV switch request, present embodiment provides a kind of expansion link service (Extend Link Service, ELS) message of agreement, the message of this ELS agreement can be described as the link switchover of N port (N Port Link Switch, NPLS) message.
As shown in Figure 2, in a kind of preferred construction of this NPLS message, it can comprise command code (Command Code) field of 4 bytes and the identification field of 8 bytes.Wherein, the command code of filling in the command code field represents that needs switch up link; And since the NPV switch in the information of every N node device that this organizational security is deposited; usually can comprise that the N node device connects global unique name (the World Wide Name of the port of the down link between itself and this NPV switch; WWN); therefore; the NPV switch can carry the WWN that the N node device that need to switch up link connects the port of the down link between its and this NPV switch in identification field, be used for identifying this N node device that needs to switch up link.
Need to prove, identify the N node device, with the upstream core switch of the NPV switch of initiating to switch or the port that is still N node device rather than N node device of other NPV switch concern though carry the WWN of port in the identification field.Still more, all support virtual (the N_Port ID Virtualization of N port id at N node device and NPV switch and core switch, NPIV) under the situation of function, the same port of N node device can have different respectively WWN respectively at different business, promptly, WWN identifies port uniquely, therefore, this paper uses the WWN of port and does not mean that and the upstream core switch of the NPV switch of initiating to switch or other NPV switch are paid close attention to is the port of N node device; And, under the situation of supporting the NPIV function, initiating the NPV switch of up link switching can select arbitrary WWN of the particular port of N node device to be carried in the device identification field of NPLS message, with the upstream core switch of the NPV switch that initiate to switch or other NPV switch according to corresponding existing mode in the NPIV function, can go out corresponding N node device according to the WWN Direct Recognition.
Certainly, also can carry the identification information that can identifying of other needs the N node device of switching up link in the device identification field of NPLS message, this paper enumerates no longer one by one.
Below, based on above-mentioned principle, the method for handover control of up link in the present embodiment is elaborated.
Fig. 3 is a preferable schematic flow sheet of up link method for handover control in the embodiment of the invention.As shown in Figure 3, with the NPV switch of initiating request with core switch is direct-connected, and utilization NPLS message as shown in Figure 2 switch to example to the core switch request, the up link method for handover control in the present embodiment comprises the steps:
In this step, the direct-connected core switch in upstream also can be further with the log-on message of this N node device, and the downlink port that connects former up link from this machine migrates to the downlink port that this machine connects new link.
Step 305, the direct-connected core switch in upstream returns response message to the NPV switch, and the response message that returns in this step is that LS_ACC message, expression allow this time to switch, and execution in step 307 then.
So far, a handoff procedure of the complete up link of being initiated with the direct-connected NPV switch of core switch finishes.
Fig. 4 is a preferable schematic flow sheet of up link method for handover control in the embodiment of the invention.As shown in Figure 4, with the NPV switch and the core switch cascade of initiating request, and utilization NPLS message as shown in Figure 2 switch to example to direct-connected upstream NPV switch request, the up link method for handover control in the present embodiment comprises the steps:
Step 401, downstream NPV switch are determined to need to switch the pairing up link of a certain N node device, and select the up link of a new link as this N node device.This flow process supposes that the upstream NPV switch of selected new link and former link opposite end is a same NPV switch.
Step 402, downstream NPV switch sends the NPLS message by new chain road direction and the upstream NPV switch of selecting.
Step 403, upstream NPV switch is according to the NPLS message that is received from the NPV switch, whether this N node device that inquiry needs to switch has corresponding downlink port at local record, if, represent that then this N node device is once by core switch registration and the execution in step 404 of this machine in upstream, otherwise, represent that this N node device is not by core switch registration (this machine occur unusually cause log-on message lose or this N node device by other NPV switches at core switch register) and the execution in step 406 of this machine in upstream.
Step 404, upstream NPV switch are with the downlink port of this N node device of local record, and the downlink port that connects former up link from this machine changes to the downlink port that this machine connects new link, and execution in step 405 then.
Step 405, upstream NPV switch NPV switch downstream returns response message, and the response message that returns in this step is that LS_ACC message, expression allow this time to switch, and execution in step 407 then.
Step 406, upstream NPV switch returns response message to the NPV switch, and the response message that returns in this step is that LS_RJT message, expression refusal this time switch, and execution in step 407 then.
Step 407, downstream NPV switch are according to the response message that is received from core switch, and the type of judgement response message, if LS_ACC message LS_ACC message, then execution in step 408, otherwise execution in step 409.
Step 408, downstream NPV switch is with the uplink port of the N node device of the needs switching of local record, and the uplink port that connects former up link from this machine changes to the uplink port that this machine connects new link, process ends then.
Step 409, downstream NPV switch by and the N node device that switches of needs between the down link of direct-connected or cascade, notify of the core switch registration of this N node device, then process ends to upstream.
So far, a handoff procedure of the part up link of being initiated with the NPV switch of core switch cascade finishes.
The method for handover control of above-mentioned up link in the corresponding present embodiment also provides the switching control of corresponding up link in the present embodiment, specify vide infra.
The switching control that can be installed in a kind of up link in the NPV switch (this NPV switch is used for acting on behalf of the registration of the N node of FC network to core switch) in the present embodiment comprises:
The handoff request module, be used for after determining the pairing former up link of arbitrary N node device need to be switched to another new link, send the NPLS message that this N node device of expression need switch up link by the upstream core switch of new link or other NPV switches, so that upstream core switch or other NPV switches are according to this NPLS message, can inquire about the downlink port that whether records this N node device in upstream core switch or other NPV switches, and, make upstream core switch or other NPV switches under situation about having write down, the downlink port of this N node device correspondence of its record is changed to another downlink port that this upstream core switch or other NPV switches connect new link, and return LS_ACC message message in response by new link, under Unrecorded situation, return LS_RJT message message in response by new link;
The handoff response module is used to be received from the response message that upstream core switch or other NPV switches return; If the response message that receives is the LS_ACC message, then the uplink port with this N node device of local record is updated to another uplink port that this machine connects new link; If the response message that receives is the LS_RJT message, then by and the N node device that switches of needs between down link notify the core switch registration of core switch or the upstream by other NPV switch cascades upstream of this N node device.
The switching control that can be installed in the another kind of up link of core switch or NPV switch (this NPV switch is used for acting on behalf of the registration of the N node of FC network to core switch) in the present embodiment comprising:
The message receiver module, be used to receive the NPLS message that this N node device of expression that the NPV switch in this machine downstream sends need switch up link, wherein, the NPLS request message sends by new link after downstream NPV switch is determining the pairing former up link of arbitrary N node device need to be switched to another new link;
The switch decision module is used for inquiring about this machine according to the NPLS message and whether records the downlink port of the N node device that needs switch and return response message by described new link; If this machine has write down the downlink port of the N node device that needs switching, then the downlink port with this N node device correspondence of local record changes to the port that this machine connects new link, and the response message that returns is the LS_ACC message, so that the direct-connected NPV switch in downstream is updated to the port (for this machine is the situation of core switch, and the switch decision module can also be further migrates to the downlink port that this machine connects new link with the log-on message of this N node device from the downlink port that this machine connects former up link) that the direct-connected NPV switch in this downstream connects new link with the pairing uplink port of this N node device of its record; If this machine does not write down the downlink port of the N node device that needs switching, then by new link downstream the response message that returns of NPV switch be the LS_RJT message so that the direct-connected NPV switch in downstream is notified this N node device registration by the down link between itself and this N node device.
Below, again in conjunction with some examples, illustrate institute's possibility various case when using the technical scheme of present embodiment.
Referring to Fig. 5 a, N node device and NPV switchboard direct connection, the NPV switch is direct-connected, also direct-connected by link 3 and core switch 2 with core switch 1 by link 1 and link 2.
Suppose that the N node device has been the former up link of N node device in core switch 1 registration and link 1, when the NPV switch thinks that needs switch the up link of this N node device:
If selecting link 2 be new up link, and by link 2 to core switch 1 transmission NPLS message, then, core switch 1 receives the downlink port of searching this N node device behind the NPLS message at this machine; Because this N node device is in core switch 1 registration, thereby core switch 1 one finds the downlink port of this N node device of local record surely, thereby the downlink port of this N node device of local record is changed to the downlink port that connects link 2, and should respond the LS_ACC message to the NPV switch, make the NPV switch that the uplink port of this N node device of local record is changed to the uplink port that connects link 2; In this case, need not this N node device re-registers and can finish switching;
And if to select link 3 be new up link, and by link 3 to core switch 2 transmission NPLS messages, then, core switch 2 receives the downlink port of searching this N node device behind the NPLS message at this machine; Because this N node device is not in core switch 1 registration and in core switch 2 registrations, thereby core switch 2 can't find the downlink port of this N node device of local record, thereby respond the LS_RJT message to the NPV switch, make the NPV switch notify this N node device to re-register.
Referring to Fig. 5 b, N node device and NPV switch 1 are direct-connected, NPV switch 1 is direct-connected and be connected to core switch for 3 grades by NPV switch 2 and NPV switch by link 1 and link 2 and NPV switch 2, and NPV switch 1 is also direct-connected and be connected to core switch for 4 grades by the NPV switch by link 3 and NPV switch 4.
Suppose, the N node device is registered at core switch by NPV switch 1, NPV switch 2, NPV switch 3, and the link 1 between NPV switch 1 and the NPV switch 2 belongs to the part of the former up link of N node device, when the NPV switch thinks that needs switch the up link of this N node device:
If selecting link 2 be new link, and by link 2 to NPV switch 2 transmission NPLS messages, then, NPV switch 2 receives the downlink port of searching this N node device behind the NPLS message at this machine; Because this N node device is registered at core switch by NPV switch 1, NPV switch 2, NPV switch 3, thereby NPV switch 2 one finds the downlink port of this N node device of local record surely, thereby the downlink port of this N node device of local record is changed to the downlink port that connects link 2, and should respond the LS_ACC message to NPV switch 1, make NPV switch 1 that the uplink port of this N node device of local record is changed to the uplink port that connects link 2; In this case, need not this N node device re-registers and can finish switching;
And if to select link 3 be new up link, and by link 3 to NPV switch 4 transmission NPLS messages, then, NPV switch 4 receives the downlink port of searching this N node device behind the NPLS message at this machine; Because this N node device does not pass through NPV switch 4 by NPV switch 1, NPV switch 2, NPV switch 3 in core switch 1 registration, thereby NPV switch 4 can't find the downlink port of this N node device of local record, thereby respond the LS_RJT message to NPV switch 1, make the NPV switch notify this N node device to re-register.
Referring to Fig. 5 c, N node device and NPV switch 1 are direct-connected, and NPV switch 1 is direct-connected and be connected to core switch for 2 grades by the NPV switch by link 1 and link 2 and NPV switch 2, and NPV switch 1 is also direct-connected by link 3 and core switch.
Suppose, the N node device is registered at core switch by NPV switch 1, NPV switch 2, and the link 1 between NPV switch 1 and the NPV switch 2 belongs to the part of the former up link of N node device, when the NPV switch thinks that needs switch the up link of this N node device:
If selecting link 2 be new link, and by link 2 to NPV switch 2 transmission NPLS messages, then, NPV switch 2 receives the downlink port of searching this N node device behind the NPLS message at this machine; Because this N node device is registered at core switch by NPV switch 1, NPV switch 2, thereby NPV switch 2 one finds the downlink port of this N node device of local record surely, thereby the downlink port of this N node device of local record is changed to the downlink port that connects link 2, and should respond the LS_ACC message to NPV switch 1, make NPV switch 1 that the uplink port of this N node device of local record is changed to the uplink port that connects link 2; In this case, need not this N node device re-registers and can finish switching;
If selecting link 3 be new up link, and by link 3 to core switch transmission NPLS message, then, core switch receives the downlink port of searching this N node device behind the NPLS message at this machine; Because this N node device is in core switch 1 registration, thereby core switch also can find the downlink port of this N node device of local record, thereby the downlink port of this N node device of local record is changed to the downlink port that connects link 2, and should respond the LS_ACC message to NPV switch 1, make NPV switch 1 that the uplink port of this N node device of local record is changed to the uplink port that connects link 2; In this case, need not this N node device equally re-registers and can finish switching.
Suppose again, the N node device is registered at core switch by direct-connected link 3 between NPV switch 1 and NPV switch 1 and the core switch, and the link between NPV switch 1 and the core switch 3 belongs to the complete former up link of N node device, when the NPV switch thinks that needs switch the up link of this N node device:
If selecting link 1 be new link, and by link 1 to NPV switch 2 transmission NPLS messages, then, NPV switch 2 receives the downlink port of searching this N node device behind the NPLS message at this machine; Because this N node device is not registered at core switch by NPV switch 2, thereby NPV switch 2 can't find the downlink port of this N node device of local record, thereby respond the LS_RJT message to NPV switch 1, make the NPV switch notify this N node device to re-register;
Send the NPLS message if selecting link 2 is new up link, also pass through link 2 to core switch, then, identical with the situation of selecting link 1.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being done, be equal to and replace and improvement etc., all should be included within protection scope of the present invention.
Claims (16)
1. the method for handover control of a up link is applied on the NPV switch, and described NPV switch is used for acting on behalf of the registration of the N node of FC network to core switch, it is characterized in that this method for handover control comprises:
This machine is after determining the pairing former up link of arbitrary N node device need to be switched to another new link, need switch the request message of up link by this N node device of described new link FC switch transmission upstream expression, and receive the response message of upstream FC switch responds described request message;
If described response message is a confirmation message, then the uplink port with this N node device of local record is updated to the port that this machine connects described new link;
If described response message is the refusal message, then notify this N node device to initiate registration to core switch by the down link between this machine and this N node device.
2. method for handover control as claimed in claim 1, it is characterized in that, described upstream FC switch is upstream core switch or another the NPV switch direct-connected with this machine, and is described direct-connected for not having other NPV switch between this machine and upstream core switch or another NPV switch.
3. method for handover control as claimed in claim 1 or 2, it is characterized in that, the described request message is the message of ELS agreement, it comprises command code field and device identification field, wherein, the command code of filling in the described command code field represents that needs switch the identification information of the N node device that carries needs switching up link in up link, the device identification field.
4. method for handover control as claimed in claim 3 is characterized in that, described identification information is: the WWN of the port of the down link between described and this N node device of the connection of this N node device.
5. the method for handover control of a up link is applied on core switch or the NPV switch, and described NPV switch is used for acting on behalf of the registration of the N node of FC network to core switch, it is characterized in that this method for handover control comprises:
This machine receives the request message that this N node device of expression that downstream NPV switch sends need switch up link, inquires about the downlink port that whether records this N node device in this machine and returns response message by described new link according to the described request message then;
If record then changes to the downlink port of this N node device correspondence of writing down in this machine that this machine connects the port of described new link and the described response message that returns is a confirmation message;
If record not, the described response message that then returns are the refusal messages.
6. method for handover control as claimed in claim 5 is characterized in that, this machine and described downstream NPV switchboard direct connection are described direct-connected for not having other NPV switch between this machine and the downstream NPV switch.
7. as claim 6 or 7 described method for handover control, it is characterized in that, the described request message is the message of ELS agreement, it comprises command code field and device identification field, wherein, the command code of filling in the described command code field represents that needs switch the identification information of the N node device that carries needs switching up link in up link, the device identification field.
8. method for handover control as claimed in claim 7 is characterized in that, described identification information is: the WWN of the port of the down link between described and this N node device of the connection of this N node device.
9. the switching control of a up link, this switching control is positioned at the NPV switch, and described NPV switch is used for acting on behalf of the registration of the N node of FC network to core switch, it is characterized in that this switching control comprises:
The handoff request module, be used for after determining the pairing former up link of arbitrary N node device need to be switched to another new link, sending the request message that this N node device of expression need switch up link by the upstream FC switch of described new link;
The handoff response module is used to receive the response message of upstream FC switch responds described request message; If described response message is a confirmation message, then the uplink port with this N node device of local record is updated to the port that this machine connects described new link; If described response message is the refusal message, then by and this N node device between down link notify this N node device to initiate registration to core switch.
10. switching control as claimed in claim 9, it is characterized in that, described upstream FC switch is upstream core switch or another the NPV switch direct-connected with this machine, and is described direct-connected for not having other NPV switch between this machine and upstream core switch or another NPV switch.
11. as claim 9 or 10 described switching controls, it is characterized in that, the described request message is the message of ELS agreement, it comprises command code field and device identification field, wherein, the command code of filling in the described command code field represents that needs switch the identification information of the N node device that carries needs switching up link in up link, the device identification field.
12. switching control as claimed in claim 11 is characterized in that, described identification information is: the WWN of the port of the down link between described and this N node device of the connection of this N node device.
13. the switching control of a up link, this switching control are positioned at core switch or NPV switch, described NPV switch is used for acting on behalf of the registration of the N node of FC network to core switch, it is characterized in that this switching control comprises:
The message receiver module is used to receive the request message that this N node device of expression that this machine downstream NPV switch sends need switch up link;
The switch decision module is used for inquiring about this machine according to the described request message and whether records the downlink port of this N node device and return response message by described new link; If record then changes to the downlink port of this N node device correspondence of writing down in this machine that this machine connects the port of described new link and the described response message that returns is a confirmation message; If record not, the described response message that then returns are the refusal messages.
14. switching control as claimed in claim 13 is characterized in that, this machine and described downstream NPV switchboard direct connection are described direct-connected for not having other NPV switch between this machine and the downstream NPV switch.
15. as claim 13 or 14 described switching controls, it is characterized in that, the described request message is the message of ELS agreement, it comprises command code field and device identification field, wherein, the command code of filling in the described command code field represents that needs switch the identification information of the N node device that carries needs switching up link in up link, the device identification field.
16. switching control as claimed in claim 15 is characterized in that, described identification information is: the WWN of the port of the down link between described and this N node device of the connection of this N node device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110038990.4A CN102123085B (en) | 2011-02-16 | 2011-02-16 | Switch control method and device for uplink |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110038990.4A CN102123085B (en) | 2011-02-16 | 2011-02-16 | Switch control method and device for uplink |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102123085A true CN102123085A (en) | 2011-07-13 |
CN102123085B CN102123085B (en) | 2014-03-19 |
Family
ID=44251541
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110038990.4A Active CN102123085B (en) | 2011-02-16 | 2011-02-16 | Switch control method and device for uplink |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102123085B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105099958A (en) * | 2015-08-28 | 2015-11-25 | 北京星网锐捷网络技术有限公司 | Method and device for establishing virtual switching framework VSF system |
WO2015188701A1 (en) * | 2014-06-12 | 2015-12-17 | Hangzhou H3C Technologies Co., Ltd. | Topology discovery in fabric network |
CN103607294B (en) * | 2013-10-30 | 2017-03-08 | 杭州华三通信技术有限公司 | A kind of restoration methods of network division, equipment and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101035047A (en) * | 2007-04-03 | 2007-09-12 | 中兴通讯股份有限公司 | Processing method for loop network protection |
CN101582834A (en) * | 2008-05-16 | 2009-11-18 | 华为技术有限公司 | Updating method, equipment and system of forwarding table during service transmission of Ethernet |
CN101640819A (en) * | 2009-09-03 | 2010-02-03 | 杭州华三通信技术有限公司 | Port initialization control method and fiber channel over Ethernet switch |
US20110022693A1 (en) * | 2009-07-22 | 2011-01-27 | Madhava Rao Cheethirala | Hard zoning on npiv proxy/npv devices |
-
2011
- 2011-02-16 CN CN201110038990.4A patent/CN102123085B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101035047A (en) * | 2007-04-03 | 2007-09-12 | 中兴通讯股份有限公司 | Processing method for loop network protection |
CN101582834A (en) * | 2008-05-16 | 2009-11-18 | 华为技术有限公司 | Updating method, equipment and system of forwarding table during service transmission of Ethernet |
US20110022693A1 (en) * | 2009-07-22 | 2011-01-27 | Madhava Rao Cheethirala | Hard zoning on npiv proxy/npv devices |
CN101640819A (en) * | 2009-09-03 | 2010-02-03 | 杭州华三通信技术有限公司 | Port initialization control method and fiber channel over Ethernet switch |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103607294B (en) * | 2013-10-30 | 2017-03-08 | 杭州华三通信技术有限公司 | A kind of restoration methods of network division, equipment and system |
WO2015188701A1 (en) * | 2014-06-12 | 2015-12-17 | Hangzhou H3C Technologies Co., Ltd. | Topology discovery in fabric network |
CN105227334A (en) * | 2014-06-12 | 2016-01-06 | 杭州华三通信技术有限公司 | A kind of Fabric method for discovering network topology and device |
CN105227334B (en) * | 2014-06-12 | 2018-10-09 | 新华三技术有限公司 | A kind of Fabric method for discovering network topology and device |
CN105099958A (en) * | 2015-08-28 | 2015-11-25 | 北京星网锐捷网络技术有限公司 | Method and device for establishing virtual switching framework VSF system |
Also Published As
Publication number | Publication date |
---|---|
CN102123085B (en) | 2014-03-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108512703B (en) | Backup method, device and equipment for BRAS transfer control separation and machine readable storage medium | |
CN109361526B (en) | Policy-controlled routing method, PCRF/PCF and DRA | |
CN111615066A (en) | Distributed micro-service registration and calling method based on broadcast | |
US10404571B2 (en) | Communication among network controllers | |
CN111901705B (en) | OMCI function virtualization system of OLT equipment | |
CN109587286B (en) | Equipment access control method and device | |
CN104040964B (en) | Method, device and data center network across service area communication | |
CN110061855B (en) | Service processing method, system and device | |
CN100525378C (en) | Management method, system and device to update distributed set top box | |
KR20130109193A (en) | Communication system, control device, communication method and program | |
CN103167464A (en) | Method for triggering and updating mobile node mapping information, mapping server (MS) and mobile node (MN) | |
CN102136930A (en) | Version upgrading method and routing equipment | |
CN103036919A (en) | Method and device for achieving migration of virtual machine in virtual private cloud (VPC) | |
CN110138606A (en) | Capacitor network configuration method and system | |
MX2014014462A (en) | Service node switching method and system. | |
JP2015133734A (en) | Distributed processing system and distributed processing method | |
CN102340436B (en) | Cross-network message forwarding method and switch system | |
CN102123085A (en) | Switch control method and device for uplink | |
CN103095587A (en) | Method of registration service and network ethnic group central control node and system | |
CN103684838B (en) | A method, an apparatus, a system for configuring a network strategy of a virtual machine | |
US8145211B2 (en) | Continuity of services by the use of a backup HLR | |
CN102647338A (en) | Network communication method and equipment | |
CN102195710B (en) | Method and system for reelecting principle switch | |
CN106254095A (en) | The backup processing method of tunnel traffic and equipment | |
EP2479932A1 (en) | Method and system for allocating position identifier and transmitting message |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Patentee after: Xinhua three Technology Co., Ltd. Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base Patentee before: Huasan Communication Technology Co., Ltd. |
|
CP03 | Change of name, title or address |