Configuration information synchronization method and device, storage medium and electronic equipment

By dynamically adjusting the network configuration information between the two nodes in a hyper-converged environment, the problem of being unable to establish an efficient and highly available hyper-converged connection is solved, and the high availability and high performance of the network is achieved, and the equipment acquisition and maintenance costs are reduced.

CN119854320AActive Publication Date: 2025-04-18JINAN INSPUR DATA TECH CO LTD

Patent Information

Application Number
CN202510327017.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-19
Publication Date
2025-04-18
Estimated Expiration
2045-03-19

AI Technical Summary

Technical Problem

In the prior art, it is impossible to directly establish efficient and highly available hyperconverged connections between two nodes while maintaining failover and high bandwidth transmission capabilities.

Method used

When the first host and the second host have established a communication link, the target message carrying the first configuration information is determined, and the data transmission strategy is adjusted based on the network card binding mode, and the network interface attributes are dynamically adjusted to realize synchronization and dynamic adjustment of the configuration information.

Benefits of technology

It solves the problem of maintaining high network availability and high performance in a switch-free environment, and reduces the acquisition and maintenance costs of network equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119854320A_ABST
    Figure CN119854320A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a configuration information synchronization method and device, a storage medium and electronic equipment, and the method comprises the steps: determining a target message carrying first configuration information under the condition that a communication link is established between a first host and a second host; determining a network card binding mode of the first host and the second host based on the first configuration information, and regulating and controlling a target strategy used for sending target data between the first host and the second host based on the network card binding mode; determining a control instruction for adjusting a first interface attribute corresponding to the first host or a second interface attribute corresponding to the second host according to the target strategy, and modifying the first configuration information based on the control instruction to obtain second configuration information; and replacing the first configuration information with the second configuration information as the content carried by the target message to obtain a target update message, and issuing the target update message for synchronously adjusting the configuration information of the first host and the second host in the running state.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the field of data center technology, and more specifically, to a configuration information synchronization method, device, storage medium, and electronic device. Background Art

[0002] Among the related technologies, Hyper-Converged Infrastructure (HCI) is a new generation of IT solutions that integrates computing, storage, and network functions through software-defined technology, showing highly integrated and automated characteristics, especially adapted to the modern applications and massive data processing needs faced by enterprises in digital transformation. Its simplified architecture and resource pooling significantly improve resource management efficiency and utilization, support flexible expansion, especially benefit small and micro enterprises, and achieve low-cost deployment and seamless expansion of future resources. In the deployment of a hyper-converged network, it is usually required to isolate the management network, business network, and storage network. Each network uses different bandwidths according to traffic requirements, such as 1G for the management network and 10G for the business network and storage network or higher. However, for a small hyper-converged environment with only two nodes, purchasing a high-bandwidth switch means a waste of resources and additional maintenance costs, especially considering the redundant configuration of the switch. That is, for some small-scale users, such as only two nodes, it means that these devices also need to be purchased. Although only a limited number of ports in these devices are used, and in order to ensure high availability of each network, these switches often have redundant copies. In fact, most of the resources of these network devices are idle, which not only causes a waste of network resources, but also causes considerable expenses in daily operation and maintenance.

[0003] Currently, no effective solution has been proposed to the problem in related technologies that it is impossible to directly establish an efficient and highly available hyper-converged connection between two nodes while maintaining fault switching and high-bandwidth transmission capabilities. Summary of the invention

[0004] The embodiments of the present application provide a configuration information synchronization method, device, storage medium and electronic device to at least solve the problem in the related art that it is impossible to directly establish an efficient and highly available hyper-converged connection between two nodes while maintaining fault switching and high-bandwidth transmission capabilities.

[0005] According to an embodiment of the present application, a method for synchronizing configuration information is provided, including: when a first host and a second host have established a communication link, determining a target message carrying first configuration information, wherein the target message is used to synchronize configuration information between the first host and the second host; confirming a network card binding mode between the first host and the second host based on the first configuration information, and regulating a target policy for sending target data between the first host and the second host based on the network card binding mode; determining a control instruction for adjusting a first interface attribute corresponding to the first host or a second interface attribute corresponding to the second host based on the target policy, modifying the first configuration information based on the control instruction, and obtaining second configuration information; replacing the first configuration information with the second configuration information as the content carried by the target message, obtaining a target update message, and issuing the target update message for synchronously adjusting the configuration information of the first host and the second host in a running state.

[0006] According to another embodiment of the present application, a configuration information synchronization device is provided, including: a determination module, used to determine a target message carrying first configuration information when a communication link has been established between a first host and a second host, wherein the target message is used to synchronize configuration information between the first host and the second host; a regulation module, used to confirm a network card binding mode between the first host and the second host based on the first configuration information, and regulate a target policy for sending target data between the first host and the second host based on the network card binding mode; a modification module, used to determine a control instruction for adjusting a first interface attribute corresponding to the first host or a second interface attribute corresponding to the second host according to the target policy, and modify the first configuration information based on the control instruction to obtain the second configuration information; a synchronization module, used to replace the first configuration information with the second configuration information as the carried content of the target message, obtain a target update message, and issue the target update message for synchronously adjusting the configuration information of the first host and the second host in a running state.

[0007] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0008] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0009] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0010] The present application relates to synchronizing and dynamically adjusting configuration information between two hosts (a first host and a second host) in a hyper-converged environment, especially in a direct network configuration without using a switch, specifically including: after the first host and the second host establish a communication link through a direct optical fiber connection, a target message containing the first configuration information is periodically sent. These messages are used to synchronize the status and configuration of the network interface between the two hosts. After receiving the target message, the controller (or the control agent in the host) will analyze the first configuration information, confirm the binding mode of the network card between the first host and the second host, and determine the strategy of how to send the target data (such as data transmission between virtual machines) according to the network card binding mode. In addition, when the first configuration information indicates that the network interface or binding mode needs to be adjusted, a corresponding control instruction will be generated. According to the control instruction, the first host will modify its first configuration information (i.e., the attributes of the network interface), and the updated content becomes the second configuration information. The second configuration information will be used for the subsequent sending of target messages to ensure the synchronization and consistency of the configuration information between the two hosts. Therefore, the problem in related technologies that it is impossible to directly establish an efficient and highly available hyper-converged connection between two nodes while maintaining fault switching and high-bandwidth transmission capabilities is solved, ensuring that the high availability and high performance of the network can be maintained even in the scenario of direct fiber connection, while reducing the cost of purchasing and maintaining network equipment. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 It is a hardware structure block diagram of a server device of a configuration information synchronization method according to an embodiment of the present application;

[0012] Figure 2 is a flowchart of a method for synchronizing configuration information according to an embodiment of the present application;

[0013] Figure 3 is a topology diagram of a common hyper-converged network according to an embodiment of the present application;

[0014] Figure 4 This is a schematic diagram of a traffic forwarding path when dual network cards are bound in a common hyper-converged network according to an embodiment of the present application;

[0015] Figure 5 This is a schematic diagram of a switch-free simplified hyper-converged network topology according to an embodiment of the present application;

[0016] Figure 6 It is a structural diagram of an IFACESYND message format according to an embodiment of the present application;

[0017] Figure 7 This is a schematic diagram of a network using transfer and control separation in hyper-convergence according to an embodiment of the present application;

[0018] Figure 8This is a schematic diagram of IFACESYND message interaction according to an embodiment of the present application;

[0019] Fig. 9 This is a schematic diagram of the traffic path when dual network cards are bound in a simplified hyper-converged network without a switch according to an embodiment of the present application;

[0020] Fig.10 is a structural block diagram of a device for synchronizing configuration information according to an embodiment of the present application;

[0021] Fig.11 It is a block diagram of the computer system structure of the electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0022] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0024] In this embodiment, a method for synchronizing configuration information is also provided. The system is used to implement the embodiments and preferred implementation modes. The descriptions that have been made are omitted. As used below, the terms "module" and "unit" are combinations of software and / or hardware that can implement predetermined functions. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0025] As an optional implementation, the method embodiment provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a server device of a configuration information synchronization method according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the above-mentioned server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0026] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for synchronizing configuration information in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0027] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0028] In this embodiment, a method for synchronizing configuration information is provided. Figure 2 is a flowchart of a method for synchronizing configuration information according to an embodiment of the present application. Figure 2 As shown, the process includes the following steps:

[0029] Step S202, when the first host and the second host have established a communication link, determining a target message carrying the first configuration information, wherein the target message is used to synchronize configuration information between the first host and the second host;

[0030] Step S204, confirming the network card binding mode of the first host and the second host based on the first configuration information, and adjusting the target policy for sending target data between the first host and the second host based on the network card binding mode;

[0031] Step S206, determining a control instruction for adjusting a first interface attribute corresponding to the first host or a second interface attribute corresponding to the second host according to the target policy, and modifying the first configuration information based on the control instruction to obtain second configuration information;

[0032] Step S208: Use the second configuration information to replace the first configuration information as the carried content of the target message, obtain a target update message, and send the target update message to synchronously adjust the configuration information of the first host and the second host in the running state.

[0033] It should be noted that the target message is a definition message in the Ethernet Layer 2 message format, and the target message includes at least one of the following: the name of the network card in different hosts, the status of the network card in different hosts, the MAC (Media Access Control Address, MAC for short) addresses corresponding to different hosts, the binding types corresponding to different hosts, the binding names corresponding to different hosts, the binding modes corresponding to different hosts, and the names of the master network card and the slave network card corresponding to different hosts.

