Network deployment method and device of hyper-converged system, computer equipment and medium

By using hardware virtualization technology and main and backup link design of dual-port physical network cards in hyperconverged systems, the problems of network topology complexity and operation and maintenance difficulty in the system are solved, efficient traffic transmission and failover are achieved, and improved System reliability and performance.

CN118972319APending Publication Date: 2024-11-15ZHENGZHOU INSPUR DATA TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411062879.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

In hyperconverged systems, network topology complexity and operation and maintenance difficulties are caused by the separation of management networks, service networks and storage networks, and traditional architectures are difficult to achieve efficient traffic transmission and failover under multiple network ports and multiple lines.

Method used

By setting up a dual-port physical network card on the target device, hardware virtualization is carried out, virtual functions and physical functions are generated, and the main and backup link design is adopted to realize traffic transmission of the management network, service network and storage network, and use the second network port. The virtual interface is backed up to deal with the first network port failure and improve resource utilization and network reliability.

Benefits of technology

It simplifies network management complexity, improves resource utilization and network reliability, ensures high bandwidth and low latency performance requirements, and implements automatic failover and fault tolerance mechanisms, reducing operation and maintenance difficulties.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118972319A_ABST
    Figure CN118972319A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of hyper-convergence, and discloses a network deployment method and device of a hyper-convergence system, computer equipment and a medium, and the method comprises the steps: carrying out the hardware virtualization of a first network port and a second network port; taking the first virtual function as a main link of the management network, and taking the second virtual function as a standby link of the management network; taking the third virtual function as a main link of the service network, and taking the fourth virtual function as a standby link of the service network; the first physical function is used as a main link of the storage network, and the second physical function is used as a standby link of the storage network. In the method, a management network, a service network and a storage network all adopt a main and standby link design, the reliability and availability of the network are enhanced, and the storage network transmits data by using a physical function, so that the performance requirements of high bandwidth and low delay are ensured; through the configuration and management of the virtual function, the network topology can be adjusted and optimized more flexibly, and the complexity of network management is simplified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of hyper-convergence technology, and in particular to a network deployment method, device, computer equipment and medium for a hyper-convergence system. Background Art

[0002] Hyper-Converged Infrastructure (HCI) is an infrastructure architecture that integrates computing, storage, and network resources. It closely combines these resources in a software-defined manner to achieve highly integrated and automated management.

[0003] In a hyper-converged system, there are usually three different networks: management network, business network, and storage network, which are used for different communication needs and data traffic management. The management network is used for control flow communication between control nodes and computing nodes, and is responsible for the management and control operations of the hyper-converged system, such as configuration, monitoring, and maintenance. The business network is used for the connection and communication between virtual machines and other network entities (such as external clients, application servers, databases, etc.), and handles the daily network communication needs of business applications. It is usually not configured with an IP address; the storage network is used for the host to connect and communicate with remote storage devices through storage protocols (such as iSCSI protocols), and is responsible for transmitting virtual machine disk IO read and write data. In a hyper-converged system, these three networks are usually deployed separately to ensure that different types of data traffic do not interfere with each other and optimize their respective network performance and reliability. However, the separate deployment makes the network topology of the hyper-converged system very complex, and subsequent operation and maintenance are difficult. Summary of the invention

[0004] In view of this, the present invention provides a network deployment method, apparatus, computer equipment and medium for a hyper-converged system to reduce the network topology complexity of the hyper-converged system.

[0005] In a first aspect, the present invention provides a network deployment method for a hyper-converged system, the method being used for a target device, the target device being provided with a dual-port physical network card, the dual-port physical network card having a first network port and a second network port, the hyper-converged system comprising a management network, a service network and a storage network, the method comprising:

[0006] Performing hardware virtualization on the first network port and the second network port to obtain a first virtual function, a third virtual function, and a first physical function corresponding to the first network port, and a second virtual function, a fourth virtual function, and a second physical function corresponding to the second network port;

[0007] Using the first virtual function as a main link of the management network and using the second virtual function as a backup link of the management network to transmit traffic of the management network;

[0008] Using the third virtual function as a main link of the service network and using the fourth virtual function as a backup link of the service network to transmit traffic of the service network;

[0009] The first physical function is used as a main link of the storage network, and the second physical function is used as a backup link of the storage network to transmit traffic of the storage network.

[0010] The network deployment method of a hyper-converged system provided by the present invention has the following advantages:

[0011] When the target device is equipped with a dual-port physical network card and needs to use the dual-port physical network card to realize traffic transmission of the management network, business network and storage network, the target device can perform hardware virtualization on the first network port and the second network port in the dual-port physical network card, and virtually generate the first virtual function, the third virtual function and the first physical function based on the first network port, and virtually generate the second virtual function, the fourth virtual function and the second physical function based on the second network port; at this time, the target device can bind the main link of the management network to the first virtual function, and bind the backup link to the second virtual function; then bind the main link of the business network to the third virtual function, and bind the backup link of the business network to the fourth virtual function; bind the main link of the storage network to the first physical function, and bind the backup link to the second physical function. Through the above network deployment, the first network port and the second network port can be virtualized into three virtual interfaces respectively, so that the traffic of the management network, the business network and the storage network can be transmitted respectively through the three virtual interfaces, and the three virtual interfaces of the second network port can be used as backup, so that when the first network port fails, the traffic of the management network, the business network and the virtual network can be transmitted through the second network port. Therefore, the above scheme realizes the multi-functional utilization of physical network card resources through hardware virtualization technology, and improves resource utilization; the management network, the business network and the storage network all adopt the active-standby link design, which enhances the reliability and availability of the network, and the storage network uses physical functions to transmit data, ensuring the performance requirements of high bandwidth and low latency; through the configuration and management of virtual functions, the network topology can be adjusted and optimized more flexibly, simplifying the complexity of network management.

[0012] In an optional implementation, traffic of the management network is transmitted by default through the first virtual function;

[0013] The method further comprises:

[0014] When a failure of the first network port is detected, the main link of the management network is switched to the second virtual function.

[0015] In an optional embodiment, the method further includes:

[0016] When the main link of the management network is the second virtual function and it is detected that the first network port is in a normal working state, the main link of the management network is switched to the first virtual function.

[0017] In an optional implementation, the traffic of the service network is transmitted by default through the third virtual function;

[0018] The method further comprises:

[0019] When a failure of the first network port is detected, the main link of the service network is switched to the fourth virtual function.

[0020] In an optional embodiment, the method further includes:

[0021] When the main link of the service network is the fourth virtual function and it is detected that the first network port is in a normal working state, the main link of the service network is switched to the third virtual function.

[0022] In an optional implementation, before switching the primary link of the service network to the fourth virtual function when a failure of the first network port is detected, the method further includes:

[0023] Obtain N service virtual machines in the service network; N is an odd number and is greater than or equal to 3;

[0024] Calling the virtual tools of the N service virtual machines to detect whether the gateways of the service virtual machines are connected;

[0025] Based on the connectivity status of the gateways of the N business virtual machines, determine whether the first network port has a fault.

