A RoCE-SAN-based information synchronization method and device and medium

By identifying the primary and backup ports of the Leaf switch in the RoCE-SAN network and selecting the appropriate port for information synchronization based on the connection status, the problem of duplicate messages in the RoCE-SAN network is solved, achieving efficient storage access services and network convergence.

CN116614458BActive Publication Date: 2026-01-27INSPUR NETWORK TECH (SHANDONG) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310606477.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-25
Publication Date
2026-01-27
Estimated Expiration
2043-05-25

AI Technical Summary

Technical Problem

Existing FC-SAN and IP-SAN networks suffer from high prices, foreign supplier monopolies, and maintenance difficulties. RoCE-SAN networks have the potential to replace them in terms of high performance and plug-and-play functionality, but the existing information synchronization methods cause devices to receive duplicate messages, increasing the burden of protocol message processing.

Method used

In the RoCE-SAN network, determine the primary and backup ports of the Leaf switches, and select the primary or backup port for information synchronization based on the connection status to avoid duplicate message transmission. The host message is synchronized to other Leaf switches through the Spine switch.

Benefits of technology

This reduces the number of duplicate messages received by devices, lowers the burden of protocol message processing, alleviates host synchronization message redundancy, and achieves efficient integration of storage access services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116614458B_ABST
    Figure CN116614458B_ABST
Patent Text Reader

Abstract

The application discloses a RoCE-SAN-based information synchronization method and device and a medium. The method comprises the following steps: determining a Leaf switch in a pre-set RoCE-SAN network, and determining a first Spine switch and a second Spine switch connected with the Leaf switch; determining a master port and a backup port of the Leaf switch according to the first Spine switch and the second Spine switch; determining the connection state of other Leaf switches, and selecting the master port and / or the backup port for information synchronization according to the connection state. The application synchronizes the message by selecting the optimal path, avoids a large amount of message redundancy, reduces the burden of network equipment, and improves the communication efficiency and performance of the entire RoCE-SAN storage network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to an information synchronization method, device and medium based on RoCE-SAN. Background Technology

[0002] FC-SAN and IP-SAN networks provide storage access services for various business systems, but these services each have their own drawbacks and bottlenecks, such as high prices, foreign vendor monopolies, and difficult operation and maintenance. RoCE-SAN is a high-performance storage area network standard based on the RoCE protocol released by domestic operators. It has advantages such as zero packet loss, low latency, high throughput, plug-and-play, and fast fault convergence. It can combine the advantages of FC-SAN and IP-SAN and realize the integration of FC-SAN and IP-SAN. RoCE-SAN is superior to FC-SAN and IP-SAN in terms of functionality, IOPS performance, and fault convergence performance, and is feasible to replace FC-SAN and IP-SAN. Summary of the Invention

[0003] To address the aforementioned issues, this application proposes a RoCE-SAN-based information synchronization method, comprising: identifying Leaf switches in a pre-defined RoCE-SAN network, and identifying a first Spine switch and a second Spine switch connected to the Leaf switches; determining the primary port and backup port of the Leaf switches based on the first Spine switch and the second Spine switch; determining the connection status of other Leaf switches, and selecting the primary port and / or the backup port for information synchronization based on the connection status.

[0004] In one example, a pre-configured RoCE-SAN network includes multiple Leaf switches, each connected to a first Spine switch and a second Spine switch. These multiple Leaf switches include, but are not limited to, a first Leaf switch, a second Leaf switch, and a third Leaf switch. Determining the connection status of the other Leaf switches specifically involves: detecting the connection status of the second Leaf switch and the third Leaf switch to obtain second connection topology information corresponding to the second Leaf switch and third connection topology information corresponding to the third Leaf switch. The connection status includes the primary port connection status connected to the first Spine switch and the backup port connection status connected to the second Spine switch. The second and third connection topology information are then sent to the first Leaf switch to determine the connection status of the second and third Leaf switches.

[0005] In one example, determining the connection status of other Leaf switches and selecting the primary port and / or the backup port for information synchronization based on the connection status specifically includes: judging the connection status of the second Leaf switch and the third Leaf switch; if the connection status of the second Leaf switch and the third Leaf switch are both intact, then information synchronization is performed with the second Leaf switch and the third Leaf switch through the primary port of the first Leaf switch.