[0034] Through the above method, on the basis of the communication link established between the first host and the second host, the real-time synchronization of configuration information is achieved by sending and receiving target messages, ensuring that the high availability and high performance of the network can be maintained even in a direct connection environment without a switch. Further, a target message carrying the first configuration information is determined and sent for synchronization of configuration data between the two hosts; then, the binding mode (such as mode1 or mode4) of the network cards of both parties is confirmed based on the first configuration information contained in the message, and the data sending strategy is adjusted accordingly to ensure reliable data transmission and timely response to faults; then, control instructions are dynamically generated according to the target strategy to adjust the network interface properties of the first host or the second host to respond to configuration changes or network anomalies; finally, a target update message is generated through the updated second configuration information to achieve instant synchronization update of configuration information, maintain consistency of network configuration and optimize network operation efficiency.

[0035] In an exemplary embodiment, determining a target message carrying first configuration information includes: obtaining a message format template between a first host and a second host; wherein the message format template includes: a frame header field, an interface synchronization message field, and a frame check sequence field; filling the message format template with the target bytes corresponding to the first configuration information, and encapsulating the filled message format template in an Ethernet frame to obtain a target message.

[0036] In a switchless hyper-converged networking method, in order to ensure that configuration information can be accurately synchronized between two hosts (i.e., a first host and a second host), an optional embodiment of the present application provides a specific message format template for constructing and sending a target message. Before obtaining and sending a target message carrying the first configuration information, the following steps need to be performed:

[0037] Step 1, get the message format template: the host first gets a predefined message format template, which contains three key fields: frame header field, interface synchronization message field and frame check sequence field. The frame header field is responsible for the basic information of the message, such as source address, destination address and type identification; the interface synchronization message field is used to carry the network interface configuration information that needs to be synchronized between the two hosts; and the frame check sequence field is used for data integrity verification to ensure that the message has not been tampered with or damaged during transmission.

[0038] Step 2, fill in the message format template: The host uses the first configuration information, that is, the network card name, status, MAC address, binding type, binding name, binding mode, primary network card and other information of the current host, to fill in the interface synchronization message field in the message format template. Here, the first 3 bits of each record are used to identify the record type, and the 4th to 8th bits are used to indicate the length of the data part to ensure that the receiving end can accurately parse each field. According to actual needs, the data length and type in this field can be flexibly adjusted to meet the transmission requirements of different configuration information.

[0039] Step 3, encapsulate and send the target message: After completing the filling, the host encapsulates the entire message format template into an Ethernet frame to form a target message. Here, the type field of the Ethernet frame is set to 0xC001, which is the identifier of the IFACESYND message defined in this application, ensuring that the network device can recognize and correctly process this special type of message. Subsequently, the target message is periodically sent through the network card and sent to the second host to complete the synchronization of the configuration information. Optionally, the above-mentioned identifier can also be defined by other fields, and this application does not make too many restrictions on this.

[0040] Through the above embodiments, two hosts can synchronize network configuration information in real time using a directly connected link without relying on a physical switch. The definition of the message format template, the filling of configuration information, and the encapsulation and sending of the target message constitute a complete mechanism to ensure that even under a network architecture, the high availability of the network, bandwidth requirements, and failover functions can be maintained.

[0041] In an exemplary embodiment, a message format template is filled using target bytes corresponding to the first configuration information, including: determining the byte lengths corresponding to different types of fields in the message format template and the target number of records allowed for the interface synchronization message field; dividing the filling positions of different types of fields in the message format template according to the byte length and the target number; and completing the filling of the message format template based on the filling position and the target bytes corresponding to the first configuration information.

[0042] It should be noted that before filling the message format template, it is first necessary to determine the byte length of the interface synchronization message field and the number of target configuration information that the field allows to be recorded. This step is crucial because it directly determines how much information the message can carry and how to effectively use limited space to store necessary configuration data. As an example, the interface synchronization message field in the IFACESYND message format template defined in the embodiment of the present application allows multiple records to be included, and each record uses up to 32 bytes. Among them, the type of record is indicated by the first 3 bits, and the length of the data part is indicated by the 4th to 8th bits, which can indicate a total of 32 bytes. By controlling the record type and data length, it can be ensured that the message field can carry rich configuration information while avoiding data overflow or space waste. Secondly, after determining the byte length and number of records of the message field, it is necessary to allocate and indicate the filling position of different attribute data based on this information. Specifically, in this application, the data portion of each record is designed to carry specific configuration information related to the network card, such as the network card name (name), state (states), MAC address (mac_addr), bonding type (bond_type), bonding name (bond_name), bonding mode (bond_mode), current master network card (active_slave) and slave network card name (slave_name), etc. Based on the above-determined byte length, number of records and filling positions assigned to different attribute data, the system uses the target bytes in the first configuration information to fill the message format template. This process involves filling the attribute data of each configuration record into the interface synchronization message field in sequence, ensuring that each field is correctly filled and the integrity of the information is not destroyed. Once the filling is completed, the message format template will be encapsulated into an Ethernet frame to form a target message, which is then periodically sent out through the network card.

[0043] Optionally, in order to efficiently utilize the message fields, the above embodiment may adopt a dynamic filling indication mechanism in practical applications. That is, the byte length of each record in the message may be adjusted according to the actual configuration information content carried. For example, if the content of a certain configuration item is shorter, the number of bytes allocated to it may be reduced, thereby leaving more space for other longer configuration items. In addition, since "slave_name" may appear multiple times in the form of multiple records, the system may flexibly adjust the number of records of this item according to actual needs to ensure that all slave network card information can be carried completely.

[0044] In summary, through the above implementation, the network configuration information between two directly connected hosts can be accurately and efficiently encapsulated and synchronized, and even in a network environment without a switch, the high availability of the network and the continuity of data transmission can be guaranteed, while solving the problem of network interruption caused by resource waste and inconsistent configuration in the traditional mode.

[0045] In an exemplary embodiment, the filling of the message format template is completed based on the filling position and the target bytes corresponding to the first configuration information, including: parsing the first configuration information, determining the target source address corresponding to the first host, the target destination address corresponding to the second host, and multiple configuration records between the first host and the second host according to the parsing result, wherein each configuration record includes at least: a configuration subtype corresponding to each host, a length of a configuration record corresponding to each host, and data of a configuration record corresponding to each host; filling a frame header field in the message format template according to the target source address and the target destination address, wherein the frame header field includes at least: a destination address, a source address, and a type field; the type field is used to indicate the type of the encapsulation byte in the middle of the current message format template; filling an interface synchronization message field in the message format template according to multiple configuration records.

[0046] It is understandable that the host needs to parse the first configuration information, which contains the detailed configuration of the network interface of the host itself and the other host, such as the network card name, status, MAC address, binding type, binding name, binding mode, current master network card and slave network card. The parsing process will extract key parameters from the first configuration information, including the target source address of the first host and the target destination address of the second host, as well as multiple configuration records between the two hosts. These configuration records will be used for subsequent message filling operations to ensure that the message can accurately reflect the latest status of the network interface. After determining the target address, the frame header field in the message format template needs to be filled in. This field includes the destination address, source address and type field. The destination address and source address are filled with the MAC addresses of the second host and the first host respectively to ensure that the message can be sent and received correctly. The type field is set to 0xC001, which is the identifier of the IFACESYND message, which indicates that the interface synchronization message is encapsulated in the middle of the current message format template, rather than other types of network data packets. In this way, the receiver can quickly identify and correctly process the synchronization message to avoid confusion with other network traffic. The interface synchronization message field in the message format template is filled according to the multiple configuration records obtained by parsing. Each configuration record includes at least a configuration subtype, a record length, and actual data. The configuration subtype is indicated by the first 3 bits in the record, which is used to identify the specific type of the record, such as the network interface name, status, MAC address, etc. The record length is indicated by bits 4 to 8, which reflects the length of the data part of the configuration record, ensuring that the receiver can accurately parse each record. During the filling process, the system will fill the data part of each configuration record into the interface synchronization message field according to the specified format and position to form a complete IFACESYND message unit. At the same time, considering that the "slave_name" field may contain multiple network card information, the message format template allows this field to appear in the form of multiple records to ensure that the detailed information of all slave network cards is fully carried. Once the message format template is filled, the system will generate a target message and send it periodically through the network card. The target message not only carries the latest configuration information of the first host, but also contains the configuration status of the second host, ensuring two-way synchronization between the two hosts. The message sending module uses the multicast address (01:80:c2:00:00:a0) as the destination address, and keeps the network configuration status updated in real time by sending periodically, while using the frame check sequence field to ensure the integrity of the transmission. This mechanism is particularly critical in a switchless environment because it allows the host to autonomously adjust and optimize the network configuration to achieve high availability and failover without relying on physical network devices. When the target message is received and parsed, the receiver will compare the configuration information carried in the message with its own configuration to confirm the consistency of the configuration.If a difference is found, the system will generate a control instruction to adjust its own network interface properties, such as switching the primary and backup network cards or updating the network card status. The modified configuration information becomes the second configuration information, which will be used to generate subsequent target update messages to continuously synchronize the network configuration status of both parties, ensuring the optimization of network operation and rapid response to faults.

[0047] Through the above embodiments, it is explained in detail how to maintain the real-time synchronization and dynamic adjustment of the network configuration between two hosts through the generation and sending of intelligent messages, thereby simplifying the network architecture and reducing hardware costs while ensuring the high availability, high performance and fault switching capabilities of the network, providing a practical solution for small-scale hyper-converged deployment scenarios.

