CN103051568B - File transmitting method, device and switch - Google Patents
File transmitting method, device and switch Download PDFInfo
- Publication number
- CN103051568B CN103051568B CN201310003560.8A CN201310003560A CN103051568B CN 103051568 B CN103051568 B CN 103051568B CN 201310003560 A CN201310003560 A CN 201310003560A CN 103051568 B CN103051568 B CN 103051568B
- Authority
- CN
- China
- Prior art keywords
- switch
- name
- message
- interrupted
- module
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 230000005540 biological transmission Effects 0.000 claims description 8
- 238000012217 deletion Methods 0.000 claims description 4
- 230000037430 deletion Effects 0.000 claims description 4
- 238000004891 communication Methods 0.000 abstract description 31
- 239000004744 fabric Substances 0.000 description 112
- 238000010586 diagram Methods 0.000 description 16
- 238000006424 Flood reaction Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a kind of file transmitting method, device and switch, this file transmitting method comprises: switch receives BF message; When carrying switch name in this BF message, and when the switch name of carrying in this BF message is different from the switch name of this switch, this switch retains the Domain_ID of this switch; This BF message is sent by the port in this switch except receiving the port of this BF message.The present invention can realize only having the communication disruption of the switch name switch identical with the switch name of carrying in BF message and in network, the communication of other switches is not interrupted, and ensure that the serviceability of whole net network to greatest extent.
Description
Technical Field
The present invention relates to communications technologies, and in particular, to a message sending method, a message sending device, and a switch.
Background
With the development of new data center technology, the convergence of traditional ethernet and storage network is a necessary trend, and under this background, a new generation converged network ethernet over fiber channel protocol (FCOE) is produced. In an E-mode port (FCOEE) network, when two different networks are merged together, storage switching network (Fabric) reconfiguration occurs, which is divided into Non-Disruptive (BF) and Disruptive (RCF). The data transmission is not interrupted in the Fabric non-interruption reconfiguration process; the data transmission of the whole Fabric is interrupted in the reconfiguration process of the Fabric interruption.
In each Fabric, Domain identifiers (Domain _ IDs) are used to identify the switches, and the Domain _ IDs of the switches in a Fabric are different. The Domain _ ID of a switch in an FCOE network is assigned by the master switch in the Fabric.
When two networks which have finished Fabric configuration and do not overlap Domain _ ID are merged, after the switches which are connected with each other in the two networks and the connected ports are configured as E-mode ports receive exchange Fabric switch parameter (EFP) messages sent by the opposite end, the exchange Fabric parameter (switch name) and the Domain _ ID of all switches in the local network are compared, if no conflict is judged, BF is started, the switches spread BF messages in the Fabric, the locally stored priority of the main switch, the name of the main switch and the list of Domain _ IDs of all switches in the Fabric are cleared, the main switch election is prepared, and the main switch election process is started. But does not clear its own Domain _ ID, so the communication across the network is normal and not interrupted.
When two networks which have finished Fabric configuration but have overlapped Domain _ IDs are merged, after the switches which are connected with each other in the two networks and have the ports configured as E-mode ports receive the EFP messages sent by the opposite end respectively, the switches are compared with the locally recorded switch names and Domain _ IDs of all the switches in the local network, the Domain _ IDs with conflicts are judged, RCF is started, the switches spread the RCF messages in the Fabric, the priority and the name of the main switch stored by the local machine, the Domain _ ID lists of all the switches in the Fabric and the Domain _ IDs of the local machine are cleared, the main switch election is prepared, and the main switch election process is started. When entering the RCF state, the switch deletes the local Domain _ ID, so that the communication across the network will be interrupted.
In summary, in the prior art, when two networks having completed Fabric configuration but Domain _ ID conflict are merged, the problem of communication interruption of the whole network occurs, but the prior art does not provide a corresponding solution.
Disclosure of Invention
The invention provides a message sending method, which is used for ensuring that the communication of a non-conflict switch is not interrupted and the serviceability of the whole network is ensured to the maximum extent when two networks which have finished Fabric configuration but have Domain _ ID conflict are merged.
One aspect of the present invention provides a method for sending a packet, including:
the method comprises the steps that a switch receives a non-interrupt reconfiguration message, wherein the non-interrupt reconfiguration message is sent by the switch which is connected with the switch in an adjacent storage switching network of a storage switching network to which the switch belongs in the storage switching network to which the switch belongs;
when the non-interrupted reconfiguration message carries a switch name and the switch name carried in the non-interrupted reconfiguration message is different from the switch name of the switch, the switch reserves the domain identifier of the switch; the name of the switch carried in the non-interrupted reconfiguration message is the name of the switch with lower priority in the storage switching network to which the switch belongs and the switches with the same domain identification in the adjacent storage switching network;
and the switch sends the non-interrupt reconfiguration message out through a port except the port for receiving the non-interrupt reconfiguration message in the switch.
Another aspect of the present invention provides a method for sending a packet, including:
the method comprises the steps that a switch receives an exchange storage switching network switch parameter EFP message, wherein the EFP message is sent to the switch after the switch is connected with a switch in an adjacent storage switching network of a storage switching network to which the switch belongs and a port of the switch connected with the switch in the adjacent storage switching network is configured to be an E-mode port;
if the domain identifier list carried by the EFP message and the domain identifier list of the storage switching network to which the switch belongs, which is stored by the switch, have the same domain identifier, the switch determines the priority of the switch corresponding to the same domain identifier, and carries the switch name of the switch with lower priority in the switches corresponding to the same domain identifier in the non-interrupt reconfiguration message;
and the switch sends the non-interrupt reconfiguration message out through a port except the E-mode port in the switch.
In another aspect, the present invention provides a message sending apparatus, where the message sending apparatus is disposed in an exchange, and the message sending apparatus includes:
a receiving module, configured to receive an uninterrupted reconfiguration message, where the uninterrupted reconfiguration message is sent by a switch connected to a switch in an adjacent storage switch network of a storage switch network to which the switch belongs, in the storage switch network to which the switch belongs;
a reserving module, configured to reserve a domain identifier of the switch when the non-interrupted reconfiguration message received by the receiving module carries a switch name, and the switch name carried in the non-interrupted reconfiguration message is different from the switch name of the switch; the name of the switch carried in the non-interrupted reconfiguration message is the name of the switch with lower priority in the storage switching network to which the switch belongs and the switches with the same domain identification in the adjacent storage switching network;
and the sending module is used for sending the non-interrupted reconfiguration message received by the receiving module out through a port except the port for receiving the non-interrupted reconfiguration message in the switch.
In another aspect, the present invention provides a switch, including the message sending apparatus as described above.
In another aspect, the present invention provides a message sending apparatus, where the message sending apparatus is disposed in an exchange, and the message sending apparatus includes:
the system comprises a receiving module, a switching storage switching network switch parameter EFP message and a sending module, wherein the EFP message is sent to a switch in an adjacent storage switching network of a storage switching network to which the switch belongs, and after a port of the switch connected with the switch in the adjacent storage switching network is configured to be an E-mode port, the switch in the adjacent storage switching network is sent to the switch;
a determining module, configured to determine, when a domain identifier list carried in the EFP packet received by the receiving module and a domain identifier list of a storage switching network to which the switch belongs, which is stored by the switch, have a same domain identifier, a priority of the switch corresponding to the same domain identifier;
a setting module, configured to carry, in a non-interrupted reconfiguration message, a switch name of a switch with a lower priority, from the switches corresponding to the same domain identifier determined by the determining module;
and the sending module is used for sending the non-interrupted reconfiguration message set by the setting module out through a port except the E-mode port in the switch.
In another aspect, the present invention provides a switch, including the message sending apparatus as described above.
The invention has the technical effects that: after the switch receives the BF message, when the BF message carries the name of the switch and the name of the switch carried in the BF message is different from the name of the switch, the switch reserves the Domain _ ID of the switch; the switch name carried in the BF message is the switch name of the switch with lower priority among the Fabric to which the switch belongs and the switches with the same Domain _ ID in the adjacent fabrics. In the invention, when two networks which have finished Fabric configuration but have conflict Domain _ ID are fused, if the switch name of the switch is different from the switch name carried in the BF message, the switch keeps the local Domain _ ID, thus ensuring the communication of the switch without interruption and ensuring the serviceability of the whole network to the maximum extent.
Drawings
Fig. 1 is a flowchart of an embodiment of a message sending method according to the present invention;
fig. 2 is a flowchart of another embodiment of a message sending method according to the present invention;
fig. 3 is a flowchart of a message sending method according to another embodiment of the present invention;
FIG. 4 is a diagram illustrating an embodiment of a BF message format according to the present invention;
FIG. 5 is a diagram illustrating an embodiment of a Domain _ ID list format according to the present invention;
FIG. 6 is a diagram illustrating another embodiment of a BF message format according to the present invention;
fig. 7 is a flowchart of a message sending method according to still another embodiment of the present invention;
FIG. 8 is a schematic diagram of one embodiment of an application scenario of the present invention;
fig. 9 is a schematic structural diagram of an embodiment of a message sending apparatus according to the present invention;
fig. 10 is a schematic structural diagram of another embodiment of a message sending apparatus according to the present invention;
fig. 11 is a schematic structural diagram of a message sending apparatus according to still another embodiment of the present invention;
fig. 12 is a schematic structural diagram of a message sending apparatus according to another embodiment of the present invention.
Detailed Description
Fig. 1 is a flowchart of an embodiment of a message sending method according to the present invention, and as shown in fig. 1, the message sending method may include:
step 101, a switch receives a non-interrupt reconfiguration (BF) message, where the BF message is sent by a switch connected to a switch in a storage switched network (Fabric) to which the switch belongs and a switch in a Fabric adjacent to the Fabric to which the switch belongs.
And 102, when the BF message carries a switch name and the switch name carried in the BF message is different from the switch name of the switch, the switch reserves the Domain _ ID of the switch.
The switch name carried in the BF message is the switch name of the switch with lower priority from the Fabric to which the switch belongs and the switches with the same Domain _ ID in the adjacent fabrics.
And 103, the switch sends out the BF message through the ports except the port for receiving the BF message in the switch.
Further, after step 103, the switch performs main switch election with other switches except for the switch in the Fabric to which the switch belongs and switches in adjacent fabrics, applies for continued use of the Domain _ ID of the switch to the elected main switch, and receives a response sent by the elected main switch to allow the switch to continue use of the Domain _ ID of the switch. Of course, if the switch is elected as the main switch after the switch elects the main switch with the other switches except the switch in the Fabric to which the switch belongs and the switches in the adjacent fabrics, the switch does not need to apply itself for continuing to use the local Domain _ ID.
In this embodiment, after step 101, when the BF packet carries the switch name, and the switch name carried in the BF packet is different from the switch name of the switch, the switch may further delete the priority of the master switch, the name of the master switch, and the domain identifier lists of all switches in the Fabric to which the switch belongs; or,
when the BF message carries the switch name and the switch name carried in the BF message is the same as the switch name of the switch, the switch deletes the Domain _ ID of the switch, the priority of the main switch stored by the switch, the name of the main switch and the Domain _ ID lists of all switches in the Fabric to which the switch belongs, and sends the BF message out through ports except the port for receiving the BF message in the switch.
Further, when the BF message carries a switch name, and the switch name carried in the BF message is the same as the switch name of the switch, after the BF message is sent out through a port of the switch except for the port receiving the BF message, the switch performs a master switch election with other switches of the Fabric to which the switch belongs except for the switch itself and switches of adjacent fabrics, and reappears a new Domain _ ID to the elected master switch.
In the above embodiment, after the switch receives the BF packet, when the BF packet carries a switch name and the switch name carried in the BF packet is different from the switch name of the switch, the switch reserves the Domain _ ID of the switch; the switch name carried in the BF message is the switch name of the switch with lower priority among the Fabric to which the switch belongs and the switches with the same Domain _ ID in the adjacent fabrics. In this embodiment, when two networks that have completed Fabric configuration but have a conflict Domain _ ID are merged, if the switch name of the switch is different from the switch name carried in the BF packet, the switch retains the local Domain _ ID, so that it can be ensured that the communication of the switch is not interrupted.
Fig. 2 is a flowchart of another embodiment of the message sending method of the present invention, and as shown in fig. 2, the message sending method may include:
step 201, a switch receives an EFP message, where the EFP message is sent to the switch after the switch is connected to a switch in an adjacent Fabric of a storage switching network (Fabric) to which the switch belongs, and a port of the switch connected to the switch in the adjacent Fabric is configured as an E-mode port.
Step 202, if the Domain _ ID list carried by the EFP message and the Domain _ ID list of the Fabric to which the switch belongs, stored by the switch, have the same Domain _ ID, the switch determines the priority of the switch corresponding to the same Domain _ ID, and carries the switch name of the switch with lower priority among the switches corresponding to the same Domain _ ID in the BF message.
Step 203, the switch sends out the BF message through the ports of the switch except the E-mode port.
Specifically, in step 202, the step of carrying the switch name of the switch with the lower priority in the switches corresponding to the same Domain _ ID in the BF packet may be: if the switch determines that the priority of the switch corresponding to the same Domain _ ID is the same, the switch carries the switch name of the switch with the higher value of the switch name in the switch corresponding to the same Domain _ ID in the BF message. For example, assuming that the priority of the switches corresponding to the same Domain _ ID is the same, the switch names of the switches corresponding to the same Domain _ ID are 20:00:58:69:6c:7a:7b:04 and 10:00:60:42:6a:6b:7c:00, respectively, in this case, the size of the value of each byte in the two switch names can be compared in the order from the upper bit to the lower bit (i.e., from left to right), and if the value of the byte of a certain switch name is higher when the certain byte is compared, the value of the switch name can be determined to be higher. For example: the two switch names 20:00:58:69:6c:7a:7b:04 and 10:00:60:42:6a:6b:7c:00 are compared in order from high to low (i.e., from left to right) for the size of each byte, the first byte of the two switch names from high is 20 and 10, respectively, obviously 20>10, and thus it can be determined that the value of 20:00:58:69:6c:7a:7b:04 is higher than the value of 10:00:60:42:6a:6b:7c: 00.
If the priorities of the two switches are the same, the switch with the higher value of the switch name in the two switches with the same priority can be considered to have a relatively lower priority, so that the switch name of the switch with the higher value of the switch name in the switch corresponding to the same Domain _ ID is carried in the BF message, and when two networks which have finished Fabric configuration and conflict in Domain _ ID are fused, only the communication of the switch with the switch name in the low-priority network which is the same as the switch name carried in the BF message is interrupted, while the communication of other switches in the network is not interrupted, so that the serviceability of the whole network can be ensured to the maximum extent.
Further, in an implementation manner of this embodiment, after step 203, if the switch determines that the switch name of the switch is different from the switch name carried in the BF packet, the switch retains the Domain _ ID of the switch, and deletes the main switch priority, the main switch name, and the Domain _ ID lists of all switches in the Fabric to which the switch belongs, which are stored in the switch; then, the switch performs main switch election with other switches except for the switch in the Fabric to which the switch belongs and switches in adjacent fabrics, applies for continued use of the Domain _ ID of the switch to the elected main switch, and receives a response that allows the switch to continue use of the Domain _ ID sent by the elected main switch. Of course, if the switch is elected as the main switch after the switch elects the main switch with the other switches except the switch in the Fabric to which the switch belongs and the switches in the adjacent fabrics, the switch does not need to apply itself for continuing to use the local Domain _ ID.
Further, in another implementation manner of this embodiment, after step 203, if the switch determines that the switch name of the switch is the same as the switch name carried in the BF packet, the switch deletes the Domain _ ID of the switch, the priority of the master switch stored in the switch, the name of the master switch, and the Domain _ ID lists of all switches in the Fabric to which the switch belongs; then, the switch performs main switch election with other switches except for the switch in the Fabric to which the switch belongs and switches in adjacent fabrics, and applies for a new Domain _ ID from the elected main switch again.
In the above embodiment, if the switch determines that the Domain _ ID list carried in the EFP message received by the switch and the Domain _ ID list of the Fabric to which the switch belongs, which are stored in the switch, have the same Domain _ ID, the switch determines the priority of the switch corresponding to the same Domain _ ID, carries the switch name of the switch with the lower priority in the switches corresponding to the same Domain _ ID in the BF message, and sends the BF message through the port except the E-mode port in the switch. Therefore, if the switch name of the switch receiving the BF message is different from the switch name carried in the BF message, the switch receiving the BF message can keep the local Domain _ ID, so that the communication of the switch is not interrupted, only the switch with the same switch name as the switch name carried in the BF message can delete the local Domain _ ID, the communication interruption of the switch with the same switch name as the switch name carried in the BF message in a low-priority network can be realized, the communication of other switches in the network is not interrupted, and the serviceability of the whole network can be furthest ensured.
Fig. 3 is a flowchart of a message sending method according to another embodiment of the present invention, and as shown in fig. 3, the message sending method may include:
step 301, the switch receives the EFP message.
In this embodiment, the EFP message is sent to the switch by the switch in the neighboring Fabric to which the switch belongs after the switch is connected to the switch in the neighboring Fabric, and the port of the switch connected to the switch in the neighboring Fabric is configured as an E-mode port.
Step 302, the switch determines whether the Domain _ ID list carried in the EFP message and the Domain _ ID list of the storage switched network (Fabric) to which the switch belongs stored by the switch have the same Domain _ ID. If yes, go to step 303; if not, that is, the Domain _ ID list carried by the EFP message does not have the same Domain _ ID as the Domain _ ID list of the storage switched network (Fabric) to which the switch belongs, which is stored by the switch, then step 307 is executed.
In step 303, the switch determines whether the priority of the switch corresponding to the same Domain _ ID is the same. If not, go to step 304; if so, i.e. the priority of the switch corresponding to the same Domain _ ID is the same, step 305 is executed.
In step 304, the switch carries the switch name of the switch with lower priority in the BF message corresponding to the same Domain _ ID. Then, step 306 is performed.
Step 305, the switch carries the switch name of the switch with higher value of the switch name in the switch corresponding to the same Domain _ ID in the BF message. Then, step 306 is performed.
In this step, for example, assuming that the priority of the switches corresponding to the same Domain _ ID is the same, and the switch names of the switches corresponding to the same Domain _ ID are 20:00:58:69: 6a: 7b:04 and 10:00:60:42:6a:6b:7c:00, respectively, the value of each byte in the two switch names may be compared in order from the upper bit to the lower bit (i.e., from left to right), and if a byte is compared, the value of the byte of a certain switch name is higher, it may be determined that the value of the switch name is higher. For example: the two switch names 20:00:58:69:6c:7a:7b:04 and 10:00:60:42:6a:6b:7c:00 are compared in order from high to low (i.e., from left to right) for the size of each byte, the first byte of the two switch names from high is 20 and 10, respectively, obviously 20>10, and thus it can be determined that the value of 20:00:58:69:6c:7a:7b:04 is higher than the value of 10:00:60:42:6a:6b:7c: 00.
If the priorities of the two switches are the same, the switch with the higher value of the switch name in the two switches with the same priority can be considered to have a relatively lower priority, so that the switch name of the switch with the higher value of the switch name in the switch corresponding to the same Domain _ ID is carried in the BF message, and when two networks which have finished Fabric configuration and conflict in Domain _ ID are fused, only the communication of the switch with the switch name in the low-priority network which is the same as the switch name carried in the BF message is interrupted, while the communication of other switches in the network is not interrupted, so that the serviceability of the whole network can be ensured to the maximum extent.
Step 306, the switch sends out the BF packet through the ports of the switch except the E-mode port. Then, step 308 is performed.
Step 307, the switch sends a BF packet through a port of the switch other than the E-mode port. Then, step 311 is performed.
Since the Domain _ ID list carried by the EFP packet does not have the same Domain _ ID as the Domain _ ID list stored in the switch and belonging to the storage switched network (Fabric), the BF packet sent by the switch does not carry the Domain _ ID and the switch name in this step.
Step 308, the switch determines whether the switch name of the switch is the same as the switch name carried in the BF message. If so, go to step 309; if not, i.e. the switch determines that the switch name of the switch is different from the switch name carried in the BF message, step 311 is executed.
In step 309, the switch deletes the Domain _ ID for the switch, the master switch priority stored by the switch, the master switch name, and the Domain _ ID list for all switches in the Fabric to which the switch belongs.
In step 310, the switch elects the main switch with other switches except the switch itself in the Fabric to which the switch belongs and the switches in the adjacent fabrics, and applies for a new Domain _ ID from the elected main switch again.
In step 311, the switch retains the Domain _ ID of the switch and deletes the main switch priority, main switch name and the Domain _ ID list of all switches in the Fabric to which the switch belongs, which are stored by the switch.
In step 312, the switch elects the main switch with the other switches except the local switch in the Fabric to which the switch belongs and the switches in the adjacent fabrics, applies for the Domain _ ID of the switch to be continuously used from the elected main switch, and receives the response of the Domain _ ID which allows the switch to be continuously used from the elected main switch.
And finally, the switch enters a normal Fabric Shortest Path First (FSPF) route negotiation process and synchronizes the whole network FCOE route.
In a specific implementation, the steps 308 to 312 may be executed concurrently with the step 306 or the step 307, or may be executed sequentially, which is not limited in the embodiment of the present invention, but the embodiment shown in fig. 3 of the present invention takes the example of executing the step 306 or the step 307 first, and then executing the steps 308 to 312 as an example.
In specific implementation, in steps 304 and 305 of this embodiment, the switch name is carried in the BF packet, only the switch name may be carried in the BF packet, or the Domain _ ID list corresponding to the switch name may be carried in the BF packet.
In this embodiment, fig. 4 is a schematic diagram of an embodiment of a BF packet format according to the present invention. In fig. 4, 17h denotes a BF command.
In this embodiment, the format of the Domain _ ID list may be as shown in fig. 5, and fig. 5 is a schematic diagram of an embodiment of the Domain _ ID list format according to the present invention. In fig. 5, when the value of the report Type (Record _ Type) field is 0x01, it indicates that the Domain _ ID list includes the Domain _ ID and the corresponding SwitchName.
In this embodiment, a format of the BF packet carrying the Domain _ ID list may be as shown in fig. 6, and fig. 6 is a schematic diagram of another embodiment of the BF packet format of the present invention.
Referring to fig. 4 to 6, a BF message carrying a Domain _ ID list divides 4 bytes of the BF message not carrying the Domain _ ID list into 3 parts: a command code (Command) field, a report length (Recordlength) field, and a payload length (Payloadlength) field.
Wherein, (1) the command encoding field occupies 1 byte, and when the value of the command encoding field is 17h, the BF command is represented;
(2) the report length field takes 1 byte: the value of the report length field indicates the length of each Domain _ ID list carried in the BF packet. As shown in fig. 5, each Domain _ ID list has a length of 16 bytes, so the report length field has a value of 16, which is 10h in a 16-ary representation.
(3) The load length field takes 2 bytes: and the length sum of all Domain _ ID lists carried in the field of the Domain _ ID _ List added to the BF message is represented. Assuming that the Domain _ ID _ List field carries 2 Domain _ ID lists, as shown in fig. 5, the length of 1 Domain _ ID List is 16 bytes, and the value of this payload length field is 32. If the value of the load length field is 0, the BF message is not carried with a conflict list.
As shown in fig. 6, the length of the Domain _ ID _ List field is variable and is determined according to the number of the Domain _ ID lists carried in the Domain _ ID _ List field, the length of 1 Domain _ ID List is 16 bytes, and if the Domain _ ID _ List field carries N Domain _ ID lists, the length of the Domain _ ID _ List field is N × 16 bytes.
In the foregoing embodiment, if the switch determines that the Domain _ ID list carried in the EFP message received by the switch and the Domain _ ID list of the Fabric to which the switch belongs, which are stored by the switch, have the same Domain _ ID, the switch determines the priority of the switch corresponding to the same Domain _ ID, carries the switch name of the switch with the lower priority in the switches corresponding to the same Domain _ ID in the BF message, and sends the BF message through the port other than the E-mode port in the switch. Therefore, if the switch name of the switch receiving the BF message is different from the switch name carried in the BF message, the switch receiving the BF message can keep the local Domain _ ID, so that the communication of the switch is not interrupted, only the switch with the same switch name as the switch name carried in the BF message can delete the local Domain _ ID, the communication interruption of the switch with the same switch name as the switch name carried in the BF message in a low-priority network can be realized, the communication of other switches in the network is not interrupted, and the serviceability of the whole network can be furthest ensured.
Fig. 7 is a flowchart of a message sending method according to another embodiment of the present invention, and as shown in fig. 7, the message sending method may include:
step 701, the switch receives a BF message, where the BF message is sent by a switch in the Fabric to which the switch belongs and a switch in an adjacent Fabric to the Fabric to which the switch belongs.
Step 702, the switch judges whether the BF message carries the name of the switch. If so, go to step 703; if not, i.e. the switch determines that the BF message does not carry the switch name, step 706 is executed.
Specifically, the switch may directly analyze the received BF message to obtain a value of a load length field in the BF message, and if the value of the load length field is 0, the switch may determine that the received BF message does not carry a switch name, and if the value of the load length field is not 0, the switch may determine that the received BF message carries a switch name.
In step 703, the switch determines whether the switch name carried in the BF packet is the same as the switch name of the switch. If so, go to step 704; if not, that is, the switch name carried in the BF message is different from the switch name of the switch, step 706 is executed.
In this embodiment, the switch name carried in the BF message is the switch name of the switch with lower priority from the Fabric to which the switch belongs and the switches with the same Domain _ ID in the adjacent fabrics.
Step 704, the switch deletes the Domain _ ID of the switch, the priority of the main switch stored in the switch, the name of the main switch, and the Domain _ ID lists of all switches in the Fabric to which the switch belongs, and sends the BF packet out through the ports of the switch except the port receiving the BF packet.
Step 705, the switch elects the main switch with other switches except the switch itself in the Fabric to which the switch belongs and the switches in the adjacent fabrics, and applies for a new Domain _ ID from the elected main switch again. Then, step 708 is performed.
Step 706, the switch retains the Domain _ ID of the switch, deletes the main switch priority, main switch name and Domain ID list of all switches in the Fabric to which the switch belongs, and sends the BF packet through the ports of the switch except the port receiving the BF packet.
In step 707, the switch performs main switch election with other switches except the switch itself in the Fabric to which the switch belongs and switches in adjacent fabrics, applies for the Domain _ ID of the switch to be continuously used to the elected main switch, and receives a response sent by the elected main switch to allow the switch to continuously use the Domain _ ID of the switch. Step 708 is then performed.
Step 708, the switch enters a normal FSPF route negotiation process, and synchronizes the entire network FCOE routes.
In the above embodiment, when it is determined that an overlay network occurs, the switch that receives the EFP message adds the switch name of the switch with a lower priority in the conflicting switches to the BF message, and floods the BF message over the entire network, and when the switch name of the switch that receives the BF message is different from the switch name carried in the BF message, the switch that receives the BF message enters a BF state, and does not clear the Domain _ ID of the local computer, and after the election of the main switch is performed, the elected main switch is applied to continue to use the original Domain _ ID. When the switch name of the switch receiving the BF message is the same as the switch name carried in the BF message, the switch also enters a BF state, meanwhile, the local Domain _ ID is cleared, and after the main switch is reselected, a new Domain _ ID is reapplied to the elected main switch. Therefore, the communication interruption of the switch with the same switch name as the switch name carried in the BF message in the low-priority network is realized, and the communication of other equipment in the network is not interrupted, so that the serviceability of the whole network is ensured to the maximum extent.
The method provided by the present invention can be applied to the application scenario shown in fig. 8, and fig. 8 is a schematic diagram of an embodiment of the application scenario of the present invention. The method provided by the present invention is described below with reference to fig. 8.
As shown in fig. 8, when the left and right fabrics are connected together through the new link established between SW2 and SW4, and the port interconnected between SW2 and SW4 is configured as an E-mode port, both SW2 and SW4 send an EFP packet to the opposite end, and after receiving the EFP packet sent by the opposite end, SW2 and SW4 check the Domain _ ID in the Domain _ ID list carried in the EFP packet, and find that SW3 in the Fabric to which SW2 belongs and SW5 in the Fabric to which SW4 belongs have a conflict. As shown in fig. 8, the Fabric belonging to SW2 includes SW1, SW2 and SW3, and the Fabric belonging to SW4 includes SW4 and SW 5.
Then, SW2 and SW4 determine priorities of SW3 and SW5, assuming that priorities of SW3 and SW5 are the same, but a value of a switch name of SW5 is greater than a value of a switch name of SW3, at this time, SW2 and SW4 carry the switch name of SW5 in a BF message and send the BF message through ports other than the E-mode port in SW2 and SW4, SW2 and SW4 determine that their own switch name is different from the switch name carried in the BF message, so SW2 deletes the local stored priority of the main switch and the main switch name, the Domain _ ID list of all switches in Fabric to which SW2 belongs, without deleting the local Domain _ ID, and prepares for selection of the main switch. Similarly, SW4 deletes the locally stored priority and name of the master switch and the Domain _ ID list of all switches in the Fabric to which SW4 belongs, instead of deleting the local Domain _ ID, prepares for the master switch election.
After receiving the BF message, SW1 judges that the switch name carried in the BF message is different from the switch name of SW1, SW1 deletes the priority and main switch name of the main switch stored in the local machine and the Domain _ ID list of all switches in the Fabric to which SW1 belongs, but does not delete the Domain _ ID of the local machine, and continuously floods the BF message, and then SW1 prepares for the election of the main switch.
After receiving the BF message, SW3 determines that the switch name carried in the BF message is different from the switch name of SW3, so SW3 deletes the priority and main switch name of the main switch stored in the local computer and the Domain _ ID list of all switches in the Fabric to which SW3 belongs, but does not delete the Domain _ ID of SW3, and continues to flood the BF message, and SW3 prepares for election of the main switch.
After receiving the BF message, SW5 determines that the switch name carried in the BF message is the same as the switch name of SW5, and then SW5 deletes the priority and the name of the main switch stored in the local computer, the Domain _ ID list of all switches in the Fabric to which SW5 belongs, and the Domain _ ID of SW5, and prepares for election of the main switch.
Next, all switches in both fabrics perform master switch elections, namely SW1, SW2, SW3, SW4 and SW5 perform master switch elections, assuming that the priority of SW1 is lowest, SW1 is elected as the master switch.
Then, the master switch SW1 sends a Domain Identifier Assigned (DIA) message to the downstream device SW2, and after receiving the DIA message, the downstream device SW2 requests the SW1 to continue using the previous Domain _ ID through a Request Domain Identifier (RDI) message. While forwarding received DIA messages to SW3 and SW 4. After SW3 and SW4 received the DIA message, they also request to continue using the previous Domain _ ID. SW4 then forwards the DIA message to SW5, and SW5 re-applies for a new Domain _ ID to SW1 via an RDI message.
And finally, performing FSPF routing calculation and updating a new FCOE routing table entry.
In the process, only SW5 deletes the local Domain _ ID to reapply for a new Domain _ ID, so that only SW5 interrupts communication, and other devices retain the original Domain _ ID, so that communication is not interrupted.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Fig. 9 is a schematic structural diagram of an embodiment of a message sending apparatus according to the present invention, where the message sending apparatus in this embodiment may be disposed in an exchange to implement the flow of the embodiment shown in fig. 1 of the present invention, and as shown in fig. 9, the message sending apparatus may include: a receiving module 91, a reserving module 92 and a sending module 93;
the receiving module 91 is configured to receive a BF message, where the BF message is sent by a switch connected to a switch in a storage switched network (Fabric) to which the switch belongs and a Fabric adjacent to the Fabric to which the switch belongs;
a reserving module 92, configured to reserve Domain _ ID of the switch when the BF message received by the receiving module 91 carries a switch name, and the switch name carried in the BF message is different from the switch name of the switch; the switch name carried in the BF message is the switch name of the switch with lower priority in the Fabric to which the switch belongs and the switches with the same Domain _ ID in the adjacent fabrics;
and the sending module 93 is configured to send the BF packet received by the receiving module 91 through a port of the switch, except for a port receiving the BF packet.
In the above embodiment, after the receiving module 91 receives the BF packet, when the BF packet carries a switch name, and the switch name carried in the BF packet is different from the switch name of the switch, the retaining module 92 retains the Domain _ ID of the switch, where the switch name carried in the BF packet is the switch name of the switch with lower priority among the Fabric to which the switch belongs and the switches with the same Domain _ ID in the adjacent fabrics. In the invention, when two networks which have finished Fabric configuration but have conflict Domain _ ID are merged, if the switch name of the switch is different from the switch name carried in the BF message, the switch keeps the local Domain _ ID, thus ensuring the communication of the switch without interruption and ensuring the serviceability of the whole network to the maximum extent.
Fig. 10 is a schematic structural diagram of another embodiment of the message sending apparatus of the present invention, and compared with the message sending apparatus shown in fig. 9, the difference is that in this embodiment, the message sending apparatus may further include: a first election module 94 and a first applications module 95;
the first election module 94 is configured to, when the BF message received by the receiving module 91 carries a switch name, and the switch name carried in the BF message is different from the switch name of the switch, send the BF message received by the receiving module 91 by the sending module 93, and then perform primary switch election with other switches except the switch in the Fabric to which the switch belongs and switches in the adjacent Fabric;
a first application module 95, configured to apply for continued use of Domain _ ID of the selected master switch;
in this embodiment, the receiving module 91 is further configured to receive a response sent by the elected master switch, where the response allows the switch to continue using the Domain _ ID of the switch.
Further, the message sending apparatus may further include: a deletion module 96;
a deleting module 96, configured to delete the priority of the main switch, the name of the main switch, and the Domain _ ID list of all switches in the Fabric to which the switch belongs, where the switch name is carried in the BF message received by the receiving module 91 and the switch name carried in the BF message is different from the switch name of the switch; or, when the BF message received by the receiving module 91 carries a switch name, and the switch name carried in the BF message is the same as the switch name of the switch, delete the Domain _ ID of the switch, the priority of the main switch stored in the switch, the name of the main switch, and the Domain _ ID lists of all switches in the Fabric to which the switch belongs.
Further, the message sending apparatus may further include: a second election module 97 and a second applications module 98;
the second election module 97 is configured to, when the BF packet received by the receiving module 91 carries a switch name, and the switch name carried in the BF packet is the same as the switch name of the switch, send the BF packet received by the receiving module 91 by the sending module 93, and then perform primary switch election with other switches except the switch in the Fabric to which the switch belongs and switches in the adjacent Fabric;
a second application module 98, configured to reapply a new Domain _ ID to the elected master switch.
The embodiment can realize that only the communication of the switch with the same switch name in the low-priority network and the BF message is interrupted, and the communication of other equipment in the network is not interrupted, thereby ensuring the serviceability of the whole network to the maximum extent.
Fig. 11 is a schematic structural diagram of another embodiment of the message sending apparatus of the present invention, where the message sending apparatus in this embodiment may be disposed in an exchange to implement the flow of the embodiment shown in fig. 2 of the present invention, and as shown in fig. 11, the message sending apparatus may include: a receiving module 1101, a determining module 1102, a setting module 1103 and a sending module 1104;
the receiving module 1101 is configured to receive an EFP packet, where the EFP packet is sent to a switch in a Fabric to which the switch belongs, and after a port of the switch, which is connected to the switch in the Fabric, is configured as an E-mode port, the switch in the Fabric is sent to the switch;
a determining module 1102, configured to determine, when a Domain _ ID list carried in the EFP message received by the receiving module 1101 and a Domain _ ID list of a storage switched network (Fabric) to which the switch belongs, which is stored in the switch, have the same Domain _ ID, a priority of the switch corresponding to the same Domain _ ID;
a setting module 1103, configured to carry, in the BF packet, the switch name of the switch with the lower priority, among the switches corresponding to the same Domain _ ID and determined by the determining module 1102;
a sending module 1104, configured to send the BF packet set by the setting module 1103 through a port other than the E-mode port in the switch.
In this embodiment, the setting module 1103 is specifically configured to, when the determining module 1102 determines that the priorities of the switches corresponding to the same Domain _ ID are the same, carry, in the BF message, the switch name of the switch with the higher value of the switch name in the switch corresponding to the same Domain _ ID.
In the above embodiment, if the Domain _ ID list carried in the EFP message received by the switch and the Domain _ ID list of the Fabric to which the switch belongs, which are stored in the switch, have the same Domain _ ID, the determining module 1102 determines the priority of the switch corresponding to the same Domain _ ID, the setting module 1103 carries the Domain _ ID and the switch name of the switch with lower priority in the switches corresponding to the same Domain _ ID in the BF message, and the sending module 1104 sends the BF message through the ports of the switch except the E-mode port. Therefore, if the switch name of the switch receiving the BF message is different from the switch name carried in the BF message, the switch receiving the BF message can keep the local Domain _ ID, so that the communication of the switch is not interrupted, only the switch with the same switch name as the switch name carried in the BF message can delete the local Domain _ ID, the communication interruption of the switch with the same switch name as the switch name carried in the BF message in a low-priority network can be realized, the communication of other switches in the network is not interrupted, and the serviceability of the whole network can be furthest ensured.
Fig. 12 is a schematic structural diagram of a further embodiment of a message sending apparatus according to the present invention, and compared with the message sending apparatus shown in fig. 11, the difference is that in an implementation manner of this embodiment, the message sending apparatus shown in fig. 12 may further include: a retention module 1105, a first deletion module 1106, a first election module 1107, and a first application module 1108;
the reserving module 1105 is configured to reserve the Domain _ ID of the switch when the determining module 1102 determines that the switch name of the switch is different from the switch name carried in the BF packet;
a first deleting module 1106, configured to delete the priority of the main switch, the name of the main switch, and the Domain _ ID lists of all switches in the Fabric to which the switch belongs, where the priority of the main switch, the name of the main switch, and the name of the main switch are stored in the BF message, when the determining module 1102 determines that the name of the switch is different from the name of the switch carried in the BF message;
a first election module 1107, configured to perform primary switch election with other switches except for the switch in the Fabric to which the switch belongs and the switches in the adjacent fabrics;
a first application module 1108 for applying to the elected master switch for continued use of the switch's Domain _ ID;
the receiving module 1101 is further configured to receive a response sent by the elected master switch to allow the switch to continue using the Domain _ ID of the switch.
In another implementation manner of this embodiment, the message sending apparatus may further include: a second deletion module 1109, a second election module 1110, and a second application module 1111;
a second deleting module 1109, configured to delete the Domain _ ID of the switch, the priority of the main switch stored in the switch, the name of the main switch, and the Domain _ ID lists of all switches in the Fabric to which the switch belongs when the determining module 1102 determines that the switch name of the switch is the same as the switch name carried in the BF packet;
a second election module 1110, configured to perform primary switch election with other switches except for the switch in the Fabric to which the switch belongs and the switch in the adjacent Fabric;
a second application module 1111, configured to apply for a new Domain _ ID from the elected master switch again.
The embodiment can realize that only the communication of the switch with the same switch name in the low-priority network and the BF message is interrupted, and the communication of other equipment in the network is not interrupted, thereby ensuring the serviceability of the whole network to the maximum extent.
An embodiment of the present invention further provides an exchange, where the exchange may include the message sending apparatus provided in the embodiment shown in fig. 9 or fig. 10 in the present invention.
An embodiment of the present invention further provides an exchange, where the exchange may include the message sending apparatus provided in the embodiment shown in fig. 11 or fig. 12 in the present invention.
An embodiment of the present invention further provides an exchange, where the exchange may include the message sending apparatus provided in the embodiment shown in fig. 9 or fig. 10 in the present invention, and may also include the message sending apparatus provided in the embodiment shown in fig. 11 or fig. 12 in the present invention.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (18)
1. A method for sending a message, comprising:
the method comprises the steps that a switch receives a non-interrupt reconfiguration message, wherein the non-interrupt reconfiguration message is sent by the switch which is connected with the switch in an adjacent storage switching network of a storage switching network to which the switch belongs in the storage switching network to which the switch belongs;
when the non-interrupted reconfiguration message carries a switch name and the switch name carried in the non-interrupted reconfiguration message is different from the switch name of the switch, the switch reserves the domain identifier of the switch; the name of the switch carried in the non-interrupted reconfiguration message is the name of the switch with lower priority in the storage switching network to which the switch belongs and the switches with the same domain identification in the adjacent storage switching network; the switch enters a non-interrupted reconfiguration state;
and the switch sends the non-interrupt reconfiguration message out through a port except the port for receiving the non-interrupt reconfiguration message in the switch.
2. The method according to claim 1, wherein after the switch sends the non-interrupt reconfiguration packet through a port of the switch other than the port on which the non-interrupt reconfiguration packet is received, the method further comprises:
the exchanger and other exchangers except the exchanger in the storage exchange network to which the exchanger belongs and exchangers in the adjacent storage exchange networks are subjected to main exchanger election;
and the switch applies for the domain identification of the switch to be continuously used to the elected main switch, and receives a response which is sent by the elected main switch and allows the switch to continuously use the domain identification of the switch.
3. The method of claim 1, wherein after the switch receives the non-disruptive reconfiguration message, the method further comprises:
when the non-interrupted reconfiguration message carries a switch name and the switch name carried in the non-interrupted reconfiguration message is different from the switch name of the switch, the switch deletes the priority of the main switch, the name of the main switch and the domain identifier lists of all switches in the storage switching network to which the switch belongs, wherein the priority of the main switch and the name of the main switch are stored in the switch; or,
when the non-interrupted reconfiguration message carries a switch name, and the switch name carried in the non-interrupted reconfiguration message is the same as the switch name of the switch, the switch deletes the domain identifier of the switch, the priority of the main switch stored by the switch, the name of the main switch and the domain identifier lists of all switches in the storage switching network to which the switch belongs, and sends the non-interrupted reconfiguration message out through ports of the switch except the port for receiving the non-interrupted reconfiguration message.
4. The method according to claim 3, wherein when the non-interrupted reconfiguration packet carries a switch name, and the switch name carried in the non-interrupted reconfiguration packet is the same as the switch name of the switch, after sending the non-interrupted reconfiguration packet through a port of the switch other than the port that receives the non-interrupted reconfiguration packet, the method further comprises:
the exchanger and other exchangers except the exchanger in the storage exchange network to which the exchanger belongs and exchangers in the adjacent storage exchange networks are subjected to main exchanger election;
and the switch reappears a new domain identifier to the elected main switch.
5. A method for sending a message, comprising:
the method comprises the steps that a switch receives an exchange storage switching network switch parameter EFP message, wherein the EFP message is sent to the switch after the switch is connected with a switch in an adjacent storage switching network of a storage switching network to which the switch belongs and a port of the switch connected with the switch in the adjacent storage switching network is configured to be an E-mode port;
if the domain identifier list carried by the EFP message and the domain identifier list of the storage switching network to which the switch belongs, which is stored by the switch, have the same domain identifier, the switch determines the priority of the switch corresponding to the same domain identifier, and carries the switch name of the switch with lower priority in the switches corresponding to the same domain identifier in the non-interrupt reconfiguration message;
and the switch sends the non-interrupt reconfiguration message out through a port except the E-mode port in the switch.
6. The method according to claim 5, wherein said carrying the switch name of the switch with lower priority among the switches corresponding to the same domain identifier in the non-interrupt reconfiguration packet comprises:
and if the switch determines that the priority of the switches corresponding to the same domain identifier is the same, the switch carries the switch name of the switch with the higher value of the switch name in the switch corresponding to the same domain identifier in a non-interrupted reconfiguration message.
7. The method according to claim 5 or 6, wherein after the switch sends the non-interrupt reconfiguration packet through a port other than the E-mode port in the switch, the method further comprises:
if the switch determines that the switch name of the switch is different from the switch name carried in the non-interrupted reconfiguration message, the switch reserves the domain identifier of the switch, and deletes the priority of the main switch, the name of the main switch and the domain identifier lists of all switches in the storage switching network to which the switch belongs, which are stored by the switch;
the exchanger and other exchangers except the exchanger in the storage exchange network to which the exchanger belongs and exchangers in the adjacent storage exchange networks are subjected to main exchanger election;
and the switch applies for the domain identification of the switch to be continuously used to the elected main switch, and receives a response which is sent by the elected main switch and allows the switch to continuously use the domain identification of the switch.
8. The method according to claim 5 or 6, wherein after the switch sends the non-interrupt reconfiguration packet through a port other than the E-mode port in the switch, the method further comprises:
if the switch determines that the switch name of the switch is the same as the switch name carried in the non-interrupted reconfiguration message, the switch deletes the domain identifier of the switch, the priority of the main switch stored by the switch, the name of the main switch and the domain identifier lists of all switches in the storage switching network to which the switch belongs;
the exchanger and other exchangers except the exchanger in the storage exchange network to which the exchanger belongs and exchangers in the adjacent storage exchange networks are subjected to main exchanger election;
and the switch reappears a new domain identifier to the elected main switch.
9. A message transmission apparatus, wherein the message transmission apparatus is provided in an exchange, the message transmission apparatus comprising:
a receiving module, configured to receive an uninterrupted reconfiguration message, where the uninterrupted reconfiguration message is sent by a switch connected to a switch in an adjacent storage switch network of a storage switch network to which the switch belongs, in the storage switch network to which the switch belongs;
a reserving module, configured to reserve a domain identifier of the switch when the non-interrupted reconfiguration message received by the receiving module carries a switch name, and the switch name carried in the non-interrupted reconfiguration message is different from the switch name of the switch; the name of the switch carried in the non-interrupted reconfiguration message is the name of the switch with lower priority in the storage switching network to which the switch belongs and the switches with the same domain identification in the adjacent storage switching network; the switch enters a non-interrupted reconfiguration state;
and the sending module is used for sending the non-interrupted reconfiguration message received by the receiving module out through a port except the port for receiving the non-interrupted reconfiguration message in the switch.
10. The apparatus of claim 9, further comprising: the system comprises a first election module and a first application module;
the first election module is configured to, when the non-interrupted reconfiguration message received by the receiving module carries a switch name, and the switch name carried in the non-interrupted reconfiguration message is different from the switch name of the switch, perform, after the sending module sends the non-interrupted reconfiguration message received by the receiving module, primary switch election with other switches except for the switch in the storage switching network to which the switch belongs and switches in the adjacent storage switching network;
the first application module is used for applying for the selected main switch to continue using the domain identifier of the switch;
the receiving module is further configured to receive a response sent by the elected master switch to allow the switch to continue using the domain identifier of the switch.
11. The apparatus of claim 9, further comprising:
a deleting module, configured to delete the priority of the master switch, the name of the master switch, and the domain identifier lists of all switches in the storage switching network to which the switch belongs, where the priority of the master switch, the name of the master switch, and the name of the switch are stored in a non-interrupted reconfiguration message received by the receiving module, and the name of the switch carried in the non-interrupted reconfiguration message is different from the name of the switch; or, when the non-interrupted reconfiguration message received by the receiving module carries a switch name, and the switch name carried in the non-interrupted reconfiguration message is the same as the switch name of the switch, deleting the domain identifier of the switch, the priority of the main switch stored by the switch, the name of the main switch, and the domain identifier lists of all switches in the storage switching network to which the switch belongs.
12. The apparatus of claim 11, further comprising: a second election module and a second application module;
the second election module is configured to, when the non-interrupted reconfiguration message received by the receiving module carries a switch name, and the switch name carried in the non-interrupted reconfiguration message is the same as the switch name of the switch, perform, after the sending module sends the non-interrupted reconfiguration message received by the receiving module, election of a main switch with other switches except for the switch in the storage switched network to which the switch belongs and switches in the adjacent storage switched network;
and the second application module is used for reapplying the new domain identifier to the elected main switch.
13. A message transmission apparatus, wherein the message transmission apparatus is provided in an exchange, the message transmission apparatus comprising:
the system comprises a receiving module, a switching storage switching network switch parameter EFP message and a sending module, wherein the EFP message is sent to a switch in an adjacent storage switching network of a storage switching network to which the switch belongs, and after a port of the switch connected with the switch in the adjacent storage switching network is configured to be an E-mode port, the switch in the adjacent storage switching network is sent to the switch;
a determining module, configured to determine, when a domain identifier list carried in the EFP packet received by the receiving module and a domain identifier list of a storage switching network to which the switch belongs, which is stored by the switch, have a same domain identifier, a priority of the switch corresponding to the same domain identifier;
a setting module, configured to carry, in a non-interrupted reconfiguration message, a switch name of a switch with a lower priority, from the switches corresponding to the same domain identifier determined by the determining module;
and the sending module is used for sending the non-interrupted reconfiguration message set by the setting module out through a port except the E-mode port in the switch.
14. The apparatus of claim 13,
the setting module is specifically configured to, when the determining module determines that the priorities of the switches corresponding to the same domain identifier are the same, carry, in the non-interrupted reconfiguration message, the switch name of the switch with the higher value of the switch name in the switches corresponding to the same domain identifier.
15. The apparatus of claim 13 or 14, further comprising: the system comprises a reservation module, a first deletion module, a first election module and a first application module;
the reserving module is configured to reserve the domain identifier of the switch when the determining module determines that the switch name of the switch is different from the switch name carried in the non-interrupted reconfiguration message;
the first deleting module is configured to delete the priority of the master switch, the name of the master switch, and the domain identifier lists of all switches in the storage switching network to which the switch belongs, which are stored in the switch, when the determining module determines that the name of the switch is different from the name of the switch carried in the non-interrupted reconfiguration message;
the first election module is used for carrying out main switch election on other switches except the switch in the storage switching network to which the switch belongs and the switches in the adjacent storage switching networks;
the first application module is used for applying for the selected main switch to continue using the domain identifier of the switch;
the receiving module is further configured to receive a response sent by the elected master switch to allow the switch to continue using the domain identifier of the switch.
16. The apparatus of claim 13 or 14, further comprising: the system comprises a second deleting module, a second election module and a second application module;
the second deleting module is configured to delete the domain identifier of the switch, the priority of the master switch stored in the switch, the name of the master switch, and the domain identifier lists of all switches in the storage switching network to which the switch belongs when the determining module determines that the switch name of the switch is the same as the switch name carried in the non-interrupted reconfiguration message;
the second election module is used for carrying out main switch election with other switches except the switch in the storage switching network to which the switch belongs and the switches in the adjacent storage switching networks;
and the second application module is used for reapplying the new domain identifier to the elected main switch.
17. A switch, characterized in that it comprises a message sending device according to any of claims 9-12.
18. A switch, characterized in that it comprises a message sending device according to any of claims 13-16.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310003560.8A CN103051568B (en) | 2013-01-06 | 2013-01-06 | File transmitting method, device and switch |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310003560.8A CN103051568B (en) | 2013-01-06 | 2013-01-06 | File transmitting method, device and switch |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103051568A CN103051568A (en) | 2013-04-17 |
CN103051568B true CN103051568B (en) | 2016-03-30 |
Family
ID=48064073
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310003560.8A Active CN103051568B (en) | 2013-01-06 | 2013-01-06 | File transmitting method, device and switch |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103051568B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103368855B (en) * | 2013-07-26 | 2016-08-10 | 杭州华三通信技术有限公司 | The region merging method of fiber channel network architecture network and edge device |
CN106341188B (en) * | 2016-10-28 | 2020-06-05 | 新华三技术有限公司 | Fabric network merging method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1653847A (en) * | 2002-05-24 | 2005-08-10 | 思科技术公司 | Apparatus and method for preventing disruption of fibre channel fabrics caused by reconfigure fabric (rcf) messages |
CN102088642A (en) * | 2009-12-02 | 2011-06-08 | 杭州华三通信技术有限公司 | Fiber channel fabrics combining method, system and switches |
CN102195710A (en) * | 2010-03-16 | 2011-09-21 | 杭州华三通信技术有限公司 | Method and system for reelecting principle switch |
-
2013
- 2013-01-06 CN CN201310003560.8A patent/CN103051568B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1653847A (en) * | 2002-05-24 | 2005-08-10 | 思科技术公司 | Apparatus and method for preventing disruption of fibre channel fabrics caused by reconfigure fabric (rcf) messages |
CN102088642A (en) * | 2009-12-02 | 2011-06-08 | 杭州华三通信技术有限公司 | Fiber channel fabrics combining method, system and switches |
CN102195710A (en) * | 2010-03-16 | 2011-09-21 | 杭州华三通信技术有限公司 | Method and system for reelecting principle switch |
Also Published As
Publication number | Publication date |
---|---|
CN103051568A (en) | 2013-04-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109428840B (en) | Communication method, device and storage medium | |
EP3384640B1 (en) | Communication among network controllers | |
US20200059412A1 (en) | SDN Network System, Controller, and Controlling Method | |
US8068483B2 (en) | Method for migration between a permanent connection and a switched connection in a transmission network | |
CN106487558B (en) | A kind of method and apparatus for realizing the scalable appearance of access device | |
RU2730086C1 (en) | Switching method with combination of reservation group, control device and optical communication device | |
CN107735989B (en) | Method and system for site interconnection on a transport network | |
EP2326046B1 (en) | Method for realizing permanent ring network protection in mesh network | |
CN114024969A (en) | Load balancing method, device and system | |
CN101888573B (en) | Method and system for automatically discovering resource state between adjacent nodes | |
CN103051568B (en) | File transmitting method, device and switch | |
JP4547314B2 (en) | Failure recovery method, management node and communication node | |
CN112911420A (en) | Rerouting method based on Flexe network, electronic device and readable storage medium | |
CA2417680A1 (en) | Two-stage reconnect system and method | |
CN101834710B (en) | Method and system for controlling protection switching in plane protection group of automatic switch optical network (ASON) | |
JP3844215B2 (en) | Network configuration management system, node device, network configuration management method, node device control method, and node device control program | |
US8830871B2 (en) | Persistent principal switch for fibre channel fabric | |
CN108011815B (en) | Network control method and software defined network device and system | |
CN117768382B (en) | Backup link switching method, device, medium and equipment for realizing redundant DRP (data packet processing) ring | |
CN105553864B (en) | Method and device for reducing message quantity in LMP | |
EP4109821A1 (en) | Restoration path configuration method and apparatus | |
CN118785205A (en) | Communication method, related device, equipment and computer readable storage medium | |
JP2013198037A (en) | Communication system | |
JP2018046371A (en) | Ring network system, ring network change method, and ring node device | |
JP2018037792A (en) | Ring network system, ring network changing method, and ring node device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: Cangshan District of Fuzhou City, Fujian province 350002 Jinshan Road No. 618 Garden State Industrial Park 19 floor Patentee after: RUIJIE NETWORKS Co.,Ltd. Address before: Cangshan District of Fuzhou City, Fujian province 350002 Jinshan Road No. 618 Garden State Industrial Park 19 floor Patentee before: Beijing Star-Net Ruijie Networks Co.,Ltd. |
|
CP01 | Change in the name or title of a patent holder |