[0006] In one example, determining the connection status of other Leaf switches and selecting the primary port and / or the backup port for information synchronization based on the connection status further includes: judging the connection status of the second Leaf switch and the third Leaf switch; if the primary port of the second Leaf switch is disconnected, and / or the primary port of the third Leaf switch is disconnected, then information synchronization is performed with the second Leaf switch and the third Leaf switch through the backup port of the first Leaf switch.

[0007] In one example, determining the connection status of other Leaf switches and selecting the primary port and / or the backup port for information synchronization based on the connection status further includes: judging the connection status of the second Leaf switch and the third Leaf switch; if the primary port of the second Leaf switch is disconnected and the backup port of the third Leaf switch is disconnected, then information synchronization is performed between the first Leaf switch and the second Leaf switch through the backup port, and between the first Leaf switch and the third Leaf switch through the primary port; if the backup port of the second Leaf switch is disconnected and the primary port of the third Leaf switch is disconnected, then information synchronization is performed between the first Leaf switch and the second Leaf switch through the primary port, and between the first Leaf switch and the third Leaf switch through the backup port.

[0008] In one example, information synchronization specifically includes: identifying multiple host devices connected to the Leaf switch and receiving host messages sent by the host devices; sending the host messages to the first Spine switch and / or the second Spine switch via the Leaf switch; and sending the host messages to the other Leaf switches via the first Spine switch and / or the second Spine switch.

[0009] In one example, determining the primary and backup ports of the Leaf switch based on the first Spine switch and the second Spine switch specifically includes: receiving a first connection packet sent by the first Spine switch and a second connection packet sent by the second Spine switch through the Leaf switch; comparing the first connection packet and the second connection packet according to a pre-set election rule to obtain the primary and backup ports of the Leaf switch.

[0010] In one example, the first connection packet and the second connection packet are compared according to a pre-set election rule. Specifically, this includes: determining the first MAC address of the first Spine switch based on the first connection packet, and determining the second MAC address of the second Spine switch based on the second connection packet; comparing the first MAC address and the second MAC address, and electing the switch port with the smaller MAC address as the master port.

[0011] On the other hand, this application also proposes a RoCE-SAN-based information synchronization device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the RoCE-SAN-based information synchronization device to perform: determining Leaf switches in a pre-defined RoCE-SAN network, and determining a first Spine switch and a second Spine switch connected to the Leaf switches; determining the primary port and backup port of the Leaf switches based on the first Spine switch and the second Spine switch; determining the connection status of other Leaf switches, and selecting the primary port and / or the backup port for information synchronization based on the connection status.

[0012] On the other hand, this application also proposes a non-volatile computer storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to: determine a Leaf switch in a pre-defined RoCE-SAN network, and determine a first Spine switch and a second Spine switch connected to the Leaf switch; determine the primary port and backup port of the Leaf switch based on the first Spine switch and the second Spine switch; determine the connection status of other Leaf switches, and select the primary port and / or the backup port for information synchronization based on the connection status.

[0013] This application avoids devices receiving duplicate messages while synchronizing information, reduces the burden of protocol message processing, alleviates the phenomenon of redundancy in a large number of host synchronization messages, provides storage access services for various systems, applies intelligent lossless networks to storage systems, and realizes the technology of convergence of computing and storage networks. Attached Figure Description

[0014] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments of this application and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0015] Figure 1 This is a schematic diagram of data forwarding in the RoCE-SAN network in an embodiment of this application;

[0016] Figure 2 This is a flowchart illustrating an information synchronization method based on RoCE-SAN in an embodiment of this application.

[0017] Figure 3 This is a schematic diagram of data forwarding under normal network conditions in the embodiments of this application;

[0018] Figure 4 This is a schematic diagram of data forwarding under a single network failure scenario in the embodiments of this application;

[0019] Figure 5 This is a schematic diagram illustrating data forwarding under multiple network failure scenarios in the embodiments of this application;

[0020] Figure 6 This is a schematic diagram of an information synchronization device based on RoCE-SAN in an embodiment of this application. Detailed Implementation