[0048] In an exemplary embodiment, after determining the target message carrying the first configuration information, the above method also includes: recording the initial sending time of the target message; calculating the synchronization period of the target message based on the initial sending time and the preset interval duration, wherein the preset interval duration is a time configuration parameter in the deployed converged networking system, and the synchronization period is used to indicate the frequency of repeated synchronization of the target message between the first host and the second host.

[0049] In the switchless hyper-converged networking method, ensuring the continuous synchronization and timely update of configuration information is the key to maintaining network stability and high availability. Therefore, this application introduces a precise management mechanism for the target message sending cycle to adapt to the real-time needs of system operation. Specifically, it is achieved through the following steps:

[0050] Step S32, record the initial sending time of the target message: When the first host determines and sends the target message carrying the first configuration information for the first time, the system will record the initial sending time of the message. The record of this timestamp provides a benchmark for the subsequent calculation of the message synchronization cycle, ensuring that the update of the configuration information can follow the preset time law, rather than being random or disordered. By recording the initial sending time, the system can accurately track the sending history of the message, so as to perform time calibration or adjustment when necessary to maintain the synchronization of the network configuration.

[0051] Step S34, calculate the synchronization period based on the initial sending time and the preset interval duration: The preset interval duration is an important time configuration parameter, which is set at the beginning of the deployment of the hyper-converged networking system to define the frequency of configuration information synchronization. This parameter takes into account the possible speed of network status changes, the system's response requirements to configuration changes, and the impact of message sending on network resources, ensuring the rationality and effectiveness of the synchronization period. The system calculates the specific target message synchronization period based on the initial sending time and preset interval duration of the target message. Based on this period, the first host will periodically send the target message to the second host to synchronize the configuration information. This mechanism ensures that even when the network environment changes or failures occur, the configuration information can be updated quickly and accurately, reducing the network interruption time caused by inconsistent information.

[0052] Step S36, dynamic adjustment of synchronization cycle: Although the preset interval duration provides a basic synchronization frequency, in certain specific situations, such as network congestion, device fault detection or configuration changes, the synchronization cycle may need to be dynamically adjusted. For example, when network congestion is detected, the system may temporarily extend the synchronization cycle to avoid excessive message sending that increases the network burden; and when an emergency configuration change occurs, such as a network card failover, the synchronization cycle may be shortened to ensure that the configuration information can be quickly communicated to the other end and the link can be adjusted in time. This dynamic adjustment strategy is based on intelligent management of the real-time status of the network and system requirements, which further enhances the flexibility and responsiveness of the hyper-converged environment.

[0053] Step S38, continuity and reliability of message transmission: In order to ensure the continuity and reliability of configuration information synchronization, the system has designed a fault recovery mechanism. Within the preset synchronization period, if the first host finds that the network connection is abnormal or the message transmission fails when continuously sending the target message, it will automatically adopt a fault recovery strategy, such as retrying transmission, switching to a backup link, or adjusting the message size to reduce the possibility of transmission failure. At the same time, the synchronization cycle calculation mechanism of the target message also has a certain fault tolerance capability. Even after one or several message transmission failures, the system can recalculate the synchronization cycle based on the latest network status and time parameters to restore the normal synchronization of the configuration information.

[0054] Through the embodiments, the present application not only realizes the periodic synchronization of configuration information between two hosts in a switchless environment, but also provides precise management and dynamic adjustment strategies for the synchronization period to adapt to changes in the network environment and system requirements. This mechanism ensures the real-time and consistency of network configuration, and even in the architecture of direct fiber connection, it can ensure the high availability and fault switching capability of the network, reduce the purchase and maintenance costs of network equipment, and is particularly beneficial for small and micro enterprises and hyper-convergence deployment in specific scenarios.

[0055] In an exemplary embodiment, a control instruction for adjusting a first interface attribute corresponding to a first host or a second interface attribute corresponding to a second host is determined according to a target policy, and before the first configuration information is modified based on the control instruction, the method further includes: receiving parameter information input by an operation and maintenance object; determining whether a communication link between the first host and the second host is adjusted based on the parameter information; if the communication link has not been adjusted, allowing the use of control instructions to modify the first configuration information; if the communication link has been adjusted, prohibiting the use of control instructions to modify the first configuration information, and changing the first interface attribute corresponding to the first host or the second interface attribute corresponding to the second host based on the parameter information.

[0056] In simple terms, the operation and maintenance object, such as a network administrator or an automated operation and maintenance system, can input parameter information to the converged networking system through a specific interface. This information may include changes in the status of the network link, physical connection adjustments of the device, and requests to modify the network configuration. The converged networking system receives this parameter information as a basis for deciding whether the communication link needs to be adjusted. Based on the received parameter information, the converged networking system analyzes whether the communication link between the first host and the second host has been adjusted. These adjustments may include changes in physical connections (such as reconnection of optical fibers), replacement of network devices, or changes in software configuration. The adjustment of the communication link has a direct impact on the sending path and receiving mechanism of the message, so the converged networking system needs to monitor and evaluate the link status in real time.

[0057] Optionally, when the communication link is not adjusted, the system allows the use of control instructions to modify the first interface attribute corresponding to the first host or the second interface attribute corresponding to the second host. These control instructions are generated based on the target policy and are used to adjust the state of the network card (such as active-standby switching), the bonding mode or the link aggregation policy to optimize network performance or respond to failures. The execution of the control instructions helps to maintain the consistency and high availability of the network configuration, while reducing unnecessary link adjustments and avoiding waste of resources. However, when the communication link has been adjusted, the system will disable the modification of the current configuration information by the control instructions. This is because the physical or logical adjustment of the link has occurred between the two hosts. If the control instructions are used to modify the configuration at this time, it may cause the configuration information to be inconsistent with the actual link state, thereby causing network connection failure or data transmission abnormality. In order to avoid this problem, the system will directly change the interface attributes of the first host or the second host based on the parameter information to ensure that the configuration information matches the link state and maintain the stable operation of the network.

[0058] Optionally, when the communication link adjustment is detected, the system no longer relies on the control instruction to modify the configuration information, but directly changes the interface properties of the first host or the second host based on the parameter information. This may include operations such as updating the MAC address table, adjusting the working mode of the network card, or reconfiguring the flow table of the virtual switch. The direct application of parameter information changes avoids configuration inconsistencies caused by improper timing of control instruction execution, and ensures the timeliness and accuracy of network configuration.

[0059] Through the above embodiments, while ensuring that the network configuration information can be updated and adjusted in a timely manner, it also effectively prevents configuration conflicts that may occur when the communication link status changes, thereby improving the stability and security of the system. This dynamic adjustment strategy based on parameter information not only adapts to the real-time changes in the network environment, but also ensures the consistency of network configuration and high availability of communication links under the direct host architecture, providing a more flexible and reliable network management solution for small-scale deployment of hyper-converged environments.

[0060] In an exemplary embodiment, a target policy for sending target data between a first host and a second host is regulated based on a network card binding mode, including: when it is determined that the network card binding modes of the first host and the second host are both active backup policy modes, determining network card information of network cards carried by the first host and the second host based on first configuration information, wherein the network card information includes at least: the network card name of the primary network card and the network card name of the backup network card in the first host and the second host; identifying the difference between the network card information and the original network card information pre-stored in the converged networking system; and determining the target policy to be enabled based on the difference result.

[0061] In an exemplary embodiment, a target policy to be enabled is determined based on a difference result, including: when the difference result indicates that there is no change in the primary network card connection and the backup network card connection between the first host and the second host, determining that the data transmission interface between the first host and the second host is operating normally, and waiting to execute a first target policy, wherein the first target policy is to enable the data transmission interface to execute target data transmission; when the difference result indicates that there is at least one connection change in the primary network card connection and the backup network card connection between the first host and the second host, determining that the data transmission interface between the first host and the second host is operating abnormally normally, and waiting to execute a second target policy, wherein the second target policy is to suspend the use of the data transmission interface, and instruct the second host to execute a primary-backup network card switching operation to adjust the interface parameters.

[0062] In the embodiment, the converged networking system adjusts the data transmission strategy by analyzing the network card binding mode of the two hosts. If the modes are both active backup strategies, the system will compare the current network card information with the pre-stored information, and enable the first strategy of normal data transmission if there is no change; if a connection change is detected, the second strategy will be executed, that is, suspending data transmission and triggering the backup network card switching to ensure link reliability. This mechanism dynamically adjusts the data path in a hyper-converged network without a switch, avoids communication failures caused by configuration mismatch, and improves the network's adaptability and stability.

[0063] In an exemplary embodiment, after determining that the data transmission interface between the first host and the second host is operating normally and the first target strategy is to be executed, the method further includes: obtaining a first address corresponding to the first host and a second address corresponding to the second host; when the character length of the first address is greater than or equal to the character length of the second address, prohibiting activation of the primary-backup network card switching operation corresponding to the first host; and when the character length of the first address is less than the character length of the second address, determining to execute the primary-backup network card switching operation on the first host.