[0026] In an optional implementation, the determining whether the first network port has a fault based on the connectivity status of the gateways of the N service virtual machines includes:

[0027] If the gateways in the N service virtual machines are all in a connected state, it is determined that there is no fault in the first network port;

[0028] If the gateways in the N business virtual machines are all in a disconnected state, it is determined that the first network port has a fault.

[0029] In an optional embodiment, the method further includes:

[0030] If, among the N business virtual machines, the number of business virtual machines whose gateways are connected is greater than the number of business virtual machines whose gateways are disconnected, it is determined that there is no fault in the first network port;

[0031] If, among the N service virtual machines, the number of service virtual machines whose gateways are connected is less than the number of service virtual machines whose gateways are disconnected, it is determined that the first network port has a fault.

[0032] In an optional implementation, the traffic of the storage network is transmitted by default through the first physical function;

[0033] The method further comprises:

[0034] When a failure of the first network port is detected, the main link of the storage network is switched to the second physical function.

[0035] In an optional embodiment, the method further includes:

[0036] When the main link of the storage network is the second physical function and it is detected that the first network port is in a normal working state, the main link of the storage network is switched to the first physical function.

[0037] In an optional implementation, when the first network port and the second network port in the dual-port physical network card are both fault-free, the management network and the service network reuse the same network port, and the storage network uses the other network port in the dual-port physical network card.

[0038] In an optional implementation, when any network port of the dual-port physical network card fails, the management network, service network, and storage network reuse the normal network port to transmit traffic.

[0039] In an optional embodiment, the method further includes:

[0040] Obtaining a first negotiated rate of the same network port multiplexed by the management network and the service network;

[0041] According to the first negotiated rate, a first upper limit of the network port rate used by the management network and a second upper limit of the network port rate used by the service network are set.

[0042] In an optional implementation, the first upper limit is greater than or equal to the second upper limit; and the second upper limit is less than 100%.

[0043] In an optional embodiment, the method further includes:

[0044] Obtaining a second negotiated rate of a network port that is multiplexed without failure among the management network, the service network, and the storage network;

[0045] According to the second negotiated rate, a third upper limit of the network port rate used by the management network, a fourth upper limit of the network port rate used by the service network, and a fifth upper limit of the network port rate used by the storage network are set.

[0046] In an optional implementation, the third upper limit is greater than or equal to the fourth upper limit and the fifth upper limit, and the third upper limit, the fourth upper limit and the fifth upper limit are all less than 100%.

[0047] In a second aspect, the present invention provides a network deployment device for a hyper-converged system, the device being used for a target device, the target device being provided with a dual-port physical network card, the dual-port physical network card having a first network port and a second network port, the hyper-converged system including a management network, a service network and a storage network, the device comprising:

[0048] a virtual module, used to perform hardware virtualization on the first network port and the second network port, and obtain a first virtual function, a third virtual function, and a first physical function corresponding to the first network port, and a second virtual function, a fourth virtual function, and a second physical function corresponding to the second network port;

[0049] A setting module, configured to use the first virtual function as a main link of the management network and the second virtual function as a backup link of the management network to transmit traffic of the management network;

[0050] A setting module, configured to use the third virtual function as a main link of the service network and the fourth virtual function as a backup link of the service network to transmit traffic of the service network;

[0051] A setting module is used to use the first physical function as a main link of the storage network and the second physical function as a backup link of the storage network to transmit traffic of the storage network.

[0052] The network deployment device of a hyper-converged system provided by the present invention has the following advantages:

[0053] When the target device is equipped with a dual-port physical network card and needs to use the dual-port physical network card to realize traffic transmission of the management network, business network and storage network, the target device can perform hardware virtualization on the first network port and the second network port in the dual-port physical network card, and virtually generate the first virtual function, the third virtual function and the first physical function based on the first network port, and virtually generate the second virtual function, the fourth virtual function and the second physical function based on the second network port; at this time, the target device can bind the main link of the management network to the first virtual function, and bind the backup link to the second virtual function; then bind the main link of the business network to the third virtual function, and bind the backup link of the business network to the fourth virtual function; bind the main link of the storage network to the first physical function, and bind the backup link to the second physical function. Through the above network deployment, the first network port and the second network port can be virtualized into three virtual interfaces respectively, so that the traffic of the management network, the business network and the storage network can be transmitted respectively through the three virtual interfaces, and the three virtual interfaces of the second network port can be used as backup, so that when the first network port fails, the traffic of the management network, the business network and the virtual network can be transmitted through the second network port. Therefore, the above scheme realizes the multi-functional utilization of physical network card resources through hardware virtualization technology, and improves resource utilization; the management network, the business network and the storage network all adopt the active-standby link design, which enhances the reliability and availability of the network, and the storage network uses physical functions to transmit data, ensuring the performance requirements of high bandwidth and low latency; through the configuration and management of virtual functions, the network topology can be adjusted and optimized more flexibly, simplifying the complexity of network management.

[0054] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the network deployment method of a hyper-converged system of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0055] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the network deployment method for a hyper-converged system of the first aspect or any corresponding embodiment thereof.

[0056] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions, wherein the computer instructions are used to enable a computer to execute the network deployment method of a hyper-converged system of the above-mentioned first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0058] Figure 1 It is a structural schematic diagram of a hyper-convergence system provided by an embodiment of the present invention;

[0059] Figure 2 It is a flow chart of a network deployment method of a hyper-converged system provided by an embodiment of the present invention;

[0060] Figure 3 It is a flow chart of a network deployment method of a hyper-converged system provided by an embodiment of the present invention;

[0061] Figure 4 A schematic diagram of a network deployment of a hyper-converged system involved in an embodiment of the present application is shown;

[0062] Figure 5 A schematic diagram of management network link arbitration in a hyper-converged system according to an embodiment of the present application is shown;

[0063] Figure 6 A schematic diagram of network port detection of a service network in a hyper-converged system according to an embodiment of the present application is shown;

[0064] Figure 7 A network deployment device for a hyper-converged system is provided according to an embodiment of the present invention;

[0065] Figure 8 It is a structural schematic diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0066] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0067] In existing hyper-convergence scenarios, network deployment is relatively complex and is divided into management network, business network and storage network. The management network needs to be configured with an IP address for control flow communication between control nodes and computing nodes, and between computing nodes. The business network does not have an IP address and is used for connection and communication between virtual machines and other network entities. The storage network needs to be configured with an IP address. The host connects and communicates with the remote storage device through storage protocols such as the iSCSI protocol to transmit virtual machine disk IO read and write data. The data traffic of the data network is larger than that of the management network and business, and the network quality requirements are relatively high.

[0068] The existing hyper-converged system has the characteristic of three-network separation, and it is necessary to carry out network planning for the management network, business network, and storage network in advance. It not only involves the IP address, VLAN, aggregation binding mode, etc. of the hyper-converged system itself, but also requires the configuration of the VLAN and aggregation binding mode of the access physical switch. The deployment mode of three-network separation increases the complexity of the network topology and increases the management difficulty for subsequent operation and maintenance.