[0021] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0022] The technical solutions provided by the various embodiments of this application are described in detail below with reference to the accompanying drawings.

[0023] Currently, the entire RoCE-SAN storage access network is built using the TCP protocol. For example... Figure 1 As shown, the hosts are the physical hosts and storage devices. Two Spine core switches act as TCP servers, and all other Leaf switches act as TCP clients. Each Leaf switch needs to establish a TCP connection and exchange protocol messages with a Spine switch. The entire RoCE-SAN storage network is reachable via Layer 3 routing. Leaf switches do not need to establish TCP connections with each other; they only need to connect directly to the host devices via LLDP. Spine switches also do not need to establish TCP connections with each other; they serve as backups for each other. The protocol communication messages are TCP-encapsulated messages, containing key device information within the TCP message's Data field. All switches exchange TCP protocol messages to achieve automatic network topology discovery and host information synchronization, including service domain configuration synchronization and host online information synchronization. Leaf1 sends local host1 and host2 device information to Spine1 and Spine2 through two uplink ports. Spine1 and Spine2 then automatically synchronize this information to all other Leaf switches, thus enabling all Leaf switches to automatically perceive the network's host information.

[0024] When each Leaf sends host synchronization information to the Spine, it sends the information simultaneously from two uplink ports to two Spines, ensuring that all other Leaf devices receive the synchronization message. Only if the link between a Leaf device and both Spines is lost will the host synchronization information sent by other Leaves be lost. This method results in each Leaf receiving two identical synchronization messages, increasing the burden on protocol message processing. This defect becomes more pronounced, especially when there is a large amount of redundant host synchronization messages.

[0025] like Figure 2 As shown, in order to solve the above problems, this application provides an information synchronization method based on RoCE-SAN, the method including:

[0026] S101. In the pre-configured RoCE-SAN network, determine the Leaf switch and the first Spine switch and second Spine switch connected to the Leaf switch.

[0027] Initially, each Leaf switch needs to establish TCP connections with two Spine switches. For example... Figure 3 As shown, for example, Leaf1 is connected to Spine1 (referred to as the first Spine switch) and Spine2 (referred to as the second Spine switch) respectively, Leaf2 is connected to Spine1 and Spine2 respectively, and Leaf3 is connected to Spine1 and Spine2 respectively.

[0028] S102. Determine the primary port and backup port of the Leaf switch based on the first Spine switch and the second Spine switch.

[0029] All Leaf switches elect the port connected to Spine1 as the primary port and the port connected to Spine2 as the backup port. In the RoCE-SAN network, each Leaf switch supports automatic topology discovery, meaning each Leaf switch can automatically detect whether the primary and backup ports of other Leaf switches have successfully established TCP connections with the two Spine switches.

[0030] In one embodiment, after each Leaf switch detects a change in its TCP connection with the two Spine switches, it synchronously announces the latest connection topology information to all other Leaf switches. This allows each Leaf switch to understand the connection topology information between all other Leaf switches and the two Spine switches in real time. For example, Leaf1 (referred to as the first Leaf switch) obtains the connection status of Leaf2 (referred to as the second Leaf switch) and Leaf3 (referred to as the third Leaf switch). Leaf2 sends its own connection topology information (referred to as the second connection topology information) to Leaf1, and Leaf3 sends its own connection topology information (referred to as the third connection topology information) to Leaf1. This determines the connection status of the primary port connecting Leaf2 to Spine1 and the backup port connecting Leaf2 to Spine2, as well as the connection status of the primary port connecting Leaf3 to Spine1 and the backup port connecting Leaf3 to Spine2. This information is then used to determine the connection status of other Leaf switches.

[0031] In one embodiment, each Leaf's two uplink ports will receive TCP connection packets sent by Spine1 and Spine2. The two ports will compare the source MAC addresses of the received TCP connection packets. The port with the smaller MAC address will be elected as the primary port, and the port with the larger MAC address will be elected as the backup port.

[0032] S103. Determine the connection status of other Leaf switches, and select the primary port and / or the backup port for information synchronization based on the connection status.