[0064] Optionally, the converged networking system first obtains address information from the first host and the second host, which usually refers to the MAC address, which is a hardware address used to uniquely identify a device in the network. Next, the converged networking system compares the character lengths of the two addresses. It should be noted that "character length" can be understood as the representation length of the MAC address, that is, the address value size, but the length of the MAC address is usually fixed (for example, when expressed in hexadecimal, it is usually 12 characters). When some parts of the MAC address are zero, the zero character can be omitted, resulting in different actual display lengths. Based on the comparison result of the address length, if the address length of the first host is greater than or equal to that of the second host, the converged networking system will prohibit the first host from switching the primary and standby network cards. This is intended to avoid the instability of the link or communication failure caused by the simultaneous switching of the network card roles of both parties. Conversely, if the address length of the first host is less than that of the second host, the converged networking system will determine that the first host needs to perform the primary and standby network card switching operation. This mechanism ensures that when the data transmission interface is working normally, only one party will execute the switching of the primary and backup network cards. This not only simplifies the network management process, but also improves the stability and reliability of the network, avoiding brief communication interruptions caused by simultaneous switching of both parties, and provides a smarter and more flexible network link management solution for hyper-converged environments, especially in switchless scenarios.

[0065] Through the above embodiments, not only the intelligent synchronization of network configuration information is achieved, but also the conflicts that may occur during the synchronization of network configuration are effectively avoided by comparing the address lengths, thereby ensuring the continuity and reliability of communication between the two hosts.

[0066] In an exemplary embodiment, a target strategy for sending target data between a first host and a second host is regulated based on a network card binding mode, including: when it is determined that the network card binding modes of the first host and the second host are both dynamic link aggregation modes, determining the working status information of the primary network card and the backup network card in the first host and the second host based on the first configuration information; when the working status information indicates that at least one host is abnormal, disabling the currently enabled network cards of the first host and the second host, and waiting to execute a third target strategy, wherein the third target strategy is to use network cards other than the disabled network card to transmit target data between the first host and the second host.

[0067] In an optional embodiment, the converged networking system adopts an intelligent control strategy based on the network card binding mode (dynamic link aggregation mode) to ensure the reliability and efficiency of data transmission between the first host and the second host. Specifically, when the network cards of the two hosts are bound through dynamic link aggregation (mode4), the converged networking system will monitor and determine the working status information of the network card based on the first configuration information, that is, the current network configuration status, including but not limited to the network card speed, duplex setting, error rate and LACP (Link Aggregation Control Protocol, referred to as LACP, link aggregation control protocol) negotiation status. Specifically, the process is as follows:

[0068] In dynamic link aggregation mode, the converged networking system periodically checks the working status of the primary and standby network cards in the first and second hosts. This includes but is not limited to checking the physical connection status of the network interface, the negotiation results of the LACP protocol, the traffic status of the network interface, etc. The converged networking system analyzes the working status information and immediately disables the currently enabled network card if it finds that there is an abnormality in the network card on at least one host, such as physical connection interruption, LACP negotiation failure, or network card failure. This action is intended to prevent data from being transmitted through the problematic link to avoid data loss or communication delay. After detecting the abnormality and disabling the relevant network card, the converged networking system automatically switches to the third target strategy. This strategy uses other network cards except the disabled network card for data transmission, which usually means that the converged networking system selects another working network card as the new data transmission link to maintain the communication continuity between the first and second hosts. If both hosts have multiple network cards, the converged networking system selects the best standby network card for data transmission.

[0069] By implementing the above implementation, it is possible to automatically adapt to changes in the network environment, especially in the multi-NIC dynamic link aggregation mode, quickly detect and respond to NIC anomalies, ensure high availability and efficiency of data transmission, and effectively manage and maintain network links even in a converged networking environment without using physical switches, ensuring business continuity and user experience. This mechanism is particularly important for application scenarios that require high bandwidth and low latency, because it can automatically identify and eliminate network failures and maintain stable transmission of data streams without sacrificing performance.

[0070] In an exemplary embodiment, before obtaining the target message carrying the first configuration information, the above method also includes: determining the communication type deployed between the first host and the second host; when the communication type indicates that the target object is set to switchless communication in the converged networking system, activating the target service for generating the target message.

[0071] In this exemplary embodiment, the converged networking system first identifies the type of communication used between the first host and the second host. When it is confirmed that the communication type is a switchless direct connection mode, the converged networking system will automatically activate a specific service, which is responsible for creating and sending a target message. The target message contains the first configuration information, which is used to synchronize the configuration status of the network interfaces of the two hosts in real time, such as the active and standby status of the network card, MAC address, binding mode, etc. Activating the target service is a key step to ensure the consistency of network configuration and high availability of the communication link between the two hosts in a switchless environment. In short, the converged networking system automatically adjusts the service status according to the communication type, so as to effectively manage and transmit configuration information under a specific network architecture, avoid network failures and optimize data communications.

[0072] In an exemplary embodiment, when a communication link has been established between the first host and the second host, after determining the target message carrying the first configuration information, the above method also includes: obtaining the real-time transmission quality between the first host and the second host; when the real-time transmission quality is less than the preset transmission quality, increasing the sending frequency of the target message and increasing the message transmission duration of the target message; when the real-time transmission quality is greater than or equal to the preset transmission quality, reducing the sending frequency of the target message and reducing the message transmission duration of the target message.

[0073] In this embodiment, after the two hosts have established a communication link, the converged networking system not only obtains the message carrying the configuration information, but also dynamically monitors the real-time transmission quality of the link. If the detected transmission quality is lower than the preset standard, the converged networking system will take measures to increase the message sending frequency and extend the message transmission time to enhance the stability of the link and ensure that the configuration information is synchronized in a timely and accurate manner. Conversely, if the transmission quality meets or exceeds the preset standard, the converged networking system will reduce the message sending frequency and shorten the transmission time to reduce the network load and optimize the communication efficiency. This dynamic adjustment strategy can balance the timeliness of information synchronization and the effective use of network resources according to the actual network conditions, and improve the flexibility and reliability of switchless hyper-converged networking.

[0074] In an exemplary embodiment, after obtaining the real-time transmission quality between the first host and the second host, the method further includes: parsing the real-time transmission quality; when the parsing result indicates that the first host has a transmission abnormality, generating a first alarm message for prompting to switch the first host's running network card; when the parsing result indicates that the second host has a transmission abnormality, generating a second alarm message for prompting to switch the second host's running network card.

[0075] In this exemplary embodiment, the converged networking system not only obtains and monitors the real-time transmission quality between the first host and the second host, but also further analyzes these data to determine whether the network transmission status is abnormal. The analysis process may include but is not limited to calculating key performance indicators such as packet loss rate, delay, and jitter. If the analysis result shows that the data transmission of the first host is abnormal, such as an increase in packet loss rate or an increase in delay, the converged networking system will generate a first alarm message, prompting that the network card currently running on the first host needs to be switched, which may be from the main network card to the backup network card to restore the communication quality. Similarly, if the data transmission of the second host is abnormal, the converged networking system generates a second alarm message to instruct the second host to switch the corresponding network card. The generation and processing of these alarm messages enables the hyper-converged networking without switches to actively discover and respond to network failures, and ensure the continuity and high efficiency of data transmission through fast network card switching, thereby improving the robustness of the overall network and user experience. This intelligent monitoring and response mechanism based on real-time transmission quality is particularly important for maintaining the normal operation of the network under high load or unstable environment.

[0076] In an exemplary embodiment, when a communication link has been established between the first host and the second host, before determining the target message carrying the first configuration information, the method further includes: deploying a sub-controller in the first host and the second host; obtaining original network card information of corresponding nodes of different hosts before networking through the sub-controller; and storing the original network card information in a target database of a main controller associated with the converged networking system, wherein the sub-controller is connected to the main controller.

[0077] Sub-controllers are deployed inside the first host and the second host respectively. These sub-controllers serve as nodes for data collection and preliminary processing, and are responsible for monitoring and obtaining the original network card information of the host, including the name of the network card, MAC address, current binding mode, etc. The sub-controllers start working immediately after deployment to collect the network card information of the host before networking, which reflects the initial state of the network configuration. The collected information is not limited to the currently active network card, but should also include all available network interfaces to fully understand the initial structure and capabilities of the network. The collected original network card information is then sent to the main controller associated with the converged networking system and stored in the target database of the main controller. There is a connection relationship between the main controller and the sub-controller, and they communicate through the management network. The target database of the main controller is used to store key configuration and status data of the system, including but not limited to network card information, network interface status, link quality, etc., for the system to perform fault detection, performance optimization and configuration information synchronization.

[0078] Through the above-mentioned embodiments, the deployment and communication mechanism of the sub-controller and the main controller is adopted to ensure that the original state information of the network can be accurately recorded and managed in the hyper-converged network without switches, and provide basic data support for subsequent network monitoring, fault switching and configuration information synchronization. By centrally managing this information, the main controller can more effectively allocate and optimize network resources and improve the intelligence level of the entire system during network configuration changes and fault recovery. This architecture can help the system maintain a stable communication link in a complex network environment, ensuring business continuity and data transmission security.

[0079] In an exemplary embodiment, after obtaining the original network card information of the corresponding nodes of different hosts before networking through the sub-controller, the above method also includes: when the original network card information also includes the usage record of each network card in the different hosts and the fault record of each network card, evaluating the remaining service life of the network card according to the usage record and the fault record; determining the update time for replacing the network card hardware of different hosts according to the remaining service life and the normal service life corresponding to the network card.

[0080] In an optional embodiment, after the converged networking system obtains the original network card information before different host networking through the sub-controller, it further uses the network card usage records and fault records in this information to perform in-depth analysis and prediction of the health status of the network card. Specifically, the following steps are included:

[0081] Step 42. Collect usage records and fault records: The original NIC information includes not only the basic configuration and status of the NIC, but also detailed usage records (such as data transfer volume, running time, etc.) and fault records (such as abnormal number, fault type, etc.). These records provide a comprehensive perspective on the actual operation of the NIC and are an important source of data for evaluating the health status of the NIC and predicting the remaining service life.

