A method of processing information, related apparatus and network system
By employing partitioning technology and identifier parameters to manage the direction of information transmission in the storage system, the problem of high storage resource consumption in switching devices has been solved, thereby optimizing storage resources and improving information update efficiency.
Patent Information
- Application Number
- CN202210029485.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-11
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2042-01-11
AI Technical Summary
In storage systems, switching devices consume a large amount of storage resources to store information from compute nodes and storage nodes, resulting in significant storage resource consumption.
By isolating and managing the sets of partitions in the network system, switching devices only transmit and update information between relevant sets of partitions, avoiding the global storage of information for all nodes. Partitioning technology and identification parameters are used to manage the direction of information transmission, reducing the storage of unrelated information.
It reduces the storage resource consumption of switching equipment, improves the efficiency of information updates, and reduces the waste of storage resources.
Smart Images

Figure CN116471175B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of switching device, in particular to a method for processing information, related device and network system. BACKGROUND
[0002] In a network architecture such as a storage area network (SAN), computing nodes and storage nodes (collectively referred to as nodes) are usually connected through a switching network comprising multiple switching devices, thereby constructing a storage system. In actual use, each switching device usually needs to synchronize information about computing nodes and storage nodes, so that a node can timely perceive the state of an associated node, thereby determining the operation between nodes, for example, a computing node can perceive that a storage node is online or offline, thereby establishing a connection or disconnecting with the storage node.
[0003] However, with the continuous growth of business scale, the scale of nodes in the storage system is increasing, and the information about computing nodes and storage nodes that the switching devices in the storage system need to store also increases significantly, resulting in that the switching devices need to consume a large amount of resources to store information about computing nodes and storage nodes, for example, a large number of related entries need to be stored, and the storage resources of the switching devices are consumed greatly. SUMMARY
[0004] The present application provides a network system to solve the problem that the switching devices in the current storage system need to consume a large amount of storage resources to store information about computing nodes and storage nodes, resulting in a large consumption of storage resources. The present application also provides corresponding methods, devices, switching devices, computer-readable storage media and computer program products, etc.
[0005] The first aspect of the present application provides a network system, the network system comprising a first switching device and a second switching device, the network system corresponding to at least one partition set, each partition set comprising at least one partition, each partition comprising a plurality of nodes allowed to visit each other, the partitions contained in different partition sets being different, and the partitions in different partition sets being isolated from each other; the first switching device is configured to send a first message to the second switching device, the first message comprising information of a first node, the first node being a node in a first partition set corresponding to the first switching device; the second switching device is configured to receive the first message, and when the first node is related to a second partition set corresponding to the second switching device, update the information of the first node in the second switching device according to the first message.
[0006] In the first aspect, each partition set includes one or more partitions. The isolation of partitions within different partition sets means that each partition in a different partition set is managed independently. The first message can be sent as a separate data packet from the first switching device to the second switching device, or it can be merged with information from nodes other than the first node into a single data packet, which is then sent from the first switching device to the second switching device. In this case, the second switching device can retrieve the first message from the merged data packet using a specific information identifier. There are several ways to update the information of the first node in the second switching device based on the first message. In one example, if the second switching device already stores historical version information of the first node, then when the first node is associated with the second partition set corresponding to the second switching device, the second switching device can replace the historical version information of the first node in the second switching device with the received information of the first node. In another example, if the second switching device does not store the information of the first node, then when the first node is associated with the second partition set corresponding to the second switching device, the second switching device stores the information of the first node for the first time to update the information of the first node in the second switching device for the first time.
[0007] As described above, in this first aspect, the various partitions corresponding to the network system can be combined to obtain a partition set, wherein the partitions in different partition sets are isolated from each other. Furthermore, the first switching device sends a first message including information about the first node to the second switching device. The second switching device receives the first message and, when the first node is associated with a second partition set corresponding to the second switching device, updates the information of the first node in the second switching device according to the first message. In this way, the second switching device does not need to store information about all nodes globally, thus reducing the consumption of storage resources.
[0008] In one possible implementation of the first aspect, the second switching device is further configured to: not process the first message when the first node is not related to the second partition set.
[0009] In this possible implementation, not processing the first message means not performing any corresponding operations based on the content of the first message, such as performing an update operation on the corresponding information. In this way, when the first node and the second partition set are not related, the second switching device determines that the first message is not related to the second switching device, thus eliminating the need for storage and reducing the waste of storage resources in the second switching device.
[0010] In a possible implementation of the first aspect, the second exchange device stores the receiving identifiers of the second partition set, and the information of the first node includes a sending identifier of a third partition set corresponding to the first node, the third partition set belonging to the first partition set; the first node is associated with the second partition set corresponding to the second exchange device, including that the receiving identifier of the second partition set matches the sending identifier of the third partition set.
[0011] In an example, one partition set can be uniquely identified by using one identifier parameter, which serves as both the receiving identifier and the sending identifier. In another example, one partition set can use two identifier parameters to represent the sending identifier and the receiving identifier respectively, and the two identifier parameters corresponding to one partition set have the same value, in which case the receiving identifier and the sending identifier corresponding to one partition set are the same; or the two identifier parameters corresponding to one partition set have different values, in which case the receiving identifier and the sending identifier corresponding to one partition set are different, so that the transmission direction of the relevant message between the exchange devices can be embodied by the receiving identifier and the sending identifier with different values.
[0012] In a possible implementation of the first aspect, the second partition set includes a plurality of partition sets, and the receiving identifier of the second partition set matches the sending identifier of the third partition set includes that the receiving identifier of at least one partition set in the plurality of partition sets matches the sending identifier of the third partition set.
[0013] In this possible implementation, some partition sets in the second partition set can be associated with the third partition set, or all partition sets in the second partition set can be associated with the third partition set, which is not limited.
[0014] In a possible implementation of the first aspect, the second exchange device is further configured to: receive a configuration message sent by the first exchange device, the configuration message including the sending identifier of the first partition set and first configuration information of the first partition set; and when the sending identifier of the first partition set matches the receiving identifier of the second partition set, update second configuration information of the second partition set according to the configuration message, the second configuration information including the identifier of the partition corresponding to the second partition set and the information of the node included in the corresponding partition.
[0015] In the possible implementation manner, the second configuration information usually has a large data amount and can be dynamically adjusted by the user according to the situation. If the configuration and deployment are performed for each switching device one by one, the labor cost and time cost are high. Therefore, in the possible implementation manner, the first switching device can acquire the configuration information, the first switching device can send the configuration information to the second switching device, and the second switching device can identify the related information based on the stored receiving identifier to update the second configuration information, so that the updating efficiency of the configuration information can be improved. In a scenario, when the first switching device is a reflector, the configuration information can be sent to the plurality of reflector clients connected to the first switching device, so that the efficient updating of the corresponding configuration information of the plurality of reflector clients can be implemented.
[0016] In a possible implementation manner of the first aspect, the second switching device further includes: an acquiring unit, configured to acquire state change information of a second node associated with the second switching device; and a sending unit, configured to send a second message to the first switching device, the second message including the state change information of the second node and a sending identifier of a fourth partition set corresponding to the second node, the fourth partition set belonging to the second partition set.
[0017] In the possible implementation manner, the corresponding information interaction can be performed based on the state change information of the node, so that the data synchronization of the related state change information in the related switching device can be implemented.
[0018] In a possible implementation manner of the first aspect, the first switching device further includes: a receiving unit, configured to receive the second message; and an updating unit, configured to, when the sending identifier of the fourth partition set matches the receiving identifier of the first partition set, update the information of the second node in the first switching device according to the state change information of the second node and the sending identifier of the fourth partition set.
[0019] In the possible implementation manner, the first switching device can determine whether the fourth partition set corresponding to the second node is the partition set associated with the first switching device through the sending identifier in the second message, and then determine whether the information updating in the first switching device needs to be performed based on the second message, so that the data amount of the irrelevant data stored in the first switching device can be reduced, and the waste of storage resources can be reduced.
[0020] In a possible implementation manner of the first aspect, the first switching device further includes: a generating unit, configured to generate a third message, the third message including the state change information of the second node and the sending identifier of the fourth partition set; and a sending unit, configured to send the third message to other switching devices connected to the first switching device and other than the second switching device.
[0021] In the possible implementation manner, when the partition set of the other switching device connected to the first switching device is related to the second node, the other switching device can perform the related updating operation according to the third information, so that the updating of the related data can be implemented.
[0022] In a possible implementation of the first aspect, the first switching device is a first reflector, the second switching device is a reflector client, and the network system further includes a third switching device, the third switching device is a second reflector, and the first reflector and the second reflector correspond to different partition sets.
[0023] In the possible implementation, the network system includes the first switching device as the first reflector and the third switching device as the second reflector, and the first reflector and the second reflector correspond to different partition sets. In this way, the related node information and the related configuration information of different partition sets can be respectively stored in different reflectors, thereby avoiding the problem of excessive load caused by the fact that a single reflector in the network system needs to store and process a large amount of information of partition sets, and load sharing in the network system is achieved.
[0024] In a possible implementation of the first aspect, the network system is a storage area network (SAN), the plurality of nodes include computing nodes and storage nodes, the network system includes a first subsystem and a second subsystem, the first subsystem includes the first switching device and the second switching device, the second subsystem includes the third switching device, and the storage nodes corresponding to the first subsystem and the second subsystem are backup to each other.
[0025] In the possible implementation, the first subsystem and the second subsystem are located in different data centers. In addition, the reflectors of different subsystems are different, so that different subsystems bear the collection and transmission of the related configuration information and the related node information between the switching devices through different reflectors, thereby reasonably allocating device resources and achieving load sharing of the switching devices between the plurality of subsystems.
[0026] In a possible implementation of the first aspect, in a partition set, the corresponding nodes are in a relationship of intercommunication in a same data center, or the corresponding nodes are in a relationship of intercommunication across data centers.
[0027] The second aspect of the present application provides a method for processing information, applied to a first switching device, the first switching device belongs to a network system, the network system further includes a second switching device, the network system corresponds to at least one partition set, each partition set includes at least one partition, each partition includes a plurality of nodes allowed to intercommunicate, the partitions included in different partition sets are different, and the partitions in different partition sets are isolated from each other. The first switching device sends a first message to the second switching device, so that the second switching device receives the first message and updates information of a first node in the second switching device according to the first message when the first node is related to a second partition set corresponding to the second switching device, the first message includes information of the first node, and the first node is a node in a first partition set corresponding to the first switching device.
[0028] In a possible implementation manner of the second aspect, the first switching device receives a second message, the second message comprising state change information of a second node associated with the second switching device and a sending identifier of a fourth partition set corresponding to the second node, the fourth partition set belonging to the second partition set; and when the sending identifier of the fourth partition set matches the receiving identifier of the first partition set, the information of the second node in the first switching device is updated according to the state change information of the second node and the sending identifier of the fourth partition set.
[0029] In a possible implementation manner of the second aspect, the first switching device further generates a third message, the third message comprising the state change information of the second node and the sending identifier of the fourth partition set; and the third message is sent to other switching devices connected to the first switching device except the second switching device.
[0030] The third aspect of the present application provides a method for processing information, applied to a second switching device, the second switching device belonging to a network system, the network system further comprising a first switching device, the network system corresponding to at least one partition set, each partition set comprising at least one partition, each partition comprising a plurality of nodes allowed to visit each other, the partitions contained in different partition sets being different, and the partitions in different partition sets being isolated from each other. The second switching device receives a first message, the first message comprising information of a first node, the first node being a node in a first partition set corresponding to the first switching device; and when the first node is related to a second partition set corresponding to the second switching device, the information of the first node in the second switching device is updated according to the first message.
[0031] In a possible implementation manner of the third aspect, when the first node is not related to the second partition set, the second switching device does not process the first message.
[0032] In a possible implementation manner of the third aspect, the second switching device stores a receiving identifier of the second partition set, the information of the first node comprises a sending identifier of a third partition set corresponding to the first node, the third partition set belonging to the first partition set; and the first node being related to the second partition set corresponding to the second switching device comprises that the receiving identifier of the second partition set matches the sending identifier of the third partition set.
[0033] In a possible implementation manner of the third aspect, the second partition set comprises a plurality of partition sets, and the receiving identifier of the second partition set matching the sending identifier of the third partition set comprises that the receiving identifier of at least one partition set in the plurality of partition sets matches the sending identifier of the third partition set.
[0034] In one possible implementation of the third aspect, the second switching device further receives a configuration message sent by the first switching device. The configuration message includes a sending identifier of the first partition set and first configuration information of the first partition set. When the sending identifier of the first partition set matches the receiving identifier of the second partition set, the second configuration information of the second partition set is updated according to the configuration message. The second configuration information includes the identifier of the partition corresponding to the second partition set and the information of the nodes included in the corresponding partition.
[0035] In one possible implementation of the third aspect, the second switching device further obtains the state change information of the second node associated with the second switching device; and sends a second message to the first switching device, the second message including the state change information of the second node and the sending identifier of the fourth partition set corresponding to the second node, the fourth partition set belonging to the second partition set.
[0036] A fourth aspect of this application provides an apparatus for processing information, applied to a first switching device, the first switching device belonging to a network system, the network system further including a second switching device, the network system corresponding to at least one partition set, each partition set including at least one partition, each partition including multiple nodes that are allowed to communicate with each other, different partition sets containing different partitions, and the partitions in different partition sets being isolated from each other, the apparatus comprising: a sending module, configured to send a first message to the second switching device, such that the second switching device receives the first message, and when a first node is associated with a second partition set corresponding to the second switching device, updates the information of the first node in the second switching device according to the first message, the first message including the information of the first node, the first node being a node in the first partition set corresponding to the first switching device.
[0037] In one possible implementation of the fourth aspect, the apparatus further includes: a receiving module for receiving a second message, the second message including state change information of a second node associated with the second switching device and a sending identifier of a fourth partition set corresponding to the second node, the fourth partition set belonging to the second partition set; and an updating module for updating the information of the second node in the first switching device according to the state change information of the second node and the sending identifier of the fourth partition set when the sending identifier of the fourth partition set matches the receiving identifier of the first partition set.
[0038] In one possible implementation of the fourth aspect, the apparatus further includes a generation module; the generation module is used to generate a third message, the third message including state change information of the second node and a sending identifier of the fourth partition set; the sending module is also used to send the third message to other switching devices connected to the first switching device, excluding the second switching device.
[0039] The fifth aspect of the present application provides a device for processing information, which can be applied to a second switching device, the second switching device belonging to a network system, the network system further comprising a first switching device, the network system corresponding to at least one partition set, each partition set comprising at least one partition, each partition comprising a plurality of nodes allowed to visit each other, the partitions contained in different partition sets being different, and the partitions in different partition sets being isolated from each other, the device comprising: a receiving module configured to receive a first message, the first message comprising information of a first node, the first node being a node in a first partition set corresponding to the first switching device; and an updating module configured to update, when the first node is related to a second partition set corresponding to the second switching device, the information of the first node in the second switching device according to the first message.
[0040] In a possible implementation of the fifth aspect, the updating module is further configured to: when the first node is not related to the second partition set, not process the first message.
[0041] In a possible implementation of the fifth aspect, the second switching device stores a receiving identifier of the second partition set, the information of the first node comprises a sending identifier of a third partition set corresponding to the first node, and the third partition set belongs to the first partition set; the first node being related to the second partition set corresponding to the second switching device comprises the receiving identifier of the second partition set matching the sending identifier of the third partition set.
[0042] In a possible implementation of the fifth aspect, the second partition set comprises a plurality of partition sets, and the receiving identifier of the second partition set matching the sending identifier of the third partition set comprises: the receiving identifier of at least one partition set in the plurality of partition sets matching the sending identifier of the third partition set.
[0043] In a possible implementation of the fifth aspect, the receiving module is further configured to: receive a configuration message sent by the first switching device, the configuration message comprising a sending identifier of the first partition set and first configuration information of the first partition set; and the updating module is further configured to: when the sending identifier of the first partition set matches the receiving identifier of the second partition set, update second configuration information of the second partition set according to the configuration message, the second configuration information comprising an identifier of a partition corresponding to the second partition set and information of nodes included in the corresponding partition.
[0044] In a possible implementation of the fifth aspect, the device further comprises an obtaining module and a sending module; the obtaining module is configured to obtain state change information of a second node associated with the second switching device; and the sending module is configured to send a second message to the first switching device, the second message comprising the state change information of the second node and a sending identifier of a fourth partition set corresponding to the second node, the fourth partition set belonging to the second partition set.
[0045] The sixth aspect of the present application provides a switching device, which comprises at least one processor, a memory, and computer-executed instructions stored in the memory and executable on the processor, and when the computer-executed instructions are executed by the processor, the processor executes the method according to the second aspect or any possible implementation manner of the second aspect.
[0046] The seventh aspect of the present application provides another switching device, which comprises at least one processor, a memory, and computer-executed instructions stored in the memory and executable on the processor, and when the computer-executed instructions are executed by the processor, the processor executes the method according to the third aspect or any possible implementation manner of the third aspect.
[0047] The eighth aspect of the present application provides a computer-readable storage medium storing one or more computer-executed instructions, and when the computer-executed instructions are executed by a processor, the processor executes the method according to the second aspect or any possible implementation manner of the second aspect.
[0048] The ninth aspect of the present application provides a computer program product storing one or more computer-executed instructions, and when the computer-executed instructions are executed by a processor, the processor executes the method according to the second aspect or any possible implementation manner of the second aspect.
[0049] The tenth aspect of the present application provides a chip system, which comprises a processor for supporting the function of the first switching device according to the second aspect or any possible implementation manner of the second aspect. In a possible design, the chip system can further comprise a memory for storing necessary program instructions and data of the computer device. The chip system can be composed of a chip, or can comprise a chip and other discrete devices.
[0050] The eleventh aspect of the present application provides a computer-readable storage medium storing one or more computer-executed instructions, and when the computer-executed instructions are executed by a processor, the processor executes the method according to the third aspect or any possible implementation manner of the third aspect.
[0051] The twelfth aspect of the present application provides a computer program product storing one or more computer-executed instructions, and when the computer-executed instructions are executed by a processor, the processor executes the method according to the third aspect or any possible implementation manner of the third aspect.
[0052] The thirteenth aspect of the present application provides a chip system, which comprises a processor configured to support the function of the second switching device in the third aspect or any possible implementation manner of the third aspect. In a possible design, the chip system can further comprise a memory configured to store necessary program instructions and data of the computer device. The chip system can be composed of a chip or can comprise the chip and other discrete devices.
[0053] The technical effects brought by the second aspect to the thirteenth aspect or any possible implementation manner thereof can refer to the technical effects brought by the first aspect or the related possible implementation manner of the first aspect, which will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS
[0054] Figure 1 is an exemplary structural schematic diagram of a storage system provided by an embodiment of the present application;
[0055] Figure 2 is an exemplary structural schematic diagram of a network system provided by an embodiment of the present application;
[0056] Figure 3a is an exemplary structural schematic diagram of a switching device and related nodes provided by an embodiment of the present application;
[0057] Figure 3b is another exemplary structural schematic diagram of a switching device and related nodes provided by an embodiment of the present application;
[0058] Figure 4 is an embodiment schematic diagram of a method for processing information provided by an embodiment of the present application;
[0059] Figure 5 is another embodiment schematic diagram of a method for processing information provided by an embodiment of the present application;
[0060] Figure 6 is still another embodiment schematic diagram of a method for processing information provided by an embodiment of the present application;
[0061] Figure 7 is still another exemplary structural schematic diagram of a switching device and related nodes provided by an embodiment of the present application;
[0062] Figure 8 is an embodiment schematic diagram of an apparatus for processing information provided by an embodiment of the present application;
[0063] Figure 9 is another embodiment schematic diagram of an apparatus for processing information provided by an embodiment of the present application;
[0064] Figure 10 is a structural schematic diagram of a switching device provided by an embodiment of the present application;
[0065] Figure 11 FIG. 3 is another structural schematic diagram of a switching device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0066] The embodiments of the present application are described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments. Those skilled in the art can know that with the development of technology and the emergence of new scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.
[0067] In the present application, "at least one" means one or more, and "multiple" means two or more. The "and / or" describes the association relationship of the associated objects, which means that there can be three kinds of relationships, for example, A and / or B can represent the following three cases: A exists alone, A and B exist together, and B exists alone, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the front and rear associated objects. "At least one of the following" or similar expressions means any combination of these items, including any combination of single or multiple items. The terms "first", "second", and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a series of steps or units does not have to be limited to those steps or units clearly listed, but can include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0068] The embodiments of the present application provide a network system to solve the problem that the switching device in the current storage system needs to consume a large amount of storage resources to store configuration information about the computing nodes and the storage nodes, resulting in a large consumption of storage resources. The embodiments of the present application also provide corresponding methods, switching devices, computer readable storage media, and computer program products, etc.
[0069] The network system includes a plurality of switching devices, and one or more switching devices in the network system can be connected with nodes.
[0070] The number of nodes associated with the network system is not limited here, and the number of nodes associated with the network system can change over time. Functionally, any node in the embodiments of this application can be a computing node or a storage node. The computing node can access the storage node and retrieve data from the storage node through the network system. The storage node can store data; it can be a single storage unit or a storage array comprising multiple storage units. In terms of form, the nodes in the embodiments of this application can be physical devices or virtual devices deployed on physical devices. For example, a computing node can be a physical server, workstation, mobile station, or other type of computer equipment, or a virtual device in the form of a virtual machine (VM) or container. When a node is a virtual device, multiple nodes can be hosted on the same physical device.
[0071] The network system and nodes can be part of the storage system. For example, the storage system can be an Ethernet storage system, and the switching devices in the network system of the storage system are Ethernet switching devices.
[0072] This storage system can contain one or more data centers, each capable of performing corresponding data storage operations. If the storage system has multiple data centers, these multiple data centers can form a dual-active data center, three or more multi-active data centers, a primary-backup data center, etc. Taking a dual-active data center as an example, in a dual-active data center, both data centers are in an active state, and the storage nodes of these two data centers serve as backups for each other.
[0073] The network topology formed by the switching devices in each data center is not limited here. In one example, the switching devices in the data center may include access switching devices (also called edge switching devices or leaf switching devices) and aggregation switching devices connected to the nodes, with the aggregation switching devices used to connect the access switching devices. Alternatively, in another example, the data center may include access switching devices, aggregation switching devices, and core switching devices, with the aggregation switching devices used to connect the core switching devices and access switching devices. The switching devices in each data center can realize data transmission between the compute nodes and storage nodes corresponding to that data center.
[0074] like Figure 1 The diagram shown is an exemplary structural diagram of a storage system, which includes data center 10 and data center 11. Each data center includes compute nodes and storage nodes, and the compute nodes and storage nodes communicate with each other through a switching device.
[0075] The storage system is constructed based on a storage area network (SAN). The data center 10 and the data center 11 form a dual-active data center, and the storage nodes of the data center 10 and the data center 11 are backed up to each other.
[0076] At least two switching devices in the storage system can belong to the network system provided in the embodiments of the present application. The network system provided in the embodiments of the present application is specifically introduced below. Figure 2 The network system provided in the embodiments of the present application is specifically introduced below.
[0077] As shown in FIG. 1, it is a schematic diagram of an exemplary structure of the network system. Figure 2
[0078] The network system 2 can include a first switching device 201 and a second switching device 202.
[0079] The first switching device 201 and the second switching device 202 included in the network system in the embodiments of the present application can be located in the same data center or different data centers. The embodiments of the present application do not limit this.
[0080] In the embodiments of the present application, the network system corresponds to at least one zone set, each zone set includes at least one zone, each zone includes a plurality of nodes allowed to visit each other, the zones included in different zone sets are different, and the zones in different zone sets are isolated from each other.
[0081] In the embodiments of the present application, these nodes can be grouped by zoning technology, which is called a zone. Each zone can include a plurality of nodes. Generally, the computing nodes and the storage nodes in the same zone can access each other (referred to as visiting each other in the embodiments of the present application) through the network system, thereby communicating. A node can belong to multiple zones, and the node can communicate with other nodes belonging to the same zone. The specific setting method of the zone can be various, which is not limited in the embodiments of the present application.
[0082] In the embodiments of the present application, each zone set includes at least one zone, the zones included in different zone sets are different, and the zones in different zone sets are isolated from each other.
[0083] The isolation of the zones in different zone sets can mean that the zones in different zone sets are independently managed. When the switching device receives the information of the relevant zone set, the switching device manages the information of the zone set, and when the switching device receives the information of the irrelevant zone set, the switching device does not manage the information of the zone set, thereby realizing the independent management of each zone set in the switching device.
[0084] For example, as shown in FIG. 2, it is a schematic diagram of another exemplary structure of the network system. Figure 3a An exemplary schematic diagram of the switching devices and related nodes is shown.
[0085] wherein, Figure 3a The switching devices and nodes shown can form data center 30 and data center 31. Data center 30 and data center 31 form a dual-active data center. Any computing node in data center 30 (such as computing node 301, computing node 302, or computing node 303) can access a storage node in data center 30 (such as storage node 321 or storage node 322), and can also access a storage node in data center 31 (such as storage node 323 or storage node 324) across data centers.
[0086] Figure 3a The nodes shown form at least the following partitions:
[0087] Partition a1: computing node 301, storage node 321, storage node 322;
[0088] Partition a2: computing node 302, storage node 321, storage node 322;
[0089] Partition a3: computing node 303, storage node 321, storage node 322;
[0090] Partition a4: computing node 301, storage node 323, storage node 324;
[0091] Partition a5: computing node 302, storage node 323, storage node 324;
[0092] Partition a6: computing node 303, storage node 323, storage node 324.
[0093] wherein, partition a1, partition a2, and partition a3 are relationships of the corresponding nodes accessing each other in the same data center, and partition a4, partition a5, and partition a6 are relationships of the corresponding nodes accessing each other across data centers. Based on the categories of the above-mentioned access relationships, partition set A1 and partition set A2 can be obtained, wherein:
[0094] Partition set A1: partition a1, partition a2, and partition a3;
[0095] Partition set A2: partition a4, partition a5, and partition a6.
[0096] It can be seen that in some embodiments, in one partition set, the corresponding nodes are all in the relationship of accessing each other in the same data center, or the corresponding nodes are all in the relationship of accessing each other across data centers.
[0097] In Figure 3aIn the illustrated example, the switching device 313 can only store information related to the partition set A1, and not information related to the partition set A2.
[0098] Figure 3a Other partition sets can also be included, which are not listed here.
[0099] As Figure 3b Another exemplary schematic diagram of switching devices and related nodes is shown.
[0100] Figure 3b The association between each node and the switching device is shown in Figure 3b In
[0101] Based on the association between each node and the switching device in Figure 3b Figure 3b The nodes shown form at least the following partitions:
[0102] Partition b1: computing node 331, storage node 341, storage node 342;
[0103] Partition b2: computing node 332, storage node 341, storage node 342;
[0104] Partition b3: computing node 333, storage node 341, storage node 342;
[0105] Partition b4: computing node 334, storage node 343, storage node 344;
[0106] Partition b5: computing node 335, storage node 343, storage node 344;
[0107] Partition b6: computing node 336, storage node 343, storage node 344.
[0108] Combining the above partitions b1-b6, the partition set B1 and the partition set B2 can be obtained, where:
[0109] Partition set B1: partition b1, partition b2, and partition b3;
[0110] Partition set B2: partition b4, partition b5, and partition b6.
[0111] The switching device 351 and the switching device 353 can only store information related to the partition set B1, and not information related to the partition set B2, and the switching device 354 and the switching device 355 can only store information related to the partition set B2, and not information related to the partition set B1, thereby saving storage resources in these switching devices.
[0112] Based on the network system in any of the above embodiments, an embodiment of the present application provides a method for processing information. As shown in the figure, the method comprises steps 401-402. Figure 4
[0113] Step 401, the first switching device sends a first message to the second switching device.
[0114] Exemplarily, in the example shown in the figure, the first switching device can be switching device 312 or switching device 315, and the second switching device can be switching device 311, switching device 313, switching device 314 or switching device 316. While in the example shown in the figure, the first switching device can be switching device 352, and the second switching device can be switching device 351, switching device 353, switching device 354 or switching device 355. Figure 3a Figure 3b
[0115] The first message comprises information of a first node, which is a node in a first partition set corresponding to the first switching device.
[0116] In the embodiment of the present application, the number of the first nodes is not limited herein. The first node can be part of or all of the nodes in the first partition set corresponding to the first switching device. The information of the first node can comprise information of the first node itself, and can also comprise association information of the corresponding node and other related devices. Exemplarily, the information of the first node can comprise at least one of the following information:
[0117] Internet Protocol (IP) address of the first node, IP state of the first node, connection state between the first node and the corresponding access switching device, IP address of the access switching device corresponding to the first node, interface information of the access switching device corresponding to the first node, and access state between the first node and the corresponding first switching device.
[0118] The information of the first node can be received by the first switching device from other switching devices connected to the first switching device except the second switching device, or can also be information configured by a user on the first switching device, or can also be received by the first switching device from other devices such as user terminals.
[0119] In an example, other switching devices (such as other access switching devices) connected to the first switching device except the second switching device can generate the information of the first node and send it to the first switching device when detecting that the state of the first node changes (for example, the first node newly accesses the corresponding switching device and establishes a connection or changes from a connected state to a disconnected state).
[0120] In another example, the user can configure the information of the first node in the first switching device.
[0121] In the embodiments of the present application, the first message can be sent by the first switching device to the second switching device as an independent data packet, or can be merged into a same data packet with the information of other nodes except the first node, and then the first switching device sends the data packet obtained after the merging to the second switching device. At this time, the second switching device can acquire the first message from the data packet obtained after the merging through a specific information identifier.
[0122] In step 402, the second switching device receives the first message, and when the first node is related to the second partition set corresponding to the second switching device, the second switching device updates the information of the first node in the second switching device according to the first message.
[0123] In the embodiments of the present application, whether the first message is related to the second partition set corresponding to the second switching device can be determined based on the specified identifier (for example, the sending identifier corresponding to the first message) in the first message and the specified identifier (for example, the receiving identifier in the second switching device) in the second switching device. The specified identifier can be set in multiple ways. In one example, one partition set can be uniquely identified by one identifier parameter, which is used as both the receiving identifier and the sending identifier. In another example, one partition set can use two identifier parameters to represent the sending identifier and the receiving identifier respectively, and the values of the two identifier parameters corresponding to one partition set can be the same, in which case the receiving identifier and the sending identifier corresponding to one partition set are the same; or the values of the two identifier parameters corresponding to one partition set can be different, in which case the receiving identifier and the sending identifier corresponding to one partition set are different. At this time, if the sending identifier in the first message matches the receiving identifier in the second switching device, it is determined that the first message is related to the second partition set corresponding to the second switching device.
[0124] The way of updating the information of the first node in the second switching device according to the first message can be various.
[0125] In one example, the second switching device has already stored the historical version information of the first node, and when the first node is related to the second partition set corresponding to the second switching device, the second switching device can replace the historical version information of the first node in the second switching device with the received information of the first node.
[0126] In another example, the second switching device does not store information of the first node, and the second switching device can first store the information of the first node to first update the information of the first node in the second switching device when the first node is related to the second partition set corresponding to the second switching device. In this case, the second switching device can only store the identifier of the first node (e.g., the name of the first node), but not store information such as the IP address of the first node, the connection state with the corresponding switching device, and the like, or can not store any information of the first node.
[0127] In the embodiments of the present application, each partition corresponding to the network system can be combined to obtain a partition set, wherein the partitions in different partition sets are isolated from each other, and the first switching device can send a first message including the information of the first node to the second switching device, and the second switching device can receive the first message and update the information of the first node in the second switching device according to the first message when the first node is related to the second partition set corresponding to the second switching device. In this way, the second switching device does not need to store information of all nodes globally, and thus the consumption of storage resources can be reduced.
[0128] In some embodiments, when the first node is not related to the second partition set, the second switching device does not process the first message.
[0129] In this case, the second switching device does not need to store the first message when the first node is not related to the second partition set, and thus the waste of storage resources in the second switching device can be reduced.
[0130] In some embodiments, the second switching device stores a receiving identifier of the second partition set, the information of the first node includes a sending identifier of a third partition set corresponding to the first node, the third partition set belongs to the first partition set, and the first node is related to the second partition set corresponding to the second switching device includes that:
[0131] The receiving identifier of the second partition set matches the sending identifier of the third partition set.
[0132] In the embodiments of the present application, for any partition set, the partition set corresponds to a receiving identifier and a sending identifier. The sending identifier is used to mark the sending identifier when the switching device sends information related to the partition set. The receiving identifier is used to match the received message based on the receiving identifier when the switching device receives the message to determine whether the received message is related to the partition set corresponding to the switching device.
[0133] In an example, one partition set can use one identification parameter to be uniquely identified, which is used as both the receiving identification and the sending identification. In another example, one partition set can use two identification parameters to represent the sending identification and the receiving identification respectively, and the two identification parameters corresponding to one partition set have the same value, in which case, the receiving identification and the sending identification corresponding to one partition set are the same; or the two identification parameters corresponding to one partition set have different values, in which case, the receiving identification and the sending identification corresponding to one partition set are different, so that the transmission direction of the related message between the switching devices can be embodied by the receiving identification and the sending identification with different values.
[0134] In some embodiments, the second partition set includes a plurality of partition sets, and the receiving identification of the second partition set matches the sending identification of the third partition set includes that:
[0135] The receiving identification of at least one partition set in the plurality of partition sets matches the sending identification of the third partition set.
[0136] It can be seen that in the embodiments of the present application, part of the partition sets in the second partition set can be related to the third partition set, or all the partition sets in the second partition set can be related to the third partition set, which is not limited in the embodiments of the present application.
[0137] If only part of the partition sets in the plurality of partition sets have the receiving identification matching the sending identification of the third partition set, updating the information of the first node in the second switching device according to the first message can include:
[0138] According to the information corresponding to the matching successful sending identification in the first message, the information of the node corresponding to the matching successful receiving identification in the second switching device is updated.
[0139] In some embodiments, the first switching device and the second switching device can also perform corresponding information interaction based on the related configuration information of the partition set, so as to realize data synchronization of the related configuration information in each switching device.
[0140] The scheme of the corresponding information interaction between the first switching device and the second switching device based on the related configuration information of the partition set is introduced below.
[0141] The second switching device can store the second configuration information of the second partition set. The second configuration information can include the identification of the partition corresponding to the second partition set, and the information of the node included in the corresponding partition. In this way, the second switching device can determine which partitions are related to the second partition set and which nodes are related to the second partition set according to the second configuration information.
[0142] The first time the second switching device acquires and stores the second configuration information can be considered the first update of that second configuration information by the second switching device. This first update usually occurs before steps 401-402 mentioned above.
[0143] It is evident that there is no temporal constraint between the step of updating the second configuration information and the steps 401-402 mentioned above.
[0144] There are several ways to obtain this second configuration information. Examples are given below.
[0145] 1. In one embodiment, the second configuration information may be configured by the user on the second switching device.
[0146] 2. In one embodiment, the second configuration information is received by the second switching device from other devices such as client terminals.
[0147] 3. In one embodiment, the second configuration information is obtained by the second switching device from the first switching device.
[0148] The following section details the scheme for the second switching device to obtain the second configuration information from the first switching device.
[0149] like Figure 5 As shown, a method for processing information is provided in an embodiment of this application. The method includes steps 501-503.
[0150] Step 501: The first switching device sends a configuration message to the second switching device.
[0151] The configuration message includes the sending identifier of the first partition set and the first configuration information of the first partition set.
[0152] In this embodiment of the application, the user can input the configuration information in the first switching device, or the user can transmit the configuration information to the first switching device through other devices such as a user terminal.
[0153] In some examples, the first switching device can be an aggregation switching device or a core switching device, and the second switching device can be an access switching device.
[0154] Step 502: The second switching device receives the configuration message sent by the first switching device.
[0155] Step 503: When the sending identifier of the first partition set matches the receiving identifier of the second partition set, the second switching device updates the second configuration information of the second partition set according to the configuration message.
[0156] The second configuration information includes the identifier of the partition corresponding to the second partition set, as well as the information of the nodes included in the corresponding partition.
[0157] In the embodiments of the present application, the receiving identifiers of the second partition set can be pre-stored in the second switching device, so that the second switching device can identify whether the received message is related to the second partition set according to the sending identifier in the received message. The pre-stored receiving identifiers of the second partition set in the second switching device can be configured manually on the second switching device, or received by the second switching device from other devices such as a client terminal.
[0158] In addition, in some examples, the first switching device and the second switching device can also pre-store respective switching device configuration information.
[0159] The switching device configuration information can include the IP address of the switching device, the local port address of the Transmission Control Protocol (TCP), and device role information. The device role information is used to indicate that the corresponding switching device is a switching device in a single switching device network, a reflector, or a reflector client.
[0160] After receiving the configuration information sent by the first switching device, the second switching device can match the sending identifiers of the first partition set with the receiving identifiers of the second partition set. In some examples, the first partition set can include multiple partition sets, and therefore, there can be multiple sending identifiers in the first partition set. At this time, when at least one sending identifier in the first partition set matches the receiving identifier of the second partition set, the second switching device can update the second configuration information of the second partition set according to the information corresponding to the matched sending identifier in the configuration information.
[0161] In some examples, when the sending identifiers of the first partition set do not match the receiving identifiers of the second partition set, the second switching device does not process the configuration message, that is, does not perform corresponding operations according to the content of the configuration information.
[0162] The following describes the configuration information and the second configuration information of the second switching device with a specific example.
[0163] In an example, the basic information of the respective corresponding partition set can be pre-configured in the first switching device and the second switching device, which can include the sending identifier and the receiving identifier of the corresponding partition set, and in addition, at least one of the name and the description information of the corresponding partition set.
[0164] In addition, the first switching device can acquire first configuration information, which can include an identifier of a partition corresponding to the first set of partitions, and information of nodes included in the partition corresponding to the first set of partitions.
[0165] The specific form of the first configuration information can be various, which is not limited herein. For example, the first configuration information can be stored by one or more table items.
[0166] For example, the first configuration information can include multiple groups of data, and each group of data stores different information by a corresponding data structure.
[0167] In an example, the first switching device can store, by a data structure 1, basic information of any one of the first set of partitions, an identifier of a partition corresponding to the first set of partitions, and an identifier of a node included in the partition corresponding to the first set of partitions.
[0168] One setting mode of the data structure 1 is shown in Table 1.
[0169] Table 1: One setting mode of the data structure 1
[0170]
[0171] In addition, the first switching device can store, by a data structure 2, an association relationship between each partition and node. One setting mode of the data structure 2 is shown in Table 2.
[0172] Table 2: One setting mode of the data structure 2
[0173]
[0174] When a node is added to each partition, the information of the corresponding node is added in the corresponding data structure 2; when a node is deleted from each partition, the information of the corresponding node is deleted in the corresponding data structure 2.
[0175] In the second switching device, the storage mode of the second configuration information of the second set of partitions can refer to the storage modes in Tables 1-2 above, which will not be repeated here.
[0176] In the embodiments of the present application, the second configuration information usually has a large amount of data and can be dynamically adjusted by the user according to the situation. If it is configured and deployed for each switching device, the labor cost and time cost are high. Therefore, in the embodiments of the present application, the first switching device can first acquire the configuration information, then the first switching device sends the configuration information to the second switching device, and the second switching device identifies the relevant information based on the stored receiving identifier to update the second configuration information, so as to improve the updating efficiency of the configuration information. In one scenario, when the first switching device is a reflector, the configuration information can be sent to the plurality of reflector clients connected to the first switching device, so as to realize efficient updating of the corresponding configuration information of the plurality of reflector clients.
[0177] In some embodiments, the first switching device and the second switching device can also perform corresponding information interaction based on the state change information of the nodes, so as to realize data synchronization of the relevant state change information in the switching devices.
[0178] The scheme of the information interaction between the first switching device and the second switching device based on the state change information of the nodes will be introduced below.
[0179] As shown in FIG. 6, in some embodiments, the method can include: Figure 6
[0180] Step 601: The second switching device acquires the state change information of the second node associated with the second switching device.
[0181] Step 602: The second switching device sends a second message to the first switching device.
[0182] The second message includes the state change information of the second node and the sending identifier of the fourth partition set corresponding to the second node, and the fourth partition set belongs to the second partition set.
[0183] The state change information can include the change information of the association state of the second node and the second switching device, which can be described by the state of the second node. The state changes from active to inactive, indicating that the second node accesses the second switching device for the first time or changes from the disconnected state to the re-accessed state of the second switching device; or the state changes from active to inactive, indicating that the second node and the second switching device change from the connected state to the disconnected state.
[0184] The second exchange device can obtain the state change information of the associated second node by monitoring the change of the relevant interface of the second node, or receive the state change information sent by the second node. After the second exchange device obtains the state change information of the second node associated with the second exchange device, the second exchange device can send the state change information and the sending identifier of the fourth partition set corresponding to the second node to the first exchange device, so that the first exchange device can be informed of the state change information of the second node and the sending identifier of the fourth partition set associated with the second node through the second exchange device. The sending identifier of the fourth partition set corresponding to the second node can enable the receiver to identify the fourth partition set associated with the second message.
[0185] In some examples, after obtaining the state change information of the associated second node, the second exchange device can further query the information of the partition to which the second node belongs. If there is another node in addition to the second node connected to the second exchange device in the partition to which the second node belongs, the second exchange device can further send the state change information of the second node to the other node, so that the other node determines the subsequent information interaction operation based on the received state change information.
[0186] In some embodiments, the method further comprises:
[0187] Step 603, the first exchange device receives the second message.
[0188] Step 604, when the sending identifier of the fourth partition set matches the receiving identifier of the first partition set, the first exchange device updates the information of the second node in the first exchange device according to the state change information of the second node and the sending identifier of the fourth partition set.
[0189] In this way, the first exchange device can determine the fourth partition set associated with the second node in the second message through the sending identifier in the second message, so as to determine whether the fourth partition set is the partition set associated with the first exchange device, and further determine whether information update in the first exchange device is needed based on the second message. This can reduce the amount of irrelevant data stored in the first exchange device and waste of storage resources.
[0190] In some embodiments, the method further comprises:
[0191] Step 605, the first exchange device generates a third message.
[0192] The third message includes the state change information of the second node and the sending identifier of the fourth partition set.
[0193] Step 606, the first exchange device sends the third message to other exchange devices connected to the first exchange device except the second exchange device.
[0194] The first switching device can determine, through the operation of the source, other switching devices connected to the first switching device except the second switching device before sending the third message, so as to send the third message to other switching devices connected to the first switching device except the second switching device, so that the corresponding other switching devices perform corresponding processing according to the third message. For example, a certain other switching device can judge whether the sending identifier carried in the third message matches the receiving identifier of the partition set corresponding to the other switching device, and if so, update the information of the related node in the other switching device according to the third message, so as to realize the data synchronization of the state change information of the related node between each associated switching device in the network system through the first switching device.
[0195] The time sequence relationship between the above steps 601-606 and the above steps 401-402 is not limited here.
[0196] In the above embodiment, the message interaction mechanism for establishing a connection between the first switching device and the second switching device can be based on a traditional mechanism, or can be adjusted based on the related content of the above embodiment on the basis of the traditional mechanism. In some examples, the message type transmitted between the first switching device and the second switching device includes one or more of OPEN, UPDATE, NOTIFICATION, and KEEPALIVE. The UPDATE message can be used to send the first message, the second message, and the third message described above.
[0197] An exemplary message format of the UPDATE message is described as shown in Table 3.
[0198] Table 3: An exemplary message format of the UPDATE message
[0199]
[0200] TLV refers to tag-length-value. Table 3 only shows a part of the UPDATE message as an example, and does not include all message types of the UPDATE message.
[0201] When the switching device announces the addition, modification, or deletion of the related partition configuration information to other switching devices, the switching device can generate the content of the message based on the message format shown in Table 4. The message can be the UPDATE message of message type 11 or message type 12 in Table 3.
[0202] Table 4: An exemplary message format of the message about partition configuration information
[0203]
[0204] When the exchange device advertises the state change information of the related node to other exchange devices, the exchange device can generate the content of the message based on the message format shown in Table 5. The message can be an UPDATE message of the message type 13 or the message type 14 in Table 3.
[0205] Table 5: An exemplary message format of the message about the state change information
[0206]
[0207] In some embodiments, the first exchange device is a first reflector, the second exchange device is a reflector client, and the network system further includes a third exchange device, the third exchange device is a second reflector, and the first reflector and the second reflector correspond to different sets of partitions.
[0208] The reflector can be connected with one or more reflector clients and can acquire information sent by each connected reflector client and send the information to other reflector clients except the source side, so as to realize data synchronization between the exchange devices. In this way, the reflector clients do not need to establish a connection one by one to deliver information. Of course, in the embodiments of the present application, the connection relationship between the reflector clients is not limited, and the reflector clients connected with the same reflector can also establish a connection based on the needs of some scenarios. Generally, based on the function of the reflector, the aggregation exchange device and / or the core exchange device in the network system can be regarded as the reflector, and the corresponding access exchange device can be regarded as the reflector client.
[0209] In the embodiments of the present application, the network system includes the first exchange device as the first reflector and the third exchange device as the second reflector, and the first reflector and the second reflector correspond to different sets of partitions. In this way, the related node information and the related configuration information of different sets of partitions can be stored in different reflectors respectively, so as to avoid the problem that a single reflector in the network system needs to store and process a large amount of information of the sets of partitions, thereby realizing load sharing in the network system.
[0210] In some embodiments, the network system is a storage area network (SAN), the plurality of nodes include computing nodes and storage nodes, the network system includes a first subsystem and a second subsystem, the first subsystem includes the first exchange device and the second exchange device, the second subsystem includes the third exchange device, and the storage nodes corresponding to the first subsystem and the second subsystem are backup to each other.
[0211] In this embodiment, SAN is a dedicated high-speed network connecting compute nodes and storage nodes. The compute nodes and storage nodes of the SAN can form a dedicated network for data storage. In this way, a data center can be formed through the SAN, thereby providing storage, transmission, and other processing of business data from the nodes for practical application scenarios.
[0212] As business scale continues to grow, the resources of a single data center are no longer sufficient to meet business needs in real-world application scenarios. In addition, data disaster recovery has gradually become a common requirement due to considerations such as data security and business reliability. Therefore, multiple data centers can be established to support business and perform data backup to achieve data disaster recovery.
[0213] Based on the above requirements, in some examples, multiple data centers can be established to handle related business processing, improve the processing capacity of business data, and perform data disaster recovery backup.
[0214] For example, two data centers can form a dual-active data center, meaning that both data centers are active, peer-to-peer, without master-slave distinction, and can deploy services simultaneously. Data synchronization between the two data centers can be performed according to specified rules based on business scenarios. Of course, in other examples, the storage system may also include one data center, three data centers, or other numbers of data centers. This application does not impose any limitations on these embodiments.
[0215] In this embodiment, the network system may include a first subsystem and a second subsystem. The storage nodes corresponding to the first and second subsystems serve as backups for each other. The reflector in the first subsystem includes a first switching device, and the reflector in the second subsystem includes a third switching device. Thus, the first and second subsystems are located in different data centers. Furthermore, the reflectors in the different subsystems are different, allowing each subsystem to use a different reflector to handle the collection and transmission of relevant configuration information and node information between switching devices. This rationally allocates device resources and achieves load balancing among switching devices across multiple data centers.
[0216] like Figure 7 The diagram shown is an exemplary structural diagram of a switching device and related nodes. Figure 7 The diagram illustrates the relationships between various switching devices and nodes.
[0217] based on Figure 7 The relationships between the various switching devices and nodes in the system. Figure 7 The nodes shown form at least the following partitions:
[0218] Partition c1 : compute node 701, storage node 721, storage node 722;
[0219] Partition c2: compute node 702, storage node 721, storage node 722;
[0220] Partition c3: compute node 703, storage node 721, storage node 722;
[0221] Partition c4: compute node 701, storage node 723, storage node 724;
[0222] Partition c5: compute node 702, storage node 723, storage node 724;
[0223] Partition c6: compute node 703, storage node 723, storage node 724;
[0224] Partition c7: compute node 704, storage node 721, storage node 722;
[0225] Partition c8: compute node 705, storage node 721, storage node 722;
[0226] Partition c9: compute node 706, storage node 721, storage node 722;
[0227] Partition c10: compute node 704, storage node 723, storage node 724;
[0228] Partition c11 : compute node 705, storage node 723, storage node 724;
[0229] Partition c12: compute node 706, storage node 723, storage node 724.
[0230] From the partitions c1 -c12, a set of partitions C1 -C4 can be obtained, wherein:
[0231] Set of partitions C1 : partition c1, partition c2 and partition c3;
[0232] Set of partitions C2: partition c4, partition c5 and partition c6;
[0233] Set of partitions C3: partition c7, partition c8 and partition c9;
[0234] Set of partitions C4: partition c10, partition c11 and partition c12.
[0235] In Figure 7In the example shown, the data center 70 and the data center 71 are connected through a dual-active network to realize information interaction, so as to realize information synchronization between the first subsystem and the second subsystem. Specifically, the aggregation switch device 712, the first switch device 713 of the first subsystem, and the third switch device 716, the aggregation switch device 717 of the second subsystem are connected with the dual-active network to realize data transmission across data centers. The dual-active network can include one or more switch devices.
[0236] Figure 7 In the example shown, the aggregation switch device 712, the first switch device 713, the third switch device 716, and the aggregation switch device 717 are respectively associated with four partition sets, i.e., the partition set C1, the partition set C2, the partition set C3, and the partition set C4. Figure 7 In the example shown, each partition set can be associated with two reflectors. Specifically, the partition set C1 is associated with the aggregation switch device 712 and the first switch device 713, the partition set C2 is associated with the first switch device 713 and the third switch device 716, the partition set C3 is associated with the aggregation switch device 712 and the aggregation switch device 717, and the partition set C4 is associated with the third switch device 716 and the aggregation switch device 717. In this way, data disaster recovery can be realized for each partition set, and disaster recovery backup between the data center 70 and the data center 71 is realized, avoiding the failure of a single reflector to cause the transmission of the intercommunication data of the related nodes of the corresponding partition set to be impossible, and improving the reliability of the system.
[0237] However, with the increase of the reflectors, the information of the related nodes and the related configurations stored in each switch device in the traditional scheme is doubled, thereby a large amount of storage resources needs to be consumed.
[0238] In the example shown, each switch device only needs to store the information of the related nodes and the related configurations of the related partition set, so as to meet the corresponding operation needs, and a large amount of irrelevant data storage is reduced, and the waste of storage resources is reduced.
[0239] In the example shown, the number of the partition sets related to each reflector and the reflector client is equal, so that load sharing between each switch device can be realized. Figure 8
[0240] In addition, in the example shown, the first switch device only needs to store the related node information and the related configuration information of the partition set C1 and the partition set C2, and does not need to store all the node information and the configuration information of all the partitions c1-c12 globally, thereby compared with the traditional scheme, the consumption of the storage resources is greatly reduced.
[0241] In the above, the method for processing information is introduced from multiple aspects, and the device for processing information applied to the first switch device and the device for processing information applied to the second switch device are introduced below with reference to the accompanying drawings.
[0242] As Figure 9 shown, an embodiment of the present application provides a device 80 for processing information, which can be applied to the first switching device in the above-mentioned embodiments.
[0243] An embodiment of the device 80 includes:
[0244] The sending module 801 is configured to send a first message to a second switching device, so that the second switching device receives the first message and updates information of a first node in the second switching device according to the first message when the first node is related to a second partition set corresponding to the second switching device, the first message including the information of the first node, and the first node being a node in a first partition set corresponding to the first switching device.
[0245] Optionally, the device 80 further includes:
[0246] The receiving module 802 is configured to receive a second message, the second message including state change information of a second node associated with the second switching device and a sending identifier of a fourth partition set corresponding to the second node, the fourth partition set belonging to the second partition set.
[0247] The updating module 803 is configured to update information of the second node in the first switching device according to the state change information of the second node and the sending identifier of the fourth partition set when the sending identifier of the fourth partition set matches a receiving identifier of the first partition set.
[0248] Optionally, the device 80 further includes a generating module 804.
[0249] The generating module 804 is configured to generate a third message, the third message including the state change information of the second node and the sending identifier of the fourth partition set.
[0250] The sending module 801 is further configured to send the third message to other switching devices connected to the first switching device except the second switching device.
[0251] As Figure 10 shown, an embodiment of the present application provides a device 90 for processing information, which can be applied to the second switching device in the above-mentioned embodiments.
[0252] An embodiment of the device 90 includes:
[0253] The receiving module 901 is configured to receive a first message, the first message including information of a first node, the first node being a node in a first partition set corresponding to a first switching device.
[0254] The updating module 902 is configured to update information of the first node in the second switching device according to the first message when the first node is related to a second partition set corresponding to the second switching device.
[0255] Optionally, the updating module is further configured to:
[0256] when the first node is irrelevant to the second set of partitions, not processing the first message.
[0257] Optionally, the second exchange device stores a receiving identifier of the second set of partitions, and the information of the first node comprises a sending identifier of a third set of partitions corresponding to the first node, the third set of partitions belonging to the first set of partitions.
[0258] The second set of partitions corresponding to the second exchange device comprises the first set of partitions, and the first node is relevant to the second set of partitions if the receiving identifier of the second set of partitions matches the sending identifier of the third set of partitions.
[0259] Optionally, the second set of partitions comprises a plurality of sets of partitions, and the receiving identifier of the second set of partitions matches the sending identifier of the third set of partitions if:
[0260] the receiving identifier of at least one set of partitions in the plurality of sets of partitions matches the sending identifier of the third set of partitions.
[0261] Optionally, the second set of partitions comprises a plurality of sets of partitions, and the receiving identifier of the second set of partitions matches the sending identifier of the third set of partitions if:
[0262] the receiving identifier of at least one set of partitions in the plurality of sets of partitions matches the sending identifier of the third set of partitions.
[0263] Optionally, the apparatus further comprises an obtaining module 903 and a sending module 904.
[0264] The obtaining module 903 is configured to obtain state change information of a second node associated with the second exchange device.
[0265] The sending module 904 is configured to send a second message to the first exchange device, the second message comprising the state change information of the second node and a sending identifier of a fourth set of partitions corresponding to the second node, the fourth set of partitions belonging to the second set of partitions.
[0266] Figure 10 Fig. 1 shows a possible logical structure of a switching device 100 provided by an embodiment of the present application. The switching device 100 is configured to implement the functions of the first exchange device involved in any of the above embodiments. The switching device 100 comprises a memory 1001, a processor 1002, a communication interface 1003 and a bus 1004. The memory 1001, the processor 1002 and the communication interface 1003 are communicatively connected to each other through the bus 1004.
[0267] The memory 1001 can be a read only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1001 can store programs, and when the programs stored in the memory 1001 are executed by the processor 1002, the processor 1002 and the communication interface 1003 are used to execute steps 401, 501, 603-606, etc. of the method embodiments of processing information described above.
[0268] The processor 1002 can be a central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), a graphics processing unit (GPU), a digital signal processing (DSP), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, or any combination thereof, for executing related programs to implement the functions required by the sending module, the receiving module, the updating module, etc. in the device for processing information applied to the first switching device in the above embodiments, or to execute steps 401, 501, 603-606, etc. of the method embodiments of processing information. The steps of the method disclosed in the embodiments of the present application can be directly embodied by a hardware coding processor for execution, or by a combination of hardware and software modules in the coding processor for execution. The software module can be located in a random access memory, a flash memory, a read only memory, a programmable read only memory, or an electrically erasable programmable memory, a register, or other mature storage media in the art. The storage medium is located in the memory 1001, and the processor 1002 reads the information in the memory 1001 and executes the steps 401, 501, 603-606, etc. of the method embodiments of processing information described above in combination with the hardware.
[0269] The communication interface 1003 uses a transceiver device such as but not limited to a transceiver to realize the communication between the switching device 100 and other devices or communication networks. For example, the communication interface 1003 can interact with other switching devices (such as the second switching device involved in any of the above embodiments) to exchange information.
[0270] Bus 1004 enables the transmission of information between various components of switching device 100 (e.g., memory 1001, processor 1002, and communication interface 1003). Bus 1004 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of representation, Figure 10 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0271] In another embodiment of this application, a computer-readable storage medium is also provided, which stores computer-executable instructions. When the processor of the device executes the computer-executable instructions, the device performs the aforementioned... Figure 10 The steps performed by the processor in the process.
[0272] In another embodiment of this application, a computer program product is also provided, which includes computer-executable instructions stored in a computer-readable storage medium; when the processor of the device executes the computer-executable instructions, the device performs the above-described... Figure 10 The steps performed by the processor in the process.
[0273] In another embodiment of this application, a chip system is also provided, the chip system including a processor for implementing the above. Figure 11 The steps performed by the processor. In one possible design, the chip system may also include a memory for storing program instructions and data necessary for data writing. The chip system may consist of chips or may include chips and other discrete components.
[0274] Figure 11 The diagram shown is a possible logical structure schematic of a switching device 110 provided in an embodiment of this application. The switching device 110 is used to implement the functions of the second switching device involved in any of the above embodiments. The switching device 110 includes: a memory 1101, a processor 1102, a communication interface 1103, and a bus 1104. The memory 1101, processor 1102, and communication interface 1103 are interconnected via the bus 1104.
[0275] The memory 1101 can be a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1101 can store programs, and when the programs stored in the memory 1101 are executed by the processor 1102, the processor 1102 and the communication interface 1103 are configured to perform steps 402, 502-503, 601-602, etc. of the method embodiments of processing information described above.
[0276] The processor 1102 can be a central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), a graphics processing unit (GPU), a digital signal processor (DSP), a field-programmable gate array (FPGA), or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, or any combination thereof, configured to execute related programs to implement the functions required by the receiving module, the updating module, the obtaining module, and the sending module in the device for processing information of the second switching device in the above embodiments, or to perform steps 402, 502-503, 601-602, etc. of the method embodiments of processing information of the method embodiments of the present application. The steps of the method disclosed in the embodiments of the present application can be directly embodied by a hardware decoding processor for execution, or by a combination of hardware and software modules in the decoding processor for execution. The software module can be located in a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, or other mature storage media in the art. The storage medium is located in the memory 1101, and the processor 1102 reads the information in the memory 1101 and combines the hardware to perform steps 402, 502-503, 601-602, etc. of the method embodiments of processing information described above.
[0277] The communication interface 1103 uses a transceiver device such as, but not limited to, a transceiver to realize the communication between the switching device 110 and other devices or communication networks. For example, information can be exchanged with the first switching device or related nodes involved in any of the above embodiments.
[0278] Bus 1104 enables the transmission of information between various components of switching device 110 (e.g., memory 1101, processor 1102, and communication interface 1103). Bus 1104 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of representation, Figure 11 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0279] In another embodiment of this application, a computer-readable storage medium is also provided, which stores computer-executable instructions. When the processor of the device executes the computer-executable instructions, the device performs the aforementioned... Figure 11 The steps performed by the processor in the process.
[0280] In another embodiment of this application, a computer program product is also provided, which includes computer-executable instructions stored in a computer-readable storage medium; when the processor of the device executes the computer-executable instructions, the device performs the above-described... Figure 11 The steps performed by the processor in the process.
[0281] In another embodiment of this application, a chip system is also provided, the chip system including a processor for implementing the above. The steps performed by the processor. In one possible design, the chip system may also include a memory for storing program instructions and data necessary for data writing. The chip system may consist of chips or may include chips and other discrete components.
[0282] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of this application.
[0283] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0284] In several embodiments provided by the embodiments of the present application, it should be understood that the disclosed system, device and method can be implemented by other ways. For example, the device embodiments described above are merely illustrative, for example, the division of units is merely a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interfaces, devices or units, and can be electrical, mechanical or other forms.
[0285] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, that is, can be located in one place, or can be distributed to a plurality of network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiments of the present application.
[0286] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can be physically present separately, or two or more units can be integrated into one unit.
[0287] If the function is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application essentially or say the part that contributes to the prior art or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a plurality of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the embodiments of the present application. The foregoing storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and various program codes that can store medium.
[0288] The above is only a specific implementation of the embodiments of the present application, but the protection scope of the embodiments of the present application is not limited thereto.
Claims
1. A network system characterized by comprising: The network system comprises a first switching device and a second switching device, the network system corresponds to at least one partition set, each of the partition sets comprises at least one partition, each of the partitions comprises a plurality of nodes allowing mutual visit, the partitions contained in different partition sets are different, and the partitions in different partition sets are isolated from each other; The first switching device is configured to send a first message to the second switching device, the first message comprising information of a first node, the first node being a node in a first partition set corresponding to the first switching device; The second switching device is configured to receive the first message, and when the first node is related to a second partition set corresponding to the second switching device, update information of the first node in the second switching device according to the first message.
2. The network system of claim 1, wherein, The second switching device is further configured to, when the first node is not related to the second partition set, not process the first message.
3. The network system according to claim 1 or 2, characterized by, The second switching device stores a receiving identifier of the second partition set, the information of the first node comprises a sending identifier of a third partition set corresponding to the first node, and the third partition set belongs to the first partition set; The first node being related to the second partition set corresponding to the second switching device comprises that the receiving identifier of the second partition set matches the sending identifier of the third partition set.
4. The network system according to claim 3, characterized by The second partition set comprises a plurality of partition sets, and the receiving identifier of the second partition set matching the sending identifier of the third partition set comprises that the receiving identifier of at least one partition set in the plurality of partition sets matches the sending identifier of the third partition set. The second switching device is further configured to:
5. The network system of claim 4, wherein, receive a configuration message sent by the first switching device, the configuration message comprising a sending identifier of the first partition set and first configuration information of the first partition set; when the sending identifier of the first partition set matches the receiving identifier of the second partition set, update second configuration information of the second partition set according to the configuration message, the second configuration information comprising an identifier of a corresponding partition of the second partition set and information of nodes included in the corresponding partition. The second switching device is further configured to:
6. The network system according to any one of claims 1 to 5, wherein, obtain state change information of a second node associated with the second switching device; send a second message to the first switching device, the second message comprising the state change information of the second node and a sending identifier of a fourth partition set corresponding to the second node, the fourth partition set belonging to the second partition set. The first switching device is further configured to:
7. The network system of claim 6, wherein, receive the second message; when the sending identifier of the fourth partition set matches the receiving identifier of the first partition set, update information of the second node in the first switching device according to the state change information of the second node and the sending identifier of the fourth partition set. The first switching device is further configured to:
8. The network system of claim 7, wherein, generate a third message, the third message comprising the state change information of the second node and the sending identifier of the fourth partition set; sending the third message to other switching devices except the second switching device and connected with the first switching device.
9. The network system according to any one of claims 1 to 8, wherein, The first switching device is a first reflector, the second switching device is a reflector client, the network system further comprises a third switching device, the third switching device is a second reflector, and the first reflector and the second reflector correspond to different partition sets.
10. The network system of claim 9, wherein, The network system is a storage area network (SAN), the plurality of nodes include computing nodes and storage nodes, the network system comprises a first subsystem and a second subsystem, the first subsystem comprises the first switching device and the second switching device, the second subsystem comprises the third switching device, and the storage nodes corresponding to the first subsystem and the second subsystem are backup to each other.
11. A method of processing information, characterized by, The method is applied to a first switching device, the first switching device belongs to a network system, the network system further comprises a second switching device, the network system corresponds to at least one partition set, each partition set comprises at least one partition, each partition comprises a plurality of nodes allowing mutual access, the partitions contained in different partition sets are different, and the partitions in different partition sets are isolated from each other, and the method comprises: sending a first message to the second switching device, so that the second switching device receives the first message and updates information of a first node in the second switching device according to the first message when the first node is related to a second partition set corresponding to the second switching device, the first message comprising information of the first node, and the first node being a node in a first partition set corresponding to the first switching device.
12. The method of claim 11, wherein, The method further comprises: receiving a second message, the second message comprising state change information of a second node associated with the second switching device and a sending identifier of a fourth partition set corresponding to the second node, the fourth partition set belonging to the second partition set; when the sending identifier of the fourth partition set matches a receiving identifier of the first partition set, updating information of the second node in the first switching device according to the state change information of the second node and the sending identifier of the fourth partition set.
13. The method of claim 12, wherein, The method further comprises: generating a third message, the third message comprising the state change information of the second node and the sending identifier of the fourth partition set; sending the third message to other switching devices except the second switching device and connected with the first switching device.
14. A method of processing information, characterized by, The method is applied to a second switching device, the second switching device belongs to a network system, the network system further comprises a first switching device, the network system corresponds to at least one partition set, each partition set comprises at least one partition, each partition comprises a plurality of nodes allowing mutual access, the partitions contained in different partition sets are different, and the partitions in different partition sets are isolated from each other, and the method comprises: receiving a first message, the first message comprising information of a first node, the first node being a node in a first partition set corresponding to the first switching device; The first node is associated with a second partition set corresponding to the second switching device, and the information of the first node in the second switching device is updated according to the first message.
15. The method of claim 14, wherein, The method further comprises: When the first node is not associated with the second partition set, the first message is not processed.
16. The method according to claim 14 or 15, characterized in that The second switching device stores a receiving identifier of the second partition set, the information of the first node comprises a sending identifier of a third partition set corresponding to the first node, and the third partition set belongs to the first partition set; The second partition set corresponding to the second switching device comprises a receiving identifier of the second partition set and a sending identifier of the third partition set.
17. The method of claim 16, wherein, The second partition set comprises a plurality of partition sets, and the receiving identifier of the second partition set and the sending identifier of the third partition set are matched. The receiving identifier of at least one partition set in the plurality of partition sets and the sending identifier of the third partition set are matched.
18. The method of claim 17, wherein, The method further comprises: A configuration message sent by the first switching device is received, the configuration message comprising a sending identifier of the first partition set and first configuration information of the first partition set; When the sending identifier of the first partition set and the receiving identifier of the second partition set are matched, second configuration information of the second partition set is updated according to the configuration message, the second configuration information comprising an identifier of a corresponding partition of the second partition set and information of nodes included in the corresponding partition.
19. The method according to any one of claims 14-18, characterized by, The method further comprises: State change information of a second node associated with the second switching device is obtained; A second message is sent to the first switching device, the second message comprising the state change information of the second node and a sending identifier of a fourth partition set corresponding to the second node, the fourth partition set belonging to the second partition set.
20. A switching device, characterized by The switching device comprises at least one processor, a memory, and instructions stored on the memory and executable by the at least one processor, and the at least one processor executes the instructions to implement the steps of the method of any one of claims 11 to 13.
21. A switching device, characterized by The switching device comprises at least one processor, a memory, and instructions stored on the memory and executable by the at least one processor, and the at least one processor executes the instructions to implement the steps of the method of any one of claims 14 to 19.
Citation Information
Patent Citations
Fibre channel switch that enables end devices in different fabrics to communicate with one another while retaining their unique fibre channel domain_ids
CN101795298A
Ethernet storage system and information notification method and related device thereof
CN113810439A