[0033] A Leaf switch connects to multiple host devices. The Leaf switch receives host messages from the host devices and, depending on the connection status of other Leaf switches, forwards the host message to one or two Spine switches. The Spine switches then synchronously forward the host message to the other Leaf switches.

[0034] In one embodiment, the connection status of the second Leaf switch and the third Leaf switch is determined. If the connection status of both the second and third Leaf switches is not broken, information synchronization is performed with the second and third Leaf switches through the master port of the first Leaf switch. For example, if the RoCE-SAN network topology discovery function shows that all network topology links are normal, that is, each Leaf switch has successfully established a TCP connection with both Spine switches, then each Leaf switch selects the master port to send a host synchronization message. Figure 3 As shown, Leaf1 sends a host message to Spine1 through the master port, and Spine1 then distributes the message to all other Leaf switches. Spine2 does not participate in message forwarding, thus ensuring that Leaf2 and Leaf3 do not receive duplicate synchronization messages.

[0035] In one embodiment, the connection status of the second Leaf switch and the third Leaf switch is determined. If the main port connection status of the second Leaf switch is disconnected, and / or the main port connection status of the third Leaf switch is disconnected, then information synchronization is performed with the second and third Leaf switches through the backup port of the first Leaf switch. For example, if the topology discovery function of Leaf1 shows a link failure between Leaf2 and Spine1 in the network, that is, there is a Leaf main port failure in the network, such as... Figure 4As shown, Leaf1 sends a host message to Spine2 through its backup port. Spine2 then distributes this message to all other Leaf switches. Spine1 does not participate in message forwarding, ensuring that Leaf2 and Leaf3 do not receive duplicate synchronization messages. Similarly, if Leaf1's topology discovery function indicates a link failure between Leaf2 and Spine2 in the network, meaning there is a Leaf backup port failure, Leaf1 sends a host message to Spine1 through its primary port. In the above process, because Leaf2's primary port is faulty, it can only choose the backup port to send the host synchronization message. Under the same circumstances, Leaf3's message sending process is the same as Leaf2's.

[0036] If Leaf1's topology discovery function shows a link failure between Leaf2 and Spine1 in the network, and the link failure between Leaf3 and Spine1 is also present, meaning that the faulty ports of multiple faulty Leaves in the network have the same role and are all primary port failures, then Leaf1's data transmission process is the same as described above. That is, Leaf1 sends a host message to Spine2 through the backup port, and Spine2 then distributes the message to the other Leaf2 and Leaf3.

[0037] If Leaf1's topology discovery function shows that the faulty ports of Leaf2 and Leaf3 in the network are both backup port faults, then Leaf1 sends a host message to Spine1 through the master port. Spine1 then distributes the message to other Leaf2 and Leaf3 switches to prevent other Leaf switches from receiving double synchronization messages.

[0038] In one embodiment, the connection status of the second Leaf switch and the third Leaf switch are determined. If the primary port of the second Leaf switch is disconnected and the backup port of the third Leaf switch is disconnected, then information synchronization is performed between the first Leaf switch and the second Leaf switch via the backup port, and also between the first Leaf switch and the third Leaf switch via the primary port. If the backup port of the second Leaf switch is disconnected and the primary port of the third Leaf switch is disconnected, then information synchronization is performed between the first Leaf switch and the second Leaf switch via the primary port, and also between the first Leaf switch and the third Leaf switch via the backup port. For example, if the topology discovery function of Leaf1 shows a link failure between Leaf2 and Spine1 in the network, and the link failure between Leaf3 and Spine2 is also present, meaning that the faulty ports of multiple faulty Leaf switches in the network have different roles, such as... Figure 5As shown, Leaf1 simultaneously sends host messages to Spine1 and Spine2 through both the primary and backup ports. Spine1 and Spine2 then distribute these messages to Leaf2 and Leaf3, ensuring that the normal links of Leaf2 and Leaf3 can receive the synchronization message. Similarly, if Leaf1's topology discovery function indicates a link failure between Leaf2 and Spine2, and also a link failure between Leaf3 and Spine1, then Leaf1's synchronization message sending process follows the same procedure as described above, i.e., simultaneously sending host messages through both the primary and backup ports.