[0082] Step 44. Evaluate remaining useful life: The converged networking system uses data analysis and prediction algorithms to evaluate the remaining useful life of each network card based on the collected usage and failure records. Generally, the evaluation of remaining useful life will take into account factors such as the degree of wear and tear of the network card, the relationship between the failure rate and time, and the type and model of the network card. This evaluation process is designed to provide early warning of possible network card failures, avoid sudden network interruptions, and improve the stability and reliability of the converged networking system.

[0083] Step 46. Determine the update time: After evaluating the remaining service life of the NIC, the converged networking system compares it with the normal service life of the NIC. The normal service life refers to the time that the NIC is expected to continue to operate without obvious failures and under reasonable use conditions. Based on the comparison between the remaining service life and the normal service life, the converged networking system determines the replacement time of the NIC on each host, that is, the update time. If the remaining service life is much lower than the normal service life, the converged networking system may plan to replace the hardware of the NIC in advance to ensure that the network equipment is updated before failure and avoid business interruption. Conversely, if the remaining service life is close to the normal service life, the converged networking system can postpone the update, effectively utilize existing hardware resources, and reduce unnecessary cost expenditures.

[0084] Through the above-mentioned implementation method, the network card remaining service life evaluation and update time determination mechanism based on usage records and fault records enables the switchless hyper-converged networking solution to not only focus on immediate network performance and fault switching, but also proactively manage the life cycle of network hardware, reduce the impact of hardware failures on network services through predictive maintenance strategies, and rationally plan hardware update cycles to achieve efficient resource utilization and cost control. This mechanism is particularly suitable for network environments that require high availability and long-term stable operation, such as data centers, enterprise internal networks, etc., and improves the robustness and economy of the overall network architecture through intelligent hardware management.

[0085] In an exemplary embodiment, after sending a target update message for synchronously adjusting the configuration information of the first host and the second host in a running state, the above method also includes: determining the adjustment results of the first host and the second host; identifying the target update message according to the adjustment result to set the usage time of the target update message.

[0086] In an exemplary embodiment, the target update message is identified according to the adjustment result, including: when the adjustment result indicates that the adjustment of the first host or the second host fails, the target update message is identified as an invalid message; when the adjustment result indicates that the adjustment of the first host and the second host is successful, the target update message is identified as a valid message.

[0087] The execution subject of the above steps may be a main controller, a terminal, etc., but is not limited thereto.

[0088] In order to facilitate understanding of the implementation methods of the present application, relevant scenarios are now explained, but this does not limit the present application.

[0089] Figure 3 This is a topology diagram of a common hyper-converged network according to an embodiment of the present application. In this environment, there are two nodes: host 1 (i.e., host1) and host 2 (i.e., host2). Each of the two hosts has three types of networks, namely, management network, business network, and storage network. Among them, the management network is a network used by users to control the converged networking system and synchronize the configuration between the nodes of the converged networking system to complete user operation instructions. The business network is generally provided for virtual machines. Users who use virtual machines can access the business network to enable virtual machines to communicate with other nodes or networks outside the converged networking environment; the storage network is the internal network of the converged networking system, which is used to connect various host nodes so that the storage of these hosts logically forms a storage pool, which is used as a storage resource of the converged networking system and allocated to virtual machines and other resources for use. Among these three networks, the management network generally does not require too high bandwidth, and ordinary Gigabit networks (1G) can meet the requirements, but they need to have high reliability; the business network generally depends on the specific business needs of the user. If there is a large amount of data transmission such as video backup in the business, it is necessary to configure 10G (10G) or even higher (25G) bandwidth. If it is just some ordinary data transmission without high bandwidth requirements, Gigabit networks can also meet the conditions. As for the storage network, because it involves the reading, writing, and backup of virtual machine disks, it has a higher demand for bandwidth, and generally requires 10G bandwidth to start. 25G is also a more commonly used bandwidth. The bandwidth mentioned here does not only refer to the upper limit of the network card rate, but all devices between the entire link, such as network cards, optical fibers, physical switches, etc., need to meet the rate requirements. Therefore, the investment for users is also relatively large.

[0090] Networks of the same type need to communicate with each other. Figure 3In the traditional design of the topology diagram shown, the connection between hosts needs to be forwarded through the physical switch. In order to improve network reliability or increase network bandwidth, each network often uses dual network cards and connects to the physical switch by binding. Usually, the two network cards are connected to two physical switches respectively. When the physical switch or the network card fails, the traffic can communicate normally through the other network card to ensure the reliability of the link. When two network cards are bound, there are multiple binding modes, but generally, only mode1 and mode4 are the most commonly used. Among them, mode1 is an active backup strategy, and the specific mode is that only one device is active. If one fails, the other will immediately switch from backup to master. This mode provides fault tolerance. Mode4 is the IEEE 802.3ad dynamic link aggregation mode, and the specific mode is to create an aggregation group that shares the same speed and duplex settings. This mode provides fault tolerance. Each device needs to re-acquire speed and full-duplex support based on the driver; if a switch is used, the switch also needs to enable 802.3ad mode.

[0091] It should be noted that in Mode 1, only one network card is working, and the other network card is in a standby state and is enabled when a fault occurs. In Mode 4, the switch must also be configured to bind the two network cards into an aggregation group. The two network cards interact and negotiate with the switch through LACP packets to complete link aggregation. The actual traffic will exist in both network cards. When a network card fails, all traffic will be switched to be sent through one of the network cards. The above two states actually have the same problem, that is, the original direct interaction object of the network card is the physical switch.

[0092] Figure 4 Schematic diagram of traffic forwarding path when dual network cards are bound in a common hyper-converged network according to an embodiment of the present application. Figure 4 As shown in the figure, in mode 1, the two network cards of a certain type of (management / business / storage) network of host a are bound together and logically become one network port. In this case, there is only one main network port sending and receiving messages. If port a1 is the main network port, then its traffic may flow in one of the paths 1-1 or 1-2. This depends on which network port is the main network port in host b. If b1 is the main network port, then the traffic flow is 1-1; if b2 is the main network port, then the traffic flow is 1-2; similarly, when a2 is the main network port of host a, there are also two types of traffic flow. So there are a total of 4 traffic flow directions. However, when a switch is not used (mainly the storage network and some business networks, because users need to control and manage the hyper-converged system through the management network, the management network still needs a switch), but the network ports of the two hosts are directly connected one by one, such as Fig. 9As shown in the figure: there are only two traffic paths. When the a1 network card is the primary network card, the b1 network card must also be the primary network card; when the a2 network card is the primary network card, the b2 network card must also be the primary network card. Otherwise, when the primary network card of host a is connected to the backup network card of host b, the network between the two hosts will be disconnected (the host will not send data packets from the backup network card, nor will it hand over the service data packets received on the backup network card to the relevant applications). Since the selection of the primary and backup network cards on the host is random at the beginning, and when the network fluctuates, the primary and backup network cards will be automatically switched, and users can also manually control the switching of the primary and backup. However, there is no mechanism between the two hosts to ensure the consistency of the primary and backup between them. Therefore, when using mode1, there is a 50% probability that the two hosts will be disconnected.

[0093] In mode4 bonding mode, both network cards can send and receive traffic, and the two network cards can establish link aggregation through LACP packets. However, if one network card fails, a link can no longer be used to send and receive data. This situation is the same as mode1, and the hosts on both sides also need to maintain consistency.

[0094] Therefore, the above-mentioned ordinary hyper-converged network cannot operate in a scenario where no switches are used at all and some users of the business network do not use switches. In order to solve the above problems, an optional embodiment of the present application proposes a minimalist hyper-converged network topology diagram without switches. Figure 5 is a schematic diagram of a switch-free simplified hyper-converged network topology according to an embodiment of the present application, such as Figure 5 As shown. A mechanism is set up for the simplified hyper-converged network to ensure that two hosts periodically send messages to each other to notify each other of their specific configurations. This mechanism will also immediately notify the other party of its configuration changes when some special configurations change. Using such a mechanism, the links of both hosts can respond in time when active switching or failover occurs to avoid network interruption. This fusion system mechanism includes the following modules: message sending module, message receiving module, and configuration change module.

[0095] Optional, message sending module, this module designs a new layer 2 message format, the specific format is as follows Figure 6 As shown, Figure 6It is a structural diagram of an IFACESYND message format according to an embodiment of the present application; specifically, in the header of the Ethernet frame, there is a type field used to indicate what type of message is encapsulated in the middle, such as using 0x0806 to represent an ARP message and 0x0800 to represent an IP message. In this application, 0xC001, which is not currently used, is used to represent the IFACESYND message defined in this application, and the IFACESYND unit is encapsulated in the Ethernet frame. The IFACESYND unit defined in this application is divided into multiple records, each record can use up to 32 bytes (byte, each byte includes 8 bits), where the first 3 bits of the first byte represent the type of this record (a total of 8 types), and the 4th to 8th bits represent the length of the data part of this record (a total of 32 bytes can be represented), and the specific value is set according to the content length of the actual encapsulated data field, so that the receiver can recover each record from the message after receiving the message. The data part of each record is used to carry the real information of different items of the current device. These project information may have different lengths because of different contents. This application defines these record types as follows: The first 3 bits can represent 8 record types as shown in Table 1:

[0096] Table 1

[0097]