[0069] To solve the above problems, an embodiment of the present invention proposes a solution to the above-mentioned complex network deployment problem. The three-network integration deployment method of the hyper-converged system simplifies the network topology, realizes unified management and flexible scheduling of network resources, and adopts an intelligent network traffic scheduling algorithm to ensure the efficient transmission of management network, business network and storage network traffic on the same physical network card, avoiding the complexity and management difficulty brought by multiple network ports and multiple lines in the traditional hyper-converged architecture. At the same time, the three-network integration technology of the hyper-converged system also has an automatic failover and fault tolerance mechanism, which can automatically migrate traffic to other physical network ports when a physical network port fails, ensuring business continuity and data security. It should be noted that the steps shown in this application can be executed in a hyper-converged system including a set of computer executable instructions, and although the logical order is shown in the flow chart, in some cases, the steps shown or described can be executed in a different order than here.

[0070] Figure 1 Schematic diagram of a hyper-convergence system provided by an embodiment of the present invention. Figure 1 As shown, the system includes a target device 110 and a physical switch 120 .

[0071] Optionally, the hyper-converged system includes a management network, a business network and a storage network.

[0072] Optionally, the target device is a core computing unit in a hyper-converged system, including a virtualized host, a computing node, etc. The target device is provided with a dual-port physical network card for connecting a management network, a service network, and a storage network, and the dual-port physical network card has a first network port and a second network port.

[0073] Optionally, the target terminal may be a PC (Personal Computer), a server, or other hyper-converged devices that can be used to set up a hyper-converged system.

[0074] Optionally, the physical switch 120 is responsible for connecting the dual-port physical network card in the target device and other network devices, such as storage devices, management consoles, etc.

[0075] In this embodiment, a network deployment method of a hyper-converged system is provided, which can be used for the target device 110 mentioned above. Figure 2 is a flow chart of a network deployment method of a hyper-converged system provided by an embodiment of the present invention. The method can be used for Figure 1 The target device shown is Figure 2 As shown, the method comprises the following steps:

[0076] Step S201, hardware virtualization is performed on the first network port and the second network port to obtain a first virtual function, a third virtual function and a first physical function corresponding to the first network port, and a second virtual function, a fourth virtual function and a second physical function corresponding to the second network port.

[0077] In an embodiment of the present application, the dual-port physical network card in the target device may be a network card that supports SR-IOV (Single Root I / O Virtualization) technology. SR-IOV allows a single physical PCIe device (such as a network card) to be virtualized into multiple independent virtual devices.

[0078] Optionally, the target device can enable the SR-IOV function in BIOS or UEFI and load a network card driver that supports SR-IOV in the operating system. The target device can then virtualize the physical network card port into multiple virtual functions through the operating system or virtualization platform (such as VMware, KVM, Hyper-V, etc.) configuration tool.

[0079] Among them, the virtual function (Virtual Function, VF) is the network interface virtualized from the port of the physical network card. The virtual function provides independent network resources and configurations. Each virtual function can be used as an independent network interface for different network roles. It can provide isolated network resources, improve network security, dynamic allocation and management, and improve resource utilization. The physical function (Physical Function, PF) is the actual physical port and resources on the network card. The physical function is responsible for managing and controlling the virtual function and providing basic network connections. It can provide complete network functions and performance, and is responsible for handling low-level network operations and configurations.

[0080] Step S202: Use the first virtual function as a main link of the management network and use the second virtual function as a backup link of the management network to transmit traffic of the management network.

[0081] The target device will allocate the first virtual function of the first network port to the management network as the primary link. This link is used to process the main management traffic to ensure the high priority and reliability of management operations. The target device will allocate the second virtual function of the second network port to the management network as a backup link. When the primary link fails or is unavailable, the backup link can automatically take over to ensure the continuity and availability of the management network.

[0082] Step S203: Use the third virtual function as the main link of the service network and use the fourth virtual function as the backup link of the service network to transmit traffic of the service network.

[0083] Similar to step S202, the target device allocates the third virtual function of the first network port to the service network as the main link. This link processes the main service traffic to ensure the normal operation of the service application; the target device then allocates the fourth virtual function of the second network port to the service network as a backup link. The backup link takes over the service traffic when the main link fails to ensure the continuity of the service network.

[0084] Step S204: Use the first physical function as the main link of the storage network and use the second physical function as the backup link of the storage network to transmit traffic of the storage network.

[0085] In an embodiment of the present application, the first physical function and the second physical function directly utilize the bandwidth and performance of the physical network card to ensure the high-performance transmission requirements of the storage network, so the traffic transmission of the storage network can be performed through the first physical function and the second physical function. Similar to step S202, the target device assigns the first physical function of the first network port to the storage network as the main link. This link is used to transmit a large amount of storage data to ensure the high-performance requirements of the storage network; the second physical function of the second network port is then assigned to the storage network as a backup link. The backup link takes over the storage data transmission when the main link fails, ensuring the continuity and high availability of the storage network.

[0086] The above steps implement hardware virtualization of the dual-port physical network card, reasonably allocate its virtual functions and physical functions to the management network, business network and storage network, and realize the optimized configuration of network resources and high availability guarantee through the active-standby link design; the multifunctional utilization of physical network card resources is realized through hardware virtualization technology, and the resource utilization rate is improved; the management network, business network and storage network all adopt the active-standby link design, which enhances the reliability and availability of the network, and the storage network uses physical functions to transmit data, ensuring the performance requirements of high bandwidth and low latency; through the configuration and management of virtual functions, the network topology can be adjusted and optimized more flexibly, simplifying the complexity of network management.

[0087] To summarize, when the target device is provided with a dual-port physical network card and needs to use the dual-port physical network card to realize traffic transmission of the management network, business network and storage network, the target device can perform hardware virtualization on the first network port and the second network port in the dual-port physical network card, and virtually generate the first virtual function, the third virtual function and the first physical function based on the first network port, and virtually generate the second virtual function, the fourth virtual function and the second physical function based on the second network port; at this time, the target device can bind the main link of the management network to the first virtual function, and bind the backup link to the second virtual function; then bind the main link of the business network to the third virtual function, and bind the backup link of the business network to the fourth virtual function; bind the main link of the storage network to the first physical function, and bind the backup link to the second physical function. Through the above network deployment, the first network port and the second network port can be virtualized into three virtual interfaces respectively, so that the traffic of the management network, the business network and the storage network can be transmitted respectively through the three virtual interfaces, and the three virtual interfaces of the second network port can be used as backup, so that when the first network port fails, the traffic of the management network, the business network and the virtual network can be transmitted through the second network port. Therefore, the above scheme realizes the multi-functional utilization of physical network card resources through hardware virtualization technology, and improves resource utilization; the management network, the business network and the storage network all adopt the active-standby link design, which enhances the reliability and availability of the network, and the storage network uses physical functions to transmit data, ensuring the performance requirements of high bandwidth and low latency; through the configuration and management of virtual functions, the network topology can be adjusted and optimized more flexibly, simplifying the complexity of network management.