[0039] In one embodiment, all Leaf switches in the RoCE-SAN network are equal and share information, and the synchronization message sending process of other Leaf switches is the same as the Leaf1 sending process described above.

[0040] like Figure 6 As shown in the illustration, this application also provides an information synchronization device based on RoCE-SAN, comprising:

[0041] At least one processor; and,

[0042] A memory communicatively connected to the at least one processor; wherein,

[0043] The memory stores instructions executable by the at least one processor, which, when executed by the at least one processor, enable the RoCE-SAN-based information synchronization device to perform the following:

[0044] In the pre-defined RoCE-SAN network, identify the Leaf switch and determine the first Spine switch and the second Spine switch connected to the Leaf switch;

[0045] The primary and backup ports of the Leaf switch are determined based on the first Spine switch and the second Spine switch.

[0046] Determine the connection status of other Leaf switches, and select the primary port and / or the backup port for information synchronization based on the connection status.

[0047] This application embodiment also provides a non-volatile computer storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured as follows:

[0048] In the pre-defined RoCE-SAN network, identify the Leaf switch and determine the first Spine switch and the second Spine switch connected to the Leaf switch;

[0049] The primary and backup ports of the Leaf switch are determined based on the first Spine switch and the second Spine switch.

[0050] Determine the connection status of other Leaf switches, and select the primary port and / or the backup port for information synchronization based on the connection status.

[0051] The various embodiments in this application are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the device and medium embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the description of the method embodiments.

[0052] The devices and media provided in this application are one-to-one with the methods. Therefore, the devices and media also have similar beneficial technical effects as their corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.

[0053] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0054] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0055] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0056] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0057] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0058] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0059] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0060] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0061] The above description is merely an embodiment of this application and is not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.

Claims

1. A RoCE-SAN-based information synchronization method, characterized in that, include: In the pre-defined RoCE-SAN network, identify the Leaf switch and determine the first Spine switch and the second Spine switch connected to the Leaf switch; The primary and backup ports of the Leaf switch are determined based on the first Spine switch and the second Spine switch. Determine the connection status of other Leaf switches, and select the primary port and / or the backup port for information synchronization based on the connection status; In a pre-configured RoCE-SAN network, multiple Leaf switches are set up. Each Leaf switch is connected to the first Spine switch and the second Spine switch. The multiple Leaf switches include, but are not limited to, the first Leaf switch, the second Leaf switch, and the third Leaf switch. Determine the connection status of other Leaf switches, specifically including: The connection status of the second Leaf switch and the connection status of the third Leaf switch are detected to obtain the second connection topology information corresponding to the second Leaf switch and the third connection topology information corresponding to the third Leaf switch. The connection status includes the connection status of the primary port connected to the first Spine switch and the connection status of the backup port connected to the second Spine switch. The second connection topology information and the third connection topology information are sent to the first Leaf switch to determine the connection status of the second Leaf switch and the third Leaf switch.

2. The method according to claim 1, characterized in that, Determine the connection status of other Leaf switches, and select the primary port and / or the backup port for information synchronization based on the connection status, specifically including: Determine the connection status of the second Leaf switch and the connection status of the third Leaf switch; If the connection status of the second Leaf switch and the third Leaf switch are both intact, then information synchronization is performed with the second Leaf switch and the third Leaf switch through the main port of the first Leaf switch.

3. The method according to claim 1, characterized in that, Determine the connection status of other Leaf switches, and select the primary port and / or the backup port for information synchronization based on the connection status. Specifically, this also includes: Determine the connection status of the second Leaf switch and the connection status of the third Leaf switch; If the main port connection status of the second Leaf switch is disconnected, and / or the main port connection status of the third Leaf switch is disconnected, then information synchronization is performed with the second Leaf switch and the third Leaf switch through the backup port of the first Leaf switch.