[0098] Among them, name indicates the name of the current device (network card), states indicates the state of the network card, mac_addr indicates the MAC address of the current device, and bond_type indicates whether the current bond belongs to the ovs type or the linux bond. bond_name indicates the current bond name, bond_mode indicates the bond mode, active_slave indicates the current primary network card (valid when ovsbond is active-backup or linux bond is mode1), and slave_name indicates all network cards in the bond to which the current device belongs, and the network cards are separated by spaces. Among them, slave_name can be repeated multiple times in the message in the form of multiple records, because there will be two or more slave network cards in a bond. The above is the message format definition used when sending messages. The specific content of the message still needs to be collected or defined: Destination MAC address: Use the multicast address 01:80:c2:00:00:a0. Source MAC address: the MAC address of the current device; the records name, states, mac_addr, etc. in the DEVAD unit correspond to the name, state, and MAC address of the current network card settings, which can be obtained using simple Linux commands such as ifconfig or iplink, or from the configuration file of the current network card. The following bond_type, bond_name, bond_mode, active_salve, and slave_name fields are closely related to the function of this application, and can be obtained from the network card and bond configuration files in Linux, or through. After the message sending module collects this data, it fills in the corresponding information. Figure 6 In the IFACESYND message shown, they are encapsulated into an Ethernet frame. Finally, the network card sends it out. The message sending module starts calculating at this time, and re-collects and sends the above data every 30 seconds. This module is in the form of a service, and it will be in operation as long as the user chooses to deploy the hyper-converged system in a switchless manner.

[0099] Optional, message receiving module, Figure 7 is a schematic diagram of a hyper-convergence network using a transfer-control separation according to an embodiment of the present application; Figure 7As shown in the figure, after the host network cards of the business network or storage network are bound, they will be connected to a virtual switch. In fact, this switch is an OVS switch that supports the OpenFlow protocol. Through the OpenFlow protocol (i.e., open flow protocol), the network can actually be divided into a control layer and a forwarding layer. The control layer sends a forwarding flow table to the virtual switch through the OpenFlow protocol to control the flow of data packets in the virtual switch. The forwarding layer is only responsible for forwarding the instructions of the control layer and does not make any decisions. Figure 8 As shown in the figure: Network establishment or traffic filtering between virtual machines is done by the control layer sending flow tables to the forwarding layer, and then the forwarding layer sends the virtual machine traffic to the destination port. This is the forwarding principle of the SDN network. This principle can be used to design the receiving module. Figure 8 is a schematic diagram of IFACESYND message interaction according to an embodiment of the present application, such as Figure 8 As shown in the figure, each host in the hyper-convergence has this virtual switch, and these switches are connected to the controller through the local proxy of the controller in the host. In this way, a flow table is sent down to the virtual switches in the two hosts through the controller. The content of the flow table is as follows:

[0100] In all traffic entering the virtual machine from the bond interface, the data packets with type 0xC001 in the layer 2 frame header are forwarded to the controller for analysis. If both parties are set to mode 1, after receiving this data packet, the controller obtains the name of the network card encapsulated in the data packet, bond_name, active_slave, and whether the bond_name and active_slave corresponding to the corresponding virtual switch in this node are directly connected (the original direct connection data is set when the hyper-converged system is deployed and saved after passing the system verification). If not, the message sending module immediately sends the network card related information of this host to the other party. And start to compare the MAC address of this node with the MAC address of the other node. If the MAC address of this node is smaller, the configuration change module starts to switch the master and backup of the corresponding bond on this node. If the MAC address of this node is larger, no operation is performed. The purpose of this is to prevent both parties from finding that there is a problem with the link at the same time and switching at the same time, which will make the fault unable to be eliminated. If both parties are set to mode 4, after receiving this data packet, the controller obtains the name of the network card encapsulated in the data packet, bond_name, state. If the state state is not 0, it means that there is a problem with the state of the other party's network card. Then the configuration change module is directly called to set the state of the network card of this host that is directly connected to the other party's problematic network card to down and no longer use it.

[0101] Optionally, the function of the configuration change module is relatively simple, and the specific functions are as follows: If the current node is configured in mode 1, when the message receiving module of this node calls the configuration change module, the active-standby switching operation is performed. If it is configured in mode 4, the network card status is set to down, and the system will no longer send data through this network card.

[0102] In order to explain the content of this application more clearly, the whole process is explained in detail below.

[0103] Hyper-convergence system deployment is a complex process. At the beginning of deployment, if the business network or storage network (it can be a separate storage network or both without switches, depending on the user's actual situation) is deployed without switches, then because the physical network between the two hosts (optical fiber and optical module between the hosts) has been connected, the connection between the current storage network or business network has been determined. Therefore, during deployment, it is necessary to choose how to connect the network cards between the hosts. Fig. 9 Schematic diagram of traffic path when dual network cards are bound in a simplified hyper-converged network without a switch according to an embodiment of the present application; Fig. 9 As shown, a1-b1, a2-b2. These settings are telling the system which two ports can communicate, but not other than that, because there is no switch. The system then monitors these configurations. In the system, because IPv6 is automatically started, the controller will randomly select a host and send an IPv6 ping packet from a specified network card, such as a1, to the IPv6 address of another host's directly connected network card, such as b1. If there is a response, it means that the user's configuration is fine. If there is no response, it means that the network is not accessible and the user needs to re-enter it until the test passes. The IPv6 address used here is the one that the controller uses as shown in the following figure. Fig. 9 The controller local agent deployed in each host as shown in the figure obtains in each node. The controller agent deployed in each host can receive the instructions of the controller, and also receive which network card is the other party in a certain network card in this host, such as the a1 card in this host corresponds to the b1 card of the other party. Then, the virtual switch is configured accordingly according to the instructions. Then, the system will save this data until the user actively modifies it (such as changing the port connected to the optical fiber, modifying the previously saved configuration). This data can be queried by the controller in subsequent processes.

[0104] After the deployment is completed, if the system finds that the user has configured a switchless deployment during deployment, the ifacesynd service of the local machine will be automatically started. This service enables a specific network card (the network card configured by the user during deployment) to use the aforementioned message sending module to periodically send IFACESYND messages to the outside world (because it is a direct connection, it is to the corresponding network card of another host). This message carries the information such as name, bond name, bond mode, etc. as mentioned above.

[0105] At the same time, in addition to pulling up the above services, the system finds that the user has configured switchless deployment during deployment, and will also send instructions to the controller agent on each host through the controller (the controller is deployed on the host and is logically independent, but is actually deployed in host 1 or host 2, and the controller can drift between the two nodes, seamlessly switch services, and the controller is connected to each host through the management network) to issue the flow table in the message receiving module to intercept the IFACESYND message sent by the other party, and install the intercepted message and forward it to the controller agent. Both hosts will send and receive IFACESYND messages.

[0106] The controller agent analyzes the message. If both parties are in mode 1, it will compare its own configuration and the configuration sent by the controller. Finally, it will make corresponding instructions independently. For example, after analyzing the IFACESYND message received by network card a1, the controller code finds that the other party is network card b2, which is inconsistent with the configuration (a1-b1) sent by the controller to itself, indicating that the user has changed the wiring after the deployment is completed, but has not made corresponding changes to the configuration. At this time, it is necessary to notify the controller and stop this service until the user completes the modification. If it matches, the controller agent then checks whether it is the main network card of the bond (active_slave), and then checks whether the other network card is the main network card in the bond of the other host. If the two are inconsistent, it means that the main network card of one host is connected to the backup network card of another host. Then one of them needs to be switched. Finally, the controller proxy the MAC address of the network card and the other party's directly connected network card. If its own MAC is larger, no modification will be made. If the MAC of the local network card is smaller, the network card of the host will be switched according to the corresponding relationship of the network card sent to it by the controller, so that the main network card of the host is consistent with that of the other party.

[0107] If both parties are in mode 4, you need to check whether the state carried in the message is normal. If it is abnormal, it means that there is a problem with the card directly connected to the network card of the other party. Then set your own card to DOWN state. In this way, the host will no longer send or receive data through this network card. This link is equivalent to no longer existing, and only the good link is used.

[0108] In summary, the process of the above overall embodiment can achieve the technical effect of establishing a reliable link with guaranteed bandwidth between two hosts without going through a physical switch.

[0109] In summary, a minimalist hyper-converged networking method without a switch is used, and a mechanism is used to ensure that under the premise of no switch, two hosts notify each other of their specific configurations by periodically sending messages. This mechanism will also immediately notify the other party of its configuration changes when some special configurations change. Using such a mechanism, the links of both hosts can respond in time when active switching or fault switching occurs, avoiding network interruption. At the same time, this message is an Ethernet layer 2 message, which is periodically sent by the network card and only carries configuration information related to itself; the interaction between the hosts can complete the sending of messages and only receive and process such messages designed in the above embodiment in multiple messages. Then other hosts compare the configurations through messages to determine whether the configurations of both parties can communicate normally. When the configurations of both parties do not match expectations, the method of determining which party to adjust is determined by mac to avoid the problem that communication failures cannot be eliminated due to adjustments of both parties. The above implementation method greatly improves the reliability and stability of the networking.

[0110] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0111] In this embodiment, a synchronization device for configuration information is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0112] Fig.10 is a structural block diagram of a device for synchronizing configuration information according to an embodiment of the present application, such as Fig.10 As shown, the device comprises:

[0113] A determination module 1002 is used to determine a target message carrying first configuration information when a communication link has been established between the first host and the second host, wherein the target message is used to synchronize configuration information between the first host and the second host;