[0088] The present application embodiment is also Figure 2 Based on the above, another network deployment method of a hyper-converged system is provided, which can be used for the target device 110 mentioned above. Figure 3 is a flow chart of a network deployment method of a hyper-converged system provided by an embodiment of the present invention, such as Figure 3 As shown, the method comprises the following steps:

[0089] Step S301, hardware virtualization is performed on the first network port and the second network port to obtain a first virtual function, a third virtual function and a first physical function corresponding to the first network port, and a second virtual function, a fourth virtual function and a second physical function corresponding to the second network port.

[0090] In the embodiment of the present application, the target device may perform hardware virtualization on the first network port and the second network port, specifically as follows: the target device may virtualize the first network port into: a first virtual function (VF1), a third virtual function (VF3), and a first physical function (PF1);

[0091] The target device may also virtualize the second network port into: a second virtual function (VF2), a fourth virtual function (VF4), and a second physical function (PF2);

[0092] That is, the target device uses SR-IOV technology to perform hardware virtualization on the dual-port physical network card (the first network port and the second network port) to obtain the virtual functions and physical functions corresponding to each network port, achieve resource isolation and efficient utilization, and facilitate the network configuration of the management network, business network, and storage network in the hyper-converged system.

[0093] Step S302A: Use the first virtual function as the main link of the management network and use the second virtual function as the backup link of the management network to transmit traffic of the management network.

[0094] In an embodiment of the present application, when there is a dual-port physical network card, the primary and backup link configuration of the management network can be implemented through the first network port and the second network port. During the primary link configuration process, the goal is to use the first virtual function (VF1) as the primary link of the management network. Specifically, the first virtual function (VF1) can be configured as the main network interface of the management network in the network configuration of the target device. This step can be implemented using a virtual switch (vSwitch) or a network interface binding tool. For example, in a virtualization platform (such as VMware, KVM), bind VF1 to the virtual switch of the management network, assign an appropriate IP address to VF1, and configure routing so that the management network traffic is transmitted through VF1.

[0095] Correspondingly, during the backup link configuration process, the goal is to use the second virtual function (VF2) as a backup link for the management network. Specifically, the second virtual function (VF2) can be configured as a backup network interface for the management network in the network configuration of the target device. The backup link can be configured on the same virtual switch, but set to backup mode, and then assign the same IP address (if IP drift technology is used) or a different IP address to VF2, and set it as a backup route. Ensure that traffic can be transmitted through VF2 when the main link fails.

[0096] Step S302B: when a failure of the first network port is detected, the main link of the management network is switched to the second virtual function.

[0097] The target device can determine whether to switch to the backup link by detecting the failure of the first network port. Specifically, the network monitoring tool or the health check function of the operating system can be used to monitor the status of the first network port in real time. If a failure of the first network port is detected (such as failure to connect, high packet loss rate, etc.), the link switching mechanism is triggered.

[0098] When the link switching mechanism is triggered, the target device can switch the main link of the management network to the second virtual function (VF2) to maintain network continuity. Specifically, the target device can redirect the management network traffic to the second virtual function (VF2) through network management tools or operating system configuration. In the virtualization platform, it may be necessary to update the configuration of the virtual switch, or adjust the network policy to make VF2 the main link, and then set the status of VF2 to "active" to ensure that it starts to process the management network traffic.

[0099] Step S302C: when the main link of the management network is the second virtual function and it is detected that the first network port is in a normal working state, the main link of the management network is switched to the first virtual function.

[0100] If the link switching mechanism is triggered and the main link is switched to the second virtual function, the target device also needs to detect in real time whether the first network port has returned to normal working status. After the first network port returns to normal, monitor its status in real time. If it returns to normal (such as connectivity is restored and packet loss rate returns to normal), the recovery operation is triggered. When the recovery operation is triggered, the target device needs to switch the main link of the management network back to the first virtual function (VF1) to restore to the original configuration. Specifically, the target device can reroute the management network traffic back to the first virtual function (VF1) through network management tools or operating system configuration. Update the configuration of the virtual switch, or adjust the network policy to make VF1 the main link again, then set the status of VF1 to "active", and set VF2 to "standby" to ensure that in future failure situations, VF2 still exists as a backup link.

[0101] Step S303A, using the third virtual function as the main link of the service network and using the fourth virtual function as the backup link of the service network to transmit traffic of the service network.

[0102] In a possible implementation of an embodiment of the present application, there is no IP address in the business network. It is assumed below that the business network uses a virtual local area network (VLAN) or a switch for communication. At this time, the target device still needs to configure the primary and backup links of the business network. During the main link configuration process, the goal is to use the third virtual function (VF3) as the main link of the business network. Specifically, the target device can configure the third virtual function (VF3) as the main network interface of the business network in the network configuration of the target device. This can be achieved by binding VF3 to the virtual switch or VLAN of the business network. If VLAN is used, add VF3 to the VLAN corresponding to the business network. If a switch is used, configure VF3 as the main port of the business network.

[0103] Step S303B: When a failure of the first network port is detected, the main link of the service network is switched to the fourth virtual function.

[0104] During the use of the service network, the target device can detect the failure of the first network port and decide whether to switch to the backup link. Specifically, the network monitoring tool or the health check function of the operating system can be used to monitor the status of the first network port in real time. If a failure of the first network port is detected (such as physical connection disconnection, link failure, etc.), the link switching mechanism is triggered.

[0105] The goal of link switching is to switch the main link of the service network to the fourth virtual function to maintain network continuity. Since there is no IP address in the service network in the embodiment of the present application, the target device can redirect the service network traffic to the fourth virtual function (VF4) through network management tools or operating system configuration. Specifically, in the virtualization platform, it may be necessary to update the configuration of the virtual switch or adjust the network policy to make VF4 the main link.

[0106] In a possible implementation, N service virtual machines in the service network are obtained; N is an odd number and is greater than or equal to 3;

[0107] Call the virtual tools of the N service virtual machines to detect whether the gateways of the service virtual machines are connected;

[0108] Based on the connectivity status of the gateways of the N business virtual machines, determine whether the first network port has a fault.

[0109] In one possible implementation, if the gateways in the N business virtual machines are all connected, it is determined that the first network port has no fault; if the gateways in the N business virtual machines are all disconnected, it is determined that the first network port has a fault.

[0110] In a possible implementation, if, among the N service virtual machines, the number of service virtual machines whose gateways are in a connected state is greater than the number of service virtual machines whose gateways are in a disconnected state, it is determined that the first network port does not have a fault;

[0111] If, among the N business virtual machines, the number of business virtual machines whose gateways are in a connected state is less than the number of business virtual machines whose gateways are in a disconnected state, it is determined that the first network port has a fault.

[0112] That is, the target device can systematically obtain N business virtual machines in the business network, where N is an odd number and is greater than or equal to 3. Using an odd number of virtual machines can ensure that a tie is avoided when judging the fault status, thereby improving the reliability of the judgment result. The target device then calls the virtual tools of the N virtual machines to detect the connectivity status of each virtual machine with the gateway, thereby judging whether the first network port has a fault based on the connectivity status of the gateway.