4. The method according to claim 1, characterized in that, Determine the connection status of other Leaf switches, and select the primary port and / or the backup port for information synchronization based on the connection status. Specifically, this also includes: Determine the connection status of the second Leaf switch and the connection status of the third Leaf switch; If the main port of the second Leaf switch is disconnected and the backup port of the third Leaf switch is disconnected, then information synchronization is performed between the backup port of the first Leaf switch and the second Leaf switch, and information synchronization is performed between the main port of the first Leaf switch and the third Leaf switch. If the backup port of the second Leaf switch is disconnected and the main port of the third Leaf switch is disconnected, then information synchronization is performed between the first Leaf switch and the second Leaf switch through the main port of the first Leaf switch, and between the first Leaf switch and the third Leaf switch through the backup port of the first Leaf switch.

5. The method according to claim 1, characterized in that, Information synchronization specifically includes: Identify multiple host devices connected to the Leaf switch and receive host messages sent by the host devices; The host message is sent to the first Spine switch and / or the second Spine switch via the Leaf switch; The host message is sent to the other Leaf switches via the first Spine switch and / or the second Spine switch.

6. The method according to claim 1, characterized in that, The primary and backup ports of the Leaf switch are determined based on the first Spine switch and the second Spine switch, specifically including: The Leaf switch receives a first connection message sent by the first Spine switch and a second connection message sent by the second Spine switch. The first connection message and the second connection message are compared according to the pre-set election rules to obtain the primary port and backup port of the Leaf switch.

7. The method according to claim 6, characterized in that, The first connection message and the second connection message are compared according to a pre-set election rule, specifically including: The first MAC address of the first Spine switch is determined based on the first connection message, and the second MAC address of the second Spine switch is determined based on the second connection message. The first MAC address and the second MAC address are compared, and the switch port with the smaller MAC address is elected as the master port.

8. An information synchronization device based on RoCE-SAN, characterized in that, include: At least one processor; as well as, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, which, when executed by the at least one processor, enable the RoCE-SAN-based information synchronization device to perform the following: In the pre-defined RoCE-SAN network, identify the Leaf switch and determine the first Spine switch and the second Spine switch connected to the Leaf switch; The primary and backup ports of the Leaf switch are determined based on the first Spine switch and the second Spine switch. Determine the connection status of other Leaf switches, and select the primary port and / or the backup port for information synchronization based on the connection status; In a pre-configured RoCE-SAN network, multiple Leaf switches are set up. Each Leaf switch is connected to the first Spine switch and the second Spine switch. The multiple Leaf switches include, but are not limited to, the first Leaf switch, the second Leaf switch, and the third Leaf switch. Determine the connection status of other Leaf switches, specifically including: The connection status of the second Leaf switch and the connection status of the third Leaf switch are detected to obtain the second connection topology information corresponding to the second Leaf switch and the third connection topology information corresponding to the third Leaf switch. The connection status includes the connection status of the primary port connected to the first Spine switch and the connection status of the backup port connected to the second Spine switch. The second connection topology information and the third connection topology information are sent to the first Leaf switch to determine the connection status of the second Leaf switch and the third Leaf switch.

9. A non-volatile computer storage medium storing computer-executable instructions, characterized in that, The computer-executable instructions are set as follows: In the pre-defined RoCE-SAN network, identify the Leaf switch and determine the first Spine switch and the second Spine switch connected to the Leaf switch; The primary and backup ports of the Leaf switch are determined based on the first Spine switch and the second Spine switch. Determine the connection status of other Leaf switches, and select the primary port and / or the backup port for information synchronization based on the connection status; In a pre-configured RoCE-SAN network, multiple Leaf switches are set up. Each Leaf switch is connected to the first Spine switch and the second Spine switch. The multiple Leaf switches include, but are not limited to, the first Leaf switch, the second Leaf switch, and the third Leaf switch. Determine the connection status of other Leaf switches, specifically including: The connection status of the second Leaf switch and the connection status of the third Leaf switch are detected to obtain the second connection topology information corresponding to the second Leaf switch and the third connection topology information corresponding to the third Leaf switch. The connection status includes the connection status of the primary port connected to the first Spine switch and the connection status of the backup port connected to the second Spine switch. The second connection topology information and the third connection topology information are sent to the first Leaf switch to determine the connection status of the second Leaf switch and the third Leaf switch.

Citation Information

Patent Citations

  • Route receiving system, route receiving method, device, equipment and medium

    CN113595893A