[0114] The control module 1004 is used to confirm the network card binding mode of the first host and the second host based on the first configuration information, and to control the target policy for sending target data between the first host and the second host based on the network card binding mode;

[0115] A modification module 1006, configured to determine a control instruction for adjusting a first interface attribute corresponding to the first host or a second interface attribute corresponding to the second host according to a target policy, and modify the first configuration information based on the control instruction to obtain second configuration information;

[0116] The synchronization module 1008 is used to replace the first configuration information with the second configuration information as the carried content of the target message, obtain the target update message, and send the target update message to synchronously adjust the configuration information of the first host and the second host in the running state.

[0117] Through the above-mentioned device, on the basis of the communication link established between the first host and the second host, the real-time synchronization of configuration information is achieved by sending and receiving target messages, ensuring that the high availability and high performance of the network can be maintained even in a direct connection environment without a switch. Further, the target message carrying the first configuration information is determined and sent for synchronization of configuration data between the two hosts; then, based on the first configuration information contained in the message, the binding mode (such as mode1 or mode4) of the network cards of both parties is confirmed, and the data sending strategy is adjusted accordingly to ensure reliable data transmission and timely response to faults; then, control instructions are dynamically generated according to the target strategy to adjust the network interface properties of the first host or the second host to respond to configuration changes or network anomalies; finally, the target update message is generated through the updated second configuration information to achieve instant synchronization update of configuration information, maintain consistency of network configuration and optimize network operation efficiency.

[0118] In an exemplary embodiment, the above-mentioned determination module is also used to obtain a message format template between the first host and the second host; wherein the message format template includes: a frame header field, an interface synchronization message field, and a frame check sequence field; the message format template is filled with the target byte corresponding to the first configuration information, and the filled message format template is encapsulated in an Ethernet frame to obtain a target message.

[0119] In an exemplary embodiment, the above-mentioned determination module is also used to determine the byte lengths corresponding to different types of fields in the message format template and the target number of records allowed by the interface synchronization message field; divide the filling positions of different types of fields in the message format template according to the byte length and the target number; and complete the filling of the message format template based on the filling position and the target bytes corresponding to the first configuration information.

[0120] In an exemplary embodiment, the above-mentioned determination module is also used to parse the first configuration information, and determine the target source address corresponding to the first host, the target destination address corresponding to the second host, and multiple configuration records between the first host and the second host based on the parsing results, wherein each configuration record at least includes: the configuration subtype corresponding to each host, the length of the configuration record corresponding to each host, and the data of the configuration record corresponding to each host; fill in the frame header field in the message format template according to the target source address and the target destination address, wherein the frame header field includes at least: the destination address, the source address, and the type field; the type field is used to indicate the type of the encapsulation byte in the middle of the current message format template; fill in the interface synchronization message field in the message format template according to multiple configuration records.

[0121] In an exemplary embodiment, the above-mentioned device also includes: a recording module, which is used to record the initial sending time of the target message after determining the target message carrying the first configuration information; calculate the synchronization period of the target message based on the initial sending time and the preset interval duration, wherein the preset interval duration is a time configuration parameter in the deployed converged networking system, and the synchronization period is used to indicate the frequency of repeated synchronization of the target message between the first host and the second host.

[0122] In an exemplary embodiment, the above-mentioned device also includes: an instruction module, which is used to determine a control instruction for adjusting a first interface attribute corresponding to the first host or a second interface attribute corresponding to the second host according to a target policy, modify the first configuration information based on the control instruction, and receive parameter information input by an operation and maintenance object before obtaining the second configuration information; determine whether the communication link between the first host and the second host is adjusted according to the parameter information; if the communication link has not been adjusted, allow the use of control instructions to modify the first configuration information; if the communication link has been adjusted, prohibit the use of control instructions to modify the first configuration information, and change the first interface attribute corresponding to the first host or the second interface attribute corresponding to the second host based on the parameter information.

[0123] In an exemplary embodiment, the above-mentioned control module is also used to determine the network card information of the network cards carried by the first host and the second host based on the first configuration information when it is determined that the network card binding modes of the first host and the second host are both active backup policy modes, wherein the network card information at least includes: the network card name of the primary network card and the network card name of the backup network card in the first host and the second host; identify the difference between the network card information and the original network card information pre-stored in the converged networking system; and determine the target policy to be enabled based on the difference results.

[0124] In an exemplary embodiment, the above-mentioned control module is also used to determine that the data transmission interface between the first host and the second host is operating normally and to execute a first target policy when the difference result indicates that there is no change in the primary network card connection and the backup network card connection between the first host and the second host, wherein the first target policy is to enable the data transmission interface to execute target data transmission; when the difference result indicates that there is at least one connection change in the primary network card connection and the backup network card connection between the first host and the second host, determine that the data transmission interface between the first host and the second host is operating abnormally normally and to execute a second target policy when the difference result indicates that there is at least one connection change in the primary network card connection and the backup network card connection between the first host and the second host, wherein the second target policy is to suspend the use of the data transmission interface and instruct the second host to execute the primary-backup network card switching operation to adjust the interface parameters.

[0125] In an exemplary embodiment, the above-mentioned device also includes: an operation module, which is used to determine that the data transmission interface between the first host and the second host is operating normally, and after executing the first target strategy, obtain the first address corresponding to the first host and the second address corresponding to the second host; when the character length of the first address is greater than or equal to the character length of the second address, prohibit activating the master-slave network card switching operation corresponding to the first host; when the character length of the first address is less than the character length of the second address, determine to perform the master-slave network card switching operation on the first host.

[0126] In an exemplary embodiment, the above-mentioned control module is also used to determine the working status information of the primary network card and the backup network card in the first host and the second host based on the first configuration information when it is determined that the network card binding modes of the first host and the second host are both dynamic link aggregation modes; when the working status information indicates that there is an abnormality in at least one host, disable the currently enabled network cards of the first host and the second host, and wait for the execution of the third target policy, wherein the third target policy is to use other network cards except the disabled network card to transmit target data between the first host and the second host.

[0127] In an exemplary embodiment, the above-mentioned device also includes: an activation module, which is used to determine the communication type deployed between the first host and the second host before obtaining the target message carrying the first configuration information; when the communication type indicates that the target object is set to switchless communication in the converged networking system, activate the target service for generating the target message.

[0128] In an exemplary embodiment, the above-mentioned device also includes: a transmission module, which is used to obtain the real-time transmission quality between the first host and the second host after determining the target message carrying the first configuration information when a communication link has been established between the first host and the second host; when the real-time transmission quality is less than the preset transmission quality, increase the sending frequency of the target message and increase the message transmission time of the target message; when the real-time transmission quality is greater than or equal to the preset transmission quality, reduce the sending frequency of the target message and reduce the message transmission time of the target message.

[0129] In an exemplary embodiment, the above-mentioned device also includes: an alarm module, which is used to analyze the real-time transmission quality between the first host and the second host after obtaining it; when the analysis result indicates that the transmission of the first host is abnormal, generate a first alarm message for prompting to switch the network card running the first host; when the analysis result indicates that the transmission of the second host is abnormal, generate a second alarm message for prompting to switch the network card running the second host.

[0130] In an exemplary embodiment, the above-mentioned device also includes: a storage module, which is used to deploy a sub-controller in the first host and the second host before determining the target message carrying the first configuration information when a communication link has been established between the first host and the second host; obtain the original network card information of the corresponding nodes of different hosts before networking through the sub-controller; and store the original network card information in the target database of the main controller associated with the converged networking system, wherein the sub-controller is connected to the main controller.

[0131] In an exemplary embodiment, the above-mentioned device also includes: a replacement module, which is used to obtain the original network card information of the corresponding nodes of different hosts before networking through a sub-controller, and when the original network card information also includes the usage record of each network card in the different hosts and the fault record of each network card, the remaining service life of the network card is evaluated according to the usage record and the fault record; and the update time for replacing the network card hardware of different hosts is determined according to the remaining service life and the normal service life corresponding to the network card.

[0132] In an exemplary embodiment, the above-mentioned device also includes: an identification module, which is used to send a target update message for synchronously adjusting the configuration information of the first host and the second host in the running state, and then determine the adjustment results of the first host and the second host; identify the target update message according to the adjustment result to set the usage time of the target update message.

[0133] In an exemplary embodiment, the above-mentioned identification module is also used to identify the target update message as an invalid message when the adjustment result indicates that the adjustment of the first host or the second host fails; when the adjustment result indicates that the adjustment of both the first host and the second host is successful, identify the target update message as a valid message.

[0134] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0135] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0136] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0137] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0138] Optionally, Fig.11 is a block diagram of a computer system structure of an electronic device according to an embodiment of the present application. Fig.11As shown, the computer system 800 includes a central processing unit 801 (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory 802 (ROM) or the program loaded from the storage part 808 to the random access memory 803 (RAM). Various programs and data required for system operation are also stored in the random access memory 803. The central processing unit 801, the read-only memory 802 and the random access memory 803 are connected to each other through a bus 804. The input / output interface 805 (Input / Output interface, i.e., I / O interface) is also connected to the bus 804.

[0139] The following components are connected to the input / output interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the input / output interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed so that a computer program read therefrom is installed into the storage section 808 as needed.

[0140] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0141] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0142] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0143] The embodiments of the present application also provide a computer program, which includes computer instructions stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in any one of the above method embodiments.