[0113] Step S303C: when the main link of the service network is the fourth virtual function and it is detected that the first network port is in a normal working state, the main link of the service network is switched to the third virtual function.

[0114] If the link switching mechanism is triggered and the main link is switched to the fourth virtual function, the target device also needs to detect in real time whether the first network port has resumed normal working status. After the first network port fails, the target device monitors its status in real time. If it returns to normal (such as the physical connection is restored and the link is unobstructed), the recovery operation is triggered.

[0115] The goal of the recovery operation is to switch the main link of the service network back to the third virtual function (VF3) to restore to the original configuration. In the embodiment of the present application, the target device can switch through VLAN or switch, specifically through network management tools or operating system configuration, reroute the service network traffic back to the third virtual function (VF3), and update the configuration of the virtual switch, or adjust the network policy to make VF3 the main link again. In addition, the target device can also set the status of VF3 to "active" and set VF4 to "standby" to ensure that in the event of a future failure, VF4 still exists as a standby link.

[0116] Step S304A: Use the first physical function as the main link of the storage network and use the second physical function as the backup link of the storage network to transmit traffic of the storage network.

[0117] In the embodiment of the present application, the first physical function (PF1) is designated as the main link of the storage network, which is used to transmit the main traffic of the storage network and is responsible for most of the storage data transmission to meet the high performance requirements of the storage network. The second physical function (PF2) is designated as the backup link of the storage network, which automatically takes over the transmission of storage data when the main link (PF1) fails or is unavailable, ensuring the continuity and high availability of the storage network.

[0118] Step S304B: when a failure of the first network port is detected, the main link of the storage network is switched to the second physical function.

[0119] The target device can detect the working status of PF1 through various monitoring means. If the working status of PF1 is detected to be abnormal (such as link disconnection, performance limit reduction, etc.), it can be determined that the first network port is faulty. The target device triggers the switching mechanism and issues a switching command to switch the main link of the storage network from PF1 to PF2.

[0120] Step S304C: when the main link of the storage network is the second physical function and it is detected that the first network port is in a normal working state, the main link of the storage network is switched to the first physical function.

[0121] When the first network port is in a faulty state, that is, the main link of the storage network is the second physical function, the target device also needs to detect in real time whether the first network port has resumed normal working status. Once it is detected that the first network port has resumed normal operation, the system (target device) can determine that it can assume the responsibility of the main link again. At this time, the system issues a command to switch the main link of the storage network from PF2 to PF1.

[0122] According to the above steps, complete the topology of VF and PF. When both physical network ports are normal, the traffic of the management network and the business network will go through physical network port 1 (the first network port) by default, and there will be bandwidth competition. After one physical network port fails, the traffic of the management network, business network, and storage network will be cut to another normal physical network port. At this time, there will also be bandwidth competition. The next step is to adjust the bandwidth ratio of the three network traffic.

[0123] The hyper-converged system detects the status of two physical network ports. If both physical network ports are normal, only the traffic ratio of the management network and the business network needs to be adjusted; if only one physical network port is normal, the traffic ratio of the management network, business network, and storage network needs to be adjusted. Since the underlying links of the management network, business network, and storage network all use VF, the speed limit function of VF can be used to divide the bandwidth ratio of VF in PF.

[0124] Furthermore, in a possible implementation of the embodiment of the present application, when the first network port and the second network port in the dual-port physical network card are both fault-free, the management network and the service network reuse the same network port, and the storage network uses the other network port in the dual-port physical network card.

[0125] At this time, the target device obtains the first negotiated rate of the same network port reused by the management network and the service network; according to the first negotiated rate, the first upper limit of the network port rate used by the management network and the second upper limit of the network port rate used by the service network are set.

[0126] Optionally, the first upper limit is greater than or equal to the second upper limit; and the second upper limit is less than 100%.