[0144] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0145] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0146] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for synchronizing configuration information, characterized in that: include: In a case where a communication link has been established between the first host and the second host, determining a target message carrying first configuration information, wherein the target message is used to synchronize configuration information between the first host and the second host; Confirming a network card binding mode between the first host and the second host based on the first configuration information, and adjusting a target policy for sending target data between the first host and the second host based on the network card binding mode; Determine, according to the target policy, a control instruction for adjusting a first interface attribute corresponding to the first host or a second interface attribute corresponding to the second host, and modify the first configuration information based on the control instruction to obtain second configuration information; The first configuration information is replaced by the second configuration information as the content carried by the target message, a target update message is obtained, and the target update message is sent down to synchronously adjust the configuration information of the first host and the second host in the running state.

2. The method for synchronizing configuration information according to claim 1, characterized in that: Determining a target message carrying the first configuration information includes: Acquire a message format template between the first host and the second host; wherein the message format template includes: a frame header field, an interface synchronization message field, and a frame check sequence field; The message format template is filled using the target bytes corresponding to the first configuration information, and the filled message format template is encapsulated in an Ethernet frame to obtain a target message.

3. The method for synchronizing configuration information according to claim 2, characterized in that: Filling the message format template using the target byte corresponding to the first configuration information includes: Determine the byte lengths corresponding to different types of fields in the message format template and the target number of records allowed by the interface synchronization message field; Divide the filling positions of different types of fields in the message format template according to the byte length and the target quantity; The filling of the message format template is completed based on the filling position and the target byte corresponding to the first configuration information.

4. The method for synchronizing configuration information according to claim 3, characterized in that: The filling of the message format template is completed based on the filling position and the target byte corresponding to the first configuration information, including: Parse the first configuration information, and determine, according to the parsing result, a target source address corresponding to the first host, a target destination address corresponding to the second host, and multiple configuration records between the first host and the second host, wherein each configuration record at least includes: a configuration subtype corresponding to each host, a length of a configuration record corresponding to each host, and data of a configuration record corresponding to each host; Filling the frame header field in the message format template according to the target source address and the target destination address, wherein the frame header field includes at least: a destination address, a source address, and a type field; the type field is used to indicate the type of the middle encapsulation byte of the current message format template; The interface synchronization message field in the message format template is filled according to the multiple configuration records.

5. The method for synchronizing configuration information according to claim 1, characterized in that: After determining the target message carrying the first configuration information, the method further includes: Recording the initial sending time of the target message; The synchronization period of the target message is calculated based on the initial sending time and the preset interval duration, wherein the preset interval duration is a time configuration parameter in a deployed converged networking system, and the synchronization period is used to indicate the frequency of repeated synchronization of the target message between the first host and the second host.

6. The method for synchronizing configuration information according to claim 1, characterized in that: Determining, according to the target policy, a control instruction for adjusting a first interface attribute corresponding to the first host or a second interface attribute corresponding to the second host, and modifying the first configuration information based on the control instruction, before obtaining the second configuration information, the method further includes: Receive parameter information input by the operation and maintenance object; Determining whether a communication link between the first host and the second host is adjusted according to the parameter information; In the case where the communication link is not adjusted, allowing the control instruction to be used to modify the first configuration information; In the case where the communication link has been adjusted, it is prohibited to use the control instruction to modify the first configuration information, and the first interface attribute corresponding to the first host or the second interface attribute corresponding to the second host is changed based on the parameter information.

7. The method for synchronizing configuration information according to claim 1, characterized in that: Regulating a target strategy for sending target data between the first host and the second host based on the network card binding mode includes: In the case where it is determined that the network card binding modes of the first host and the second host are both active backup strategy modes, determining the network card information of the network cards carried by the first host and the second host based on the first configuration information, wherein the network card information at least includes: the network card name of the primary network card and the network card name of the backup network card in the first host and the second host; Identify the difference between the network card information and the original network card information pre-stored in the converged networking system; The target policy to be enabled is determined based on the difference results.

8. The method for synchronizing configuration information according to claim 7, characterized in that: Determine the target policy to be enabled based on the difference results, including: When the difference result indicates that there is no change in the primary network card connection and the backup network card connection between the first host and the second host, it is determined that the data transmission interface between the first host and the second host is operating normally, and a first target policy is to be executed, wherein the first target policy is to enable the data transmission interface to perform target data transmission; when the difference result indicates that there is at least one connection change in the primary network card connection and the backup network card connection between the first host and the second host, it is determined that the data transmission interface between the first host and the second host is operating abnormally normally, and a second target policy is to be executed, wherein the second target policy is to suspend the use of the data transmission interface, and instruct the second host to perform the primary-backup network card switching operation to adjust the interface parameters.

9. The method for synchronizing configuration information according to claim 7, characterized in that: After determining that the data transmission interface between the first host and the second host is working normally and the first target policy is to be executed, the method further includes: Obtaining a first address corresponding to the first host and a second address corresponding to the second host; when the character length of the first address is greater than or equal to the character length of the second address, prohibiting activation of the primary and standby network card switching operation corresponding to the first host; When the character length of the first address is less than the character length of the second address, it is determined to perform a primary and backup network card switching operation on the first host.

10. The method for synchronizing configuration information according to claim 1, characterized in that: Regulating a target strategy for sending target data between the first host and the second host based on the network card binding mode includes: When it is determined that the network card binding modes of the first host and the second host are both dynamic link aggregation modes, determining working status information of the primary network card and the backup network card in the first host and the second host based on the first configuration information; When the working status information indicates that at least one host is abnormal, the network cards currently enabled by the first host and the second host are disabled, and a third target policy is to use other network cards except the disabled network card to transmit target data between the first host and the second host.

11. The method for synchronizing configuration information according to claim 1, characterized in that: Before acquiring the target message carrying the first configuration information, the method further includes: determining a type of communication deployed between the first host and the second host; In a case where the communication type indicates that the target object is set to switchless communication in the converged networking system, a target service for generating a target message is activated.

12. The method for synchronizing configuration information according to claim 1, characterized in that: In the case where the first host and the second host have established a communication link, after determining the target message carrying the first configuration information, the method further includes: Acquire real-time transmission quality between the first host and the second host; When the real-time transmission quality is less than the preset transmission quality, increasing the sending frequency of the target message and increasing the message transmission time of the target message; When the real-time transmission quality is greater than or equal to the preset transmission quality, the sending frequency of the target message is reduced, and the message transmission duration of the target message is shortened.

13. The method for synchronizing configuration information according to claim 12, characterized in that: After obtaining the real-time transmission quality between the first host and the second host, the method further includes: analyzing the real-time transmission quality; If the analysis result indicates that the first host has abnormal transmission, generating a first alarm message for prompting to switch the network card running the first host; When the analysis result indicates that the transmission of the second host is abnormal, a second alarm message is generated to prompt switching of the network card running the second host.

14. The method for synchronizing configuration information according to claim 1, characterized in that: In the case where the first host and the second host have established a communication link, before determining the target message carrying the first configuration information, the method further includes: Deploy sub-controllers in the first host and the second host; Obtaining original network card information of nodes corresponding to different hosts before networking through the sub-controller; The original network card information is stored in a target database of a main controller associated with the converged networking system, wherein the sub-controller is connected to the main controller.

15. The method for synchronizing configuration information according to claim 14, characterized in that: After obtaining original network card information of nodes corresponding to different hosts before networking through the sub-controller, the method further includes: When the original network card information further includes a usage record of each network card in different hosts and a fault record of each network card, evaluating the remaining service life of the network card according to the usage record and the fault record; The update time for replacing the network card hardware of different hosts is determined according to the remaining service life and the normal service life corresponding to the network card.

16. The method for synchronizing configuration information according to claim 1, characterized in that: After sending the target update message for synchronously adjusting the configuration information of the first host and the second host in the running state, the method further includes: Determining an adjustment result of the first host and the second host; The target update message is marked according to the adjustment result to set the usage time of the target update message.

17. The method for synchronizing configuration information according to claim 16, characterized in that: The target update message is marked according to the adjustment result, including: If the adjustment result indicates that the adjustment of the first host or the second host fails, marking the target update message as an invalid message; When the adjustment result indicates that both the first host and the second host are adjusted successfully, the target update message is marked as a valid message.

18. A device for synchronizing configuration information, characterized in that: include: A determination module, configured to determine a target message carrying first configuration information when a communication link has been established between the first host and the second host, wherein the target message is used to synchronize configuration information between the first host and the second host; a control module, configured to confirm a network card binding mode between the first host and the second host based on the first configuration information, and to control a target policy for sending target data between the first host and the second host based on the network card binding mode; a modification module, configured to determine, according to the target policy, a control instruction for adjusting a first interface attribute corresponding to the first host or a second interface attribute corresponding to the second host, and modify the first configuration information based on the control instruction to obtain second configuration information; A synchronization module is used to replace the first configuration information with the second configuration information as the carried content of the target message, obtain a target update message, and send the target update message to synchronously adjust the configuration information of the first host and the second host in the running state.

19. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 17 when executed by a processor.

20. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 17 are implemented.

Citation Information

Patent Citations

  • A method and equipment for communication between virtual machines

    CN109710423A

  • Network card configuration method and device and computer storage medium

    CN112448839A

  • Network management method, device and equipment

    CN116405379A

  • Server configuration method and device

    CN117221104A

  • Data processing method and device, data transmission system and method and storage medium

    CN119383032A

Cited By

  • Network card management method and device, equipment and medium

    CN120378321A

  • Processing strategy execution method and device, electronic equipment, medium and program product

    CN120455254A

  • Equipment control method and device, storage medium and electronic equipment

    CN120561037A