[0127] In the environment of a dual-port physical network card, when both network ports (the first network port and the second network port) are working normally, the management network and the business network reuse the same network port, the storage network uses another network port, and the network port rate is reasonably allocated according to the network port negotiation rate to ensure the performance and bandwidth requirements of different networks. That is, when the target device detects that the management network and the business network are both allocated to the first network port (assuming VF1 and VF3 in the first network port), the target device can preferentially allocate the storage network to the second network port (assuming PF2 in the second network port). At this time, the target device can also obtain the current negotiation rate of the first network port (PF1) through the link layer protocol (such as Ethernet's automatic negotiation mechanism). The negotiation rate indicates the maximum available transmission rate between the current network port and the connected device.

[0128] That is, when the dual network ports are in normal state, only the traffic ratio of the management network and the business network needs to be adjusted, and the management network has a higher priority than the business network. Get the negotiation rate of physical network port 1. For example, if the negotiation rate is 1000Mbps, set the management network bandwidth to use up to 100% of the bandwidth. Execute the command ip link set physical network port 1vf 1max_tx_rate 1000Mbps. Set the business network bandwidth to use up to 80% of the bandwidth, and reserve 20% of the bandwidth for the management network. Execute the command ip link set physical network port 1vf 3max_tx_rate800Mbps.

[0129] Furthermore, in a possible implementation of the embodiment of the present application, when any network port in the dual-port physical network card fails, the management network, service network and storage network reuse the fault-free network port for traffic transmission.

[0130] At this time, the target device obtains the second negotiated rate of the fault-free network port multiplexing of the management network, business network and storage network; according to the second negotiated rate, the third upper limit of the network port rate used by the management network, the fourth upper limit of the network port rate used by the business network and the fifth upper limit of the network port rate used by the storage network are set.

[0131] Optionally, the third upper limit is greater than or equal to the fourth upper limit and the fifth upper limit, and the third upper limit, the fourth upper limit and the fifth upper limit are all less than 100%.

[0132] That is, when any network port of the dual-port physical network card fails, the management network, business network, and storage network need to reuse the same fault-free network port for traffic transmission. For example, if the first network port is fault-free, the management network uses VF1 for traffic transmission, the business network uses VF2 for traffic transmission, and the storage network uses PF1 for traffic transmission. VF1, VF2, and PF1 are all virtualized from the first network port, so in fact the storage network, business network, and management network still share the first network port for traffic transmission. At this time, you need to set the traffic rate of each network.

[0133] That is, only one physical network port is in normal state. You need to adjust the traffic ratio of the management network, business network, and storage network. The management network has a higher priority than the business network and storage network. Get the negotiation rate of the physical network port in normal state. For example, if the negotiation rate is 1000Mbps, set the management network bandwidth to use up to 80% of the bandwidth. Execute the command ip linkset physical network port 1vf 1max_tx_rate 800Mbps; set the business network bandwidth to use up to 50% of the bandwidth. Execute the command ip link set physical network port 1vf 3max_tx_rate 500Mbps; set the storage network bandwidth to use up to 50% of the bandwidth. Execute the command ip link set physical network port 1pf 1max_tx_rate 500Mbps.

[0134] For ease of understanding, the following is an overall introduction to the solution of the embodiment of the present application in conjunction with the accompanying drawings. Figure 4 , which shows a schematic diagram of a hyper-converged system network deployment involved in an embodiment of the present application. Figure 4As shown in the figure, the hyper-convergence system automatically enables the SR-IOV function of two physical network ports, and virtualizes two VFs and one PF for physical network port 1, named VF1, VF3 and PF1, and virtualizes two VFs and one PF for physical network port 2, named VF2, VF4 and PF2. The hyper-convergence system automatically groups the VFs and PFs virtualized from the physical network ports. The specific processing strategy for the VFs of the management network is: VF1 and VF2 are bound as the primary and standby to form an aggregation port named VF-BOND-MAG, and this aggregation port is added to the management network OVS virtual switch. The primary link of the primary and standby binding of VF1 and VF2 is selected by default as VF1. When physical network port 1 fails, the hyper-convergence system automatically switches the primary link to VF2. When physical network port 1 returns to normal, the hyper-convergence system automatically switches the primary link back to VF1.

[0135] For details, please refer to Figure 5 , which shows a schematic diagram of management network link arbitration in a hyper-converged system involved in an embodiment of the present application. Figure 5 As shown in the figure, the traffic of the management network goes through physical network port 1 by default. The hyper-converged system communicates with the link arbitration IP through the management network IP. When the management network IP and the link arbitration IP are not connected, the hyper-converged system automatically switches. VF3 and VF4 are bound as the primary and standby to form an aggregation port named VF-BOND-BUS. This aggregation port is added to the service network OVS virtual switch. The primary link of the primary and standby binding of VF3 and VF4 is selected by default as VF3. When physical network port 1 fails, the hyper-converged system automatically switches the primary link to VF4. When physical network port 1 returns to normal, the hyper-converged system automatically switches the primary link back to VF3.

[0136] For details, please refer to Figure 6 , which shows a schematic diagram of network port detection of a service network in a hyper-converged system according to an embodiment of the present application. The physical network port failure strategy of the service network is as shown in the attached Figure 6 As shown in the figure, the business network traffic goes through physical network port 1 by default. Since the business network has no IP and its traffic is the traffic of the virtual machine, the hyper-converged system selects N (N is an odd number and greater than or equal to 3) virtual machines connected to the business network, and uses the vmtools inside the virtual machine to determine whether there is a fault in the physical network port. The specific strategy is to call the network detection function of vmtools to detect whether the virtual machine's own gateway is connected. If N virtual machines can connect to their own gateway IP and the corresponding characteristic packets can be captured at the business network ovs virtual switch level, it means that physical network port 1 is faulty. If none of them can connect to their own gateway IP, it means that physical network port 1 is faulty and the business network traffic will be switched to physical network port 2.

[0137] PF processing method for physical network ports: PF1 and PF2 are bound as master and backup to form a Linux bond aggregation port named VF-BOND-DATA. The master link of the Linux bond master and backup binding is PF1 by default. When physical network port 1 fails, the hyper-converged system automatically switches the master link to PF2. When physical network port 1 returns to normal, the hyper-converged system automatically switches the master link back to PF1. The physical network port failure policy of the storage network is the same as that of the management network. After completing the above steps, the deployment topology of VF and PF of physical network port 1 and physical network port 2 has been completed. The traffic distribution of this deployment topology is as follows: the traffic of the management network OVS virtual switch and the service network OVS virtual switch reuses the same physical network port by default. For example, the management network and the service network initially reuse physical network port 1, while the traffic of the storage network occupies another physical network port by default. For example, the storage network initially occupies physical network port 2. If any physical network port fails, the traffic of the management network, business network, and storage network will be reused and automatically switched to another physical network port, so that traffic separation is achieved when the link is normal and traffic merging occurs when the link fails. At the same time, automatic link switching is achieved for high availability.

[0138] According to the above steps, complete the topology of VF and PF. When both physical network ports are normal, the traffic of the management network and the business network will go through physical network port 1 by default, and there will be bandwidth competition. After one physical network port fails, the traffic of the management network, business network, and storage network will be cut to another normal physical network port. At this time, there will also be bandwidth competition. The next step is to adjust the bandwidth ratio of the three network traffic.

[0139] The hyper-converged system detects the status of two physical network ports. If the status of the two physical network ports is normal, only the traffic ratio of the management network and the business network needs to be adjusted; if only one physical network port is normal as a whole, the traffic ratio of the three networks, namely the management network, the business network, and the storage network, needs to be adjusted. Since the underlying links of the management network, the business network, and the storage network all use VF, the speed limit function of VF can be used to divide the bandwidth ratio of VF in PF. At this time, the adjustment process has been specifically introduced in the embodiment of this application and will not be repeated here.

[0140] Therefore, in the above solution, the host of the hyper-converged system deploys a dual-port physical network card, the two network ports enable the SR-IOV feature, and each physical network port virtualizes 2 VFs and 1 PF. In this way, the two physical network ports virtualize a total of 4 VFs and 2 PFs, and automatically group the VFs and PFs virtualized from the physical network ports.

[0141] The specific processing strategy for the management network VF is as follows: VF1 and VF2 are bound as the primary and standby to form an aggregation port named VF-BOND-MAG. This aggregation port is added to the management network OVS virtual switch. The primary link of the primary and standby binding of VF1 and VF2 is selected by default as VF1. When physical network port 1 fails, the hyper-converged system automatically switches the primary link to VF2. When physical network port 1 returns to normal, the hyper-converged system automatically switches the primary link back to VF1.

[0142] The specific processing strategy for the business network VF is as follows: VF3 and VF4 are bound as the primary and standby to form an aggregation port named VF-BOND-BUS, and this aggregation port is added to the business network OVS virtual switch. The primary link of the primary and standby binding of VF3 and VF4 selects VF3 by default. When physical network port 1 fails, the hyper-convergence system automatically switches the primary link to VF4. When physical network port 1 returns to normal, the hyper-convergence system automatically switches the primary link back to VF3.

[0143] Storage network PF processing method: PF1 and PF2 are bound as master and backup to form a Linux bond aggregation port named VF-BOND-DATA. The primary link of the Linux bond master and backup binding is PF1 by default. When physical network port 1 fails, the hyper-converged system automatically switches the primary link to PF2. When physical network port 1 returns to normal, the hyper-converged system automatically switches the primary link back to PF1.

[0144] The hyper-converged system detects the status of two physical network ports. If both physical network ports are normal, only the traffic ratio of the management network and the business network needs to be adjusted; if only one physical network port is normal, the traffic ratio of the management network, business network, and storage network needs to be adjusted. Since the underlying links of the management network, business network, and storage network all use VF, the speed limit function of SR-IOV can be used to divide the bandwidth ratio of VF in PF. When the two physical network ports are working normally, the traffic of the management network and the business network reuses one physical network port, and the traffic of the storage network occupies another physical network port exclusively; when a physical network port fails, the traffic of the management network, business network, and storage network are all switched to the normal physical network port to achieve high service availability. At the same time, the bandwidth of the management network, business network, and storage network traffic that reuses the physical network port channel is controlled to ensure the traffic bandwidth and priority of the three networks.

[0145] To summarize, when the target device is provided with a dual-port physical network card and needs to use the dual-port physical network card to realize traffic transmission of the management network, business network and storage network, the target device can perform hardware virtualization on the first network port and the second network port in the dual-port physical network card, and virtually generate the first virtual function, the third virtual function and the first physical function based on the first network port, and virtually generate the second virtual function, the fourth virtual function and the second physical function based on the second network port; at this time, the target device can bind the main link of the management network to the first virtual function, and bind the backup link to the second virtual function; then bind the main link of the business network to the third virtual function, and bind the backup link of the business network to the fourth virtual function; bind the main link of the storage network to the first physical function, and bind the backup link to the second physical function. Through the above network deployment, the first network port and the second network port can be virtualized into three virtual interfaces respectively, so that the traffic of the management network, the business network and the storage network can be transmitted respectively through the three virtual interfaces, and the three virtual interfaces of the second network port can be used as backup, so that when the first network port fails, the traffic of the management network, the business network and the virtual network can be transmitted through the second network port. Therefore, the above scheme realizes the multi-functional utilization of physical network card resources through hardware virtualization technology, and improves resource utilization; the management network, the business network and the storage network all adopt the active-standby link design, which enhances the reliability and availability of the network, and the storage network uses physical functions to transmit data, ensuring the performance requirements of high bandwidth and low latency; through the configuration and management of virtual functions, the network topology can be adjusted and optimized more flexibly, simplifying the complexity of network management.

[0146] In this embodiment, a network deployment device for a hyper-converged system is also provided, which is used to implement the above embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements 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.

[0147] This embodiment provides a network deployment device for a hyper-converged system, such as Figure 7 As shown, the device is used for a target device, a dual-port physical network card is provided on the target device, the dual-port physical network card has a first network port and a second network port, the hyper-converged system includes a management network, a service network and a storage network, and the device includes:

[0148] A virtual module 701 is used to perform hardware virtualization on the first network port and the second network port to obtain a first virtual function, a third virtual function and a first physical function corresponding to the first network port, and a second virtual function, a fourth virtual function and a second physical function corresponding to the second network port;

[0149] A setting module 702, configured to use the first virtual function as a primary link of the management network and the second virtual function as a backup link of the management network to transmit traffic of the management network;

[0150] The setting module 702 is further configured to use the third virtual function as a primary link of the service network and the fourth virtual function as a backup link of the service network to transmit traffic of the service network;

[0151] The setting module 702 is further configured to use the first physical function as a main link of the storage network and the second physical function as a backup link of the storage network to transmit traffic of the storage network.

[0152] In an optional implementation, traffic of the management network is transmitted by default through the first virtual function;

[0153] The setting module 702 is further configured to switch the main link of the management network to the second virtual function when a failure of the first network port is detected.

[0154] In an optional implementation, the setting module 702 is further used to switch the main link of the management network to the first virtual function when the main link of the management network is the second virtual function and it is detected that the first network port is in a normal working state.

[0155] In an optional implementation, the traffic of the service network is transmitted by default through the third virtual function;

[0156] The setting module 702 is further configured to switch the main link of the service network to the fourth virtual function when a failure of the first network port is detected.

[0157] In an optional implementation, the setting module 702 is further used to switch the main link of the service network to the third virtual function when the main link of the service network is the fourth virtual function and it is detected that the first network port is in a normal working state.

[0158] In an optional implementation, before switching the main link of the service network to the fourth virtual function when the first network port failure is detected, the setting module 702 is further used to obtain N service virtual machines in the service network; N is an odd number and N is greater than or equal to 3;

[0159] Calling the virtual tools of the N service virtual machines to detect whether the gateways of the service virtual machines are connected;

[0160] Based on the connectivity status of the gateways of the N business virtual machines, determine whether the first network port has a fault.

[0161] In an optional implementation, the setting module 702 is further used to determine that there is no fault in the first network port if the gateways in the N service virtual machines are all in a connected state;

[0162] If the gateways in the N business virtual machines are all in a disconnected state, it is determined that the first network port has a fault.

[0163] In an optional implementation, the setting module 702 is further used to determine that there is no fault in the first network port if the number of business virtual machines whose gateways are in a connected state among the N business virtual machines is greater than the number of business virtual machines whose gateways are in a disconnected state;

[0164] If, among the N service virtual machines, the number of service virtual machines whose gateways are connected is less than the number of service virtual machines whose gateways are disconnected, it is determined that the first network port has a fault.

[0165] In an optional implementation, the traffic of the storage network is transmitted by default through the first physical function;

[0166] The setting module 702 is also used for:

[0167] When a failure of the first network port is detected, the main link of the storage network is switched to the second physical function.

[0168] In an optional implementation, the setting module 702 is further used to switch the main link of the storage network to the first physical function when the main link of the storage network is the second physical function and it is detected that the first network port is in a normal working state.

[0169] In an optional implementation, when the first network port and the second network port in the dual-port physical network card are both fault-free, the management network and the service network reuse the same network port, and the storage network uses the other network port in the dual-port physical network card.

[0170] In an optional implementation, when any network port of the dual-port physical network card fails, the management network, service network, and storage network reuse the normal network port to transmit traffic.

[0171] In an optional implementation, the setting module 702 is further used to obtain a first negotiated rate of the same network port multiplexed by the management network and the service network;

[0172] According to the first negotiated rate, a first upper limit of the network port rate used by the management network and a second upper limit of the network port rate used by the service network are set.

[0173] In an optional implementation, the first upper limit is greater than or equal to the second upper limit; and the second upper limit is less than 100%.

[0174] In an optional implementation, the setting module 702 is further used to obtain a second negotiation rate of a network port that is multiplexed without a fault among the management network, the service network, and the storage network;

[0175] According to the second negotiated rate, a third upper limit of the network port rate used by the management network, a fourth upper limit of the network port rate used by the service network, and a fifth upper limit of the network port rate used by the storage network are set.

[0176] In an optional implementation, the third upper limit is greater than or equal to the fourth upper limit and the fifth upper limit, and the third upper limit, the fourth upper limit and the fifth upper limit are all less than 100%.

[0177] The network deployment device of the hyper-converged system in this embodiment is presented in the form of functional modules, where the modules refer to application-specific integrated circuits (ASICs), processors and memories that execute one or more software or fixed programs, and / or other devices that can provide the above functions.

[0178] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0179] The network deployment device of a hyper-converged system provided by the present invention has the following advantages:

[0180] When the target device is equipped with a dual-port physical network card and needs to use the dual-port physical network card to realize traffic transmission of the management network, business network and storage network, the target device can perform hardware virtualization on the first network port and the second network port in the dual-port physical network card, and virtually generate the first virtual function, the third virtual function and the first physical function based on the first network port, and virtually generate the second virtual function, the fourth virtual function and the second physical function based on the second network port; at this time, the target device can bind the main link of the management network to the first virtual function, and bind the backup link to the second virtual function; then bind the main link of the business network to the third virtual function, and bind the backup link of the business network to the fourth virtual function; bind the main link of the storage network to the first physical function, and bind the backup link to the second physical function. Through the above network deployment, the first network port and the second network port can be virtualized into three virtual interfaces respectively, so that the traffic of the management network, the business network and the storage network can be transmitted respectively through the three virtual interfaces, and the three virtual interfaces of the second network port can be used as backup, so that when the first network port fails, the traffic of the management network, the business network and the virtual network can be transmitted through the second network port. Therefore, the above scheme realizes the multi-functional utilization of physical network card resources through hardware virtualization technology, and improves resource utilization; the management network, the business network and the storage network all adopt the active-standby link design, which enhances the reliability and availability of the network, and the storage network uses physical functions to transmit data, ensuring the performance requirements of high bandwidth and low latency; through the configuration and management of virtual functions, the network topology can be adjusted and optimized more flexibly, simplifying the complexity of network management.

[0181] The embodiment of the present invention also provides a computer device having the above Figure 8 A network deployment device of a hyper-converged system is shown.

[0182] See also Figure 8 , Figure 8 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 8 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 8A processor 10 is taken as an example.

[0183] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0184] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0185] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of a computer device based on the presentation of a small program landing page, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer 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.

[0186] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0187] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 8 The example of connecting through bus is taken in the following.

[0188] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.

[0189] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0190] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0191] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A network deployment method for a hyper-converged system, characterized in that: The method is used for a target device, wherein a dual-port physical network card is provided on the target device, wherein the dual-port physical network card has a first network port and a second network port, and wherein the hyper-converged system includes a management network, a service network, and a storage network, and the method includes: Performing hardware virtualization on the first network port and the second network port to obtain a first virtual function, a third virtual function, and a first physical function corresponding to the first network port, and a second virtual function, a fourth virtual function, and a second physical function corresponding to the second network port; Using the first virtual function as a main link of the management network and using the second virtual function as a backup link of the management network to transmit traffic of the management network; Using the third virtual function as a main link of the service network and using the fourth virtual function as a backup link of the service network to transmit traffic of the service network; The first physical function is used as a main link of the storage network, and the second physical function is used as a backup link of the storage network to transmit traffic of the storage network.

2. The method according to claim 1, characterized in that The traffic of the management network is transmitted by the first virtual function by default; The method further comprises: When a failure of the first network port is detected, the main link of the management network is switched to the second virtual function.

3. The method according to claim 2, characterized in that The method further comprises: When the main link of the management network is the second virtual function and it is detected that the first network port is in a normal working state, the main link of the management network is switched to the first virtual function.

4. The method according to claim 1, characterized in that: The traffic of the service network is transmitted by the third virtual function by default; The method further comprises: When a failure of the first network port is detected, the main link of the service network is switched to the fourth virtual function.

5. The method according to claim 4, characterized in that The method further comprises: When the main link of the service network is the fourth virtual function and it is detected that the first network port is in a normal working state, the main link of the service network is switched to the third virtual function.

6. The method according to claim 5, characterized in that Before switching the main link of the service network to the fourth virtual function when a failure of the first network port is detected, the method further includes: Obtain N service virtual machines in the service network; N is an odd number and is greater than or equal to 3; Calling the virtual tools of the N service virtual machines to detect whether the gateways of the service virtual machines are connected; Based on the connectivity status of the gateways of the N business virtual machines, determine whether the first network port has a fault.

7. The method according to claim 6, characterized in that The determining whether the first network port has a fault based on the connectivity status of the gateways of the N service virtual machines includes: If the gateways in the N service virtual machines are all in a connected state, it is determined that there is no fault in the first network port; If the gateways in the N business virtual machines are all in a disconnected state, it is determined that the first network port has a fault.

8. The method according to claim 7, characterized in that The method further comprises: If, among the N business virtual machines, the number of business virtual machines whose gateways are connected is greater than the number of business virtual machines whose gateways are disconnected, it is determined that there is no fault in the first network port; If, among the N service virtual machines, the number of service virtual machines whose gateways are connected is less than the number of service virtual machines whose gateways are disconnected, it is determined that the first network port has a fault.

9. The method according to claim 1, characterized in that: The traffic of the storage network is transmitted by the first physical function by default; The method further comprises: When a failure of the first network port is detected, the main link of the storage network is switched to the second physical function.

10. The method according to claim 9, characterized in that The method further comprises: When the main link of the storage network is the second physical function and it is detected that the first network port is in a normal working state, the main link of the storage network is switched to the first physical function.

11. The method according to any one of claims 1 to 10, characterized in that: When both the first network port and the second network port in the dual-port physical network card are fault-free, the management network and the service network reuse the same network port, and the storage network uses the other network port in the dual-port physical network card.

12. The method according to claim 11, characterized in that When any network port of the dual-port physical network card fails, the management network, service network and storage network reuse the fault-free network port for traffic transmission.

13. The method according to claim 9, characterized in that The method further comprises: Obtaining a first negotiated rate of the same network port multiplexed by the management network and the service network; According to the first negotiated rate, a first upper limit of the network port rate used by the management network and a second upper limit of the network port rate used by the service network are set.

14. The method according to claim 13, characterized in that The first upper limit is greater than or equal to the second upper limit; and the second upper limit is less than 100%.

15. The method according to claim 14, characterized in that The method further comprises: Obtaining a second negotiated rate of a network port that is multiplexed without failure among the management network, the service network, and the storage network; According to the second negotiated rate, a third upper limit of the network port rate used by the management network, a fourth upper limit of the network port rate used by the service network, and a fifth upper limit of the network port rate used by the storage network are set.

16. The method according to claim 15, characterized in that The third upper limit is greater than or equal to the fourth upper limit and the fifth upper limit, and the third upper limit, the fourth upper limit and the fifth upper limit are all less than 100%.

17. A network deployment device for a hyper-converged system, characterized in that: The device is used for a target device, the target device is provided with a dual-port physical network card, the dual-port physical network card has a first network port and a second network port, the hyper-converged system includes a management network, a service network and a storage network, and the device includes: a virtual module, used to perform hardware virtualization on the first network port and the second network port, and obtain a first virtual function, a third virtual function, and a first physical function corresponding to the first network port, and a second virtual function, a fourth virtual function, and a second physical function corresponding to the second network port; A setting module, configured to use the first virtual function as a main link of the management network and the second virtual function as a backup link of the management network to transmit traffic of the management network; A setting module, configured to use the third virtual function as a main link of the service network and the fourth virtual function as a backup link of the service network to transmit traffic of the service network; A setting module is used to use the first physical function as a main link of the storage network and the second physical function as a backup link of the storage network to transmit traffic of the storage network.

18. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the network deployment method of the hyper-converged system according to any one of claims 1 to 16 by executing the computer instructions.

19. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the network deployment method of the hyper-converged system according to any one of claims 1 to 16.

20. A computer program product, characterized in that The method comprises computer instructions, wherein the computer instructions are used to enable a computer to execute the network deployment method of the hyper-converged system according to any one of claims 1 to 16.

Citation Information

Cited By

  • Network isolation method and device based on cloud native hyper-convergence platform

    CN121585498A